@calo-design/cli 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/bin/mirror-push.js +13 -4
  2. package/package.json +1 -1
@@ -487,10 +487,19 @@ async function cmdPush(args) {
487
487
  easRun(["update", "--branch", slug, "--message", message, "--environment", "production", "--non-interactive"], { cwd: stage });
488
488
  ok(`published EAS update → channel ${c.b(slug)}`);
489
489
  const screenshotBase64 = screenshot ? fs.readFileSync(screenshot).toString("base64") : undefined;
490
- const res = await publishToMirror({
491
- entry: { slug, title, owner, description, runtimeVersion: RUNTIME_VERSION },
492
- screenshotBase64,
493
- });
490
+ let res;
491
+ try {
492
+ res = await publishToMirror({
493
+ entry: { slug, title, owner, description, runtimeVersion: RUNTIME_VERSION },
494
+ screenshotBase64,
495
+ });
496
+ } catch (e) {
497
+ // eas update already published the bundle; only the registry listing failed.
498
+ throw new Error(
499
+ `EAS update for "${slug}" published, but the Mirror registry write failed: ${e.message}\n` +
500
+ ` The bundle is live on its channel — it just isn't listed yet. Re-run \`calo-design push\` to retry the listing (or \`--direct\` with local Tigris creds).`
501
+ );
502
+ }
494
503
  ok(`registry updated via broker${res && typeof res.count === "number" ? ` (${res.count} prototypes live)` : ""}`);
495
504
  }
496
505
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calo-design/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "One-line setup for Calo design tooling: logs in with your Calo email and installs the calo-design skill + design-system packages. No GitHub account needed.",
5
5
  "bin": { "calo-design": "bin/cli.js" },
6
6
  "files": ["bin"],