@trusty-squire/mcp 1.1.9-rc.9 → 1.1.10

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.
Files changed (71) hide show
  1. package/README.md +220 -77
  2. package/dist/api-client.d.ts +4 -2
  3. package/dist/api-client.d.ts.map +1 -1
  4. package/dist/api-client.js +15 -7
  5. package/dist/api-client.js.map +1 -1
  6. package/dist/bin.js +8 -11
  7. package/dist/bin.js.map +1 -1
  8. package/dist/bot/browser.d.ts +197 -9
  9. package/dist/bot/browser.d.ts.map +1 -1
  10. package/dist/bot/browser.js +2595 -489
  11. package/dist/bot/browser.js.map +1 -1
  12. package/dist/bot/google-login.d.ts +58 -4
  13. package/dist/bot/google-login.d.ts.map +1 -1
  14. package/dist/bot/google-login.js +568 -220
  15. package/dist/bot/google-login.js.map +1 -1
  16. package/dist/bot/install-completion.d.ts +2 -0
  17. package/dist/bot/install-completion.d.ts.map +1 -1
  18. package/dist/bot/install-completion.js +7 -1
  19. package/dist/bot/install-completion.js.map +1 -1
  20. package/dist/bot/login-state.d.ts.map +1 -1
  21. package/dist/bot/login-state.js +25 -18
  22. package/dist/bot/login-state.js.map +1 -1
  23. package/dist/bot/near-text-hint.js +1 -1
  24. package/dist/bot/near-text-hint.js.map +1 -1
  25. package/dist/bot/operator-profile-pool.d.ts +94 -0
  26. package/dist/bot/operator-profile-pool.d.ts.map +1 -0
  27. package/dist/bot/operator-profile-pool.js +882 -0
  28. package/dist/bot/operator-profile-pool.js.map +1 -0
  29. package/dist/bot/operator-recipe.d.ts +2 -2
  30. package/dist/bot/operator-recipe.d.ts.map +1 -1
  31. package/dist/bot/operator-recipe.js +31 -8
  32. package/dist/bot/operator-recipe.js.map +1 -1
  33. package/dist/bot/pay-operator.d.ts +36 -8
  34. package/dist/bot/pay-operator.d.ts.map +1 -1
  35. package/dist/bot/pay-operator.js +652 -430
  36. package/dist/bot/pay-operator.js.map +1 -1
  37. package/dist/bot/profile.d.ts +42 -0
  38. package/dist/bot/profile.d.ts.map +1 -1
  39. package/dist/bot/profile.js +447 -36
  40. package/dist/bot/profile.js.map +1 -1
  41. package/dist/bot/provision-session.d.ts +228 -8
  42. package/dist/bot/provision-session.d.ts.map +1 -1
  43. package/dist/bot/provision-session.js +1473 -626
  44. package/dist/bot/provision-session.js.map +1 -1
  45. package/dist/install/agents.d.ts.map +1 -1
  46. package/dist/install/agents.js +1 -1
  47. package/dist/install/agents.js.map +1 -1
  48. package/dist/install/cli.d.ts +5 -0
  49. package/dist/install/cli.d.ts.map +1 -1
  50. package/dist/install/cli.js +49 -23
  51. package/dist/install/cli.js.map +1 -1
  52. package/dist/install/ui.js +1 -1
  53. package/dist/install/ui.js.map +1 -1
  54. package/dist/server.d.ts.map +1 -1
  55. package/dist/server.js +93 -19
  56. package/dist/server.js.map +1 -1
  57. package/dist/skill-registry-client.d.ts +1 -1
  58. package/dist/skill-registry-client.js +1 -1
  59. package/dist/tools/index.d.ts +6 -4
  60. package/dist/tools/index.d.ts.map +1 -1
  61. package/dist/tools/index.js +39 -28
  62. package/dist/tools/index.js.map +1 -1
  63. package/dist/tools/operate-pay.d.ts +25 -9
  64. package/dist/tools/operate-pay.d.ts.map +1 -1
  65. package/dist/tools/operate-pay.js +409 -123
  66. package/dist/tools/operate-pay.js.map +1 -1
  67. package/dist/tools/provision-drive.d.ts +423 -52
  68. package/dist/tools/provision-drive.d.ts.map +1 -1
  69. package/dist/tools/provision-drive.js +914 -322
  70. package/dist/tools/provision-drive.js.map +1 -1
  71. package/package.json +4 -4
package/README.md CHANGED
@@ -14,27 +14,28 @@
14
14
  <a href="https://github.com/Trusty-Squire/trusty-squire/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="license" /></a>
15
15
  </p>
16
16
 
17
- <p align="center"><strong>Trusty Squire signs up / in to websites for you so you don’t have to.</strong></p>
17
+ <p align="center"><strong>Empower agents with auth and payments.</strong></p>
18
+ <p align="center">MCP tools to automate auth and pay — your keys and card never leave the vault.</p>
18
19
 
19
- Trusty Squire is an **MCP server that lets Claude Code, Codex, Cursor, OpenCode, Goose, and other coding agents create accounts on real websites and retrieve the API keys automatically** then saves each key in an encrypted, write-only vault instead of your chat, your code, or your `.env`. The raw provider secret never needs to enter the agent's context, so it can't be pasted into a commit or leaked in a log.
20
+ Trusty Squire is an **MCP server that lets Claude Code, Codex, Cursor, OpenCode, Goose, and other coding agents sign up, provision, and purchase on your behalf**. It opens a real browser, works through signup, sign-in, setup, and checkout flows one step at a time, clears the bot-detection and email-verification steps that make operator tools stall, and hands the job back to a person only when one is actually required. That covers wiring up OAuth and API keys for the app you're building as much as it covers paying a checkout, sending a gift, or booking something the same operator primitives drive all of it.
20
21
 
21
- It is not a secrets manager for keys you already have, and not a browser-automation framework you script per site. Point your agent at a service “set up Clerk and wire in the key” and Trusty Squire opens a real browser, works through signup or sign-in one step at a time, clears the bot-detection and email-verification steps that make operator tools stall, and captures the generated key. When a real person is required for phone verification, a hard CAPTCHA, 3-D Secure, an unsupported payment, or another decision, it stops and says so rather than pretending the signup completed.
22
-
23
- **Built to be handed the keys.** Provider secrets are write-only: the agent's credential tools return references and authenticated results, never stored plaintext. Backend access is a host-scoped, rate-limited, independently revocable grant, so a leaked token is killed without rotating the provider key — and you connect Google or GitHub yourself in a real browser, so the agent never types your password. Full [threat model below](#security-and-threat-model).
22
+ Provider secrets and payment cards are write-only: the agent's credential tools return references and authenticated results, never stored plaintext. The raw secret never needs to enter the agent's context, so it can't be pasted into a commit, leaked in a log, or read back out over chat. Backend access is a host-scoped, rate-limited, independently revocable grant, so a leaked token is killed without rotating the provider key and you connect Google or GitHub yourself in a real browser, so the agent never types your password. Full [threat model below](#security-and-threat-model).
24
23
 
25
24
  ## One prompt
26
25
 
27
26
  ```text
28
- Use Trusty Squire to create a Clerk account for this app, save the generated secret key, allow api.clerk.com for server-side requests, and wire it in without putting the raw key in chat, code, or .env.
27
+ Add Google OAuth to this app in one prompt: create the OAuth client, save the client secret, and wire it in without putting the raw key in chat, code, or .env.
29
28
  ```
30
29
 
31
30
  Your coding agent plans the job. Trusty Squire operates the website, stores the generated key, and can issue your backend a scoped grant. The backend calls the provider through Trusty Squire, which injects the provider key on the server side.
32
31
 
33
32
  Other useful asks:
34
33
 
34
+ - “Set up Stripe payments for this app and keep the API key out of this conversation.”
35
35
  - “Create a Render API key for deployment automation and keep it out of this conversation.”
36
- - “Set up OpenRouter without returning its API key to this conversation.”
37
36
  - “Pay this checkout with my saved work card and ask me to approve it on my phone.”
37
+ - “Send a gift to my friend without sharing their address with me.”
38
+ - “Book this dinner reservation for me.”
38
39
  - “That app grant leaked. Revoke it without rotating the provider key.”
39
40
 
40
41
  For supported card checkouts, save a card in the Vault from a passkey-capable
@@ -53,46 +54,95 @@ never shown, even after reveal. The Activity page also records card additions
53
54
  and removals, payments, and app-grant changes without storing a PAN or CVV.
54
55
 
55
56
  `operate_pay` requires a non-empty item and reason (calls that omit either
56
- receive a validation error). On a single-page checkout it reads the checkout total,
57
- sends you a short-lived approval link, and submits only after you approve the exact
58
- purchase. A clean visible labeled total wins; when none is readable, strict schema.org
59
- `Order`/`Invoice.totalPaymentDue` structured data can supply the amount and currency.
60
- Product and offer prices never qualify as checkout totals. Page currency notation is
61
- authoritative: Trusty Squire refuses to create an approval when it cannot resolve that
62
- notation, or when the displayed fractional precision conflicts with an agent-supplied
63
- fallback currency. Approval, 3-D Secure, Activity, and
64
- notification amounts use the currency's minor-unit precision (for example, whole
65
- yen for JPY and two decimals for USD). The anonymous approval page shows the
66
- merchant, checkout origin, amount and currency, item, and reason directly from the
67
- short-lived server record before one passkey ceremony authorizes those canonical
68
- payment values. You also see the requesting MCP client (for example, Hermes) and
69
- that a saved card will be used before clicking **Approve payment** to relay the
70
- operator-sealed final authorization. A first-time
71
- payment is refused if the merchant, checkout origin, amount, or currency changes
72
- between approval and submission.
73
-
74
- Some split checkouts collect the card before the final order-confirmation step. Their
75
- card-entry page must still expose a readable payable total:
76
- `operate_pay { phase: "fill_card" }` reads the live merchant, checkout origin, amount,
77
- and currency for the same phone approval, then fills the card without submitting. If
78
- the page total cannot be resolved, the call returns
79
- `payment_checkout_total_not_found` before creating an approval or filling any fields.
80
- It fills only the merchant's own HTTPS frames or recognized payment-provider frames.
81
- The card stays in the page as sealed, observation-masked fields while the agent
82
- advances to the review step; charge-like `operate_act` clicks and Enter are blocked
83
- during that interval. `operate_pay { phase: "confirm" }` then re-reads the visible
84
- total and charges only when its amount, currency, and checkout origin exactly match
85
- the approved values. A changed page title does not invalidate the merchant because
86
- the checkout origin is the trust anchor. A missing or conflicting total is never
87
- replaced with caller-supplied payment values.
88
-
89
- Before an initial single-page or `fill_card` call, a checkout that exposes PayPal
90
- Smart Buttons or PayPal-hosted fields is handed back before Trusty Squire selects a
91
- saved card or creates an approval. Trusty Squire does not sign in to PayPal or use
92
- vaulted PayPal credentials. If the issuer requires 3-D Secure, Trusty Squire notifies
93
- your linked Telegram chat and waits 180 seconds by default for you to complete
94
- the challenge in the open checkout instead of automating it. It reports a
95
- visible success or decline and hands an unresolved challenge back on timeout.
57
+ receive a validation error). On a single-page checkout it prefers a machine-read
58
+ checkout total, sends you a short-lived approval link, and submits only after you
59
+ approve the purchase. A clean visible labeled total wins; when none is readable,
60
+ strict schema.org `Order`/`Invoice.totalPaymentDue` structured data can supply the
61
+ amount and currency. If neither source exposes a total, caller-supplied
62
+ `amount_cents` and `currency` become the authoritative approval amount; an omitted
63
+ merchant name falls back to the checkout URL's hostname. Product and offer prices
64
+ never qualify as machine-read checkout totals. An unambiguous ISO currency on the
65
+ page remains authoritative. A notation that cannot identify one ISO currency by
66
+ itself, such as a shared currency symbol or an FX-preview selector, falls through to
67
+ the currency already selected or approved for the purchase instead of refusing the
68
+ checkout. Any live amount or currency drift still fails closed; the authoritative
69
+ binding contract lives in the [security model](SECURITY.md#client-encrypted-card-data).
70
+ Approval, 3-D Secure, Activity, and notification amounts use the currency's minor-unit
71
+ precision (for example, whole yen for JPY and two decimals for USD). The anonymous
72
+ approval page shows the merchant, checkout origin, amount and currency, item, and
73
+ reason directly from the short-lived server record before one passkey ceremony
74
+ authorizes those canonical payment values. You also see the requesting MCP client
75
+ (for example, Hermes) and that a saved card will be used before clicking **Approve
76
+ payment** to relay the operator-sealed final authorization. When the pre-submission
77
+ checkout can be machine-read, the payment is refused if its merchant, origin, amount,
78
+ or currency has changed since approval. If that resume read cannot recover a total,
79
+ Trusty Squire reuses the original mandate-bound checkout values. Card entry requires the PAN,
80
+ expiry, and CVV fields; cardholder name and other explicitly labeled billing fields
81
+ are filled best-effort, so a missing name field does not abort the payment. Sealing
82
+ and cleanup touch only those selected payment controls; merchant shipping address and
83
+ country controls remain untouched. A submit is reported as `payment_submitted` only
84
+ after the checkout reaches a new merchant order-confirmation URL with a substantive
85
+ order or receipt identity. The browser completes 3-D Secure natively, including
86
+ out-of-band bank-app challenges Trusty Squire never manipulates or intercepts the
87
+ challenge; it uses read-only checks while polling for that same order-confirmation
88
+ signal. A bare click that produces no confirmation and no detected challenge returns
89
+ `payment_outcome_unknown` instead of guessing that the charge succeeded. A detected
90
+ challenge that remains unresolved on timeout stays
91
+ `payment_3ds_required` with `needs_user.wall: "3ds"`, handing control back for user
92
+ completion. Neither status is success or permits blind resubmission: manually check
93
+ the merchant's order state before any retry.
94
+
95
+ Every payment response includes its `session_id`. Pass that same ID to every
96
+ follow-up `operate_pay` and canonical `operate_payment_status` call. Pass
97
+ `wait_seconds` (0-15, default 0) to bound-wait for a change instead of an instant
98
+ peek. Omitting `session_id` remains compatible only while this MCP process has
99
+ exactly one session; it never selects a newest or arbitrary checkout.
100
+
101
+ Some split checkouts collect the card before the final order-confirmation step. On the
102
+ card-entry page, `operate_pay { phase: "fill_card" }` first reads the live total. A
103
+ subtotal qualifies as that payable amount only when the same order summary says
104
+ shipping is free; recommendation and related-product prices are excluded. If that
105
+ page exposes no total, caller-supplied `amount_cents` and `currency` take precedence
106
+ as the approval amount. If they are omitted, Trusty Squire may use the most recent real
107
+ total observed earlier in the same browser session, such as the cart subtotal, only
108
+ when the checkout origin still matches. One phone approval
109
+ binds that amount and releases the card; Trusty Squire fills the card without
110
+ submitting and its role in the purchase ends there. It fills only the merchant's own
111
+ HTTPS frames or recognized payment-provider frames. The card stays in the page as
112
+ sealed, observation-masked fields while the agent advances to the review step and
113
+ places the order. Verify the live final total against the approved
114
+ `amount_cents`/currency yourself before placing the order; Trusty Squire no longer
115
+ re-reads the total or submits anything. For `click` and `js_click`, a control whose
116
+ label looks like pay/place-order may fire only once for that approval. A second
117
+ recognized attempt is refused and requires a fresh `operate_pay` approval in a new
118
+ session. Non-charge-labeled clicks, key presses, and `oauth_click` remain ungated.
119
+ After a recognized click dispatches, Trusty Squire best-effort records a secret-free
120
+ `payment_place_order_attempted` Activity event bound to the approval, optional
121
+ mandate, approved amount/currency, merchant, and opaque card reference. This records
122
+ an attempt, not a verified charge outcome.
123
+
124
+ `operate_pay { phase: "confirm" }` just releases the session's pending-fill lock and
125
+ reports the approved terms back — it makes no browser or provider call, records no
126
+ audit event itself, and never charges. It can be called any time after the fill — it does not
127
+ need to happen before you place the order, and it never reads a total or verifies an
128
+ amount. If a payment gets stuck or a card is declined, recover with `operate_finish`
129
+ and start a fresh session; `operate_pay` does not support refilling a different card
130
+ mid-session.
131
+
132
+ Before an initial single-page or `fill_card` call, Trusty Squire follows the actual
133
+ visible card-number field and hands the checkout back when that field is hosted by
134
+ PayPal or Braintree. A separate PayPal express button does not block fillable merchant
135
+ or Shopify PCI card fields. Trusty Squire does not sign in to PayPal or use vaulted
136
+ PayPal credentials. After any submit that has not yet reached a confirmed order,
137
+ Trusty Squire waits 180 seconds by default for native completion, including
138
+ out-of-band bank-app approval. A linked Telegram chat receives a challenge-specific
139
+ nudge when 3-D Secure is detected, or cautious bank-app guidance when no on-page
140
+ challenge appeared. Standard cross-processor 3-D Secure signals and recognized
141
+ CardinalCommerce or Stripe challenge frames classify the first case only when the
142
+ containing frame is visibly rendered. Hidden 3-D Secure Method pre-authentication and
143
+ captcha-hosted frames never count as 3-D Secure, and an ordinary Shopify PCI card-field
144
+ host alone does not either. It reports a visible decline and hands an unresolved outcome
145
+ back on timeout, noting whether the Telegram nudge actually went out.
96
146
  `three_ds_wait_seconds` accepts whole seconds from 0 to 600; set it to `0` on
97
147
  `operate_pay` to skip the notification and waiting and receive the handoff
98
148
  immediately.
@@ -118,17 +168,23 @@ npx @trusty-squire/mcp connect --target=codex
118
168
 
119
169
  Supported targets: `claude-code`, `cursor`, `codex`, `opencode`, `goose`, `cline`, `continue`, and `hermes`.
120
170
 
171
+ The isolated `operate_*` browser runtime currently requires Linux and a local Chrome connection;
172
+ remote CDP, macOS, and Windows operator sessions are not supported in this migration stage.
173
+
121
174
  ## What happens
122
175
 
123
- 1. Your coding agent names the website and the account, setup, or credential it needs.
124
- 2. Trusty Squire opens a real browser and works through the service flow one step at a time. It can use a Google or GitHub session that you explicitly connect.
125
- 3. When the site reveals an API key or client secret, Trusty Squire captures it into the vault without returning the raw value through its credential tools.
126
- 4. The agent can make an authenticated request through Trusty Squire or create a host-scoped, rate-limited app grant.
176
+ 1. Your coding agent names the website and the outcome it needs: an account,
177
+ authenticated setup, app publishing, a purchase, a gift, or a booking.
178
+ 2. Trusty Squire opens an isolated browser profile and works through the service flow one step at a time. It can use the Google identity you explicitly connected without opening the canonical login profile during the task.
179
+ 3. If the flow produces an API key or client secret, Trusty Squire captures it
180
+ into the vault without returning the raw value through its credential tools.
181
+ 4. The agent can make an authenticated request, create a host-scoped app grant,
182
+ or use a saved card for a supported checkout after you approve the purchase.
127
183
  5. Eligible successful flows can become signed registry skills, so later runs can replay verified steps instead of rediscovering every click.
128
184
 
129
- If a site requires phone verification, a hard CAPTCHA, an unsupported payment,
130
- 3-D Secure, or another human decision, the run stops and tells you. It does not
131
- guess or pretend the signup completed.
185
+ If a site requires phone verification, a hard CAPTCHA, an unresolved 3-D Secure
186
+ challenge, an unsupported payment method, or another human decision, the run
187
+ hands control back and tells you. It does not guess or pretend the task completed.
132
188
 
133
189
  ## Supported services
134
190
 
@@ -175,11 +231,11 @@ The result contains a host-scoped egress `base_url` and a `token`, not the Clerk
175
231
  - App grants are host-scoped, auditable, rate-limitable, and independently revocable. A leaked grant can be revoked without rotating the provider key.
176
232
  - You connect Google or GitHub in a real browser. Trusty Squire does not ask the coding agent to type those passwords.
177
233
  - Saved cards are encrypted in your browser with a passkey-derived key. For a
178
- payment, your phone releases the card only to that checkout's ephemeral local
179
- operator after one passkey authorization over the exact details already shown
180
- on the approval page. The API temporarily relays only operator-sealed card
181
- ciphertext and its signed mandate; successful operator confirmation clears
182
- those relay bytes.
234
+ single-page payment, your phone releases the card only after approving the
235
+ exact purchase details shown on the approval page. On a split checkout, one
236
+ amount-bound approval releases the card; Trusty Squire's role ends at the fill
237
+ and the caller places the order and verifies the final total itself. The API
238
+ temporarily relays only operator-sealed card ciphertext and its signed mandate.
183
239
  Trusty Squire's API and the coding-agent model never receive plaintext PAN or
184
240
  CVV. See the
185
241
  [security model](https://github.com/trusty-squire/trusty-squire/blob/main/SECURITY.md#client-encrypted-card-data)
@@ -196,6 +252,23 @@ for the system and data flows.
196
252
 
197
253
  ## MCP tools
198
254
 
255
+ The default MCP registry exposes 16 tools. The essential operator surface
256
+ is `operate_start`, `operate_observe`, `operate_act`, `operate_pay`,
257
+ `operate_payment_status`, `operate_finish`, `operate_recipe_run`, and
258
+ `operate_recipe_save` — every former standalone workflow/lifecycle/login tool
259
+ name was dropped and its behavior folded into `operate_act` as a `kind` (or into
260
+ `operate_finish`'s `outcome`); no delegating aliases remain. Poll payment status
261
+ via `operate_payment_status(wait_seconds)`.
262
+ The maintainer-only `list_extract_failures` → `get_extract_failure`
263
+ DOM-diagnostics pair is excluded from that surface; set
264
+ `TRUSTY_SQUIRE_DIAGNOSTICS=1` in the MCP server environment to opt into the
265
+ 18-tool diagnostics profile.
266
+
267
+ - Rejected tool calls return a JSON `error` envelope with a stable `code` and
268
+ message. Malformed and unknown calls fail only that request; they do not stop
269
+ the shared stdio process or discard its active in-memory operator session.
270
+ `server_unavailable` includes `retry.max_attempts: 1`: retry once, and never
271
+ kill or restart the shared operator process.
199
272
  - `operate_start`, `operate_observe`, and `operate_act` open a website, inspect
200
273
  the current state, and perform one browser action at a time. Ordinary controls
201
274
  inside same- and cross-origin frames are included in observations with a
@@ -205,28 +278,98 @@ for the system and data flows.
205
278
  must pass the same domain scope as `goto`/`allow_host`, opaque frames are
206
279
  refused, and `type_secret` never targets any cross-domain frame. Frame refs
207
280
  currently support `click`, `js_click`, `type`, `type_secret`, and `select`;
208
- `upload` and `oauth_click` fail closed. If a visible control has no observed
209
- ref, the four locator-capable actions (`click`, `js_click`, `type`, and
210
- `type_secret`) can use a live locator; that one-off fallback is not replayable.
211
- - `operate_extract` captures a generated credential into a sealed slot or the vault.
212
- - `operate_remember` saves a postcondition-verified local recipe under a closed
213
- task verb plus the service's registrable domain. It records stable target
281
+ `upload`, `oauth_click`, and `oauth_login` fail closed. If a visible control
282
+ has no observed ref, the four locator-capable actions (`click`, `js_click`,
283
+ `type`, and `type_secret`) can use a live locator; that one-off fallback is not
284
+ replayable.
285
+ In a live operator session, in-page XHR/fetch calls to merchant API sibling
286
+ subdomains are automatically in scope only when they share the registrable
287
+ domain of a host trusted at session start. Calls outside the session scope fail
288
+ promptly instead of hanging; page-load resources continue normally, and a
289
+ mid-session `allow_host` does not seed sibling-domain widening.
290
+ When DOM churn invalidates an `@e:` ref, `operate_act` returns `target_stale`
291
+ with the last observation generation, `reobserve_required: true`, best-effort
292
+ label-keyed `replacement_candidates`, and
293
+ `retry_policy: "do_not_retry_old_ref"`; re-observe and choose a current ref.
294
+ Malformed `operate_act` calls return `error.code: "invalid_arguments"` and an
295
+ `error.guidance` repair object with the allowed kinds, missing fields, a valid
296
+ example, and a safe alternative instead of only a validation string.
297
+ For a provider login, pass the observed provider-button ref to the atomic
298
+ `oauth_login` action. It retains the product tab across provider-owned popup
299
+ redirects and closes, then returns the post-login product observation even if
300
+ `detail` is `none`. `oauth_click` and `oauth_settle` remain for legacy replay
301
+ compatibility. If an observation races that legacy transition, the response
302
+ reports `oauth.state: "in_progress"` and directs the host to observe again.
303
+ - `operate_act` also owns eight consolidated workflow/lifecycle kinds — the
304
+ entire operator surface beyond navigation, payment, finish, and recipe
305
+ replay is reached through `operate_act`'s `kind`:
306
+ - `select_many` accepts an ordered label/ref-to-option map for coupled
307
+ variant, shipping, or similar selectors. It applies selections
308
+ sequentially, re-observes after every success, tolerates partial failure,
309
+ and returns each field's `selected` or `failed` outcome plus a current
310
+ observation.
311
+ - `cart_add` is the retry-safe add-to-cart path. Give it the canonical
312
+ product identity, selected-variant options hash, and a stable idempotency
313
+ key; it post-verifies the exact cart line and returns `added` or
314
+ `already_in_cart`, `cart_delta` (`+1`, `0`, or `unknown`), and the canonical
315
+ cart URL when observable, without clicking again for the same product and
316
+ variant. Cart and checkout observations expose an informational,
317
+ best-effort `checkout_state` with stage, product and variant identity,
318
+ quantity, separately observed subtotal and shipping, payable total when
319
+ known, canonical cart URL, and one `next_action`. The `single` and
320
+ `fill_card` payment phases derive their authoritative approval amount
321
+ independently of this state, preferring live checkout data according to the
322
+ payment guide above.
323
+ - `extract` captures a generated credential into a sealed slot or the vault.
324
+ - `solve_captcha` drives the in-session captcha gate and returns the
325
+ fail-fast `needs_user` handoff when it cannot be cleared.
326
+ - `await_verification` reads the user's own inbox for an email verification
327
+ code/link, with sender-scoped search, explicit inbox consent, and
328
+ sealed-OTP transfer through `into_slot`.
329
+ - `login_prepare_signup`, `login_store_signup`, and `login_load_saved` own
330
+ the sealed username/password lifecycle. `login_prepare_signup` seals the
331
+ user's captured email and a generated password, `login_store_signup`
332
+ vaults those slots with explicit login-host policy, and `login_load_saved`
333
+ retrieves an allowed saved login through encrypted browser-fill into
334
+ sealed session slots. Raw values never enter the tool result.
335
+ - Observed card controls are marked `payment_field` and
336
+ `interaction: "vaulted_card_only"`, with `operate_pay { phase: "fill_card" }`
337
+ as the recommended action. Typing a Luhn-valid, card-number-shaped value
338
+ manually through `operate_act` is refused with `safe_alternative: "operate_pay"`
339
+ and the missing prerequisite `verified_cart_total`.
340
+ - `operate_finish` closes the session and optionally accepts a nested `outcome`.
341
+ `none` only closes; `credentials` requires `store` and preserves credential
342
+ extraction, vault storage, and auto-promotion; `result` requires `summary` or
343
+ `data` and can run `verify_recipe` before closing. Finish first stops new
344
+ calls and drains calls already using that session. Payment state never blocks
345
+ teardown: finish clears any remaining payment state and destroys, rather than
346
+ pools, a payment-sensitive browser profile.
347
+ - `operate_recipe_save` saves a postcondition-verified local recipe under a
348
+ closed task verb plus the service's registrable domain. It records stable target
214
349
  attributes and exact provenance for Squire-supplied values, not observed refs
215
350
  or plaintext secrets. Recipes that pass a share-eligibility check (no
216
351
  personal or secret-shaped literals) and a registrable-domain lock are also
217
352
  written live to the shared registry, making them immediately reusable by
218
- other installs without a promotion step. `operate_use` binds the replaying
219
- user's own values and replays those steps, preferring the local recipe and
220
- falling back to the shared one. A recipe cannot navigate outside the site it
221
- was recorded for; normal keyed replay refuses a violation before navigation
222
- and continues with cold driving. On one ordinary missed step, replay returns
223
- a local repair point and can continue in the same session. Older name-only
224
- recipes remain planning hints.
353
+ other installs without a promotion step. `operate_recipe_run` binds the
354
+ replaying user's own values and replays those steps, preferring the local
355
+ recipe and falling back to the shared one. A recipe cannot navigate outside
356
+ the site it was recorded for; normal keyed replay refuses a violation before
357
+ navigation and continues with cold driving. On one ordinary missed step,
358
+ replay returns a local repair point and can continue in the same session.
359
+ Older name-only recipes remain planning hints.
225
360
  - `list_payment_cards` returns saved-card labels and opaque references;
226
- `operate_pay` can use a selected card, the only card on file, or a just-in-time
227
- add-card approval, then fills the checkout and waits for the user to resolve
228
- 3-D Secure before handing back unresolved challenges. It also supports the
229
- two-phase `fill_card` then `confirm` flow for split checkouts described above.
361
+ `operate_pay` accepts an explicit `session_id` and `phase` of `"single"`
362
+ (the default, also implied by omitting phase), `"fill_card"`, or `"confirm"`.
363
+ It can use a selected card, the only card on file, or a just-in-time
364
+ add-card approval. The single-page flow fills the checkout and applies the
365
+ post-submit outcome wait described above before handing back unresolved
366
+ outcomes. Split checkouts use the `fill_card` then `confirm` flow described
367
+ above.
368
+ `operate_payment_status` follows the [payment guide](#one-prompt) polling
369
+ contract. It returns the session ID and includes it in every follow-up tool
370
+ hint, so an approval is always resumed in its originating browser. Malformed calls return the same
371
+ `error.guidance` repair fields as `operate_act`, including a safe resolution
372
+ when `card_ref` and `card_label` conflict.
230
373
  - `list_credentials` and `use_credential` find saved credentials and make authenticated API calls without returning raw values.
231
374
  - `grant_app_access` and `revoke_app_access` create and remove scoped backend access.
232
375
  - `audit_log` reports credential activity without exposing credential values.
@@ -262,7 +405,7 @@ trusty-squire/
262
405
  └── recipe-schema/ Shared wire schema for operator replay recipes
263
406
  ```
264
407
 
265
- Product and public-web changes should follow [PRODUCT.md](https://github.com/trusty-squire/trusty-squire/blob/main/PRODUCT.md) and [DESIGN.md](https://github.com/trusty-squire/trusty-squire/blob/main/DESIGN.md).
408
+ Product and public-web changes should follow [PRODUCT.md](https://github.com/trusty-squire/trusty-squire/blob/main/docs/PRODUCT.md) and [DESIGN.md](https://github.com/trusty-squire/trusty-squire/blob/main/docs/DESIGN.md).
266
409
 
267
410
  ## License
268
411
 
@@ -118,7 +118,7 @@ export declare class ApiClient {
118
118
  agent: string;
119
119
  expires_at: string;
120
120
  }>;
121
- getPaymentApproval(id: string, waitForSubmission?: boolean): Promise<PaymentApproval>;
121
+ getPaymentApproval(id: string, candidateRead?: boolean | "immediate" | "peek" | "wait-peek"): Promise<PaymentApproval>;
122
122
  confirmPaymentApproval(id: string, submission: {
123
123
  jws: string;
124
124
  sealed_card: string;
@@ -132,7 +132,7 @@ export declare class ApiClient {
132
132
  id: string;
133
133
  label: string;
134
134
  }>>;
135
- notifyThreeDs(approvalId: string): Promise<{
135
+ notifyThreeDs(approvalId: string, mode: "detected_challenge" | "possible_out_of_band"): Promise<{
136
136
  sent: boolean;
137
137
  }>;
138
138
  auditPayment(input: {
@@ -142,6 +142,8 @@ export declare class ApiClient {
142
142
  last4: string;
143
143
  status: string;
144
144
  mandate_id?: string;
145
+ card_ref?: string;
146
+ approval_id?: string;
145
147
  }): Promise<{
146
148
  id: string;
147
149
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAMA,qBAAa,mBAAoB,SAAQ,KAAK;;CAO7C;AAED,qBAAa,YAAa,SAAQ,KAAK;aAEnB,MAAM,EAAE,MAAM;aACd,IAAI,EAAE,MAAM;aAEZ,IAAI,CAAC,EAAE,OAAO;gBAHd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EAC5B,OAAO,EAAE,MAAM,EACC,IAAI,CAAC,EAAE,OAAO,YAAA;CAKjC;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IAErB,aAAa,CAAC,EAAE,MAAM,CAAC;IAMvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;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O,EAAE,MAAM,EACf,SAAS,GAAE,OAAO,KAAa,GAC9B,OAAO,CAAC,MAAM,CAAC,CAejB"}
@@ -43,8 +43,16 @@ export class ApiClient {
43
43
  async createPaymentApproval(input) {
44
44
  return this.post("/v1/pay/approvals", input);
45
45
  }
46
- async getPaymentApproval(id, waitForSubmission = false) {
47
- const query = waitForSubmission ? "?wait_for_submission=1" : "";
46
+ async getPaymentApproval(id, candidateRead = false) {
47
+ const query = candidateRead === true
48
+ ? "?wait_for_submission=1"
49
+ : candidateRead === "immediate"
50
+ ? "?read_submission=1"
51
+ : candidateRead === "peek"
52
+ ? "?peek_submission=1"
53
+ : candidateRead === "wait-peek"
54
+ ? "?wait_for_submission=1&peek_submission=1"
55
+ : "";
48
56
  return this.get(`/v1/pay/approvals/${encodeURIComponent(id)}${query}`);
49
57
  }
50
58
  async confirmPaymentApproval(id, submission) {
@@ -63,11 +71,8 @@ export class ApiClient {
63
71
  const records = await this.get("/v1/vault/e2e");
64
72
  return records.map(({ id, label }) => ({ id, label }));
65
73
  }
66
- async notifyThreeDs(approvalId) {
67
- // Empty object, NOT undefined: post() always sends Content-Type: application/json,
68
- // and an empty body with that header trips Fastify's FST_ERR_CTP_EMPTY_JSON_BODY (400).
69
- // The route ignores the body, so {} satisfies the JSON parser harmlessly.
70
- return this.post(`/v1/pay/approvals/${encodeURIComponent(approvalId)}/notify-3ds`, {});
74
+ async notifyThreeDs(approvalId, mode) {
75
+ return this.post(`/v1/pay/approvals/${encodeURIComponent(approvalId)}/notify-3ds`, { mode });
71
76
  }
72
77
  async auditPayment(input) {
73
78
  return this.post("/v1/vault/payments/audit", {
@@ -77,6 +82,8 @@ export class ApiClient {
77
82
  last4: input.last4,
78
83
  status: input.status,
79
84
  ...(input.mandate_id !== undefined ? { mandateId: input.mandate_id } : {}),
85
+ ...(input.card_ref !== undefined ? { cardRef: input.card_ref } : {}),
86
+ ...(input.approval_id !== undefined ? { approvalId: input.approval_id } : {}),
80
87
  });
81
88
  }
82
89
  // Metadata list of every credential in the account's vault — no
@@ -302,6 +309,7 @@ export async function shortenVncUrl(apiBaseUrl, longUrl, fetchImpl = fetch) {
302
309
  method: "POST",
303
310
  headers: { "Content-Type": "application/json" },
304
311
  body: JSON.stringify({ url: longUrl }),
312
+ signal: AbortSignal.timeout(5_000),
305
313
  });
306
314
  if (!res.ok)
307
315
  return longUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,EAAE;AACF,oEAAoE;AACpE,iEAAiE;AACjE,+DAA+D;AAE/D,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC5C;QACE,KAAK,CACH,gHAAgH,CACjH,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,KAAK;IAEnB;IACA;IAEA;IAJlB,YACkB,MAAc,EACd,IAAY,EAC5B,OAAe,EACC,IAAc;QAE9B,KAAK,CAAC,OAAO,CAAC,CAAC;QALC,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAQ;QAEZ,SAAI,GAAJ,IAAI,CAAU;QAG9B,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAkGD,MAAM,OAAO,SAAS;IAIS;IAHZ,SAAS,CAAe;IACjC,eAAe,CAAqB;IAE5C,YAA6B,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;QAClD,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;IACzC,CAAC;IAED,kBAAkB,CAAC,IAAY;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC;IAC9E,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