@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.
- package/AGENTS.md +75 -0
- package/CHANGELOG.md +1053 -0
- package/LICENSE +21 -0
- package/QUICKSTART.md +239 -0
- package/README.md +117 -2
- package/dist/adapters/express.d.ts +39 -0
- package/dist/adapters/express.js +106 -0
- package/dist/adapters/hono.d.ts +16 -0
- package/dist/adapters/hono.js +15 -0
- package/dist/adapters/next.d.ts +29 -0
- package/dist/adapters/next.js +38 -0
- package/dist/agent-card.d.ts +14 -0
- package/dist/agent-card.js +58 -0
- package/dist/agent-docs.d.ts +36 -0
- package/dist/agent-docs.js +78 -0
- package/dist/agent-hooks.d.ts +66 -0
- package/dist/agent-hooks.js +280 -0
- package/dist/agents.d.ts +24 -0
- package/dist/agents.js +120 -0
- package/dist/api-key.d.ts +6 -0
- package/dist/api-key.js +33 -0
- package/dist/cache.d.ts +46 -0
- package/dist/cache.js +86 -0
- package/dist/cart-tokens.d.ts +31 -0
- package/dist/cart-tokens.js +58 -0
- package/dist/cart-transfer.d.ts +95 -0
- package/dist/cart-transfer.js +387 -0
- package/dist/catalog-enrichment.d.ts +6 -0
- package/dist/catalog-enrichment.js +71 -0
- package/dist/catalog-reads.d.ts +126 -0
- package/dist/catalog-reads.js +104 -0
- package/dist/catalog.d.ts +78 -0
- package/dist/catalog.js +288 -0
- package/dist/charge-claims.d.ts +11 -0
- package/dist/charge-claims.js +47 -0
- package/dist/check.d.ts +44 -0
- package/dist/check.js +152 -0
- package/dist/checklist-manifest.d.ts +72 -0
- package/dist/checklist-manifest.js +341 -0
- package/dist/checkout.d.ts +222 -0
- package/dist/checkout.js +353 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +727 -0
- package/dist/confirmation.d.ts +78 -0
- package/dist/confirmation.js +124 -0
- package/dist/context.d.ts +81 -0
- package/dist/context.js +10 -0
- package/dist/discovery.d.ts +151 -0
- package/dist/discovery.js +346 -0
- package/dist/doctor-cart-transfer.d.ts +33 -0
- package/dist/doctor-cart-transfer.js +186 -0
- package/dist/doctor-catalog.d.ts +8 -0
- package/dist/doctor-catalog.js +47 -0
- package/dist/doctor-evidence.d.ts +22 -0
- package/dist/doctor-evidence.js +57 -0
- package/dist/doctor-merchant.d.ts +48 -0
- package/dist/doctor-merchant.js +74 -0
- package/dist/doctor-source.d.ts +5 -0
- package/dist/doctor-source.js +142 -0
- package/dist/doctor-variants.d.ts +70 -0
- package/dist/doctor-variants.js +102 -0
- package/dist/doctor.d.ts +215 -0
- package/dist/doctor.js +1689 -0
- package/dist/events.d.ts +95 -0
- package/dist/events.js +200 -0
- package/dist/feed-mapping.d.ts +114 -0
- package/dist/feed-mapping.js +152 -0
- package/dist/feed-values.d.ts +13 -0
- package/dist/feed-values.js +40 -0
- package/dist/feeds.d.ts +104 -0
- package/dist/feeds.js +366 -0
- package/dist/identify.d.ts +102 -0
- package/dist/identify.js +124 -0
- package/dist/identity.d.ts +37 -0
- package/dist/identity.js +54 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +41 -0
- package/dist/init.d.ts +157 -0
- package/dist/init.js +912 -0
- package/dist/kit-config.d.ts +19 -0
- package/dist/kit-config.js +43 -0
- package/dist/kit-environment.d.ts +20 -0
- package/dist/kit-environment.js +32 -0
- package/dist/kit-updates.d.ts +47 -0
- package/dist/kit-updates.js +77 -0
- package/dist/kit-version-project.d.ts +18 -0
- package/dist/kit-version-project.js +214 -0
- package/dist/kit-version.d.ts +37 -0
- package/dist/kit-version.js +162 -0
- package/dist/kit.d.ts +516 -0
- package/dist/kit.js +1309 -0
- package/dist/layers/pages.d.ts +3 -0
- package/dist/layers/pages.js +5 -0
- package/dist/layers/payments.d.ts +7 -0
- package/dist/layers/payments.js +9 -0
- package/dist/layers/products.d.ts +10 -0
- package/dist/layers/products.js +13 -0
- package/dist/live.d.ts +13 -0
- package/dist/live.js +52 -0
- package/dist/mcp.d.ts +270 -0
- package/dist/mcp.js +312 -0
- package/dist/next-steps.d.ts +101 -0
- package/dist/next-steps.js +257 -0
- package/dist/order-pending.d.ts +57 -0
- package/dist/order-pending.js +127 -0
- package/dist/orders.d.ts +12 -0
- package/dist/orders.js +21 -0
- package/dist/payments-init.d.ts +19 -0
- package/dist/payments-init.js +70 -0
- package/dist/payments-routes.d.ts +54 -0
- package/dist/payments-routes.js +123 -0
- package/dist/payments.d.ts +165 -0
- package/dist/payments.js +192 -0
- package/dist/pnpm-workspace.d.ts +58 -0
- package/dist/pnpm-workspace.js +250 -0
- package/dist/policies.d.ts +111 -0
- package/dist/policies.js +317 -0
- package/dist/preview-hosts.d.ts +64 -0
- package/dist/preview-hosts.js +175 -0
- package/dist/private-config.d.ts +169 -0
- package/dist/private-config.js +820 -0
- package/dist/progress.d.ts +54 -0
- package/dist/progress.js +153 -0
- package/dist/protocol-inputs.d.ts +22 -0
- package/dist/protocol-inputs.js +151 -0
- package/dist/public-origin.d.ts +50 -0
- package/dist/public-origin.js +180 -0
- package/dist/refusals.d.ts +86 -0
- package/dist/refusals.js +157 -0
- package/dist/relay.d.ts +107 -0
- package/dist/relay.js +655 -0
- package/dist/release-notes.d.ts +2 -0
- package/dist/release-notes.js +290 -0
- package/dist/relyon-cart-tokens.d.ts +101 -0
- package/dist/relyon-cart-tokens.js +521 -0
- package/dist/relyon.d.ts +141 -0
- package/dist/relyon.js +238 -0
- package/dist/robots.d.ts +27 -0
- package/dist/robots.js +127 -0
- package/dist/rules.d.ts +144 -0
- package/dist/rules.js +347 -0
- package/dist/sdk/generated/public-api.d.ts +4816 -0
- package/dist/sdk/generated/public-api.js +1 -0
- package/dist/sdk/index.d.ts +24 -0
- package/dist/sdk/index.js +34 -0
- package/dist/sdk/signatures.d.ts +17 -0
- package/dist/sdk/signatures.js +33 -0
- package/dist/setup.d.ts +37 -0
- package/dist/setup.js +94 -0
- package/dist/signatures.d.ts +112 -0
- package/dist/signatures.js +443 -0
- package/dist/state.d.ts +185 -0
- package/dist/state.js +96 -0
- package/dist/store-payments.d.ts +48 -0
- package/dist/store-payments.js +143 -0
- package/dist/structured-fields.d.ts +26 -0
- package/dist/structured-fields.js +200 -0
- package/dist/templates.d.ts +19 -0
- package/dist/templates.js +193 -0
- package/dist/test-checkout-command.d.ts +32 -0
- package/dist/test-checkout-command.js +161 -0
- package/dist/test-checkout.d.ts +88 -0
- package/dist/test-checkout.js +292 -0
- package/dist/types.d.ts +103 -0
- package/dist/types.js +18 -0
- package/dist/ucp-versions.d.ts +57 -0
- package/dist/ucp-versions.js +129 -0
- package/dist/util.d.ts +23 -0
- package/dist/util.js +68 -0
- package/dist/variants.d.ts +67 -0
- package/dist/variants.js +146 -0
- package/dist/version.d.ts +9 -0
- package/dist/version.js +10 -0
- package/dist/waiting.d.ts +43 -0
- package/dist/waiting.js +57 -0
- package/dist/webhook-command.d.ts +48 -0
- package/dist/webhook-command.js +367 -0
- package/dist/webhook-registration.d.ts +47 -0
- package/dist/webhook-registration.js +69 -0
- package/dist/webmcp-schema.d.ts +14 -0
- package/dist/webmcp-schema.js +140 -0
- package/dist/webmcp-script.d.ts +3 -0
- package/dist/webmcp-script.js +176 -0
- package/dist/webmcp-store.d.ts +102 -0
- package/dist/webmcp-store.js +116 -0
- package/dist/webmcp.d.ts +242 -0
- package/dist/webmcp.js +866 -0
- package/dist/wire-names.d.ts +85 -0
- package/dist/wire-names.js +109 -0
- package/package.json +118 -4
- package/release-notes.json +290 -0
- package/scripts/install-notice.cjs +7 -0
- package/skills/relyon-agents/SKILL.md +327 -0
- package/skills/relyon-catalog/SKILL.md +499 -0
- package/skills/relyon-catalog/references/example-store.md +218 -0
- package/skills/relyon-checkout/SKILL.md +603 -0
- package/skills/relyon-checkout/references/checkout-flow.md +257 -0
- package/skills/relyon-checkout/references/checkout-page.md +315 -0
- package/skills/relyon-go-live/SKILL.md +344 -0
- package/skills/relyon-orders/SKILL.md +191 -0
- package/skills/relyon-orders/references/webhook-receiver.md +113 -0
- package/skills/relyon-payments/SKILL.md +117 -0
- package/skills/relyon-setup/SKILL.md +1061 -0
- package/skills/relyon-setup/references/QUICKSTART.md +239 -0
- package/skills/relyon-setup/references/durable-state.md +209 -0
- package/skills/relyon-setup/references/express-server.md +388 -0
- package/skills/relyon-setup/references/next-app-router.md +251 -0
- package/templates/common/STORE-README.md +67 -0
- package/templates/common/gitignore +8 -0
- package/templates/common/scripts/check-pricing.ts +22 -0
- package/templates/common/scripts/serve.mjs +13 -0
- package/templates/common/server/catalog.ts +79 -0
- package/templates/common/server/checkout-flow.d.ts +34 -0
- package/templates/common/server/pages.ts +184 -0
- package/templates/common/server/storage.ts +114 -0
- package/templates/common/server/store.ts +67 -0
- package/templates/express/server/express.ts +20 -0
- package/templates/express/tsconfig.build.json +6 -0
- package/templates/express/tsconfig.json +9 -0
- package/templates/next/app/[[...path]]/route.ts +24 -0
- package/templates/next/next.config.mjs +19 -0
- package/templates/next/tsconfig.json +12 -0
- package/templates/payments/express.ts +39 -0
- package/templates/payments/next.ts +38 -0
- package/templates/payments/node.ts +39 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
export const KIT_RELEASE_NOTES = [
|
|
2
|
+
{
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"date": null,
|
|
5
|
+
"notable": "feature",
|
|
6
|
+
"summary": "@relyon/kit replaces @relyon/store-kit: pick payments only, products and agent selling, or Relyon-built shopping pages, and prove a payments-only app with npx @relyon/kit check.",
|
|
7
|
+
"details": "Unpublished.\n\n### Added\n\n- **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.\n- **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.\n- **`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.\n- **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).\n- **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`.\n\n### Changed\n\n- **/cart only for shopping pages.** The doctor requires a /cart page only for the shopping-pages layer.\n- **`@relyon/store-kit` is a wrapper.** It keeps every export, subpath and command, and its CLI points users to `@relyon/kit`.",
|
|
8
|
+
"unpublished": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.52",
|
|
12
|
+
"date": "2026-11-20",
|
|
13
|
+
"notable": null,
|
|
14
|
+
"summary": "The final @relyon/store-kit release, a thin wrapper around @relyon/kit 1.0.0 that sends the project-space names; generated stores switch to Live with env vars alone.",
|
|
15
|
+
"details": "Unpublished.\n\n### Added\n\n- **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.\n- **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.\n\n### Changed\n\n- **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`.",
|
|
16
|
+
"unpublished": true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"version": "0.1.51",
|
|
20
|
+
"date": "2026-11-05",
|
|
21
|
+
"notable": null,
|
|
22
|
+
"summary": "Google Pay in store checkout, off by default and enabled per store in the dashboard.",
|
|
23
|
+
"details": "Unpublished.\n\n### Added\n\n- **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.\n- **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.\n- **Docs.** The store kit reference documents the toggle, the TRX account-enablement prerequisite (integrations@trxservices.com), and the one-minute submit window.",
|
|
24
|
+
"unpublished": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"version": "0.1.50",
|
|
28
|
+
"date": "2026-11-03",
|
|
29
|
+
"notable": null,
|
|
30
|
+
"summary": "Require a real cart page for shoppers, with framework examples and a kit doctor check.",
|
|
31
|
+
"details": "Published.\n\n### Added\n\n- **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.\n- **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.\n- **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.",
|
|
32
|
+
"unpublished": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"version": "0.1.45",
|
|
36
|
+
"date": "2026-11-02",
|
|
37
|
+
"notable": "security",
|
|
38
|
+
"summary": "Sandbox creation requires an authenticated caller attached to its own workspace; a webhook 409 explains reuse and rotation, never a new sandbox.",
|
|
39
|
+
"details": "Published. Brief 89d.\n\n### Security\n\n- **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.\n\n### Fixed\n\n- **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.\n- **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.",
|
|
40
|
+
"unpublished": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"version": "0.1.40",
|
|
44
|
+
"date": "2026-11-02",
|
|
45
|
+
"notable": null,
|
|
46
|
+
"summary": "Workspaces with several stores: the kit names its store on every Relyon call, so each store keeps its own catalog; the sync result line names the store Relyon wrote to.",
|
|
47
|
+
"details": "Unpublished.\n\n### Added\n\n- **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.\n- **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.\n- New optional `RelyonConnection.storeHostname` for callers that construct a `RelyonGateway` directly; the kit sets it automatically.\n\n### Changed\n\n- `CatalogSyncResult` gains an optional `storeName` with the store Relyon wrote the sync to.",
|
|
48
|
+
"unpublished": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"version": "0.1.39",
|
|
52
|
+
"date": "2026-11-02",
|
|
53
|
+
"notable": null,
|
|
54
|
+
"summary": "Catalog sync derives attributes from options and inherits confirmed returns; doctor separates owner questions from product fixes; stale Test domains retire safely.",
|
|
55
|
+
"details": "Published.\n\n### Fixed\n\n- 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.\n- 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.\n- 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.\n- Starter products include factual category and attribute examples. Catalog guidance asks once, early, for owner-confirmed return terms, then syncs after saving them.\n- 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.",
|
|
56
|
+
"unpublished": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"version": "0.1.31",
|
|
60
|
+
"date": "2026-11-02",
|
|
61
|
+
"notable": null,
|
|
62
|
+
"summary": "The webhook route no longer warns about a changed secret when it refuses an unsigned request, such as the doctor's check.",
|
|
63
|
+
"details": "Published. Brief 85b.\n\n### Fixed\n\n- 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.",
|
|
64
|
+
"unpublished": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"version": "0.1.37",
|
|
68
|
+
"date": "2026-11-01",
|
|
69
|
+
"notable": null,
|
|
70
|
+
"summary": "The checklist manifest registers Relyon's per-store dashboard-completeness checks.",
|
|
71
|
+
"details": "Published.\n\n### Added\n\n- **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.",
|
|
72
|
+
"unpublished": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"version": "0.1.44",
|
|
76
|
+
"date": "2026-11-02",
|
|
77
|
+
"notable": null,
|
|
78
|
+
"summary": "The webhook route answers Relyon's doctor challenge fast even while a cold store is still recovering its signing secret.",
|
|
79
|
+
"details": "Unpublished. Brief 89c.\n\n### Fixed\n\n- 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.\n\n### Added\n\n- 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.",
|
|
80
|
+
"unpublished": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"version": "0.1.28",
|
|
84
|
+
"date": "2026-11-01",
|
|
85
|
+
"notable": null,
|
|
86
|
+
"summary": "Multi-store workspaces: the progress answer tolerates additive fields and can name the store; agent checkout defaults single-value options and says an agent credential is required.",
|
|
87
|
+
"details": "Published.\n\n### Fixed\n\n- **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.\n- **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\".\n\n### Added\n\n- **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.\n- **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.",
|
|
88
|
+
"unpublished": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"version": "0.1.25",
|
|
92
|
+
"date": "2026-10-31",
|
|
93
|
+
"notable": null,
|
|
94
|
+
"summary": "A transient catalog check is retried, then reported unverified instead of failed; the local domain hint names the kit step.",
|
|
95
|
+
"details": "Published. Post-0.1.19 follow-ups (Brief 78):\n\n### Fixed\n\n- 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.\n- 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.\"\n\nRelyon-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.",
|
|
96
|
+
"unpublished": false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"version": "0.1.24",
|
|
100
|
+
"date": "2026-10-31",
|
|
101
|
+
"notable": "feature",
|
|
102
|
+
"summary": "See your doctor's exact kit update advice and notable release notes in Core.",
|
|
103
|
+
"details": "Published.\n\n### Added\n\n- 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.\n- Shared release notes explain feature and security updates, with store-scoped version-specific dismissal and an exact-version prompt for no-terminal builders.",
|
|
104
|
+
"unpublished": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"version": "0.1.22",
|
|
108
|
+
"date": "2026-10-31",
|
|
109
|
+
"notable": null,
|
|
110
|
+
"summary": "Doctor reports the installed kit, registry latest, exact update pin and package-age holds.",
|
|
111
|
+
"details": "Released.\n\n### Fixed\n\n- Doctor resolves the store project's installed kit independently of the running\n command, checks configured-registry latest with bounded cached evidence,\n explains dependency mismatches and package-age holds, and emits one advisory\n `kit_version` result for human and JSON output. Exact package-manager commands\n never downgrade. Lookup failures remain visible without changing readiness or\n exit codes. Agent guidance uses current-version lookup, exact pins and doctor\n after installation.",
|
|
112
|
+
"unpublished": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"version": "0.1.21",
|
|
116
|
+
"date": "2026-10-29",
|
|
117
|
+
"notable": null,
|
|
118
|
+
"summary": "Doctor retries slow starts and agrees with Core on pending domain verification.",
|
|
119
|
+
"details": "Released. Doctor and dashboard agreement (Brief 80):\n\n### Fixed\n\n- The store doctor retries startup-looking answers — connection refused or\n reset, a gateway 502/503/504 that is not the kit's own waiting body, a\n tunnel or proxy error page, or an empty or HTML answer just after start —\n for a few attempts over about 12 seconds before judging, so a slow store\n start never reads as a catch-all misconfiguration. A store still not ready\n reports \"The store is still starting or unreachable. Wait a moment and\n re-run the doctor.\" with no mention of route order; a store that is up and\n really answers with its own page keeps the catch-all verdict.\n- A registered, file-serving domain awaiting verification now reads as a\n pending catalog state carrying the `kit.verifyDomain(\"<host>\")` step in both\n the doctor and the dashboard — never a catalog `check_unavailable` failure\n folding in fixes for surfaces that were never probed. The UCP-handler fix\n appears only when the UCP check actually fails.\n- The doctor's relyon-verification PENDING line and next-step action are\n marked as the agent's own step (run `kit.ensureDomain()` then\n `kit.verifyDomain(\"<host>\")` from the store, then re-run the doctor; do not\n hand it to the owner). When domain verification is the only remaining\n blocker the final summary says \"1 agent step left: verify the domain\"\n instead of a generic NOT DONE. The same rule sits near the top of the\n relyon-setup skill, QUICKSTART.md and the template STORE-README.md.\n- After `webhook --rotate`, a store still running the old secret logs that the\n signature didn't match the saved secret and to restart the server or reload\n RELYON_WEBHOOK_SECRET; the \"couldn't be resolved\" line appears only when no\n secret can be found at all. The secret is never logged.",
|
|
120
|
+
"unpublished": false
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"version": "0.1.20",
|
|
124
|
+
"date": "2026-10-29",
|
|
125
|
+
"notable": null,
|
|
126
|
+
"summary": "Valid store event batches are retained and webhook signature failures name the fix.",
|
|
127
|
+
"details": "Published. Brief 77 follow-ups (Relyon-side):\n\n- 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.\n- 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.",
|
|
128
|
+
"unpublished": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"version": "0.1.19",
|
|
132
|
+
"date": "2026-10-29",
|
|
133
|
+
"notable": null,
|
|
134
|
+
"summary": "Publication-label maintenance; no kit behavior change from 0.1.18.",
|
|
135
|
+
"details": "Published on npm. No behavior change from 0.1.18: the\nBrief 73 webhook follow-ups are Relyon-side, and the changelog's publication\nlabels now match npm.",
|
|
136
|
+
"unpublished": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"version": "0.1.18",
|
|
140
|
+
"date": "2026-10-29",
|
|
141
|
+
"notable": null,
|
|
142
|
+
"summary": "Domain checks require matching ownership and readiness scans preserve product identities.",
|
|
143
|
+
"details": "Published.\n\n### Fixed\n\n- 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.\n- 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.\n- 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.",
|
|
144
|
+
"unpublished": false
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"version": "0.1.17",
|
|
148
|
+
"date": "2026-10-29",
|
|
149
|
+
"notable": "security",
|
|
150
|
+
"summary": "Only the owning Live key can rotate its store's webhook signing secret.",
|
|
151
|
+
"details": "Published.\n\n### Added\n\n- **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.",
|
|
152
|
+
"unpublished": false
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"version": "0.1.16",
|
|
156
|
+
"date": "2026-10-29",
|
|
157
|
+
"notable": "feature",
|
|
158
|
+
"summary": "Live webhook setup resolves signing secrets at runtime without a secret file.",
|
|
159
|
+
"details": "Published.\n\n### Added\n\n- 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.\n- 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.\n- `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`.",
|
|
160
|
+
"unpublished": false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"version": "0.1.15",
|
|
164
|
+
"date": "2026-10-29",
|
|
165
|
+
"notable": "feature",
|
|
166
|
+
"summary": "Doctor and Core share one checklist with honest, complete evidence and webhook-secret proof.",
|
|
167
|
+
"details": "Published.\n\n### Added\n\n- **One manifest-defined checklist for kit and Core.** The checklist manifest is now v2: every check\n carries a validated actor (`agent`, `owner` or `staff`), verifier (`kit` or `server`), completion\n check and fix/action text, and the shipped `checklist-manifest.json` mirror is regenerated\n deterministically from the manifest source. Existing v1 manifests and stored outcomes stay readable.\n- **Complete doctor verdicts.** Every doctor run now emits exactly one explicit verdict per manifest\n check — PASS, FAIL, WARN, PENDING, N/A or UNVERIFIED — keyed by stable check id, including\n feeds-completeness, unknown-paths, kit-mount, policy-pages (in Test and in Live), live-readiness\n and the remote Relyon doctor subchecks — even when no usable key, a refusal or an outage leaves\n the server checks unobserved (UNVERIFIED, never absent). Passing checks no longer disappear, and\n unavailable observations never become fabricated success.\n- **Runtime webhook-secret proof.** A signed, harmless doctor challenge proves the running store\n resolves and accepts the webhook signing secret (recovered from Relyon, from the environment, or\n from the saved file). Only a proven challenge reads PASS; without a resolvable secret the route\n reads UNVERIFIED, and refusals fail the webhook check and name `RELYON_WEBHOOK_SECRET` without\n printing its value.\n- **Agent-verifiable preview domains.** On a public non-loopback Test address with no Relyon domain,\n domain verification is an actionable agent step (`kit.ensureDomain()` then `kit.verifyDomain()`);\n loopback stays N/A.\n\n### Fixed\n\n- Core and the kit now agree on the overall Relyon doctor verdict and every server-verified check;\n owner-pending policy and catalog facts read as pending, never as agent failures, and verifying a\n domain no longer erases live-readiness evidence.\n- The dashboard checklist renders only manifest steps with their latest stored authoritative\n verdicts: unfinished agent steps show the manifest prompt, owner/staff steps show Owner action or\n Relyon staff action, done steps show no prompt, and failed, unverified, pending, not-applicable and\n never-checked results are counted honestly instead of all reading as unchecked.\n- Catalog sync projects catalog-source products onto the API contract without sending local feed metadata.\n- Server-only Test configuration loads the saved webhook signing secret independently of the API key; runtime recovery accepts authorized endpoint adoption.\n- Webhook rotation checks local storage before rotating and reports stale environment overrides without printing secrets.\n- Initialization writes Replit instructions only on Replit and explains when an environment key supersedes an entered key.\n- Valid letter-bearing IPv6 addresses in crawler events no longer trip the card-number heuristic; PAN and track-data checks remain conservative.\n- Setup guidance covers detached processes, public Test domain verification and honest Test-mode hand-over.",
|
|
168
|
+
"unpublished": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"version": "0.1.14",
|
|
172
|
+
"date": "2026-10-28",
|
|
173
|
+
"notable": "feature",
|
|
174
|
+
"summary": "`npx @relyon/store-kit init` uses the same key flow on every host.",
|
|
175
|
+
"details": "Published. `npx @relyon/store-kit init` uses the same key flow on every host.\n\n### Added\n\n- **Honest checklist evidence.** Doctor sends bounded, outcome-only metadata\n for the kit-local checks it actually emitted, including Test checkout\n confirmation in the same invocation. Core stores these advisory, self-reported\n outcomes separately from server observations. Missing/legacy kit results stay\n “Not checked yet” in dashboard progress with a copyable doctor prompt; key\n existence in Core is not evidence that a key is installed in the store.\n- **The versioned readiness checklist manifest.** The kit now ships a\n cumulative checklist manifest (`checklist-manifest.ts`, exported as\n `KIT_CHECKLIST_MANIFEST`): every doctor check carries a stable `id`, the kit\n version that introduced it (`introducedIn`), a level (`required` or\n `recommended`) and the copyable agent prompt for it; required checks that\n must not bind immediately can carry an absolute `requiredBy` ISO date. The\n manifest debuts covering the existing check set, so every current check is\n `introducedIn: \"0.1.14\"` — doctor runs only record kit versions from this\n release on. Checks are never removed or reordered; additions bump\n `manifestVersion`. Each doctor item carries its check id, and `doctor --json`\n includes it per check plus the top-level `manifest_version`.\n- **Kit version exchange on the doctor call.** The doctor's `GET /v1/doctor`\n request carries the kit and manifest versions as request headers\n (`Relyon-Kit-Version`, `Relyon-Kit-Manifest-Version`), which Relyon records\n on the stored run. When Relyon's response metadata names a newer kit\n (`Relyon-Latest-Kit-Version`), the formatted report prints \"A newer kit is\n available\" and `doctor --json` carries `newer_kit_version`; absent or\n unparseable metadata means no notice and never fails the run.\n\n- **Environment-first keys, identical on every host.** When `RELYON_API_KEY`\n is in the environment, use it and write no key file. Otherwise retain the\n local-development flow (automatic Test setup, gitignored `.env`, 0600).\n Existing `.env.local` and `.env.production` keys are reused and loaded\n just like `.env`. Before publishing, doctor warns if the Test key is only\n in a file, not in the host's environment settings; this is advisory, not\n a FAIL. No Replit-specific ignore-file edits, workspace-root checks,\n doctor gates, copy reconciliation, messages, or agent-card instructions\n remain in the key flow. The Replit platform note is plain documentation.\n\n### Changed\n\n- **Webhook secrets follow the API key's source.** An environment API key\n registers/verifies the Test endpoint without saving any file, including\n during init's best-effort registration and `webhook --rotate`. The receiver\n resolves the signing secret at runtime. Only a local file key retains\n secret saving to gitignored `.env` (0600, never printed). An explicit\n `RELYON_WEBHOOK_SECRET` in the environment remains an optional override.\n The rule and output are identical on every host.\n\n- **Private-folder candidates are tried in order, screened before creation.**\n With `RELYON_PRIVATE_DIR` unset, init tries\n `$XDG_CONFIG_HOME/relyon/<project>` and then `~/.config/relyon/<project>`;\n a candidate that would sit inside the project or inside a git tree is\n skipped before anything is created, so no empty folder is left behind.\n A just-created folder that still fails verification is removed best-effort.\n The read path (`loadTestConfig`) screens the same way. Every existing check\n stays enforced: 0700, owner-only, outside the project and every git tree, no\n links.\n- **The no-private-location refusal names the refused path and reason** and\n prints a `RELYON_PRIVATE_DIR=<dir>` remedy before the get-key lines.\n- **The doctor names a private preview.** A redirect to an external sign-in page or\n a Cloudflare challenge answer now reports \"the preview is private, publish\n or use the public URL\" instead of the generic redirect or catch-all FAIL\n detail. No doctor item is added, renamed or reordered; redirect targets stay\n origin-only in the output.\n- **The bundled relyon-setup skill** documents the environment-first key\n flow and ordered `RELYON_PRIVATE_DIR` fallback, with only a plain\n documentation note for Replit.\n- **Review fixes.** The doctor reports a Cloudflare challenge only for a 403/429/503\n status or a `cf-mitigated: challenge` header, so a 200 whose body mentions\n the challenge platform gets the normal checks. Private-folder screening\n survives a dangling symlink on a candidate ancestor (refused as \"its\n location can't be checked\", next candidate tried); a just-created\n folder that fails verification is removed with `rmdir`, never a recursive\n delete.",
|
|
176
|
+
"unpublished": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"version": "0.1.13",
|
|
180
|
+
"date": "2026-10-28",
|
|
181
|
+
"notable": "feature",
|
|
182
|
+
"summary": "The kit registers the store's webhook endpoint itself: a new `npx @relyon/store-kit webhook` command, run by the coding agent after publish.",
|
|
183
|
+
"details": "Published on npm. The kit registers the store's webhook\nendpoint itself: a new `npx @relyon/store-kit webhook` command, run by the\ncoding agent after publish.\n\n### Added\n\n- **`npx @relyon/store-kit webhook`.** Registers `<STORE_PUBLIC_URL>/relyon/webhooks`\n (or `--url`, and `--webhook-path` when `paths.webhook` differs) for the\n `agent_rules.updated` event through `POST /v1/webhook_endpoints`, idempotently:\n a second run for the same URL never registers a duplicate. It recovers the\n one-time signing secret by replaying the original registration (a\n deterministic Idempotency-Key derived from the URL); a Test registration\n replays without expiry. Every run reconciles: the replay answers the\n endpoint's CURRENT secret, so a secret rotated elsewhere (in-place rotation\n keeps the endpoint id) is detected and replaced in `.env`. There is one\n endpoint per URL: when an active endpoint already exists for it — registered\n from the dashboard or by an older kit — the deterministic registration\n adopts it, returns its current secret and widens its subscription to cover\n the requester's events instead of creating a duplicate. A registration row\n the key cannot replay as-is — a session's, a legacy principal-less row, or\n one whose endpoint was superseded, disabled or deleted — is re-pointed at\n the newest active endpoint and answered as an adoption with its current\n secret (and a replacement Test key in the same store recovers the secret\n too: the recorded principal transfers to it). `--rotate` rotates that same\n endpoint's signing secret in place — same `we_` id, fresh secret, no second\n endpoint — and is the only rotation trigger: a normal run whose replay is\n refused (409) or names another endpoint exits 1, pointing at `--rotate`, and\n never saves a superseded secret. The rotation key mixes the URL with fresh\n randomness on every run, so every `--rotate` rotates — a retried interrupted\n rotation rotates again rather than replaying — and an answer Relyon marks as\n a replay is reported as \"the current secret was recovered\", never as the\n previous secret having stopped verifying. The\n secret is written as `RELYON_WEBHOOK_SECRET` to the\n project's `.env` with init's guards (0600, git- and docker-ignored, never when\n `.env` is tracked) and is never printed. Anything Relyon returns is validated\n before it is saved (Test secret shape, endpoint id shape, `livemode: false`);\n a malformed answer fails with a generic error and writes nothing. The command\n refuses obvious preview and loopback hosts (`*.replit.dev`, localhost) with a\n publish-first message. On Replit it notes the deployment needs only\n `RELYON_API_KEY` in Secrets. Test-only: it refuses Live keys,\n `RELYON_LIVE=true` and missing keys.\n- **The receiver resolves the webhook secret itself at runtime (Test).** When\n `rules.webhookSecret` / `RELYON_WEBHOOK_SECRET` is unset and the store has a\n usable Test key and a configured public origin, the kit's webhook receiver\n replays its own deterministic registration to recover the signing secret,\n caches it in memory and never logs it. Only a replayed answer is accepted: a\n fresh adoption answer is refused (the row it records makes the next attempt,\n after the cooldown, a replay, so the receiver self-heals), and a\n cross-principal replay (409), an endpoint-id mismatch or a malformed answer\n fails closed — the webhook is refused with guidance to run\n `npx @relyon/store-kit webhook`. After any resolution failure the receiver\n backs off (60 seconds, doubling per consecutive failure up to 15 minutes)\n and warns once per cooldown window, and a bad signature against the cached\n secret re-resolves at most once per window — a re-resolution that returns\n the same (still stale) secret counts as a failure, so the backoff keeps\n doubling instead of resetting and an unsigned-request flood cannot amplify\n into Relyon calls. Any other validly signed event type is\n acknowledged (200) so a `\"*\"` subscription never piles up failures. Live\n never resolves, and no registration POST ever goes out from a request\n handler. Deployments need only `RELYON_API_KEY`; `RELYON_WEBHOOK_SECRET`\n stays an optional explicit override.\n- **Init registers the webhook best-effort.** After automatic Test setup, when\n `STORE_PUBLIC_URL` is known, init runs the same registration and prints one\n outcome line; a failure is deferred to `npx @relyon/store-kit webhook` after\n publish and never fails init.\n\n### Changed\n\n- **The doctor's preview webhook finding is agent-actionable.** On a preview or\n loopback URL, `webhook_missing` is now PENDING with \"run\n `npx @relyon/store-kit webhook` after publish\" instead of a merchant question;\n only items that carry merchant to-dos print \"PENDING merchant\", and the \"Do\n this next\" list includes the webhook step. `--strict` and Live still FAIL it.\n- **Agent-first setup copy.** The skills, quick start and get-sandbox-key page\n now describe the agent running init → build → publish → webhook → doctor\n itself; the owner is needed only for policies, the support contact and Live\n approval.",
|
|
184
|
+
"unpublished": false
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"version": "0.1.12",
|
|
188
|
+
"date": "2026-10-27",
|
|
189
|
+
"notable": null,
|
|
190
|
+
"summary": "Every discovery feed lists non-buyable variants without falsely enabling checkout.",
|
|
191
|
+
"details": "Published. Every feed lists every variant. Before this release a variant agents could see but\nnot buy (for example a demo store still waiting for its sandbox key, or an age-restricted item)\nfilled `openai.jsonl` while `google.xml` and `microsoft.xml` dropped the item entirely, and one\nunsupported option key (anything but color/size/material/pattern) dropped the whole XML item.\n\n### Changed\n\n- **Google and Microsoft list non-buyable items for discovery.** An agent-visible item with\n `purchasable: false`, `restrictions` or a non-empty `must_ask` now appears in both XML feeds\n with its own id, price, availability, image and `item_group_id`, exactly as in the ChatGPT feed.\n Checkout flags stay honest: `is_eligible_checkout` is false and `native_commerce` never reports\n such an item as checkout-eligible, even when the store's channel policy declares it eligible.\n The `unrestricted_buyability_unknown` omission is gone.\n- **Unsupported XML option keys lose the attribute, not the item.** A variant option outside\n color/size/material/pattern (such as `scent`) is omitted from the Google and Microsoft items\n with an `xml_variant_attribute_omitted:<key>` diagnostic per feed; the item is still listed and\n the ChatGPT feed keeps the full `variant_dict`. The `xml_variant_attributes_unsupported`\n whole-item omission is gone.\n- **Setup skill: save one sandbox key.** The setup skill now tells coding agents to save only\n `restrictedKey` as `RELYON_API_KEY` and ignore `publishableKey`, matching the one-key sandbox\n UI. Skills-only follow-up: no kit code, export or behaviour changes.",
|
|
192
|
+
"unpublished": false
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"version": "0.1.11",
|
|
196
|
+
"date": "2026-10-25",
|
|
197
|
+
"notable": "feature",
|
|
198
|
+
"summary": "Product options work end to end and doctor checks usable pages and actual cart transfer.",
|
|
199
|
+
"details": "Published. Products with options work end to end, and doctor checks real outcomes, not just\nstatus codes. The store still owns products, options and the cart; options stay opaque to Relyon\nand nothing is re-priced.\n\n### Added\n\n- **Variant resolution.** One helper maps a feed ID to `{ product_id, options }`: a variant ID to\n its parent's `merchant_product_id` plus that variant's `options`, a product to itself. It also\n picks the default purchasable item: a product without options, else the first variant in\n `feed.variants`, else the first value of each declared option (common shapes, best effort).\n- **`kit.landing()` takes a URL, a path, `URLSearchParams` or a searchParams object** as well as a\n `Request`, so a Next.js server component can call `kit.landing(await searchParams)`.\n- **Checkout page marker.** `data-relyon-cart-items=\"<items>\"` (`CHECKOUT_CART_ITEMS_ATTRIBUTE`,\n counted by `cartItemCount(inputs)`), `0` for an empty cart, on an element of the checkout page.\n- **Doctor \"product variants\" row.** NOT DONE, worded as a warning for agents, when an\n agent-visible product has options but no `feed.variants`, or when options were flattened into\n separate ungrouped listings with different prices. The MCP product summaries gain each\n configurable product's variant IDs, options and prices (and `group_id`), and every product's\n `purchasable` flag (false when agents may see but not buy it), additively.\n- **Doctor \"policy pages\" row (Test).** A policy link Relyon holds on the store's origin or\n loopback that doesn't open (for example a localhost returns page answering 404) is an \"Owner\n to fill in\" item.\n- **Doctor closing text** tells coding agents to list the owner's to-dos (policies, support\n contact, domain, Live keys) in their final chat message and never to say shoppers can pay before\n checkout is live. `doctor --json` gains `owner_todos` (additive).\n- **Template variants.** The template catalog may declare `variants` (`id`, `options`, `amount`);\n they map to `configurable`, `options` and `feed.variants`. The template's `priceCart` prices the\n chosen variant and refuses a bad option naming the product and the option. Its checkout page\n renders the marker in the empty and filled states (an empty checkout no longer redirects), and\n `next.config.mjs` sets `allowedDevOrigins: [\"127.0.0.1\"]`.\n\n### Changed\n\n- **test-checkout** sends the default item's options on the cart line and accepts the store\n answering with the parent or the variant ID. `--product` takes a product ID or a variant feed ID.\n A refusal names `cart.lines[0]`, the product ID and the exact options tried, and the command\n prints them with a `--product <id>` suggestion.\n- **Cart transfer** resolves a variant feed ID to its product plus options before `priceCart`,\n accepts a priced line naming either ID and echoes the caller's item ID. The sealed\n `relyon_transfer` token (version 2) carries options; 0.1.10 tokens still land, their variant IDs\n mapped from the catalog.\n- **Doctor \"cart transfer\" row (Test)** transfers a real item from the store's MCP\n `search_products`, only one cart transfer can sell: agent-purchasable, in stock, and a listed\n variant for a product with options (variants first, then products without options). When\n `/ucp/carts` refuses one, it tries the next (up to 5) and names every item tried if all are\n refused. It opens the `continue_url` and\n requires `data-relyon-cart-items` with a non-empty cart (card fields alone are not enough); NOT DONE with the fix otherwise, including\n when the store needs a caller key and `RELYON_CART_TRANSFER_KEY` isn't in doctor's environment.\n Live keeps the reachability check.\n- **Doctor \"checkout page\" row** requires the checkout marker: a redirect to the home page or a 200\n placeholder is NOT DONE, naming where the page landed.\n- **Skills and docs:** the catalog variant example is the Tee (S–XL $25, 2XL–3XL $30, black or\n white); the Next.js reference lists `app/.well-known/ucp/[...path]/route.ts`, adds a Next.js 16\n product-page pattern, keeps kit imports out of client components and notes `allowedDevOrigins`;\n copyable code no longer defaults to `shop.example.com`.",
|
|
200
|
+
"unpublished": false
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"version": "0.1.10",
|
|
204
|
+
"date": "2026-10-25",
|
|
205
|
+
"notable": "feature",
|
|
206
|
+
"summary": "Stop refusing good orders: Relyon and the kit check that the money adds up, not how the store models its products.",
|
|
207
|
+
"details": "Published. Stop refusing good orders: Relyon and the kit check that the money adds up, not how\nthe store models its products.\n\n### Added\n\n- **UCP cart transfer (`POST /ucp/carts`).** Google's UCP Cart API hands a shopper's cart to the\n store: item IDs (the store's feed IDs, so variant IDs for `feed.variants`) and quantities. The\n kit answers it itself, with nothing sent to Relyon. It reads the catalog (agent-visible,\n agent-purchasable entries only; a variant wins over its product), prices the lines with\n `priceCart` (operation `cart_transfer`) and answers a UCP cart with an upper-case currency,\n line and cart totals, `expires_at` and a `continue_url` to the store's own checkout. Unusable\n items are named in `messages[]` with their JSON path and the rest still form the cart. When no\n item is usable the answer is a UCP error with no cart `id`. Cart get, update and cancel are not\n offered.\n- **`cartTransfer` option.** Test: on by default, open unless a caller key is set. Live: on only\n with a key. The key is `cartTransfer.apiKey` or `RELYON_CART_TRANSFER_KEY` (16+ characters). It\n is checked in constant time against `X-API-Key` (401 missing, 403 wrong).\n `cartTransfer: false` switches it off. See `docs/cart-transfer.md` in the kit's source.\n- **Transferred-cart landing.** The `continue_url` carries a sealed, expiring `relyon_transfer`\n token. `landing()` pre-fills those lines, re-priced by `priceCart`, marked `transferred: true`\n and never attributed: no agent checkout, no checkout authority, no hand-off event. The store\n template's checkout page uses it.\n- **UCP 2026-04-08.** The served `/.well-known/ucp` stays 2026-08-25 and gains\n `dev.ucp.shopping.cart` (while cart transfer is on) and `supported_versions[\"2026-04-08\"]`. The\n kit serves `/.well-known/ucp/2026-04-08`, the same profile mapped to 2026-04-08 (REST endpoint\n `/ucp/2026-04-08`, `signing_keys[]` with a `keys[]` mirror; checkout, fulfillment and discount,\n no order capability). `/ucp/2026-04-08/*` relays\n checkout to Relyon at the URL the agent called, and Relyon answers at 2026-04-08.\n- **Doctor \"cart transfer\" row.** It reports PASS when cart transfer is advertised, the kit\n answers `POST /ucp/carts` (a caller-key refusal counts as reachable) and the 2026-04-08 profile\n is valid. It reports FAIL with the fix when the app answers those paths, and N/A when cart\n transfer is off. Probes stay on the store's origin and price nothing. `doctor --json` only\n gains the row.\n\n### Changed\n\n- **Currency in any case.** `usd` and `USD` are both accepted on carts and payments; the kit\n upper-cases currency before relaying a cart or sending a payment.\n- **Contract `Cart` on payments.** `POST /v1/payments` accepts the contract `Cart`, so the default\n `paymentCartFormat: \"contract\"` works. `paymentCartFormat: \"server-legacy\"` still works but is\n deprecated: the kit logs a warning at startup. The templates, README, quick start and skills no\n longer set it.\n- **`test-checkout` buys a variant.** A store whose only purchasable products are configurable\n (`feed.variants`) gets one variant, priced by the store's `priceCart`. Each cart line must be an\n agent-purchasable product in the synced catalog; a line that isn't is refused, naming the item.\n- **Refusals name the field.** `test-checkout` and the kit's relayed-refusal log print each failing\n field and its reason (`Field <param>: <reason>`), never only \"not a valid priced cart\".\n- **Doctor DONE needs pages people can use.** Two new checks: the store's checkout page\n (`--checkout-path`, default `/checkout`) and up to three product pages from the product sitemap\n must answer 200 on the store's own origin (same-origin redirects are followed; off-origin\n redirects are not). Otherwise the verdict is NOT DONE with the exact next step. `doctor --json`\n gains the two items; the schema is otherwise unchanged.\n- **Merchant-pending rows say \"Owner to fill in\"** and tell agents not to invent policies, a support\n email or a domain. Still presentation only, never checkout authority.\n- **`init`.** The Express template checks Node.js >= 22.13 before writing anything and says so\n clearly. A folder named like one of the template's dependencies (`express`, `next`) no longer\n produces a package npm refuses to install (`express-store`). Next.js 15 and 16 are no longer\n called \"untested\"; only majors the Next.js reference doesn't cover get a warning.\n- **`productJsonLd` is typed** (`ProductJsonLd`), so reading `image?.[0]` or `offers?.price` passes a\n `next build` type check on Next.js 16.\n- **The served UCP profile is no longer Relyon's body byte for byte.** The additions above are\n additive; every other member passes through unchanged.\n- **A UCP checkout create with `cart_id` is refused** (`400 cart_id_unsupported`) instead of\n being relayed with the field ignored.",
|
|
208
|
+
"unpublished": false
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"version": "0.1.9",
|
|
212
|
+
"date": "2026-10-25",
|
|
213
|
+
"notable": "feature",
|
|
214
|
+
"summary": "Coding agents complete the Test checkout themselves and reach DONE without a person.",
|
|
215
|
+
"details": "Published. Coding agents complete the Test checkout themselves and reach DONE without a person.\n\n### Added\n\n- **`npx @relyon/store-kit test-checkout --url <store>`.** One Test purchase through the kit's new\n Test-only route on the store, `POST /relyon/test-checkout`: one agent-purchasable product priced by\n the store's `priceCart`, a Relyon payment session paid with the Test mock processor's opaque\n token through the usual pay-and-confirm path (so `createOrder` runs). No card number exists\n anywhere. The request carries a short-lived HMAC proof made with the Test key (method, host, path,\n timestamp, nonce, body hash); the key is never sent to the store or printed. Bad, stale or\n replayed proofs get a bare 401; no proof, Live or no Test key get 404 (503 while waiting for a\n key). One idempotency key per run, so a resend never pays twice. A non-mock Test processor (a TRX\n sandbox account) is refused with a pointer to the store's checkout page. The command refuses Live\n keys and `RELYON_LIVE=true` (exit 2) and then confirms with `GET /v1/sandboxes/progress` under the\n doctor's key rules.\n- **Feed variants.** `feed.variants` on a configurable product lists each variant's `id`, `options`\n and `exactPrice`; every feed gets one row per variant, grouped under the product's ID, each with\n its own price.\n- **Doctor \"products missing from feeds\".** A WARN (never a FAIL) when a product in the product\n sitemap is missing from a selected feed.\n\n### Changed\n\n- **Doctor wording.** New row status `NOT DONE` for \"Relyon answered, no Test checkout recorded\";\n `UNVERIFIED` only when Relyon couldn't be asked. While NOT DONE no summary says \"No failures\":\n the footer reads `NOT DONE yet (see the steps above): …` and Relyon's doctor row says \"Relyon's\n checks pass\". The checkout step names `test-checkout --url <store>`. Relyon's long\n `check_unavailable` text is shortened to its required conditions and a short fix. Exit codes\n are unchanged (NOT DONE is 2). `doctor --json` is unchanged apart from the new row status.\n- **Key loading.** Init and doctor's key step say how a plain Node/Express server loads the key\n (`loadTestConfig()` from `@relyon/store-kit/server-config`, or dotenv) and never to print `.env`\n or paste the key into a command.\n- **robots.txt is served by default** (AI search and shopping crawlers allowed, both sitemaps\n listed). `robots: false` opts out; `robots: { existing }` keeps merging into an app's own policy.\n An Express app whose own robots route is mounted after the kit must pass one or the other.\n- **Next.js 16.** The Next template's route has no segment config (`runtime`, `dynamic`), its\n `tsconfig.json` uses NodeNext resolution and `next.config.mjs` adds `turbopack: {}`, so it builds\n on Next.js 16 (Turbopack, `cacheComponents`) and 15. The skills drop `export const runtime`.\n- **Feed diagnostics pointer.** The doctor's \"see the kit's feed diagnostics\" text names the\n relyon-catalog feeds section and `feeds.onDiagnostic` instead.\n- **Init flags.** `--yes` is accepted. `--template … --dir <folder>` creates no Test sandbox unless\n asked with `--auto-test-key` or `RELYON_AUTO_TEST_KEY=true`.",
|
|
216
|
+
"unpublished": false
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"version": "0.1.8",
|
|
220
|
+
"date": "2026-10-24",
|
|
221
|
+
"notable": "feature",
|
|
222
|
+
"summary": "Doctor gives coding agents a clear DONE or NOT DONE verdict with exact next steps.",
|
|
223
|
+
"details": "Published. Coding agents know when they are done: the kit's own output says NOT DONE and lists\nthe exact next steps until a Test key is present, the doctor passes, Relyon has confirmed one\ncompleted Test checkout and the feeds are live.\n\n### Added\n\n- **Doctor verdict.** The first line is `DONE: Test integration verified by Relyon.` or\n `NOT DONE: <n> of <m> required steps remain.`, followed by a numbered \"Do this next\" list built\n from the items' own fix texts and ending with `Then run: npx @relyon/store-kit doctor`.\n `StoreDoctorResult.ok` is unchanged.\n- **\"Test checkout confirmed by Relyon\".** In Test the doctor reads `GET /v1/sandboxes/progress`\n (outside the /v1 contract) with the Test key: PASS, a step to do, or UNVERIFIED when Relyon can't\n be asked (never DONE). A saved key goes only to Relyon's official https origin, and never in Live.\n- **`doctor --json`.** One JSON object on stdout and nothing else: `status`, `version`, `checks`,\n `next_steps` and `confirmed`, without secrets.\n- **Definition-of-done block.** Init keeps a second marked block, `relyon-done`, in AGENTS.md,\n CLAUDE.md and replit.md (created when missing, appended when absent, updated in place). Rerunning\n init leaves the files byte-identical; symlink, UTF-8 and marker rules match the pointer block,\n which is unchanged.\n- **`init --agent-hooks`** (off by default): one Relyon stop hook merged into\n `.claude/settings.json`, `.cursor/hooks.json` and `.github/hooks/relyon.json`, never duplicated,\n nothing written when a file isn't valid JSON. The hook (`doctor --agent-hook <tool>`, hidden)\n sends the NOT DONE steps back at most 3 times per session, counts outside the project, never\n prints secrets and allows the stop on any internal error.\n- **`developer_hint`.** The 503 waiting body and kit setup errors (invalid or missing key, missing\n configuration) carry a builder-facing hint; the shopper message and the waiting shape are\n unchanged.\n\n### Changed\n\n- **Doctor exit codes:** 0 only when DONE, 2 when NOT DONE without any FAIL, 1 on any FAIL. Usage\n errors keep exit code 2; `--strict` and Live keep their meaning.\n- **Feeds count only when there are some.** DONE needs at least one selected feed, and every\n selected feed PASS; with none selected, doctor's next step says how to turn feeds on.\n- **One summary.** The CLI's verdict line and \"Do this next\" list replace 0.1.7's\n `NOT DONE: X of Y checks failed.` / `Next:` block, so doctor prints one summary; each FAIL's fix\n is a \"Fix …\" step. `formatStoreDoctor` keeps the 0.1.7 block unless called with\n `{ nextSteps: false }`.\n- **Saved key stays on Relyon's origin for every doctor request.** As in 0.1.7, a saved Test key\n goes only to Relyon's official https API unless `--allow-saved-key-to-base-url` is passed; this\n now also covers the progress read, and the agent stop hook never sends it elsewhere. When the\n key is withheld, the first step says how to proceed. In Live the saved key isn't read.",
|
|
224
|
+
"unpublished": false
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"version": "0.1.7",
|
|
228
|
+
"date": null,
|
|
229
|
+
"notable": "feature",
|
|
230
|
+
"summary": "Initialization automatically sets up a Test key and gives coding agents reliable setup steps.",
|
|
231
|
+
"details": "Unpublished. Automatic Test key and agent-proof setup: a coding agent that runs\n`npx @relyon/store-kit init` in a fresh store project gets a working Test key with no human step,\nkit routes that answer before a key exists, and a doctor that catches the usual mistakes.\n\n### Added\n\n- **Automatic Test key without configuration.** With no usable key and `RELYON_PRIVATE_DIR` unset,\n init uses an owner-only (0700) private folder per project under `$XDG_CONFIG_HOME/relyon` or\n `~/.config/relyon`, outside the project and every git tree, and creates one Test sandbox through\n `POST /v1/sandboxes`. The one-attempt marker still means reruns and crashes never create a second\n sandbox. Init also sets `RELYON_API_KEY` in the project's `.env` (0600), first adding `.env` to\n `.gitignore` (in a repository, git itself must confirm `.env` is ignored), and refuses with a\n reason when `.env` is tracked by git or git can't confirm it isn't. `loadTestConfig` reads the\n default folder too. Never Live: `RELYON_LIVE=true` turns automatic setup off.\n- **`init --key-from-stdin`.** When provisioning can't run, init prints exactly one URL\n (https://core.getrelyon.com/get-sandbox-key) and this one command. It reads the key from stdin or\n a hidden prompt (never an argument), accepts only a Test key, stores it the same way and never\n echoes it.\n- **Waiting routes.** With no key (Test), every kit path answers from the kit with\n `waiting_for_sandbox_key`: 503 + `Retry-After` for checkout-bearing JSON routes, a browse-only MCP\n server, and 200 for `llms.txt`, sitemaps, feeds and the opt-in `robots.txt`, each marked with the\n status. Nothing advertises checkout or reveals configuration. The Express, Next.js and Hono\n adapters mount with no key.\n- **Doctor gap checks**, with or without a key: a kit path answered by HTML or a non-kit body\n FAILs (\"Your server's catch-all route answers this path. Mount storeKitMiddleware before the\n catch-all.\"); a random unknown path answering 200 FAILs (\"Your server answers 200 for unknown\n paths, so agents can't tell what is missing. Return 404 for unknown non-page paths.\"); a project\n whose source mounts the kit only when `RELYON_API_KEY` is set gets a WARN (\"Mount the kit always;\n it waits safely without a key.\"). Without a key, `/.well-known/ucp` and the verification file\n count as pending only when they give the kit's own 503 waiting answer; a plain or JSON 404, a\n 500, a redirect or a catch-all 200 there FAILs.\n\n### Changed\n\n- Placeholder or malformed keys (empty, `your_key_here`, `rly_test_xxx`, `changeme`, anything that\n isn't a well-formed key) count as no key: waiting status and automatic setup, not\n `invalid_api_key`. A Live kit still refuses to start without its Live key.\n- QUICKSTART, the marked AGENTS.md/CLAUDE.md block and init's closing lines start with \"First read\n the relyon-setup skill (…)\" and end with \"Finish with `npx @relyon/store-kit doctor` and fix every\n FAIL.\" An existing AGENTS.md or CLAUDE.md without the block gets it appended without `--force`;\n `--force` keeps its meaning.\n- Test accepts http policy URLs on `localhost`, `127.0.0.1` and `[::1]`. Live still requires https,\n and the doctor and the go-live skill say so.\n- A product without `merchant_product_id` takes it from `id` (or `sku`); duplicates are still\n refused.\n- The sandbox ownership (claim) link is kept in its own owner-only file, separate from the key file\n the runtime reads; init prints only its path (\"Your private ownership link is saved at …\"). Key\n files saved by 0.1.6 or earlier are split on the next init.\n- Example env files show `RELYON_API_KEY=` with a comment that init fills it.\n- New package description and the keywords \"relyon core\" and \"ai-shopping-agents\".\n- Runtime error log lines redact secret keys, webhook secrets and ownership-link tokens as well as\n cart tokens.\n\n### Security (before release)\n\nFixes from an independent security review of 0.1.7, still unpublished at 0.1.7.\n\n- **No sandbox from unattended runs.** Automatic Test setup creates nothing when `CI` is set or\n there is no terminal, unless `RELYON_AUTO_TEST_KEY=true` or `init --auto-test-key` opts in.\n Coding-agent environments are detected from their environment signals and still get a key. An\n unattended skip uses no provisioning attempt and creates no private folder.\n- **`.dockerignore`.** When the project has a `.dockerignore`, init makes sure it lists `.env`.\n- **Doctor checks checkout routes.** The doctor probes the UCP and ACP checkout routes, the\n webhook route (an unsigned POST must get the kit's `invalid_signature` refusal) and an advertised\n agent card. A store that serves only discovery files FAILs. Without a key, a valid-looking 200\n UCP profile is UNVERIFIED, not PASS, because it can't be told from a hand-written static file.\n- **Doctor output reads as next steps.** On failure: `NOT DONE: X of Y checks failed.`, then\n `Next:` with one numbered fix per FAIL, then `Then rerun doctor: npx @relyon/store-kit doctor`.\n- **Saved key goes only to Relyon.** The doctor sends a saved Test key only to Relyon's official\n https API. A custom `--base-url`, `RELYON_BASE_URL` or plain-http target gets it only with\n `--allow-saved-key-to-base-url`; otherwise those checks are UNVERIFIED.\n- **Live reads no saved Test key.** With `RELYON_LIVE=true` (or doctor `--live`), `loadTestConfig`\n and the doctor read no saved Test key from the private folder or `.env`.\n- **Docs.** The quick start, README and skills say that coding agents can read the project's `.env`\n Test key and that remixes, forks and exports copy it.",
|
|
232
|
+
"unpublished": true
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"version": "0.1.6",
|
|
236
|
+
"date": "2026-10-24",
|
|
237
|
+
"notable": "feature",
|
|
238
|
+
"summary": "Fixes two Test dev bugs: a default store on any host now syncs its catalog and sends shoppers to checkout correctly on the first try.",
|
|
239
|
+
"details": "Published. Fixes two Test dev bugs: a default store on any host now syncs its catalog and\nsends shoppers to checkout correctly on the first try.\n\n- Test doctor distinguishes missing merchant policy facts and a missing preview/loopback\n webhook address as `PENDING merchant`, with questions rather than assumed terms.\n `doctor --strict` promotes these to FAIL. Live requirements and server checkout gates\n are unchanged; mixed or unknown Relyon failure projections still fail.\n\n### Added\n\n- Init-first onboarding with a copied compact Test quick start and section-specific references.\n- Best-effort install notice; scripts-disabled installation remains supported.\n\n- **`kit.redirect(request, path, { headers? })`:** a `303 See Other` (with `cache-control:\n no-store`) to a same-origin `path` on the request's validated store address, for the app's own\n cart and \"Buy now\" routes. `path` must start with a single `/`; a full URL, `//host`, a\n backslash or control character throws a TypeError. The checkout-page and Express server skill\n references use it instead of building a Location from `request.url`.\n- Opt-in `init --template next|express` working Test stores with exact dependency\n pins, server-only kit adapters, persistent SQLite state, public discovery,\n catalog/cart/checkout pages and visibly pending merchant policies.\n- Template targets must be empty (including hidden entries) or new. Links and\n conflicts are refused before installation or Test setup, even with force.\n- Existing applications receive nonmutating warnings for untested framework\n versions. Ordinary init retains its conflict and repeat-run behavior.\n\nThis version is prepared locally and remains unpublished.\n\n### Fixed\n\n- **Catalog sync sends full URLs.** `kit.syncCatalog` sends each product's own `url` and\n `images` (a path such as `/products/mug`, or a URL on the store's hostnames, loopback or a bind\n address) on the store's public address: `store.publicUrl` (`STORE_PUBLIC_URL`) when set, else\n `https://` + the primary hostname, the same default the feeds use. Other sites' URLs are sent unchanged. The\n kit's own catalog keeps the merchant's paths, and each batch's Idempotency-Key is computed on\n the payload actually sent. Previously a relative `url` was sent as is and Relyon refused the\n batch with `invalid_request` at `products[0].url`.\n- **Sync stops early with a fix.** When a path can't be made a full URL (a loopback-only store\n without `STORE_PUBLIC_URL`, or a link that is neither a full URL nor a path starting with a\n single `/`), `syncCatalog` throws a `CatalogSyncError` before any request, naming the product,\n the field (`error.param`) and the setting to fix. A refusal from Relyon now names the product,\n the field (as an index into the list passed to `syncCatalog`) and a plain fix, not only the\n status.\n- **Dev servers bound to `0.0.0.0` or `[::]`.** When the request URL names an unspecified bind\n address (`next dev --hostname 0.0.0.0`), a Test kit takes the host and port from the Host\n header, only when it is a plain host[:port] naming loopback or one of the store's hostnames.\n An unknown, spoofed or malformed Host still falls back to the primary hostname, and forwarded\n host rules are unchanged. A Host without a port means the scheme's default port, as on a direct\n request. The bind address never appears in kit links, relayed checkout URLs, status URLs or\n `kit.redirect` answers. Live is unchanged.\n- **Catalog links on a bind address.** A product `url` or image on `0.0.0.0` or `[::]` counts as\n a dev address like loopback: sync, feeds and discovery documents move it onto the public\n address. Sync refuses one it can't move (no public address known, or a URL the kit can't\n rebase) before any request; discovery documents drop it rather than publish it.\n\n### Changed\n\n- **`store.publicUrl` and `store.hostnames` refuse unspecified addresses** (`0.0.0.0`, `[::]`\n and their other spellings) at kit creation, with a message naming the fix.",
|
|
240
|
+
"unpublished": false
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"version": "0.1.5",
|
|
244
|
+
"date": "2026-10-23",
|
|
245
|
+
"notable": "feature",
|
|
246
|
+
"summary": "Agent-facing discovery links use one public store address.",
|
|
247
|
+
"details": "### Added\n\n- **One public address for every agent-facing link.** `kit.publicOrigin(request)` is\n `store.publicUrl` (`STORE_PUBLIC_URL`) when set, otherwise the store's own or Test preview\n hostname the request arrived on, under the existing known-host rules (any other Host is still\n refused). llms.txt, the UCP profile's links, the MCP link, both sitemaps, Product JSON-LD,\n product and image links, all feeds and the agent card use it. Catalog URLs on any of the\n store's own hostnames (including loopback and preview addresses) are moved onto that origin,\n so no build-time or dev address is ever served to agents. No platform list is involved.\n- **Homepage helpers.** `kit.discoveryLinks(request)` / `kit.renderDiscoveryLinks(request)`\n return `<link>` tags for llms.txt, UCP, MCP, ACP checkout, the agent card, the product sitemap\n and every selected feed. `kit.productListJsonLd(products, request)` /\n `kit.renderProductListJsonLd(products, request)` return a schema.org `ItemList` of `Product`\n entries. `kit.productJsonLd` and `kit.renderProductJsonLd` take an optional `request`. Product\n data carries `sku`, and `gtin` or `mpn` only when the merchant supplied them.\n- **Agent card.** `/.well-known/agent-card.json` names the store's UCP, ACP and MCP endpoints\n and Relyon payments, with AP2 checkout mandates as an optional extension. It claims no A2A\n message endpoint, and MCP checkout only in Test. Option `agentCard: false` turns it off.\n- **llms.txt** also lists the ACP checkout endpoint, the agent card and a label for each feed.\n- **Empty-feed diagnostics.** A selected feed with no rows reports `feed_empty` through\n `feeds.onDiagnostic`, with `missing` naming the product facts that kept products out.\n- **ChatGPT checkout eligibility.** The ChatGPT feed sets `is_eligible_checkout: true` once\n Relyon reports the store's ChatGPT channel connected (`GET /v1/channels/chatgpt`, same mode,\n re-read at most once a minute), the store has privacy and terms page URLs (sent as\n `seller_privacy_policy` and `seller_tos`) and the product is in stock and purchasable without\n restrictions, with the merchant's brand and a valid GTIN or merchant-supplied MPN.\n Otherwise it stays false, with a `chatgpt_checkout_ineligible:<reason>`\n diagnostic while the channel is connected.\n- **Store policy sync.** `kit.syncStorePolicies({ confirm?, returns?, support? })` compares the\n `policies` option with Relyon's stored store policies and returns `changes` and `needs`.\n Without `confirm: true` it changes nothing. It never infers free returns or a return cost.\n- **Doctor: store policies.** A new item FAILs naming each missing store-policy field and its\n exact fix.\n\n### Changed\n\n- **`/sitemap.xml` is a urlset** listing the product pages (the same entries as\n `/sitemap-products.xml`), instead of a sitemap index. `sitemapIndex: false` still turns it off.\n- **Store MCP checkout in Test.** The MCP server's instructions describe Test checkout through\n the store's checkout page (`continue_url`, payment on the store, an `ord_` order). Live keeps\n \"not available\" and the existing refusal and order-pending rules.\n- **`store.publicUrl` in Test** must now be an origin on one of `store.hostnames` (https, or\n http on loopback), as it already had to be in Live. A value elsewhere throws at kit creation.\n- **A forwarded loopback host never reaches shared links.** On a loopback request, a present\n `X-Forwarded-Host` that names loopback (or is empty or unknown) no longer selects the origin of\n links in llms.txt, the sitemaps, feeds, the UCP profile, the agent card, JSON-LD or MCP results:\n the request came through a proxy, so those links fall back to the primary hostname instead of\n a loopback address. Direct loopback requests (no forwarded host) keep their own http origin and\n port. That request's own checkout addressing (the URL its agent signed, status URLs and\n hand-offs) still follows a local dev proxy's loopback host and port in Test, as in 0.1.4.\n- **Test hand-off links land while the sandbox clock is frozen.** Relyon dates a Test link's\n expiry on the sandbox clock, which stays at its start date until the sandbox moves it, so the\n link looked expired on the store's clock and every agent hand-off landed unattributed. A Test\n link already past its expiry now lands within 30 minutes of the kit first seeing it relayed\n (the new `CheckoutRecord.handoffTokenAt`, which repeating a step never moves), still once only\n and only for the exact link the kit relayed; without that time it is refused. Custom\n `setHandoffToken` implementations should also set `handoffTokenAt` to `now`. Live links keep\n the store's clock.\n- **UCP hand-off payments claim no channel.** Relyon records each agent checkout's channel and\n refuses a payment that claims another one; a UCP checkout is `google` only when Relyon verified\n Google's own profile, which the store can't see. `landing().channel` (and an attributed\n `createPayment` without a channel) is now `web` for UCP, and Relyon applies its record, so UCP\n agents other than Google can pay on the store. A paused `google` channel still stops a UCP\n hand-off payment at the store. ACP stays `chatgpt` and MCP `mcp`.\n- **Starter and skills: agent checkout needs the synced index.** Store MCP, UCP and ACP checkout\n only accept products published in Relyon's index, so the starter `main.js` runs\n `kit.syncCatalog` after `kit.start()` once a Test key is set. Source-backed discovery and\n feeds still need no sync.\n- **Starter and skills: robots.txt opt-in.** The starter `main.js` serves the kit's robots.txt\n (`robots: { existing: () => \"\" }`), so AI search and shopping crawlers are allowed and both\n sitemaps are named, even when a host or tunnel puts its own rules in front.\n- **Sample checkout page.** A definite non-charge (`closed`, or `not_found` answering the page's\n own Pay request) turns Pay into \"Try again\" with a new checkout. A `not_found` while confirming\n a payment that may have been sent keeps Pay disabled with the order status link.",
|
|
248
|
+
"unpublished": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"version": "0.1.4",
|
|
252
|
+
"date": "2026-10-23",
|
|
253
|
+
"notable": "feature",
|
|
254
|
+
"summary": "Test agent checkout works on preview addresses on any hosting platform.",
|
|
255
|
+
"details": "### Added\n\n- **Test agent checkout on the preview address, on any platform.** Relyon accepts a Test key on\n any https address (and loopback over http with a port) as that key's own Test store, without a\n verified domain; no platform list decides it. In Test mode the kit also answers, after\n `store.hostnames`, on loopback (`localhost`, `127.0.0.1`, `[::1]`), on the hostnames in the\n new `RELYON_PREVIEW_HOSTS` setting (comma separated hostnames or URLs: a tunnel or any preview\n URL), on a `store.previewHosts` list, and, as hints only, on the app's own address when its\n platform names it in a well-known variable (Replit, Vercel, Netlify, Codespaces, Render,\n Railway). Other host headers are still refused. Hand-off links come back to the same preview\n address. Plain http and a port are used only for loopback. `store.previewHosts: false` turns\n this off. Live mode never adds these hostnames and its rules are unchanged.\n- **Root sitemap index.** The kit serves `/sitemap.xml`, a sitemap index listing the product\n sitemap. New option `sitemapIndex` (default true); set it to false when the store already serves\n its own `/sitemap.xml`. The robots merge adds a `Sitemap:` line for the index before the product\n sitemap's line.\n- **Doctor on preview addresses.** In Test on an address with no Relyon domain the doctor\n reports \"Test on preview address\": the kit's own verification 404 there carries\n `x-relyon-test-preview: no-domain`, so that missing file is N/A, not a failure (an app's own\n fallback 404, without the header, still fails), and an N/A\n \"Live readiness\" item lists the go-live steps (publish, add and verify the domain, then a Live key\n only with the merchant's approval).\n\n### Changed\n\n- Behind a proxy, a forwarded store hostname is preferred over a loopback request host when the\n kit picks the request's public hostname, so loopback-internal proxies keep working.\n- Init's waiting message asks the merchant to add `RELYON_API_KEY` themselves in their\n platform's secrets or environment settings (Replit Secrets, Vercel or Netlify environment\n variables, or an uncommitted local `.env` file, for example) while the build continues.",
|
|
256
|
+
"unpublished": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"version": "0.1.3",
|
|
260
|
+
"date": "2026-10-22",
|
|
261
|
+
"notable": "feature",
|
|
262
|
+
"summary": "Build-first setup adds private automatic Test credentials while discovery remains available.",
|
|
263
|
+
"details": "### Added\n\n- Build-first init and skills: create the store before requesting credentials.\n- Optional automatic Test sandbox setup with verified private Node/POSIX storage,\n bounded requests, strict Test validation and a persistent single-attempt marker.\n Existing keys are preserved; credentials and claim URLs are never printed.\n- Server-only `@relyon/store-kit/server-config` loader and explicit Test-only\n `waitingForSandboxKey` mode. Store-owned discovery stays available while\n checkout waits; no placeholder credential, payment or order is generated.\n- Missing-key doctor checks stay UNVERIFIED and can resume after configuring a\n real key without rebuilding. Protocol guidance distinguishes gated ACP Test,\n UCP Test checkout and separate Commerce MCP checkout-link handoff.",
|
|
264
|
+
"unpublished": false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"version": "0.1.2",
|
|
268
|
+
"date": "2026-10-22",
|
|
269
|
+
"notable": "feature",
|
|
270
|
+
"summary": "Replayed payments can find their existing store order and feeds get safe grouping identifiers.",
|
|
271
|
+
"details": "### Added\n\n- **Existing order on a replayed payment.** New optional `findOrderByPaymentId(paymentId)` option\n (type `FindOrderByPaymentId`). When a succeeded payment's order was already created by an earlier\n call (`orderStatus: \"already_created\"`), `kit.createPayment` calls it and returns what it finds as\n `result.order`. It is read-only and called only in that case; if it throws, the error is logged\n and `order` is left out. Without it, behavior is unchanged.\n- **Safe feed group IDs.** New exports `feedGroupId(groupId)` and `FEED_GROUP_ID`. A variant group ID\n that is already a valid feed group ID (1–50 letters, digits, `.`, `_`, `:`, `-`) is used unchanged.\n A longer or unusual one (for example a long product handle) becomes a sanitized prefix plus\n 12 hex digits of its SHA-256: stable across runs and the same in every feed. Two different store\n group IDs that would map to one feed group are omitted with `inconsistent_or_duplicate_variant`\n instead of being merged.\n\n### Changed\n\n- **Doctor: Relyon answering with a web page.** The doctor no longer follows redirects from\n Relyon's API. A 3xx answer or an HTML page is reported as \"Relyon's server answered with a web\n page instead of data\", with the URL tried (query string and token-like path parts removed), the status and only\n the origin of any `Location`,\n and says the store and its network didn't cause it. DNS failures, timeouts, refused or blocked\n connections and Relyon 5xx answers each get their own message. None suggests publishing the\n store. Server-provided text is printed with terminal control characters removed. Runtime checkout\n calls are unchanged.\n- **`init` in pnpm workspaces.** When `pnpm-workspace.yaml` is found at or above the project,\n `init` run at the workspace root installs the kit into the single server package it can identify,\n or skips the install with a note naming the exact `pnpm --filter … add` command to run. Run inside\n a workspace package, it installs into that package. When the install fails in a workspace that sets\n `minimumReleaseAge`, it also says to wait or exempt only `@relyon/store-kit`. Skills are still written to the\n project root.",
|
|
272
|
+
"unpublished": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"version": "0.1.1",
|
|
276
|
+
"date": "2026-10-21",
|
|
277
|
+
"notable": "feature",
|
|
278
|
+
"summary": "Live hand-off links are accepted only for the current relayed store checkout.",
|
|
279
|
+
"details": "### Added\n\n- **Live hand-off links.** In Live mode (a Live key and `relyon.live: true`), `kit.landing` accepts\n the `rc_live_` tokens Relyon issues for stores approved for Live. A token is accepted only when it\n parses strictly (exact JWS header and payload fields, at most 2000 characters), names one of the\n store's hostnames and the request's, hasn't expired, is exactly (constant-time) the latest token\n the kit saw in a relayed Live answer for that agent checkout, carries a valid ES256 signature from\n the Live signing keys in the store's Relyon UCP profile (refetched once for an unknown key ID,\n never read from an expired copy) and lands for the first time. The cart and attribution come from\n the kit's own record. See \"Live hand-off links\" in the README.\n- **Doctor: Live checkout keys.** With `--live`, a `/.well-known/ucp` profile that advertises\n checkout must also publish an ES256 signing key, or the item FAILs.\n- **Apparel age group and gender.** New optional feed facts `feed.ageGroup` (`newborn`, `infant`,\n `toddler`, `kids`, `adult`) and `feed.gender` (`male`, `female`, `unisex`), emitted as `age_group`\n and `gender` in the Google and Microsoft feeds. Apparel items (a Google \"Apparel & Accessories\"\n `category`, see `isApparelCategory`) without them get `adult` / `unisex` (`APPAREL_DEFAULTS`) with\n `age_group_defaulted` / `gender_defaulted` diagnostics. Invalid values are omitted with\n `invalid_age_group_omitted` / `invalid_gender_omitted` and never guessed. New exports:\n `isApparelCategory`, `APPAREL_DEFAULTS`, `STORE_AGE_GROUPS`, `STORE_GENDERS`, and the types\n `StoreAgeGroup` and `StoreGender`.\n- `CHANGELOG.md` ships in the package.\n- **`store-kit init`.** `npx @relyon/store-kit init` sets an app up for coding agents in one\n non-interactive command: it adds `@relyon/store-kit` at this exact version with the app's package\n manager (detected from its lockfile; skipped when already installed, or with `--skip-install`),\n copies the six Relyon skills to `.agents/skills`, `.claude/skills` and `.cursor/skills`, and adds\n a marked Relyon block to `AGENTS.md` and `CLAUDE.md`. `--store \"<idea>\"` writes the idea verbatim\n to `relyon-store-brief.md`. A differing existing file is never changed: init reports the conflict\n and the line to add, and writes nothing. `--force` replaces the skill files, the store brief and only the\n marked Relyon block in `AGENTS.md` and `CLAUDE.md`; content outside that block is kept. A\n repeated, nested or misplaced marker, or a file that isn't valid UTF-8, stays a conflict even with\n `--force`. A file that changes while init runs is left as it is. The package manager runs with no\n stdin and without `RELYON_*` variables, and its output is printed only redacted. Symlinks are never followed, writes stay inside the\n project and are atomic, a second run changes nothing, and no key is ever asked for, printed or\n written (an idea containing a Relyon key shape is refused without echoing it).\n- **Bundled skills.** The package ships the six Relyon skills (`skills/relyon-setup`,\n `relyon-catalog`, `relyon-checkout`, `relyon-agents`, `relyon-orders`, `relyon-go-live`, with\n their reference files) and a root `AGENTS.md` entry point. relyon-setup opens with a \"Start here\"\n flow from a store idea to a working Test store.\n- **Doctor: N/A for legacy checks on store-first apps.** In Test, when the same run saw the store's\n UCP profile, verification file, `llms.txt` and MCP pass, Relyon's `pricing` and `checkout` doctor\n checks print N/A instead of FAIL. Store-first blockers Relyon reports under those checks still\n FAIL, and Live keeps every failure.\n\n### Changed\n\n- **Clearer guidance.** The sitemap and product URL doctor messages say store-owned\n `catalog.source` callbacks need no sync (index sync is an optional dashboard mirror). The README\n opens with a \"Start here\" merchant prompt, matches the Relyon Core repository README, and no\n longer links to files outside the package.\n\n- **Own-brand goods with no GTIN.** `feed.customGoods: true` together with `feed.ownBrand: true`,\n the product's `brand` and the store's own `mpn` (and no GTIN) is now an own-brand item: Google\n and Microsoft get brand + MPN, with no `identifier_attestation_conflict` and no\n `identifier_exists=false`. In 0.1.0 this combination was omitted from both XML feeds as a\n conflict. Other contradictions are unchanged: `ownBrand` and `customGoods` with a GTIN,\n `customGoods` with a GTIN, and `customGoods` with an MPN but without `ownBrand` remain conflicts.\n- **Crossed environments are refused.** A Relyon Test hand-off token (`rc_test_<payload>.<MAC>`) landing on a\n Live kit, and any `rc_live_` token landing on a Test kit, is refused (an unattributed checkout,\n never passed to a custom `cartTokens` resolver). In 0.1.0 the kit's mode played no part, and an\n `rc_live_` token wasn't recognized and reached a custom resolver. The kit's own sealed tokens\n (no dot) still reach the `cartTokens` resolver; don't share an explicit `cartTokens.secret`\n between a Test and a Live kit. Test-mode behaviour is otherwise unchanged.\n- **Event URLs.** An agent event's request URL drops a `relyon_cart` parameter whose name is\n percent-encoded (for example `%72elyon_cart`) too; URLs without one are reported unchanged.\n- **Live state stores.** A Live kit whose state store has no `claimHandoffToken` logs a warning at\n start (single use then holds per process only).\n- **Repository links.** `homepage`, `repository` and `bugs` point to\n https://github.com/relyon-payments/relyon-core. The doctor's and MCP server's reported version is\n 0.1.1.",
|
|
280
|
+
"unpublished": false
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"version": "0.1.0",
|
|
284
|
+
"date": "2026-10-20",
|
|
285
|
+
"notable": "feature",
|
|
286
|
+
"summary": "First public release of the Relyon store kit.",
|
|
287
|
+
"details": "- First public release.",
|
|
288
|
+
"unpublished": false
|
|
289
|
+
}
|
|
290
|
+
];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type KeyObject } from "node:crypto";
|
|
2
|
+
import type { ResolvedCart } from "./cart-tokens.js";
|
|
3
|
+
import type { KitContext } from "./context.js";
|
|
4
|
+
/** The readable part of a Relyon-issued token. Never trusted for anything but finding the kit's record. */
|
|
5
|
+
export interface RelyonCartTokenPayload {
|
|
6
|
+
/** Relyon's agent checkout ID. */
|
|
7
|
+
ac: string;
|
|
8
|
+
/** Relyon's checkout session ID. */
|
|
9
|
+
cs: string;
|
|
10
|
+
/** The verified store hostname the link was issued for. */
|
|
11
|
+
h: string;
|
|
12
|
+
/** The cart revision ("" before a quote is locked). */
|
|
13
|
+
r: string;
|
|
14
|
+
/** Expiry, Unix seconds. */
|
|
15
|
+
exp: number;
|
|
16
|
+
}
|
|
17
|
+
/** Reads a token in Relyon's dotted shape; null for anything else (including the kit's own sealed tokens). */
|
|
18
|
+
export declare function parseRelyonCartToken(token: string): RelyonCartTokenPayload | null;
|
|
19
|
+
/** A Relyon Live token's payload: the Test fields plus the audience (`https://` + `h`). */
|
|
20
|
+
export interface RelyonLiveCartTokenPayload extends RelyonCartTokenPayload {
|
|
21
|
+
aud: string;
|
|
22
|
+
}
|
|
23
|
+
/** A strictly parsed Live token; its signature is not yet verified. */
|
|
24
|
+
export interface RelyonLiveCartToken {
|
|
25
|
+
kid: string;
|
|
26
|
+
payload: RelyonLiveCartTokenPayload;
|
|
27
|
+
/** The JWS signing input (`<protected>.<payload>`). */
|
|
28
|
+
signingInput: string;
|
|
29
|
+
/** The raw 64-byte R||S ES256 signature. */
|
|
30
|
+
signature: Buffer;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reads a Relyon Live token, `rc_live_<protected>.<payload>.<signature>`,
|
|
34
|
+
* strictly: at most 2000 characters; canonical base64url segments; a
|
|
35
|
+
* protected header of exactly `{alg: "ES256", kid, typ: "rc-live+jws"}` (so no
|
|
36
|
+
* `b64`, `crit`, `jwk`, `jku`, `x5u`, `x5c` or `x5t`); a payload of exactly
|
|
37
|
+
* `{v: 1, ac, cs, h, r, exp, aud}` with a lower-case hostname `h` and
|
|
38
|
+
* `aud === "https://" + h`; a 64-byte signature. null for anything else. The
|
|
39
|
+
* signature is not checked here.
|
|
40
|
+
*/
|
|
41
|
+
export declare function parseRelyonLiveCartToken(token: string): RelyonLiveCartToken | null;
|
|
42
|
+
/** Which checkout a relayed answer is for: the IDs a captured token must name, and the store's hostnames. */
|
|
43
|
+
export interface IssuedTokenBinding {
|
|
44
|
+
/** The checkout's IDs the kit knows independently of the answer body (protocol checkout ID, Relyon's agent checkout ID). */
|
|
45
|
+
ids: ReadonlyArray<string | null | undefined>;
|
|
46
|
+
hostnames: readonly string[];
|
|
47
|
+
/**
|
|
48
|
+
* The kit's mode. Live (a Live key with the opt-in) records only `rc_live_`
|
|
49
|
+
* tokens; Test (absent or false) only `rc_test_` ones, as before.
|
|
50
|
+
*/
|
|
51
|
+
livemode?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The Relyon hand-off token a relayed response body carries, or null. Only a
|
|
55
|
+
* token whose payload names this checkout (`binding`) counts, so a link that
|
|
56
|
+
* names another checkout is never recorded for this one. Where Relyon itself
|
|
57
|
+
* puts the link ranks first: a top-level `continue_url` (or MCP's
|
|
58
|
+
* `structuredContent.checkout_url`), then a top-level message, then anywhere
|
|
59
|
+
* else (an answer may echo agent-supplied text). Two different tokens at the
|
|
60
|
+
* first rank that has any is ambiguous: none is taken. Reads only; the body is
|
|
61
|
+
* never changed.
|
|
62
|
+
*/
|
|
63
|
+
export declare function issuedCartToken(body: string, binding: IssuedTokenBinding): string | null;
|
|
64
|
+
/** Whether this process already accepted the token (it can't land attributed again). */
|
|
65
|
+
export declare function handoffTokenConsumed(ctx: KitContext, token: string): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* What the kit makes of a `relyon_cart` value:
|
|
68
|
+
* - `accepted`: exactly the token the kit saw Relyon issue for the record,
|
|
69
|
+
* for the request's store hostname, unexpired on the kit's clock (a Test
|
|
70
|
+
* link already past its sandbox-clock expiry: within TEST_LANDING_WINDOW_MS
|
|
71
|
+
* of the kit last relaying it), and not landed before (it is now used);
|
|
72
|
+
* - `refused`: a Relyon token for one of the store's hostnames the kit refuses
|
|
73
|
+
* for good (used, wrong or unknown request host, expired, or the state store
|
|
74
|
+
* failed): the landing is unattributed and the store's resolver never sees it;
|
|
75
|
+
* - `not_ours`: anything else (not Relyon's shape, another store's hostname,
|
|
76
|
+
* no matching record): the store's resolver decides.
|
|
77
|
+
*/
|
|
78
|
+
export type RelyonCartTokenCheck = {
|
|
79
|
+
kind: "accepted";
|
|
80
|
+
cart: ResolvedCart;
|
|
81
|
+
} | {
|
|
82
|
+
kind: "refused";
|
|
83
|
+
} | {
|
|
84
|
+
kind: "not_ours";
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* How long after the kit first saw a Test hand-off link relayed it still lands
|
|
88
|
+
* when the link's own expiry (on the Test sandbox clock) is already past on
|
|
89
|
+
* the kit's clock: Relyon's quote lifetime.
|
|
90
|
+
*/
|
|
91
|
+
export declare const TEST_LANDING_WINDOW_MS: number;
|
|
92
|
+
/** Resolves a Relyon-issued hand-off token (see `RelyonCartTokenCheck`). Never throws. */
|
|
93
|
+
export declare function resolveRelyonCartToken(ctx: KitContext, token: string, request: Request): Promise<RelyonCartTokenCheck>;
|
|
94
|
+
/** The ES256 P-256 signing key with this `kid`, from a published JWK set; null when absent or unusable. */
|
|
95
|
+
export declare function liveSigningKey(keys: readonly unknown[], kid: string): KeyObject | null;
|
|
96
|
+
/** Text with every cart token (and every `relyon_cart` value) replaced, for logs. */
|
|
97
|
+
export declare function redactCartTokens(text: string): string;
|
|
98
|
+
/** Text with cart tokens, secret keys, webhook secrets and ownership-link tokens replaced, for logs. */
|
|
99
|
+
export declare function redactLogText(text: string): string;
|
|
100
|
+
/** An error's message for a log line, with cart tokens and secrets redacted. */
|
|
101
|
+
export declare function describeError(error: unknown, stack?: boolean): string;
|