clawborrator-cli 0.0.58 → 0.0.59

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.
@@ -69331,10 +69331,11 @@ var desktopList = new Command("list").alias("ls").description("list desktop daem
69331
69331
  console.log(`${dot} ${d.machineId.slice(0, 8)} ${host.padEnd(24)} v${ver.padEnd(8)} last-seen ${fmtAgo4(d.lastSeenAt)}`);
69332
69332
  }
69333
69333
  });
69334
- var desktopCreate = new Command("create-session").description("ask a desktop daemon to spawn a managed CC session in a folder").argument("<machineId>", "desktop machine id (from `claw desktop list`)").argument("<folder>", "absolute path on the desktop where CC should be spawned").option("--routing-name <name>", "optional routing name for the new session (e.g. @frontend)").option("--flag <flag...>", "extra CLI flag to pass to claude. Repeat for multiple. Use one argv slot per --flag (e.g. --flag --model --flag opus, or --flag --model=opus). Reference: https://code.claude.com/docs/en/cli-reference#cli-flags").action(async (machineId, folder, opts) => {
69334
+ var desktopCreate = new Command("create-session").description("ask a desktop daemon to spawn a managed CC session in a folder").argument("<machineId>", "desktop machine id (from `claw desktop list`)").argument("<folder>", "absolute path on the desktop where CC should be spawned").option("--routing-name <name>", "optional routing name for the new session (e.g. @frontend)").option("--flag <flag...>", "extra CLI flag to pass to claude. Repeat for multiple. Use one argv slot per --flag (e.g. --flag --model --flag opus, or --flag --model=opus). Reference: https://code.claude.com/docs/en/cli-reference#cli-flags").option("--manual-start", "do NOT auto-press Enter on startup; operator answers prompts via screenshot PIP / `claw session input`").action(async (machineId, folder, opts) => {
69335
69335
  const body = { folder };
69336
69336
  if (opts.routingName) body.routingName = opts.routingName;
69337
69337
  if (opts.flag && opts.flag.length > 0) body.flags = opts.flag;
69338
+ if (opts.manualStart) body.autoEnter = false;
69338
69339
  const out = await api.post(
69339
69340
  `/api/v1/desktops/${encodeURIComponent(machineId)}/sessions`,
69340
69341
  body
@@ -69350,38 +69351,6 @@ function fmtAgo4(iso) {
69350
69351
  return Math.floor(ms / 864e5) + "d ago";
69351
69352
  }
69352
69353
 
69353
- // src/commands/prompt-memory.ts
69354
- var promptMemoryList = new Command("list").alias("ls").description("list remembered startup-prompt answers").option("--machine-id <id>", "filter to one machine").option("--folder <path>", "filter to one folder").action(async (opts) => {
69355
- const qs = new URLSearchParams();
69356
- if (opts.machineId) qs.set("machineId", opts.machineId);
69357
- if (opts.folder) qs.set("folder", opts.folder);
69358
- const url = "/api/v1/prompt-memory" + (qs.toString() ? "?" + qs : "");
69359
- const data = await api.get(url);
69360
- if (data.items.length === 0) {
69361
- console.log("no remembered answers");
69362
- return;
69363
- }
69364
- for (const m of data.items) {
69365
- const where = [m.machineId?.slice(0, 8) ?? "*", m.folder ?? "*"].join(" ");
69366
- const printableAnswer = JSON.stringify(m.answer);
69367
- console.log(`${m.id.toString().padStart(4)} ${m.category.padEnd(28)} ${printableAnswer.padEnd(8)} ${where}`);
69368
- }
69369
- });
69370
- var promptMemorySet = new Command("set").description("set or update a remembered answer (idempotent)").requiredOption("--category <category>", "e.g. startup_trust_folder, startup_use_mcp").requiredOption("--answer <bytes>", 'literal bytes the daemon should type, e.g. "y\\n"').option("--machine-id <id>", "scope to a specific machine; omit for all-machines").option("--folder <path>", "scope to a specific folder; omit for all-folders").action(async (opts) => {
69371
- const out = await api.post("/api/v1/prompt-memory", {
69372
- machineId: opts.machineId ?? null,
69373
- folder: opts.folder ?? null,
69374
- category: opts.category,
69375
- answer: opts.answer
69376
- });
69377
- console.log(`\u2713 remembered #${out.id}: ${out.category} \u2192 ${JSON.stringify(out.answer)}`);
69378
- });
69379
- var promptMemoryForget = new Command("forget").description("forget a remembered answer by id (from `claw prompt-memory list`)").argument("<id>", "memory id").action(async (id) => {
69380
- await api.delete(`/api/v1/prompt-memory/${encodeURIComponent(id)}`);
69381
- console.log(`\u2717 forgot memory ${id}`);
69382
- });
69383
- var promptMemoryCmd = new Command("prompt-memory").description("view and manage remembered CC startup-prompt answers").addCommand(promptMemoryList).addCommand(promptMemorySet).addCommand(promptMemoryForget);
69384
-
69385
69354
  // src/index.ts
69386
69355
  var program2 = new Command();
69387
69356
  program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.43");
@@ -69397,7 +69366,6 @@ program2.addCommand(webhookCmd);
69397
69366
  program2.addCommand(agentsCmd);
69398
69367
  program2.addCommand(appsCmd);
69399
69368
  program2.addCommand(desktopCmd);
69400
- program2.addCommand(promptMemoryCmd);
69401
69369
  program2.parseAsync(process.argv).catch((err) => {
69402
69370
  console.error(err.message ?? err);
69403
69371
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "description": "claw — command-line client for clawborrator. Attach to remote Claude Code sessions, send prompts, resolve permission gates, route across sessions, manage public agents and webhooks. Auth via GitHub OAuth + PKCE.",
6
6
  "license": "MIT",