@tokenoftrust/cli 2.0.26 → 2.0.27

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": "2.0.26",
3
+ "version": "2.0.27",
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",
@@ -510,8 +510,9 @@ export async function runShip(
510
510
  /**
511
511
  * Report the orchestrator's HONEST terminal state. `shipped` is the ONLY state
512
512
  * rendered as "shipped live" — `refused`/`promote_failed`/`record_failed` are
513
- * surfaced with their own message + a clear next step, never dressed up as a
514
- * success and never silently swallowed.
513
+ * surfaced with their own message + a clear next step, `publishing` (pointer
514
+ * moved, CDN delivery still confirming) gets its own honest in-progress
515
+ * message, and nothing is ever dressed up as a success or silently swallowed.
515
516
  * @returns {number} process exit code
516
517
  */
517
518
  function reportShipResult(result, { tenant, liveUrl, noOpen, openUrl }) {
@@ -539,6 +540,14 @@ function reportShipResult(result, { tenant, liveUrl, noOpen, openUrl }) {
539
540
  );
540
541
  return 1;
541
542
  }
543
+ if (result.state === "publishing") {
544
+ console.log(`\n ⏳ ${tenant} is publishing — the live pointer moved, CDN delivery is still confirming.`);
545
+ if (result.pinnedSha) console.log(` pinned: ${result.pinnedSha}`);
546
+ if (result.receiptId) console.log(` receipt: ${result.receiptId}`);
547
+ if (result.message) console.log(` ${result.message}`);
548
+ console.log(" re-run `tot ship` in a bit to confirm — it dedupes onto this same dispatch, safe to retry.");
549
+ return 1;
550
+ }
542
551
  console.error(
543
552
  fail(
544
553
  `unexpected ship response (state: ${result.state})`,