@visa/cli 5.0.0-rc.417 → 5.0.0-rc.419

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
@@ -66,7 +66,7 @@ Can spend up to $100 more, asking you each time.
66
66
 
67
67
  or, for an agent connected to earn only, `Can earn.` A remaining spending step (such as adding funds) follows the limit. Status exposes the current connection and spending step in `connection`.
68
68
 
69
- Every connect result, and an unfinished setup in status, carries the one connect `status`: a word (`Connected`, `Finishing…`, `Needs you`, `Didn’t finish` or `Visa needs to look`), at most one owner action (`Continue`, `Remove`, `Retry` or `Contact support`) with its link, and a stable `agent` code. The terminal, MCP and Console say the same word.
69
+ Every connect result, and an unfinished setup in status, carries the one connect `status`: a word (`Connected`, `Finishing…`, `Needs you`, `Didn’t finish` or `Visa needs to look`), at most one owner action (`Continue`, `Remove`, `Retry`, or the human hand-off the Console shows as Tell Visa) with its link, and a stable `agent` code. The terminal, MCP and Console say the same word.
70
70
 
71
71
  Limits set at connect start on **Ask me each time**. The owner can change them later in the Console. App connections ask before each payment.
72
72
 
@@ -169,12 +169,12 @@ stable launcher) serves the laptop column of the one Visa tool catalogue:
169
169
  | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
170
170
  | `status` | Who this agent is, what is ready, and who takes the next step. Call first. |
171
171
  | `connect` | Connect this computer (or replace its key). Returns the owner link; picks up approval automatically. |
172
- | `discover` | Search paid services or probe one URL with GET and no body. Answers `unavailable` until the discovery source is live. |
172
+ | `discover` | Search paid services, task marketplaces and open tasks, or probe one URL with GET and no body. `marketplaces: true` lists every task marketplace. Answers `unavailable` until the discovery source is live. |
173
173
  | `pay` | Pay a URL that answers HTTP 402 with a Tempo charge (OUSD). Needs `max` including the network fee and a new `idempotency_key` per purchase. Optional `userRequest`: the person's words, kept by Visa for product analysis. **Moves real money.** |
174
174
  | `task_post` | Post a claim task with a reward in USD and an `idempotency_key`; uses the existing payment limits and approval. |
175
- | `task_action` | Claim, submit, accept or release a task. Claim and submit show the owner the task and reward; submission also binds the work fingerprint and shows a work preview. Approve once, then repeat the same call; submitting requires a merchant receipt for the reviewed work. Submit and accept pay and need `max`. Every action first needs Visa's clearance of that task. **Moves real money.** |
176
- | `task_list` | List open screened tasks (or one named task with `task_id`) and short-lived clearances for task actions. Never pays. |
177
- | `task_status` | Read a task’s status, reward and available claimant or submission. Never pays. |
175
+ | `task_action` | Claim, submit, accept or release a task. Claim and submit show the owner the task and reward; submission also binds the work fingerprint and shows a work preview. Approve once, then repeat the same call; submitting requires a merchant receipt for the reviewed work. With "Ask before paying" off, claim and release of a screened, unstaked task need no approval; submit and forfeit always ask. Submit and accept pay and need `max`. Visa screens the task before every signature and payment. A claim on a task another worker holds, or a submission on a task you no longer hold, is refused before the owner is asked. **Moves real money.** |
176
+ | `task_list` | List open screened tasks (or one named task with `task_id`). Never pays. |
177
+ | `task_status` | Read a task’s state, reward, claimant and submissions (ids and states only; its description only as Visa’s screen cleared it). Never pays. |
178
178
  | `payment_status` | Read one purchase by its `idempotency_key`: a plain read. To wait, repeat the call that started it (it holds on your turn). |
179
179
  | `payment_cancel` | Cancel a purchase awaiting owner approval. |
180
180
  | `history` | This agent's purchases, newest first. |
@@ -196,17 +196,26 @@ The shell adapter, `visa-tool`, prints the object as JSON and appends a
196
196
 
197
197
  When a `discover` query finds no services, its `next` hint offers `task_post` with
198
198
  the query as the suggested description. Posting requires an explicit `reward`
199
- (USD decimal), `idempotency_key`, optional `duration_seconds` (default 3600) and an
199
+ (USD decimal), `idempotency_key`, optional `duration_seconds` (default 86400, a day) and an
200
200
  optional documented `terms_preset` (`standard`, `fast` or `flexible`; a staked task
201
- names one). Unknown fields are refused. Local rules give fast feedback; the edge must allow the exact draft before paying.
202
- Tasks needing review are not posted. The CLI obtains fresh clearance before each
203
- task action; callers do not supply it to `task_action`. Submit needs `text` and
201
+ names one). Unknown fields are refused. Visa screens the exact draft before paying.
202
+ Tasks needing review are not posted. Visa screens the task itself before every
203
+ signature and payment; no agent carries a clearance. The work upload goes through
204
+ `pay` to a public address only. Submit needs `text` and
204
205
  `max`; accept needs `max`. A missing or invalid `max` is corrected on the same task action with the same `idempotency_key`. Reuse the same arguments and idempotency key to resume; a task response
205
206
  does not prove payment settlement. Listed tasks show `net_reward` and any stake;
206
207
  a task that pays the worker nothing is never listed. A task outage or malformed task answer is named in
207
208
  `task_screening`, while successful service results remain available. `task_status` reads `/api/tasks/:id` without paying.
208
- Taskmarket defaults to its testnet on Tempo Moderato and to `api.taskmarket.dev`
209
- on mainnet; `VISA_TASKMARKET_URL=off` turns tasks off. The live testnet currently refuses access-key signatures;
209
+ `discover` with `marketplaces: true` (or a query that names one) lists the task
210
+ marketplaces Visa supports: what agents do on each, how its tasks are paid, which
211
+ steps carry the agent's own signature, the fields Visa screens, and `available`
212
+ (whether this computer's task tools reach it). Each listed task names its
213
+ `marketplace`; pass it as `marketplace` to `task_post`, `task_action`,
214
+ `task_status` or `task_list` (a task link names its own; with none, the first
215
+ marketplace). Each marketplace's API defaults to its descriptor's for the network;
216
+ `VISA_<ID>_URL` overrides it and `off` turns it off. For Taskmarket that is
217
+ `VISA_TASKMARKET_URL`: its testnet on Tempo Moderato and `api.taskmarket.dev`
218
+ on mainnet. The live testnet currently refuses access-key signatures;
210
219
  the harness models requested support separately.
211
220
 
212
221
  `task_post` accepts `require_verified: "tap:identity:verified"` (verified workers),
@@ -366,7 +375,7 @@ exact message or, on a device, an explicit literal prefix using
366
375
  Permissions currently last at most five minutes and the current key expiry;
367
376
  renewal needs new owner consent. Hosted signatures require exact owner consent
368
377
  and an independent owner vote each time; a hosted repeat of the request waits up
369
- to 40 seconds for the owner. A hosted Taskmarket claim, submit or release needs
378
+ to 40 seconds for the owner. A Taskmarket claim, submit or release needs
370
379
  no clearance from the agent: Visa screens the task on every call and at the
371
380
  owner's approval, and refuses a changed or missing task before signing. A
372
381
  hosted connector is also served `task_status`, `task_action` and `task_post`:
@@ -429,7 +438,7 @@ Hosted discover searches by query. To price a URL, use discover with target in V
429
438
 
430
439
  A validation refusal describes the rejected input. It does not establish an earlier purchase’s outcome; read that purchase with payment_status and its original reference.
431
440
 
432
- A refused or unavailable task directs the agent to another permitted task. A task needing review directs it to Visa support; these refusals do not direct purchase-status reads.
441
+ A refused or unavailable task directs the agent to another permitted task. A task needing review tells the agent not to repost it and to choose another task (a person at Visa reviews it); these refusals do not direct purchase-status reads.
433
442
 
434
443
  For a signing input conflict, repeat sign_action with its original inputs and idempotency_key. The repeat_original_sign_action continuation refers to signing; payment_status retrieves purchases.
435
444