@ghostystudio/cli 0.32.0 → 0.32.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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +17 -17
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -73,7 +73,7 @@ ghosty schedule rm <id> <schedule-id>
73
73
  ghosty schedule add|ls|rm <id> … --teams <workspace>#<room>[/<thread-id>] # in a Teams room/thread: it answers there as if mentioned
74
74
 
75
75
  ghosty me files ls|get|upload|rm [--q TEXT] [--kind image|video|audio|document|other] [--cursor C]
76
- ghosty me memories ls|add|edit|rm [--agent A]
76
+ ghosty me memories ls|add|edit|rm
77
77
  ghosty conversations archive|rm <id> --kind test|channel [--before 7d] [--dry-run]
78
78
  ghosty agents docs dedupe [--dry-run] # your account: merge documents with the same content
79
79
  # Ghosty staff
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.32.0"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
8370
+ headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.32.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.32.0"}`,
8412
+ "user-agent": `ghosty-cli/${"0.32.1"}`,
8413
8413
  "accept-language": lang(),
8414
8414
  ...opts.body !== void 0 ? { "content-type": "application/json" } : {},
8415
8415
  ...opts.headers
@@ -9261,20 +9261,20 @@ async function readAll() {
9261
9261
  for await (const c of process.stdin) s += c;
9262
9262
  return s;
9263
9263
  }
9264
- async function meMemories(sub, arg, text, v) {
9265
- const ex = 'ghosty me memories ls [--agent A] | add "texto" [--agent A] | edit <id> "texto" | rm <id>';
9264
+ async function meMemories(sub, arg, text) {
9265
+ const ex = 'ghosty me memories ls | add "texto" | edit <id> "texto" | rm <id>';
9266
9266
  switch (sub ?? "ls") {
9267
9267
  case "ls": {
9268
- const r = await api(`/api/v2/me/memories${v.agent ? `?agente=${enc3(v.agent)}` : ""}`);
9268
+ const r = await api(`/api/v2/me/memories`);
9269
9269
  out(r, () => {
9270
- const rows = r.memories.map((m) => ({ id: m.id, memory: m.content, agent: m.agentId ?? t("all", "todos"), from: m.source }));
9271
- return rows.length ? table(rows, ["id", "memory", "agent", "from"]) : dim(t('Nothing yet. Add one: ghosty me memories add "I prefer short answers"', 'A\xFAn nada. Agrega una: ghosty me memories add "prefiero respuestas cortas"'));
9270
+ const rows = r.memories.map((m) => ({ id: m.id, memory: m.content, from: m.source }));
9271
+ return rows.length ? table(rows, ["id", "memory", "from"]) : dim(t('Nothing yet. Add one: ghosty me memories add "I prefer short answers"', 'A\xFAn nada. Agrega una: ghosty me memories add "prefiero respuestas cortas"'));
9272
9272
  });
9273
9273
  return;
9274
9274
  }
9275
9275
  case "add": {
9276
9276
  if (!arg) throw usage(t("Missing the memory text.", "Falta el texto de la memoria."), ex);
9277
- const r = await api(`/api/v2/me/memories`, { method: "POST", body: { content: arg, agentId: v.agent ?? null } });
9277
+ const r = await api(`/api/v2/me/memories`, { method: "POST", body: { content: arg } });
9278
9278
  return out(r, () => `${lavender("\u2713")} ${t("Saved", "Guardada")} (${r.memory.id})`);
9279
9279
  }
9280
9280
  case "edit": {
@@ -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.32.0"}`
9572
+ "user-agent": `ghosty-cli/${"0.32.1"}`
9573
9573
  },
9574
9574
  body: method === "GET" ? void 0 : raw
9575
9575
  });
@@ -10939,7 +10939,7 @@ var HELPS_ES = {
10939
10939
  },
10940
10940
  me: {
10941
10941
  summary: "Tu cuenta: archivos, memorias y uso.",
10942
- notes: ["Las memorias viajan a tus agentes s\xF3lo en tus chats personales (app, /c, notch), nunca a WhatsApp, Messenger ni demos. --agent la limita a ese agente."]
10942
+ notes: ["Las memorias viajan a tus agentes s\xF3lo en tus chats personales (app, /c, notch), nunca a WhatsApp, Messenger ni demos."]
10943
10943
  },
10944
10944
  credentials: {
10945
10945
  summary: "Llaves de proveedores en la b\xF3veda de tu cuenta (cifradas; s\xF3lo regresan los \xFAltimos 4 caracteres).",
@@ -11410,9 +11410,9 @@ var HELPS = {
11410
11410
  },
11411
11411
  me: {
11412
11412
  summary: "Your account: files, memories and usage.",
11413
- usage: ["ghosty me files ls [--q TEXT] [--kind image|video|audio|document|other] [--cursor C]", "ghosty me files get <file-id> [--out FILE]", "ghosty me files upload <file> | rm <file-id>", 'ghosty me memories ls [--agent A] | add "text" [--agent A] | edit <id> "text" | rm <id>', "ghosty usage"],
11413
+ usage: ["ghosty me files ls [--q TEXT] [--kind image|video|audio|document|other] [--cursor C]", "ghosty me files get <file-id> [--out FILE]", "ghosty me files upload <file> | rm <file-id>", 'ghosty me memories ls | add "text" | edit <id> "text" | rm <id>', "ghosty usage"],
11414
11414
  examples: ["ghosty me files ls --kind document", "ghosty me files ls --q contrato", "ghosty me files get <id> --out contrato.pdf", 'ghosty chat <agent> "res\xFAmelo" --file <id>', 'ghosty me memories add "I prefer short answers"'],
11415
- notes: ["Memories travel to your agents only in your personal chats (app, /c, notch), never to WhatsApp, Messenger or demo threads. --agent limits one to that agent."],
11415
+ notes: ["Memories travel to your agents only in your personal chats (app, /c, notch), never to WhatsApp, Messenger or demo threads."],
11416
11416
  learn: `${REF}#tu-cuenta`
11417
11417
  }
11418
11418
  };
@@ -12652,7 +12652,7 @@ ${bold("Partners")} ${dim("(give an agent to each of YOUR customers \u2014 see:
12652
12652
 
12653
12653
  ${bold("Your account")}
12654
12654
  me files ls|get|upload|rm Files in your account [--q TEXT] [--kind image|video|audio|document|other] [--cursor C] \xB7 get <id> [--out FILE]
12655
- me memories ls|add|edit|rm What your agents remember about you (personal chats only) [--agent A] \xB7 add "text" \xB7 edit <id> "text" \xB7 rm <id>
12655
+ me memories ls|add|edit|rm What your agents remember about you (personal chats only) add "text" \xB7 edit <id> "text" \xB7 rm <id>
12656
12656
  credentials ls|set|rm [provider] Provider keys in your vault (hidden prompt, stdin or --from-env VAR; never as an argument)
12657
12657
  docs [topic] Open the docs
12658
12658
 
@@ -12780,7 +12780,7 @@ ${bold("Partners")} ${dim("(dale un agente a cada uno de TUS clientes \u2014 ve
12780
12780
 
12781
12781
  ${bold("Tu cuenta")}
12782
12782
  me files ls|get|upload|rm Archivos de tu cuenta [--q TEXTO] [--kind image|video|audio|document|other] [--cursor C] \xB7 get <id> [--out ARCHIVO]
12783
- me memories ls|add|edit|rm Lo que tus agentes recuerdan de ti (s\xF3lo chats personales) [--agent A] \xB7 add "texto" \xB7 edit <id> "texto" \xB7 rm <id>
12783
+ me memories ls|add|edit|rm Lo que tus agentes recuerdan de ti (s\xF3lo chats personales) add "texto" \xB7 edit <id> "texto" \xB7 rm <id>
12784
12784
  credentials ls|set|rm [proveedor] Llaves de proveedor en tu b\xF3veda (prompt oculto, stdin o --from-env VAR; nunca como argumento)
12785
12785
  docs [tema] Abre la documentaci\xF3n
12786
12786
 
@@ -13002,7 +13002,7 @@ async function main() {
13002
13002
  const tokens = splitTokens(pos, v);
13003
13003
  globals.token = tokens.session;
13004
13004
  globals.profile = v.profile;
13005
- if (v.version) return out({ version: "0.32.0" }, () => "0.32.0");
13005
+ if (v.version) return out({ version: "0.32.1" }, () => "0.32.1");
13006
13006
  for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
13007
13007
  const context = (await readConfig()).workspace;
13008
13008
  if (!explicitToken()?.startsWith("gat_")) {
@@ -13135,7 +13135,7 @@ async function main() {
13135
13135
  return planCmd(sub, a1, v, context);
13136
13136
  case "me":
13137
13137
  if (sub === "files") return meFiles(a1, a2, v);
13138
- if (sub === "memories" || sub === "memory") return meMemories(a1, a2, pos[4], v);
13138
+ if (sub === "memories" || sub === "memory") return meMemories(a1, a2, pos[4]);
13139
13139
  if (sub === "usage") return meUsage();
13140
13140
  throw usage(t(`Unknown me subcommand: ${sub ?? "(none)"}.`, `Subcomando de me desconocido: ${sub ?? "(ninguno)"}.`), t("Try: ghosty me files ls | ghosty me memories ls", "Prueba: ghosty me files ls | ghosty me memories ls"));
13141
13141
  case "docs": {
@@ -13148,7 +13148,7 @@ async function main() {
13148
13148
  throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
13149
13149
  }
13150
13150
  }
13151
- var notice = updateNotice("0.32.0").catch(() => null);
13151
+ var notice = updateNotice("0.32.1").catch(() => null);
13152
13152
  main().then(
13153
13153
  async () => {
13154
13154
  const n = await notice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostystudio/cli",
3
- "version": "0.32.0",
3
+ "version": "0.32.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": {