@ghostystudio/cli 0.74.0 → 0.74.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 +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1175,7 +1175,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
1175
1175
  const req = httpsRequest(`${base}${path}`, {
1176
1176
  method: "POST",
1177
1177
  timeout: timeoutMs,
1178
- headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.74.0"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
1178
+ headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.74.1"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
1179
1179
  }, (res) => {
1180
1180
  let buf = "";
1181
1181
  res.on("data", (c) => buf += c);
@@ -1217,7 +1217,7 @@ async function request(path, opts = {}, retried = false) {
1217
1217
  method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
1218
1218
  headers: {
1219
1219
  authorization: `Bearer ${token}`,
1220
- "user-agent": `ghosty-cli/${"0.74.0"}`,
1220
+ "user-agent": `ghosty-cli/${"0.74.1"}`,
1221
1221
  "accept-language": lang(),
1222
1222
  ...opts.body !== void 0 ? { "content-type": "application/json" } : {},
1223
1223
  ...opts.headers
@@ -11193,7 +11193,7 @@ async function call(path, v, init = {}) {
11193
11193
  "x-ghosty-ts": ts,
11194
11194
  "x-ghosty-sig": sig,
11195
11195
  "content-type": "application/json",
11196
- "user-agent": `ghosty-cli/${"0.74.0"}`
11196
+ "user-agent": `ghosty-cli/${"0.74.1"}`
11197
11197
  },
11198
11198
  body: method === "GET" ? void 0 : raw
11199
11199
  });
@@ -15731,7 +15731,8 @@ ${dim(`${t("Detail", "Detalle")}: ghosty factory runs show <run> --workspace ${r
15731
15731
  if (verb === "advise") {
15732
15732
  const id = Number(ref.replace(/^#/, ""));
15733
15733
  const { advice: a, workspace } = await api(`${path}/advise`, { body: {} });
15734
- const apply = a.decision === "fix" ? `ghosty factory runs approve ${id} --note ${JSON.stringify(a.note)}${a.checkScope ? ` --check-scope ${JSON.stringify(a.checkScope)}` : ""} --workspace ${workspace}` : `ghosty factory runs changes ${id} --note ${JSON.stringify(a.note)} --workspace ${workspace}`;
15734
+ const note = a.buildNote.map((p, i) => `${i + 1}. ${p.point}`).join(" ");
15735
+ const apply = a.decision === "fix" ? `ghosty factory runs approve ${id} --note ${JSON.stringify(note)}${a.checkScope ? ` --check-scope ${JSON.stringify(a.checkScope)}` : ""} --workspace ${workspace}` : `ghosty factory runs changes ${id} --note ${JSON.stringify(note)} --workspace ${workspace}`;
15735
15736
  return out({ workspace, advice: a, apply }, () => {
15736
15737
  const conf = { high: t("high", "alta"), medium: t("medium", "media"), low: t("low", "baja") }[a.confidence] ?? a.confidence;
15737
15738
  return [
@@ -16845,7 +16846,7 @@ async function main() {
16845
16846
  const tokens = splitTokens(pos, v);
16846
16847
  globals.token = tokens.session;
16847
16848
  globals.profile = v.profile;
16848
- if (v.version) return out({ version: "0.74.0" }, () => "0.74.0");
16849
+ if (v.version) return out({ version: "0.74.1" }, () => "0.74.1");
16849
16850
  for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
16850
16851
  const context = (await readConfig()).workspace;
16851
16852
  if (!explicitToken()?.startsWith("gat_")) {
@@ -17038,7 +17039,7 @@ async function main() {
17038
17039
  throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
17039
17040
  }
17040
17041
  }
17041
- var notice = updateNotice("0.74.0").catch(() => null);
17042
+ var notice = updateNotice("0.74.1").catch(() => null);
17042
17043
  main().then(
17043
17044
  async () => {
17044
17045
  const n = await notice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostystudio/cli",
3
- "version": "0.74.0",
3
+ "version": "0.74.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": {