runpane 2.4.230 → 2.4.232
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/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +8 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +39 -1
- package/dist/commands.js.map +1 -1
- package/dist/devices.d.ts +10 -0
- package/dist/devices.d.ts.map +1 -0
- package/dist/devices.js +167 -0
- package/dist/devices.js.map +1 -0
- package/dist/docs-index.json +1 -1
- package/dist/docs.js +1 -1
- package/dist/docs.js.map +1 -1
- package/dist/generated/contract.d.ts +1299 -186
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +2294 -430
- package/dist/generated/contract.js.map +1 -1
- package/dist/handoff.js +1 -1
- package/dist/handoff.js.map +1 -1
- package/dist/localControl.d.ts.map +1 -1
- package/dist/localControl.js +7 -0
- package/dist/localControl.js.map +1 -1
- package/dist/machine.d.ts +4 -0
- package/dist/machine.d.ts.map +1 -0
- package/dist/machine.js +231 -0
- package/dist/machine.js.map +1 -0
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +15 -1
- package/dist/mcp.js.map +1 -1
- package/dist/mcpTools.d.ts +2 -0
- package/dist/mcpTools.d.ts.map +1 -1
- package/dist/mcpTools.js +1 -1
- package/dist/mcpTools.js.map +1 -1
- package/dist/updateArtifacts.d.ts +2 -0
- package/dist/updateArtifacts.d.ts.map +1 -1
- package/dist/updateArtifacts.js +6 -1
- package/dist/updateArtifacts.js.map +1 -1
- package/dist/updateCapacity.d.ts +1 -1
- package/dist/updateCapacity.d.ts.map +1 -1
- package/dist/updateCapacity.js +2 -0
- package/dist/updateCapacity.js.map +1 -1
- package/dist/updateOperation.d.ts +3 -3
- package/package.json +1 -1
|
@@ -47,6 +47,8 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
47
47
|
readonly artifactFormats: readonly ["auto", "appimage", "deb", "dmg", "zip", "exe"];
|
|
48
48
|
readonly channels: readonly ["stable", "nightly"];
|
|
49
49
|
readonly agents: readonly ["codex", "claude", "cursor", "opencode", "pi"];
|
|
50
|
+
readonly reclaimKinds: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
51
|
+
readonly foreignReclaimKinds: readonly ["foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
50
52
|
};
|
|
51
53
|
readonly agents: {
|
|
52
54
|
readonly default: "claude";
|
|
@@ -72,6 +74,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
72
74
|
readonly command: "npm install -g @anthropic-ai/claude-code@latest";
|
|
73
75
|
};
|
|
74
76
|
readonly transcriptDirs: readonly [".claude/projects"];
|
|
77
|
+
readonly tempDirs: readonly ["{tmp}/claude-{uid}"];
|
|
75
78
|
readonly signIn: readonly ["auth", "login"];
|
|
76
79
|
readonly onboarding: true;
|
|
77
80
|
readonly onboardingPanelId: "__pane_chat_terminal__";
|
|
@@ -215,6 +218,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
215
218
|
readonly terminal: {
|
|
216
219
|
readonly args: readonly [];
|
|
217
220
|
readonly fullAccessArgs: readonly ["--auto"];
|
|
221
|
+
readonly paneMcpConfigEnv: "OPENCODE_CONFIG_CONTENT";
|
|
218
222
|
readonly hotkey: "mod+alt+6";
|
|
219
223
|
readonly session: {
|
|
220
224
|
readonly flag: "--session";
|
|
@@ -454,6 +458,86 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
454
458
|
readonly toolsets: readonly ["core", "plugin"];
|
|
455
459
|
readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
|
|
456
460
|
readonly localControl: true;
|
|
461
|
+
}, {
|
|
462
|
+
readonly name: "devices list";
|
|
463
|
+
readonly mcpName: "device_list";
|
|
464
|
+
readonly summary: "List the phone simulators and emulators this Pane can open: platform, name, OS, machine, state, and which Pane holds each.";
|
|
465
|
+
readonly usage: readonly ["runpane devices list [--json] [--pane-dir <path>]"];
|
|
466
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
467
|
+
readonly jsonSchemas: readonly ["devicesListResult"];
|
|
468
|
+
readonly localControl: true;
|
|
469
|
+
readonly wrappers: readonly ["npm"];
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "devices open";
|
|
472
|
+
readonly mcpName: "device_open";
|
|
473
|
+
readonly summary: "Boot a phone simulator or emulator for this Pane and show its live screen in a device tab beside the agent.";
|
|
474
|
+
readonly usage: readonly ["runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]"];
|
|
475
|
+
readonly mutates: true;
|
|
476
|
+
readonly additive: true;
|
|
477
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
478
|
+
readonly jsonSchemas: readonly ["devicesOpenResult"];
|
|
479
|
+
readonly localControl: true;
|
|
480
|
+
readonly wrappers: readonly ["npm"];
|
|
481
|
+
}, {
|
|
482
|
+
readonly name: "devices screenshot";
|
|
483
|
+
readonly mcpName: "device_screenshot";
|
|
484
|
+
readonly summary: "Capture the screen of this Pane's open device as an image.";
|
|
485
|
+
readonly usage: readonly ["runpane devices screenshot [--platform <ios|android>] [--json] [--pane-dir <path>]"];
|
|
486
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
487
|
+
readonly jsonSchemas: readonly ["devicesScreenshotResult"];
|
|
488
|
+
readonly localControl: true;
|
|
489
|
+
readonly wrappers: readonly ["npm"];
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "devices act";
|
|
492
|
+
readonly mcpName: "device_act";
|
|
493
|
+
readonly summary: "Run an agent-device command on this Pane's open device: open an app, snapshot -i for element refs, press @e3, fill, swipe, install, logs.";
|
|
494
|
+
readonly usage: readonly ["runpane devices act [--platform <ios|android>] [--json] [--pane-dir <path>] -- <command>"];
|
|
495
|
+
readonly mutates: true;
|
|
496
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
497
|
+
readonly jsonSchemas: readonly ["devicesActResult"];
|
|
498
|
+
readonly localControl: true;
|
|
499
|
+
readonly wrappers: readonly ["npm"];
|
|
500
|
+
}, {
|
|
501
|
+
readonly name: "devices run";
|
|
502
|
+
readonly mcpName: "device_run";
|
|
503
|
+
readonly summary: "Run a command where this Pane's device runs, such as a build (npx expo run:ios) or Metro with --background.";
|
|
504
|
+
readonly usage: readonly ["runpane devices run [--platform <ios|android>] [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>"];
|
|
505
|
+
readonly mutates: true;
|
|
506
|
+
readonly openWorld: true;
|
|
507
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
508
|
+
readonly jsonSchemas: readonly ["devicesRunResult"];
|
|
509
|
+
readonly localControl: true;
|
|
510
|
+
readonly wrappers: readonly ["npm"];
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "devices close";
|
|
513
|
+
readonly mcpName: "device_close";
|
|
514
|
+
readonly summary: "Release this Pane's device (or, with --platform, only that one) and stop the commands device_run started. The device stays warm for 10 minutes.";
|
|
515
|
+
readonly usage: readonly ["runpane devices close [--platform <ios|android>] [--json] [--pane-dir <path>]"];
|
|
516
|
+
readonly mutates: true;
|
|
517
|
+
readonly idempotent: true;
|
|
518
|
+
readonly toolsets: readonly ["core", "devices"];
|
|
519
|
+
readonly jsonSchemas: readonly ["devicesCloseResult"];
|
|
520
|
+
readonly localControl: true;
|
|
521
|
+
readonly wrappers: readonly ["npm"];
|
|
522
|
+
}, {
|
|
523
|
+
readonly name: "devices usage";
|
|
524
|
+
readonly mcpName: "device_usage";
|
|
525
|
+
readonly summary: "Report every simulator and emulator on this machine, and the memory and disk they, Pane's device tools and build checkouts use.";
|
|
526
|
+
readonly usage: readonly ["runpane devices usage [--json] [--pane-dir <path>]"];
|
|
527
|
+
readonly toolsets: readonly ["devices"];
|
|
528
|
+
readonly jsonSchemas: readonly ["devicesUsageResult"];
|
|
529
|
+
readonly localControl: true;
|
|
530
|
+
readonly wrappers: readonly ["npm"];
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "devices free";
|
|
533
|
+
readonly mcpName: "device_free";
|
|
534
|
+
readonly summary: "Shut down unused devices (--idle), or also delete every unused device Pane made and the build checkouts no Pane holds (--all).";
|
|
535
|
+
readonly usage: readonly ["runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]"];
|
|
536
|
+
readonly mutates: true;
|
|
537
|
+
readonly toolsets: readonly ["devices"];
|
|
538
|
+
readonly jsonSchemas: readonly ["devicesFreeResult"];
|
|
539
|
+
readonly localControl: true;
|
|
540
|
+
readonly wrappers: readonly ["npm"];
|
|
457
541
|
}, {
|
|
458
542
|
readonly name: "theme read";
|
|
459
543
|
readonly summary: "Show Pane's own theme: what is selected, the Custom theme, every colour token with its current value, the stable selectors, and the guide for restyling Pane.";
|
|
@@ -1232,6 +1316,22 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
1232
1316
|
readonly toolsets: readonly ["sessions"];
|
|
1233
1317
|
readonly jsonSchemas: readonly ["lockListResult"];
|
|
1234
1318
|
readonly localControl: true;
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly name: "machine health";
|
|
1321
|
+
readonly summary: "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.";
|
|
1322
|
+
readonly usage: readonly ["runpane machine health [--json] [--pane-dir <path>]"];
|
|
1323
|
+
readonly toolsets: readonly ["machine"];
|
|
1324
|
+
readonly jsonSchemas: readonly ["machineHealthResult"];
|
|
1325
|
+
readonly localControl: true;
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly name: "machine cleanup";
|
|
1328
|
+
readonly confirmDescription: "Delete the listed items (the CLI's --yes). Without it the call is a dry run that lists them and deletes nothing.";
|
|
1329
|
+
readonly summary: "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.";
|
|
1330
|
+
readonly usage: readonly ["runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"];
|
|
1331
|
+
readonly mutates: true;
|
|
1332
|
+
readonly toolsets: readonly ["machine"];
|
|
1333
|
+
readonly jsonSchemas: readonly ["machineCleanupResult"];
|
|
1334
|
+
readonly localControl: true;
|
|
1235
1335
|
}, {
|
|
1236
1336
|
readonly name: "sessions unpin";
|
|
1237
1337
|
readonly summary: "Declaratively unpin a named Session using the UI pin state; repeated requests keep the requested state.";
|
|
@@ -1858,6 +1958,22 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
1858
1958
|
readonly name: "--search";
|
|
1859
1959
|
readonly value: "<text>";
|
|
1860
1960
|
readonly description: "models only: keep models whose name contains this text.";
|
|
1961
|
+
}, {
|
|
1962
|
+
readonly name: "--platform";
|
|
1963
|
+
readonly value: "<ios|android>";
|
|
1964
|
+
readonly description: "devices open: ios or android. devices screenshot, act, run and close: which of the Pane's devices; defaults to the one opened last.";
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly name: "--device";
|
|
1967
|
+
readonly value: "<name-or-id>";
|
|
1968
|
+
readonly description: "devices open: one of the person's own devices by name or id.";
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly name: "--wait-ms";
|
|
1971
|
+
readonly value: "<milliseconds>";
|
|
1972
|
+
readonly description: "devices run: how long to wait for the command to exit.";
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly name: "--kind";
|
|
1975
|
+
readonly value: "<kind>";
|
|
1976
|
+
readonly description: "Kind of item for runpane machine cleanup, such as update-snapshot; runpane machine health lists each item's kind.";
|
|
1861
1977
|
}];
|
|
1862
1978
|
readonly localBoolean: readonly [{
|
|
1863
1979
|
readonly name: "--json";
|
|
@@ -1976,11 +2092,17 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
1976
2092
|
}, {
|
|
1977
2093
|
readonly name: "--hook";
|
|
1978
2094
|
readonly description: "runpane panels conversation: read a Claude Code SessionStart hook's JSON from stdin and report it for PANE_PANEL_ID. Prints nothing and always exits 0.";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly name: "--background";
|
|
2097
|
+
readonly description: "devices run: keep the command running after the call returns; it stops at devices close.";
|
|
2098
|
+
}, {
|
|
2099
|
+
readonly name: "--idle";
|
|
2100
|
+
readonly description: "devices free: shut down Pane's devices no Pane holds.";
|
|
1979
2101
|
}];
|
|
1980
2102
|
};
|
|
1981
2103
|
readonly help: {
|
|
1982
2104
|
readonly npm: {
|
|
1983
|
-
readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane relay [pane-relay flags...]", " runpane link <link> [--yes] [--json]", " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane theme read [--json]", " runpane theme set [--base <theme>] [--colors <json>] [--css <text>] [--name <text>] [--json]", " runpane theme set --theme <id> [--json]", " runpane theme reset [--json]", " runpane sessions list [--json] [--pane-dir <path>]", " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions pause|resume --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]", " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " runpane loops list [--json]", " runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane workspace list [--json]", " runpane workspace <machine> read|write|exec|<command>", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
|
|
2105
|
+
readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane relay [pane-relay flags...]", " runpane link <link> [--yes] [--json]", " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane devices list [--json] [--pane-dir <path>]", " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]", " runpane devices screenshot [--json] [--pane-dir <path>]", " runpane devices act [--json] [--pane-dir <path>] -- <command>", " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>", " runpane devices close [--json] [--pane-dir <path>]", " runpane devices usage [--json] [--pane-dir <path>]", " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]", " runpane theme read [--json]", " runpane theme set [--base <theme>] [--colors <json>] [--css <text>] [--name <text>] [--json]", " runpane theme set --theme <id> [--json]", " runpane theme reset [--json]", " runpane sessions list [--json] [--pane-dir <path>]", " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions pause|resume --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]", " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " runpane machine health [--json]", " runpane machine cleanup --kind <kind> [--yes] [--json]", " runpane loops list [--json]", " runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane workspace list [--json]", " runpane workspace <machine> read|write|exec|<command>", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
|
|
1984
2106
|
readonly install: readonly ["Usage:", " runpane install [client|daemon] [options]", "", "Examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest install daemon --prefer-tunnel ssh --label \"VM\"", "", "Wrapper options:", " --version <latest|vX.Y.Z> Pane release to install", " --format <auto|appimage|deb|dmg|zip|exe>", " --download-dir <path>", " --pane-path <path> Use an existing Pane executable", " --dry-run Print the plan without downloading", " --yes Skip interactive prompts where possible", " --verbose", "", "Daemon passthrough options:", " --label <name>", " --prefer-tunnel <tailscale|ssh|manual|auto>", " --channel <stable|nightly>", " --base-url <url>", " --pane-dir <path>", " --listen-port <port> / --port <port>", " --auto-listen-port", " --interactive-tailscale-setup", " --no-install-service", " --no-tailscale-serve", " --print-only", " --repo-ref <ref>"];
|
|
1985
2107
|
readonly setup: readonly ["Usage:", " runpane setup", "", "Opens the guided setup for desktop install, remote host setup, update, and diagnostics.", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup"];
|
|
1986
2108
|
readonly update: readonly ["Usage:", " runpane update [--pane-only | --cli-only] [--version <latest|vX.Y.Z>] [--pane-dir <path>] [--dry-run] [--wait] [--json]", " runpane update --status <operation-id> [--wait] [--pane-dir <path>] [--json]", "", "Updates both Pane and the invoked supported CLI by default, on this machine.", "Preflight identifies the host and installation owner before downtime. The independent helper stages an app, CLI, and standalone Node runtime before stopping Pane.", "Status distinguishes acceptance, installed components, host health, and per-panel restoration. No prompts or uncertain actions are replayed.", "CLI-only updates do not restart Pane; a managed CLI pin survives later Pane startup.", "Use workspace <machine> exec -- runpane update for an explicit remote machine."];
|
|
@@ -2008,7 +2130,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2008
2130
|
readonly workspace: readonly ["Workspace commands: this machine's Panes, and your other machines over Tailscale or the routes Pane saved for them.", "", "Usage:", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane workspace list [--json]", " runpane workspace <machine> read <path>", " runpane workspace <machine> write <path> (content from --content or stdin)", " runpane workspace <machine> exec -- <command>", " runpane workspace <machine> <runpane command> (any command that talks to Pane, e.g. sessions list --json)", " runpane workspace enable|disable", "", "<machine> is a name from workspace list, an id it is saved under in Pane (such as its relay id), a unique prefix, or a Tailscale IP. Your own machines are reachable, and a teammate's machine when its owner set Who can connect to Everyone on tailnet.", "A computer saved in Pane is tried route by route (same network, Tailscale, SSH, public URL, Pane relay, in its order); one that does not connect gives way to the next.", "Without <machine>, read, write, and exec route a path that cannot exist here (C:\\... on a Mac) to the one joined machine it fits.", "Commands that only run here (doctor, agent-context, mcp, docs) run there with: runpane workspace <machine> exec -- 'runpane doctor'"];
|
|
2009
2131
|
readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
|
|
2010
2132
|
readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "Autopilot's kinds are opt-in the same way, never in a default: item.created and item.answered", "(ITEM|ANSWERED <pane-name> pane <pane-id> [panel <panel-id>] <item-id>: <title>), session.created", "and session.archived (SESSION NEW|ARCHIVED <name> pane <pane-id> session <session-id>), and", "orchestrator.turn_ended (TURN ENDED <session-name> pane <pane-id> panel <panel-id> session <session-id>).", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
|
|
2011
|
-
readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates a Pane in a saved repository and opens a terminal-backed tool tab. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --attach <file> Copy a file beside the prompt file and list it; repeatable", " --expect-report Expect a `runpane report` even for --source user work (the default otherwise)", " --no-expect-report Fire-and-forget: no agent.report.missing if the agent ends without reporting", " --wait Block until this panel reports, misses its report, waits on a prompt, or exits;", " print one JSON line (exit 0 report, 3 missing, 4 blocked, 5 exited, 124 timeout)", " --timeout <duration> With --wait: give up after this long (30m, 2h)", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Request pinning at creation; first Session association clears it", " --no-pinned Create unpinned (the UI's favorite/pin star)", " --no-associate Do not associate the new pane with the caller's Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands", "", "Outside a Session, creation pins by default, including --source agent. Inside a Session (PANE_ORCHESTRATION_SESSION_ID), children default to unpinned to avoid duplicating them in the global pinned list. First Session association clears the creation pin, including --pinned; use panes pin afterward to pin an associated child."];
|
|
2133
|
+
readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates a Pane in a saved repository and opens a terminal-backed tool tab. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name, cut to 100 characters at a word; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --attach <file> Copy a file beside the prompt file and list it; repeatable", " --expect-report Expect a `runpane report` even for --source user work (the default otherwise)", " --no-expect-report Fire-and-forget: no agent.report.missing if the agent ends without reporting", " --wait Block until this panel reports, misses its report, waits on a prompt, or exits;", " print one JSON line (exit 0 report, 3 missing, 4 blocked, 5 exited, 124 timeout)", " --timeout <duration> With --wait: give up after this long (30m, 2h)", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Request pinning at creation; first Session association clears it", " --no-pinned Create unpinned (the UI's favorite/pin star)", " --no-associate Do not associate the new pane with the caller's Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands", "", "Outside a Session, creation pins by default, including --source agent. Inside a Session (PANE_ORCHESTRATION_SESSION_ID), children default to unpinned to avoid duplicating them in the global pinned list. First Session association clears the creation pin, including --pinned; use panes pin afterward to pin an associated child."];
|
|
2012
2134
|
readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [options]", "", "Adopts an existing externally managed git worktree without creating, syncing, or deleting it. Archiving only removes its worktree with `panes archive --remove-worktree`. To start new work on a named branch, use `panes create --base <ref> --branch <name>` instead of `git worktree add` plus adopt.", "", "Options: --resume <id> stages the agent resume command (built-in agents only); --launch runs the command immediately; --prompt <text> or --prompt-file <path|-> and --wait-ready require --launch; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews.", "", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen, and --wait-ready waits for the detected agent's input box; a command that never shows a supported agent is not ready and nothing is typed into it."];
|
|
2013
2135
|
readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it. Add --closed to the sweep to also archive Panes whose PR closed without merging.", "", "Options:", " --pane <pane-id> Pane/session id to archive", " --source <user|agent> Mark mutation source", " --force Archive even if the pane has uncommitted, untracked, or unpushed changes, a busy agent, or unsent input", " --remove-worktree Also check and remove an adopted Pane's worktree (the branch is kept)", " --session <id|name> Archive the Panes associated with this Session (requires --merged)", " --merged Only archive Panes that are clean and pushed, or merged via a PR", " --closed With --session --merged, also archive Panes whose PR closed unmerged", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Refresh and print archive safety evidence without archiving", " --yes Skip confirmation for mutating commands"];
|
|
2014
2136
|
readonly "panes pin": readonly ["Usage:", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively pins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id> Pane/session id to pin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without pinning the pane", " --yes Skip confirmation for mutating commands"];
|
|
@@ -2020,7 +2142,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2020
2142
|
readonly "panels output": readonly ["Usage:", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", "", "Reads bounded recent terminal output from a panel.", "", "Options:", " --panel <panel-id> Tool panel id", " --limit <count> Maximum recent output lines or records to read", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2021
2143
|
readonly "panels input": readonly ["Usage:", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", "", "Sends exact input bytes to a terminal panel. Include a newline in the input when you mean Enter.", "", "Options:", " --panel <panel-id> Terminal panel id", " --text <text> Text bytes to send", " --keys <name,...> Keys to press: enter, escape, tab, up, down, ctrl-c, ...", " --input-file <path|-> Read input from a file or stdin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
|
|
2022
2144
|
readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command> Print the full definition for one runpane command", " --json Print machine-readable output", " --pane-dir <path> Accepted and ignored; agent-context never contacts Pane", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
|
|
2023
|
-
readonly mcp: readonly ["Usage:", " runpane mcp [--toolsets <name,...>] [--read-only]", "", "Runs the Pane MCP server over stdio. Each runpane command with a JSON result becomes a tool that returns the same JSON as `runpane <command> --json`. Commands that need --yes take `yes: true` instead.", "Pane registers this server with Claude Code, Codex, and Cursor automatically (Settings > AI & Agents). To register it by hand:", " claude mcp add --scope user pane -- npx --yes runpane@latest mcp", " codex mcp add pane -- npx --yes runpane@latest mcp", "", "The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.", "", "Options:", " --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, git, docs, links, admin", " --read-only Serve only read-only tools"];
|
|
2145
|
+
readonly mcp: readonly ["Usage:", " runpane mcp [--toolsets <name,...>] [--read-only]", "", "Runs the Pane MCP server over stdio. Each runpane command with a JSON result becomes a tool that returns the same JSON as `runpane <command> --json`. Commands that need --yes take `yes: true` instead.", "Pane registers this server with Claude Code, Codex, and Cursor automatically (Settings > AI & Agents). To register it by hand:", " claude mcp add --scope user pane -- npx --yes runpane@latest mcp", " codex mcp add pane -- npx --yes runpane@latest mcp", "", "The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.", "", "Options:", " --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, machine, git, docs, links, admin", " --read-only Serve only read-only tools"];
|
|
2024
2146
|
readonly relay: readonly ["Usage:", " runpane relay init --domain <relay domain> [--public-ip <IPv4>] [--resolver <ip[:port]>]", " runpane relay [pane-relay flags...]", "", "Runs pane-relay, the open-source relay that gives your computers addresses on your own domain for QR pairing.", "`relay init` prints the two DNS records, the start command and the Pane setting a new relay needs, then checks each one; it exits 0 once every check passes.", "Other flags, stdio, signals and the exit code pass through to pane-relay; `runpane relay --help` lists its flags.", "On macOS, Linux and Windows (x64 and arm64), runpane runs the binary from its optional dependency @pane/relay-<platform>-<arch>, or else downloads it once from the GitHub release for its own version, checks its SHA-256 against pane-relay-sha256.txt and caches it. Pane's built-in runpane does the same.", "", "Examples:", " npx --yes runpane@latest relay init --domain relay.example.com --public-ip 203.0.113.10", " npx --yes runpane@latest relay --domain relay.example.com --public-ip 203.0.113.10 --ns relay-ns.example.com --dns 0.0.0.0:53 --direct-quic 0.0.0.0:7842 --acme-cache /var/lib/pane-relay/acme", " npx --yes runpane@latest relay --dev", "", "Guide: docs/SELF_HOSTED_RELAY.md"];
|
|
2025
2147
|
readonly link: readonly ["Usage:", " runpane link <link> [--yes] [--json] [--pane-dir <path>]", "", "Link this computer with the one that made a one-time link, so each can reach the other.", "Copy the link in Pane on the other computer: Add a device › Computer.", "A computer that already has linked computers asks before the two groups join.", "", "Options:", " --yes Join without asking; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
|
|
2026
2148
|
readonly "agents doctor": readonly ["Usage:", " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]", "", "Diagnoses whether Codex or Claude is available in the same repository environment Pane will use.", "", "Options:", " --agent <codex|claude|cursor|opencode|pi> Built-in agent command to diagnose", " --repo <selector> active, id, exact path, or saved repository name; defaults to active", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
@@ -2109,9 +2231,21 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2109
2231
|
readonly "panes resume": readonly ["Usage:", " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents", "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --pane <pane-id> Pane id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2110
2232
|
readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses the terminal tabs of a Session's chat and of every Pane in it that is not archived (Pause leaves a chat tab running: its agent keeps running, and the result says so),", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused terminal tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2111
2233
|
readonly "sessions resume": readonly ["Usage:", " runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]", "", "Restarts the paused tabs of a Session's chat and Panes in their saved conversations.", "Running tabs are left alone. An archived Session is refused; restore it first.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2234
|
+
readonly "devices list": readonly ["Usage:", " runpane devices list [--json] [--pane-dir <path>]", "", "Lists this machine's iOS simulators and Android emulators, plus the iOS machine Pane uses when this one has no Xcode. paneMade marks the devices Pane created; device_open uses those unless you name another.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2235
|
+
readonly "devices open": readonly ["Usage:", " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]", "", "Leases a device to the calling tab's Pane and boots it. Without --device, Pane uses its own device (Pane iPhone or Pane_Android) and makes one from the newest installed runtime when needed. The first call on a machine installs Pane's device tools (agent-device and Expo's device hub), which takes a minute. When every device Pane may boot is held by another Pane, it waits up to 60 seconds, then fails with ERR_DEVICE_BUSY naming the holder. On a machine without Xcode, iOS opens on a linked Mac. Later device calls act on this device; you never pass it again.", "", "Options:", " --platform <ios|android> ios for an iOS simulator, android for an Android emulator", " --device <name-or-id> One of the person's own devices by name or id, from device_list. Leave it out to use Pane's own device", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2236
|
+
readonly "devices screenshot": readonly ["Usage:", " runpane devices screenshot [--json] [--pane-dir <path>]", "", "Returns the PNG's path; MCP clients also get the image itself.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2237
|
+
readonly "devices act": readonly ["Usage:", " runpane devices act [--json] [--pane-dir <path>] -- <command>", "", "Passes the command to agent-device, pinned to the device this Pane holds. Start with `open <app id>`, then `snapshot -i` for @refs, then `press @eN --settle`. agent-device's own help: `help workflow`. Flags that pick another device, session or daemon (--session, --device, --udid, --serial, --platform) are refused.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2238
|
+
readonly "devices run": readonly ["Usage:", " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>", "", "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.", "", "Options:", " --background Keep the command running after the call returns (Metro); it stops at device_close", " --wait-ms <milliseconds> How long to wait for the command to exit (default 120000)", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2239
|
+
readonly "devices close": readonly ["Usage:", " runpane devices close [--json] [--pane-dir <path>]", "", "Ends the lease so another Pane can use the device. It shuts down 10 minutes later unless a Pane opens it again.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2240
|
+
readonly "devices usage": readonly ["Usage:", " runpane devices usage [--json] [--pane-dir <path>]", "", "For machine health. Lists every simulator and emulator on this machine, including ones made outside Pane (paneMade false), with OS, disk and, when booted, memory (simslim measure when installed, otherwise the simulator's processes).", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2241
|
+
readonly "devices free": readonly ["Usage:", " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]", "", "Never touches the person's own devices or runtimes, or a device a Pane holds.", "", "Options:", " --idle Shut down Pane's devices no Pane holds", " --all Also erase and delete them", " --yes Confirm the change", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
|
|
2242
|
+
readonly devices: readonly ["Usage:", " runpane devices <list|open|screenshot|act|run|close|usage|free> [options]", "", "Phone simulators and emulators for agents. device_open boots a device for the calling tab's Pane and shows its live screen in a device tab beside the agent; the other commands act only on that Pane's device.", "On a machine without Xcode, iOS runs on a linked Mac. See docs/DEVICES.md.", "", "Commands:", " runpane devices list [--json] [--pane-dir <path>]", " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]", " runpane devices screenshot [--json] [--pane-dir <path>]", " runpane devices act [--json] [--pane-dir <path>] -- <command>", " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>", " runpane devices close [--json] [--pane-dir <path>]", " runpane devices usage [--json] [--pane-dir <path>]", " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]"];
|
|
2243
|
+
readonly machine: readonly ["Usage:", " runpane machine <health|cleanup> [options]", "", "Shows this machine's health and frees the disk space Pane made.", "Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.", "Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.", "Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.", "Pane never deletes tier 3; machine health says how to free each one.", "", "Commands:", " runpane machine health [--json] [--pane-dir <path>]", " runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"];
|
|
2244
|
+
readonly "machine health": readonly ["Usage:", "runpane machine health [--json] [--pane-dir <path>]", "", "Shows free disk per volume, the memory level and its source, the Panes using the most memory,", "leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.", "", "Options:", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
|
|
2245
|
+
readonly "machine cleanup": readonly ["Usage:", "runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]", "", "Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,", "and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.", "Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.", "", "Options:", " --kind <kind> Kind of item to delete, from machine health:", " update-snapshot, migration-backup, archived-pane-folder,", " agent-temp, paused-scratch.", " --yes Delete them. Without --yes, list them and delete nothing.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
|
|
2112
2246
|
};
|
|
2113
2247
|
readonly pip: {
|
|
2114
|
-
readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane relay [pane-relay flags...]", " runpane link <link> [--yes] [--json]", " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " python -m runpane loops list [--json]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
|
|
2248
|
+
readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane relay [pane-relay flags...]", " runpane link <link> [--yes] [--json]", " runpane agents doctor --agent <codex|claude|cursor|opencode|pi> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor|opencode|pi> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " python -m runpane machine health [--json]", " python -m runpane machine cleanup --kind <kind> [--yes] [--json]", " python -m runpane loops list [--json]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
|
|
2115
2249
|
readonly install: readonly ["Usage:", " runpane install [client|daemon] [options]", "", "Examples:", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest install daemon --prefer-tunnel ssh --label \"VM\"", " pipx run runpane install daemon --label \"My Server\"", "", "Wrapper options:", " --version <latest|vX.Y.Z>", " --format <auto|appimage|deb|dmg|zip|exe>", " --download-dir <path>", " --pane-path <path>", " --dry-run", " --yes", " --verbose", "", "Daemon passthrough options:", " --label <name>", " --prefer-tunnel <tailscale|ssh|manual|auto>", " --channel <stable|nightly>", " --base-url <url>", " --pane-dir <path>", " --listen-port <port> / --port <port>", " --auto-listen-port", " --interactive-tailscale-setup", " --no-install-service", " --no-tailscale-serve", " --print-only", " --repo-ref <ref>"];
|
|
2116
2250
|
readonly setup: readonly ["Usage:", " runpane setup", "", "Opens the guided setup for desktop install, remote host setup, update, and diagnostics.", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup"];
|
|
2117
2251
|
readonly update: readonly ["Usage:", " runpane update [--pane-only | --cli-only] [--version <latest|vX.Y.Z>] [--pane-dir <path>] [--dry-run] [--wait] [--json]", " runpane update --status <operation-id> [--wait] [--pane-dir <path>] [--json]", "", "Updates both Pane and the invoked supported CLI by default, on this machine.", "Preflight identifies the host and installation owner before downtime. The independent helper stages an app, CLI, and standalone Node runtime before stopping Pane.", "Status distinguishes acceptance, installed components, host health, and per-panel restoration. No prompts or uncertain actions are replayed.", "CLI-only updates do not restart Pane; a managed CLI pin survives later Pane startup.", "Use workspace <machine> exec -- runpane update for an explicit remote machine."];
|
|
@@ -2139,7 +2273,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2139
2273
|
readonly workspace: readonly ["Workspace commands: this machine's Panes, and your other machines over Tailscale or the routes Pane saved for them.", "", "Usage:", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", "", "runpane workspace list|read|write|exec|enable|disable ship in the npm package: npx --yes runpane@latest workspace list"];
|
|
2140
2274
|
readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
|
|
2141
2275
|
readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "Autopilot's kinds are opt-in the same way, never in a default: item.created and item.answered", "(ITEM|ANSWERED <pane-name> pane <pane-id> [panel <panel-id>] <item-id>: <title>), session.created", "and session.archived (SESSION NEW|ARCHIVED <name> pane <pane-id> session <session-id>), and", "orchestrator.turn_ended (TURN ENDED <session-name> pane <pane-id> panel <panel-id> session <session-id>).", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
|
|
2142
|
-
readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates a Pane in a saved repository and opens a terminal-backed tool tab. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --attach <file> Copy a file beside the prompt file and list it; repeatable", " --expect-report Expect a `runpane report` even for --source user work (the default otherwise)", " --no-expect-report Fire-and-forget: no agent.report.missing if the agent ends without reporting", " --wait Block until this panel reports, misses its report, waits on a prompt, or exits;", " print one JSON line (exit 0 report, 3 missing, 4 blocked, 5 exited, 124 timeout)", " --timeout <duration> With --wait: give up after this long (30m, 2h)", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Request pinning at creation; first Session association clears it", " --no-pinned Create unpinned (the UI's favorite/pin star)", " --no-associate Do not associate the new pane with the caller's Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands", "", "Outside a Session, creation pins by default, including --source agent. Inside a Session (PANE_ORCHESTRATION_SESSION_ID), children default to unpinned to avoid duplicating them in the global pinned list. First Session association clears the creation pin, including --pinned; use panes pin afterward to pin an associated child."];
|
|
2276
|
+
readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor|opencode|pi> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --from-json <path|-> [--yes] [--json]", "", "Creates a Pane in a saved repository and opens a terminal-backed tool tab. Create one only when the work's branch has no Pane yet; for existing work use `runpane panels create --pane <id>`.", "", "A long or multi-line prompt is never typed into the shell: on bash, zsh or sh the agent launches with `\"$(cat '<prompt file>')\"` reading a private copy under `<pane-dir>/prompts/<pane-id>/`; on PowerShell, cmd, fish or WSL the prompt is pasted into the agent's composer once it is ready.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Pane/session name", " --worktree-name <name> Worktree directory name, cut to 100 characters at a word; defaults to --name", " --branch <name> Exact new branch name (slashes kept); must not exist; defaults to the worktree name", " --base-branch <ref> Ref to branch from; --base is an alias", " --agent <codex|claude|cursor|opencode|pi> Built-in terminal template; with --tool-command, the agent it runs", " --tool-command <command> Custom terminal command", " --title <title> Terminal tab title", " --initial-input <text> Text sent after the command is ready", " --prompt <text> Alias for --initial-input", " --initial-input-file <path|-> Read initial input from a file or stdin", " --as-file-pointer Send `Read and follow <prompt file>` instead of the prompt", " --attach <file> Copy a file beside the prompt file and list it; repeatable", " --expect-report Expect a `runpane report` even for --source user work (the default otherwise)", " --no-expect-report Fire-and-forget: no agent.report.missing if the agent ends without reporting", " --wait Block until this panel reports, misses its report, waits on a prompt, or exits;", " print one JSON line (exit 0 report, 3 missing, 4 blocked, 5 exited, 124 timeout)", " --timeout <duration> With --wait: give up after this long (30m, 2h)", " --prompt-file <path|-> Alias for --initial-input-file", " --from-json <path|-> Read a full request payload", " --timeout-ms <milliseconds> Pane creation timeout", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt", " --ready-timeout-ms <ms> Readiness wait timeout; defaults to 30000", " --concurrency <count> Accepted; creation is currently serialized", " --source <user|agent> Mark mutation source; agent implies background creation", " --no-focus Create in the background without stealing focus", " --focus Explicitly focus the created pane", " --pinned Request pinning at creation; first Session association clears it", " --no-pinned Create unpinned (the UI's favorite/pin star)", " --no-associate Do not associate the new pane with the caller's Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without creating panes", " --yes Skip confirmation for mutating commands", "", "Outside a Session, creation pins by default, including --source agent. Inside a Session (PANE_ORCHESTRATION_SESSION_ID), children default to unpinned to avoid duplicating them in the global pinned list. First Session association clears the creation pin, including --pinned; use panes pin afterward to pin an associated child."];
|
|
2143
2277
|
readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor|opencode|pi> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor|opencode|pi>] [options]", "", "Adopts an existing externally managed git worktree without creating, syncing, or deleting it. Archiving only removes its worktree with `panes archive --remove-worktree`. To start new work on a named branch, use `panes create --base <ref> --branch <name>` instead of `git worktree add` plus adopt.", "", "Options: --resume <id> stages the agent resume command (built-in agents only); --launch runs the command immediately; --prompt <text> or --prompt-file <path|-> and --wait-ready require --launch; --folder <name> groups the pane; --no-pinned opts out of pinning; --no-associate skips automatic Session association; --dry-run previews.", "", "With --tool-command, --agent names the agent the command runs (a wrapper such as `agent-farm run`): Pane launches the command unchanged and treats the panel as that agent. Without --agent, Pane detects Claude Code, Codex and Cursor from the foreground process or the agent's screen, and --wait-ready waits for the detected agent's input box; a command that never shows a supported agent is not ready and nothing is typed into it."];
|
|
2144
2278
|
readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it. Add --closed to the sweep to also archive Panes whose PR closed without merging.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --closed", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
|
|
2145
2279
|
readonly "panes pin": readonly ["Usage:", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively pins a Pane using the Pane UI's favorite/pin star. Repeating the command is idempotent and never changes focus. Use --dry-run to validate and preview without mutating.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
|
|
@@ -2240,6 +2374,18 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2240
2374
|
readonly "panes resume": readonly ["Usage:", " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents", "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --pane <pane-id> Pane id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2241
2375
|
readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses the terminal tabs of a Session's chat and of every Pane in it that is not archived (Pause leaves a chat tab running: its agent keeps running, and the result says so),", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused terminal tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2242
2376
|
readonly "sessions resume": readonly ["Usage:", " runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]", "", "Restarts the paused tabs of a Session's chat and Panes in their saved conversations.", "Running tabs are left alone. An archived Session is refused; restore it first.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
|
|
2377
|
+
readonly "devices list": readonly ["Usage:", " runpane devices list [--json] [--pane-dir <path>]", "", "`runpane devices list` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices list"];
|
|
2378
|
+
readonly "devices open": readonly ["Usage:", " runpane devices open --platform <ios|android> [--device <name-or-id>] [--json] [--pane-dir <path>]", "", "`runpane devices open` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices open"];
|
|
2379
|
+
readonly "devices screenshot": readonly ["Usage:", " runpane devices screenshot [--json] [--pane-dir <path>]", "", "`runpane devices screenshot` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices screenshot"];
|
|
2380
|
+
readonly "devices act": readonly ["Usage:", " runpane devices act [--json] [--pane-dir <path>] -- <command>", "", "`runpane devices act` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices act"];
|
|
2381
|
+
readonly "devices run": readonly ["Usage:", " runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>", "", "`runpane devices run` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices run"];
|
|
2382
|
+
readonly "devices close": readonly ["Usage:", " runpane devices close [--json] [--pane-dir <path>]", "", "`runpane devices close` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices close"];
|
|
2383
|
+
readonly "devices usage": readonly ["Usage:", " runpane devices usage [--json] [--pane-dir <path>]", "", "`runpane devices usage` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices usage"];
|
|
2384
|
+
readonly "devices free": readonly ["Usage:", " runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]", "", "`runpane devices free` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices free"];
|
|
2385
|
+
readonly devices: readonly ["Usage:", " runpane devices <list|open|screenshot|act|run|close|usage|free> [options]", "", "`runpane devices` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest devices"];
|
|
2386
|
+
readonly machine: readonly ["Usage:", " python -m runpane machine <health|cleanup> [options]", "", "Shows this machine's health and frees the disk space Pane made.", "Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.", "Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.", "Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.", "Pane never deletes tier 3; machine health says how to free each one.", "", "Commands:", " python -m runpane machine health [--json] [--pane-dir <path>]", " python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"];
|
|
2387
|
+
readonly "machine health": readonly ["Usage:", "python -m runpane machine health [--json] [--pane-dir <path>]", "", "Shows free disk per volume, the memory level and its source, the Panes using the most memory,", "leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.", "", "Options:", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
|
|
2388
|
+
readonly "machine cleanup": readonly ["Usage:", "python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]", "", "Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,", "and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.", "Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.", "", "Options:", " --kind <kind> Kind of item to delete, from machine health:", " update-snapshot, migration-backup, archived-pane-folder,", " agent-temp, paused-scratch.", " --yes Delete them. Without --yes, list them and delete nothing.", " --json Print JSON output.", " --pane-dir <path> Connect to a specific Pane data directory."];
|
|
2243
2389
|
};
|
|
2244
2390
|
};
|
|
2245
2391
|
readonly docs: {
|
|
@@ -2248,8 +2394,8 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2248
2394
|
readonly npmCommands: readonly ["npx --yes runpane@latest", "npx --yes runpane@latest setup", "npx --yes runpane@latest install client", "npx --yes runpane@latest install daemon --label \"My Server\"", "pnpm dlx runpane@latest", "pnpm dlx runpane@latest install daemon --label \"My Server\"", "npm i -g runpane && runpane", "npm i -g runpane && runpane setup", "npm i -g runpane && runpane install daemon --label \"My Server\"", "pnpm add -g runpane && runpane", "pnpm add -g runpane && runpane setup", "pnpm add -g runpane && runpane install daemon --label \"My Server\"", "yarn dlx runpane@latest install daemon --label \"My Server\"", "bunx runpane@latest install daemon --label \"My Server\""];
|
|
2249
2395
|
readonly pythonCommands: readonly ["pipx run runpane", "pipx run runpane setup", "python -m pip install runpane", "runpane", "runpane setup", "python -m runpane setup", "runpane install daemon --label \"My Server\"", "pipx install runpane", "runpane", "runpane setup", "pipx run runpane install daemon --label \"My Server\"", "uvx runpane@latest", "uvx runpane@latest setup", "uvx runpane@latest install daemon --label \"My Server\"", "python -m runpane install daemon --label \"My Server\""];
|
|
2250
2396
|
readonly packageManagerNotes: readonly ["Use `pnpm dlx` for one-shot pnpm execution and `pnpm add -g` for persistent CLI installation.", "Do not document `pnpm install runpane` as the public CLI install path."];
|
|
2251
|
-
readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane repos get --repo Pane --json", "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json", "runpane repos update --repo Pane --clear run-script --yes --json", "runpane repos update --repo Pane --env '[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://api.test\"},{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json", "runpane repos rename --repo 3 --name Lev --yes --json", "runpane secrets list --json", "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes", "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json", "runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks", "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook tests against Stripe test mode.\" --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock release --name testing-account --json", "runpane lock list --json", "runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json", "runpane loops list --json", "runpane loops run --loop <loop-id> --yes --json", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents start --pane <pane-id> --agent codex --prompt \"Review the PR from this branch and report findings\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane panels last-message --panel <panel-id> --json", "runpane panels conversation --conversation <id> --source resume --json", "runpane panels close --panel <panel-id> --yes --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
|
|
2252
|
-
readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` defaults to both app and active supported CLI, with independent supervision, staging, durable status, and explicit restoration outcomes. Prerequisites, status fields/exit codes, draft handling and manual recovery are documented in [Update recovery](UPDATE_RECOVERY.md).", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` opens with Pane's intro (\"For people\" and \"For agents\", the sentence about reaching the person following the Approvals setting) and the working rules (Session, Pane, Tab, Scratch), also in `--json` as `intro` and `workspaceRules`. It then checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, every `runpane` on `PATH` against the Pane-managed CLI, and remote-daemon hints. `--fix` updates npm installs of `runpane` older than the Pane-managed CLI to its version and never removes a file. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane repos get` prints a saved repository's Project Settings. Each script shows its saved value, the fallback from the repository's config file, and the one Pane will run.", "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, clears settings with `--clear`, and adds, replaces or removes project environment variables with `--env` and `--env-remove`.", "`runpane repos rename` trims and sets a saved repository's display name, the same rename as the repository settings in the app, and returns the updated repository record.", "`runpane secrets` manages Pane secrets: named values, addressed as `<project>/<NAME>`, that every machine saved in Pane keeps a copy of. `list` shows names, times and machines only. `set` reads the value from stdin. `delete` removes one everywhere. `exec` runs a command with secrets in its environment and returns its exit code. `request` asks the person on a masked Notify card and returns only `saved` or `declined`. No command prints a value, and the MCP server has no tool that sets or reads one. These commands run on the machine itself, so `runpane workspace <machine> secrets ...` is refused; use `runpane workspace <machine> exec -- runpane secrets ...`.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.", "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. New Panes join the caller's Session automatically: the orchestrator's Session (`PANE_ORCHESTRATION_SESSION_ID`), or the open Session the calling tab's Pane belongs to; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.", "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor, OpenCode and Pi have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels close --panel <panel-id>` closes a tab exactly like closing it in Pane (a terminal tab's process stops) and never archives the Pane or touches its worktree. Only a tab an agent opened with `--source agent` can close; Pane records that opener, and `panels list` shows it as `openedBy`. It refuses, without closing, the person's tabs and every tab from before Pane recorded openers (`opened-by-user`), permanent tabs (`permanent`), an agent mid-turn or waiting for an answer (`agent-busy`), unsent composer text or unsaved editor edits (`unsent-input`), and a live tab whose input Pane cannot read, such as agents other than Claude and Codex or chat tabs (`input-unknown`). A refusal prints `{ ok: false, closed: false, refused: { code, message, next } }` and exits 1. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports `wouldClose` and any refusal without closing. `--force` closes the tab anyway, as its close button does, for a stuck tab or one the person asked to close (`forced: true`); only a permanent tab still stays.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.", "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab): the reply may answer the question or ask one. `runpane notify --took <id|Q-n> answer` records it as the answer; `--took <id|Q-n> question [--status <text>]` shows that the agent is getting more context, and `runpane notify --update <id|Q-n> --asked <text> --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. Pause leaves a chat tab running: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused terminal tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input or chat agent activity in its tabs, or the last time the person selected it; `panels list` reports each tab's `paused`. Auto-pause also stops the agent of a chat tab idle for `chatIdleReleaseMinutes` (30 by default); opening the tab or sending it a message resumes it, and it reports no `panel.paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane ask --agent <agent> --prompt \"<question>\"` asks one agent one read-only question and prints its answer, with no tab left behind: the agent's own headless mode runs once, on this machine or another one (`--machine`), in a saved repository (`--repo`, a WSL repository runs in WSL) or a Pane's worktree (`--pane`), with any model it accepts (`--model`). It can read files but not edit them or run shell commands; an agent with no such mode is refused (`ERR_ASK_UNSUPPORTED`). A missing agent, a sign-in error, an unknown model and a timeout each fail with the agent's own words and the next step. Use it for a second opinion or a question to another model; work that edits files goes to a tab.", "`runpane models` lists the models each installed agent offers, read from the agent's own list on every call, with its sign-in as the agent reports it. `--all` covers this machine, every saved machine and their WSL; `--agent` and `--search` narrow the rows. A machine that does not answer is one `unreachable` row; a list that can't be read is `list unavailable`.", "`runpane pr watch`: Register durable GitHub PR monitoring for a Pane.", "`runpane pr unwatch`: Remove a Pane’s explicit PR registration.", "`runpane pr list`: List PR registrations and stopped watches.", "`runpane autopilot status|waiting|stack` read Autopilot (experimental): its switch, run and stack, and its queue: every approval or question waiting on the person on every machine it can reach, grouped by Session, plus `offline` and `cantSee` machines. `runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next]` puts one entry on its stack; relative paths resolve against the caller's directory, and a new entry never replaces the one on screen. `runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) [--note <text>] --because <why>`, `runpane autopilot close <id> --reason <why>` and `runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>]` act on an item, on the machine that holds it, recorded \"by Autopilot\" on every device; the person can Override an answer and reopen a close. Only Autopilot may run them (`AUTOPILOT_ONLY`), and they refuse a permission prompt with `AUTOPILOT_CANNOT_ANSWER`. An item someone else already answered is refused with who did."];
|
|
2397
|
+
readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane repos get --repo Pane --json", "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json", "runpane repos update --repo Pane --clear run-script --yes --json", "runpane repos update --repo Pane --env '[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://api.test\"},{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json", "runpane repos rename --repo 3 --name Lev --yes --json", "runpane secrets list --json", "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes", "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json", "runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks", "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook tests against Stripe test mode.\" --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode|pi> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock release --name testing-account --json", "runpane lock list --json", "runpane machine health --json", "runpane machine cleanup --kind update-snapshot --json", "runpane machine cleanup --kind update-snapshot --yes --json", "runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json", "runpane loops list --json", "runpane loops run --loop <loop-id> --yes --json", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents start --pane <pane-id> --agent codex --prompt \"Review the PR from this branch and report findings\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane panels last-message --panel <panel-id> --json", "runpane panels conversation --conversation <id> --source resume --json", "runpane panels close --panel <panel-id> --yes --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
|
|
2398
|
+
readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` defaults to both app and active supported CLI, with independent supervision, staging, durable status, and explicit restoration outcomes. Prerequisites, status fields/exit codes, draft handling and manual recovery are documented in [Update recovery](UPDATE_RECOVERY.md).", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` opens with Pane's intro (\"For people\" and \"For agents\", the sentence about reaching the person following the Approvals setting) and the working rules (Session, Pane, Tab, Scratch), also in `--json` as `intro` and `workspaceRules`. It then checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, every `runpane` on `PATH` against the Pane-managed CLI, and remote-daemon hints. `--fix` updates npm installs of `runpane` older than the Pane-managed CLI to its version and never removes a file. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane repos get` prints a saved repository's Project Settings. Each script shows its saved value, the fallback from the repository's config file, and the one Pane will run.", "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, clears settings with `--clear`, and adds, replaces or removes project environment variables with `--env` and `--env-remove`.", "`runpane repos rename` trims and sets a saved repository's display name, the same rename as the repository settings in the app, and returns the updated repository record.", "`runpane secrets` manages Pane secrets: named values, addressed as `<project>/<NAME>`, that every machine saved in Pane keeps a copy of. `list` shows names, times and machines only. `set` reads the value from stdin. `delete` removes one everywhere. `exec` runs a command with secrets in its environment and returns its exit code. `request` asks the person on a masked Notify card and returns only `saved` or `declined`. No command prints a value, and the MCP server has no tool that sets or reads one. These commands run on the machine itself, so `runpane workspace <machine> secrets ...` is refused; use `runpane workspace <machine> exec -- runpane secrets ...`.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.", "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. New Panes join the caller's Session automatically: the orchestrator's Session (`PANE_ORCHESTRATION_SESSION_ID`), or the open Session the calling tab's Pane belongs to; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.", "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor, OpenCode and Pi have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels close --panel <panel-id>` closes a tab exactly like closing it in Pane (a terminal tab's process stops) and never archives the Pane or touches its worktree. Only a tab an agent opened with `--source agent` can close; Pane records that opener, and `panels list` shows it as `openedBy`. It refuses, without closing, the person's tabs and every tab from before Pane recorded openers (`opened-by-user`), permanent tabs (`permanent`), an agent mid-turn or waiting for an answer (`agent-busy`), unsent composer text or unsaved editor edits (`unsent-input`), and a live tab whose input Pane cannot read, such as agents other than Claude and Codex or chat tabs (`input-unknown`). A refusal prints `{ ok: false, closed: false, refused: { code, message, next } }` and exits 1. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports `wouldClose` and any refusal without closing. `--force` closes the tab anyway, as its close button does, for a stuck tab or one the person asked to close (`forced: true`); only a permanent tab still stays.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane machine health` shows this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free by tier. `runpane machine cleanup --kind <kind>` lists one kind of tier 1 or 2 item (a dry run) and deletes them with `--yes`; tier 3 items are not Pane's, so it refuses them and says how to free them. Agents free disk only through this command, never with rm.", "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.", "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab): the reply may answer the question or ask one. `runpane notify --took <id|Q-n> answer` records it as the answer; `--took <id|Q-n> question [--status <text>]` shows that the agent is getting more context, and `runpane notify --update <id|Q-n> --asked <text> --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. Pause leaves a chat tab running: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused terminal tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input or chat agent activity in its tabs, or the last time the person selected it; `panels list` reports each tab's `paused`. Auto-pause also stops the agent of a chat tab idle for `chatIdleReleaseMinutes` (30 by default); opening the tab or sending it a message resumes it, and it reports no `panel.paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane ask --agent <agent> --prompt \"<question>\"` asks one agent one read-only question and prints its answer, with no tab left behind: the agent's own headless mode runs once, on this machine or another one (`--machine`), in a saved repository (`--repo`, a WSL repository runs in WSL) or a Pane's worktree (`--pane`), with any model it accepts (`--model`). It can read files but not edit them or run shell commands; an agent with no such mode is refused (`ERR_ASK_UNSUPPORTED`). A missing agent, a sign-in error, an unknown model and a timeout each fail with the agent's own words and the next step. Use it for a second opinion or a question to another model; work that edits files goes to a tab.", "`runpane models` lists the models each installed agent offers, read from the agent's own list on every call, with its sign-in as the agent reports it. `--all` covers this machine, every saved machine and their WSL; `--agent` and `--search` narrow the rows. A machine that does not answer is one `unreachable` row; a list that can't be read is `list unavailable`.", "`runpane pr watch`: Register durable GitHub PR monitoring for a Pane.", "`runpane pr unwatch`: Remove a Pane’s explicit PR registration.", "`runpane pr list`: List PR registrations and stopped watches.", "`runpane autopilot status|waiting|stack` read Autopilot (experimental): its switch, run and stack, and its queue: every approval or question waiting on the person on every machine it can reach, grouped by Session, plus `offline` and `cantSee` machines. `runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next]` puts one entry on its stack; relative paths resolve against the caller's directory, and a new entry never replaces the one on screen. `runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) [--note <text>] --because <why>`, `runpane autopilot close <id> --reason <why>` and `runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>]` act on an item, on the machine that holds it, recorded \"by Autopilot\" on every device; the person can Override an answer and reopen a close. Only Autopilot may run them (`AUTOPILOT_ONLY`), and they refuse a permission prompt with `AUTOPILOT_CANNOT_ANSWER`. An item someone else already answered is refused with who did."];
|
|
2253
2399
|
readonly wrapperFlagNote: "The top-level `runpane --version` form prints the wrapper version. The install subcommand form `runpane install --version vX.Y.Z` selects a Pane release.";
|
|
2254
2400
|
readonly localControlFlagNote: "`runpane doctor --json`, `runpane repos list`, `runpane panes ...`, and `runpane panels ...` commands use or describe the local framed daemon socket/pipe for a running Pane app. `--pane-dir` points the wrapper at a non-default Pane data directory, such as `PANE_DIR=~/.pane_test` in development. `runpane agent-context` is local/offline and can be used before Pane is running. `agent-context` and `version` accept and ignore `--pane-dir`, so one `--pane-dir` can be passed to every runpane command. In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`. From WSL, if the user runs Windows Pane, use Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane`), which reaches the Windows named-pipe daemon through WSL interop; older Pane builds need `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane ...'`.";
|
|
2255
2401
|
readonly daemonFlagNote: "Unknown daemon flags should be forwarded rather than dropped so newer Pane versions can extend `--remote-setup` without requiring an immediate wrapper release. Unknown flags for non-daemon commands should fail clearly.";
|
|
@@ -2257,7 +2403,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
2257
2403
|
readonly publishingCredentials: readonly ["Local implementation, build, and dry-run validation do not need npm or PyPI API tokens.", "Release publishing should prefer npm Trusted Publishing and PyPI Trusted Publishing from GitHub Actions.", "Fallback `NPM_TOKEN` or `PYPI_API_TOKEN` credentials may be used for first package reservation or manual publication only. They must be supplied through local environment variables or GitHub Actions secrets, never committed, and revoked or rotated after use."];
|
|
2258
2404
|
};
|
|
2259
2405
|
readonly testFixtures: {
|
|
2260
|
-
readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--heartbeat", "60s", "--idle-after", "600000", "--ready-settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--expire-after", "10800000", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"], readonly ["watch", "--follow", "--json", "--pane-dir", "/tmp/pane"], readonly ["watch", "--follow"], readonly ["watch", "--session", "__orchestration_session_1b4e28ba-2fa1-11d2-883f-0016d3cca427__", "--follow", "--json", "--kinds", "agent.ready,agent.blocked,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged", "--ready-settle", "180000"], readonly ["watch", "--session=Release train", "--as", "release-watch", "--exclude-pane", "pane-old"], readonly ["agent-context", "--command", "panes create", "--json", "--pane-dir", "/tmp/pane"], readonly ["agent-context", "--pane-dir=/tmp/pane"], readonly ["version", "--pane-dir", "/tmp/pane"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--agent", "claude", "--base-branch", "origin/release", "--source", "agent", "--no-focus", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--tool-command", "wrapper codex-run", "--wait-ready", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "farm", "--tool-command", "agent-farm run free-range", "--agent", "claude", "--prompt", "Plan", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "brief.md", "--as-file-pointer", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "long", "--agent", "claude", "--initial-input-file", "brief.md", "--as-file-pointer", "--dry-run", "--yes", "--json"], readonly ["report", "--state", "ready", "--pr", "747", "--head", "FC5DCE9", "--summary", "Done: tests pass", "--json"], readonly ["report", "--state", "blocked", "--question", "Which API version?", "--pane", "session-1", "--panel", "panel-1", "--summary-file", "-"], readonly ["report", "--state=done", "--summary-file=/tmp/report.md", "--pane-dir", "/tmp/pane"], readonly ["panels", "resume", "--all-stopped", "--wait-ready", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "resume", "--panel", "panel-1", "--wait-ready", "--ready-timeout-ms", "45000", "--yes", "--json"], readonly ["panels", "last-message", "--panel", "panel-1", "--limit", "5000", "--json"], readonly ["panels", "conversation", "--conversation", "0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44", "--source", "resume", "--panel", "panel-1", "--pane", "session-1", "--json"], readonly ["panels", "conversation", "--conversation=abc", "--source=compact", "--pane-dir", "/tmp/pane"], readonly ["panels", "conversation", "--hook"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--base", "release/foo", "--branch", "agents/w5a", "--agent", "claude", "--prompt-file", "prompt.md", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5b", "--base-branch", "origin/main", "--branch", "agents/w5b", "--worktree-name", "w5b-dir", "--tool-command", "bash", "--initial-input-file", "-", "--dry-run", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--remove-worktree", "--yes", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--dry-run", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--remove-worktree", "--yes"], readonly ["lock", "acquire", "--name", "testing-account", "--ttl", "30m", "--wait", "1800000", "--note", "call QA", "--json"], readonly ["lock", "acquire", "--name", "staging-db", "--ttl", "1500", "--pane", "session-1", "--panel", "panel-1", "--pane-dir", "/tmp/pane"], readonly ["lock", "acquire", "--name=db", "--ttl=2h"], readonly ["lock", "release", "--name", "testing-account", "--force", "--session", "Release QA", "--json"], readonly ["lock", "list", "--session", "Release QA", "--json"], readonly ["lock", "--help"], readonly ["panels", "open", "--pane", "session-1", "--file", "plan.html", "--title", "Plan", "--split", "--no-focus", "--source", "agent", "--yes", "--json"], readonly ["panels", "open", "--url", "http://localhost:3000", "--tab", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "correction", "--interrupt", "--yes", "--json"], readonly ["repos", "get", "--repo", "Pane", "--json"], readonly ["repos", "update", "--repo", "Pane", "--build-script", "pnpm install", "--run-script", "pnpm dev", "--worktree-folder", "../wt", "--clear", "archive-script,system-prompt", "--yes", "--dry-run", "--json"], readonly ["watch", "--as", "orch", "--until-event", "--json", "--kinds", "agent.report,agent.blocked,panel.exited,pane.gone", "--timeout-ms", "600000"], readonly ["pr", "watch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "unwatch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "list", "--pane", "worker"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "0"], readonly ["watch", "--until-event", "--timeout-ms", "30s"], readonly ["watch", "--timeout-ms", "off"], readonly ["watch", "--since", "42", "--epoch", "test-epoch", "--until-event", "--json"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "off"], readonly ["watch", "--follow", "--ready-settle", "5s", "--blocked-settle", "2s", "--min-interval", "1m", "--idle-after", "20m", "--expire-after", "off", "--heartbeat", "30s"], readonly ["watch", "--follow", "--since", "42", "--epoch", "test-epoch"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "go", "--expect-report", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "claude", "--expect-report", "--yes"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "codex", "--expect-report", "--yes"], readonly ["inbox", "--session", "Release", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "in-5e6f7a8b", "--session", "Release", "--json"], readonly ["inbox", "ack", "--all", "--session", "Release"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "fyi", "--no-expect-report", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "prompt.md", "--as-file-pointer", "--wait", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "Red", "--wait", "--timeout", "30m", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "claude", "--prompt-file", "task.md", "--wait", "--yes"], readonly ["lock", "acquire", "--name", "deploy", "--wait", "5000"], readonly ["loops", "create", "--repo", "active", "--name", "nightly", "--cron", "0 3 * * *", "--agent", "claude", "--prompt", "Sweep bugs", "--worktree-name", "nightly-sweep", "--paused", "--dry-run", "--yes", "--json"], readonly ["loops", "create", "--repo=2", "--name=deps", "--cron=0 9 * * 1", "--tool-command", "./scripts/nightly-report.sh", "--prompt-file", "-"], readonly ["loops", "create", "--session", "new", "--name", "triage", "--cron", "0 9 * * 1-5", "--agent", "claude", "--prompt", "Triage", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--cron", "0 4 * * *", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--session", "Nightly", "--yes"], readonly ["loops", "run", "--loop=loop-1", "--yes", "--json"], readonly ["loops", "pause", "--loop", "loop-1", "--pane-dir", "/tmp/pane"], readonly ["loops", "list", "--json"], readonly ["loops", "--help"], readonly ["notify", "--ui", "options", "--title", "Ship it?", "--context", "Tests pass.", "--choices=[{\"label\":\"Yes\",\"recommended\":true},{\"label\":\"No\"}]", "--json"], readonly ["notify", "--ui=approve", "--title=Drop the table?", "--detail=DROP TABLE t;", "--detail-label=Show the SQL", "--pane-dir", "/tmp/pane"], readonly ["notify", "--ui", "ask", "--title", "Which branch?", "--suggestions=[\"main\"]"], readonly ["notify", "--ui", "info", "--title", "Done", "--action={\"label\":\"Open\",\"url\":\"https://example.com\"}"], readonly ["notify", "--ui", "approve", "--title", "Ship the notes?", "--links=[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR\",\"url\":\"https://example.com/pr/1\"}]"], readonly ["notify", "--resume", "n-1", "--json"], readonly ["secrets", "list", "--project", "stripe", "--json"], readonly ["secrets", "set", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes"], readonly ["secrets", "delete", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes", "--json"], readonly ["secrets", "exec", "--project", "stripe", "--only", "A,B", "--env", "KEY=STRIPE_SECRET_KEY", "--env=TOKEN=GH_TOKEN", "--file", "CERT", "--", "node", "-e", "run()", "--json"], readonly ["secrets", "exec", "--project", "qa", "sh", "-c", "echo ok"], readonly ["secrets", "request", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--title", "Stripe test key", "--reason", "- for the webhook tests", "--json"], readonly ["repos", "update", "--repo", "Pane", "--env", "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]", "--env-remove", "OLD,STALE", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--dry-run", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--source", "agent", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "close", "--panel", "panel-1", "--force", "--yes", "--json"], readonly ["panes", "archive", "--session", "session-a", "--merged", "--closed", "--dry-run", "--json"], readonly ["autopilot", "status", "--json"], readonly ["autopilot", "waiting"], readonly ["autopilot", "stack", "--json"], readonly ["autopilot", "stack", "push", "--item", "n-1", "--note", "Needs a go", "--next", "--json"], readonly ["autopilot", "stack", "push", "--file", "/tmp/plan.html", "--title", "Plan", "--tab", "https://localhost:5173", "--tab=/tmp/notes.md"], readonly ["autopilot", "stack", "push", "--session", "Release"], readonly ["watch", "--as", "autopilot", "--kinds", "item.created,item.answered,session.created,session.archived,orchestrator.turn_ended", "--until-event", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "--decision", "D-147", "--json"], readonly ["notify", "--relays", "in-1a2b3c4d", "--ui", "ask", "--title", "Q-39: Run it?"], readonly ["notify", "--ui", "ask", "--title", "Which?", "--about-session=Release", "--json"], readonly ["autopilot", "answer", "n-1", "--choice", "Yes", "--note", "Go", "--because", "D-22", "--json"], readonly ["autopilot", "answer", "n-1", "--approve", "--because=The person said so"], readonly ["autopilot", "answer", "n-1", "--deny", "--because", "D-23"], readonly ["autopilot", "answer", "n-1", "--text", "main", "--because", "D-24"], readonly ["autopilot", "close", "n-1", "--reason", "The PR merged", "--json"], readonly ["autopilot", "rewrite", "n-1", "--ui", "options", "--title", "Q-3: Which?", "--context", "Why", "--choices=[{\"label\":\"A\"}]", "--links=[{\"label\":\"Notes\",\"url\":\"https://example.com\"}]", "--json"], readonly ["notify", "--took", "Q-20", "answer", "--json"], readonly ["notify", "--took=n-1", "question", "--status", "Checking the logs", "--json"], readonly ["notify", "--took", "Q-20", "--took-as", "answer"], readonly ["notify", "--update", "Q-20", "--asked", "Can it be undone?", "--what-changed", "- Added: it can be undone", "--questions", "[{\"title\":\"A\",\"choices\":[{\"label\":\"x\"}]},{\"title\":\"B\",\"choices\":[{\"label\":\"y\"}]}]", "--json"], readonly ["link", "https://runpane.net/pair#s=secret&c=k7xq2m4n8p3r5t6v&n=parsa-devbox", "--yes", "--json"]];
|
|
2406
|
+
readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--heartbeat", "60s", "--idle-after", "600000", "--ready-settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--expire-after", "10800000", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"], readonly ["watch", "--follow", "--json", "--pane-dir", "/tmp/pane"], readonly ["watch", "--follow"], readonly ["watch", "--session", "__orchestration_session_1b4e28ba-2fa1-11d2-883f-0016d3cca427__", "--follow", "--json", "--kinds", "agent.ready,agent.blocked,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged", "--ready-settle", "180000"], readonly ["watch", "--session=Release train", "--as", "release-watch", "--exclude-pane", "pane-old"], readonly ["agent-context", "--command", "panes create", "--json", "--pane-dir", "/tmp/pane"], readonly ["agent-context", "--pane-dir=/tmp/pane"], readonly ["version", "--pane-dir", "/tmp/pane"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--agent", "claude", "--base-branch", "origin/release", "--source", "agent", "--no-focus", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--tool-command", "wrapper codex-run", "--wait-ready", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "farm", "--tool-command", "agent-farm run free-range", "--agent", "claude", "--prompt", "Plan", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "brief.md", "--as-file-pointer", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "long", "--agent", "claude", "--initial-input-file", "brief.md", "--as-file-pointer", "--dry-run", "--yes", "--json"], readonly ["report", "--state", "ready", "--pr", "747", "--head", "FC5DCE9", "--summary", "Done: tests pass", "--json"], readonly ["report", "--state", "blocked", "--question", "Which API version?", "--pane", "session-1", "--panel", "panel-1", "--summary-file", "-"], readonly ["report", "--state=done", "--summary-file=/tmp/report.md", "--pane-dir", "/tmp/pane"], readonly ["panels", "resume", "--all-stopped", "--wait-ready", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "resume", "--panel", "panel-1", "--wait-ready", "--ready-timeout-ms", "45000", "--yes", "--json"], readonly ["panels", "last-message", "--panel", "panel-1", "--limit", "5000", "--json"], readonly ["panels", "conversation", "--conversation", "0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44", "--source", "resume", "--panel", "panel-1", "--pane", "session-1", "--json"], readonly ["panels", "conversation", "--conversation=abc", "--source=compact", "--pane-dir", "/tmp/pane"], readonly ["panels", "conversation", "--hook"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--base", "release/foo", "--branch", "agents/w5a", "--agent", "claude", "--prompt-file", "prompt.md", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5b", "--base-branch", "origin/main", "--branch", "agents/w5b", "--worktree-name", "w5b-dir", "--tool-command", "bash", "--initial-input-file", "-", "--dry-run", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--remove-worktree", "--yes", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--dry-run", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--remove-worktree", "--yes"], readonly ["lock", "acquire", "--name", "testing-account", "--ttl", "30m", "--wait", "1800000", "--note", "call QA", "--json"], readonly ["lock", "acquire", "--name", "staging-db", "--ttl", "1500", "--pane", "session-1", "--panel", "panel-1", "--pane-dir", "/tmp/pane"], readonly ["lock", "acquire", "--name=db", "--ttl=2h"], readonly ["lock", "release", "--name", "testing-account", "--force", "--session", "Release QA", "--json"], readonly ["lock", "list", "--session", "Release QA", "--json"], readonly ["lock", "--help"], readonly ["panels", "open", "--pane", "session-1", "--file", "plan.html", "--title", "Plan", "--split", "--no-focus", "--source", "agent", "--yes", "--json"], readonly ["panels", "open", "--url", "http://localhost:3000", "--tab", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "correction", "--interrupt", "--yes", "--json"], readonly ["repos", "get", "--repo", "Pane", "--json"], readonly ["repos", "update", "--repo", "Pane", "--build-script", "pnpm install", "--run-script", "pnpm dev", "--worktree-folder", "../wt", "--clear", "archive-script,system-prompt", "--yes", "--dry-run", "--json"], readonly ["watch", "--as", "orch", "--until-event", "--json", "--kinds", "agent.report,agent.blocked,panel.exited,pane.gone", "--timeout-ms", "600000"], readonly ["pr", "watch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "unwatch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "list", "--pane", "worker"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "0"], readonly ["watch", "--until-event", "--timeout-ms", "30s"], readonly ["watch", "--timeout-ms", "off"], readonly ["watch", "--since", "42", "--epoch", "test-epoch", "--until-event", "--json"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "off"], readonly ["watch", "--follow", "--ready-settle", "5s", "--blocked-settle", "2s", "--min-interval", "1m", "--idle-after", "20m", "--expire-after", "off", "--heartbeat", "30s"], readonly ["watch", "--follow", "--since", "42", "--epoch", "test-epoch"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "go", "--expect-report", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "claude", "--expect-report", "--yes"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "codex", "--expect-report", "--yes"], readonly ["inbox", "--session", "Release", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "in-5e6f7a8b", "--session", "Release", "--json"], readonly ["inbox", "ack", "--all", "--session", "Release"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "fyi", "--no-expect-report", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "prompt.md", "--as-file-pointer", "--wait", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "Red", "--wait", "--timeout", "30m", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "claude", "--prompt-file", "task.md", "--wait", "--yes"], readonly ["lock", "acquire", "--name", "deploy", "--wait", "5000"], readonly ["loops", "create", "--repo", "active", "--name", "nightly", "--cron", "0 3 * * *", "--agent", "claude", "--prompt", "Sweep bugs", "--worktree-name", "nightly-sweep", "--paused", "--dry-run", "--yes", "--json"], readonly ["loops", "create", "--repo=2", "--name=deps", "--cron=0 9 * * 1", "--tool-command", "./scripts/nightly-report.sh", "--prompt-file", "-"], readonly ["loops", "create", "--session", "new", "--name", "triage", "--cron", "0 9 * * 1-5", "--agent", "claude", "--prompt", "Triage", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--cron", "0 4 * * *", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--session", "Nightly", "--yes"], readonly ["loops", "run", "--loop=loop-1", "--yes", "--json"], readonly ["loops", "pause", "--loop", "loop-1", "--pane-dir", "/tmp/pane"], readonly ["loops", "list", "--json"], readonly ["loops", "--help"], readonly ["notify", "--ui", "options", "--title", "Ship it?", "--context", "Tests pass.", "--choices=[{\"label\":\"Yes\",\"recommended\":true},{\"label\":\"No\"}]", "--json"], readonly ["notify", "--ui=approve", "--title=Drop the table?", "--detail=DROP TABLE t;", "--detail-label=Show the SQL", "--pane-dir", "/tmp/pane"], readonly ["notify", "--ui", "ask", "--title", "Which branch?", "--suggestions=[\"main\"]"], readonly ["notify", "--ui", "info", "--title", "Done", "--action={\"label\":\"Open\",\"url\":\"https://example.com\"}"], readonly ["notify", "--ui", "approve", "--title", "Ship the notes?", "--links=[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR\",\"url\":\"https://example.com/pr/1\"}]"], readonly ["notify", "--resume", "n-1", "--json"], readonly ["secrets", "list", "--project", "stripe", "--json"], readonly ["secrets", "set", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes"], readonly ["secrets", "delete", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes", "--json"], readonly ["secrets", "exec", "--project", "stripe", "--only", "A,B", "--env", "KEY=STRIPE_SECRET_KEY", "--env=TOKEN=GH_TOKEN", "--file", "CERT", "--", "node", "-e", "run()", "--json"], readonly ["secrets", "exec", "--project", "qa", "sh", "-c", "echo ok"], readonly ["secrets", "request", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--title", "Stripe test key", "--reason", "- for the webhook tests", "--json"], readonly ["repos", "update", "--repo", "Pane", "--env", "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]", "--env-remove", "OLD,STALE", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--dry-run", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--source", "agent", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "close", "--panel", "panel-1", "--force", "--yes", "--json"], readonly ["panes", "archive", "--session", "session-a", "--merged", "--closed", "--dry-run", "--json"], readonly ["autopilot", "status", "--json"], readonly ["autopilot", "waiting"], readonly ["autopilot", "stack", "--json"], readonly ["autopilot", "stack", "push", "--item", "n-1", "--note", "Needs a go", "--next", "--json"], readonly ["autopilot", "stack", "push", "--file", "/tmp/plan.html", "--title", "Plan", "--tab", "https://localhost:5173", "--tab=/tmp/notes.md"], readonly ["autopilot", "stack", "push", "--session", "Release"], readonly ["watch", "--as", "autopilot", "--kinds", "item.created,item.answered,session.created,session.archived,orchestrator.turn_ended", "--until-event", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "--decision", "D-147", "--json"], readonly ["notify", "--relays", "in-1a2b3c4d", "--ui", "ask", "--title", "Q-39: Run it?"], readonly ["notify", "--ui", "ask", "--title", "Which?", "--about-session=Release", "--json"], readonly ["autopilot", "answer", "n-1", "--choice", "Yes", "--note", "Go", "--because", "D-22", "--json"], readonly ["autopilot", "answer", "n-1", "--approve", "--because=The person said so"], readonly ["autopilot", "answer", "n-1", "--deny", "--because", "D-23"], readonly ["autopilot", "answer", "n-1", "--text", "main", "--because", "D-24"], readonly ["autopilot", "close", "n-1", "--reason", "The PR merged", "--json"], readonly ["autopilot", "rewrite", "n-1", "--ui", "options", "--title", "Q-3: Which?", "--context", "Why", "--choices=[{\"label\":\"A\"}]", "--links=[{\"label\":\"Notes\",\"url\":\"https://example.com\"}]", "--json"], readonly ["notify", "--took", "Q-20", "answer", "--json"], readonly ["notify", "--took=n-1", "question", "--status", "Checking the logs", "--json"], readonly ["notify", "--took", "Q-20", "--took-as", "answer"], readonly ["notify", "--update", "Q-20", "--asked", "Can it be undone?", "--what-changed", "- Added: it can be undone", "--questions", "[{\"title\":\"A\",\"choices\":[{\"label\":\"x\"}]},{\"title\":\"B\",\"choices\":[{\"label\":\"y\"}]}]", "--json"], readonly ["link", "https://runpane.net/pair#s=secret&c=k7xq2m4n8p3r5t6v&n=parsa-devbox", "--yes", "--json"], readonly ["machine", "health", "--json"], readonly ["machine", "cleanup", "--kind", "update-snapshot", "--yes", "--json"]];
|
|
2261
2407
|
readonly topLevelHelpIncludes: readonly ["runpane setup", "runpane install", "runpane update", "runpane version", "runpane doctor", "runpane agent-context", "runpane repos list", "runpane repos add", "runpane repos rename", "runpane panes list", "runpane panes create", "runpane panes archive", "runpane panels create", "runpane panels list", "runpane panels output", "runpane panels input", "runpane agents doctor", "runpane panels screen", "runpane panels submit", "runpane panels submit-composer", "runpane panels wait", "runpane doctor --json", "runpane agent-context --json", "Agent discovery:", "Common commands:"];
|
|
2262
2408
|
readonly npmHelpIncludes: readonly ["pnpm dlx runpane@latest", "npx --yes runpane@latest", "runpane loops list"];
|
|
2263
2409
|
readonly pipHelpIncludes: readonly ["pipx run runpane", "python -m pip install runpane && python -m runpane setup", "python -m runpane loops list"];
|
|
@@ -9418,184 +9564,900 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
9418
9564
|
};
|
|
9419
9565
|
readonly additionalProperties: false;
|
|
9420
9566
|
};
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
readonly
|
|
9425
|
-
readonly
|
|
9426
|
-
|
|
9427
|
-
readonly approvals: {
|
|
9428
|
-
readonly on: "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.";
|
|
9429
|
-
readonly off: "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving.";
|
|
9567
|
+
readonly deviceSummary: {
|
|
9568
|
+
readonly type: "object";
|
|
9569
|
+
readonly required: readonly ["id", "platform", "name", "os", "machine", "state", "paneMade"];
|
|
9570
|
+
readonly properties: {
|
|
9571
|
+
readonly id: {
|
|
9572
|
+
readonly type: "string";
|
|
9430
9573
|
};
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
readonly
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9574
|
+
readonly platform: {
|
|
9575
|
+
readonly enum: readonly ["ios", "android"];
|
|
9576
|
+
};
|
|
9577
|
+
readonly name: {
|
|
9578
|
+
readonly type: "string";
|
|
9579
|
+
};
|
|
9580
|
+
readonly os: {
|
|
9581
|
+
readonly type: "string";
|
|
9582
|
+
};
|
|
9583
|
+
readonly machine: {
|
|
9584
|
+
readonly type: "string";
|
|
9585
|
+
readonly description: "The machine the device runs on.";
|
|
9586
|
+
};
|
|
9587
|
+
readonly state: {
|
|
9588
|
+
readonly enum: readonly ["booted", "shutdown"];
|
|
9589
|
+
};
|
|
9590
|
+
readonly paneMade: {
|
|
9591
|
+
readonly type: "boolean";
|
|
9592
|
+
readonly description: "Pane created this device; it erases and deletes only these.";
|
|
9593
|
+
};
|
|
9594
|
+
readonly heldBy: {
|
|
9595
|
+
readonly type: "object";
|
|
9596
|
+
readonly required: readonly ["paneId", "paneName"];
|
|
9597
|
+
readonly properties: {
|
|
9598
|
+
readonly paneId: {
|
|
9599
|
+
readonly type: "string";
|
|
9600
|
+
};
|
|
9601
|
+
readonly paneName: {
|
|
9602
|
+
readonly type: "string";
|
|
9603
|
+
};
|
|
9604
|
+
};
|
|
9605
|
+
readonly additionalProperties: false;
|
|
9438
9606
|
};
|
|
9439
9607
|
};
|
|
9608
|
+
readonly additionalProperties: false;
|
|
9440
9609
|
};
|
|
9441
|
-
readonly
|
|
9442
|
-
|
|
9443
|
-
readonly
|
|
9444
|
-
readonly
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
readonly
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
readonly arguments: readonly ["--command <command>", "--json"];
|
|
9455
|
-
}, {
|
|
9456
|
-
readonly name: "agents doctor";
|
|
9457
|
-
readonly summary: "Check whether Codex or Claude is available in the repo environment Pane will use.";
|
|
9458
|
-
readonly arguments: readonly ["--agent <codex|claude|cursor|opencode|pi>", "--repo <selector>", "--json"];
|
|
9459
|
-
}, {
|
|
9460
|
-
readonly name: "repos list";
|
|
9461
|
-
readonly summary: "List repositories saved in the running Pane app.";
|
|
9462
|
-
readonly arguments: readonly ["--json", "--pane-dir <path>"];
|
|
9463
|
-
}, {
|
|
9464
|
-
readonly name: "repos add";
|
|
9465
|
-
readonly summary: "Register an existing git repository with the running Pane app.";
|
|
9466
|
-
readonly arguments: readonly ["--path <path>", "--name <name>", "--yes", "--json", "--dry-run", "--pane-dir <path>"];
|
|
9467
|
-
}, {
|
|
9468
|
-
readonly name: "repos get";
|
|
9469
|
-
readonly summary: "Show a saved repository's Project Settings and the scripts Pane will run.";
|
|
9470
|
-
readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
|
|
9471
|
-
}, {
|
|
9472
|
-
readonly name: "repos update";
|
|
9473
|
-
readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
|
|
9474
|
-
readonly arguments: readonly ["--repo <selector>", "--build-script <script>", "--run-script <script>", "--archive-script <script>", "--worktree-folder <path>", "--env <json>", "--env-remove <name,...>", "--name <name>", "--clear <setting,...>", "--from-json <path|->", "--yes", "--dry-run", "--json"];
|
|
9475
|
-
}, {
|
|
9476
|
-
readonly name: "repos rename";
|
|
9477
|
-
readonly summary: "Rename a repository saved in the running Pane app.";
|
|
9478
|
-
readonly arguments: readonly ["--repo <selector>", "--name <name>", "--yes", "--json", "--pane-dir <path>"];
|
|
9479
|
-
}, {
|
|
9480
|
-
readonly name: "secrets list";
|
|
9481
|
-
readonly summary: "List Pane secrets: project, name, time and machine. Never a value.";
|
|
9482
|
-
readonly arguments: readonly ["--project <project>", "--json"];
|
|
9483
|
-
}, {
|
|
9484
|
-
readonly name: "secrets exec";
|
|
9485
|
-
readonly summary: "Run a command with Pane secrets in its environment.";
|
|
9486
|
-
readonly arguments: readonly ["--project <project>", "--only <name,...>", "--env <VAR=NAME>", "--file <name>", "-- <command>..."];
|
|
9487
|
-
}, {
|
|
9488
|
-
readonly name: "secrets request";
|
|
9489
|
-
readonly summary: "Ask the person for a secret on a masked card; returns saved or declined, never the value.";
|
|
9490
|
-
readonly arguments: readonly ["--project <project>", "--name <name>", "--title <text>", "--reason <text>", "--json"];
|
|
9491
|
-
}, {
|
|
9492
|
-
readonly name: "panes list";
|
|
9493
|
-
readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
|
|
9494
|
-
readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
|
|
9495
|
-
}, {
|
|
9496
|
-
readonly name: "panes cost";
|
|
9497
|
-
readonly summary: "Report estimated token cost per Pane, with per-model breakdown and cache efficiency.";
|
|
9498
|
-
readonly arguments: readonly ["--repo <selector>", "--pane <pane-id>", "--json", "--pane-dir <path>"];
|
|
9499
|
-
}, {
|
|
9500
|
-
readonly name: "panes create";
|
|
9501
|
-
readonly summary: "Create a Pane (a new worktree) only when the work's branch has no Pane yet; for review, audit, fix or QA on existing work use `panels create --pane <id>`.";
|
|
9502
|
-
readonly arguments: readonly ["--repo <selector>", "--name <name>", "--agent <codex|claude|cursor|opencode|pi>", "--tool-command <command>", "--prompt <text>", "--initial-input-file <path|->", "--from-json <path|->", "--source <user|agent>", "--pinned", "--no-pinned", "--no-associate", "--no-focus", "--focus", "--wait-ready", "--ready-timeout-ms <ms>", "--concurrency <count>", "--yes", "--json"];
|
|
9503
|
-
}, {
|
|
9504
|
-
readonly name: "panes archive";
|
|
9505
|
-
readonly summary: "Archive a Pane exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
|
|
9506
|
-
readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--closed", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
|
|
9507
|
-
}, {
|
|
9508
|
-
readonly name: "panes pin";
|
|
9509
|
-
readonly summary: "Declaratively pin a Pane (the Pane UI's favorite/pin star) without changing focus.";
|
|
9510
|
-
readonly arguments: readonly ["--pane <pane-id>", "--yes", "--dry-run", "--json"];
|
|
9511
|
-
}, {
|
|
9512
|
-
readonly name: "panes unpin";
|
|
9513
|
-
readonly summary: "Declaratively unpin a Pane (the Pane UI's favorite/pin star) without changing focus.";
|
|
9514
|
-
readonly arguments: readonly ["--pane <pane-id>", "--yes", "--dry-run", "--json"];
|
|
9515
|
-
}, {
|
|
9516
|
-
readonly name: "panes rename";
|
|
9517
|
-
readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
|
|
9518
|
-
readonly arguments: readonly ["--pane <pane-id>", "--name <new-name>", "--yes", "--dry-run", "--json"];
|
|
9519
|
-
}, {
|
|
9520
|
-
readonly name: "panes focus";
|
|
9521
|
-
readonly summary: "Raise the Pane window and select a Pane (and optionally a panel) on explicit user request.";
|
|
9522
|
-
readonly arguments: readonly ["--pane <pane-id>", "--panel <panel-id>", "--source <user|agent>", "--yes", "--json"];
|
|
9523
|
-
}, {
|
|
9524
|
-
readonly name: "panels create";
|
|
9525
|
-
readonly summary: "Open reviewer, QA, fix or helper agent tabs inside an existing Pane; they share that Pane's worktree. The default for any later agent on existing work.";
|
|
9526
|
-
readonly arguments: readonly ["--pane <pane-id>", "--agent <codex|claude|cursor|opencode|pi>", "--tool-command <command>", "--source <user|agent>", "--no-focus", "--focus", "--wait-ready", "--yes", "--json"];
|
|
9527
|
-
}, {
|
|
9528
|
-
readonly name: "panels open";
|
|
9529
|
-
readonly summary: "Show the user an HTML page, plan, report, dev server URL, or file as a tab in split view beside the agent.";
|
|
9530
|
-
readonly arguments: readonly ["--pane <pane-id>", "--url <url>", "--file <path>", "--title <title>", "--split", "--tab", "--no-focus", "--source <user|agent>", "--yes", "--json"];
|
|
9531
|
-
}, {
|
|
9532
|
-
readonly name: "panels close";
|
|
9533
|
-
readonly summary: "Close a tab an agent opened once it no longer matters; refuses the person's tabs, busy agents and unsent input.";
|
|
9534
|
-
readonly arguments: readonly ["--panel <panel-id>", "--dry-run", "--force", "--source <user|agent>", "--yes", "--json"];
|
|
9535
|
-
}, {
|
|
9536
|
-
readonly name: "panels list";
|
|
9537
|
-
readonly summary: "List tool panels inside a Pane session.";
|
|
9538
|
-
readonly arguments: readonly ["--pane <pane-id>", "--json", "--pane-dir <path>"];
|
|
9539
|
-
}, {
|
|
9540
|
-
readonly name: "panels output";
|
|
9541
|
-
readonly summary: "Read recent terminal output from a panel.";
|
|
9542
|
-
readonly arguments: readonly ["--panel <panel-id>", "--limit <count>", "--json", "--pane-dir <path>"];
|
|
9543
|
-
}, {
|
|
9544
|
-
readonly name: "panels screen";
|
|
9545
|
-
readonly summary: "Read a compact current-screen view from a terminal panel.";
|
|
9546
|
-
readonly arguments: readonly ["--panel <panel-id>", "--limit <count>", "--json", "--pane-dir <path>"];
|
|
9547
|
-
}, {
|
|
9548
|
-
readonly name: "panels input";
|
|
9549
|
-
readonly summary: "Send input bytes to a terminal panel.";
|
|
9550
|
-
readonly arguments: readonly ["--panel <panel-id>", "--text <text>", "--input-file <path|->", "--yes", "--json", "--pane-dir <path>"];
|
|
9551
|
-
}, {
|
|
9552
|
-
readonly name: "panels submit";
|
|
9553
|
-
readonly summary: "Send text plus terminal Enter to a terminal panel.";
|
|
9554
|
-
readonly arguments: readonly ["--panel <panel-id>", "--text <text>", "--input-file <path|->", "--yes", "--json", "--pane-dir <path>"];
|
|
9555
|
-
}, {
|
|
9556
|
-
readonly name: "panels submit-composer";
|
|
9557
|
-
readonly summary: "Submit an agent composer with the key for its current state.";
|
|
9558
|
-
readonly arguments: readonly ["--panel <panel-id>", "--strategy <auto|codex-ctrl-enter|enter|tab>", "--yes", "--json"];
|
|
9559
|
-
}, {
|
|
9560
|
-
readonly name: "panels wait";
|
|
9561
|
-
readonly summary: "Wait for terminal initialized, ready, idle, or text state with compact output.";
|
|
9562
|
-
readonly arguments: readonly ["--panel <panel-id>", "--for <condition>", "--contains <text>", "--timeout-ms <ms>", "--interval-ms <ms>", "--json", "--pane-dir <path>"];
|
|
9563
|
-
}, {
|
|
9564
|
-
readonly name: "panels resume";
|
|
9565
|
-
readonly summary: "Restart a stopped terminal panel in place (same panel id), resuming its agent's conversation.";
|
|
9566
|
-
readonly arguments: readonly ["--panel <panel-id>", "--session <id|name>", "--all-stopped", "--concurrency <count>", "--wait-ready", "--ready-timeout-ms <ms>", "--yes", "--json", "--pane-dir <path>"];
|
|
9567
|
-
}, {
|
|
9568
|
-
readonly name: "watch";
|
|
9569
|
-
readonly summary: "Wait for workspace events from the durable daemon journal; follow uses conservative cadence and quiet expiry by default.";
|
|
9570
|
-
readonly arguments: readonly ["--follow", "--until-event", "--session <id|name>", "--self-test", "--kinds <kind,...>", "--json"];
|
|
9571
|
-
}, {
|
|
9572
|
-
readonly name: "notify";
|
|
9573
|
-
readonly summary: "Ask the person a question wherever they are and wait for the answer; prefer it to asking in the terminal.";
|
|
9574
|
-
readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--links <json>", "--resume <id>", "--json"];
|
|
9575
|
-
}];
|
|
9576
|
-
};
|
|
9577
|
-
readonly commands: {
|
|
9578
|
-
readonly help: {
|
|
9579
|
-
readonly name: "help";
|
|
9580
|
-
readonly summary: "Show help for runpane or a specific command.";
|
|
9581
|
-
readonly details: "Use this when you need human-readable usage text for a command.";
|
|
9582
|
-
readonly requiresPaneDaemon: false;
|
|
9583
|
-
readonly mutates: false;
|
|
9584
|
-
readonly arguments: readonly [{
|
|
9585
|
-
readonly name: "command";
|
|
9586
|
-
readonly value: "<command>";
|
|
9587
|
-
readonly required: false;
|
|
9588
|
-
readonly description: "Optional command topic such as \"panes create\".";
|
|
9589
|
-
}];
|
|
9590
|
-
readonly examples: readonly ["runpane help", "runpane help panes create"];
|
|
9591
|
-
readonly notes: readonly ["Help text is generated from the runpane contract."];
|
|
9610
|
+
readonly devicesListResult: {
|
|
9611
|
+
readonly type: "object";
|
|
9612
|
+
readonly required: readonly ["ok", "devices"];
|
|
9613
|
+
readonly properties: {
|
|
9614
|
+
readonly ok: {
|
|
9615
|
+
readonly const: true;
|
|
9616
|
+
};
|
|
9617
|
+
readonly devices: {
|
|
9618
|
+
readonly type: "array";
|
|
9619
|
+
readonly items: {
|
|
9620
|
+
readonly $ref: "#/jsonSchemas/deviceSummary";
|
|
9621
|
+
};
|
|
9622
|
+
};
|
|
9592
9623
|
};
|
|
9593
|
-
readonly
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9624
|
+
readonly additionalProperties: false;
|
|
9625
|
+
};
|
|
9626
|
+
readonly devicesOpenResult: {
|
|
9627
|
+
readonly type: "object";
|
|
9628
|
+
readonly required: readonly ["ok", "device", "machine", "panelId", "paneDevice", "next"];
|
|
9629
|
+
readonly properties: {
|
|
9630
|
+
readonly ok: {
|
|
9631
|
+
readonly const: true;
|
|
9632
|
+
};
|
|
9633
|
+
readonly device: {
|
|
9634
|
+
readonly $ref: "#/jsonSchemas/deviceSummary";
|
|
9635
|
+
};
|
|
9636
|
+
readonly machine: {
|
|
9637
|
+
readonly type: "object";
|
|
9638
|
+
readonly required: readonly ["name", "reason"];
|
|
9639
|
+
readonly properties: {
|
|
9640
|
+
readonly name: {
|
|
9641
|
+
readonly type: "string";
|
|
9642
|
+
};
|
|
9643
|
+
readonly reason: {
|
|
9644
|
+
readonly type: "string";
|
|
9645
|
+
readonly description: "Why this machine runs the device.";
|
|
9646
|
+
};
|
|
9647
|
+
};
|
|
9648
|
+
readonly additionalProperties: false;
|
|
9649
|
+
};
|
|
9650
|
+
readonly panelId: {
|
|
9651
|
+
readonly type: "string";
|
|
9652
|
+
readonly description: "The device tab beside the agent.";
|
|
9653
|
+
};
|
|
9654
|
+
readonly paneDevice: {
|
|
9655
|
+
readonly type: "object";
|
|
9656
|
+
readonly description: "Marker a chat tab uses to show the device card.";
|
|
9657
|
+
readonly required: readonly ["kind", "panelId", "name", "machine"];
|
|
9658
|
+
readonly properties: {
|
|
9659
|
+
readonly kind: {
|
|
9660
|
+
readonly const: "pane-device";
|
|
9661
|
+
};
|
|
9662
|
+
readonly panelId: {
|
|
9663
|
+
readonly type: "string";
|
|
9664
|
+
};
|
|
9665
|
+
readonly name: {
|
|
9666
|
+
readonly type: "string";
|
|
9667
|
+
};
|
|
9668
|
+
readonly os: {
|
|
9669
|
+
readonly type: "string";
|
|
9670
|
+
};
|
|
9671
|
+
readonly machine: {
|
|
9672
|
+
readonly type: "string";
|
|
9673
|
+
};
|
|
9674
|
+
};
|
|
9675
|
+
readonly additionalProperties: false;
|
|
9676
|
+
};
|
|
9677
|
+
readonly next: {
|
|
9678
|
+
readonly type: "string";
|
|
9679
|
+
};
|
|
9680
|
+
};
|
|
9681
|
+
readonly additionalProperties: false;
|
|
9682
|
+
};
|
|
9683
|
+
readonly devicesScreenshotResult: {
|
|
9684
|
+
readonly type: "object";
|
|
9685
|
+
readonly required: readonly ["ok", "path", "mimeType"];
|
|
9686
|
+
readonly properties: {
|
|
9687
|
+
readonly ok: {
|
|
9688
|
+
readonly const: true;
|
|
9689
|
+
};
|
|
9690
|
+
readonly path: {
|
|
9691
|
+
readonly type: "string";
|
|
9692
|
+
readonly description: "PNG on the caller's machine.";
|
|
9693
|
+
};
|
|
9694
|
+
readonly mimeType: {
|
|
9695
|
+
readonly const: "image/png";
|
|
9696
|
+
};
|
|
9697
|
+
readonly width: {
|
|
9698
|
+
readonly type: "number";
|
|
9699
|
+
};
|
|
9700
|
+
readonly height: {
|
|
9701
|
+
readonly type: "number";
|
|
9702
|
+
};
|
|
9703
|
+
};
|
|
9704
|
+
readonly additionalProperties: false;
|
|
9705
|
+
};
|
|
9706
|
+
readonly devicesActResult: {
|
|
9707
|
+
readonly type: "object";
|
|
9708
|
+
readonly required: readonly ["ok", "exitCode", "output"];
|
|
9709
|
+
readonly properties: {
|
|
9710
|
+
readonly ok: {
|
|
9711
|
+
readonly const: true;
|
|
9712
|
+
};
|
|
9713
|
+
readonly exitCode: {
|
|
9714
|
+
readonly type: "number";
|
|
9715
|
+
readonly description: "agent-device's exit code.";
|
|
9716
|
+
};
|
|
9717
|
+
readonly output: {
|
|
9718
|
+
readonly type: "string";
|
|
9719
|
+
readonly description: "agent-device's output.";
|
|
9720
|
+
};
|
|
9721
|
+
};
|
|
9722
|
+
readonly additionalProperties: false;
|
|
9723
|
+
};
|
|
9724
|
+
readonly devicesRunResult: {
|
|
9725
|
+
readonly type: "object";
|
|
9726
|
+
readonly required: readonly ["ok"];
|
|
9727
|
+
readonly properties: {
|
|
9728
|
+
readonly ok: {
|
|
9729
|
+
readonly const: true;
|
|
9730
|
+
};
|
|
9731
|
+
readonly synced: {
|
|
9732
|
+
readonly type: "boolean";
|
|
9733
|
+
};
|
|
9734
|
+
readonly cwd: {
|
|
9735
|
+
readonly type: "string";
|
|
9736
|
+
readonly description: "Where the command ran: the worktree, or Pane's synced checkout on a linked Mac.";
|
|
9737
|
+
};
|
|
9738
|
+
readonly machine: {
|
|
9739
|
+
readonly type: "string";
|
|
9740
|
+
};
|
|
9741
|
+
readonly jobId: {
|
|
9742
|
+
readonly type: "string";
|
|
9743
|
+
};
|
|
9744
|
+
readonly state: {
|
|
9745
|
+
readonly enum: readonly ["running", "exited"];
|
|
9746
|
+
};
|
|
9747
|
+
readonly exitCode: {
|
|
9748
|
+
readonly type: "number";
|
|
9749
|
+
};
|
|
9750
|
+
readonly logTail: {
|
|
9751
|
+
readonly type: "string";
|
|
9752
|
+
};
|
|
9753
|
+
};
|
|
9754
|
+
readonly additionalProperties: false;
|
|
9755
|
+
};
|
|
9756
|
+
readonly devicesCloseResult: {
|
|
9757
|
+
readonly type: "object";
|
|
9758
|
+
readonly required: readonly ["ok", "closed", "jobsStopped"];
|
|
9759
|
+
readonly properties: {
|
|
9760
|
+
readonly ok: {
|
|
9761
|
+
readonly const: true;
|
|
9762
|
+
};
|
|
9763
|
+
readonly closed: {
|
|
9764
|
+
readonly type: "array";
|
|
9765
|
+
readonly items: {
|
|
9766
|
+
readonly type: "string";
|
|
9767
|
+
};
|
|
9768
|
+
};
|
|
9769
|
+
readonly jobsStopped: {
|
|
9770
|
+
readonly type: "number";
|
|
9771
|
+
};
|
|
9772
|
+
};
|
|
9773
|
+
readonly additionalProperties: false;
|
|
9774
|
+
};
|
|
9775
|
+
readonly devicesUsageResult: {
|
|
9776
|
+
readonly type: "object";
|
|
9777
|
+
readonly required: readonly ["ok", "machines"];
|
|
9778
|
+
readonly properties: {
|
|
9779
|
+
readonly ok: {
|
|
9780
|
+
readonly const: true;
|
|
9781
|
+
};
|
|
9782
|
+
readonly machines: {
|
|
9783
|
+
readonly type: "array";
|
|
9784
|
+
readonly items: {
|
|
9785
|
+
readonly type: "object";
|
|
9786
|
+
readonly required: readonly ["machine", "devices", "helpers", "checkouts", "runtimes", "slimSim"];
|
|
9787
|
+
readonly properties: {
|
|
9788
|
+
readonly machine: {
|
|
9789
|
+
readonly type: "string";
|
|
9790
|
+
};
|
|
9791
|
+
readonly devices: {
|
|
9792
|
+
readonly type: "array";
|
|
9793
|
+
readonly items: {
|
|
9794
|
+
readonly type: "object";
|
|
9795
|
+
readonly required: readonly ["id", "platform", "name", "os", "paneMade", "booted"];
|
|
9796
|
+
readonly properties: {
|
|
9797
|
+
readonly id: {
|
|
9798
|
+
readonly type: "string";
|
|
9799
|
+
};
|
|
9800
|
+
readonly platform: {
|
|
9801
|
+
readonly enum: readonly ["ios", "android"];
|
|
9802
|
+
};
|
|
9803
|
+
readonly name: {
|
|
9804
|
+
readonly type: "string";
|
|
9805
|
+
};
|
|
9806
|
+
readonly os: {
|
|
9807
|
+
readonly type: "string";
|
|
9808
|
+
readonly description: "The device's OS runtime, such as iOS 27.0.";
|
|
9809
|
+
};
|
|
9810
|
+
readonly paneMade: {
|
|
9811
|
+
readonly type: "boolean";
|
|
9812
|
+
readonly description: "Pane made it; false for simulators made outside Pane.";
|
|
9813
|
+
};
|
|
9814
|
+
readonly booted: {
|
|
9815
|
+
readonly type: "boolean";
|
|
9816
|
+
};
|
|
9817
|
+
readonly heldBy: {
|
|
9818
|
+
readonly type: "string";
|
|
9819
|
+
};
|
|
9820
|
+
readonly lastUsedAt: {
|
|
9821
|
+
readonly type: "string";
|
|
9822
|
+
};
|
|
9823
|
+
readonly memoryBytes: {
|
|
9824
|
+
readonly type: "number";
|
|
9825
|
+
};
|
|
9826
|
+
readonly diskBytes: {
|
|
9827
|
+
readonly type: "number";
|
|
9828
|
+
};
|
|
9829
|
+
};
|
|
9830
|
+
readonly additionalProperties: false;
|
|
9831
|
+
};
|
|
9832
|
+
};
|
|
9833
|
+
readonly helpers: {
|
|
9834
|
+
readonly type: "array";
|
|
9835
|
+
readonly items: {
|
|
9836
|
+
readonly type: "object";
|
|
9837
|
+
readonly required: readonly ["name", "pid", "memoryBytes"];
|
|
9838
|
+
readonly properties: {
|
|
9839
|
+
readonly name: {
|
|
9840
|
+
readonly type: "string";
|
|
9841
|
+
};
|
|
9842
|
+
readonly pid: {
|
|
9843
|
+
readonly type: "number";
|
|
9844
|
+
};
|
|
9845
|
+
readonly memoryBytes: {
|
|
9846
|
+
readonly type: "number";
|
|
9847
|
+
};
|
|
9848
|
+
};
|
|
9849
|
+
readonly additionalProperties: false;
|
|
9850
|
+
};
|
|
9851
|
+
};
|
|
9852
|
+
readonly checkouts: {
|
|
9853
|
+
readonly type: "array";
|
|
9854
|
+
readonly items: {
|
|
9855
|
+
readonly type: "object";
|
|
9856
|
+
readonly required: readonly ["path", "bytes"];
|
|
9857
|
+
readonly properties: {
|
|
9858
|
+
readonly path: {
|
|
9859
|
+
readonly type: "string";
|
|
9860
|
+
};
|
|
9861
|
+
readonly bytes: {
|
|
9862
|
+
readonly type: "number";
|
|
9863
|
+
};
|
|
9864
|
+
};
|
|
9865
|
+
readonly additionalProperties: false;
|
|
9866
|
+
};
|
|
9867
|
+
};
|
|
9868
|
+
readonly runtimes: {
|
|
9869
|
+
readonly type: "array";
|
|
9870
|
+
readonly description: "The OS runtimes and system images installed here, which devices are made from.";
|
|
9871
|
+
readonly items: {
|
|
9872
|
+
readonly type: "object";
|
|
9873
|
+
readonly required: readonly ["platform", "name"];
|
|
9874
|
+
readonly properties: {
|
|
9875
|
+
readonly platform: {
|
|
9876
|
+
readonly enum: readonly ["ios", "android"];
|
|
9877
|
+
};
|
|
9878
|
+
readonly name: {
|
|
9879
|
+
readonly type: "string";
|
|
9880
|
+
};
|
|
9881
|
+
readonly bytes: {
|
|
9882
|
+
readonly type: "number";
|
|
9883
|
+
};
|
|
9884
|
+
};
|
|
9885
|
+
readonly additionalProperties: false;
|
|
9886
|
+
};
|
|
9887
|
+
};
|
|
9888
|
+
readonly slimSim: {
|
|
9889
|
+
readonly type: "boolean";
|
|
9890
|
+
};
|
|
9891
|
+
};
|
|
9892
|
+
readonly additionalProperties: false;
|
|
9893
|
+
};
|
|
9894
|
+
};
|
|
9895
|
+
};
|
|
9896
|
+
readonly additionalProperties: false;
|
|
9897
|
+
};
|
|
9898
|
+
readonly devicesFreeResult: {
|
|
9899
|
+
readonly type: "object";
|
|
9900
|
+
readonly required: readonly ["ok", "machine", "shutdown", "deleted", "checkouts", "freedBytes"];
|
|
9901
|
+
readonly properties: {
|
|
9902
|
+
readonly ok: {
|
|
9903
|
+
readonly const: true;
|
|
9904
|
+
};
|
|
9905
|
+
readonly machine: {
|
|
9906
|
+
readonly type: "string";
|
|
9907
|
+
};
|
|
9908
|
+
readonly shutdown: {
|
|
9909
|
+
readonly type: "array";
|
|
9910
|
+
readonly items: {
|
|
9911
|
+
readonly type: "string";
|
|
9912
|
+
};
|
|
9913
|
+
};
|
|
9914
|
+
readonly deleted: {
|
|
9915
|
+
readonly type: "array";
|
|
9916
|
+
readonly items: {
|
|
9917
|
+
readonly type: "string";
|
|
9918
|
+
};
|
|
9919
|
+
};
|
|
9920
|
+
readonly checkouts: {
|
|
9921
|
+
readonly type: "array";
|
|
9922
|
+
readonly description: "Build checkouts deleted (--all): those no Pane on this machine or a linked computer holds a device for.";
|
|
9923
|
+
readonly items: {
|
|
9924
|
+
readonly type: "string";
|
|
9925
|
+
};
|
|
9926
|
+
};
|
|
9927
|
+
readonly freedBytes: {
|
|
9928
|
+
readonly type: "number";
|
|
9929
|
+
readonly description: "Disk freed by the deleted devices and checkouts.";
|
|
9930
|
+
};
|
|
9931
|
+
};
|
|
9932
|
+
readonly additionalProperties: false;
|
|
9933
|
+
};
|
|
9934
|
+
readonly reclaimItem: {
|
|
9935
|
+
readonly type: "object";
|
|
9936
|
+
readonly required: readonly ["id", "kind", "tier", "path", "sizeBytes", "modifiedAt", "sessionId", "reason"];
|
|
9937
|
+
readonly properties: {
|
|
9938
|
+
readonly id: {
|
|
9939
|
+
readonly type: "string";
|
|
9940
|
+
readonly minLength: 1;
|
|
9941
|
+
};
|
|
9942
|
+
readonly kind: {
|
|
9943
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
9944
|
+
};
|
|
9945
|
+
readonly tier: {
|
|
9946
|
+
readonly enum: readonly [1, 2, 3];
|
|
9947
|
+
};
|
|
9948
|
+
readonly path: {
|
|
9949
|
+
readonly type: "string";
|
|
9950
|
+
};
|
|
9951
|
+
readonly sizeBytes: {
|
|
9952
|
+
readonly type: "number";
|
|
9953
|
+
};
|
|
9954
|
+
readonly modifiedAt: {
|
|
9955
|
+
readonly type: "number";
|
|
9956
|
+
};
|
|
9957
|
+
readonly sessionId: {
|
|
9958
|
+
readonly type: readonly ["string", "null"];
|
|
9959
|
+
};
|
|
9960
|
+
readonly reason: {
|
|
9961
|
+
readonly type: "string";
|
|
9962
|
+
};
|
|
9963
|
+
readonly projectPath: {
|
|
9964
|
+
readonly type: "string";
|
|
9965
|
+
};
|
|
9966
|
+
readonly howToFree: {
|
|
9967
|
+
readonly type: "string";
|
|
9968
|
+
};
|
|
9969
|
+
};
|
|
9970
|
+
};
|
|
9971
|
+
readonly machineHealthResult: {
|
|
9972
|
+
readonly type: "object";
|
|
9973
|
+
readonly required: readonly ["ok", "snapshot", "inventory"];
|
|
9974
|
+
readonly properties: {
|
|
9975
|
+
readonly ok: {
|
|
9976
|
+
readonly const: true;
|
|
9977
|
+
};
|
|
9978
|
+
readonly snapshot: {
|
|
9979
|
+
readonly type: "object";
|
|
9980
|
+
readonly required: readonly ["sampledAt", "platform", "hostname", "disk", "memory", "cpuPercent", "app", "panes", "leaks"];
|
|
9981
|
+
readonly properties: {
|
|
9982
|
+
readonly sampledAt: {
|
|
9983
|
+
readonly type: "number";
|
|
9984
|
+
};
|
|
9985
|
+
readonly platform: {
|
|
9986
|
+
readonly type: "string";
|
|
9987
|
+
};
|
|
9988
|
+
readonly hostname: {
|
|
9989
|
+
readonly type: "string";
|
|
9990
|
+
};
|
|
9991
|
+
readonly disk: {
|
|
9992
|
+
readonly type: "object";
|
|
9993
|
+
readonly required: readonly ["level", "volumes"];
|
|
9994
|
+
readonly properties: {
|
|
9995
|
+
readonly level: {
|
|
9996
|
+
readonly enum: readonly ["ok", "warning", "critical"];
|
|
9997
|
+
};
|
|
9998
|
+
readonly volumes: {
|
|
9999
|
+
readonly type: "array";
|
|
10000
|
+
readonly items: {
|
|
10001
|
+
readonly type: "object";
|
|
10002
|
+
readonly required: readonly ["path", "roles", "totalBytes", "freeBytes", "level"];
|
|
10003
|
+
readonly properties: {
|
|
10004
|
+
readonly path: {
|
|
10005
|
+
readonly type: "string";
|
|
10006
|
+
};
|
|
10007
|
+
readonly roles: {
|
|
10008
|
+
readonly type: "array";
|
|
10009
|
+
readonly items: {
|
|
10010
|
+
readonly enum: readonly ["pane-data", "worktrees", "temp"];
|
|
10011
|
+
};
|
|
10012
|
+
};
|
|
10013
|
+
readonly totalBytes: {
|
|
10014
|
+
readonly type: "number";
|
|
10015
|
+
};
|
|
10016
|
+
readonly freeBytes: {
|
|
10017
|
+
readonly type: "number";
|
|
10018
|
+
};
|
|
10019
|
+
readonly level: {
|
|
10020
|
+
readonly enum: readonly ["ok", "warning", "critical"];
|
|
10021
|
+
};
|
|
10022
|
+
};
|
|
10023
|
+
};
|
|
10024
|
+
};
|
|
10025
|
+
};
|
|
10026
|
+
};
|
|
10027
|
+
readonly memory: {
|
|
10028
|
+
readonly type: "object";
|
|
10029
|
+
readonly required: readonly ["level", "source", "detail", "totalBytes", "freeBytes", "swapUsedBytes"];
|
|
10030
|
+
readonly properties: {
|
|
10031
|
+
readonly level: {
|
|
10032
|
+
readonly enum: readonly ["ok", "warning", "critical"];
|
|
10033
|
+
};
|
|
10034
|
+
readonly source: {
|
|
10035
|
+
readonly enum: readonly ["macos-pressure", "psi", "available"];
|
|
10036
|
+
};
|
|
10037
|
+
readonly detail: {
|
|
10038
|
+
readonly type: "string";
|
|
10039
|
+
};
|
|
10040
|
+
readonly totalBytes: {
|
|
10041
|
+
readonly type: "number";
|
|
10042
|
+
};
|
|
10043
|
+
readonly freeBytes: {
|
|
10044
|
+
readonly type: "number";
|
|
10045
|
+
};
|
|
10046
|
+
readonly swapUsedBytes: {
|
|
10047
|
+
readonly type: readonly ["number", "null"];
|
|
10048
|
+
};
|
|
10049
|
+
};
|
|
10050
|
+
};
|
|
10051
|
+
readonly cpuPercent: {
|
|
10052
|
+
readonly type: "number";
|
|
10053
|
+
};
|
|
10054
|
+
readonly app: {
|
|
10055
|
+
readonly type: "object";
|
|
10056
|
+
readonly required: readonly ["rssMB", "cpuPercent"];
|
|
10057
|
+
readonly properties: {
|
|
10058
|
+
readonly rssMB: {
|
|
10059
|
+
readonly type: "number";
|
|
10060
|
+
};
|
|
10061
|
+
readonly cpuPercent: {
|
|
10062
|
+
readonly type: "number";
|
|
10063
|
+
};
|
|
10064
|
+
};
|
|
10065
|
+
};
|
|
10066
|
+
readonly panes: {
|
|
10067
|
+
readonly type: "array";
|
|
10068
|
+
readonly items: {
|
|
10069
|
+
readonly type: "object";
|
|
10070
|
+
readonly required: readonly ["sessionId", "name", "rssMB", "cpuPercent", "processes"];
|
|
10071
|
+
readonly properties: {
|
|
10072
|
+
readonly sessionId: {
|
|
10073
|
+
readonly type: "string";
|
|
10074
|
+
};
|
|
10075
|
+
readonly name: {
|
|
10076
|
+
readonly type: "string";
|
|
10077
|
+
};
|
|
10078
|
+
readonly rssMB: {
|
|
10079
|
+
readonly type: "number";
|
|
10080
|
+
};
|
|
10081
|
+
readonly cpuPercent: {
|
|
10082
|
+
readonly type: "number";
|
|
10083
|
+
};
|
|
10084
|
+
readonly processes: {
|
|
10085
|
+
readonly type: "array";
|
|
10086
|
+
readonly items: {
|
|
10087
|
+
readonly type: "object";
|
|
10088
|
+
};
|
|
10089
|
+
};
|
|
10090
|
+
};
|
|
10091
|
+
};
|
|
10092
|
+
};
|
|
10093
|
+
readonly leaks: {
|
|
10094
|
+
readonly type: "array";
|
|
10095
|
+
readonly items: {
|
|
10096
|
+
readonly type: "object";
|
|
10097
|
+
readonly required: readonly ["pid", "name", "sessionId", "memoryMB", "growthMB", "windowMs"];
|
|
10098
|
+
readonly properties: {
|
|
10099
|
+
readonly pid: {
|
|
10100
|
+
readonly type: "number";
|
|
10101
|
+
};
|
|
10102
|
+
readonly started: {
|
|
10103
|
+
readonly type: "string";
|
|
10104
|
+
};
|
|
10105
|
+
readonly name: {
|
|
10106
|
+
readonly type: "string";
|
|
10107
|
+
};
|
|
10108
|
+
readonly sessionId: {
|
|
10109
|
+
readonly type: "string";
|
|
10110
|
+
};
|
|
10111
|
+
readonly panelId: {
|
|
10112
|
+
readonly type: readonly ["string", "null"];
|
|
10113
|
+
};
|
|
10114
|
+
readonly memoryMB: {
|
|
10115
|
+
readonly type: "number";
|
|
10116
|
+
};
|
|
10117
|
+
readonly growthMB: {
|
|
10118
|
+
readonly type: "number";
|
|
10119
|
+
};
|
|
10120
|
+
readonly windowMs: {
|
|
10121
|
+
readonly type: "number";
|
|
10122
|
+
};
|
|
10123
|
+
readonly series: {
|
|
10124
|
+
readonly type: "array";
|
|
10125
|
+
readonly items: {
|
|
10126
|
+
readonly type: "number";
|
|
10127
|
+
};
|
|
10128
|
+
};
|
|
10129
|
+
};
|
|
10130
|
+
};
|
|
10131
|
+
};
|
|
10132
|
+
};
|
|
10133
|
+
};
|
|
10134
|
+
readonly inventory: {
|
|
10135
|
+
readonly description: "Null until the first storage scan after Pane starts has finished.";
|
|
10136
|
+
readonly oneOf: readonly [{
|
|
10137
|
+
readonly type: "object";
|
|
10138
|
+
readonly required: readonly ["scannedAt", "durationMs", "items", "panes", "buckets"];
|
|
10139
|
+
readonly properties: {
|
|
10140
|
+
readonly scannedAt: {
|
|
10141
|
+
readonly type: "number";
|
|
10142
|
+
};
|
|
10143
|
+
readonly durationMs: {
|
|
10144
|
+
readonly type: "number";
|
|
10145
|
+
};
|
|
10146
|
+
readonly items: {
|
|
10147
|
+
readonly type: "array";
|
|
10148
|
+
readonly items: {
|
|
10149
|
+
readonly $ref: "#/jsonSchemas/reclaimItem";
|
|
10150
|
+
};
|
|
10151
|
+
};
|
|
10152
|
+
readonly panes: {
|
|
10153
|
+
readonly type: "array";
|
|
10154
|
+
readonly items: {
|
|
10155
|
+
readonly type: "object";
|
|
10156
|
+
};
|
|
10157
|
+
};
|
|
10158
|
+
readonly buckets: {
|
|
10159
|
+
readonly type: "object";
|
|
10160
|
+
};
|
|
10161
|
+
};
|
|
10162
|
+
}, {
|
|
10163
|
+
readonly type: "null";
|
|
10164
|
+
}];
|
|
10165
|
+
};
|
|
10166
|
+
};
|
|
10167
|
+
readonly additionalProperties: false;
|
|
10168
|
+
};
|
|
10169
|
+
readonly machineCleanupResult: {
|
|
10170
|
+
readonly oneOf: readonly [{
|
|
10171
|
+
readonly type: "object";
|
|
10172
|
+
readonly required: readonly ["ok", "dryRun", "kind", "items", "totalBytes"];
|
|
10173
|
+
readonly properties: {
|
|
10174
|
+
readonly ok: {
|
|
10175
|
+
readonly const: true;
|
|
10176
|
+
};
|
|
10177
|
+
readonly dryRun: {
|
|
10178
|
+
readonly const: true;
|
|
10179
|
+
};
|
|
10180
|
+
readonly kind: {
|
|
10181
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
10182
|
+
};
|
|
10183
|
+
readonly items: {
|
|
10184
|
+
readonly type: "array";
|
|
10185
|
+
readonly items: {
|
|
10186
|
+
readonly $ref: "#/jsonSchemas/reclaimItem";
|
|
10187
|
+
};
|
|
10188
|
+
};
|
|
10189
|
+
readonly totalBytes: {
|
|
10190
|
+
readonly type: "number";
|
|
10191
|
+
};
|
|
10192
|
+
readonly scanning: {
|
|
10193
|
+
readonly type: "boolean";
|
|
10194
|
+
readonly description: "True when Pane has not finished its first storage scan; items is empty. Run the dry run again in a few minutes.";
|
|
10195
|
+
};
|
|
10196
|
+
};
|
|
10197
|
+
readonly additionalProperties: false;
|
|
10198
|
+
}, {
|
|
10199
|
+
readonly type: "object";
|
|
10200
|
+
readonly required: readonly ["ok", "dryRun", "kind", "run"];
|
|
10201
|
+
readonly properties: {
|
|
10202
|
+
readonly ok: {
|
|
10203
|
+
readonly const: true;
|
|
10204
|
+
};
|
|
10205
|
+
readonly dryRun: {
|
|
10206
|
+
readonly const: false;
|
|
10207
|
+
};
|
|
10208
|
+
readonly kind: {
|
|
10209
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
10210
|
+
};
|
|
10211
|
+
readonly run: {
|
|
10212
|
+
readonly type: "object";
|
|
10213
|
+
readonly required: readonly ["at", "source", "removed", "skipped", "freedBytes"];
|
|
10214
|
+
readonly properties: {
|
|
10215
|
+
readonly at: {
|
|
10216
|
+
readonly type: "number";
|
|
10217
|
+
};
|
|
10218
|
+
readonly source: {
|
|
10219
|
+
readonly const: "cli";
|
|
10220
|
+
};
|
|
10221
|
+
readonly removed: {
|
|
10222
|
+
readonly type: "array";
|
|
10223
|
+
readonly items: {
|
|
10224
|
+
readonly type: "object";
|
|
10225
|
+
readonly required: readonly ["id", "kind", "path", "sizeBytes"];
|
|
10226
|
+
readonly properties: {
|
|
10227
|
+
readonly id: {
|
|
10228
|
+
readonly type: "string";
|
|
10229
|
+
};
|
|
10230
|
+
readonly kind: {
|
|
10231
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
10232
|
+
};
|
|
10233
|
+
readonly path: {
|
|
10234
|
+
readonly type: "string";
|
|
10235
|
+
};
|
|
10236
|
+
readonly sizeBytes: {
|
|
10237
|
+
readonly type: "number";
|
|
10238
|
+
};
|
|
10239
|
+
readonly reason: {
|
|
10240
|
+
readonly type: "string";
|
|
10241
|
+
};
|
|
10242
|
+
};
|
|
10243
|
+
};
|
|
10244
|
+
};
|
|
10245
|
+
readonly skipped: {
|
|
10246
|
+
readonly type: "array";
|
|
10247
|
+
readonly items: {
|
|
10248
|
+
readonly type: "object";
|
|
10249
|
+
readonly required: readonly ["id", "kind", "path", "sizeBytes"];
|
|
10250
|
+
readonly properties: {
|
|
10251
|
+
readonly id: {
|
|
10252
|
+
readonly type: "string";
|
|
10253
|
+
};
|
|
10254
|
+
readonly kind: {
|
|
10255
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
10256
|
+
};
|
|
10257
|
+
readonly path: {
|
|
10258
|
+
readonly type: "string";
|
|
10259
|
+
};
|
|
10260
|
+
readonly sizeBytes: {
|
|
10261
|
+
readonly type: "number";
|
|
10262
|
+
};
|
|
10263
|
+
readonly reason: {
|
|
10264
|
+
readonly type: "string";
|
|
10265
|
+
};
|
|
10266
|
+
};
|
|
10267
|
+
};
|
|
10268
|
+
};
|
|
10269
|
+
readonly freedBytes: {
|
|
10270
|
+
readonly type: "number";
|
|
10271
|
+
};
|
|
10272
|
+
readonly deleting: {
|
|
10273
|
+
readonly type: "boolean";
|
|
10274
|
+
readonly description: "True while removed items are still being deleted in the background; freedBytes is 0 until they are.";
|
|
10275
|
+
};
|
|
10276
|
+
};
|
|
10277
|
+
readonly additionalProperties: false;
|
|
10278
|
+
};
|
|
10279
|
+
};
|
|
10280
|
+
readonly additionalProperties: false;
|
|
10281
|
+
}];
|
|
10282
|
+
};
|
|
10283
|
+
};
|
|
10284
|
+
readonly agentContext: {
|
|
10285
|
+
readonly intro: {
|
|
10286
|
+
readonly humans: {
|
|
10287
|
+
readonly title: "For people";
|
|
10288
|
+
readonly sentences: readonly ["Open a Session for each workstream and tell its agent what you want, in plain words.", "It plans the work, starts a Pane for each feature, and runs the builders, reviewers and QA as tabs inside them, so you don't have to.", "{approvals}", "When a feature is done, archiving its Pane cleans up its worktree and files for you."];
|
|
10289
|
+
readonly approvals: {
|
|
10290
|
+
readonly on: "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.";
|
|
10291
|
+
readonly off: "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving.";
|
|
10292
|
+
};
|
|
10293
|
+
};
|
|
10294
|
+
readonly agents: {
|
|
10295
|
+
readonly title: "For agents";
|
|
10296
|
+
readonly sentences: readonly ["In Pane, work flows from a Session to Panes to tabs.", "A Session is a workstream: the person or an orchestrator opens it, and every Pane created or adopted from inside it joins it. When you are in one ($PANE_SESSION_DIR is set: you orchestrate it or your Pane belongs to it), start new Panes from there (each result's `association` names the Session they joined); when you are in none, work with several parts starts a new Session.", "Each feature gets one Pane, a git worktree on its own branch, and everything for that feature (the agent that builds it, its reviews, QA and fixes) runs as tabs inside it.", "Scratch files go in $PANE_SCRATCH_DIR inside the Pane.", "When the feature is done, archive the Pane and Pane cleans up its worktree, tabs and scratch files.", "{approvals}"];
|
|
10297
|
+
readonly approvals: {
|
|
10298
|
+
readonly on: "When you need the person, ask through Approvals (a Session worker reports blocked to its orchestrator instead).";
|
|
10299
|
+
readonly off: "When you need the person, ask in this terminal.";
|
|
10300
|
+
};
|
|
10301
|
+
};
|
|
10302
|
+
};
|
|
10303
|
+
readonly workspaceRules: readonly ["Session: where a workstream lives, and the default home for orchestrated work. Its folder ($PANE_SESSION_DIR) holds plans, notes and reports.", "Pane: one per feature (one worktree, one branch). Before creating one, find the feature's Pane (`runpane panes list --json`, match the branch) and create one only when none exists.", "Tab: reviews, review reruns, QA, fixes and follow-ups for a feature go in new tabs in its Pane (`runpane panels create --pane <id>`), never a new Pane or a plain `git worktree`.", "Scratch: in Pane, put temporary files, clones, captures, downloads, logs and test instances (an isolated PANE_DIR and HOME for QA) in `$PANE_SCRATCH_DIR`, not /tmp or your tool's own scratchpad. When the feature is done, archive the Pane and Pane cleans it up."];
|
|
10304
|
+
readonly brief: {
|
|
10305
|
+
readonly title: "Pane agent context";
|
|
10306
|
+
readonly summary: "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.";
|
|
10307
|
+
readonly rules: readonly ["Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.", "In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.", "Happy path for any user request to use Pane/RunPane: run `runpane doctor --json`, read `runpane agent-context --json`, resolve or add the saved base repo, then route by the rule If the work's branch already has a Pane (find it with `runpane panes list --repo <repo> --json` by matching the PR's head branch against `git -C <worktreePath> branch --show-current`), open a new agent tab in it with `runpane panels create --pane <id> --agent <agent> --initial-input \"<task>\" --source agent --no-focus --wait-ready --yes --json`; only when the branch has no Pane yet, create one with a complete command such as `runpane panes create --repo <repo> --name <name> --agent <agent> --prompt \"<task>\" --source agent --no-focus --wait-ready --yes --json` (the new Pane is pinned by default; add `--no-pinned` for a throwaway Pane, add `--base-branch <ref>` to branch from something other than the repository default, or use `--tool-command <command>` instead of `--agent <agent>`), then validate with `panels wait` or `panels screen`. For long-lived supervision, use `runpane watch --follow` instead of polling wait or screen.", "Treat Pane as the user's visible cockpit for watching/co-driving work. Do not create Panes or panels for private delegation unless the user asked for visible Pane orchestration or the result should appear in the Pane app.", "Register the saved base repository once with `repos add`; do not register a pre-created worktree as a separate repo unless the user explicitly asks.", "Use `panes create` only when the work's branch has no Pane yet (new work, or an existing PR with no Pane), since each new Pane creates a worktree. Every later agent for that branch opens as a new tab in its Pane with `panels create --pane <id>`, never a new Pane. Tabs share one checkout: only the implementer changes the branch or HEAD, one writer at a time; review, audit and QA tabs never run `git checkout`, `reset` or `stash`.", "For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.", "Skill routing: Pane's skills live in `<PANE_DIR>/skills/pane-chat/skills/`, and the Pane Chat entry point is `<PANE_DIR>/skills/pane-chat/pane-orchestrator/SKILL.md`; read the skill that matches the request, such as `discussion`, `create-ticket`, `tdd`, `prepare-pr`, or `review`.", "When an agent creates Panes or panels, pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved; `panes create` pins the new Pane into the UI's favorite/pin set by default, so no follow-up `panes pin` call is needed and `--no-pinned` is the opt-out for throwaway Panes.", "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.", "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.", "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.", "Read and change a repo's Project Settings (build, run, and archive scripts, worktree folder, environment variables) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.", "When a command needs a secret (an API key, a token), run it with `runpane secrets exec --project <project> -- <command>`. If the secret is missing, ask the person with `runpane secrets request`; never ask them to paste a secret into the chat, and never print one.", "If WSL cannot reach Pane, the user may be running Windows Pane; try `/mnt/c/Users/<you>/.pane/bin/runpane doctor --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.", "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.", "Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.", "Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.", "Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.", "Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.", "Pane terminals draw inline images: sixel, iTerm2 inline images, and the kitty graphics protocol. Tools that need kitty graphics, such as terminal-browser and terminal-doom, run inside a Pane panel; `runpane doctor --json` reports the exact list under `terminal.graphicsProtocols`.", "After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen`. For a harness that consumes streaming output, use `runpane watch --follow` (with `--session <id>` for a Session); its named consumer applies settling and batching. Adding numeric --since leaves it unnamed and bypasses cadence; --as cannot be combined with --since. A harness that wakes only when a process exits uses `runpane watch --as <name> --until-event --json` and runs it again after each event. Single-event waits deliver immediately without follow cadence. Never pipe `--follow` into `grep -m1` or `head`.", "When several agents share one resource, such as a test account, name a lock in their prompts: each worker runs `runpane lock acquire --name <name> --ttl 30m --wait 1800000 --json` before using it and `runpane lock release --name <name>` after.", "Loops (`runpane loops create`) run a task on a cron schedule, each run in a new Pane or, with `--session`, as a message to a Session's agent. They are for large recurring jobs, such as a nightly bug sweep, and run at most once an hour. For a short wait, use your agent harness's own sleep and wake instead."];
|
|
10308
|
+
readonly detailCommand: "runpane agent-context --command <command> [--json]";
|
|
10309
|
+
readonly tools: readonly [{
|
|
10310
|
+
readonly name: "doctor";
|
|
10311
|
+
readonly summary: "Report wrapper, platform, installed Pane, and daemon reachability before an agent mutates Pane state.";
|
|
10312
|
+
readonly arguments: readonly ["--json", "--pane-dir <path>", "--pane-path <path>"];
|
|
10313
|
+
}, {
|
|
10314
|
+
readonly name: "agent-context";
|
|
10315
|
+
readonly summary: "Print token-efficient Pane command context for coding agents.";
|
|
10316
|
+
readonly arguments: readonly ["--command <command>", "--json"];
|
|
10317
|
+
}, {
|
|
10318
|
+
readonly name: "agents doctor";
|
|
10319
|
+
readonly summary: "Check whether Codex or Claude is available in the repo environment Pane will use.";
|
|
10320
|
+
readonly arguments: readonly ["--agent <codex|claude|cursor|opencode|pi>", "--repo <selector>", "--json"];
|
|
10321
|
+
}, {
|
|
10322
|
+
readonly name: "repos list";
|
|
10323
|
+
readonly summary: "List repositories saved in the running Pane app.";
|
|
10324
|
+
readonly arguments: readonly ["--json", "--pane-dir <path>"];
|
|
10325
|
+
}, {
|
|
10326
|
+
readonly name: "repos add";
|
|
10327
|
+
readonly summary: "Register an existing git repository with the running Pane app.";
|
|
10328
|
+
readonly arguments: readonly ["--path <path>", "--name <name>", "--yes", "--json", "--dry-run", "--pane-dir <path>"];
|
|
10329
|
+
}, {
|
|
10330
|
+
readonly name: "repos get";
|
|
10331
|
+
readonly summary: "Show a saved repository's Project Settings and the scripts Pane will run.";
|
|
10332
|
+
readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
|
|
10333
|
+
}, {
|
|
10334
|
+
readonly name: "repos update";
|
|
10335
|
+
readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
|
|
10336
|
+
readonly arguments: readonly ["--repo <selector>", "--build-script <script>", "--run-script <script>", "--archive-script <script>", "--worktree-folder <path>", "--env <json>", "--env-remove <name,...>", "--name <name>", "--clear <setting,...>", "--from-json <path|->", "--yes", "--dry-run", "--json"];
|
|
10337
|
+
}, {
|
|
10338
|
+
readonly name: "repos rename";
|
|
10339
|
+
readonly summary: "Rename a repository saved in the running Pane app.";
|
|
10340
|
+
readonly arguments: readonly ["--repo <selector>", "--name <name>", "--yes", "--json", "--pane-dir <path>"];
|
|
10341
|
+
}, {
|
|
10342
|
+
readonly name: "secrets list";
|
|
10343
|
+
readonly summary: "List Pane secrets: project, name, time and machine. Never a value.";
|
|
10344
|
+
readonly arguments: readonly ["--project <project>", "--json"];
|
|
10345
|
+
}, {
|
|
10346
|
+
readonly name: "secrets exec";
|
|
10347
|
+
readonly summary: "Run a command with Pane secrets in its environment.";
|
|
10348
|
+
readonly arguments: readonly ["--project <project>", "--only <name,...>", "--env <VAR=NAME>", "--file <name>", "-- <command>..."];
|
|
10349
|
+
}, {
|
|
10350
|
+
readonly name: "secrets request";
|
|
10351
|
+
readonly summary: "Ask the person for a secret on a masked card; returns saved or declined, never the value.";
|
|
10352
|
+
readonly arguments: readonly ["--project <project>", "--name <name>", "--title <text>", "--reason <text>", "--json"];
|
|
10353
|
+
}, {
|
|
10354
|
+
readonly name: "panes list";
|
|
10355
|
+
readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
|
|
10356
|
+
readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
|
|
10357
|
+
}, {
|
|
10358
|
+
readonly name: "panes cost";
|
|
10359
|
+
readonly summary: "Report estimated token cost per Pane, with per-model breakdown and cache efficiency.";
|
|
10360
|
+
readonly arguments: readonly ["--repo <selector>", "--pane <pane-id>", "--json", "--pane-dir <path>"];
|
|
10361
|
+
}, {
|
|
10362
|
+
readonly name: "panes create";
|
|
10363
|
+
readonly summary: "Create a Pane (a new worktree) only when the work's branch has no Pane yet; for review, audit, fix or QA on existing work use `panels create --pane <id>`.";
|
|
10364
|
+
readonly arguments: readonly ["--repo <selector>", "--name <name>", "--agent <codex|claude|cursor|opencode|pi>", "--tool-command <command>", "--prompt <text>", "--initial-input-file <path|->", "--from-json <path|->", "--source <user|agent>", "--pinned", "--no-pinned", "--no-associate", "--no-focus", "--focus", "--wait-ready", "--ready-timeout-ms <ms>", "--concurrency <count>", "--yes", "--json"];
|
|
10365
|
+
}, {
|
|
10366
|
+
readonly name: "panes archive";
|
|
10367
|
+
readonly summary: "Archive a Pane exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
|
|
10368
|
+
readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--closed", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
|
|
10369
|
+
}, {
|
|
10370
|
+
readonly name: "panes pin";
|
|
10371
|
+
readonly summary: "Declaratively pin a Pane (the Pane UI's favorite/pin star) without changing focus.";
|
|
10372
|
+
readonly arguments: readonly ["--pane <pane-id>", "--yes", "--dry-run", "--json"];
|
|
10373
|
+
}, {
|
|
10374
|
+
readonly name: "panes unpin";
|
|
10375
|
+
readonly summary: "Declaratively unpin a Pane (the Pane UI's favorite/pin star) without changing focus.";
|
|
10376
|
+
readonly arguments: readonly ["--pane <pane-id>", "--yes", "--dry-run", "--json"];
|
|
10377
|
+
}, {
|
|
10378
|
+
readonly name: "panes rename";
|
|
10379
|
+
readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
|
|
10380
|
+
readonly arguments: readonly ["--pane <pane-id>", "--name <new-name>", "--yes", "--dry-run", "--json"];
|
|
10381
|
+
}, {
|
|
10382
|
+
readonly name: "panes focus";
|
|
10383
|
+
readonly summary: "Raise the Pane window and select a Pane (and optionally a panel) on explicit user request.";
|
|
10384
|
+
readonly arguments: readonly ["--pane <pane-id>", "--panel <panel-id>", "--source <user|agent>", "--yes", "--json"];
|
|
10385
|
+
}, {
|
|
10386
|
+
readonly name: "panels create";
|
|
10387
|
+
readonly summary: "Open reviewer, QA, fix or helper agent tabs inside an existing Pane; they share that Pane's worktree. The default for any later agent on existing work.";
|
|
10388
|
+
readonly arguments: readonly ["--pane <pane-id>", "--agent <codex|claude|cursor|opencode|pi>", "--tool-command <command>", "--source <user|agent>", "--no-focus", "--focus", "--wait-ready", "--yes", "--json"];
|
|
10389
|
+
}, {
|
|
10390
|
+
readonly name: "panels open";
|
|
10391
|
+
readonly summary: "Show the user an HTML page, plan, report, dev server URL, or file as a tab in split view beside the agent.";
|
|
10392
|
+
readonly arguments: readonly ["--pane <pane-id>", "--url <url>", "--file <path>", "--title <title>", "--split", "--tab", "--no-focus", "--source <user|agent>", "--yes", "--json"];
|
|
10393
|
+
}, {
|
|
10394
|
+
readonly name: "panels close";
|
|
10395
|
+
readonly summary: "Close a tab an agent opened once it no longer matters; refuses the person's tabs, busy agents and unsent input.";
|
|
10396
|
+
readonly arguments: readonly ["--panel <panel-id>", "--dry-run", "--force", "--source <user|agent>", "--yes", "--json"];
|
|
10397
|
+
}, {
|
|
10398
|
+
readonly name: "panels list";
|
|
10399
|
+
readonly summary: "List tool panels inside a Pane session.";
|
|
10400
|
+
readonly arguments: readonly ["--pane <pane-id>", "--json", "--pane-dir <path>"];
|
|
10401
|
+
}, {
|
|
10402
|
+
readonly name: "panels output";
|
|
10403
|
+
readonly summary: "Read recent terminal output from a panel.";
|
|
10404
|
+
readonly arguments: readonly ["--panel <panel-id>", "--limit <count>", "--json", "--pane-dir <path>"];
|
|
10405
|
+
}, {
|
|
10406
|
+
readonly name: "panels screen";
|
|
10407
|
+
readonly summary: "Read a compact current-screen view from a terminal panel.";
|
|
10408
|
+
readonly arguments: readonly ["--panel <panel-id>", "--limit <count>", "--json", "--pane-dir <path>"];
|
|
10409
|
+
}, {
|
|
10410
|
+
readonly name: "panels input";
|
|
10411
|
+
readonly summary: "Send input bytes to a terminal panel.";
|
|
10412
|
+
readonly arguments: readonly ["--panel <panel-id>", "--text <text>", "--input-file <path|->", "--yes", "--json", "--pane-dir <path>"];
|
|
10413
|
+
}, {
|
|
10414
|
+
readonly name: "panels submit";
|
|
10415
|
+
readonly summary: "Send text plus terminal Enter to a terminal panel.";
|
|
10416
|
+
readonly arguments: readonly ["--panel <panel-id>", "--text <text>", "--input-file <path|->", "--yes", "--json", "--pane-dir <path>"];
|
|
10417
|
+
}, {
|
|
10418
|
+
readonly name: "panels submit-composer";
|
|
10419
|
+
readonly summary: "Submit an agent composer with the key for its current state.";
|
|
10420
|
+
readonly arguments: readonly ["--panel <panel-id>", "--strategy <auto|codex-ctrl-enter|enter|tab>", "--yes", "--json"];
|
|
10421
|
+
}, {
|
|
10422
|
+
readonly name: "panels wait";
|
|
10423
|
+
readonly summary: "Wait for terminal initialized, ready, idle, or text state with compact output.";
|
|
10424
|
+
readonly arguments: readonly ["--panel <panel-id>", "--for <condition>", "--contains <text>", "--timeout-ms <ms>", "--interval-ms <ms>", "--json", "--pane-dir <path>"];
|
|
10425
|
+
}, {
|
|
10426
|
+
readonly name: "panels resume";
|
|
10427
|
+
readonly summary: "Restart a stopped terminal panel in place (same panel id), resuming its agent's conversation.";
|
|
10428
|
+
readonly arguments: readonly ["--panel <panel-id>", "--session <id|name>", "--all-stopped", "--concurrency <count>", "--wait-ready", "--ready-timeout-ms <ms>", "--yes", "--json", "--pane-dir <path>"];
|
|
10429
|
+
}, {
|
|
10430
|
+
readonly name: "watch";
|
|
10431
|
+
readonly summary: "Wait for workspace events from the durable daemon journal; follow uses conservative cadence and quiet expiry by default.";
|
|
10432
|
+
readonly arguments: readonly ["--follow", "--until-event", "--session <id|name>", "--self-test", "--kinds <kind,...>", "--json"];
|
|
10433
|
+
}, {
|
|
10434
|
+
readonly name: "notify";
|
|
10435
|
+
readonly summary: "Ask the person a question wherever they are and wait for the answer; prefer it to asking in the terminal.";
|
|
10436
|
+
readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--links <json>", "--resume <id>", "--json"];
|
|
10437
|
+
}];
|
|
10438
|
+
};
|
|
10439
|
+
readonly commands: {
|
|
10440
|
+
readonly help: {
|
|
10441
|
+
readonly name: "help";
|
|
10442
|
+
readonly summary: "Show help for runpane or a specific command.";
|
|
10443
|
+
readonly details: "Use this when you need human-readable usage text for a command.";
|
|
10444
|
+
readonly requiresPaneDaemon: false;
|
|
10445
|
+
readonly mutates: false;
|
|
10446
|
+
readonly arguments: readonly [{
|
|
10447
|
+
readonly name: "command";
|
|
10448
|
+
readonly value: "<command>";
|
|
10449
|
+
readonly required: false;
|
|
10450
|
+
readonly description: "Optional command topic such as \"panes create\".";
|
|
10451
|
+
}];
|
|
10452
|
+
readonly examples: readonly ["runpane help", "runpane help panes create"];
|
|
10453
|
+
readonly notes: readonly ["Help text is generated from the runpane contract."];
|
|
10454
|
+
};
|
|
10455
|
+
readonly setup: {
|
|
10456
|
+
readonly name: "setup";
|
|
10457
|
+
readonly summary: "Open the guided setup wizard for install, remote host setup, update, and diagnostics.";
|
|
10458
|
+
readonly details: "Use this for a human-driven Pane setup flow, not for unattended agent orchestration.";
|
|
10459
|
+
readonly requiresPaneDaemon: false;
|
|
10460
|
+
readonly mutates: false;
|
|
9599
10461
|
readonly arguments: readonly [];
|
|
9600
10462
|
readonly examples: readonly ["runpane setup"];
|
|
9601
10463
|
readonly notes: readonly ["In non-interactive shells, setup prints help and exits successfully."];
|
|
@@ -9796,7 +10658,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
9796
10658
|
readonly name: "--toolsets";
|
|
9797
10659
|
readonly value: "<name,...>";
|
|
9798
10660
|
readonly required: false;
|
|
9799
|
-
readonly description: "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, git, docs, links, admin.";
|
|
10661
|
+
readonly description: "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, machine, git, docs, links, admin.";
|
|
9800
10662
|
}, {
|
|
9801
10663
|
readonly name: "--read-only";
|
|
9802
10664
|
readonly required: false;
|
|
@@ -10336,7 +11198,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
10336
11198
|
readonly name: "--worktree-name";
|
|
10337
11199
|
readonly value: "<name>";
|
|
10338
11200
|
readonly required: false;
|
|
10339
|
-
readonly description: "Worktree directory name; defaults to --name.";
|
|
11201
|
+
readonly description: "Worktree directory name, cut to 100 characters at a word; defaults to --name.";
|
|
10340
11202
|
}, {
|
|
10341
11203
|
readonly name: "--prompt";
|
|
10342
11204
|
readonly value: "<text>";
|
|
@@ -10821,7 +11683,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
10821
11683
|
readonly "panels output": {
|
|
10822
11684
|
readonly name: "panels output";
|
|
10823
11685
|
readonly summary: "Read recent terminal output from a panel.";
|
|
10824
|
-
readonly details: "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text.";
|
|
11686
|
+
readonly details: "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text. When older output exists, hasMore is true and the text output says so on stderr.";
|
|
10825
11687
|
readonly requiresPaneDaemon: true;
|
|
10826
11688
|
readonly mutates: false;
|
|
10827
11689
|
readonly arguments: readonly [{
|
|
@@ -10925,7 +11787,7 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
10925
11787
|
readonly "panels screen": {
|
|
10926
11788
|
readonly name: "panels screen";
|
|
10927
11789
|
readonly summary: "Read a compact current-screen view from a terminal panel.";
|
|
10928
|
-
readonly details: "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines.";
|
|
11790
|
+
readonly details: "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines. When older lines exist, hasMore is true and the text output says so on stderr.";
|
|
10929
11791
|
readonly requiresPaneDaemon: true;
|
|
10930
11792
|
readonly mutates: false;
|
|
10931
11793
|
readonly arguments: readonly [{
|
|
@@ -14021,8 +14883,259 @@ export declare const RUNPANE_CONTRACT: {
|
|
|
14021
14883
|
readonly examples: readonly ["runpane theme reset"];
|
|
14022
14884
|
readonly notes: readonly ["The person's way back from any Custom theme; an agent switches away with `runpane theme set --theme <id>` instead."];
|
|
14023
14885
|
};
|
|
14886
|
+
readonly "devices list": {
|
|
14887
|
+
readonly name: "devices list";
|
|
14888
|
+
readonly summary: "List the phone simulators and emulators this Pane can open: platform, name, OS, machine, state, and which Pane holds each.";
|
|
14889
|
+
readonly details: "Lists this machine's iOS simulators and Android emulators, plus the iOS machine Pane uses when this one has no Xcode. paneMade marks the devices Pane created; device_open uses those unless you name another.";
|
|
14890
|
+
readonly requiresPaneDaemon: true;
|
|
14891
|
+
readonly mutates: false;
|
|
14892
|
+
readonly arguments: readonly [{
|
|
14893
|
+
readonly name: "--json";
|
|
14894
|
+
readonly required: false;
|
|
14895
|
+
readonly description: "Print machine-readable output.";
|
|
14896
|
+
}, {
|
|
14897
|
+
readonly name: "--pane-dir";
|
|
14898
|
+
readonly value: "<path>";
|
|
14899
|
+
readonly required: false;
|
|
14900
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
14901
|
+
}];
|
|
14902
|
+
readonly examples: readonly ["runpane devices list --json"];
|
|
14903
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
14904
|
+
readonly jsonSchemas: readonly ["devicesListResult"];
|
|
14905
|
+
};
|
|
14906
|
+
readonly "devices open": {
|
|
14907
|
+
readonly name: "devices open";
|
|
14908
|
+
readonly summary: "Boot a phone simulator or emulator for this Pane and show its live screen in a device tab beside the agent.";
|
|
14909
|
+
readonly details: "Leases a device to the calling tab's Pane and boots it. Without --device, Pane uses its own device (Pane iPhone or Pane_Android) and makes one from the newest installed runtime when needed. The first call on a machine installs Pane's device tools (agent-device and Expo's device hub), which takes a minute. When every device Pane may boot is held by another Pane, it waits up to 60 seconds, then fails with ERR_DEVICE_BUSY naming the holder. On a machine without Xcode, iOS opens on a linked Mac. Later device calls act on this device; you never pass it again.";
|
|
14910
|
+
readonly requiresPaneDaemon: true;
|
|
14911
|
+
readonly mutates: true;
|
|
14912
|
+
readonly arguments: readonly [{
|
|
14913
|
+
readonly name: "--platform";
|
|
14914
|
+
readonly value: "<ios|android>";
|
|
14915
|
+
readonly required: true;
|
|
14916
|
+
readonly description: "ios for an iOS simulator, android for an Android emulator.";
|
|
14917
|
+
}, {
|
|
14918
|
+
readonly name: "--device";
|
|
14919
|
+
readonly value: "<name-or-id>";
|
|
14920
|
+
readonly required: false;
|
|
14921
|
+
readonly description: "One of the person's own devices by name or id, from device_list. Leave it out to use Pane's own device.";
|
|
14922
|
+
}, {
|
|
14923
|
+
readonly name: "--json";
|
|
14924
|
+
readonly required: false;
|
|
14925
|
+
readonly description: "Print machine-readable output.";
|
|
14926
|
+
}, {
|
|
14927
|
+
readonly name: "--pane-dir";
|
|
14928
|
+
readonly value: "<path>";
|
|
14929
|
+
readonly required: false;
|
|
14930
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
14931
|
+
}];
|
|
14932
|
+
readonly examples: readonly ["runpane devices open --platform ios --json"];
|
|
14933
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
14934
|
+
readonly jsonSchemas: readonly ["devicesOpenResult"];
|
|
14935
|
+
};
|
|
14936
|
+
readonly "devices screenshot": {
|
|
14937
|
+
readonly name: "devices screenshot";
|
|
14938
|
+
readonly summary: "Capture the screen of this Pane's open device as an image.";
|
|
14939
|
+
readonly details: "Returns the PNG's path; MCP clients also get the image itself.";
|
|
14940
|
+
readonly requiresPaneDaemon: true;
|
|
14941
|
+
readonly mutates: false;
|
|
14942
|
+
readonly arguments: readonly [{
|
|
14943
|
+
readonly name: "--json";
|
|
14944
|
+
readonly required: false;
|
|
14945
|
+
readonly description: "Print machine-readable output.";
|
|
14946
|
+
}, {
|
|
14947
|
+
readonly name: "--pane-dir";
|
|
14948
|
+
readonly value: "<path>";
|
|
14949
|
+
readonly required: false;
|
|
14950
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
14951
|
+
}];
|
|
14952
|
+
readonly examples: readonly ["runpane devices screenshot --json"];
|
|
14953
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
14954
|
+
readonly jsonSchemas: readonly ["devicesScreenshotResult"];
|
|
14955
|
+
};
|
|
14956
|
+
readonly "devices act": {
|
|
14957
|
+
readonly name: "devices act";
|
|
14958
|
+
readonly summary: "Run an agent-device command on this Pane's open device: open an app, snapshot -i for element refs, press @e3, fill, swipe, install, logs.";
|
|
14959
|
+
readonly details: "Passes the command to agent-device, pinned to the device this Pane holds. Start with `open <app id>`, then `snapshot -i` for @refs, then `press @eN --settle`. agent-device's own help: `help workflow`. Flags that pick another device, session or daemon (--session, --device, --udid, --serial, --platform) are refused.";
|
|
14960
|
+
readonly requiresPaneDaemon: true;
|
|
14961
|
+
readonly mutates: true;
|
|
14962
|
+
readonly arguments: readonly [{
|
|
14963
|
+
readonly name: "-- <command>";
|
|
14964
|
+
readonly required: true;
|
|
14965
|
+
readonly description: "The agent-device command and its arguments, such as `snapshot -i` or `press @e3 --settle`.";
|
|
14966
|
+
}, {
|
|
14967
|
+
readonly name: "--json";
|
|
14968
|
+
readonly required: false;
|
|
14969
|
+
readonly description: "Print machine-readable output.";
|
|
14970
|
+
}, {
|
|
14971
|
+
readonly name: "--pane-dir";
|
|
14972
|
+
readonly value: "<path>";
|
|
14973
|
+
readonly required: false;
|
|
14974
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
14975
|
+
}];
|
|
14976
|
+
readonly examples: readonly ["runpane devices act --json -- open com.apple.Preferences", "runpane devices act --json -- snapshot -i"];
|
|
14977
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
14978
|
+
readonly jsonSchemas: readonly ["devicesActResult"];
|
|
14979
|
+
};
|
|
14980
|
+
readonly "devices run": {
|
|
14981
|
+
readonly name: "devices run";
|
|
14982
|
+
readonly summary: "Run a command where this Pane's device runs, such as a build (npx expo run:ios) or Metro with --background.";
|
|
14983
|
+
readonly details: "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.";
|
|
14984
|
+
readonly requiresPaneDaemon: true;
|
|
14985
|
+
readonly mutates: true;
|
|
14986
|
+
readonly arguments: readonly [{
|
|
14987
|
+
readonly name: "--background";
|
|
14988
|
+
readonly required: false;
|
|
14989
|
+
readonly description: "Keep the command running after the call returns (Metro); it stops at device_close.";
|
|
14990
|
+
}, {
|
|
14991
|
+
readonly name: "--wait-ms";
|
|
14992
|
+
readonly value: "<milliseconds>";
|
|
14993
|
+
readonly required: false;
|
|
14994
|
+
readonly description: "How long to wait for the command to exit (default 120000).";
|
|
14995
|
+
}, {
|
|
14996
|
+
readonly name: "-- <command>";
|
|
14997
|
+
readonly required: true;
|
|
14998
|
+
readonly description: "The command line to run, or empty to sync only.";
|
|
14999
|
+
}, {
|
|
15000
|
+
readonly name: "--json";
|
|
15001
|
+
readonly required: false;
|
|
15002
|
+
readonly description: "Print machine-readable output.";
|
|
15003
|
+
}, {
|
|
15004
|
+
readonly name: "--pane-dir";
|
|
15005
|
+
readonly value: "<path>";
|
|
15006
|
+
readonly required: false;
|
|
15007
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15008
|
+
}];
|
|
15009
|
+
readonly examples: readonly ["runpane devices run --json -- npx expo run:ios", "runpane devices run --background --json -- npx expo start"];
|
|
15010
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
15011
|
+
readonly jsonSchemas: readonly ["devicesRunResult"];
|
|
15012
|
+
};
|
|
15013
|
+
readonly "devices close": {
|
|
15014
|
+
readonly name: "devices close";
|
|
15015
|
+
readonly summary: "Release this Pane's device and stop the commands device_run started. The device stays warm for 10 minutes.";
|
|
15016
|
+
readonly details: "Ends the lease so another Pane can use the device. It shuts down 10 minutes later unless a Pane opens it again.";
|
|
15017
|
+
readonly requiresPaneDaemon: true;
|
|
15018
|
+
readonly mutates: true;
|
|
15019
|
+
readonly arguments: readonly [{
|
|
15020
|
+
readonly name: "--json";
|
|
15021
|
+
readonly required: false;
|
|
15022
|
+
readonly description: "Print machine-readable output.";
|
|
15023
|
+
}, {
|
|
15024
|
+
readonly name: "--pane-dir";
|
|
15025
|
+
readonly value: "<path>";
|
|
15026
|
+
readonly required: false;
|
|
15027
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15028
|
+
}];
|
|
15029
|
+
readonly examples: readonly ["runpane devices close --json"];
|
|
15030
|
+
readonly notes: readonly ["Acts only for the Pane of the calling tab: a call from outside a Pane tab, or for a device another Pane holds, is refused. Settings > Devices > Agent device tools turns these tools off."];
|
|
15031
|
+
readonly jsonSchemas: readonly ["devicesCloseResult"];
|
|
15032
|
+
};
|
|
15033
|
+
readonly "devices usage": {
|
|
15034
|
+
readonly name: "devices usage";
|
|
15035
|
+
readonly summary: "Report every simulator and emulator on this machine, and the memory and disk they, Pane's device tools and build checkouts use.";
|
|
15036
|
+
readonly details: "For machine health. Lists every simulator and emulator on this machine, including ones made outside Pane (paneMade false), with OS, disk and, when booted, memory (simslim measure when installed, otherwise the simulator's processes).";
|
|
15037
|
+
readonly requiresPaneDaemon: true;
|
|
15038
|
+
readonly mutates: false;
|
|
15039
|
+
readonly arguments: readonly [{
|
|
15040
|
+
readonly name: "--json";
|
|
15041
|
+
readonly required: false;
|
|
15042
|
+
readonly description: "Print machine-readable output.";
|
|
15043
|
+
}, {
|
|
15044
|
+
readonly name: "--pane-dir";
|
|
15045
|
+
readonly value: "<path>";
|
|
15046
|
+
readonly required: false;
|
|
15047
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15048
|
+
}];
|
|
15049
|
+
readonly examples: readonly ["runpane devices usage --json"];
|
|
15050
|
+
readonly notes: readonly ["For machine health: answers only callers on this machine, and never touches the person's own devices or runtimes."];
|
|
15051
|
+
readonly jsonSchemas: readonly ["devicesUsageResult"];
|
|
15052
|
+
};
|
|
15053
|
+
readonly "devices free": {
|
|
15054
|
+
readonly name: "devices free";
|
|
15055
|
+
readonly summary: "Shut down unused devices (--idle), or also delete every unused device Pane made (--all).";
|
|
15056
|
+
readonly details: "Never touches the person's own devices or runtimes, or a device a Pane holds.";
|
|
15057
|
+
readonly requiresPaneDaemon: true;
|
|
15058
|
+
readonly mutates: true;
|
|
15059
|
+
readonly arguments: readonly [{
|
|
15060
|
+
readonly name: "--idle";
|
|
15061
|
+
readonly required: false;
|
|
15062
|
+
readonly description: "Shut down Pane's devices no Pane holds.";
|
|
15063
|
+
}, {
|
|
15064
|
+
readonly name: "--all";
|
|
15065
|
+
readonly required: false;
|
|
15066
|
+
readonly description: "Also erase and delete them.";
|
|
15067
|
+
}, {
|
|
15068
|
+
readonly name: "--yes";
|
|
15069
|
+
readonly required: true;
|
|
15070
|
+
readonly description: "Confirm the change.";
|
|
15071
|
+
}, {
|
|
15072
|
+
readonly name: "--json";
|
|
15073
|
+
readonly required: false;
|
|
15074
|
+
readonly description: "Print machine-readable output.";
|
|
15075
|
+
}, {
|
|
15076
|
+
readonly name: "--pane-dir";
|
|
15077
|
+
readonly value: "<path>";
|
|
15078
|
+
readonly required: false;
|
|
15079
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15080
|
+
}];
|
|
15081
|
+
readonly examples: readonly ["runpane devices free --idle --yes --json"];
|
|
15082
|
+
readonly notes: readonly ["For machine health: answers only callers on this machine, and never touches the person's own devices or runtimes."];
|
|
15083
|
+
readonly jsonSchemas: readonly ["devicesFreeResult"];
|
|
15084
|
+
};
|
|
15085
|
+
readonly "machine health": {
|
|
15086
|
+
readonly name: "machine health";
|
|
15087
|
+
readonly summary: "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.";
|
|
15088
|
+
readonly details: "Reads this machine's latest health snapshot and the last storage scan; it deletes nothing. disk lists each watched volume with free and total bytes; memory gives the level and the OS signal it came from; panes lists each Pane's processes and their memory; leaks lists processes whose memory keeps growing. inventory.items lists what can be freed, each with kind, tier, size and reason. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.";
|
|
15089
|
+
readonly requiresPaneDaemon: true;
|
|
15090
|
+
readonly mutates: false;
|
|
15091
|
+
readonly arguments: readonly [{
|
|
15092
|
+
readonly name: "--json";
|
|
15093
|
+
readonly required: false;
|
|
15094
|
+
readonly description: "Print machine-readable output.";
|
|
15095
|
+
}, {
|
|
15096
|
+
readonly name: "--pane-dir";
|
|
15097
|
+
readonly value: "<path>";
|
|
15098
|
+
readonly required: false;
|
|
15099
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15100
|
+
}];
|
|
15101
|
+
readonly examples: readonly ["runpane machine health --json", "runpane workspace <machine> machine health --json"];
|
|
15102
|
+
readonly jsonSchemas: readonly ["machineHealthResult"];
|
|
15103
|
+
readonly notes: readonly ["Free disk on any machine only through `runpane machine cleanup`, never with rm: cleanup re-checks each item, skips Panes in use, and moves each item to a trash folder before deleting it."];
|
|
15104
|
+
};
|
|
15105
|
+
readonly "machine cleanup": {
|
|
15106
|
+
readonly name: "machine cleanup";
|
|
15107
|
+
readonly summary: "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.";
|
|
15108
|
+
readonly details: "Without --yes it is a dry run: it lists the tier 1 and 2 items of --kind from the last scan and their total size, and deletes nothing. With --yes, Pane re-checks each item (it may be gone, in use, or protected because its Pane is pinned, focused, busy or has uncommitted changes), deletes the rest, and returns what it removed, what it skipped and why, and the bytes freed. A tier 3 kind is refused with ERR_MACHINE_CLEANUP_NOT_PANES, and `next` says how to free it with the tool that owns it. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.";
|
|
15109
|
+
readonly requiresPaneDaemon: true;
|
|
15110
|
+
readonly mutates: true;
|
|
15111
|
+
readonly arguments: readonly [{
|
|
15112
|
+
readonly name: "--kind";
|
|
15113
|
+
readonly value: "<kind>";
|
|
15114
|
+
readonly required: true;
|
|
15115
|
+
readonly description: "Kind of item to delete: update-snapshot, migration-backup, archived-pane-folder, agent-temp, paused-scratch. Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused.";
|
|
15116
|
+
readonly schema: {
|
|
15117
|
+
readonly enum: readonly ["update-snapshot", "migration-backup", "archived-pane-folder", "agent-temp", "paused-scratch", "foreign-worktree", "foreign-pane-data", "other-tool-data"];
|
|
15118
|
+
};
|
|
15119
|
+
}, {
|
|
15120
|
+
readonly name: "--yes";
|
|
15121
|
+
readonly required: false;
|
|
15122
|
+
readonly description: "Delete the items. Without it, list them and delete nothing.";
|
|
15123
|
+
}, {
|
|
15124
|
+
readonly name: "--json";
|
|
15125
|
+
readonly required: false;
|
|
15126
|
+
readonly description: "Print machine-readable output.";
|
|
15127
|
+
}, {
|
|
15128
|
+
readonly name: "--pane-dir";
|
|
15129
|
+
readonly value: "<path>";
|
|
15130
|
+
readonly required: false;
|
|
15131
|
+
readonly description: "Connect to a specific Pane data directory.";
|
|
15132
|
+
}];
|
|
15133
|
+
readonly examples: readonly ["runpane machine cleanup --kind update-snapshot --json", "runpane machine cleanup --kind update-snapshot --yes --json", "runpane workspace <machine> machine cleanup --kind update-snapshot --yes --json"];
|
|
15134
|
+
readonly jsonSchemas: readonly ["machineCleanupResult"];
|
|
15135
|
+
readonly notes: readonly ["Clean machines only through this command, never with rm or another raw delete.", "Run it without --yes first. Add --yes yourself only for a tier 1 kind; for a tier 2 kind, show the person the list and total size and wait for their OK."];
|
|
15136
|
+
};
|
|
14024
15137
|
};
|
|
14025
|
-
readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "{{paneAndTabRules}} With the MCP tools, open a tab with `panels_create`, or `agents_start` with `pane`.", "", "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."];
|
|
15138
|
+
readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "{{paneAndTabRules}} With the MCP tools, open a tab with `panels_create`, or `agents_start` with `pane`.", "", "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.", "", "To free disk or memory, run `runpane machine health` and delete only with `runpane machine cleanup` (a dry run until `--yes`), never `rm`. Put QA roots and test instances in the Pane's scratch folder (`$PANE_SCRATCH_DIR`).", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "Devices: the `device_*` MCP tools (or `runpane devices`) open an iOS simulator or Android emulator as a tab in the calling Pane, then drive it. `runpane docs read --doc docs/DEVICES.md` has the rest.", "", "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."];
|
|
14026
15139
|
readonly notifyGuidance: {
|
|
14027
15140
|
readonly rules: readonly ["Claude's own card (AskUserQuestion) only for a quick question about the person's latest message, in the chat they are typing in, that steers only this turn. Anything else (it waits, blocks other work, is recorded as a decision or approves an ask-first action) is an approval card (`notify`). Unsure? Use an approval card. Codex and other agents always do.", "In a Session, only its orchestrator asks the person. A worker (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`. `answer:`, `closed:` and `correction:` lines ending `(by you)` in its tab are the person's word.", "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."];
|
|
14028
15141
|
};
|