clawborrator-cli 0.2.13 → 0.2.14
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.
- package/dist-bundled/claw.cjs +6 -2
- package/package.json +1 -1
package/dist-bundled/claw.cjs
CHANGED
|
@@ -69411,16 +69411,20 @@ var desktopDelete = new Command("delete").description("hard-delete a desktop dae
|
|
|
69411
69411
|
console.log(` sessions unmanaged: ${out.sessionsUnmanaged}`);
|
|
69412
69412
|
if (out.wsClosed) console.log(` closed the live /supervisor WS`);
|
|
69413
69413
|
});
|
|
69414
|
-
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) => {
|
|
69414
|
+
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`").option("--auto-start", "respawn this session whenever the desktop daemon reconnects (e.g. after PC reboot). With --preserve-session-id, the respawn keeps the same sessionId; without it, each respawn mints a fresh sessionId + token.").option("--preserve-session-id", "opt the session into sessionId-permanence: Reset (soft restart) becomes available, autoStart-respawn keeps the same sessionId, and history + agent.session_id + webhook pins survive across all restart shapes. Default false (impermanent \u2014 every restart rotates state).").action(async (machineId, folder, opts) => {
|
|
69415
69415
|
const body = { folder };
|
|
69416
69416
|
if (opts.routingName) body.routingName = opts.routingName;
|
|
69417
69417
|
if (opts.flag && opts.flag.length > 0) body.flags = opts.flag;
|
|
69418
69418
|
if (opts.manualStart) body.autoEnter = false;
|
|
69419
|
+
if (opts.autoStart) body.autoStart = true;
|
|
69420
|
+
if (opts.preserveSessionId) body.preserveSessionId = true;
|
|
69419
69421
|
const out = await api.post(
|
|
69420
69422
|
`/api/v1/desktops/${encodeURIComponent(machineId)}/sessions`,
|
|
69421
69423
|
body
|
|
69422
69424
|
);
|
|
69423
69425
|
console.log(`\u2713 session created: ${out.sessionId}`);
|
|
69426
|
+
if (opts.autoStart) console.log(` auto-start: ON`);
|
|
69427
|
+
if (opts.preserveSessionId) console.log(` preserve session id: ON`);
|
|
69424
69428
|
});
|
|
69425
69429
|
var desktopCmd = new Command("desktop").description("inspect + control desktop daemons (clawborrator-supervisor)").addCommand(desktopList).addCommand(desktopDelete).addCommand(desktopCreate);
|
|
69426
69430
|
function fmtAgo4(iso) {
|
|
@@ -69433,7 +69437,7 @@ function fmtAgo4(iso) {
|
|
|
69433
69437
|
|
|
69434
69438
|
// src/index.ts
|
|
69435
69439
|
var program2 = new Command();
|
|
69436
|
-
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.2.
|
|
69440
|
+
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.2.14");
|
|
69437
69441
|
program2.addCommand(loginCmd);
|
|
69438
69442
|
program2.addCommand(logoutCmd);
|
|
69439
69443
|
program2.addCommand(whoamiCmd);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawborrator-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
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",
|