@relyon/kit 0.0.0-stage → 1.0.0

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 (225) hide show
  1. package/AGENTS.md +75 -0
  2. package/CHANGELOG.md +1053 -0
  3. package/LICENSE +21 -0
  4. package/QUICKSTART.md +239 -0
  5. package/README.md +117 -2
  6. package/dist/adapters/express.d.ts +39 -0
  7. package/dist/adapters/express.js +106 -0
  8. package/dist/adapters/hono.d.ts +16 -0
  9. package/dist/adapters/hono.js +15 -0
  10. package/dist/adapters/next.d.ts +29 -0
  11. package/dist/adapters/next.js +38 -0
  12. package/dist/agent-card.d.ts +14 -0
  13. package/dist/agent-card.js +58 -0
  14. package/dist/agent-docs.d.ts +36 -0
  15. package/dist/agent-docs.js +78 -0
  16. package/dist/agent-hooks.d.ts +66 -0
  17. package/dist/agent-hooks.js +280 -0
  18. package/dist/agents.d.ts +24 -0
  19. package/dist/agents.js +120 -0
  20. package/dist/api-key.d.ts +6 -0
  21. package/dist/api-key.js +33 -0
  22. package/dist/cache.d.ts +46 -0
  23. package/dist/cache.js +86 -0
  24. package/dist/cart-tokens.d.ts +31 -0
  25. package/dist/cart-tokens.js +58 -0
  26. package/dist/cart-transfer.d.ts +95 -0
  27. package/dist/cart-transfer.js +387 -0
  28. package/dist/catalog-enrichment.d.ts +6 -0
  29. package/dist/catalog-enrichment.js +71 -0
  30. package/dist/catalog-reads.d.ts +126 -0
  31. package/dist/catalog-reads.js +104 -0
  32. package/dist/catalog.d.ts +78 -0
  33. package/dist/catalog.js +288 -0
  34. package/dist/charge-claims.d.ts +11 -0
  35. package/dist/charge-claims.js +47 -0
  36. package/dist/check.d.ts +44 -0
  37. package/dist/check.js +152 -0
  38. package/dist/checklist-manifest.d.ts +72 -0
  39. package/dist/checklist-manifest.js +341 -0
  40. package/dist/checkout.d.ts +222 -0
  41. package/dist/checkout.js +353 -0
  42. package/dist/cli.d.ts +2 -0
  43. package/dist/cli.js +727 -0
  44. package/dist/confirmation.d.ts +78 -0
  45. package/dist/confirmation.js +124 -0
  46. package/dist/context.d.ts +81 -0
  47. package/dist/context.js +10 -0
  48. package/dist/discovery.d.ts +151 -0
  49. package/dist/discovery.js +346 -0
  50. package/dist/doctor-cart-transfer.d.ts +33 -0
  51. package/dist/doctor-cart-transfer.js +186 -0
  52. package/dist/doctor-catalog.d.ts +8 -0
  53. package/dist/doctor-catalog.js +47 -0
  54. package/dist/doctor-evidence.d.ts +22 -0
  55. package/dist/doctor-evidence.js +57 -0
  56. package/dist/doctor-merchant.d.ts +48 -0
  57. package/dist/doctor-merchant.js +74 -0
  58. package/dist/doctor-source.d.ts +5 -0
  59. package/dist/doctor-source.js +142 -0
  60. package/dist/doctor-variants.d.ts +70 -0
  61. package/dist/doctor-variants.js +102 -0
  62. package/dist/doctor.d.ts +215 -0
  63. package/dist/doctor.js +1689 -0
  64. package/dist/events.d.ts +95 -0
  65. package/dist/events.js +200 -0
  66. package/dist/feed-mapping.d.ts +114 -0
  67. package/dist/feed-mapping.js +152 -0
  68. package/dist/feed-values.d.ts +13 -0
  69. package/dist/feed-values.js +40 -0
  70. package/dist/feeds.d.ts +104 -0
  71. package/dist/feeds.js +366 -0
  72. package/dist/identify.d.ts +102 -0
  73. package/dist/identify.js +124 -0
  74. package/dist/identity.d.ts +37 -0
  75. package/dist/identity.js +54 -0
  76. package/dist/index.d.ts +42 -0
  77. package/dist/index.js +41 -0
  78. package/dist/init.d.ts +157 -0
  79. package/dist/init.js +912 -0
  80. package/dist/kit-config.d.ts +19 -0
  81. package/dist/kit-config.js +43 -0
  82. package/dist/kit-environment.d.ts +20 -0
  83. package/dist/kit-environment.js +32 -0
  84. package/dist/kit-updates.d.ts +47 -0
  85. package/dist/kit-updates.js +77 -0
  86. package/dist/kit-version-project.d.ts +18 -0
  87. package/dist/kit-version-project.js +214 -0
  88. package/dist/kit-version.d.ts +37 -0
  89. package/dist/kit-version.js +162 -0
  90. package/dist/kit.d.ts +516 -0
  91. package/dist/kit.js +1309 -0
  92. package/dist/layers/pages.d.ts +3 -0
  93. package/dist/layers/pages.js +5 -0
  94. package/dist/layers/payments.d.ts +7 -0
  95. package/dist/layers/payments.js +9 -0
  96. package/dist/layers/products.d.ts +10 -0
  97. package/dist/layers/products.js +13 -0
  98. package/dist/live.d.ts +13 -0
  99. package/dist/live.js +52 -0
  100. package/dist/mcp.d.ts +270 -0
  101. package/dist/mcp.js +312 -0
  102. package/dist/next-steps.d.ts +101 -0
  103. package/dist/next-steps.js +257 -0
  104. package/dist/order-pending.d.ts +57 -0
  105. package/dist/order-pending.js +127 -0
  106. package/dist/orders.d.ts +12 -0
  107. package/dist/orders.js +21 -0
  108. package/dist/payments-init.d.ts +19 -0
  109. package/dist/payments-init.js +70 -0
  110. package/dist/payments-routes.d.ts +54 -0
  111. package/dist/payments-routes.js +123 -0
  112. package/dist/payments.d.ts +165 -0
  113. package/dist/payments.js +192 -0
  114. package/dist/pnpm-workspace.d.ts +58 -0
  115. package/dist/pnpm-workspace.js +250 -0
  116. package/dist/policies.d.ts +111 -0
  117. package/dist/policies.js +317 -0
  118. package/dist/preview-hosts.d.ts +64 -0
  119. package/dist/preview-hosts.js +175 -0
  120. package/dist/private-config.d.ts +169 -0
  121. package/dist/private-config.js +820 -0
  122. package/dist/progress.d.ts +54 -0
  123. package/dist/progress.js +153 -0
  124. package/dist/protocol-inputs.d.ts +22 -0
  125. package/dist/protocol-inputs.js +151 -0
  126. package/dist/public-origin.d.ts +50 -0
  127. package/dist/public-origin.js +180 -0
  128. package/dist/refusals.d.ts +86 -0
  129. package/dist/refusals.js +157 -0
  130. package/dist/relay.d.ts +107 -0
  131. package/dist/relay.js +655 -0
  132. package/dist/release-notes.d.ts +2 -0
  133. package/dist/release-notes.js +290 -0
  134. package/dist/relyon-cart-tokens.d.ts +101 -0
  135. package/dist/relyon-cart-tokens.js +521 -0
  136. package/dist/relyon.d.ts +141 -0
  137. package/dist/relyon.js +238 -0
  138. package/dist/robots.d.ts +27 -0
  139. package/dist/robots.js +127 -0
  140. package/dist/rules.d.ts +144 -0
  141. package/dist/rules.js +347 -0
  142. package/dist/sdk/generated/public-api.d.ts +4816 -0
  143. package/dist/sdk/generated/public-api.js +1 -0
  144. package/dist/sdk/index.d.ts +24 -0
  145. package/dist/sdk/index.js +34 -0
  146. package/dist/sdk/signatures.d.ts +17 -0
  147. package/dist/sdk/signatures.js +33 -0
  148. package/dist/setup.d.ts +37 -0
  149. package/dist/setup.js +94 -0
  150. package/dist/signatures.d.ts +112 -0
  151. package/dist/signatures.js +443 -0
  152. package/dist/state.d.ts +185 -0
  153. package/dist/state.js +96 -0
  154. package/dist/store-payments.d.ts +48 -0
  155. package/dist/store-payments.js +143 -0
  156. package/dist/structured-fields.d.ts +26 -0
  157. package/dist/structured-fields.js +200 -0
  158. package/dist/templates.d.ts +19 -0
  159. package/dist/templates.js +193 -0
  160. package/dist/test-checkout-command.d.ts +32 -0
  161. package/dist/test-checkout-command.js +161 -0
  162. package/dist/test-checkout.d.ts +88 -0
  163. package/dist/test-checkout.js +292 -0
  164. package/dist/types.d.ts +103 -0
  165. package/dist/types.js +18 -0
  166. package/dist/ucp-versions.d.ts +57 -0
  167. package/dist/ucp-versions.js +129 -0
  168. package/dist/util.d.ts +23 -0
  169. package/dist/util.js +68 -0
  170. package/dist/variants.d.ts +67 -0
  171. package/dist/variants.js +146 -0
  172. package/dist/version.d.ts +9 -0
  173. package/dist/version.js +10 -0
  174. package/dist/waiting.d.ts +43 -0
  175. package/dist/waiting.js +57 -0
  176. package/dist/webhook-command.d.ts +48 -0
  177. package/dist/webhook-command.js +367 -0
  178. package/dist/webhook-registration.d.ts +47 -0
  179. package/dist/webhook-registration.js +69 -0
  180. package/dist/webmcp-schema.d.ts +14 -0
  181. package/dist/webmcp-schema.js +140 -0
  182. package/dist/webmcp-script.d.ts +3 -0
  183. package/dist/webmcp-script.js +176 -0
  184. package/dist/webmcp-store.d.ts +102 -0
  185. package/dist/webmcp-store.js +116 -0
  186. package/dist/webmcp.d.ts +242 -0
  187. package/dist/webmcp.js +866 -0
  188. package/dist/wire-names.d.ts +85 -0
  189. package/dist/wire-names.js +109 -0
  190. package/package.json +118 -4
  191. package/release-notes.json +290 -0
  192. package/scripts/install-notice.cjs +7 -0
  193. package/skills/relyon-agents/SKILL.md +327 -0
  194. package/skills/relyon-catalog/SKILL.md +499 -0
  195. package/skills/relyon-catalog/references/example-store.md +218 -0
  196. package/skills/relyon-checkout/SKILL.md +603 -0
  197. package/skills/relyon-checkout/references/checkout-flow.md +257 -0
  198. package/skills/relyon-checkout/references/checkout-page.md +315 -0
  199. package/skills/relyon-go-live/SKILL.md +344 -0
  200. package/skills/relyon-orders/SKILL.md +191 -0
  201. package/skills/relyon-orders/references/webhook-receiver.md +113 -0
  202. package/skills/relyon-payments/SKILL.md +117 -0
  203. package/skills/relyon-setup/SKILL.md +1061 -0
  204. package/skills/relyon-setup/references/QUICKSTART.md +239 -0
  205. package/skills/relyon-setup/references/durable-state.md +209 -0
  206. package/skills/relyon-setup/references/express-server.md +388 -0
  207. package/skills/relyon-setup/references/next-app-router.md +251 -0
  208. package/templates/common/STORE-README.md +67 -0
  209. package/templates/common/gitignore +8 -0
  210. package/templates/common/scripts/check-pricing.ts +22 -0
  211. package/templates/common/scripts/serve.mjs +13 -0
  212. package/templates/common/server/catalog.ts +79 -0
  213. package/templates/common/server/checkout-flow.d.ts +34 -0
  214. package/templates/common/server/pages.ts +184 -0
  215. package/templates/common/server/storage.ts +114 -0
  216. package/templates/common/server/store.ts +67 -0
  217. package/templates/express/server/express.ts +20 -0
  218. package/templates/express/tsconfig.build.json +6 -0
  219. package/templates/express/tsconfig.json +9 -0
  220. package/templates/next/app/[[...path]]/route.ts +24 -0
  221. package/templates/next/next.config.mjs +19 -0
  222. package/templates/next/tsconfig.json +12 -0
  223. package/templates/payments/express.ts +39 -0
  224. package/templates/payments/next.ts +38 -0
  225. package/templates/payments/node.ts +39 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1053 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@relyon/kit`. Versions before 1.0.0 were published as `@relyon/store-kit`,
4
+ which is now a thin wrapper around this package. The kit follows semantic versioning.
5
+
6
+ ## 1.0.0 (Unpublished)
7
+
8
+ Unpublished.
9
+
10
+ ### Added
11
+
12
+ - **Three layers.** `npx @relyon/kit init` asks which layer the app needs (or takes `--payments`, `--products` or `--pages`): card payments in your own app; also listing products so AI shopping agents can find and buy them; or also having the kit build the shopping pages. Non-interactive runs without a flag refuse instead of guessing.
13
+ - **Payments only.** Payments mode installs the payment helpers (payment session, card fields, charge, refund and webhook verification) and an agent-instructions block, for Express, Next.js or a plain Node server, plus the relyon-payments skill when the package carries it. The webhook helper accepts Relyon's `X-Relyon-Signature` header as well as `Relyon-Signature`. It adds no catalog, feeds, /cart page or store hostnames.
14
+ - **`npx @relyon/kit check`.** Four checks for a payments-only app, ending with DONE: a Test key is present, a payment session can be created, a mock Test charge succeeds and a webhook signature verifies.
15
+ - **Project-space names.** `createKit` and its options, `PUBLIC_URL` (with `STORE_PUBLIC_URL` still accepted) and `RELYON_PROJECT_SPACE` (optional in a single-space workspace).
16
+ - **Project-space wire names.** Every call to Relyon names its project space with `Relyon-Project-Space` (the ID from `RELYON_PROJECT_SPACE` or `projectSpace.id`) and `Relyon-Project-Space-Hostname`; policies are read and replaced on `/v1/project_space_policies`. A `project_space_required` refusal says to set `RELYON_PROJECT_SPACE` to the project space's ID. Answers in the old shape are still understood (the `store_policies` object and the `store_policy_incomplete` and `store_archived` codes, read as `project_space_policy_incomplete` and `project_space_archived`), and against an API that predates the rename, policies fall back to `/v1/store_policies`.
17
+
18
+ ### Changed
19
+
20
+ - **/cart only for shopping pages.** The doctor requires a /cart page only for the shopping-pages layer.
21
+ - **`@relyon/store-kit` is a wrapper.** It keeps every export, subpath and command, and its CLI points users to `@relyon/kit`.
22
+
23
+ ## 0.1.52 (Unpublished)
24
+
25
+ Unpublished.
26
+
27
+ ### Added
28
+
29
+ - **Live by env var.** A store generated from the kit template maps `RELYON_LIVE=true` to the `relyon.live` option (alongside the existing `RELYON_API_KEY`/`STORE_PUBLIC_URL` mapping), so switching a deployed store to Live needs no code change. The double opt-in is unchanged: Live needs a `rly_live_…` key and `RELYON_LIVE=true`, and each without the other is refused with a clear error.
30
+ - **Ordered post-approval steps for agents.** The go-live skill now walks a coding agent through activating Live after staff approval and the merchant's explicit instruction: set `RELYON_API_KEY`, `RELYON_LIVE=true` and `STORE_PUBLIC_URL` from the merchant's own values, redeploy, run `doctor --live` and iterate on failures. The agent still never asks for or pastes a Live key value, and staff approval still gates Live.
31
+
32
+ ### Changed
33
+
34
+ - **The final `@relyon/store-kit` release.** It is a thin wrapper around `@relyon/kit` 1.0.0 and keeps every export, subpath and command, so it now sends the project-space wire names (`Relyon-Project-Space`, `Relyon-Project-Space-Hostname` and `/v1/project_space_policies`). Its CLI points users to `@relyon/kit`; new installs should use `@relyon/kit`.
35
+
36
+ ## 0.1.51 (Unpublished)
37
+
38
+ Unpublished.
39
+
40
+ ### Added
41
+
42
+ - **Google Pay in checkout.** When the merchant enables it (Settings → Payments, as the workspace default or per store) and the store's TRX account has Google Pay enabled, the card fields component renders a Google Pay button; a completed sheet submits the wallet token immediately, because its cardSecurity expires about a minute after the sheet closes. A failed or cancelled sheet charges nothing. Card payments are unchanged either way.
43
+ - **Wallet tokens on the checkout page.** The checkout server route accepts the wallet_token payment shape from the card fields component and passes it to Relyon untouched.
44
+ - **Docs.** The store kit reference documents the toggle, the TRX account-enablement prerequisite (integrations@trxservices.com), and the one-minute submit window.
45
+
46
+ ## 0.1.50
47
+
48
+ Published.
49
+
50
+ ### Added
51
+
52
+ - **A real cart page is required.** Setup and checkout guidance now require /cart alongside the home, product, checkout and policy pages. A drawer does not replace the cart page.
53
+ - **Cart page doctor check.** The kit checks /cart for a real 200 HTML page and an on-store checkout link, distinguishes inaccessible pages from missing pages, and rejects an unknown-path catch-all. The required cart-page check is appended in checklist manifest v4.
54
+ - **Framework references.** Express shows priced cart lines, totals, an empty state and a 303 add-to-cart redirect. Next.js includes a server-rendered cart page and a separate add handler, keeping kit imports on the server.
55
+
56
+ ## 0.1.45
57
+
58
+ Published. Brief 89d.
59
+
60
+ ### Security
61
+
62
+ - **Sandbox creation is authenticated.** `POST /v1/sandboxes` no longer creates unowned sandboxes for anonymous callers: the caller is a signed-in workspace admin or a Test key holding the new `sandboxes:write` grant, and the sandbox belongs to the caller's organization from the start, so there is no claim link (the claim endpoint remains for sandboxes created before this change). Creation is limited per caller and per network, and every attempt — created, unauthenticated, refused or rate-limited — is audited without recording any key.
63
+
64
+ ### Fixed
65
+
66
+ - **A webhook 409 explains itself.** When Relyon answers that an endpoint already exists for the store, the webhook command says how to reuse it (rerun with the key that registered it to recover the signing secret) or replace it (`webhook --rotate`), and never suggests creating a sandbox.
67
+ - **Init never provisions over the network.** `npx @relyon/store-kit init` no longer attempts unauthenticated sandbox creation; with no saved key it points at the hosted key page and `init --key-from-stdin`. The `--auto-test-key` flag and `RELYON_AUTO_TEST_KEY` stay accepted for scripts but change nothing.
68
+
69
+ ## 0.1.40 (Unpublished)
70
+
71
+ Unpublished.
72
+
73
+ ### Added
74
+
75
+ - **The store hostname on every Relyon call.** The kit sends the configured store URL's host as `Relyon-Store-Hostname` with catalog syncs, product reads, doctor runs and agent events, unless the call already sends it (the doctor does). In a workspace with several stores, an unbound workspace key now resolves the calling store's own catalog instead of the workspace's default store, so two stores no longer overwrite each other's products. Single-store workspaces and Live mode are unchanged. A store with no public URL or hostnames configured yet sends nothing and keeps the previous behavior.
76
+ - **The sync result names the store.** After a catalog sync the kit prints the store Relyon resolved (for example `Synced 3 products to Human in the Loop Goods (shop.example.com).`) through the logger's new optional `info` channel; `consoleLogger` prints it with `console.log`. Loggers without `info` simply skip the line.
77
+ - New optional `RelyonConnection.storeHostname` for callers that construct a `RelyonGateway` directly; the kit sets it automatically.
78
+
79
+ ### Changed
80
+
81
+ - `CatalogSyncResult` gains an optional `storeName` with the store Relyon wrote the sync to.
82
+
83
+ ## 0.1.39
84
+
85
+ Published.
86
+
87
+ ### Fixed
88
+
89
+ - Catalog sync derives supported descriptive attributes from product and variant options without replacing merchant attributes or local product links and feed facts. Unrepresentable values name the product and field instead of guessing.
90
+ - Confirmed store returns, including a zero-day window, reach indexed products on the next catalog sync without replacing per-product returns. Failed policy reads remain explicit.
91
+ - Missing categories name each product and its agent step; plain sync issue output includes the product, field and message. The catalog doctor reads recorded validator issues, keeps category and attribute fixes failed, and reports unanswered returns as waiting on the owner without hiding mixed blockers.
92
+ - Starter products include factual category and attribute examples. Catalog guidance asks once, early, for owner-confirmed return terms, then syncs after saving them.
93
+ - Verified Test domains unreachable for 24 hours retire only after three spaced probes, with durable probe counts surviving restarts; re-verification clears retirement. The doctor ignores retired addresses and scopes domain evidence to the calling store. Store administrators can remove a Test domain from the dashboard; Live domains and other stores are never touched.
94
+
95
+ ## 0.1.31
96
+
97
+ Published. Brief 85b.
98
+
99
+ ### Fixed
100
+
101
+ - A webhook request with no signature header — including the doctor's webhook route check, which deliberately sends one — is still refused (400 invalid_signature) but no longer logs the "signature didn't match the saved secret" warning, and it never triggers secret re-resolution or any call to Relyon, so a flood of unsigned requests stays cheap. A request signed with a different secret keeps the rotation warning, bounded to once per cooldown window, exactly as before.
102
+
103
+ ## 0.1.37
104
+
105
+ Published.
106
+
107
+ ### Added
108
+
109
+ - **Dashboard-completeness checks in the checklist manifest.** The manifest the kit downloads now registers seven server-verified required checks — `dashboard-workspace`, `dashboard-webhook-receiving`, `dashboard-orders-reconciled`, `dashboard-checkouts-recorded`, `dashboard-catalog-ready`, `dashboard-visits` and the `dashboard-complete` gate — so every kit can match Relyon's per-store dashboard verdicts by id. Relyon computes each from its own records for the store being checked; the kit's local doctor items are unchanged.
110
+
111
+ ## 0.1.44 (Unpublished)
112
+
113
+ Unpublished. Brief 89c.
114
+
115
+ ### Fixed
116
+
117
+ - A signed `doctor.challenge` no longer waits on a slow first-time webhook-secret recovery past a short bound: the kit answers with a retryable 503 ("secret_warming") while the recovery keeps running in the background and caches the secret, so Relyon's retried challenge lands on a warm cache and is acknowledged. A configured or already-cached secret still answers the challenge immediately, and ordinary event handling is unchanged.
118
+
119
+ ### Added
120
+
121
+ - README guidance for running the kit behind a tunnel or reverse proxy: trust-proxy settings, forwarded headers, registering the tunnel's public HTTPS address, and preserving the raw request body for webhook signatures.
122
+
123
+ ## 0.1.28
124
+
125
+ Published.
126
+
127
+ ### Fixed
128
+
129
+ - **Progress answer shape.** Relyon's sandbox-progress answer is validated by its four documented fields, and unknown additive fields are ignored — kit 0.1.25 refused any extra key, so Relyon's new opt-in `store` field broke the doctor's "Test checkout confirmed by Relyon" check. The kit asks for the store field and shows the store name when Relyon provides it.
130
+ - **Plain refusal messages.** A Relyon problem answer's plain `detail` text is printed instead of the bare code: a refused webhook registration now shows Relyon's message and next step rather than "(409 invalid_request): invalid_request".
131
+
132
+ ### Added
133
+
134
+ - **Single-value options defaulted.** For MCP, UCP and ACP checkout, a variant option with exactly one value no longer has to be named by the agent; multi-value options are still refused with the choices listed.
135
+ - **Agent credential guidance.** The `create_checkout` tool description, the agent card, `llms.txt`, the `authentication_required` answer and the kit doctor's new "AI-agent checkout" row all state that agent checkout needs an agent credential (`agt_…`) and where to get one: the Relyon dashboard under AI agents → Credentials.
136
+
137
+ ## 0.1.25
138
+
139
+ Published. Post-0.1.19 follow-ups (Brief 78):
140
+
141
+ ### Fixed
142
+
143
+ - A catalog `check_unavailable` carrying no observed store blocker — the adapter's transient "could not complete" — is retried briefly before the doctor judges it. When it recovers, the check passes; when it persists, the kit doctor reports it UNVERIFIED with "unverified, try again in a minute" instead of FAIL (the per-check row, the overall doctor row, and the Home and Readiness cards all agree), and the dashboard's What's next shows the same unverified pending state with no agent action prompt. A real observed blocker still reads FAIL, and Core stores the matching "unverified" outcome.
144
+ - On localhost with no Test domain yet, the catalog domain hint is the kit step: "No Test domain yet. Call ensureDomain() and verifyDomain(domain.hostname) from the store (or deploy it), then re-run the doctor."
145
+
146
+ Relyon-side: Live rotations are limited to 3/hour per store URL (with recovery after a key leak never blocked); replays of a disabled endpoint answer webhook_endpoint_disabled; dashboard delete releases the kit anchor. Rotation budgets are per calling key (per store URL and per organization) with durable Postgres counters shared by every API instance, so a leaked key that burned its own budget can never starve the replacement key's recovery rotation, one in-org key can't starve sibling stores, and a refused rotation — including an org-cap 429 — spends no budget in any bucket. The AI-commerce webhook panel's register/adopt routes are admin-only (listing stays open to developers), and the public scan counts a variant-less product as one product and one row/variant — a mixed catalog of a 12-variant tee, a 6-variant hoodie and a standalone mug reads "3 products, 19 rows/variants" — instead of citing raw source-record totals.
147
+
148
+ ## 0.1.24
149
+
150
+ Published.
151
+
152
+ ### Added
153
+
154
+ - Core displays the store doctor's exact advisory kit-version snapshot, including pinned update commands, package-age holds and unavailable evidence. Reports remain separate from readiness and payment authority.
155
+ - Shared release notes explain feature and security updates, with store-scoped version-specific dismissal and an exact-version prompt for no-terminal builders.
156
+
157
+ ## 0.1.22
158
+
159
+ Released.
160
+
161
+ ### Fixed
162
+
163
+ - Doctor resolves the store project's installed kit independently of the running
164
+ command, checks configured-registry latest with bounded cached evidence,
165
+ explains dependency mismatches and package-age holds, and emits one advisory
166
+ `kit_version` result for human and JSON output. Exact package-manager commands
167
+ never downgrade. Lookup failures remain visible without changing readiness or
168
+ exit codes. Agent guidance uses current-version lookup, exact pins and doctor
169
+ after installation.
170
+
171
+ ## 0.1.21
172
+
173
+ Released. Doctor and dashboard agreement (Brief 80):
174
+
175
+ ### Fixed
176
+
177
+ - The store doctor retries startup-looking answers — connection refused or
178
+ reset, a gateway 502/503/504 that is not the kit's own waiting body, a
179
+ tunnel or proxy error page, or an empty or HTML answer just after start —
180
+ for a few attempts over about 12 seconds before judging, so a slow store
181
+ start never reads as a catch-all misconfiguration. A store still not ready
182
+ reports "The store is still starting or unreachable. Wait a moment and
183
+ re-run the doctor." with no mention of route order; a store that is up and
184
+ really answers with its own page keeps the catch-all verdict.
185
+ - A registered, file-serving domain awaiting verification now reads as a
186
+ pending catalog state carrying the `kit.verifyDomain("<host>")` step in both
187
+ the doctor and the dashboard — never a catalog `check_unavailable` failure
188
+ folding in fixes for surfaces that were never probed. The UCP-handler fix
189
+ appears only when the UCP check actually fails.
190
+ - The doctor's relyon-verification PENDING line and next-step action are
191
+ marked as the agent's own step (run `kit.ensureDomain()` then
192
+ `kit.verifyDomain("<host>")` from the store, then re-run the doctor; do not
193
+ hand it to the owner). When domain verification is the only remaining
194
+ blocker the final summary says "1 agent step left: verify the domain"
195
+ instead of a generic NOT DONE. The same rule sits near the top of the
196
+ relyon-setup skill, QUICKSTART.md and the template STORE-README.md.
197
+ - After `webhook --rotate`, a store still running the old secret logs that the
198
+ signature didn't match the saved secret and to restart the server or reload
199
+ RELYON_WEBHOOK_SECRET; the "couldn't be resolved" line appears only when no
200
+ secret can be found at all. The secret is never logged.
201
+
202
+ ## 0.1.20
203
+
204
+ Published. Brief 77 follow-ups (Relyon-side):
205
+
206
+ - The agent-events card-data guard no longer drops a store's whole batch over a numeric ms-epoch `occurred_at` or long concatenated numeric ids: on `POST /v1/agent_events` a refusal now requires a 13–19-digit run at a card-network prefix that passes Luhn. Every other path keeps the fully conservative guard. Refused batches are recorded per store and environment (count, last time and reason code — never event content) and the doctor reports them with a plain next step.
207
+ - A store answering the doctor's webhook challenge with the kit's signature refusal now reports `webhook_signature_mismatch` with the fix hint "The store refused Relyon's signature. Restart the store's server or reload RELYON_WEBHOOK_SECRET, then re-run the doctor."; `webhook_unavailable` is kept only for real timeouts and unreachable endpoints.
208
+
209
+ ## 0.1.19
210
+
211
+ Published on npm. No behavior change from 0.1.18: the
212
+ Brief 73 webhook follow-ups are Relyon-side, and the changelog's publication
213
+ labels now match npm.
214
+
215
+ ## 0.1.18
216
+
217
+ Published.
218
+
219
+ ### Fixed
220
+
221
+ - Domain diagnosis now reads the matching hostname's scoped Relyon status and compares the exact verification value. A served file alone never proves ownership; pending domains give the hostname-based verify command and keep the run NOT DONE. Domain lookup failures are explicit. Ordinary Live organizations can read their own Live domain status with `catalog:read` without gaining domain-management privileges; non-upgraded sandbox Live access remains refused.
222
+ - Checklist metadata revision 3 keeps stable ids, asks owners direct policy questions, suppresses actions on inapplicable dashboard rows, and refreshes Core metadata for newer numeric kit releases at the same manifest revision without downgrading authority.
223
+ - Public readiness scans retain product and variant identities across structured data and channel feeds; repeated records are not added together as products, variants are reported separately, and missing grouping evidence limits the stated totals.
224
+
225
+ ## 0.1.17
226
+
227
+ Published.
228
+
229
+ ### Added
230
+
231
+ - **Owner-only Live webhook rotation.** A Live endpoint's signing secret can be rotated only by the Live key whose deterministic registration owns the endpoint — or, after that key is revoked, by its replacement, while the registration anchor still names the endpoint. Rotating a dashboard-created endpoint is refused (`webhook_endpoint_not_kit_managed`) with guidance to have an admin delete it or change its URL in the dashboard; rotating an endpoint owned by another Live key is refused (`webhook_endpoint_owned_by_other_key`) until that key is revoked; a disabled Live endpoint refuses re-registration (`webhook_endpoint_disabled`) until it is re-enabled or deleted in the dashboard. Every Live deterministic registration, rotation, refused takeover and secret recovery is audited (never the secret or its hash), and Live secret-returning answers are rate limited (10 rotations/hour per organization, 60 secret recoveries/hour per key; over the limit is a 429 with Retry-After and no secret). Test behavior is unchanged. If a Live key leaks: revoke it, then run the webhook command with `--rotate` using the replacement key.
232
+
233
+ ## 0.1.16
234
+
235
+ Published.
236
+
237
+ ### Added
238
+
239
+ - Live webhook setup: with the store's Live key in the host's environment settings, `webhook` registers or verifies the Live endpoint at a public https origin, and the receiver resolves the Live signing secret at runtime by replaying its own deterministic registration — no secret file, no manual paste. `--rotate` rotates the Live endpoint in place and runtime resolution picks up the new secret. `RELYON_WEBHOOK_SECRET` stays an optional explicit override in both modes.
240
+ - Every webhook signing-secret rotation or recovery that discloses a secret (Test and Live) is now recorded in the org's audit events — naming the endpoint, the caller key or session, and the previous owner when recovery re-anchored — never the secret itself, and the operator support-access history shows them in plain wording.
241
+ - `webhook --rotate` on a Live endpoint now warns plainly that rotating issues a new signing secret and that anything else using the old secret stops verifying; the same warning rides the refused-Live-adoption advice that recommends `--rotate`.
242
+
243
+ ## 0.1.15
244
+
245
+ Published.
246
+
247
+ ### Added
248
+
249
+ - **One manifest-defined checklist for kit and Core.** The checklist manifest is now v2: every check
250
+ carries a validated actor (`agent`, `owner` or `staff`), verifier (`kit` or `server`), completion
251
+ check and fix/action text, and the shipped `checklist-manifest.json` mirror is regenerated
252
+ deterministically from the manifest source. Existing v1 manifests and stored outcomes stay readable.
253
+ - **Complete doctor verdicts.** Every doctor run now emits exactly one explicit verdict per manifest
254
+ check — PASS, FAIL, WARN, PENDING, N/A or UNVERIFIED — keyed by stable check id, including
255
+ feeds-completeness, unknown-paths, kit-mount, policy-pages (in Test and in Live), live-readiness
256
+ and the remote Relyon doctor subchecks — even when no usable key, a refusal or an outage leaves
257
+ the server checks unobserved (UNVERIFIED, never absent). Passing checks no longer disappear, and
258
+ unavailable observations never become fabricated success.
259
+ - **Runtime webhook-secret proof.** A signed, harmless doctor challenge proves the running store
260
+ resolves and accepts the webhook signing secret (recovered from Relyon, from the environment, or
261
+ from the saved file). Only a proven challenge reads PASS; without a resolvable secret the route
262
+ reads UNVERIFIED, and refusals fail the webhook check and name `RELYON_WEBHOOK_SECRET` without
263
+ printing its value.
264
+ - **Agent-verifiable preview domains.** On a public non-loopback Test address with no Relyon domain,
265
+ domain verification is an actionable agent step (`kit.ensureDomain()` then `kit.verifyDomain()`);
266
+ loopback stays N/A.
267
+
268
+ ### Fixed
269
+
270
+ - Core and the kit now agree on the overall Relyon doctor verdict and every server-verified check;
271
+ owner-pending policy and catalog facts read as pending, never as agent failures, and verifying a
272
+ domain no longer erases live-readiness evidence.
273
+ - The dashboard checklist renders only manifest steps with their latest stored authoritative
274
+ verdicts: unfinished agent steps show the manifest prompt, owner/staff steps show Owner action or
275
+ Relyon staff action, done steps show no prompt, and failed, unverified, pending, not-applicable and
276
+ never-checked results are counted honestly instead of all reading as unchecked.
277
+ - Catalog sync projects catalog-source products onto the API contract without sending local feed metadata.
278
+ - Server-only Test configuration loads the saved webhook signing secret independently of the API key; runtime recovery accepts authorized endpoint adoption.
279
+ - Webhook rotation checks local storage before rotating and reports stale environment overrides without printing secrets.
280
+ - Initialization writes Replit instructions only on Replit and explains when an environment key supersedes an entered key.
281
+ - Valid letter-bearing IPv6 addresses in crawler events no longer trip the card-number heuristic; PAN and track-data checks remain conservative.
282
+ - Setup guidance covers detached processes, public Test domain verification and honest Test-mode hand-over.
283
+
284
+ ## 0.1.14
285
+
286
+ Published. `npx @relyon/store-kit init` uses the same key flow on every host.
287
+
288
+ ### Added
289
+
290
+ - **Honest checklist evidence.** Doctor sends bounded, outcome-only metadata
291
+ for the kit-local checks it actually emitted, including Test checkout
292
+ confirmation in the same invocation. Core stores these advisory, self-reported
293
+ outcomes separately from server observations. Missing/legacy kit results stay
294
+ “Not checked yet” in dashboard progress with a copyable doctor prompt; key
295
+ existence in Core is not evidence that a key is installed in the store.
296
+ - **The versioned readiness checklist manifest.** The kit now ships a
297
+ cumulative checklist manifest (`checklist-manifest.ts`, exported as
298
+ `KIT_CHECKLIST_MANIFEST`): every doctor check carries a stable `id`, the kit
299
+ version that introduced it (`introducedIn`), a level (`required` or
300
+ `recommended`) and the copyable agent prompt for it; required checks that
301
+ must not bind immediately can carry an absolute `requiredBy` ISO date. The
302
+ manifest debuts covering the existing check set, so every current check is
303
+ `introducedIn: "0.1.14"` — doctor runs only record kit versions from this
304
+ release on. Checks are never removed or reordered; additions bump
305
+ `manifestVersion`. Each doctor item carries its check id, and `doctor --json`
306
+ includes it per check plus the top-level `manifest_version`.
307
+ - **Kit version exchange on the doctor call.** The doctor's `GET /v1/doctor`
308
+ request carries the kit and manifest versions as request headers
309
+ (`Relyon-Kit-Version`, `Relyon-Kit-Manifest-Version`), which Relyon records
310
+ on the stored run. When Relyon's response metadata names a newer kit
311
+ (`Relyon-Latest-Kit-Version`), the formatted report prints "A newer kit is
312
+ available" and `doctor --json` carries `newer_kit_version`; absent or
313
+ unparseable metadata means no notice and never fails the run.
314
+
315
+ - **Environment-first keys, identical on every host.** When `RELYON_API_KEY`
316
+ is in the environment, use it and write no key file. Otherwise retain the
317
+ local-development flow (automatic Test setup, gitignored `.env`, 0600).
318
+ Existing `.env.local` and `.env.production` keys are reused and loaded
319
+ just like `.env`. Before publishing, doctor warns if the Test key is only
320
+ in a file, not in the host's environment settings; this is advisory, not
321
+ a FAIL. No Replit-specific ignore-file edits, workspace-root checks,
322
+ doctor gates, copy reconciliation, messages, or agent-card instructions
323
+ remain in the key flow. The Replit platform note is plain documentation.
324
+
325
+ ### Changed
326
+
327
+ - **Webhook secrets follow the API key's source.** An environment API key
328
+ registers/verifies the Test endpoint without saving any file, including
329
+ during init's best-effort registration and `webhook --rotate`. The receiver
330
+ resolves the signing secret at runtime. Only a local file key retains
331
+ secret saving to gitignored `.env` (0600, never printed). An explicit
332
+ `RELYON_WEBHOOK_SECRET` in the environment remains an optional override.
333
+ The rule and output are identical on every host.
334
+
335
+ - **Private-folder candidates are tried in order, screened before creation.**
336
+ With `RELYON_PRIVATE_DIR` unset, init tries
337
+ `$XDG_CONFIG_HOME/relyon/<project>` and then `~/.config/relyon/<project>`;
338
+ a candidate that would sit inside the project or inside a git tree is
339
+ skipped before anything is created, so no empty folder is left behind.
340
+ A just-created folder that still fails verification is removed best-effort.
341
+ The read path (`loadTestConfig`) screens the same way. Every existing check
342
+ stays enforced: 0700, owner-only, outside the project and every git tree, no
343
+ links.
344
+ - **The no-private-location refusal names the refused path and reason** and
345
+ prints a `RELYON_PRIVATE_DIR=<dir>` remedy before the get-key lines.
346
+ - **The doctor names a private preview.** A redirect to an external sign-in page or
347
+ a Cloudflare challenge answer now reports "the preview is private, publish
348
+ or use the public URL" instead of the generic redirect or catch-all FAIL
349
+ detail. No doctor item is added, renamed or reordered; redirect targets stay
350
+ origin-only in the output.
351
+ - **The bundled relyon-setup skill** documents the environment-first key
352
+ flow and ordered `RELYON_PRIVATE_DIR` fallback, with only a plain
353
+ documentation note for Replit.
354
+ - **Review fixes.** The doctor reports a Cloudflare challenge only for a 403/429/503
355
+ status or a `cf-mitigated: challenge` header, so a 200 whose body mentions
356
+ the challenge platform gets the normal checks. Private-folder screening
357
+ survives a dangling symlink on a candidate ancestor (refused as "its
358
+ location can't be checked", next candidate tried); a just-created
359
+ folder that fails verification is removed with `rmdir`, never a recursive
360
+ delete.
361
+
362
+ ## 0.1.13
363
+
364
+ Published on npm. The kit registers the store's webhook
365
+ endpoint itself: a new `npx @relyon/store-kit webhook` command, run by the
366
+ coding agent after publish.
367
+
368
+ ### Added
369
+
370
+ - **`npx @relyon/store-kit webhook`.** Registers `<STORE_PUBLIC_URL>/relyon/webhooks`
371
+ (or `--url`, and `--webhook-path` when `paths.webhook` differs) for the
372
+ `agent_rules.updated` event through `POST /v1/webhook_endpoints`, idempotently:
373
+ a second run for the same URL never registers a duplicate. It recovers the
374
+ one-time signing secret by replaying the original registration (a
375
+ deterministic Idempotency-Key derived from the URL); a Test registration
376
+ replays without expiry. Every run reconciles: the replay answers the
377
+ endpoint's CURRENT secret, so a secret rotated elsewhere (in-place rotation
378
+ keeps the endpoint id) is detected and replaced in `.env`. There is one
379
+ endpoint per URL: when an active endpoint already exists for it — registered
380
+ from the dashboard or by an older kit — the deterministic registration
381
+ adopts it, returns its current secret and widens its subscription to cover
382
+ the requester's events instead of creating a duplicate. A registration row
383
+ the key cannot replay as-is — a session's, a legacy principal-less row, or
384
+ one whose endpoint was superseded, disabled or deleted — is re-pointed at
385
+ the newest active endpoint and answered as an adoption with its current
386
+ secret (and a replacement Test key in the same store recovers the secret
387
+ too: the recorded principal transfers to it). `--rotate` rotates that same
388
+ endpoint's signing secret in place — same `we_` id, fresh secret, no second
389
+ endpoint — and is the only rotation trigger: a normal run whose replay is
390
+ refused (409) or names another endpoint exits 1, pointing at `--rotate`, and
391
+ never saves a superseded secret. The rotation key mixes the URL with fresh
392
+ randomness on every run, so every `--rotate` rotates — a retried interrupted
393
+ rotation rotates again rather than replaying — and an answer Relyon marks as
394
+ a replay is reported as "the current secret was recovered", never as the
395
+ previous secret having stopped verifying. The
396
+ secret is written as `RELYON_WEBHOOK_SECRET` to the
397
+ project's `.env` with init's guards (0600, git- and docker-ignored, never when
398
+ `.env` is tracked) and is never printed. Anything Relyon returns is validated
399
+ before it is saved (Test secret shape, endpoint id shape, `livemode: false`);
400
+ a malformed answer fails with a generic error and writes nothing. The command
401
+ refuses obvious preview and loopback hosts (`*.replit.dev`, localhost) with a
402
+ publish-first message. On Replit it notes the deployment needs only
403
+ `RELYON_API_KEY` in Secrets. Test-only: it refuses Live keys,
404
+ `RELYON_LIVE=true` and missing keys.
405
+ - **The receiver resolves the webhook secret itself at runtime (Test).** When
406
+ `rules.webhookSecret` / `RELYON_WEBHOOK_SECRET` is unset and the store has a
407
+ usable Test key and a configured public origin, the kit's webhook receiver
408
+ replays its own deterministic registration to recover the signing secret,
409
+ caches it in memory and never logs it. Only a replayed answer is accepted: a
410
+ fresh adoption answer is refused (the row it records makes the next attempt,
411
+ after the cooldown, a replay, so the receiver self-heals), and a
412
+ cross-principal replay (409), an endpoint-id mismatch or a malformed answer
413
+ fails closed — the webhook is refused with guidance to run
414
+ `npx @relyon/store-kit webhook`. After any resolution failure the receiver
415
+ backs off (60 seconds, doubling per consecutive failure up to 15 minutes)
416
+ and warns once per cooldown window, and a bad signature against the cached
417
+ secret re-resolves at most once per window — a re-resolution that returns
418
+ the same (still stale) secret counts as a failure, so the backoff keeps
419
+ doubling instead of resetting and an unsigned-request flood cannot amplify
420
+ into Relyon calls. Any other validly signed event type is
421
+ acknowledged (200) so a `"*"` subscription never piles up failures. Live
422
+ never resolves, and no registration POST ever goes out from a request
423
+ handler. Deployments need only `RELYON_API_KEY`; `RELYON_WEBHOOK_SECRET`
424
+ stays an optional explicit override.
425
+ - **Init registers the webhook best-effort.** After automatic Test setup, when
426
+ `STORE_PUBLIC_URL` is known, init runs the same registration and prints one
427
+ outcome line; a failure is deferred to `npx @relyon/store-kit webhook` after
428
+ publish and never fails init.
429
+
430
+ ### Changed
431
+
432
+ - **The doctor's preview webhook finding is agent-actionable.** On a preview or
433
+ loopback URL, `webhook_missing` is now PENDING with "run
434
+ `npx @relyon/store-kit webhook` after publish" instead of a merchant question;
435
+ only items that carry merchant to-dos print "PENDING merchant", and the "Do
436
+ this next" list includes the webhook step. `--strict` and Live still FAIL it.
437
+ - **Agent-first setup copy.** The skills, quick start and get-sandbox-key page
438
+ now describe the agent running init → build → publish → webhook → doctor
439
+ itself; the owner is needed only for policies, the support contact and Live
440
+ approval.
441
+
442
+ ## 0.1.12
443
+
444
+ Published. Every feed lists every variant. Before this release a variant agents could see but
445
+ not buy (for example a demo store still waiting for its sandbox key, or an age-restricted item)
446
+ filled `openai.jsonl` while `google.xml` and `microsoft.xml` dropped the item entirely, and one
447
+ unsupported option key (anything but color/size/material/pattern) dropped the whole XML item.
448
+
449
+ ### Changed
450
+
451
+ - **Google and Microsoft list non-buyable items for discovery.** An agent-visible item with
452
+ `purchasable: false`, `restrictions` or a non-empty `must_ask` now appears in both XML feeds
453
+ with its own id, price, availability, image and `item_group_id`, exactly as in the ChatGPT feed.
454
+ Checkout flags stay honest: `is_eligible_checkout` is false and `native_commerce` never reports
455
+ such an item as checkout-eligible, even when the store's channel policy declares it eligible.
456
+ The `unrestricted_buyability_unknown` omission is gone.
457
+ - **Unsupported XML option keys lose the attribute, not the item.** A variant option outside
458
+ color/size/material/pattern (such as `scent`) is omitted from the Google and Microsoft items
459
+ with an `xml_variant_attribute_omitted:<key>` diagnostic per feed; the item is still listed and
460
+ the ChatGPT feed keeps the full `variant_dict`. The `xml_variant_attributes_unsupported`
461
+ whole-item omission is gone.
462
+ - **Setup skill: save one sandbox key.** The setup skill now tells coding agents to save only
463
+ `restrictedKey` as `RELYON_API_KEY` and ignore `publishableKey`, matching the one-key sandbox
464
+ UI. Skills-only follow-up: no kit code, export or behaviour changes.
465
+
466
+ ## 0.1.11
467
+
468
+ Published. Products with options work end to end, and doctor checks real outcomes, not just
469
+ status codes. The store still owns products, options and the cart; options stay opaque to Relyon
470
+ and nothing is re-priced.
471
+
472
+ ### Added
473
+
474
+ - **Variant resolution.** One helper maps a feed ID to `{ product_id, options }`: a variant ID to
475
+ its parent's `merchant_product_id` plus that variant's `options`, a product to itself. It also
476
+ picks the default purchasable item: a product without options, else the first variant in
477
+ `feed.variants`, else the first value of each declared option (common shapes, best effort).
478
+ - **`kit.landing()` takes a URL, a path, `URLSearchParams` or a searchParams object** as well as a
479
+ `Request`, so a Next.js server component can call `kit.landing(await searchParams)`.
480
+ - **Checkout page marker.** `data-relyon-cart-items="<items>"` (`CHECKOUT_CART_ITEMS_ATTRIBUTE`,
481
+ counted by `cartItemCount(inputs)`), `0` for an empty cart, on an element of the checkout page.
482
+ - **Doctor "product variants" row.** NOT DONE, worded as a warning for agents, when an
483
+ agent-visible product has options but no `feed.variants`, or when options were flattened into
484
+ separate ungrouped listings with different prices. The MCP product summaries gain each
485
+ configurable product's variant IDs, options and prices (and `group_id`), and every product's
486
+ `purchasable` flag (false when agents may see but not buy it), additively.
487
+ - **Doctor "policy pages" row (Test).** A policy link Relyon holds on the store's origin or
488
+ loopback that doesn't open (for example a localhost returns page answering 404) is an "Owner
489
+ to fill in" item.
490
+ - **Doctor closing text** tells coding agents to list the owner's to-dos (policies, support
491
+ contact, domain, Live keys) in their final chat message and never to say shoppers can pay before
492
+ checkout is live. `doctor --json` gains `owner_todos` (additive).
493
+ - **Template variants.** The template catalog may declare `variants` (`id`, `options`, `amount`);
494
+ they map to `configurable`, `options` and `feed.variants`. The template's `priceCart` prices the
495
+ chosen variant and refuses a bad option naming the product and the option. Its checkout page
496
+ renders the marker in the empty and filled states (an empty checkout no longer redirects), and
497
+ `next.config.mjs` sets `allowedDevOrigins: ["127.0.0.1"]`.
498
+
499
+ ### Changed
500
+
501
+ - **test-checkout** sends the default item's options on the cart line and accepts the store
502
+ answering with the parent or the variant ID. `--product` takes a product ID or a variant feed ID.
503
+ A refusal names `cart.lines[0]`, the product ID and the exact options tried, and the command
504
+ prints them with a `--product <id>` suggestion.
505
+ - **Cart transfer** resolves a variant feed ID to its product plus options before `priceCart`,
506
+ accepts a priced line naming either ID and echoes the caller's item ID. The sealed
507
+ `relyon_transfer` token (version 2) carries options; 0.1.10 tokens still land, their variant IDs
508
+ mapped from the catalog.
509
+ - **Doctor "cart transfer" row (Test)** transfers a real item from the store's MCP
510
+ `search_products`, only one cart transfer can sell: agent-purchasable, in stock, and a listed
511
+ variant for a product with options (variants first, then products without options). When
512
+ `/ucp/carts` refuses one, it tries the next (up to 5) and names every item tried if all are
513
+ refused. It opens the `continue_url` and
514
+ requires `data-relyon-cart-items` with a non-empty cart (card fields alone are not enough); NOT DONE with the fix otherwise, including
515
+ when the store needs a caller key and `RELYON_CART_TRANSFER_KEY` isn't in doctor's environment.
516
+ Live keeps the reachability check.
517
+ - **Doctor "checkout page" row** requires the checkout marker: a redirect to the home page or a 200
518
+ placeholder is NOT DONE, naming where the page landed.
519
+ - **Skills and docs:** the catalog variant example is the Tee (S–XL $25, 2XL–3XL $30, black or
520
+ white); the Next.js reference lists `app/.well-known/ucp/[...path]/route.ts`, adds a Next.js 16
521
+ product-page pattern, keeps kit imports out of client components and notes `allowedDevOrigins`;
522
+ copyable code no longer defaults to `shop.example.com`.
523
+
524
+ ## 0.1.10
525
+
526
+ Published. Stop refusing good orders: Relyon and the kit check that the money adds up, not how
527
+ the store models its products.
528
+
529
+ ### Added
530
+
531
+ - **UCP cart transfer (`POST /ucp/carts`).** Google's UCP Cart API hands a shopper's cart to the
532
+ store: item IDs (the store's feed IDs, so variant IDs for `feed.variants`) and quantities. The
533
+ kit answers it itself, with nothing sent to Relyon. It reads the catalog (agent-visible,
534
+ agent-purchasable entries only; a variant wins over its product), prices the lines with
535
+ `priceCart` (operation `cart_transfer`) and answers a UCP cart with an upper-case currency,
536
+ line and cart totals, `expires_at` and a `continue_url` to the store's own checkout. Unusable
537
+ items are named in `messages[]` with their JSON path and the rest still form the cart. When no
538
+ item is usable the answer is a UCP error with no cart `id`. Cart get, update and cancel are not
539
+ offered.
540
+ - **`cartTransfer` option.** Test: on by default, open unless a caller key is set. Live: on only
541
+ with a key. The key is `cartTransfer.apiKey` or `RELYON_CART_TRANSFER_KEY` (16+ characters). It
542
+ is checked in constant time against `X-API-Key` (401 missing, 403 wrong).
543
+ `cartTransfer: false` switches it off. See `docs/cart-transfer.md` in the kit's source.
544
+ - **Transferred-cart landing.** The `continue_url` carries a sealed, expiring `relyon_transfer`
545
+ token. `landing()` pre-fills those lines, re-priced by `priceCart`, marked `transferred: true`
546
+ and never attributed: no agent checkout, no checkout authority, no hand-off event. The store
547
+ template's checkout page uses it.
548
+ - **UCP 2026-04-08.** The served `/.well-known/ucp` stays 2026-08-25 and gains
549
+ `dev.ucp.shopping.cart` (while cart transfer is on) and `supported_versions["2026-04-08"]`. The
550
+ kit serves `/.well-known/ucp/2026-04-08`, the same profile mapped to 2026-04-08 (REST endpoint
551
+ `/ucp/2026-04-08`, `signing_keys[]` with a `keys[]` mirror; checkout, fulfillment and discount,
552
+ no order capability). `/ucp/2026-04-08/*` relays
553
+ checkout to Relyon at the URL the agent called, and Relyon answers at 2026-04-08.
554
+ - **Doctor "cart transfer" row.** It reports PASS when cart transfer is advertised, the kit
555
+ answers `POST /ucp/carts` (a caller-key refusal counts as reachable) and the 2026-04-08 profile
556
+ is valid. It reports FAIL with the fix when the app answers those paths, and N/A when cart
557
+ transfer is off. Probes stay on the store's origin and price nothing. `doctor --json` only
558
+ gains the row.
559
+
560
+ ### Changed
561
+
562
+ - **Currency in any case.** `usd` and `USD` are both accepted on carts and payments; the kit
563
+ upper-cases currency before relaying a cart or sending a payment.
564
+ - **Contract `Cart` on payments.** `POST /v1/payments` accepts the contract `Cart`, so the default
565
+ `paymentCartFormat: "contract"` works. `paymentCartFormat: "server-legacy"` still works but is
566
+ deprecated: the kit logs a warning at startup. The templates, README, quick start and skills no
567
+ longer set it.
568
+ - **`test-checkout` buys a variant.** A store whose only purchasable products are configurable
569
+ (`feed.variants`) gets one variant, priced by the store's `priceCart`. Each cart line must be an
570
+ agent-purchasable product in the synced catalog; a line that isn't is refused, naming the item.
571
+ - **Refusals name the field.** `test-checkout` and the kit's relayed-refusal log print each failing
572
+ field and its reason (`Field <param>: <reason>`), never only "not a valid priced cart".
573
+ - **Doctor DONE needs pages people can use.** Two new checks: the store's checkout page
574
+ (`--checkout-path`, default `/checkout`) and up to three product pages from the product sitemap
575
+ must answer 200 on the store's own origin (same-origin redirects are followed; off-origin
576
+ redirects are not). Otherwise the verdict is NOT DONE with the exact next step. `doctor --json`
577
+ gains the two items; the schema is otherwise unchanged.
578
+ - **Merchant-pending rows say "Owner to fill in"** and tell agents not to invent policies, a support
579
+ email or a domain. Still presentation only, never checkout authority.
580
+ - **`init`.** The Express template checks Node.js >= 22.13 before writing anything and says so
581
+ clearly. A folder named like one of the template's dependencies (`express`, `next`) no longer
582
+ produces a package npm refuses to install (`express-store`). Next.js 15 and 16 are no longer
583
+ called "untested"; only majors the Next.js reference doesn't cover get a warning.
584
+ - **`productJsonLd` is typed** (`ProductJsonLd`), so reading `image?.[0]` or `offers?.price` passes a
585
+ `next build` type check on Next.js 16.
586
+ - **The served UCP profile is no longer Relyon's body byte for byte.** The additions above are
587
+ additive; every other member passes through unchanged.
588
+ - **A UCP checkout create with `cart_id` is refused** (`400 cart_id_unsupported`) instead of
589
+ being relayed with the field ignored.
590
+
591
+ ## 0.1.9
592
+
593
+ Published. Coding agents complete the Test checkout themselves and reach DONE without a person.
594
+
595
+ ### Added
596
+
597
+ - **`npx @relyon/store-kit test-checkout --url <store>`.** One Test purchase through the kit's new
598
+ Test-only route on the store, `POST /relyon/test-checkout`: one agent-purchasable product priced by
599
+ the store's `priceCart`, a Relyon payment session paid with the Test mock processor's opaque
600
+ token through the usual pay-and-confirm path (so `createOrder` runs). No card number exists
601
+ anywhere. The request carries a short-lived HMAC proof made with the Test key (method, host, path,
602
+ timestamp, nonce, body hash); the key is never sent to the store or printed. Bad, stale or
603
+ replayed proofs get a bare 401; no proof, Live or no Test key get 404 (503 while waiting for a
604
+ key). One idempotency key per run, so a resend never pays twice. A non-mock Test processor (a TRX
605
+ sandbox account) is refused with a pointer to the store's checkout page. The command refuses Live
606
+ keys and `RELYON_LIVE=true` (exit 2) and then confirms with `GET /v1/sandboxes/progress` under the
607
+ doctor's key rules.
608
+ - **Feed variants.** `feed.variants` on a configurable product lists each variant's `id`, `options`
609
+ and `exactPrice`; every feed gets one row per variant, grouped under the product's ID, each with
610
+ its own price.
611
+ - **Doctor "products missing from feeds".** A WARN (never a FAIL) when a product in the product
612
+ sitemap is missing from a selected feed.
613
+
614
+ ### Changed
615
+
616
+ - **Doctor wording.** New row status `NOT DONE` for "Relyon answered, no Test checkout recorded";
617
+ `UNVERIFIED` only when Relyon couldn't be asked. While NOT DONE no summary says "No failures":
618
+ the footer reads `NOT DONE yet (see the steps above): …` and Relyon's doctor row says "Relyon's
619
+ checks pass". The checkout step names `test-checkout --url <store>`. Relyon's long
620
+ `check_unavailable` text is shortened to its required conditions and a short fix. Exit codes
621
+ are unchanged (NOT DONE is 2). `doctor --json` is unchanged apart from the new row status.
622
+ - **Key loading.** Init and doctor's key step say how a plain Node/Express server loads the key
623
+ (`loadTestConfig()` from `@relyon/store-kit/server-config`, or dotenv) and never to print `.env`
624
+ or paste the key into a command.
625
+ - **robots.txt is served by default** (AI search and shopping crawlers allowed, both sitemaps
626
+ listed). `robots: false` opts out; `robots: { existing }` keeps merging into an app's own policy.
627
+ An Express app whose own robots route is mounted after the kit must pass one or the other.
628
+ - **Next.js 16.** The Next template's route has no segment config (`runtime`, `dynamic`), its
629
+ `tsconfig.json` uses NodeNext resolution and `next.config.mjs` adds `turbopack: {}`, so it builds
630
+ on Next.js 16 (Turbopack, `cacheComponents`) and 15. The skills drop `export const runtime`.
631
+ - **Feed diagnostics pointer.** The doctor's "see the kit's feed diagnostics" text names the
632
+ relyon-catalog feeds section and `feeds.onDiagnostic` instead.
633
+ - **Init flags.** `--yes` is accepted. `--template … --dir <folder>` creates no Test sandbox unless
634
+ asked with `--auto-test-key` or `RELYON_AUTO_TEST_KEY=true`.
635
+
636
+ ## 0.1.8
637
+
638
+ Published. Coding agents know when they are done: the kit's own output says NOT DONE and lists
639
+ the exact next steps until a Test key is present, the doctor passes, Relyon has confirmed one
640
+ completed Test checkout and the feeds are live.
641
+
642
+ ### Added
643
+
644
+ - **Doctor verdict.** The first line is `DONE: Test integration verified by Relyon.` or
645
+ `NOT DONE: <n> of <m> required steps remain.`, followed by a numbered "Do this next" list built
646
+ from the items' own fix texts and ending with `Then run: npx @relyon/store-kit doctor`.
647
+ `StoreDoctorResult.ok` is unchanged.
648
+ - **"Test checkout confirmed by Relyon".** In Test the doctor reads `GET /v1/sandboxes/progress`
649
+ (outside the /v1 contract) with the Test key: PASS, a step to do, or UNVERIFIED when Relyon can't
650
+ be asked (never DONE). A saved key goes only to Relyon's official https origin, and never in Live.
651
+ - **`doctor --json`.** One JSON object on stdout and nothing else: `status`, `version`, `checks`,
652
+ `next_steps` and `confirmed`, without secrets.
653
+ - **Definition-of-done block.** Init keeps a second marked block, `relyon-done`, in AGENTS.md,
654
+ CLAUDE.md and replit.md (created when missing, appended when absent, updated in place). Rerunning
655
+ init leaves the files byte-identical; symlink, UTF-8 and marker rules match the pointer block,
656
+ which is unchanged.
657
+ - **`init --agent-hooks`** (off by default): one Relyon stop hook merged into
658
+ `.claude/settings.json`, `.cursor/hooks.json` and `.github/hooks/relyon.json`, never duplicated,
659
+ nothing written when a file isn't valid JSON. The hook (`doctor --agent-hook <tool>`, hidden)
660
+ sends the NOT DONE steps back at most 3 times per session, counts outside the project, never
661
+ prints secrets and allows the stop on any internal error.
662
+ - **`developer_hint`.** The 503 waiting body and kit setup errors (invalid or missing key, missing
663
+ configuration) carry a builder-facing hint; the shopper message and the waiting shape are
664
+ unchanged.
665
+
666
+ ### Changed
667
+
668
+ - **Doctor exit codes:** 0 only when DONE, 2 when NOT DONE without any FAIL, 1 on any FAIL. Usage
669
+ errors keep exit code 2; `--strict` and Live keep their meaning.
670
+ - **Feeds count only when there are some.** DONE needs at least one selected feed, and every
671
+ selected feed PASS; with none selected, doctor's next step says how to turn feeds on.
672
+ - **One summary.** The CLI's verdict line and "Do this next" list replace 0.1.7's
673
+ `NOT DONE: X of Y checks failed.` / `Next:` block, so doctor prints one summary; each FAIL's fix
674
+ is a "Fix …" step. `formatStoreDoctor` keeps the 0.1.7 block unless called with
675
+ `{ nextSteps: false }`.
676
+ - **Saved key stays on Relyon's origin for every doctor request.** As in 0.1.7, a saved Test key
677
+ goes only to Relyon's official https API unless `--allow-saved-key-to-base-url` is passed; this
678
+ now also covers the progress read, and the agent stop hook never sends it elsewhere. When the
679
+ key is withheld, the first step says how to proceed. In Live the saved key isn't read.
680
+
681
+ ## 0.1.7 (Unpublished)
682
+
683
+ Unpublished. Automatic Test key and agent-proof setup: a coding agent that runs
684
+ `npx @relyon/store-kit init` in a fresh store project gets a working Test key with no human step,
685
+ kit routes that answer before a key exists, and a doctor that catches the usual mistakes.
686
+
687
+ ### Added
688
+
689
+ - **Automatic Test key without configuration.** With no usable key and `RELYON_PRIVATE_DIR` unset,
690
+ init uses an owner-only (0700) private folder per project under `$XDG_CONFIG_HOME/relyon` or
691
+ `~/.config/relyon`, outside the project and every git tree, and creates one Test sandbox through
692
+ `POST /v1/sandboxes`. The one-attempt marker still means reruns and crashes never create a second
693
+ sandbox. Init also sets `RELYON_API_KEY` in the project's `.env` (0600), first adding `.env` to
694
+ `.gitignore` (in a repository, git itself must confirm `.env` is ignored), and refuses with a
695
+ reason when `.env` is tracked by git or git can't confirm it isn't. `loadTestConfig` reads the
696
+ default folder too. Never Live: `RELYON_LIVE=true` turns automatic setup off.
697
+ - **`init --key-from-stdin`.** When provisioning can't run, init prints exactly one URL
698
+ (https://core.getrelyon.com/get-sandbox-key) and this one command. It reads the key from stdin or
699
+ a hidden prompt (never an argument), accepts only a Test key, stores it the same way and never
700
+ echoes it.
701
+ - **Waiting routes.** With no key (Test), every kit path answers from the kit with
702
+ `waiting_for_sandbox_key`: 503 + `Retry-After` for checkout-bearing JSON routes, a browse-only MCP
703
+ server, and 200 for `llms.txt`, sitemaps, feeds and the opt-in `robots.txt`, each marked with the
704
+ status. Nothing advertises checkout or reveals configuration. The Express, Next.js and Hono
705
+ adapters mount with no key.
706
+ - **Doctor gap checks**, with or without a key: a kit path answered by HTML or a non-kit body
707
+ FAILs ("Your server's catch-all route answers this path. Mount storeKitMiddleware before the
708
+ catch-all."); a random unknown path answering 200 FAILs ("Your server answers 200 for unknown
709
+ paths, so agents can't tell what is missing. Return 404 for unknown non-page paths."); a project
710
+ whose source mounts the kit only when `RELYON_API_KEY` is set gets a WARN ("Mount the kit always;
711
+ it waits safely without a key."). Without a key, `/.well-known/ucp` and the verification file
712
+ count as pending only when they give the kit's own 503 waiting answer; a plain or JSON 404, a
713
+ 500, a redirect or a catch-all 200 there FAILs.
714
+
715
+ ### Changed
716
+
717
+ - Placeholder or malformed keys (empty, `your_key_here`, `rly_test_xxx`, `changeme`, anything that
718
+ isn't a well-formed key) count as no key: waiting status and automatic setup, not
719
+ `invalid_api_key`. A Live kit still refuses to start without its Live key.
720
+ - QUICKSTART, the marked AGENTS.md/CLAUDE.md block and init's closing lines start with "First read
721
+ the relyon-setup skill (…)" and end with "Finish with `npx @relyon/store-kit doctor` and fix every
722
+ FAIL." An existing AGENTS.md or CLAUDE.md without the block gets it appended without `--force`;
723
+ `--force` keeps its meaning.
724
+ - Test accepts http policy URLs on `localhost`, `127.0.0.1` and `[::1]`. Live still requires https,
725
+ and the doctor and the go-live skill say so.
726
+ - A product without `merchant_product_id` takes it from `id` (or `sku`); duplicates are still
727
+ refused.
728
+ - The sandbox ownership (claim) link is kept in its own owner-only file, separate from the key file
729
+ the runtime reads; init prints only its path ("Your private ownership link is saved at …"). Key
730
+ files saved by 0.1.6 or earlier are split on the next init.
731
+ - Example env files show `RELYON_API_KEY=` with a comment that init fills it.
732
+ - New package description and the keywords "relyon core" and "ai-shopping-agents".
733
+ - Runtime error log lines redact secret keys, webhook secrets and ownership-link tokens as well as
734
+ cart tokens.
735
+
736
+ ### Security (before release)
737
+
738
+ Fixes from an independent security review of 0.1.7, still unpublished at 0.1.7.
739
+
740
+ - **No sandbox from unattended runs.** Automatic Test setup creates nothing when `CI` is set or
741
+ there is no terminal, unless `RELYON_AUTO_TEST_KEY=true` or `init --auto-test-key` opts in.
742
+ Coding-agent environments are detected from their environment signals and still get a key. An
743
+ unattended skip uses no provisioning attempt and creates no private folder.
744
+ - **`.dockerignore`.** When the project has a `.dockerignore`, init makes sure it lists `.env`.
745
+ - **Doctor checks checkout routes.** The doctor probes the UCP and ACP checkout routes, the
746
+ webhook route (an unsigned POST must get the kit's `invalid_signature` refusal) and an advertised
747
+ agent card. A store that serves only discovery files FAILs. Without a key, a valid-looking 200
748
+ UCP profile is UNVERIFIED, not PASS, because it can't be told from a hand-written static file.
749
+ - **Doctor output reads as next steps.** On failure: `NOT DONE: X of Y checks failed.`, then
750
+ `Next:` with one numbered fix per FAIL, then `Then rerun doctor: npx @relyon/store-kit doctor`.
751
+ - **Saved key goes only to Relyon.** The doctor sends a saved Test key only to Relyon's official
752
+ https API. A custom `--base-url`, `RELYON_BASE_URL` or plain-http target gets it only with
753
+ `--allow-saved-key-to-base-url`; otherwise those checks are UNVERIFIED.
754
+ - **Live reads no saved Test key.** With `RELYON_LIVE=true` (or doctor `--live`), `loadTestConfig`
755
+ and the doctor read no saved Test key from the private folder or `.env`.
756
+ - **Docs.** The quick start, README and skills say that coding agents can read the project's `.env`
757
+ Test key and that remixes, forks and exports copy it.
758
+
759
+ ## 0.1.6
760
+
761
+ Published. Fixes two Test dev bugs: a default store on any host now syncs its catalog and
762
+ sends shoppers to checkout correctly on the first try.
763
+
764
+ - Test doctor distinguishes missing merchant policy facts and a missing preview/loopback
765
+ webhook address as `PENDING merchant`, with questions rather than assumed terms.
766
+ `doctor --strict` promotes these to FAIL. Live requirements and server checkout gates
767
+ are unchanged; mixed or unknown Relyon failure projections still fail.
768
+
769
+ ### Added
770
+
771
+ - Init-first onboarding with a copied compact Test quick start and section-specific references.
772
+ - Best-effort install notice; scripts-disabled installation remains supported.
773
+
774
+ - **`kit.redirect(request, path, { headers? })`:** a `303 See Other` (with `cache-control:
775
+ no-store`) to a same-origin `path` on the request's validated store address, for the app's own
776
+ cart and "Buy now" routes. `path` must start with a single `/`; a full URL, `//host`, a
777
+ backslash or control character throws a TypeError. The checkout-page and Express server skill
778
+ references use it instead of building a Location from `request.url`.
779
+ - Opt-in `init --template next|express` working Test stores with exact dependency
780
+ pins, server-only kit adapters, persistent SQLite state, public discovery,
781
+ catalog/cart/checkout pages and visibly pending merchant policies.
782
+ - Template targets must be empty (including hidden entries) or new. Links and
783
+ conflicts are refused before installation or Test setup, even with force.
784
+ - Existing applications receive nonmutating warnings for untested framework
785
+ versions. Ordinary init retains its conflict and repeat-run behavior.
786
+
787
+ This version is prepared locally and remains unpublished.
788
+
789
+ ### Fixed
790
+
791
+ - **Catalog sync sends full URLs.** `kit.syncCatalog` sends each product's own `url` and
792
+ `images` (a path such as `/products/mug`, or a URL on the store's hostnames, loopback or a bind
793
+ address) on the store's public address: `store.publicUrl` (`STORE_PUBLIC_URL`) when set, else
794
+ `https://` + the primary hostname, the same default the feeds use. Other sites' URLs are sent unchanged. The
795
+ kit's own catalog keeps the merchant's paths, and each batch's Idempotency-Key is computed on
796
+ the payload actually sent. Previously a relative `url` was sent as is and Relyon refused the
797
+ batch with `invalid_request` at `products[0].url`.
798
+ - **Sync stops early with a fix.** When a path can't be made a full URL (a loopback-only store
799
+ without `STORE_PUBLIC_URL`, or a link that is neither a full URL nor a path starting with a
800
+ single `/`), `syncCatalog` throws a `CatalogSyncError` before any request, naming the product,
801
+ the field (`error.param`) and the setting to fix. A refusal from Relyon now names the product,
802
+ the field (as an index into the list passed to `syncCatalog`) and a plain fix, not only the
803
+ status.
804
+ - **Dev servers bound to `0.0.0.0` or `[::]`.** When the request URL names an unspecified bind
805
+ address (`next dev --hostname 0.0.0.0`), a Test kit takes the host and port from the Host
806
+ header, only when it is a plain host[:port] naming loopback or one of the store's hostnames.
807
+ An unknown, spoofed or malformed Host still falls back to the primary hostname, and forwarded
808
+ host rules are unchanged. A Host without a port means the scheme's default port, as on a direct
809
+ request. The bind address never appears in kit links, relayed checkout URLs, status URLs or
810
+ `kit.redirect` answers. Live is unchanged.
811
+ - **Catalog links on a bind address.** A product `url` or image on `0.0.0.0` or `[::]` counts as
812
+ a dev address like loopback: sync, feeds and discovery documents move it onto the public
813
+ address. Sync refuses one it can't move (no public address known, or a URL the kit can't
814
+ rebase) before any request; discovery documents drop it rather than publish it.
815
+
816
+ ### Changed
817
+
818
+ - **`store.publicUrl` and `store.hostnames` refuse unspecified addresses** (`0.0.0.0`, `[::]`
819
+ and their other spellings) at kit creation, with a message naming the fix.
820
+
821
+ ## 0.1.5
822
+
823
+ ### Added
824
+
825
+ - **One public address for every agent-facing link.** `kit.publicOrigin(request)` is
826
+ `store.publicUrl` (`STORE_PUBLIC_URL`) when set, otherwise the store's own or Test preview
827
+ hostname the request arrived on, under the existing known-host rules (any other Host is still
828
+ refused). llms.txt, the UCP profile's links, the MCP link, both sitemaps, Product JSON-LD,
829
+ product and image links, all feeds and the agent card use it. Catalog URLs on any of the
830
+ store's own hostnames (including loopback and preview addresses) are moved onto that origin,
831
+ so no build-time or dev address is ever served to agents. No platform list is involved.
832
+ - **Homepage helpers.** `kit.discoveryLinks(request)` / `kit.renderDiscoveryLinks(request)`
833
+ return `<link>` tags for llms.txt, UCP, MCP, ACP checkout, the agent card, the product sitemap
834
+ and every selected feed. `kit.productListJsonLd(products, request)` /
835
+ `kit.renderProductListJsonLd(products, request)` return a schema.org `ItemList` of `Product`
836
+ entries. `kit.productJsonLd` and `kit.renderProductJsonLd` take an optional `request`. Product
837
+ data carries `sku`, and `gtin` or `mpn` only when the merchant supplied them.
838
+ - **Agent card.** `/.well-known/agent-card.json` names the store's UCP, ACP and MCP endpoints
839
+ and Relyon payments, with AP2 checkout mandates as an optional extension. It claims no A2A
840
+ message endpoint, and MCP checkout only in Test. Option `agentCard: false` turns it off.
841
+ - **llms.txt** also lists the ACP checkout endpoint, the agent card and a label for each feed.
842
+ - **Empty-feed diagnostics.** A selected feed with no rows reports `feed_empty` through
843
+ `feeds.onDiagnostic`, with `missing` naming the product facts that kept products out.
844
+ - **ChatGPT checkout eligibility.** The ChatGPT feed sets `is_eligible_checkout: true` once
845
+ Relyon reports the store's ChatGPT channel connected (`GET /v1/channels/chatgpt`, same mode,
846
+ re-read at most once a minute), the store has privacy and terms page URLs (sent as
847
+ `seller_privacy_policy` and `seller_tos`) and the product is in stock and purchasable without
848
+ restrictions, with the merchant's brand and a valid GTIN or merchant-supplied MPN.
849
+ Otherwise it stays false, with a `chatgpt_checkout_ineligible:<reason>`
850
+ diagnostic while the channel is connected.
851
+ - **Store policy sync.** `kit.syncStorePolicies({ confirm?, returns?, support? })` compares the
852
+ `policies` option with Relyon's stored store policies and returns `changes` and `needs`.
853
+ Without `confirm: true` it changes nothing. It never infers free returns or a return cost.
854
+ - **Doctor: store policies.** A new item FAILs naming each missing store-policy field and its
855
+ exact fix.
856
+
857
+ ### Changed
858
+
859
+ - **`/sitemap.xml` is a urlset** listing the product pages (the same entries as
860
+ `/sitemap-products.xml`), instead of a sitemap index. `sitemapIndex: false` still turns it off.
861
+ - **Store MCP checkout in Test.** The MCP server's instructions describe Test checkout through
862
+ the store's checkout page (`continue_url`, payment on the store, an `ord_` order). Live keeps
863
+ "not available" and the existing refusal and order-pending rules.
864
+ - **`store.publicUrl` in Test** must now be an origin on one of `store.hostnames` (https, or
865
+ http on loopback), as it already had to be in Live. A value elsewhere throws at kit creation.
866
+ - **A forwarded loopback host never reaches shared links.** On a loopback request, a present
867
+ `X-Forwarded-Host` that names loopback (or is empty or unknown) no longer selects the origin of
868
+ links in llms.txt, the sitemaps, feeds, the UCP profile, the agent card, JSON-LD or MCP results:
869
+ the request came through a proxy, so those links fall back to the primary hostname instead of
870
+ a loopback address. Direct loopback requests (no forwarded host) keep their own http origin and
871
+ port. That request's own checkout addressing (the URL its agent signed, status URLs and
872
+ hand-offs) still follows a local dev proxy's loopback host and port in Test, as in 0.1.4.
873
+ - **Test hand-off links land while the sandbox clock is frozen.** Relyon dates a Test link's
874
+ expiry on the sandbox clock, which stays at its start date until the sandbox moves it, so the
875
+ link looked expired on the store's clock and every agent hand-off landed unattributed. A Test
876
+ link already past its expiry now lands within 30 minutes of the kit first seeing it relayed
877
+ (the new `CheckoutRecord.handoffTokenAt`, which repeating a step never moves), still once only
878
+ and only for the exact link the kit relayed; without that time it is refused. Custom
879
+ `setHandoffToken` implementations should also set `handoffTokenAt` to `now`. Live links keep
880
+ the store's clock.
881
+ - **UCP hand-off payments claim no channel.** Relyon records each agent checkout's channel and
882
+ refuses a payment that claims another one; a UCP checkout is `google` only when Relyon verified
883
+ Google's own profile, which the store can't see. `landing().channel` (and an attributed
884
+ `createPayment` without a channel) is now `web` for UCP, and Relyon applies its record, so UCP
885
+ agents other than Google can pay on the store. A paused `google` channel still stops a UCP
886
+ hand-off payment at the store. ACP stays `chatgpt` and MCP `mcp`.
887
+ - **Starter and skills: agent checkout needs the synced index.** Store MCP, UCP and ACP checkout
888
+ only accept products published in Relyon's index, so the starter `main.js` runs
889
+ `kit.syncCatalog` after `kit.start()` once a Test key is set. Source-backed discovery and
890
+ feeds still need no sync.
891
+ - **Starter and skills: robots.txt opt-in.** The starter `main.js` serves the kit's robots.txt
892
+ (`robots: { existing: () => "" }`), so AI search and shopping crawlers are allowed and both
893
+ sitemaps are named, even when a host or tunnel puts its own rules in front.
894
+ - **Sample checkout page.** A definite non-charge (`closed`, or `not_found` answering the page's
895
+ own Pay request) turns Pay into "Try again" with a new checkout. A `not_found` while confirming
896
+ a payment that may have been sent keeps Pay disabled with the order status link.
897
+
898
+ ## 0.1.4
899
+
900
+ ### Added
901
+
902
+ - **Test agent checkout on the preview address, on any platform.** Relyon accepts a Test key on
903
+ any https address (and loopback over http with a port) as that key's own Test store, without a
904
+ verified domain; no platform list decides it. In Test mode the kit also answers, after
905
+ `store.hostnames`, on loopback (`localhost`, `127.0.0.1`, `[::1]`), on the hostnames in the
906
+ new `RELYON_PREVIEW_HOSTS` setting (comma separated hostnames or URLs: a tunnel or any preview
907
+ URL), on a `store.previewHosts` list, and, as hints only, on the app's own address when its
908
+ platform names it in a well-known variable (Replit, Vercel, Netlify, Codespaces, Render,
909
+ Railway). Other host headers are still refused. Hand-off links come back to the same preview
910
+ address. Plain http and a port are used only for loopback. `store.previewHosts: false` turns
911
+ this off. Live mode never adds these hostnames and its rules are unchanged.
912
+ - **Root sitemap index.** The kit serves `/sitemap.xml`, a sitemap index listing the product
913
+ sitemap. New option `sitemapIndex` (default true); set it to false when the store already serves
914
+ its own `/sitemap.xml`. The robots merge adds a `Sitemap:` line for the index before the product
915
+ sitemap's line.
916
+ - **Doctor on preview addresses.** In Test on an address with no Relyon domain the doctor
917
+ reports "Test on preview address": the kit's own verification 404 there carries
918
+ `x-relyon-test-preview: no-domain`, so that missing file is N/A, not a failure (an app's own
919
+ fallback 404, without the header, still fails), and an N/A
920
+ "Live readiness" item lists the go-live steps (publish, add and verify the domain, then a Live key
921
+ only with the merchant's approval).
922
+
923
+ ### Changed
924
+
925
+ - Behind a proxy, a forwarded store hostname is preferred over a loopback request host when the
926
+ kit picks the request's public hostname, so loopback-internal proxies keep working.
927
+ - Init's waiting message asks the merchant to add `RELYON_API_KEY` themselves in their
928
+ platform's secrets or environment settings (Replit Secrets, Vercel or Netlify environment
929
+ variables, or an uncommitted local `.env` file, for example) while the build continues.
930
+
931
+ ## 0.1.3
932
+
933
+ ### Added
934
+
935
+ - Build-first init and skills: create the store before requesting credentials.
936
+ - Optional automatic Test sandbox setup with verified private Node/POSIX storage,
937
+ bounded requests, strict Test validation and a persistent single-attempt marker.
938
+ Existing keys are preserved; credentials and claim URLs are never printed.
939
+ - Server-only `@relyon/store-kit/server-config` loader and explicit Test-only
940
+ `waitingForSandboxKey` mode. Store-owned discovery stays available while
941
+ checkout waits; no placeholder credential, payment or order is generated.
942
+ - Missing-key doctor checks stay UNVERIFIED and can resume after configuring a
943
+ real key without rebuilding. Protocol guidance distinguishes gated ACP Test,
944
+ UCP Test checkout and separate Commerce MCP checkout-link handoff.
945
+
946
+ ## 0.1.2
947
+
948
+ ### Added
949
+
950
+ - **Existing order on a replayed payment.** New optional `findOrderByPaymentId(paymentId)` option
951
+ (type `FindOrderByPaymentId`). When a succeeded payment's order was already created by an earlier
952
+ call (`orderStatus: "already_created"`), `kit.createPayment` calls it and returns what it finds as
953
+ `result.order`. It is read-only and called only in that case; if it throws, the error is logged
954
+ and `order` is left out. Without it, behavior is unchanged.
955
+ - **Safe feed group IDs.** New exports `feedGroupId(groupId)` and `FEED_GROUP_ID`. A variant group ID
956
+ that is already a valid feed group ID (1–50 letters, digits, `.`, `_`, `:`, `-`) is used unchanged.
957
+ A longer or unusual one (for example a long product handle) becomes a sanitized prefix plus
958
+ 12 hex digits of its SHA-256: stable across runs and the same in every feed. Two different store
959
+ group IDs that would map to one feed group are omitted with `inconsistent_or_duplicate_variant`
960
+ instead of being merged.
961
+
962
+ ### Changed
963
+
964
+ - **Doctor: Relyon answering with a web page.** The doctor no longer follows redirects from
965
+ Relyon's API. A 3xx answer or an HTML page is reported as "Relyon's server answered with a web
966
+ page instead of data", with the URL tried (query string and token-like path parts removed), the status and only
967
+ the origin of any `Location`,
968
+ and says the store and its network didn't cause it. DNS failures, timeouts, refused or blocked
969
+ connections and Relyon 5xx answers each get their own message. None suggests publishing the
970
+ store. Server-provided text is printed with terminal control characters removed. Runtime checkout
971
+ calls are unchanged.
972
+ - **`init` in pnpm workspaces.** When `pnpm-workspace.yaml` is found at or above the project,
973
+ `init` run at the workspace root installs the kit into the single server package it can identify,
974
+ or skips the install with a note naming the exact `pnpm --filter … add` command to run. Run inside
975
+ a workspace package, it installs into that package. When the install fails in a workspace that sets
976
+ `minimumReleaseAge`, it also says to wait or exempt only `@relyon/store-kit`. Skills are still written to the
977
+ project root.
978
+
979
+ ## 0.1.1
980
+
981
+ ### Added
982
+
983
+ - **Live hand-off links.** In Live mode (a Live key and `relyon.live: true`), `kit.landing` accepts
984
+ the `rc_live_` tokens Relyon issues for stores approved for Live. A token is accepted only when it
985
+ parses strictly (exact JWS header and payload fields, at most 2000 characters), names one of the
986
+ store's hostnames and the request's, hasn't expired, is exactly (constant-time) the latest token
987
+ the kit saw in a relayed Live answer for that agent checkout, carries a valid ES256 signature from
988
+ the Live signing keys in the store's Relyon UCP profile (refetched once for an unknown key ID,
989
+ never read from an expired copy) and lands for the first time. The cart and attribution come from
990
+ the kit's own record. See "Live hand-off links" in the README.
991
+ - **Doctor: Live checkout keys.** With `--live`, a `/.well-known/ucp` profile that advertises
992
+ checkout must also publish an ES256 signing key, or the item FAILs.
993
+ - **Apparel age group and gender.** New optional feed facts `feed.ageGroup` (`newborn`, `infant`,
994
+ `toddler`, `kids`, `adult`) and `feed.gender` (`male`, `female`, `unisex`), emitted as `age_group`
995
+ and `gender` in the Google and Microsoft feeds. Apparel items (a Google "Apparel & Accessories"
996
+ `category`, see `isApparelCategory`) without them get `adult` / `unisex` (`APPAREL_DEFAULTS`) with
997
+ `age_group_defaulted` / `gender_defaulted` diagnostics. Invalid values are omitted with
998
+ `invalid_age_group_omitted` / `invalid_gender_omitted` and never guessed. New exports:
999
+ `isApparelCategory`, `APPAREL_DEFAULTS`, `STORE_AGE_GROUPS`, `STORE_GENDERS`, and the types
1000
+ `StoreAgeGroup` and `StoreGender`.
1001
+ - `CHANGELOG.md` ships in the package.
1002
+ - **`store-kit init`.** `npx @relyon/store-kit init` sets an app up for coding agents in one
1003
+ non-interactive command: it adds `@relyon/store-kit` at this exact version with the app's package
1004
+ manager (detected from its lockfile; skipped when already installed, or with `--skip-install`),
1005
+ copies the six Relyon skills to `.agents/skills`, `.claude/skills` and `.cursor/skills`, and adds
1006
+ a marked Relyon block to `AGENTS.md` and `CLAUDE.md`. `--store "<idea>"` writes the idea verbatim
1007
+ to `relyon-store-brief.md`. A differing existing file is never changed: init reports the conflict
1008
+ and the line to add, and writes nothing. `--force` replaces the skill files, the store brief and only the
1009
+ marked Relyon block in `AGENTS.md` and `CLAUDE.md`; content outside that block is kept. A
1010
+ repeated, nested or misplaced marker, or a file that isn't valid UTF-8, stays a conflict even with
1011
+ `--force`. A file that changes while init runs is left as it is. The package manager runs with no
1012
+ stdin and without `RELYON_*` variables, and its output is printed only redacted. Symlinks are never followed, writes stay inside the
1013
+ project and are atomic, a second run changes nothing, and no key is ever asked for, printed or
1014
+ written (an idea containing a Relyon key shape is refused without echoing it).
1015
+ - **Bundled skills.** The package ships the six Relyon skills (`skills/relyon-setup`,
1016
+ `relyon-catalog`, `relyon-checkout`, `relyon-agents`, `relyon-orders`, `relyon-go-live`, with
1017
+ their reference files) and a root `AGENTS.md` entry point. relyon-setup opens with a "Start here"
1018
+ flow from a store idea to a working Test store.
1019
+ - **Doctor: N/A for legacy checks on store-first apps.** In Test, when the same run saw the store's
1020
+ UCP profile, verification file, `llms.txt` and MCP pass, Relyon's `pricing` and `checkout` doctor
1021
+ checks print N/A instead of FAIL. Store-first blockers Relyon reports under those checks still
1022
+ FAIL, and Live keeps every failure.
1023
+
1024
+ ### Changed
1025
+
1026
+ - **Clearer guidance.** The sitemap and product URL doctor messages say store-owned
1027
+ `catalog.source` callbacks need no sync (index sync is an optional dashboard mirror). The README
1028
+ opens with a "Start here" merchant prompt, matches the Relyon Core repository README, and no
1029
+ longer links to files outside the package.
1030
+
1031
+ - **Own-brand goods with no GTIN.** `feed.customGoods: true` together with `feed.ownBrand: true`,
1032
+ the product's `brand` and the store's own `mpn` (and no GTIN) is now an own-brand item: Google
1033
+ and Microsoft get brand + MPN, with no `identifier_attestation_conflict` and no
1034
+ `identifier_exists=false`. In 0.1.0 this combination was omitted from both XML feeds as a
1035
+ conflict. Other contradictions are unchanged: `ownBrand` and `customGoods` with a GTIN,
1036
+ `customGoods` with a GTIN, and `customGoods` with an MPN but without `ownBrand` remain conflicts.
1037
+ - **Crossed environments are refused.** A Relyon Test hand-off token (`rc_test_<payload>.<MAC>`) landing on a
1038
+ Live kit, and any `rc_live_` token landing on a Test kit, is refused (an unattributed checkout,
1039
+ never passed to a custom `cartTokens` resolver). In 0.1.0 the kit's mode played no part, and an
1040
+ `rc_live_` token wasn't recognized and reached a custom resolver. The kit's own sealed tokens
1041
+ (no dot) still reach the `cartTokens` resolver; don't share an explicit `cartTokens.secret`
1042
+ between a Test and a Live kit. Test-mode behaviour is otherwise unchanged.
1043
+ - **Event URLs.** An agent event's request URL drops a `relyon_cart` parameter whose name is
1044
+ percent-encoded (for example `%72elyon_cart`) too; URLs without one are reported unchanged.
1045
+ - **Live state stores.** A Live kit whose state store has no `claimHandoffToken` logs a warning at
1046
+ start (single use then holds per process only).
1047
+ - **Repository links.** `homepage`, `repository` and `bugs` point to
1048
+ https://github.com/relyon-payments/relyon-core. The doctor's and MCP server's reported version is
1049
+ 0.1.1.
1050
+
1051
+ ## 0.1.0
1052
+
1053
+ - First public release.