@tempoxyz/mercator 0.0.613 → 0.0.616

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.
@@ -58,7 +58,7 @@ If payment capability is uncertain, or `create_job` unexpectedly requests paymen
58
58
  Mercator spending within its signed limits; do not ask for per-job spend approval. Respect any explicit user budget
59
59
  and execute only the requested actions. Legacy `mcp_challenge` clients have no hosted grant:
60
60
  get quote approval or use a sufficient explicit budget before paid execution, including REST fallback.
61
- 5. **Submit once.** Generate one stable 8-200 character idempotency key and call `create_job` with
61
+ 5. **Submit once.** Generate and persist one stable 8-200 character `idempotency_key` and call `create_job` with
62
62
  the unchanged quoted plan and `totalAmount` as `approved_total`.
63
63
  - Changed quote: no charge occurs. Quote again and continue only within the access-key limits and
64
64
  any explicit user budget. Legacy clients need approval unless that budget covers the new total.
@@ -66,7 +66,7 @@ If payment capability is uncertain, or `create_job` unexpectedly requests paymen
66
66
  receives no wallet private key.
67
67
  - Legacy client: complete the payment challenge through MCP metadata.
68
68
  - Failed MCP submission and one identical retry: use REST only when the host already has a ready
69
- local Mercator wallet. Keep the plan, idempotency key, and approved total unchanged. Obtain quote
69
+ local Mercator wallet. Keep the plan, `idempotency_key`, and approved total unchanged. Obtain quote
70
70
  approval or stay within an explicit budget; the hosted grant does not authorize the local wallet.
71
71
  - Never install, create, or connect a wallet for fallback.
72
72
  6. **Listen for completion.** Persist the returned `jobId` immediately; it is the only status and
@@ -83,11 +83,17 @@ Ask for that address; do not invent it or quietly remove the email step.
83
83
 
84
84
  ## MCP submission and status
85
85
 
86
- After quoting, call `create_job` once with the unchanged quoted plan, a stable idempotency key, and
87
- the quoted `totalAmount` as `approved_total`. OAuth-connected hosts charge the bounded wallet
88
- inside Mercator. Legacy challenge clients require quote approval or a sufficient explicit budget
89
- before completing payment through MCP metadata, including after a price change. Never install a
90
- CLI or translate MCP submission into a REST request.
86
+ 1. Generate and persist an 8–200 character `idempotency_key` before submission; a UUID works.
87
+ 2. Call `create_job` once with the unchanged quoted plan, that key, and the quoted `totalAmount` as
88
+ `approved_total`.
89
+ 3. After a timeout or lost response, retry with the same plan, key, and approved total.
90
+
91
+ - Use a new key for a new logical job. A new key during recovery can create a second paid job.
92
+ - Omitting the key fails validation. Never reuse a key with a changed plan.
93
+ - OAuth-connected hosts charge the bounded wallet inside Mercator.
94
+ - Legacy challenge clients require quote approval or a sufficient explicit budget, including after
95
+ a price change.
96
+ - Never install a CLI or translate MCP submission into a REST request.
91
97
 
92
98
  A successful submission returns either a terminal job or a pending response:
93
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempoxyz/mercator",
3
- "version": "0.0.613",
3
+ "version": "0.0.616",
4
4
  "description": "Connect agent clients to the Mercator remote MCP server",
5
5
  "type": "module",
6
6
  "bin": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@inquirer/checkbox": "5.2.1",
56
- "accounts": "https://pkg.pr.new/tempoxyz/accounts@815",
56
+ "accounts": "https://pkg.pr.new/tempoxyz/accounts@c47231ae794effbb010671f21c38afea41492ff6",
57
57
  "incur": "0.5.1",
58
58
  "jsonc-parser": "3.3.1",
59
59
  "mppx": "https://pkg.pr.new/mppx@6e56b36",