@ghostystudio/cli 0.33.0 → 0.33.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 +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8367,7 +8367,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
8367
8367
  const req = httpsRequest(`${base}${path}`, {
8368
8368
  method: "POST",
8369
8369
  timeout: timeoutMs,
8370
- headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.33.0"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
8370
+ headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.33.1"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
8371
8371
  }, (res) => {
8372
8372
  let buf = "";
8373
8373
  res.on("data", (c) => buf += c);
@@ -8409,7 +8409,7 @@ async function request(path, opts = {}, retried = false) {
8409
8409
  method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
8410
8410
  headers: {
8411
8411
  authorization: `Bearer ${token}`,
8412
- "user-agent": `ghosty-cli/${"0.33.0"}`,
8412
+ "user-agent": `ghosty-cli/${"0.33.1"}`,
8413
8413
  "accept-language": lang(),
8414
8414
  ...opts.body !== void 0 ? { "content-type": "application/json" } : {},
8415
8415
  ...opts.headers
@@ -9569,7 +9569,7 @@ async function call(path, v, init = {}) {
9569
9569
  "x-ghosty-ts": ts,
9570
9570
  "x-ghosty-sig": sig,
9571
9571
  "content-type": "application/json",
9572
- "user-agent": `ghosty-cli/${"0.33.0"}`
9572
+ "user-agent": `ghosty-cli/${"0.33.1"}`
9573
9573
  },
9574
9574
  body: method === "GET" ? void 0 : raw
9575
9575
  });
@@ -12601,7 +12601,7 @@ async function imageUsage(v) {
12601
12601
  gap ? red(t(" \u26A0\uFE0F far more deliveries than charges: the meter is probably not reporting", " \u26A0\uFE0F muchas m\xE1s entregas que cargos: el medidor probablemente no est\xE1 reportando")) : "",
12602
12602
  "",
12603
12603
  table(r.byPlan.map((p) => ({ plan: p.plan, ...cols(p) })), ["plan", "charges", "delivered", "hd", "byok", "usd", "table usd", "avg"]),
12604
- ...r.byUser ? ["", table(r.byUser.map((u) => ({ user: u.user, plan: u.plan, ...cols(u), bag: u.budget ? `$${u.budget.usedMxn.toFixed(0)}/$${u.budget.limitMxn} MXN` : "" })), ["user", "plan", "charges", "delivered", "hd", "usd", "table usd", "bag"])] : [],
12604
+ ...r.byUser ? ["", table(r.byUser.map((u) => ({ user: u.user, plan: u.plan, ...cols(u), bag: u.budget ? `$${u.budget.usedMxn.toFixed(2)}/$${u.budget.limitMxn} MXN` : "" })), ["user", "plan", "charges", "delivered", "hd", "usd", "table usd", "bag"])] : [],
12605
12605
  dim(t("delivered = agent images in the library (includes forwarded photos: a ceiling) \xB7 usd = stored (OpenAI's real usage when sent) \xB7 table = IMAGE_COST_USD", "entregadas = im\xE1genes del agente en la biblioteca (incluye fotos reenviadas: es un techo) \xB7 usd = guardado (el usage real de OpenAI cuando llega) \xB7 tabla = IMAGE_COST_USD"))
12606
12606
  ].filter((x) => x !== "").join("\n");
12607
12607
  });
@@ -13106,7 +13106,7 @@ async function main() {
13106
13106
  const tokens = splitTokens(pos, v);
13107
13107
  globals.token = tokens.session;
13108
13108
  globals.profile = v.profile;
13109
- if (v.version) return out({ version: "0.33.0" }, () => "0.33.0");
13109
+ if (v.version) return out({ version: "0.33.1" }, () => "0.33.1");
13110
13110
  for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
13111
13111
  const context = (await readConfig()).workspace;
13112
13112
  if (!explicitToken()?.startsWith("gat_")) {
@@ -13254,7 +13254,7 @@ async function main() {
13254
13254
  throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
13255
13255
  }
13256
13256
  }
13257
- var notice = updateNotice("0.33.0").catch(() => null);
13257
+ var notice = updateNotice("0.33.1").catch(() => null);
13258
13258
  main().then(
13259
13259
  async () => {
13260
13260
  const n = await notice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostystudio/cli",
3
- "version": "0.33.0",
3
+ "version": "0.33.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": {