@calo-design/cli 0.13.2 → 0.13.3
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/bin/backend.js +14 -1
- package/package.json +1 -1
package/bin/backend.js
CHANGED
|
@@ -380,10 +380,23 @@ async function cmdRotateKey(args) {
|
|
|
380
380
|
warn("published web shares still carry the OLD key baked into their bundle — re-run `calo-design share` to fix them");
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
+
// Org-wide backend list for the Design Kitchen dashboard (machine-facing; --json).
|
|
384
|
+
async function cmdAll(args) {
|
|
385
|
+
const text = await call("GET", "/v1/backend/all", { raw: true });
|
|
386
|
+
if (has(args, "json")) return emitJson(text);
|
|
387
|
+
const { backends } = JSON.parse(text);
|
|
388
|
+
if (!backends.length) return log(c.dim("no prototype backends yet"));
|
|
389
|
+
for (const b of backends) {
|
|
390
|
+
const who = (b.owner || "").split("@")[0];
|
|
391
|
+
log(`${c.b(b.slug)} ${c.dim(who)} ${b.resources.join("+") || c.dim("worker")}${b.deployed ? "" : c.dim(" (not deployed)")}`);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
383
395
|
async function cmdBackend(args) {
|
|
384
396
|
const sub = args[0] && !args[0].startsWith("--") ? args[0] : "";
|
|
385
397
|
const rest = args.slice(1);
|
|
386
398
|
if (sub === "init") return cmdInit(rest);
|
|
399
|
+
if (sub === "all") return cmdAll(rest);
|
|
387
400
|
if (sub === "add") return cmdAdd(rest);
|
|
388
401
|
if (sub === "deploy") return cmdDeploy(rest);
|
|
389
402
|
if (sub === "status") return cmdStatus(rest);
|
|
@@ -393,7 +406,7 @@ async function cmdBackend(args) {
|
|
|
393
406
|
if (sub === "secrets") return cmdSecrets(rest);
|
|
394
407
|
if (sub === "rotate-key") return cmdRotateKey(rest);
|
|
395
408
|
throw new Error(
|
|
396
|
-
"unknown backend command — one of: init, add <d1|kv|r2>, deploy, status, logs, sql, check, secrets set, rotate-key"
|
|
409
|
+
"unknown backend command — one of: init, add <d1|kv|r2>, deploy, status, logs, sql, check, secrets set, rotate-key, all"
|
|
397
410
|
);
|
|
398
411
|
}
|
|
399
412
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calo-design/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
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": {
|
|
6
6
|
"calo-design": "bin/cli.js"
|