@tokenoftrust/cli 7.5.5 → 7.5.6

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.5",
3
+ "version": "7.5.6",
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",
@@ -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
  "",