vapi-network 0.9.0 → 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 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
@@ -110,6 +114,9 @@ Task watch and a partially completed scope-signing flow can emit newline-delimit
110
114
  JSON; delivery emits one result after chain success. See [Task commands](./docs/tasks.md#cli). Exit codes are
111
115
  `0` for success, `1` for an operational failure, and `2` for invalid usage or
112
116
  an announced preview-only command.
117
+ Solana listings remain searchable. Inspecting or paying one returns
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.
113
120
 
114
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.
115
122
 
@@ -119,8 +126,8 @@ Posting a task moves no money. The create-order contract stores its market amoun
119
126
 
120
127
  | Command | Options | What it does |
121
128
  | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
122
- | `vapi init` | `--networks <base,arc,solana>` | Creates `~/.vapi`, the wallet `main` and the config. Says so if one exists. |
123
- | `vapi setup` | `--no-cloud-backup`, `--json` | Creates or restores the vault, links the first account, and can offer cloud backup. Safe to rerun. |
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. |
124
131
  | `vapi accounts` | `--all`, `--json` | Lists local accounts and can add the owner's accounts on other devices as read-only rows |
125
132
  | `vapi accounts add <name>` | `--label <text>`, `--no-link`, `--json` | Derives and links a new account |
126
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 |
@@ -141,7 +148,7 @@ Posting a task moves no money. The create-order contract stores its market amoun
141
148
  | `vapi swarm dissolve <name>` | `--json` | Sweeps the swarm back to the owner and removes its local swarm record |
142
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 |
143
150
  | `vapi wallet list` | - | Name, address, default marker, caps in USD, unlocked, label |
144
- | `vapi wallet create <name>` | `--networks <base,arc,solana>`, `--label <text>` | A new wallet, with its own phrase, caps and passphrase |
151
+ | `vapi wallet create <name>` | `--networks <base,arc>`, `--label <text>` | A new wallet, with its own phrase, caps and passphrase |
145
152
  | `vapi wallet use <name>` | - | Makes it the default for every later command |
146
153
  | `vapi wallet rename <old> <new>` | - | Renames the keystore, the registry entry and that wallet's receipts |
147
154
  | `vapi wallet remove <name>` | `--force` | Moves the keystore to `wallets/.trash/`; asks you to type the name |
@@ -151,10 +158,10 @@ Posting a task moves no money. The create-order contract stores its market amoun
151
158
  | `vapi docs "<question>"` | `--json` | Asks the public vAPI documentation assistant and prints its answer and sources; no wallet or payment |
152
159
  | `vapi docs search "<query>"` | `--json` | Searches the vAPI documentation and prints matching excerpts; no wallet or payment |
153
160
  | `vapi docs read <url-or-path>` | `--json` | Reads one vAPI documentation page as Markdown; no wallet or payment |
154
- | `vapi accounts` | `--enable <solana\|arc>`, `--wallet <name>` | One deposit account per configured network, with balances and guidance |
161
+ | `vapi accounts` | `--enable <arc>`, `--wallet <name>` | One deposit account per configured network, with balances and guidance |
155
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 |
156
- | `vapi inspect <id>` | `--endpoint <name>` | Verification, fee, liveness, conformance, identity, contract and live quote, for free |
157
- | `vapi pay <id-or-url>` | `--method`, `--endpoint`, `--body <json>`, `--content-type`, `--network <caip2>`, `--expected-pay-to`, `--max <usd>`, `--wallet <name>` | Calls the API and pays it from the local wallet, naming an unverified tier |
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 |
158
165
  | `vapi pay --resume <receipt-id>` | - | Checks settlement, shows its payment id, and never pays |
159
166
  | `vapi check <url>` | `--method <method>` | Grades its 402, extensions and same-origin discovery. Never pays |
160
167
  | `vapi balance` | `--wallet <name>` | The wallet's address and USDC balances |
@@ -186,10 +193,10 @@ Posting a task moves no money. The create-order contract stores its market amoun
186
193
  | `vapi task propose <id>` | `--price <usd>`, `--duration <duration>`, `--note <text>`, `--account <name>`, `--json` | Signs proposal terms locally and offers to take a task |
187
194
  | `vapi task submit <id>` | `--proof <https-url>` (repeatable), `--file <path>` (repeatable), `--account <name>`, `--json` | Uploads files and signs bounty proof. Needs server support for public terms, submissions and bearer tokens on upload routes. |
188
195
  | `vapi task award <id> <proposalId>` | `--account <name>`, `--json` | Awards a proposal or submission. Moves no money. Needs server support for bearer tokens on participant routes. |
189
- | `vapi task sign <id>` | `--yes`, `--account <name>`, `--json`, `--counterparty <0x…>` | Signs the agreed scope locally. A worker creates the unfunded escrow with the local vault wallet. |
190
- | `vapi task fund <id>` | `--yes`, `--account <name>`, `--json`, `--counterparty <0x…>` | Applies local spend policy and funds escrow with the local vault wallet. |
191
- | `vapi task deliver <id>` | `--files <path...>`, `--note <text>`, `--account <name>`, `--json`, `--counterparty <0x…>` | Prepares a delivery manifest from 1 to 20 files and records delivery onchain. |
192
- | `vapi task release <id>` | `--account <name>`, `--json`, `--counterparty <0x…>` | Releases escrow to the worker with the local vault wallet. |
196
+ | `vapi task sign <id>` | `--yes`, `--no-wait`, `--timeout 120s`, `--account <name>`, `--json`, `--counterparty <0x…>` | Signs the agreed scope locally. A worker creates the unfunded escrow with the local vault wallet. |
197
+ | `vapi task fund <id>` | `--yes`, `--no-wait`, `--timeout 120s`, `--account <name>`, `--json`, `--counterparty <0x…>` | Applies local spend policy and funds escrow with the local vault wallet. |
198
+ | `vapi task deliver <id>` | `--files <path...>`, `--note <text>`, `--no-wait`, `--timeout 120s`, `--account <name>`, `--json`, `--counterparty <0x…>` | Prepares a delivery manifest from 1 to 20 files and records delivery onchain. |
199
+ | `vapi task release <id>` | `--no-wait`, `--timeout 120s`, `--account <name>`, `--json`, `--counterparty <0x…>` | Releases escrow to the worker with the local vault wallet. |
193
200
  | `vapi task refund <id>` | `--account <name>`, `--json`, `--counterparty <0x…>` | Returns escrow to the poster with the local vault wallet. |
194
201
  | `vapi task dispute <id>` | `--evidence-hash <0x + 64 hex>`, `--yes`, `--account <name>`, `--json`, `--counterparty <0x…>` | Applies spend policy, approves the verified fee and raises a dispute. |
195
202
  | `vapi task counter-evidence <id>` | `--evidence-hash <0x + 64 hex>`, `--yes`, `--counterparty <0x…>`, `--account <name>`, `--json` | Pays the verified fee and submits counter-evidence before the deadline. |
@@ -197,11 +204,11 @@ Posting a task moves no money. The create-order contract stores its market amoun
197
204
  | `vapi task message <id> <text>` | `--account <name>`, `--json` | Sends a task message. Needs server support for bearer tokens on participant routes. |
198
205
  | `vapi task thread <id>` | `--after <cursor>`, `--account <name>`, `--json` | Reads task messages. The cursor is nextBeforeSeq for an older page. Needs server support for bearer tokens on participant routes. |
199
206
  | `vapi task watch <id>` | `--until <state>`, `--auto-release`, `--timeout 7d`, `--interval 5s`, `--account <name>`, `--json`, `--counterparty <0x…>` | Watches task events. Auto-release signs with the selected local vault wallet. |
200
- | `vapi task status <id>` | `--account <name>`, `--json` | Shows the public task card and its receipt URL. |
207
+ | `vapi task status <id>` | `--account <name>`, `--json` | Shows chain state and participant events when signed in, or the public task card. |
201
208
  | `vapi export-key` | `--network <caip2>`, `--wallet <name>` | Prints the private key. Terminal only, never for an agent. |
202
209
  | `vapi backup` | `--account <name>`, `--cloud [off]`, `--json` | Prints the 12 words, or turns encrypted cloud backup on or off. |
203
- | `vapi restore` | `--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. |
204
- | `vapi import` | `--phrase` or `--key`, `--wallet <name>`, `--networks <base,arc,solana>`, `--replace`, `--force` | Restores a wallet from a prompt, never from argv |
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 |
205
212
  | `vapi passphrase` | `--wallet <name>` | Re-encrypts the keystore under a new passphrase |
206
213
  | `vapi vault protect` | `--json` | Adds a password to the device vault |
207
214
  | `vapi vault unprotect` | `--json` | Removes the password from the device vault |
@@ -225,6 +232,8 @@ Posting a task moves no money. The create-order contract stores its market amoun
225
232
  | `vapi version` | - | The client version, also as `--version` or `-v` |
226
233
  | `vapi help` | - | The same help bare `vapi` shows, also as `--help` or `-h` |
227
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
+
228
237
  ## Packages
229
238
 
230
239
  | Package | Purpose |