vapi-network 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/dist/cli.js +460 -87
- package/dist/cli.js.map +3 -3
- package/dist/index.js +478 -91
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,10 @@ No install? Prefix any command with `npx vapi-network`, for example
|
|
|
27
27
|
`npx vapi-network init`. (`npx vapi` cannot work: the bare `vapi` name on npm
|
|
28
28
|
belongs to an unrelated package.)
|
|
29
29
|
|
|
30
|
+
Interactive CLI runs check for a newer release at most once a day and cache the result in
|
|
31
|
+
`~/.vapi/update-check.json`. JSON, MCP server, CI and non-TTY runs skip the check. Set
|
|
32
|
+
`VAPI_NO_UPDATE_CHECK=1` to disable it.
|
|
33
|
+
|
|
30
34
|
## Quickstart
|
|
31
35
|
|
|
32
36
|
```bash
|
|
@@ -112,6 +116,7 @@ JSON; delivery emits one result after chain success. See [Task commands](./docs/
|
|
|
112
116
|
an announced preview-only command.
|
|
113
117
|
Solana listings remain searchable. Inspecting or paying one returns
|
|
114
118
|
`unsupported_network` (CLI exit `1`); vault payments on Solana arrive in a later release.
|
|
119
|
+
Inspect shows the registry’s last observed quote; pay fetches a fresh quote before signing.
|
|
115
120
|
|
|
116
121
|
Every wallet command takes `--account <name>`, falls back to `VAPI_WALLET`, then the default from `vapi accounts use`; `--wallet <name>` keeps working for one release.
|
|
117
122
|
|
|
@@ -121,8 +126,8 @@ Posting a task moves no money. The create-order contract stores its market amoun
|
|
|
121
126
|
|
|
122
127
|
| Command | Options | What it does |
|
|
123
128
|
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
124
|
-
| `vapi init` | `--networks <base,arc
|
|
125
|
-
| `vapi setup` | `--no-cloud-backup`, `--json`
|
|
129
|
+
| `vapi init` | `--networks <base,arc>` | Creates `~/.vapi`, the wallet `main` and the config. Says so if one exists. |
|
|
130
|
+
| `vapi setup` | `--no-cloud-backup`, `--accounts <n>`, `--json` | Creates or restores the vault, links the first account, and can offer cloud backup. Safe to rerun. |
|
|
126
131
|
| `vapi accounts` | `--all`, `--json` | Lists local accounts and can add the owner's accounts on other devices as read-only rows |
|
|
127
132
|
| `vapi accounts add <name>` | `--label <text>`, `--no-link`, `--json` | Derives and links a new account |
|
|
128
133
|
| `vapi accounts import <name>` | `--keystore <path>` or `--key-file <path>`, `--label <text>`, `--json` | Imports an account from a private-key prompt or local keystore |
|
|
@@ -143,7 +148,7 @@ Posting a task moves no money. The create-order contract stores its market amoun
|
|
|
143
148
|
| `vapi swarm dissolve <name>` | `--json` | Sweeps the swarm back to the owner and removes its local swarm record |
|
|
144
149
|
| `vapi send <amount>` | `--from <account>`, `--to <account\|owner\|0x…>`, `--network <base\|arc>`, `--resume <nonce>`, `--json` | Sends USDC to the owner or another active account; vAPI pays gas |
|
|
145
150
|
| `vapi wallet list` | - | Name, address, default marker, caps in USD, unlocked, label |
|
|
146
|
-
| `vapi wallet create <name>` | `--networks <base,arc
|
|
151
|
+
| `vapi wallet create <name>` | `--networks <base,arc>`, `--label <text>` | A new wallet, with its own phrase, caps and passphrase |
|
|
147
152
|
| `vapi wallet use <name>` | - | Makes it the default for every later command |
|
|
148
153
|
| `vapi wallet rename <old> <new>` | - | Renames the keystore, the registry entry and that wallet's receipts |
|
|
149
154
|
| `vapi wallet remove <name>` | `--force` | Moves the keystore to `wallets/.trash/`; asks you to type the name |
|
|
@@ -153,10 +158,10 @@ Posting a task moves no money. The create-order contract stores its market amoun
|
|
|
153
158
|
| `vapi docs "<question>"` | `--json` | Asks the public vAPI documentation assistant and prints its answer and sources; no wallet or payment |
|
|
154
159
|
| `vapi docs search "<query>"` | `--json` | Searches the vAPI documentation and prints matching excerpts; no wallet or payment |
|
|
155
160
|
| `vapi docs read <url-or-path>` | `--json` | Reads one vAPI documentation page as Markdown; no wallet or payment |
|
|
156
|
-
| `vapi accounts` | `--enable <
|
|
161
|
+
| `vapi accounts` | `--enable <arc>`, `--wallet <name>` | One deposit account per configured network, with balances and guidance |
|
|
157
162
|
| `vapi search [query]` | `--kind <kind>` (repeatable), `--network <caip2>`, `--limit <n>`, `--cursor <cursor>`, `--include-unverified` | Merged discovery across every configured source, tagged by group and tier |
|
|
158
|
-
| `vapi inspect <id>` | `--endpoint <name>` | Verification, fee, liveness, conformance, identity, contract and
|
|
159
|
-
| `vapi pay <id-or-url>` | `--method`, `--endpoint`, `--body <json>`, `--content-type`, `--network <caip2>`, `--expected-pay-to`, `--max <usd>`, `--wallet <name>`
|
|
163
|
+
| `vapi inspect <id>` | `--endpoint <name>` | Verification, fee, liveness, conformance, identity, contract and registry’s last observed quote, for free |
|
|
164
|
+
| `vapi pay <id-or-url>` | `--method`, `--endpoint`, `--body <json>`, `--content-type`, `--network <caip2>`, `--expected-pay-to`, `--max <usd>`, `--timeout <seconds>`, `--wallet <name>` | Calls the API and pays it from the local wallet, naming an unverified tier |
|
|
160
165
|
| `vapi pay --resume <receipt-id>` | - | Checks settlement, shows its payment id, and never pays |
|
|
161
166
|
| `vapi check <url>` | `--method <method>` | Grades its 402, extensions and same-origin discovery. Never pays |
|
|
162
167
|
| `vapi balance` | `--wallet <name>` | The wallet's address and USDC balances |
|
|
@@ -202,8 +207,8 @@ Posting a task moves no money. The create-order contract stores its market amoun
|
|
|
202
207
|
| `vapi task status <id>` | `--account <name>`, `--json` | Shows chain state and participant events when signed in, or the public task card. |
|
|
203
208
|
| `vapi export-key` | `--network <caip2>`, `--wallet <name>` | Prints the private key. Terminal only, never for an agent. |
|
|
204
209
|
| `vapi backup` | `--account <name>`, `--cloud [off]`, `--json` | Prints the 12 words, or turns encrypted cloud backup on or off. |
|
|
205
|
-
| `vapi restore` | `--from-owner [--owner <0x…>]`, `--json`
|
|
206
|
-
| `vapi import` | `--phrase` or `--key`, `--wallet <name>`, `--networks <base,arc
|
|
210
|
+
| `vapi restore` | `--accounts <n>`, `--from-owner [--owner <0x…>]`, `--json` | Rebuilds the vault from a recovery phrase typed at the prompt or piped on stdin, or restores an owner-approved cloud backup. |
|
|
211
|
+
| `vapi import` | `--phrase` or `--key`, `--wallet <name>`, `--networks <base,arc>`, `--replace`, `--force` | Restores a wallet from a prompt, never from argv |
|
|
207
212
|
| `vapi passphrase` | `--wallet <name>` | Re-encrypts the keystore under a new passphrase |
|
|
208
213
|
| `vapi vault protect` | `--json` | Adds a password to the device vault |
|
|
209
214
|
| `vapi vault unprotect` | `--json` | Removes the password from the device vault |
|
|
@@ -227,6 +232,8 @@ Posting a task moves no money. The create-order contract stores its market amoun
|
|
|
227
232
|
| `vapi version` | - | The client version, also as `--version` or `-v` |
|
|
228
233
|
| `vapi help` | - | The same help bare `vapi` shows, also as `--help` or `-h` |
|
|
229
234
|
|
|
235
|
+
Phrase recovery checks Base USDC balances until five consecutive addresses are empty and reports the number scanned. `vapi restore --accounts <n>` (or `vapi setup --accounts <n>` when restoring) derives a fixed count without balance queries.
|
|
236
|
+
|
|
230
237
|
## Packages
|
|
231
238
|
|
|
232
239
|
| Package | Purpose |
|