@ghostystudio/cli 0.10.0 → 0.10.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/dist/index.js +11 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -282,7 +282,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
282
282
  const req = httpsRequest(`${base}${path}`, {
283
283
  method: "POST",
284
284
  timeout: timeoutMs,
285
- headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.10.0"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
285
+ headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.10.1"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
286
286
  }, (res) => {
287
287
  let buf = "";
288
288
  res.on("data", (c) => buf += c);
@@ -324,7 +324,7 @@ async function request(path, opts = {}, retried = false) {
324
324
  method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
325
325
  headers: {
326
326
  authorization: `Bearer ${token}`,
327
- "user-agent": `ghosty-cli/${"0.10.0"}`,
327
+ "user-agent": `ghosty-cli/${"0.10.1"}`,
328
328
  ...opts.body !== void 0 ? { "content-type": "application/json" } : {},
329
329
  ...opts.headers
330
330
  },
@@ -712,9 +712,9 @@ ${dim(`Download: ghosty skills get ${id} ${slug} --out DIR`)}`);
712
712
  }
713
713
  case "templates": {
714
714
  const r = await api(agentPath(id, "/templates"));
715
- const rows = r.templates.map((t) => ({ name: t.name, source: t.source, used: t.active ? "yes" : "no (shadowed)", description: (t.description ?? "").replace(/\s+/g, " ").slice(0, 60) }));
716
- out(r, () => `${table(rows, ["name", "source", "used", "description"])}
717
- ${dim(`pdf-doc reads from: ${r.active ?? "(not found)"}`)}`);
715
+ const rows = r.templates.map((t) => ({ name: t.name, source: t.source, description: (t.description ?? "").replace(/\s+/g, " ").slice(0, 60) }));
716
+ out(r, () => `${table(rows, ["name", "source", "description"])}
717
+ ${dim("Its own: put <name>.html in <skill>/pdf-templates/ of any of its skills (it wins over a house one with the same name).")}`);
718
718
  return;
719
719
  }
720
720
  case "rm":
@@ -782,7 +782,7 @@ async function agentsDemo(id, v) {
782
782
  );
783
783
  }
784
784
  async function agentsBox(id, v) {
785
- id = need(id, "agent id", "ghosty agents box <agent-id> [--check /opt/claude-worker/skills/pdf-doc/templates/calendario.html] [--recycle]");
785
+ id = need(id, "agent id", "ghosty agents box <agent-id> [--check PATH] [--contains PATH=TEXT] [--recycle]");
786
786
  if (v.recycle) {
787
787
  const r2 = await api(agentPath(id, "/box"), { method: "POST", body: { recycle: true } });
788
788
  out(r2, () => `${lavender("\u2713")} Recycled. ${dim(r2?.note ?? "")}
@@ -1125,7 +1125,7 @@ async function call(path, v, init = {}) {
1125
1125
  "x-ghosty-ts": ts,
1126
1126
  "x-ghosty-sig": sig,
1127
1127
  "content-type": "application/json",
1128
- "user-agent": `ghosty-cli/${"0.10.0"}`
1128
+ "user-agent": `ghosty-cli/${"0.10.1"}`
1129
1129
  },
1130
1130
  body: method === "GET" ? void 0 : raw
1131
1131
  });
@@ -1636,7 +1636,7 @@ var HELPS = {
1636
1636
  'ghosty agents docs grant <id> "Cat\xE1logo 2026.pdf"',
1637
1637
  "ghosty agents docs grant <id> precios.xlsx --write --no-deliver",
1638
1638
  'ghosty agents demo <id> --slug guardias --on --vence "2026-10-15T20:00" --starter "Ens\xE9\xF1ame c\xF3mo empezar"',
1639
- "ghosty agents box <id> --check /opt/claude-worker/skills/pdf-doc/templates/calendario.html"
1639
+ "ghosty agents box <id> --contains /opt/claude-worker/skills/pdf-doc/render-doc.mjs=pdf-templates"
1640
1640
  ],
1641
1641
  notes: ["doctor exits 1 when it finds a problem, so it can gate a script or CI.", "demo with no flags only prints its status: link, expiry, caps and numbers."],
1642
1642
  learn: `${REF}#agentes`
@@ -1664,7 +1664,7 @@ var HELPS = {
1664
1664
  ],
1665
1665
  notes: [
1666
1666
  "rm saves a copy under ~/.config/ghosty/trash/ and prints the command that restores it.",
1667
- "templates reads a live machine (run one turn first). pdf-doc uses the FIRST folder with print.css: a full skill of your own shadows Ghosty's templates."
1667
+ "templates reads a live machine (run one turn first). An agent's own template is <skill>/pdf-templates/<name>.html in any of its skills; it wins over a house one with the same name."
1668
1668
  ],
1669
1669
  learn: `${REF}#skills`
1670
1670
  },
@@ -2035,7 +2035,7 @@ async function main() {
2035
2035
  const tokens = splitTokens(pos, v);
2036
2036
  globals.token = tokens.session;
2037
2037
  globals.profile = v.profile;
2038
- if (v.version) return out({ version: "0.10.0" }, () => "0.10.0");
2038
+ if (v.version) return out({ version: "0.10.1" }, () => "0.10.1");
2039
2039
  const [cmd, sub, a1, a2] = pos;
2040
2040
  if (cmd === "partner" && (v.help || !sub || sub === "help")) return out({ help: PARTNER_HELP }, () => PARTNER_HELP);
2041
2041
  const topic = cmd === "help" ? sub : v.help ? cmd : void 0;
@@ -2118,7 +2118,7 @@ async function main() {
2118
2118
  throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
2119
2119
  }
2120
2120
  }
2121
- var notice = updateNotice("0.10.0").catch(() => null);
2121
+ var notice = updateNotice("0.10.1").catch(() => null);
2122
2122
  main().then(
2123
2123
  async () => {
2124
2124
  const n = await notice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostystudio/cli",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Official Ghosty Studio CLI — configure, test and chat with your agents from the terminal. Built for humans and coding agents.",
5
5
  "type": "module",
6
6
  "bin": {