@tokenoftrust/cli 1.4.0-rc.5 → 1.4.0-rc.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": "1.4.0-rc.5",
3
+ "version": "1.4.0-rc.6",
4
4
  "description": "Token of Trust developer CLI — check out 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",
@@ -26,7 +26,7 @@
26
26
  import { defaultCredentialsPath, readCredentials } from "../token-store.mjs";
27
27
  import { establishSession, AuthUnavailableError } from "../auth.mjs";
28
28
  import { createMcpClient } from "../mcp.mjs";
29
- import { storeListError } from "./checkout.mjs";
29
+ import { storeListError, noStoresGuidance } from "./checkout.mjs";
30
30
  import { offerSignIn } from "./login.mjs";
31
31
  import { recordServerPolicy } from "../update-check.mjs";
32
32
 
@@ -238,8 +238,13 @@ export async function run(argv, _ctx) {
238
238
  return 1;
239
239
  }
240
240
  if (rows.length === 0) {
241
- console.log("\nNo stores you can act on yet for this identity.");
242
- console.log("If you were just invited, it may still be propagating — try again in a minute.");
241
+ // Status-aware, like whoami/checkout (card c2): an UNLINKED identity is told to
242
+ // link, not given the "may still be propagating" copy that's only the genuine
243
+ // linked-but-zero-grants case.
244
+ const g = noStoresGuidance(resp);
245
+ const line = g.headline.charAt(0).toUpperCase() + g.headline.slice(1);
246
+ console.log(`\n${line}.`);
247
+ console.log(`Next: ${g.next}`);
243
248
  return 0;
244
249
  }
245
250