Repository navigation
Conversation
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 <name> -> vapi vault unlock (the vault unlock is vault-wide, not per wallet) Signed-off-by: 黄栋斐 <2475534900@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
examples/wallets.tstells new users to run commands that are deprecated in client 0.17.5. It printsvapi backup --wallet <name>andvapi unlock --wallet <name>, and both of those now emit a deprecation warning as soon as they are run (tested with vapi-network 0.17.5 on Windows, Node 24):--walletis now--account;--walletkeeps working for one release.vapi unlockis nowvapi vault unlock; the old name works for one release.So the first commands a fresh user copies out of this example already teach stale syntax.
Changes
vapi backup --wallet <name>->vapi backup --account <name>vapi unlock --wallet <name>->vapi vault unlock(the unlock is vault-wide, so the wallet name argument no longer applies)Checklist
pnpm lint && pnpm typecheck && pnpm test && pnpm build && pnpm pack:checkpass locally (strings-only change in an example; CI is the real check here)git commit -s)Breaking changes
None.