From 24163a62491e2ffd7215360110f81e277b16fe70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=A0=8B=E6=96=90?= <2475534900@qq.com> Date: Fri, 4 Dec 2026 10:39:02 +0800 Subject: [PATCH] examples: stop printing deprecated --wallet and vapi unlock commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In 0.17.5 both printed commands are deprecated and print a warning when run: `--wallet` is now `--account`, and `vapi unlock` is now `vapi vault unlock`. This example tells new users to run the deprecated forms, so the first commands they copy emit deprecation notices. - vapi backup --wallet -> vapi backup --account - vapi unlock --wallet -> vapi vault unlock (the vault unlock is vault-wide, not per wallet) Signed-off-by: 黄栋斐 <2475534900@qq.com> --- examples/wallets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wallets.ts b/examples/wallets.ts index 22f36a9..5e93545 100644 --- a/examples/wallets.ts +++ b/examples/wallets.ts @@ -47,7 +47,7 @@ if (store.has(name)) { spendCaps: { perCallAtomic: String(usdToAtomic(0.05)), perDayAtomic: String(usdToAtomic(1)) }, }); console.log(`Created ${created.name} at ${created.account.address}.`); - console.log(`Write its recovery phrase down with: vapi backup --wallet ${created.name}`); + console.log(`Write its recovery phrase down with: vapi backup --account ${created.name}`); } // Caps belong to the wallet, so an agent's allowance is independent of yours. @@ -60,4 +60,4 @@ console.log( BigInt(capped.spendCaps.perDayAtomic), )} per day.`, ); -console.log(`Unlock it for an agent with: vapi unlock --wallet ${name}`); +console.log(`Unlock the vault for an agent with: vapi vault unlock`);