@tokenoftrust/cli 7.5.5 → 7.5.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/cli",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.7",
|
|
4
4
|
"description": "Token of Trust developer CLI — clone a tenant store, run it locally with save→reload, and submit it for preview. Installs the `tot` command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Token of Trust",
|
package/src/commands/go-live.mjs
CHANGED
|
@@ -134,6 +134,23 @@ export function normalizeReadiness(r) {
|
|
|
134
134
|
imageTypes: normalizeImageTypes(o.imageTypes),
|
|
135
135
|
imageAcknowledgement: normalizeImageAcknowledgementScope(rd.imageAcknowledgement),
|
|
136
136
|
domainState: rd && o.domain && typeof o.domain === "object" ? o.domain : null,
|
|
137
|
+
checkoutPaymentReadiness: normalizeCheckoutPaymentReadiness(o.checkoutPaymentReadiness),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The server's `checkoutPaymentReadiness` (live checkout posture), or null when the worker does
|
|
143
|
+
* not send it. Informational: it never gates the apex cutover. Pure.
|
|
144
|
+
* @param {any} raw
|
|
145
|
+
* @returns {{ ready: boolean, posture: string, detail: string, remedy: string } | null}
|
|
146
|
+
*/
|
|
147
|
+
export function normalizeCheckoutPaymentReadiness(raw) {
|
|
148
|
+
if (!raw || typeof raw !== "object") return null;
|
|
149
|
+
return {
|
|
150
|
+
ready: raw.readyForLiveOrders === true,
|
|
151
|
+
posture: typeof raw.posture === "string" ? raw.posture : "unknown",
|
|
152
|
+
detail: typeof raw.detail === "string" ? raw.detail : "",
|
|
153
|
+
remedy: typeof raw.remedy === "string" ? raw.remedy : "",
|
|
137
154
|
};
|
|
138
155
|
}
|
|
139
156
|
|
|
@@ -245,6 +262,11 @@ export function renderReadiness({ appDomain, readiness, action }) {
|
|
|
245
262
|
// the same guidance the admin panel shows, so the two surfaces never diverge.
|
|
246
263
|
if (!c.ok && c.remedy) lines.push(` → ${c.remedy}`);
|
|
247
264
|
}
|
|
265
|
+
const payment = readiness.checkoutPaymentReadiness;
|
|
266
|
+
if (payment && payment.posture !== "no-checkout") {
|
|
267
|
+
lines.push(` ${payment.ready ? "✓" : "✗"} Live payments${payment.detail ? ` — ${payment.detail}` : ""}`);
|
|
268
|
+
if (!payment.ready && payment.remedy) lines.push(` → ${payment.remedy}`);
|
|
269
|
+
}
|
|
248
270
|
if (action === "connect") {
|
|
249
271
|
lines.push(
|
|
250
272
|
"",
|
|
@@ -62,7 +62,7 @@ for the full command surface.
|
|
|
62
62
|
See [`https://github.com/tokenoftrust/storefront-devkit/tree/main/apps/private`](https://github.com/tokenoftrust/storefront-devkit/tree/main/apps/private)
|
|
63
63
|
for runnable reference connectors against the v1.3 contract:
|
|
64
64
|
|
|
65
|
-
- **`examples/
|
|
65
|
+
- **`examples/inventory-fulfillment-e2e`** — starter reference: locations (`GET`/`PUT /inventory/locations`),
|
|
66
66
|
mirror stock reads/writes (`GET /inventory`, `POST /inventory/movements`), and synthetic test
|
|
67
67
|
orders (`POST /api/apps/admin/test-orders`).
|
|
68
68
|
- **`recipes/inventory-sync-wms`** — multi-location WMS sync:
|