runpane 2.4.214 → 2.4.215

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.
@@ -25,7 +25,7 @@ export declare const RUNPANE_CONTRACT: {
25
25
  readonly watch: {
26
26
  readonly follow: {
27
27
  readonly summary: "What `runpane watch --follow` does with no other flags: quiet, batched updates and expiry after 3 hours with nothing happening. Individual duration flags override the defaults.";
28
- readonly kinds: readonly ["agent.report", "agent.ready", "agent.blocked", "agent.idle", "panel.exited", "panel.stopped", "pane.gone", "pane.associated", "pane.detached", "pr.conflicted", "pr.checks", "pr.merged", "pr.closed", "pr.head", "pr.base_changed", "pr.base_deleted", "pr.review", "pr.comment", "pr.stopped", "github.unavailable", "github.recovered"];
28
+ readonly kinds: readonly ["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.closed", "pr.head", "pr.base_changed", "pr.base_deleted", "pr.review", "pr.comment", "pr.stopped", "github.unavailable", "github.recovered"];
29
29
  readonly readySettle: "3m";
30
30
  readonly blockedSettle: "30s";
31
31
  readonly minInterval: "10m";
@@ -175,8 +175,8 @@ export declare const RUNPANE_CONTRACT: {
175
175
  readonly localControl: true;
176
176
  }, {
177
177
  readonly name: "repos update";
178
- readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.";
179
- readonly usage: readonly ["runpane repos update --repo <selector> [--name <name>] [--build-script <script>] [--run-script <script>] [--archive-script <script>] [--worktree-folder <path>] [--open-ide-command <command>] [--system-prompt <text>] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json] [--pane-dir <path>]"];
178
+ readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
179
+ readonly usage: readonly ["runpane repos update --repo <selector> [--name <name>] [--build-script <script>] [--run-script <script>] [--archive-script <script>] [--worktree-folder <path>] [--open-ide-command <command>] [--system-prompt <text>] [--env <json>] [--env-remove <name,...>] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json] [--pane-dir <path>]"];
180
180
  readonly mutates: true;
181
181
  readonly idempotent: true;
182
182
  readonly toolsets: readonly ["repos"];
@@ -191,6 +191,42 @@ export declare const RUNPANE_CONTRACT: {
191
191
  readonly toolsets: readonly ["core", "repos"];
192
192
  readonly jsonSchemas: readonly ["repoRenameRequest", "repoRenameResult"];
193
193
  readonly localControl: true;
194
+ }, {
195
+ readonly name: "secrets list";
196
+ readonly summary: "List the Pane secrets on this machine: project, name, and when and where each was set. Never shows a value.";
197
+ readonly usage: readonly ["runpane secrets list [--project <project>] [--json] [--pane-dir <path>]"];
198
+ readonly toolsets: readonly ["secrets"];
199
+ readonly jsonSchemas: readonly ["secretListRequest", "secretListResult"];
200
+ readonly localControl: true;
201
+ }, {
202
+ readonly name: "secrets set";
203
+ readonly summary: "Save a Pane secret, adding or replacing it. Reads the value from stdin.";
204
+ readonly usage: readonly ["runpane secrets set --project <project> --name <name> --yes [--json] [--pane-dir <path>]"];
205
+ readonly mutates: true;
206
+ readonly idempotent: true;
207
+ readonly localControl: true;
208
+ }, {
209
+ readonly name: "secrets delete";
210
+ readonly summary: "Delete a Pane secret from this machine and, through sync, from your other machines.";
211
+ readonly usage: readonly ["runpane secrets delete --project <project> --name <name> --yes [--json] [--pane-dir <path>]"];
212
+ readonly mutates: true;
213
+ readonly toolsets: readonly ["secrets"];
214
+ readonly jsonSchemas: readonly ["secretDeleteRequest", "secretDeleteResult"];
215
+ readonly localControl: true;
216
+ }, {
217
+ readonly name: "secrets exec";
218
+ readonly summary: "Run a command with Pane secrets in its environment. Nothing prints a value.";
219
+ readonly usage: readonly ["runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... [--pane-dir <path>] -- <command>..."];
220
+ readonly localControl: true;
221
+ }, {
222
+ readonly name: "secrets request";
223
+ readonly summary: "Ask the person for a secret on a masked card. Pane saves what they type as a Pane secret and never returns it.";
224
+ readonly usage: readonly ["runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json] [--pane-dir <path>]"];
225
+ readonly mutates: true;
226
+ readonly additive: true;
227
+ readonly toolsets: readonly ["core"];
228
+ readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
229
+ readonly localControl: true;
194
230
  }, {
195
231
  readonly name: "panes list";
196
232
  readonly summary: "List Pane sessions in a saved repository.";
@@ -322,6 +358,25 @@ export declare const RUNPANE_CONTRACT: {
322
358
  readonly toolsets: readonly ["panes"];
323
359
  readonly jsonSchemas: readonly ["panePinRequest", "panePinResult"];
324
360
  readonly localControl: true;
361
+ }, {
362
+ readonly name: "panes pause";
363
+ readonly summary: "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.";
364
+ readonly usage: readonly ["runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]"];
365
+ readonly mutates: true;
366
+ readonly idempotent: true;
367
+ readonly toolsets: readonly ["panes"];
368
+ readonly jsonSchemas: readonly ["pauseResult"];
369
+ readonly localControl: true;
370
+ }, {
371
+ readonly name: "panes resume";
372
+ readonly summary: "Resume a paused Pane: restart its paused tabs in their saved conversations.";
373
+ readonly usage: readonly ["runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]"];
374
+ readonly mutates: true;
375
+ readonly additive: true;
376
+ readonly idempotent: true;
377
+ readonly toolsets: readonly ["panes"];
378
+ readonly jsonSchemas: readonly ["pauseResult"];
379
+ readonly localControl: true;
325
380
  }, {
326
381
  readonly name: "panes rename";
327
382
  readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
@@ -420,6 +475,23 @@ export declare const RUNPANE_CONTRACT: {
420
475
  readonly toolsets: readonly ["panels"];
421
476
  readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
422
477
  readonly localControl: true;
478
+ }, {
479
+ readonly name: "panels close";
480
+ readonly summary: "Close a tab in a Pane, stopping its process, as closing the tab in the app does.";
481
+ readonly usage: readonly ["runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]"];
482
+ readonly mutates: true;
483
+ readonly toolsets: readonly ["panels"];
484
+ readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
485
+ readonly localControl: true;
486
+ }, {
487
+ readonly name: "panels pause";
488
+ readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
489
+ readonly usage: readonly ["runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]"];
490
+ readonly mutates: true;
491
+ readonly idempotent: true;
492
+ readonly toolsets: readonly ["panels"];
493
+ readonly jsonSchemas: readonly ["pauseResult"];
494
+ readonly localControl: true;
423
495
  }, {
424
496
  readonly name: "panels last-message";
425
497
  readonly summary: "Read an agent's last reply from its transcript, without scraping the screen.";
@@ -839,6 +911,25 @@ export declare const RUNPANE_CONTRACT: {
839
911
  readonly toolsets: readonly ["core", "sessions"];
840
912
  readonly jsonSchemas: readonly ["sessionResult"];
841
913
  readonly localControl: true;
914
+ }, {
915
+ readonly name: "sessions pause";
916
+ readonly summary: "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.";
917
+ readonly usage: readonly ["runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]"];
918
+ readonly mutates: true;
919
+ readonly idempotent: true;
920
+ readonly toolsets: readonly ["sessions"];
921
+ readonly jsonSchemas: readonly ["pauseResult"];
922
+ readonly localControl: true;
923
+ }, {
924
+ readonly name: "sessions resume";
925
+ readonly summary: "Resume a paused Session: restart its chat and the paused tabs of its Panes.";
926
+ readonly usage: readonly ["runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]"];
927
+ readonly mutates: true;
928
+ readonly additive: true;
929
+ readonly idempotent: true;
930
+ readonly toolsets: readonly ["sessions"];
931
+ readonly jsonSchemas: readonly ["pauseResult"];
932
+ readonly localControl: true;
842
933
  }, {
843
934
  readonly name: "pr watch";
844
935
  readonly summary: "Register durable GitHub PR monitoring for a Pane.";
@@ -1285,6 +1376,26 @@ export declare const RUNPANE_CONTRACT: {
1285
1376
  readonly name: "--clear";
1286
1377
  readonly value: "<setting,...>";
1287
1378
  readonly description: "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt.";
1379
+ }, {
1380
+ readonly name: "--env";
1381
+ readonly value: "<VAR=NAME|json>";
1382
+ readonly description: "secrets exec: inject secret NAME as VAR; repeatable. repos update: a JSON array of project variables to add or replace by key.";
1383
+ }, {
1384
+ readonly name: "--env-remove";
1385
+ readonly value: "<name,...>";
1386
+ readonly description: "Project variables to remove, comma-separated.";
1387
+ }, {
1388
+ readonly name: "--project";
1389
+ readonly value: "<project>";
1390
+ readonly description: "Pane secret project: up to 64 letters, digits, \".\", \"_\" or \"-\".";
1391
+ }, {
1392
+ readonly name: "--only";
1393
+ readonly value: "<name,...>";
1394
+ readonly description: "Secrets to inject, comma-separated. Defaults to every secret in the project.";
1395
+ }, {
1396
+ readonly name: "--reason";
1397
+ readonly value: "<text>";
1398
+ readonly description: "Why you need the secret; shown on the card.";
1288
1399
  }, {
1289
1400
  readonly name: "--epoch";
1290
1401
  readonly value: "<epoch>";
@@ -1351,7 +1462,7 @@ export declare const RUNPANE_CONTRACT: {
1351
1462
  readonly description: "Inside a Session orchestrator, do not associate the created pane with that Session.";
1352
1463
  }, {
1353
1464
  readonly name: "--force";
1354
- readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes; for lock release, release another owner's lock.";
1465
+ readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes, one of its agents is mid-turn, or a tab holds unsent input; for lock release, release another owner's lock.";
1355
1466
  }, {
1356
1467
  readonly name: "--remove-worktree";
1357
1468
  readonly description: "Also check and remove an adopted Pane's worktree when archiving it. The local branch is kept.";
@@ -1425,7 +1536,7 @@ export declare const RUNPANE_CONTRACT: {
1425
1536
  };
1426
1537
  readonly help: {
1427
1538
  readonly npm: {
1428
- 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 agents doctor --agent <codex|claude|cursor> [--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 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> [--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> [--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 [--remove-worktree] [--dry-run] --yes", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--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 last-message --panel <panel-id> [--limit <count>] [--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>|--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>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--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."];
1539
+ 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 agents doctor --agent <codex|claude|cursor> [--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 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> [--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> [--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 [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--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 close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--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>|--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>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--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."];
1429
1540
  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>"];
1430
1541
  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"];
1431
1542
  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."];
@@ -1435,22 +1546,28 @@ export declare const RUNPANE_CONTRACT: {
1435
1546
  readonly "repos list": readonly ["Usage:", " runpane repos list [--json] [--pane-dir <path>]", "", "Lists repositories saved in the running Pane app.", "", "Options:", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1436
1547
  readonly "repos add": readonly ["Usage:", " runpane repos add --path <path> [--name <name>] [--json] [--yes]", "", "Registers an existing git repository with the running Pane app.", "", "Options:", " --path <path> Existing git repository path", " --name <name> Saved repository name; defaults to the directory name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without adding the repo", " --yes Skip confirmation for mutating commands"];
1437
1548
  readonly "repos get": readonly ["Usage:", " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]", "", "Shows a saved repository's Project Settings. For the build, run, and archive scripts it shows the saved value, the fallback from the repository's config file (pane.json, conductor.json, .gitpod.yml, or devcontainer.json), and which of the two Pane will run.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name; defaults to active", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1438
- readonly "repos update": readonly ["Usage:", " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]", "", "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Repository display name", " --build-script <script> Build (setup) script; runs in each new worktree", " --run-script <script> Run script; runs on the Play button", " --archive-script <script> Archive script; runs before a worktree is removed", " --worktree-folder <path> Folder for new worktrees, absolute or relative to the repository", " --open-ide-command <command> Command the Open in IDE button runs", " --system-prompt <text> Project system prompt", " --clear <setting,...> Clear settings, e.g. run-script,archive-script; cleared scripts fall back to the repo's config file", " --from-json <path|-> Settings object: {\"runScript\": \"pnpm dev\", \"archiveScript\": null, ...}; flags override it", " --dry-run Show the result without saving", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1549
+ readonly "repos update": readonly ["Usage:", " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]", "", "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --name <name> Repository display name", " --build-script <script> Build (setup) script; runs in each new worktree", " --run-script <script> Run script; runs on the Play button", " --archive-script <script> Archive script; runs before a worktree is removed", " --worktree-folder <path> Folder for new worktrees, absolute or relative to the repository", " --open-ide-command <command> Command the Open in IDE button runs", " --system-prompt <text> Project system prompt", " --env <json> Project variables to add or replace, a JSON array: [{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://...\"}, {\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]", " --env-remove <name,...> Project variables to remove", " --clear <setting,...> Clear settings, e.g. run-script,archive-script; cleared scripts fall back to the repo's config file", " --from-json <path|-> Settings object: {\"runScript\": \"pnpm dev\", \"archiveScript\": null, \"envVars\": {\"set\": [...], \"remove\": [\"OLD\"]}, ...}; flags override it", " --dry-run Show the result without saving", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1439
1550
  readonly "repos rename": readonly ["Usage:", " runpane repos rename --repo <selector> --name <name> --yes [--json]", "", "Renames a saved repository. Only its display name changes; its path, Panes and settings stay as they are.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name", " --name <name> New non-empty repository name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
1440
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1551
+ readonly secrets: readonly ["Usage:", " runpane secrets <list|set|delete|exec|request> [options]", "", "Pane secrets are named values, addressed as <project>/<NAME>, that every machine you saved in Pane keeps a copy of.", "Agents use them only through `runpane secrets exec`, which puts them in a command's environment. No command prints a value.", "Ask the person for a new one with `runpane secrets request`; they type it on a masked card.", "", "Commands:", " 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]", "", "A project is up to 64 letters, digits, \".\", \"_\" or \"-\". A name follows environment variable rules: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved."];
1552
+ readonly "secrets list": readonly ["Usage:", " runpane secrets list [--project <project>] [--json] [--pane-dir <path>]", "", "Lists the Pane secrets on this machine: project, name, when each was last set, and on which machine. It never shows a value.", "", "Options:", " --project <project> Only this project's secrets", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1553
+ readonly "secrets set": readonly ["Usage:", " printf %s \"$VALUE\" | runpane secrets set --project <project> --name <name> --yes [--json]", "", "Saves the value on stdin as the Pane secret <project>/<name>, adding it or replacing the saved value. One trailing newline is dropped. Pane syncs it to your other machines.", "Agents should not set values they were given in chat. Ask the person with `runpane secrets request` instead.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1554
+ readonly "secrets delete": readonly ["Usage:", " runpane secrets delete --project <project> --name <name> --yes [--json]", "", "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1555
+ readonly "secrets exec": readonly ["Usage:", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...", "", "Runs the command with Pane secrets added to your environment, and exits with its exit code. Each secret is injected under its own name and overrides a variable of that name.", "With no --only, --env or --file, it injects every secret in the project.", "", "Options:", " --project <project> Secret project", " --only <name,...> Inject only these secrets", " --env <VAR=NAME> Inject secret NAME as VAR; repeatable", " --file <name> Write secret NAME to a private temp file and set NAME to its path; repeatable. The file is removed when the command exits", " --pane-dir <path> Connect to a specific Pane data directory", "", "Example:", " runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"];
1556
+ readonly "secrets request": readonly ["Usage:", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", "", "Asks the person for a secret on a masked Notify card. What they type is saved as the Pane secret <project>/<name>; you get back only \"saved\" or \"declined\". Then use it with `runpane secrets exec`.", "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --title <text> What the secret is, such as \"Stripe test secret key\"", " --reason <text> What you need it for", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1557
+ readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", " runpane panes pause|resume --pane <pane-id> --yes [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1441
1558
  readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "status is running while a tool or agent terminal is live; the dock shell does not count. agentState is the most urgent state of the live agent panels: blocked, working, ready, or none.", "", "Options:", " --repo <selector> active, id, exact path, or saved repository name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1442
1559
  readonly "panes cost": readonly ["Usage:", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", "", "Reports estimated token costs per Pane for the last 30 days, including per-model and cache-efficiency details.", "", "Options:", " --repo <selector> Limit results to one saved repository", " --pane <pane-id> Return one Pane, including an idle Pane with zero usage", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1443
1560
  readonly workspace: readonly ["Workspace commands: this machine's Panes, and your other machines over Tailscale.", "", "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 Tailscale name, unique prefix, or IP. Your own machines are reachable, and a teammate's machine when its owner set Who can connect to Everyone on tailnet.", "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'"];
1444
1561
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
1445
- 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,", " 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.", "", "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."];
1562
+ 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.", "", "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."];
1446
1563
  readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--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. 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. 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> 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 Inside a Session orchestrator, do not associate the new pane with that 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."];
1447
1564
  readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [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."];
1448
- 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 [--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.", "", "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", " --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", " --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"];
1565
+ 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 [--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.", "", "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", " --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"];
1449
1566
  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"];
1450
1567
  readonly "panes unpin": readonly ["Usage:", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively unpins 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 unpin", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without unpinning the pane", " --yes Skip confirmation for mutating commands"];
1451
1568
  readonly "panes rename": readonly ["Usage:", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Renames a Pane without changing its worktree, branch, panels, or focus. The name is trimmed like the Pane UI. Use --dry-run to validate and preview the updated pane without mutating.", "", "Options:", " --pane <pane-id> Pane/session id to rename", " --name <new-name> New non-empty Pane/session name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Validate and preview without renaming the pane", " --yes Skip confirmation for mutating commands"];
1452
1569
  readonly "panes focus": readonly ["Usage:", " runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json]", "", "Raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Steals window focus, so run it only on an explicit user request to open, focus, or show a Pane, never proactively.", "", "Options:", " --pane <pane-id> Pane/session id to focus", " --panel <panel-id> Optional panel/tab id inside the Pane to select", " --source <user|agent> Mutation source; does not change focus behavior", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
1453
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--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 last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1570
+ readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--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 close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1454
1571
  readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "resumeId is the saved agent session ID that reopens the panel; resumeSource says which rule uses it: agent-farm, configured, or agent.", "", "Options:", " --pane <pane-id> Pane/session id", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1455
1572
  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"];
1456
1573
  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"];
@@ -1494,11 +1611,12 @@ export declare const RUNPANE_CONTRACT: {
1494
1611
  readonly "agents start": readonly ["Usage:", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", "", "Start an agent on a task and wait until it is ready: as a new tab in an existing Pane with --pane <id> (review, audit, fix, QA), or in a new Pane with --repo and --name for new work.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name.", " --name <name> Name for the new Pane.", " --agent <codex|claude|cursor> Built-in agent to launch.", " --tool-command <command> Custom terminal command instead of a built-in agent.", " --prompt <task> The task to send once the agent is ready.", " --base-branch <branch> Branch to start the worktree from.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
1495
1612
  readonly "agents status": readonly ["Usage:", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", "", "Check on an agent: whether it is working, ready, blocked, or idle, plus its current screen.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --limit <count> Screen lines to return; defaults to 40.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
1496
1613
  readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] [--no-expect-report] --yes [--json] [--pane-dir <path>]", "", "Send a follow-up message to an agent and confirm it was submitted.", "", "Options:", " --pane <pane-id> Pane id; its agent panel is used.", " --panel <panel-id> Panel id.", " --text <message> The message to submit.", " --as-file-pointer Write the message to a prompt file and send `Read and follow <path>`.", " --no-expect-report Send a reply (an answer or an addition to current work): it reaches a worker that still owes a report.", " --yes Confirm this change; required in non-interactive shells.", " --json Print machine-readable output.", " --pane-dir <path> Connect to a specific Pane data directory."];
1497
- readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1614
+ readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1498
1615
  readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "It prints how many watches were waiting and received it (\"Delivered to 1 waiting watcher.\"). With no Session and", "nobody waiting, the report is still stored: a named-cursor watch receives it when it next waits.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
1499
1616
  readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"];
1500
- readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
1617
+ readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "A paused panel resumes and loses its paused mark.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
1501
1618
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1619
+ readonly "panels close": readonly ["Close a tab in a Pane, stopping its process, as closing the tab in the app does.", "", "Usage:", " runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:", "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.", "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.", "", "Options:", " --panel <panel-id> Panel id, from runpane panels list", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels close --panel <panel-id> --yes --json"];
1502
1620
  readonly lock: readonly ["Usage:", " runpane lock <acquire|release|list> [options]", "", "Named locks coordinate a resource shared between agents, such as one test account.", "The caller is the owner: the Pane and panel from $PANE_SESSION_ID and $PANE_PANEL_ID.", "A lock is scoped to the owner's Session when its Pane belongs to one; otherwise it is global.", "It is released on --ttl expiry, when the owner panel exits, or when the owner Pane is archived."];
1503
1621
  readonly "lock acquire": readonly ["Usage:", "runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1504
1622
  readonly "lock release": readonly ["Usage:", "runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
@@ -1525,9 +1643,14 @@ export declare const RUNPANE_CONTRACT: {
1525
1643
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1526
1644
  readonly inbox: readonly ["Usage:", " runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]", "", "Lists what a Session's orchestrator has not acknowledged: worker reports (agent.report),", "missing reports (agent.report.missing), and questions waiting on a worker's screen", "(agent.blocked; these clear themselves once the worker moves on). Pane keeps them across", "restarts. An orchestrator reads it when it starts or resumes, to catch what finished while it was down.", "", "Options:", " --session <id|name> Session; defaults to PANE_ORCHESTRATION_SESSION_ID", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Clear handled items with `runpane inbox ack <item-id>...`."];
1527
1645
  readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--session <id|name>] [--json] [--pane-dir <path>]", " runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]", "", "Clears Session inbox items. Ids that match nothing are listed as unknown; acknowledging twice is harmless.", "", "Options:", " --session <id|name> Only clear items of this Session; required with --all", " --all Clear every item of the Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1646
+ readonly "panels pause": readonly ["Usage:", " runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Pauses one terminal tab: stops its process and marks it paused until", "`runpane panels resume --panel <panel-id>`, or its Pane or Session, resumes it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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:", " --panel <panel-id> Terminal panel id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1647
+ readonly "panes pause": readonly ["Usage:", " runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Pauses every terminal tab of a Pane, run scripts included, until `runpane panes resume`", "resumes it. A Pane is paused while all of its terminal tabs are; `panes list` reports it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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:", " --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"];
1648
+ 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"];
1649
+ readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,", "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 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"];
1650
+ 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"];
1528
1651
  };
1529
1652
  readonly pip: {
1530
- 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 agents doctor --agent <codex|claude|cursor> [--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 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> [--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 [--remove-worktree] [--dry-run] --yes", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--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 last-message --panel <panel-id> [--limit <count>] [--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>|--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>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--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."];
1653
+ 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 agents doctor --agent <codex|claude|cursor> [--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> [--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 [--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> [--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 close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--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>|--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>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--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."];
1531
1654
  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>"];
1532
1655
  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"];
1533
1656
  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."];
@@ -1537,22 +1660,28 @@ export declare const RUNPANE_CONTRACT: {
1537
1660
  readonly "repos list": readonly ["Usage:", " runpane repos list [--json] [--pane-dir <path>]", "", "Lists repositories saved in the running Pane app.", "", "Options:", " --json", " --pane-dir <path>"];
1538
1661
  readonly "repos add": readonly ["Usage:", " runpane repos add --path <path> [--name <name>] [--json] [--yes]", "", "Registers an existing git repository with the running Pane app.", "", "Options:", " --path <path>", " --name <name>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1539
1662
  readonly "repos get": readonly ["Usage:", " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]", "", "Shows a saved repository's Project Settings. For the build, run, and archive scripts it shows the saved value, the fallback from the repository's config file (pane.json, conductor.json, .gitpod.yml, or devcontainer.json), and which of the two Pane will run.", "", "Options:", " --repo <selector>", " --json", " --pane-dir <path>"];
1540
- readonly "repos update": readonly ["Usage:", " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]", "", "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.", "", "Options:", " --repo <selector>", " --name <name>", " --build-script <script>", " --run-script <script>", " --archive-script <script>", " --worktree-folder <path>", " --open-ide-command <command>", " --system-prompt <text>", " --clear <setting,...>", " --from-json <path|->", " --dry-run", " --yes", " --json", " --pane-dir <path>"];
1663
+ readonly "repos update": readonly ["Usage:", " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]", "", "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.", "", "Options:", " --repo <selector>", " --name <name>", " --build-script <script>", " --run-script <script>", " --archive-script <script>", " --worktree-folder <path>", " --open-ide-command <command>", " --system-prompt <text>", " --env <json>", " --env-remove <name,...>", " --clear <setting,...>", " --from-json <path|->", " --dry-run", " --yes", " --json", " --pane-dir <path>"];
1541
1664
  readonly "repos rename": readonly ["Usage:", " runpane repos rename --repo <selector> --name <name> --yes [--json]", "", "Renames a saved repository. Only its display name changes; its path, Panes and settings stay as they are.", "", "Options:", " --repo <selector> Repository: active, id, exact path, or saved name", " --name <name> New non-empty repository name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands"];
1542
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1665
+ readonly secrets: readonly ["Usage:", " python -m runpane secrets <list|set|delete|exec|request> [options]", "", "Pane secrets are named values, addressed as <project>/<NAME>, that every machine you saved in Pane keeps a copy of.", "Agents use them only through `runpane secrets exec`, which puts them in a command's environment. No command prints a value.", "Ask the person for a new one with `runpane secrets request`; they type it on a masked card.", "", "Commands:", " python -m runpane secrets list [--project <project>] [--json]", " python -m runpane secrets set --project <project> --name <name> --yes (value on stdin)", " python -m runpane secrets delete --project <project> --name <name> --yes", " python -m runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " python -m runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", "", "A project is up to 64 letters, digits, \".\", \"_\" or \"-\". A name follows environment variable rules: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved."];
1666
+ readonly "secrets list": readonly ["Usage:", " python -m runpane secrets list [--project <project>] [--json] [--pane-dir <path>]", "", "Lists the Pane secrets on this machine: project, name, when each was last set, and on which machine. It never shows a value.", "", "Options:", " --project <project> Only this project's secrets", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1667
+ readonly "secrets set": readonly ["Usage:", " printf %s \"$VALUE\" | python -m runpane secrets set --project <project> --name <name> --yes [--json]", "", "Saves the value on stdin as the Pane secret <project>/<name>, adding it or replacing the saved value. One trailing newline is dropped. Pane syncs it to your other machines.", "Agents should not set values they were given in chat. Ask the person with `runpane secrets request` instead.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1668
+ readonly "secrets delete": readonly ["Usage:", " python -m runpane secrets delete --project <project> --name <name> --yes [--json]", "", "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1669
+ readonly "secrets exec": readonly ["Usage:", " python -m runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...", "", "Runs the command with Pane secrets added to your environment, and exits with its exit code. Each secret is injected under its own name and overrides a variable of that name.", "With no --only, --env or --file, it injects every secret in the project.", "", "Options:", " --project <project> Secret project", " --only <name,...> Inject only these secrets", " --env <VAR=NAME> Inject secret NAME as VAR; repeatable", " --file <name> Write secret NAME to a private temp file and set NAME to its path; repeatable. The file is removed when the command exits", " --pane-dir <path> Connect to a specific Pane data directory", "", "Example:", " python -m runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"];
1670
+ readonly "secrets request": readonly ["Usage:", " python -m runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", "", "Asks the person for a secret on a masked Notify card. What they type is saved as the Pane secret <project>/<name>; you get back only \"saved\" or \"declined\". Then use it with `runpane secrets exec`.", "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --title <text> What the secret is, such as \"Stripe test secret key\"", " --reason <text> What you need it for", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1671
+ readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", " runpane panes pause|resume --pane <pane-id> --yes [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1543
1672
  readonly "panes list": readonly ["Usage:", " runpane panes list [--repo <selector>] [--json]", "", "Lists Pane sessions. Pass --repo to limit results to one saved repository.", "", "status is running while a tool or agent terminal is live; the dock shell does not count. agentState is the most urgent state of the live agent panels: blocked, working, ready, or none.", "", "Options:", " --repo <selector>", " --pane-dir <path>", " --json"];
1544
1673
  readonly "panes cost": readonly ["Usage:", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", "", "Reports estimated token costs per Pane for the last 30 days, including per-model and cache-efficiency details.", "", "Options:", " --repo <selector>", " --pane <pane-id>", " --pane-dir <path>", " --json"];
1545
1674
  readonly workspace: readonly ["Workspace commands: this machine's Panes, and your other machines over Tailscale.", "", "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"];
1546
1675
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
1547
- 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,", " 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.", "", "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."];
1676
+ 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.", "", "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."];
1548
1677
  readonly "panes create": readonly ["Usage:", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base <ref>] [--branch <name>] [--prompt-file <path|->] [options]", " python -m runpane panes create --repo <selector> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [--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. 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. 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> 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 Inside a Session orchestrator, do not associate the new pane with that 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."];
1549
1678
  readonly "panes adopt": readonly ["Usage:", " runpane panes adopt --repo <selector> --path <dir> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes adopt --repo <selector> --path <dir> --name <name> --tool-command <command> [--agent <codex|claude|cursor>] [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."];
1550
- 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 [--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.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1679
+ 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 [--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.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1551
1680
  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"];
1552
1681
  readonly "panes unpin": readonly ["Usage:", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", "", "Declaratively unpins 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"];
1553
1682
  readonly "panes rename": readonly ["Usage:", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", "", "Renames a Pane without changing its worktree, branch, panels, or focus. The name is trimmed like the Pane UI. Use --dry-run to validate and preview the updated pane without mutating.", "", "Options:", " --pane <pane-id>", " --name <new-name>", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1554
1683
  readonly "panes focus": readonly ["Usage:", " runpane panes focus --pane <pane-id> [--panel <panel-id>] --source user|agent --yes [--json]", "", "Raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Steals window focus, so run it only on an explicit user request to open, focus, or show a Pane, never proactively.", "", "Options:", " --pane <pane-id>", " --panel <panel-id>", " --source <user|agent>", " --pane-dir <path>", " --json", " --yes"];
1555
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--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 last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1684
+ readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--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 close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1556
1685
  readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "resumeId is the saved agent session ID that reopens the panel; resumeSource says which rule uses it: agent-farm, configured, or agent.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json"];
1557
1686
  readonly "panels output": readonly ["Usage:", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", "", "Reads recent terminal output records from a panel.", "", "Options:", " --panel <panel-id>", " --limit <count>", " --pane-dir <path>", " --json"];
1558
1687
  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>", " --text <text>", " --keys <name,...> Keys to press: enter, escape, tab, up, down, ctrl-c, ...", " --input-file <path|->", " --pane-dir <path>", " --json", " --yes"];
@@ -1596,11 +1725,12 @@ export declare const RUNPANE_CONTRACT: {
1596
1725
  readonly "agents start": readonly ["Usage:", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", "", "`runpane agents start` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents start"];
1597
1726
  readonly "agents status": readonly ["Usage:", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", "", "`runpane agents status` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents status"];
1598
1727
  readonly "agents send": readonly ["Usage:", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> [--as-file-pointer] [--no-expect-report] --yes [--json] [--pane-dir <path>]", "", "`runpane agents send` ships in the npm package and the Pane app, not in the Python package.", "Run it with Node instead: npx --yes runpane@latest agents send"];
1599
- readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1728
+ readonly sessions: readonly ["Usage:", " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]", "", "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."];
1600
1729
  readonly report: readonly ["Usage:", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text>] [--pane <pane-id> --panel <panel-id>] [--json] [--pane-dir <path>]", "", "Hands back a worker's structured report for its panel: the orchestrator receives it as an", "agent.report watch event and reads it in `agents status` and `sessions overview`.", "Inside a Pane terminal the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "It prints how many watches were waiting and received it (\"Delivered to 1 waiting watcher.\"). With no Session and", "nobody waiting, the report is still stored: a named-cursor watch receives it when it next waits.", "", "Options:", " --state <state> ready, blocked, failed, or done", " --pr <number> Pull request number", " --head <sha> Head commit, 7-40 hex characters", " --summary <text> Summary text; up to 16,000 characters are kept", " --summary-file <path|-> Read the summary from a file or stdin", " --question <text> What you need answered; required with --state blocked", " --pane <pane-id> Pane id when not running inside a Pane terminal", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"];
1601
1730
  readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"];
1602
- readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
1731
+ readonly "panels resume": readonly ["Usage:", " runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]", " runpane panels resume (--session <id|name>|--all-stopped) [--wait-ready] [--ready-timeout-ms <ms>] [--concurrency <count>] --yes [--json] [--pane-dir <path>]", "", "Restarts a stopped terminal panel in the same panel, keeping its panel id. An agent panel", "relaunches with its resume command (Claude --resume <session>, codex resume <session>, Cursor", "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel", "whose agent exited back to its shell counts as stopped: its saved command runs again in that", "shell. A panel that is already running is left alone and reported as already-running.", "A paused panel resumes and loses its paused mark.", "", "With --session or --all-stopped it resumes every stopped agent panel in that scope (a", "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,", "and returns one result per panel. With --wait-ready the resumed panels then wait together,", "and each result carries its own readiness and blocker. One panel failing does not stop the others.", "", "Options:", " --panel <panel-id> Terminal panel id", " --session <id|name> Resume the stopped agent panels of this Session's associated Panes", " --all-stopped Resume the stopped agent panels of every Pane", " --concurrency <count> Panels restarted at once for --session or --all-stopped; defaults to 3, at most 10", " --wait-ready Wait until the resumed agent is ready; startup prompts come back as readiness.blocked", " --ready-timeout-ms <ms> Readiness wait timeout; resumed panels wait together; defaults to 30000", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels resume --panel <panel-id> --wait-ready --yes --json", " runpane panels resume --session <id|name> --wait-ready --yes --json"];
1603
1732
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1733
+ readonly "panels close": readonly ["Close a tab in a Pane, stopping its process, as closing the tab in the app does.", "", "Usage:", " python -m runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:", "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.", "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.", "", "Options:", " --panel <panel-id> Panel id, from runpane panels list", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " python -m runpane panels close --panel <panel-id> --yes --json"];
1604
1734
  readonly lock: readonly ["Usage:", " python -m runpane lock <acquire|release|list> [options]", "", "Named locks coordinate a resource shared between agents, such as one test account.", "The caller is the owner: the Pane and panel from $PANE_SESSION_ID and $PANE_PANEL_ID.", "A lock is scoped to the owner's Session when its Pane belongs to one; otherwise it is global.", "It is released on --ttl expiry, when the owner panel exits, or when the owner Pane is archived."];
1605
1735
  readonly "lock acquire": readonly ["Usage:", "python -m runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
1606
1736
  readonly "lock release": readonly ["Usage:", "python -m runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
@@ -1627,6 +1757,11 @@ export declare const RUNPANE_CONTRACT: {
1627
1757
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1628
1758
  readonly inbox: readonly ["Usage:", " runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]", "", "Lists what a Session's orchestrator has not acknowledged: worker reports (agent.report),", "missing reports (agent.report.missing), and questions waiting on a worker's screen", "(agent.blocked; these clear themselves once the worker moves on). Pane keeps them across", "restarts. An orchestrator reads it when it starts or resumes, to catch what finished while it was down.", "", "Options:", " --session <id|name> Session; defaults to PANE_ORCHESTRATION_SESSION_ID", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Clear handled items with `runpane inbox ack <item-id>...`."];
1629
1759
  readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--session <id|name>] [--json] [--pane-dir <path>]", " runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]", "", "Clears Session inbox items. Ids that match nothing are listed as unknown; acknowledging twice is harmless.", "", "Options:", " --session <id|name> Only clear items of this Session; required with --all", " --all Clear every item of the Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1760
+ readonly "panels pause": readonly ["Usage:", " runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Pauses one terminal tab: stops its process and marks it paused until", "`runpane panels resume --panel <panel-id>`, or its Pane or Session, resumes it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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:", " --panel <panel-id> Terminal panel id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1761
+ readonly "panes pause": readonly ["Usage:", " runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Pauses every terminal tab of a Pane, run scripts included, until `runpane panes resume`", "resumes it. A Pane is paused while all of its terminal tabs are; `panes list` reports it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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:", " --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"];
1762
+ 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"];
1763
+ readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,", "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 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"];
1764
+ 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"];
1630
1765
  };
1631
1766
  };
1632
1767
  readonly docs: {
@@ -1635,8 +1770,8 @@ export declare const RUNPANE_CONTRACT: {
1635
1770
  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\""];
1636
1771
  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\""];
1637
1772
  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."];
1638
- 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 rename --repo 3 --name Lev --yes --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> [--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 resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --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>]"];
1639
- 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` 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`, and clears settings with `--clear`.", "`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 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. Inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` set), new Panes are associated with that Session automatically; `--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 and OpenCode 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.", "`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 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), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. 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. 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). `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items. 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. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope, `--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 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.", "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 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."];
1773
+ 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> [--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 resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panels close --panel <panel-id> --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>]"];
1774
+ 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` 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. Inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` set), new Panes are associated with that Session automatically; `--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 and OpenCode 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.", "`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 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), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. 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. 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). `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items. 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. A paused 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, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input in its tabs or the last time the person selected it; `panels list` reports each tab's `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.", "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 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."];
1640
1775
  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.";
1641
1776
  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 ...'`.";
1642
1777
  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.";
@@ -1644,7 +1779,7 @@ export declare const RUNPANE_CONTRACT: {
1644
1779
  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."];
1645
1780
  };
1646
1781
  readonly testFixtures: {
1647
- 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 ["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 ["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", "--resume", "n-1", "--json"]];
1782
+ 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 ["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", "--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"]];
1648
1783
  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:"];
1649
1784
  readonly npmHelpIncludes: readonly ["pnpm dlx runpane@latest", "npx --yes runpane@latest", "runpane loops list"];
1650
1785
  readonly pipHelpIncludes: readonly ["pipx run runpane", "python -m pip install runpane && python -m runpane setup", "python -m runpane loops list"];
@@ -2282,7 +2417,7 @@ export declare const RUNPANE_CONTRACT: {
2282
2417
  readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2283
2418
  };
2284
2419
  readonly settings: {
2285
- readonly $ref: "#/$defs/settings";
2420
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/settings";
2286
2421
  };
2287
2422
  };
2288
2423
  readonly additionalProperties: false;
@@ -2309,14 +2444,14 @@ export declare const RUNPANE_CONTRACT: {
2309
2444
  };
2310
2445
  readonly fallback: {
2311
2446
  readonly anyOf: readonly [{
2312
- readonly $ref: "#/$defs/scriptSource";
2447
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSource";
2313
2448
  }, {
2314
2449
  readonly type: "null";
2315
2450
  }];
2316
2451
  };
2317
2452
  readonly effective: {
2318
2453
  readonly anyOf: readonly [{
2319
- readonly $ref: "#/$defs/scriptSource";
2454
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSource";
2320
2455
  }, {
2321
2456
  readonly type: "null";
2322
2457
  }];
@@ -2326,7 +2461,7 @@ export declare const RUNPANE_CONTRACT: {
2326
2461
  };
2327
2462
  readonly settings: {
2328
2463
  readonly type: "object";
2329
- readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript"];
2464
+ readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript", "envVars"];
2330
2465
  readonly properties: {
2331
2466
  readonly name: {
2332
2467
  readonly type: "string";
@@ -2350,13 +2485,19 @@ export declare const RUNPANE_CONTRACT: {
2350
2485
  readonly type: readonly ["string", "null"];
2351
2486
  };
2352
2487
  readonly buildScript: {
2353
- readonly $ref: "#/$defs/scriptSetting";
2488
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2354
2489
  };
2355
2490
  readonly runScript: {
2356
- readonly $ref: "#/$defs/scriptSetting";
2491
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2357
2492
  };
2358
2493
  readonly archiveScript: {
2359
- readonly $ref: "#/$defs/scriptSetting";
2494
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2495
+ };
2496
+ readonly envVars: {
2497
+ readonly type: "array";
2498
+ readonly items: {
2499
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
2500
+ };
2360
2501
  };
2361
2502
  };
2362
2503
  readonly additionalProperties: false;
@@ -2400,6 +2541,27 @@ export declare const RUNPANE_CONTRACT: {
2400
2541
  readonly systemPrompt: {
2401
2542
  readonly type: readonly ["string", "null"];
2402
2543
  };
2544
+ readonly envVars: {
2545
+ readonly type: "object";
2546
+ readonly description: "set adds or replaces variables by key; remove deletes them by key.";
2547
+ readonly minProperties: 1;
2548
+ readonly properties: {
2549
+ readonly set: {
2550
+ readonly type: "array";
2551
+ readonly items: {
2552
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
2553
+ };
2554
+ };
2555
+ readonly remove: {
2556
+ readonly type: "array";
2557
+ readonly items: {
2558
+ readonly type: "string";
2559
+ readonly minLength: 1;
2560
+ };
2561
+ };
2562
+ };
2563
+ readonly additionalProperties: false;
2564
+ };
2403
2565
  };
2404
2566
  readonly additionalProperties: false;
2405
2567
  };
@@ -2422,121 +2584,243 @@ export declare const RUNPANE_CONTRACT: {
2422
2584
  readonly changed: {
2423
2585
  readonly type: "array";
2424
2586
  readonly items: {
2425
- readonly enum: readonly ["name", "buildScript", "runScript", "archiveScript", "worktreeFolder", "openIdeCommand", "systemPrompt"];
2587
+ readonly enum: readonly ["name", "buildScript", "runScript", "archiveScript", "worktreeFolder", "openIdeCommand", "systemPrompt", "envVars"];
2426
2588
  };
2427
2589
  };
2428
2590
  readonly repo: {
2429
2591
  readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2430
2592
  };
2431
2593
  readonly settings: {
2432
- readonly $ref: "#/$defs/settings";
2594
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/settings";
2433
2595
  };
2434
2596
  };
2435
2597
  readonly additionalProperties: false;
2436
- readonly $defs: {
2437
- readonly scriptSource: {
2438
- readonly type: "object";
2439
- readonly required: readonly ["command", "source"];
2440
- readonly properties: {
2441
- readonly command: {
2442
- readonly type: "string";
2443
- };
2444
- readonly source: {
2445
- readonly type: "string";
2446
- };
2447
- };
2448
- readonly additionalProperties: false;
2598
+ };
2599
+ readonly repoRenameRequest: {
2600
+ readonly type: "object";
2601
+ readonly required: readonly ["repo", "name"];
2602
+ readonly properties: {
2603
+ readonly repo: {
2604
+ readonly type: "string";
2449
2605
  };
2450
- readonly scriptSetting: {
2451
- readonly type: "object";
2452
- readonly required: readonly ["value", "fallback", "effective"];
2453
- readonly properties: {
2454
- readonly value: {
2455
- readonly type: readonly ["string", "null"];
2456
- };
2457
- readonly fallback: {
2458
- readonly anyOf: readonly [{
2459
- readonly $ref: "#/$defs/scriptSource";
2460
- }, {
2461
- readonly type: "null";
2462
- }];
2463
- };
2464
- readonly effective: {
2465
- readonly anyOf: readonly [{
2466
- readonly $ref: "#/$defs/scriptSource";
2467
- }, {
2468
- readonly type: "null";
2469
- }];
2470
- };
2606
+ readonly name: {
2607
+ readonly type: "string";
2608
+ readonly minLength: 1;
2609
+ };
2610
+ };
2611
+ readonly additionalProperties: false;
2612
+ };
2613
+ readonly repoRenameResult: {
2614
+ readonly type: "object";
2615
+ readonly required: readonly ["ok", "repo"];
2616
+ readonly properties: {
2617
+ readonly ok: {
2618
+ readonly const: true;
2619
+ };
2620
+ readonly repo: {
2621
+ readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2622
+ };
2623
+ };
2624
+ readonly additionalProperties: false;
2625
+ };
2626
+ readonly secretSummary: {
2627
+ readonly type: "object";
2628
+ readonly required: readonly ["project", "name", "updatedAt", "machine"];
2629
+ readonly properties: {
2630
+ readonly project: {
2631
+ readonly type: "string";
2632
+ };
2633
+ readonly name: {
2634
+ readonly type: "string";
2635
+ };
2636
+ readonly updatedAt: {
2637
+ readonly type: "string";
2638
+ readonly description: "ISO time it was last set.";
2639
+ };
2640
+ readonly machine: {
2641
+ readonly type: "string";
2642
+ readonly description: "The machine where it was last set.";
2643
+ };
2644
+ };
2645
+ readonly additionalProperties: false;
2646
+ };
2647
+ readonly secretListRequest: {
2648
+ readonly type: "object";
2649
+ readonly properties: {
2650
+ readonly project: {
2651
+ readonly type: "string";
2652
+ };
2653
+ };
2654
+ readonly additionalProperties: false;
2655
+ };
2656
+ readonly secretListResult: {
2657
+ readonly type: "object";
2658
+ readonly required: readonly ["ok", "secrets", "storage"];
2659
+ readonly properties: {
2660
+ readonly ok: {
2661
+ readonly const: true;
2662
+ };
2663
+ readonly secrets: {
2664
+ readonly type: "array";
2665
+ readonly items: {
2666
+ readonly $ref: "#/jsonSchemas/secretSummary";
2471
2667
  };
2472
- readonly additionalProperties: false;
2473
2668
  };
2474
- readonly settings: {
2669
+ readonly storage: {
2475
2670
  readonly type: "object";
2476
- readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript"];
2671
+ readonly description: "Where this machine keeps values. encrypted is false only for the file store on a machine without an OS keyring.";
2672
+ readonly required: readonly ["kind", "encrypted"];
2477
2673
  readonly properties: {
2478
- readonly name: {
2479
- readonly type: "string";
2480
- };
2481
- readonly path: {
2482
- readonly type: "string";
2483
- };
2484
- readonly currentBranch: {
2485
- readonly type: readonly ["string", "null"];
2486
- };
2487
- readonly worktreeFolder: {
2488
- readonly type: readonly ["string", "null"];
2489
- };
2490
- readonly openIdeCommand: {
2491
- readonly type: readonly ["string", "null"];
2492
- };
2493
- readonly systemPrompt: {
2494
- readonly type: readonly ["string", "null"];
2495
- };
2496
- readonly configFile: {
2497
- readonly type: readonly ["string", "null"];
2498
- };
2499
- readonly buildScript: {
2500
- readonly $ref: "#/$defs/scriptSetting";
2501
- };
2502
- readonly runScript: {
2503
- readonly $ref: "#/$defs/scriptSetting";
2674
+ readonly kind: {
2675
+ readonly enum: readonly ["keychain", "file"];
2504
2676
  };
2505
- readonly archiveScript: {
2506
- readonly $ref: "#/$defs/scriptSetting";
2677
+ readonly encrypted: {
2678
+ readonly type: "boolean";
2507
2679
  };
2508
2680
  };
2509
2681
  readonly additionalProperties: false;
2510
2682
  };
2511
2683
  };
2684
+ readonly additionalProperties: false;
2512
2685
  };
2513
- readonly repoRenameRequest: {
2686
+ readonly secretSetRequest: {
2687
+ readonly description: "What `runpane secrets set` sends on runpane:secrets:set. value comes from stdin.";
2514
2688
  readonly type: "object";
2515
- readonly required: readonly ["repo", "name"];
2689
+ readonly required: readonly ["project", "name", "value"];
2516
2690
  readonly properties: {
2517
- readonly repo: {
2691
+ readonly project: {
2518
2692
  readonly type: "string";
2693
+ readonly minLength: 1;
2519
2694
  };
2520
2695
  readonly name: {
2521
2696
  readonly type: "string";
2522
2697
  readonly minLength: 1;
2523
2698
  };
2699
+ readonly value: {
2700
+ readonly type: "string";
2701
+ readonly minLength: 1;
2702
+ };
2524
2703
  };
2525
2704
  readonly additionalProperties: false;
2526
2705
  };
2527
- readonly repoRenameResult: {
2706
+ readonly secretSetResult: {
2528
2707
  readonly type: "object";
2529
- readonly required: readonly ["ok", "repo"];
2708
+ readonly required: readonly ["ok", "replaced", "secret"];
2530
2709
  readonly properties: {
2531
2710
  readonly ok: {
2532
2711
  readonly const: true;
2533
2712
  };
2534
- readonly repo: {
2535
- readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2713
+ readonly replaced: {
2714
+ readonly type: "boolean";
2715
+ };
2716
+ readonly secret: {
2717
+ readonly $ref: "#/jsonSchemas/secretSummary";
2536
2718
  };
2537
2719
  };
2538
2720
  readonly additionalProperties: false;
2539
2721
  };
2722
+ readonly secretDeleteRequest: {
2723
+ readonly type: "object";
2724
+ readonly required: readonly ["project", "name"];
2725
+ readonly properties: {
2726
+ readonly project: {
2727
+ readonly type: "string";
2728
+ readonly minLength: 1;
2729
+ };
2730
+ readonly name: {
2731
+ readonly type: "string";
2732
+ readonly minLength: 1;
2733
+ };
2734
+ };
2735
+ readonly additionalProperties: false;
2736
+ };
2737
+ readonly secretDeleteResult: {
2738
+ readonly type: "object";
2739
+ readonly required: readonly ["ok", "deleted"];
2740
+ readonly properties: {
2741
+ readonly ok: {
2742
+ readonly const: true;
2743
+ };
2744
+ readonly deleted: {
2745
+ readonly type: "object";
2746
+ readonly required: readonly ["project", "name"];
2747
+ readonly properties: {
2748
+ readonly project: {
2749
+ readonly type: "string";
2750
+ };
2751
+ readonly name: {
2752
+ readonly type: "string";
2753
+ };
2754
+ };
2755
+ readonly additionalProperties: false;
2756
+ };
2757
+ };
2758
+ readonly additionalProperties: false;
2759
+ };
2760
+ readonly projectEnvVar: {
2761
+ readonly description: "A project environment variable. Plain values are shown in full; keychain and Pane secret variables are references, never values.";
2762
+ readonly oneOf: readonly [{
2763
+ readonly type: "object";
2764
+ readonly required: readonly ["key", "source", "value"];
2765
+ readonly properties: {
2766
+ readonly key: {
2767
+ readonly type: "string";
2768
+ readonly minLength: 1;
2769
+ };
2770
+ readonly source: {
2771
+ readonly const: "plain";
2772
+ };
2773
+ readonly value: {
2774
+ readonly type: "string";
2775
+ };
2776
+ };
2777
+ readonly additionalProperties: false;
2778
+ }, {
2779
+ readonly type: "object";
2780
+ readonly description: "An existing macOS keychain generic-password item.";
2781
+ readonly required: readonly ["key", "source", "service", "account"];
2782
+ readonly properties: {
2783
+ readonly key: {
2784
+ readonly type: "string";
2785
+ readonly minLength: 1;
2786
+ };
2787
+ readonly source: {
2788
+ readonly const: "keychain";
2789
+ };
2790
+ readonly service: {
2791
+ readonly type: "string";
2792
+ readonly minLength: 1;
2793
+ };
2794
+ readonly account: {
2795
+ readonly type: "string";
2796
+ readonly minLength: 1;
2797
+ };
2798
+ };
2799
+ readonly additionalProperties: false;
2800
+ }, {
2801
+ readonly type: "object";
2802
+ readonly description: "The Pane secret project/name.";
2803
+ readonly required: readonly ["key", "source", "project", "name"];
2804
+ readonly properties: {
2805
+ readonly key: {
2806
+ readonly type: "string";
2807
+ readonly minLength: 1;
2808
+ };
2809
+ readonly source: {
2810
+ readonly const: "secret";
2811
+ };
2812
+ readonly project: {
2813
+ readonly type: "string";
2814
+ readonly minLength: 1;
2815
+ };
2816
+ readonly name: {
2817
+ readonly type: "string";
2818
+ readonly minLength: 1;
2819
+ };
2820
+ };
2821
+ readonly additionalProperties: false;
2822
+ }];
2823
+ };
2540
2824
  readonly paneCreateRequest: {
2541
2825
  readonly type: "object";
2542
2826
  readonly required: readonly ["repo", "panes"];
@@ -3067,6 +3351,14 @@ export declare const RUNPANE_CONTRACT: {
3067
3351
  readonly lastActivity: {
3068
3352
  readonly type: "string";
3069
3353
  };
3354
+ readonly inactiveSince: {
3355
+ readonly type: "string";
3356
+ readonly description: "When the Pane was last used: the latest terminal output or input in its tabs, or the last time the person selected it (ISO 8601).";
3357
+ };
3358
+ readonly paused: {
3359
+ readonly $ref: "#/jsonSchemas/pausedMark";
3360
+ readonly description: "Set while every terminal tab of the Pane is paused: the latest tab's mark.";
3361
+ };
3070
3362
  readonly archived: {
3071
3363
  readonly type: "boolean";
3072
3364
  };
@@ -3352,7 +3644,7 @@ export declare const RUNPANE_CONTRACT: {
3352
3644
  readonly type: "string";
3353
3645
  };
3354
3646
  readonly kind: {
3355
- readonly enum: readonly ["agent.ready", "agent.busy", "agent.blocked", "agent.unknown", "agent.idle", "pane.created", "pane.gone", "panel.exited", "panel.stopped", "agent.report", "agent.report.missing", "pane.associated", "pane.detached", "pr.conflicted", "pr.checks", "pr.merged", "pr.closed", "pr.head", "pr.base_changed", "pr.base_deleted", "pr.review", "pr.comment", "pr.stopped", "github.unavailable", "github.recovered"];
3647
+ readonly enum: readonly ["agent.ready", "agent.busy", "agent.blocked", "agent.unknown", "agent.idle", "pane.created", "pane.gone", "panel.exited", "panel.stopped", "panel.paused", "panel.unpaused", "agent.report", "agent.report.missing", "pane.associated", "pane.detached", "pr.conflicted", "pr.checks", "pr.merged", "pr.closed", "pr.head", "pr.base_changed", "pr.base_deleted", "pr.review", "pr.comment", "pr.stopped", "github.unavailable", "github.recovered"];
3356
3648
  };
3357
3649
  readonly paneId: {
3358
3650
  readonly type: "string";
@@ -4011,6 +4303,46 @@ export declare const RUNPANE_CONTRACT: {
4011
4303
  };
4012
4304
  readonly additionalProperties: false;
4013
4305
  };
4306
+ readonly busyAgents: {
4307
+ readonly type: "array";
4308
+ readonly description: "Agents in the Pane that are mid-turn (working) or waiting for an answer (blocked). Archiving would stop them, so archive refuses with agent-busy unless --force.";
4309
+ readonly items: {
4310
+ readonly type: "object";
4311
+ readonly required: readonly ["panelId", "title", "state"];
4312
+ readonly properties: {
4313
+ readonly panelId: {
4314
+ readonly type: "string";
4315
+ };
4316
+ readonly title: {
4317
+ readonly type: "string";
4318
+ };
4319
+ readonly state: {
4320
+ readonly enum: readonly ["working", "blocked"];
4321
+ };
4322
+ };
4323
+ readonly additionalProperties: false;
4324
+ };
4325
+ };
4326
+ readonly unsentInput: {
4327
+ readonly type: "array";
4328
+ readonly description: "Tabs holding input a person typed that archiving would lose: an agent composer's unsent text or an editor's unsaved edits. Archive refuses with unsent-input unless --force.";
4329
+ readonly items: {
4330
+ readonly type: "object";
4331
+ readonly required: readonly ["panelId", "title", "kind"];
4332
+ readonly properties: {
4333
+ readonly panelId: {
4334
+ readonly type: "string";
4335
+ };
4336
+ readonly title: {
4337
+ readonly type: "string";
4338
+ };
4339
+ readonly kind: {
4340
+ readonly enum: readonly ["composer", "editor"];
4341
+ };
4342
+ };
4343
+ readonly additionalProperties: false;
4344
+ };
4345
+ };
4014
4346
  };
4015
4347
  readonly additionalProperties: false;
4016
4348
  };
@@ -4064,7 +4396,7 @@ export declare const RUNPANE_CONTRACT: {
4064
4396
  readonly required: readonly ["code", "message", "safetyCheck"];
4065
4397
  readonly properties: {
4066
4398
  readonly code: {
4067
- readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown"];
4399
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "agent-busy", "unsent-input"];
4068
4400
  };
4069
4401
  readonly message: {
4070
4402
  readonly type: "string";
@@ -4116,6 +4448,12 @@ export declare const RUNPANE_CONTRACT: {
4116
4448
  readonly worktreeWillRemain: {
4117
4449
  readonly const: true;
4118
4450
  };
4451
+ readonly busyAgents: {
4452
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/busyAgents";
4453
+ };
4454
+ readonly unsentInput: {
4455
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/unsentInput";
4456
+ };
4119
4457
  };
4120
4458
  readonly additionalProperties: false;
4121
4459
  };
@@ -4204,6 +4542,9 @@ export declare const RUNPANE_CONTRACT: {
4204
4542
  readonly resumeSource: {
4205
4543
  readonly enum: readonly ["agent-farm", "configured", "agent"];
4206
4544
  };
4545
+ readonly paused: {
4546
+ readonly $ref: "#/jsonSchemas/pausedMark";
4547
+ };
4207
4548
  };
4208
4549
  readonly additionalProperties: false;
4209
4550
  };
@@ -4836,6 +5177,9 @@ export declare const RUNPANE_CONTRACT: {
4836
5177
  readonly report: {
4837
5178
  readonly $ref: "#/jsonSchemas/agentReport";
4838
5179
  };
5180
+ readonly paused: {
5181
+ readonly $ref: "#/jsonSchemas/pausedMark";
5182
+ };
4839
5183
  };
4840
5184
  readonly additionalProperties: false;
4841
5185
  };
@@ -5538,6 +5882,42 @@ export declare const RUNPANE_CONTRACT: {
5538
5882
  };
5539
5883
  readonly additionalProperties: false;
5540
5884
  };
5885
+ readonly panelCloseRequest: {
5886
+ readonly type: "object";
5887
+ readonly required: readonly ["panelId"];
5888
+ readonly properties: {
5889
+ readonly panelId: {
5890
+ readonly type: "string";
5891
+ };
5892
+ };
5893
+ readonly additionalProperties: false;
5894
+ };
5895
+ readonly panelCloseResult: {
5896
+ readonly type: "object";
5897
+ readonly required: readonly ["ok", "paneId", "panelId", "type", "title"];
5898
+ readonly properties: {
5899
+ readonly ok: {
5900
+ readonly const: true;
5901
+ };
5902
+ readonly generation: {
5903
+ readonly type: "number";
5904
+ };
5905
+ readonly paneId: {
5906
+ readonly type: "string";
5907
+ };
5908
+ readonly panelId: {
5909
+ readonly type: "string";
5910
+ };
5911
+ readonly type: {
5912
+ readonly type: "string";
5913
+ readonly description: "The closed tab's type, such as terminal, browser or editor.";
5914
+ };
5915
+ readonly title: {
5916
+ readonly type: "string";
5917
+ };
5918
+ };
5919
+ readonly additionalProperties: false;
5920
+ };
5541
5921
  readonly sessionListResult: {
5542
5922
  readonly type: "object";
5543
5923
  readonly required: readonly ["ok", "sessions"];
@@ -5573,6 +5953,58 @@ export declare const RUNPANE_CONTRACT: {
5573
5953
  readonly internalSessionId: {
5574
5954
  readonly type: "string";
5575
5955
  };
5956
+ readonly panes: {
5957
+ readonly type: "object";
5958
+ readonly description: "Only when the update archived the Session: what happened to each associated Pane.";
5959
+ readonly required: readonly ["archivedPaneIds", "keptPanes", "failedPanes"];
5960
+ readonly properties: {
5961
+ readonly archivedPaneIds: {
5962
+ readonly type: "array";
5963
+ readonly items: {
5964
+ readonly type: "string";
5965
+ };
5966
+ };
5967
+ readonly keptPanes: {
5968
+ readonly type: "array";
5969
+ readonly items: {
5970
+ readonly type: "object";
5971
+ readonly required: readonly ["paneId", "name", "code"];
5972
+ readonly properties: {
5973
+ readonly paneId: {
5974
+ readonly type: "string";
5975
+ };
5976
+ readonly name: {
5977
+ readonly type: "string";
5978
+ };
5979
+ readonly code: {
5980
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "agent-busy", "unsent-input"];
5981
+ };
5982
+ };
5983
+ readonly additionalProperties: false;
5984
+ };
5985
+ };
5986
+ readonly failedPanes: {
5987
+ readonly type: "array";
5988
+ readonly items: {
5989
+ readonly type: "object";
5990
+ readonly required: readonly ["paneId", "name", "error"];
5991
+ readonly properties: {
5992
+ readonly paneId: {
5993
+ readonly type: "string";
5994
+ };
5995
+ readonly name: {
5996
+ readonly type: "string";
5997
+ };
5998
+ readonly error: {
5999
+ readonly type: "string";
6000
+ };
6001
+ };
6002
+ readonly additionalProperties: false;
6003
+ };
6004
+ };
6005
+ };
6006
+ readonly additionalProperties: false;
6007
+ };
5576
6008
  };
5577
6009
  readonly additionalProperties: false;
5578
6010
  };
@@ -6155,7 +6587,7 @@ export declare const RUNPANE_CONTRACT: {
6155
6587
  readonly required: readonly ["code", "message"];
6156
6588
  readonly properties: {
6157
6589
  readonly code: {
6158
- readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "missing-pane", "already-archived", "main-repo", "pr-open", "pr-not-merged", "pr-status-unknown"];
6590
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "agent-busy", "unsent-input", "missing-pane", "already-archived", "main-repo", "pr-open", "pr-not-merged", "pr-status-unknown"];
6159
6591
  };
6160
6592
  readonly message: {
6161
6593
  readonly type: "string";
@@ -6626,12 +7058,12 @@ export declare const RUNPANE_CONTRACT: {
6626
7058
  readonly additionalProperties: false;
6627
7059
  };
6628
7060
  readonly notifyRequest: {
6629
- readonly description: "What `runpane notify` sends on the runpane:notify daemon channel: the question fields, or resume alone.";
7061
+ readonly description: "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, or resume alone. Only `secrets request` sends ui secret.";
6630
7062
  readonly type: "object";
6631
7063
  readonly required: readonly ["caller"];
6632
7064
  readonly properties: {
6633
7065
  readonly ui: {
6634
- readonly enum: readonly ["options", "approve", "ask", "info"];
7066
+ readonly enum: readonly ["options", "approve", "ask", "secret", "info"];
6635
7067
  };
6636
7068
  readonly title: {
6637
7069
  readonly type: "string";
@@ -6665,6 +7097,22 @@ export declare const RUNPANE_CONTRACT: {
6665
7097
  readonly action: {
6666
7098
  readonly $ref: "#/jsonSchemas/notifyAction";
6667
7099
  };
7100
+ readonly secret: {
7101
+ readonly type: "object";
7102
+ readonly description: "ui secret only: the Pane secret the answer is saved as.";
7103
+ readonly required: readonly ["project", "name"];
7104
+ readonly properties: {
7105
+ readonly project: {
7106
+ readonly type: "string";
7107
+ readonly minLength: 1;
7108
+ };
7109
+ readonly name: {
7110
+ readonly type: "string";
7111
+ readonly minLength: 1;
7112
+ };
7113
+ };
7114
+ readonly additionalProperties: false;
7115
+ };
6668
7116
  readonly resume: {
6669
7117
  readonly type: "string";
6670
7118
  readonly minLength: 1;
@@ -6732,6 +7180,32 @@ export declare const RUNPANE_CONTRACT: {
6732
7180
  };
6733
7181
  };
6734
7182
  readonly additionalProperties: false;
7183
+ }, {
7184
+ readonly type: "object";
7185
+ readonly description: "secret: the person saved the value as project/name. The value is never returned.";
7186
+ readonly required: readonly ["status", "project", "name"];
7187
+ readonly properties: {
7188
+ readonly status: {
7189
+ readonly const: "saved";
7190
+ };
7191
+ readonly project: {
7192
+ readonly type: "string";
7193
+ };
7194
+ readonly name: {
7195
+ readonly type: "string";
7196
+ };
7197
+ };
7198
+ readonly additionalProperties: false;
7199
+ }, {
7200
+ readonly type: "object";
7201
+ readonly description: "secret: the person declined; nothing was saved.";
7202
+ readonly required: readonly ["status"];
7203
+ readonly properties: {
7204
+ readonly status: {
7205
+ readonly const: "declined";
7206
+ };
7207
+ };
7208
+ readonly additionalProperties: false;
6735
7209
  }, {
6736
7210
  readonly type: "object";
6737
7211
  readonly required: readonly ["waiting", "id", "next"];
@@ -6969,20 +7443,110 @@ export declare const RUNPANE_CONTRACT: {
6969
7443
  readonly const: true;
6970
7444
  readonly description: "It timed out and could not be stopped.";
6971
7445
  };
6972
- readonly stdout: {
7446
+ readonly stdout: {
7447
+ readonly type: "string";
7448
+ };
7449
+ readonly stderr: {
7450
+ readonly type: "string";
7451
+ };
7452
+ };
7453
+ };
7454
+ readonly pausedMark: {
7455
+ readonly type: "object";
7456
+ readonly required: readonly ["at", "by"];
7457
+ readonly properties: {
7458
+ readonly at: {
7459
+ readonly type: "string";
7460
+ readonly description: "When the tab was paused (ISO 8601).";
7461
+ };
7462
+ readonly by: {
7463
+ readonly enum: readonly ["manual", "auto"];
7464
+ readonly description: "manual: a person or agent paused it. auto: auto-pause paused it after idleHours without use.";
7465
+ };
7466
+ readonly idleHours: {
7467
+ readonly type: "number";
7468
+ };
7469
+ };
7470
+ readonly additionalProperties: false;
7471
+ };
7472
+ readonly pauseResult: {
7473
+ readonly type: "object";
7474
+ readonly required: readonly ["ok", "action", "scope", "panelIds", "unchanged", "failed", "message", "nextCommand"];
7475
+ readonly properties: {
7476
+ readonly ok: {
7477
+ readonly type: "boolean";
7478
+ readonly description: "False when a tab could not be resumed; the others still were.";
7479
+ };
7480
+ readonly action: {
7481
+ readonly enum: readonly ["paused", "resumed"];
7482
+ };
7483
+ readonly scope: {
7484
+ readonly type: "object";
7485
+ readonly required: readonly ["kind"];
7486
+ readonly properties: {
7487
+ readonly kind: {
7488
+ readonly enum: readonly ["panel", "pane", "session"];
7489
+ };
7490
+ readonly panelId: {
7491
+ readonly type: "string";
7492
+ };
7493
+ readonly paneId: {
7494
+ readonly type: "string";
7495
+ };
7496
+ readonly paneName: {
7497
+ readonly type: "string";
7498
+ };
7499
+ readonly sessionId: {
7500
+ readonly type: "string";
7501
+ };
7502
+ readonly sessionName: {
7503
+ readonly type: "string";
7504
+ };
7505
+ };
7506
+ readonly additionalProperties: false;
7507
+ };
7508
+ readonly panelIds: {
7509
+ readonly type: "array";
7510
+ readonly items: {
7511
+ readonly type: "string";
7512
+ };
7513
+ readonly description: "Tabs this call paused or resumed.";
7514
+ };
7515
+ readonly unchanged: {
7516
+ readonly type: "number";
7517
+ readonly description: "Terminal tabs in scope that were already paused (for pause) or not paused (for resume).";
7518
+ };
7519
+ readonly failed: {
7520
+ readonly type: "array";
7521
+ readonly items: {
7522
+ readonly type: "object";
7523
+ readonly required: readonly ["panelId", "error"];
7524
+ readonly properties: {
7525
+ readonly panelId: {
7526
+ readonly type: "string";
7527
+ };
7528
+ readonly error: {
7529
+ readonly type: "string";
7530
+ };
7531
+ };
7532
+ readonly additionalProperties: false;
7533
+ };
7534
+ };
7535
+ readonly message: {
6973
7536
  readonly type: "string";
6974
7537
  };
6975
- readonly stderr: {
7538
+ readonly nextCommand: {
6976
7539
  readonly type: "string";
6977
7540
  };
6978
7541
  };
7542
+ readonly additionalProperties: false;
6979
7543
  };
6980
7544
  };
6981
7545
  readonly agentContext: {
6982
7546
  readonly brief: {
6983
7547
  readonly title: "Pane agent context";
6984
7548
  readonly summary: "Pane lets a developer manage saved base repositories, user-visible Panes (Pane sessions) for feature/PR work, and terminal-backed panel tabs. A Pane is a visible workspace that normally maps to one Pane-managed git worktree and branch; a panel is a terminal tab inside one Pane and shares that Pane's worktree; an agent is a CLI process running inside a panel.";
6985
- 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 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane: 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.", "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. 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) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.", "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> --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."];
7549
+ 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 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane: 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.", "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. 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> --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."];
6986
7550
  readonly detailCommand: "runpane agent-context --command <command> [--json]";
6987
7551
  readonly tools: readonly [{
6988
7552
  readonly name: "doctor";
@@ -7010,12 +7574,24 @@ export declare const RUNPANE_CONTRACT: {
7010
7574
  readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
7011
7575
  }, {
7012
7576
  readonly name: "repos update";
7013
- readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.";
7014
- readonly arguments: readonly ["--repo <selector>", "--build-script <script>", "--run-script <script>", "--archive-script <script>", "--worktree-folder <path>", "--name <name>", "--clear <setting,...>", "--from-json <path|->", "--yes", "--dry-run", "--json"];
7577
+ readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
7578
+ 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"];
7015
7579
  }, {
7016
7580
  readonly name: "repos rename";
7017
7581
  readonly summary: "Rename a repository saved in the running Pane app.";
7018
7582
  readonly arguments: readonly ["--repo <selector>", "--name <name>", "--yes", "--json", "--pane-dir <path>"];
7583
+ }, {
7584
+ readonly name: "secrets list";
7585
+ readonly summary: "List Pane secrets: project, name, time and machine. Never a value.";
7586
+ readonly arguments: readonly ["--project <project>", "--json"];
7587
+ }, {
7588
+ readonly name: "secrets exec";
7589
+ readonly summary: "Run a command with Pane secrets in its environment.";
7590
+ readonly arguments: readonly ["--project <project>", "--only <name,...>", "--env <VAR=NAME>", "--file <name>", "-- <command>..."];
7591
+ }, {
7592
+ readonly name: "secrets request";
7593
+ readonly summary: "Ask the person for a secret on a masked card; returns saved or declined, never the value.";
7594
+ readonly arguments: readonly ["--project <project>", "--name <name>", "--title <text>", "--reason <text>", "--json"];
7019
7595
  }, {
7020
7596
  readonly name: "panes list";
7021
7597
  readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
@@ -7088,6 +7664,10 @@ export declare const RUNPANE_CONTRACT: {
7088
7664
  readonly name: "panels resume";
7089
7665
  readonly summary: "Restart a stopped terminal panel in place (same panel id), resuming its agent's conversation.";
7090
7666
  readonly arguments: readonly ["--panel <panel-id>", "--session <id|name>", "--all-stopped", "--concurrency <count>", "--wait-ready", "--ready-timeout-ms <ms>", "--yes", "--json", "--pane-dir <path>"];
7667
+ }, {
7668
+ readonly name: "panels close";
7669
+ readonly summary: "Close a tab, stopping its process, as the app's close button does.";
7670
+ readonly arguments: readonly ["--panel <panel-id>", "--yes", "--json"];
7091
7671
  }, {
7092
7672
  readonly name: "watch";
7093
7673
  readonly summary: "Wait for workspace events from the durable daemon journal; follow uses conservative cadence and quiet expiry by default.";
@@ -7390,7 +7970,7 @@ export declare const RUNPANE_CONTRACT: {
7390
7970
  readonly "repos get": {
7391
7971
  readonly name: "repos get";
7392
7972
  readonly summary: "Show a saved repository's Project Settings and the scripts Pane will run.";
7393
- readonly details: "Use this before changing a repo's settings, or to find out what a new Pane will run. Each script reports `value` (saved in Project Settings), `fallback` (from the repo's config file), and `effective` (what Pane runs: the saved value when set, otherwise the fallback).";
7973
+ readonly details: "Use this before changing a repo's settings, or to find out what a new Pane will run. Each script reports `value` (saved in Project Settings), `fallback` (from the repo's config file), and `effective` (what Pane runs: the saved value when set, otherwise the fallback). `envVars` lists the project environment variables: plain values in full, keychain items and Pane secrets as references, never their values.";
7394
7974
  readonly requiresPaneDaemon: true;
7395
7975
  readonly mutates: false;
7396
7976
  readonly arguments: readonly [{
@@ -7414,8 +7994,8 @@ export declare const RUNPANE_CONTRACT: {
7414
7994
  };
7415
7995
  readonly "repos update": {
7416
7996
  readonly name: "repos update";
7417
- readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.";
7418
- readonly details: "Saves through the same path as the Project Settings dialog: Pane drops its cached project context, rebuilds the run commands, and open windows reload the repo. Settings you do not pass keep their value. Clear a setting with `--clear` or an empty value; a cleared script falls back to the repo's config file.";
7997
+ readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
7998
+ readonly details: "Saves through the same path as the Project Settings dialog: Pane drops its cached project context, rebuilds the run commands, and open windows reload the repo. Settings you do not pass keep their value. Clear a setting with `--clear` or an empty value; a cleared script falls back to the repo's config file. --env adds or replaces project environment variables by key, and --env-remove removes them. A variable is plain text, an existing macOS keychain item, or a Pane secret reference; to store a new secret value, use `runpane secrets request` first.";
7419
7999
  readonly requiresPaneDaemon: true;
7420
8000
  readonly mutates: true;
7421
8001
  readonly arguments: readonly [{
@@ -7458,6 +8038,23 @@ export declare const RUNPANE_CONTRACT: {
7458
8038
  readonly value: "<text>";
7459
8039
  readonly required: false;
7460
8040
  readonly description: "Project system prompt.";
8041
+ }, {
8042
+ readonly name: "--env";
8043
+ readonly value: "<json>";
8044
+ readonly required: false;
8045
+ readonly description: "Project variables to add or replace by key: a JSON array of {key, source: \"plain\", value}, {key, source: \"keychain\", service, account} or {key, source: \"secret\", project, name}.";
8046
+ readonly schema: {
8047
+ readonly type: "array";
8048
+ readonly minItems: 1;
8049
+ readonly items: {
8050
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
8051
+ };
8052
+ };
8053
+ }, {
8054
+ readonly name: "--env-remove";
8055
+ readonly value: "<name,...>";
8056
+ readonly required: false;
8057
+ readonly description: "Project variables to remove, comma-separated.";
7461
8058
  }, {
7462
8059
  readonly name: "--clear";
7463
8060
  readonly value: "<setting,...>";
@@ -7467,7 +8064,7 @@ export declare const RUNPANE_CONTRACT: {
7467
8064
  readonly name: "--from-json";
7468
8065
  readonly value: "<path|->";
7469
8066
  readonly required: false;
7470
- readonly description: "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt; null clears. Flags override it.";
8067
+ readonly description: "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt, and envVars ({set: [...], remove: [...]}); null clears. Flags override it.";
7471
8068
  }, {
7472
8069
  readonly name: "--yes";
7473
8070
  readonly required: false;
@@ -7486,9 +8083,9 @@ export declare const RUNPANE_CONTRACT: {
7486
8083
  readonly required: false;
7487
8084
  readonly description: "Connect to a specific Pane data directory.";
7488
8085
  }];
7489
- readonly examples: readonly ["runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --yes --json", "runpane repos update --repo Pane --clear archive-script --dry-run --json", "runpane repos update --repo Pane --from-json settings.json --yes --json"];
8086
+ readonly examples: readonly ["runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --yes --json", "runpane repos update --repo Pane --clear archive-script --dry-run --json", "runpane repos update --repo Pane --from-json settings.json --yes --json", "runpane repos update --repo Pane --env '[{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json"];
7490
8087
  readonly jsonSchemas: readonly ["repoUpdateRequest", "repoUpdateResult"];
7491
- readonly notes: readonly ["`changed` lists the settings whose saved value differs from before.", "The worktree folder applies to Panes created after the update; existing worktrees stay where they are."];
8088
+ readonly notes: readonly ["`changed` lists the settings whose saved value differs from before.", "The worktree folder applies to Panes created after the update; existing worktrees stay where they are.", "Plain values are saved and shown in full; do not put a secret in a plain variable. Point the variable at a Pane secret instead."];
7492
8089
  };
7493
8090
  readonly "repos rename": {
7494
8091
  readonly name: "repos rename";
@@ -7524,6 +8121,178 @@ export declare const RUNPANE_CONTRACT: {
7524
8121
  readonly jsonSchemas: readonly ["repoRenameRequest", "repoRenameResult"];
7525
8122
  readonly notes: readonly ["The repository path, Panes, and settings are unchanged."];
7526
8123
  };
8124
+ readonly "secrets list": {
8125
+ readonly name: "secrets list";
8126
+ readonly summary: "List the Pane secrets on this machine: project, name, and when and where each was set. Never shows a value.";
8127
+ readonly details: "Use this to find the project and name to pass to `runpane secrets exec`. Each entry has project, name, updatedAt and machine. storage says how this machine keeps values; encrypted false means a plain 0600 file on a machine without an OS keyring.";
8128
+ readonly requiresPaneDaemon: true;
8129
+ readonly mutates: false;
8130
+ readonly arguments: readonly [{
8131
+ readonly name: "--project";
8132
+ readonly value: "<project>";
8133
+ readonly required: false;
8134
+ readonly description: "Only this project's secrets.";
8135
+ }, {
8136
+ readonly name: "--json";
8137
+ readonly required: false;
8138
+ readonly description: "Print machine-readable output.";
8139
+ }, {
8140
+ readonly name: "--pane-dir";
8141
+ readonly value: "<path>";
8142
+ readonly required: false;
8143
+ readonly description: "Connect to a specific Pane data directory.";
8144
+ }];
8145
+ readonly examples: readonly ["runpane secrets list --json", "runpane secrets list --project stripe --json"];
8146
+ readonly jsonSchemas: readonly ["secretListRequest", "secretListResult"];
8147
+ readonly notes: readonly ["Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."];
8148
+ };
8149
+ readonly "secrets set": {
8150
+ readonly name: "secrets set";
8151
+ readonly summary: "Save a Pane secret, adding or replacing it. Reads the value from stdin.";
8152
+ readonly details: "The value comes only from stdin, so it never appears in argv or a transcript. One trailing newline (\\n or \\r\\n) is dropped; an empty value is refused. If stdin is a terminal it is refused too: pipe the value in, or have the person use Settings > Secrets or `runpane secrets request`. With --json it prints {ok, replaced, secret} (secretSetResult).";
8153
+ readonly requiresPaneDaemon: true;
8154
+ readonly mutates: true;
8155
+ readonly arguments: readonly [{
8156
+ readonly name: "--project";
8157
+ readonly value: "<project>";
8158
+ readonly required: true;
8159
+ readonly description: "Secret project: up to 64 letters, digits, \".\", \"_\" or \"-\".";
8160
+ }, {
8161
+ readonly name: "--name";
8162
+ readonly value: "<name>";
8163
+ readonly required: true;
8164
+ readonly description: "Secret name: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved.";
8165
+ }, {
8166
+ readonly name: "--yes";
8167
+ readonly required: true;
8168
+ readonly description: "Confirm the change.";
8169
+ }, {
8170
+ readonly name: "--json";
8171
+ readonly required: false;
8172
+ readonly description: "Print machine-readable output.";
8173
+ }, {
8174
+ readonly name: "--pane-dir";
8175
+ readonly value: "<path>";
8176
+ readonly required: false;
8177
+ readonly description: "Connect to a specific Pane data directory.";
8178
+ }];
8179
+ readonly examples: readonly ["printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes --json"];
8180
+ readonly jsonSchemas: readonly ["secretSetRequest", "secretSetResult"];
8181
+ readonly notes: readonly ["Never set a value someone pasted into the chat; ask with `runpane secrets request` instead, so the value stays out of the transcript.", "There is no MCP tool for this command: MCP arguments land in the transcript.", "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."];
8182
+ };
8183
+ readonly "secrets delete": {
8184
+ readonly name: "secrets delete";
8185
+ readonly summary: "Delete a Pane secret from this machine and, through sync, from your other machines.";
8186
+ readonly details: "Deletes <project>/<name> here. Each other machine deletes it the next time a desktop or the phone syncs with it.";
8187
+ readonly requiresPaneDaemon: true;
8188
+ readonly mutates: true;
8189
+ readonly arguments: readonly [{
8190
+ readonly name: "--project";
8191
+ readonly value: "<project>";
8192
+ readonly required: true;
8193
+ readonly description: "Secret project.";
8194
+ }, {
8195
+ readonly name: "--name";
8196
+ readonly value: "<name>";
8197
+ readonly required: true;
8198
+ readonly description: "Secret name.";
8199
+ }, {
8200
+ readonly name: "--yes";
8201
+ readonly required: true;
8202
+ readonly description: "Confirm the change.";
8203
+ }, {
8204
+ readonly name: "--json";
8205
+ readonly required: false;
8206
+ readonly description: "Print machine-readable output.";
8207
+ }, {
8208
+ readonly name: "--pane-dir";
8209
+ readonly value: "<path>";
8210
+ readonly required: false;
8211
+ readonly description: "Connect to a specific Pane data directory.";
8212
+ }];
8213
+ readonly examples: readonly ["runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json"];
8214
+ readonly jsonSchemas: readonly ["secretDeleteRequest", "secretDeleteResult"];
8215
+ readonly notes: readonly ["A secret that does not exist fails with SECRET_NOT_FOUND.", "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."];
8216
+ };
8217
+ readonly "secrets exec": {
8218
+ readonly name: "secrets exec";
8219
+ readonly summary: "Run a command with Pane secrets in its environment. Nothing prints a value.";
8220
+ readonly details: "Reads the secrets from this machine's Pane when it runs, starts the command with your environment plus the secrets, passes stdin, stdout and stderr through, and exits with the command's exit code. By default it injects every secret in the project under its own name. --only limits that to the names given. --env VAR=NAME injects secret NAME as VAR. --file NAME writes secret NAME to a 0600 file in a private temp folder and sets NAME to the file's path; the file is removed when the command exits. Injected names override your environment.";
8221
+ readonly requiresPaneDaemon: true;
8222
+ readonly mutates: false;
8223
+ readonly arguments: readonly [{
8224
+ readonly name: "--project";
8225
+ readonly value: "<project>";
8226
+ readonly required: true;
8227
+ readonly description: "Secret project.";
8228
+ }, {
8229
+ readonly name: "--only";
8230
+ readonly value: "<name,...>";
8231
+ readonly required: false;
8232
+ readonly description: "Inject only these secrets, comma-separated.";
8233
+ }, {
8234
+ readonly name: "--env";
8235
+ readonly value: "<VAR=NAME>";
8236
+ readonly required: false;
8237
+ readonly description: "Inject secret NAME as VAR. Repeatable.";
8238
+ }, {
8239
+ readonly name: "--file";
8240
+ readonly value: "<name>";
8241
+ readonly required: false;
8242
+ readonly description: "Write secret NAME to a private temp file and set NAME to its path. Repeatable.";
8243
+ }, {
8244
+ readonly name: "--pane-dir";
8245
+ readonly value: "<path>";
8246
+ readonly required: false;
8247
+ readonly description: "Connect to a specific Pane data directory.";
8248
+ }, {
8249
+ readonly name: "-- <command>";
8250
+ readonly required: true;
8251
+ readonly description: "The command to run and its arguments.";
8252
+ }];
8253
+ readonly examples: readonly ["runpane secrets exec --project stripe -- pnpm test:webhooks", "runpane secrets exec --project stripe --env STRIPE_API_KEY=STRIPE_SECRET_KEY -- node scripts/sync.js", "runpane secrets exec --project gcp --file SERVICE_ACCOUNT_JSON -- sh -c 'gcloud auth activate-service-account --key-file \"$SERVICE_ACCOUNT_JSON\"'"];
8254
+ readonly notes: readonly ["Target names PATH, WORKTREE_PATH and PANE_*, in any case, are refused with SECRET_RESERVED_NAME, and nothing runs.", "A missing secret fails with SECRET_NOT_FOUND before anything runs; ask for it with `runpane secrets request`.", "Do not echo a secret from inside the command: its output lands wherever the command's output goes, such as your transcript.", "There is no MCP tool for this command; run it in a shell.", "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine.", "Secrets are the machine owner's: every secrets command in a teammate's `runpane workspace exec` (PANE_TEAMMATE_LOGIN set) fails with SECRET_OWNER_REQUIRED."];
8255
+ };
8256
+ readonly "secrets request": {
8257
+ readonly name: "secrets request";
8258
+ readonly summary: "Ask the person for a secret on a masked card. Pane saves what they type as a Pane secret and never returns it.";
8259
+ readonly details: "Shows a Notify card with your title and reason, a masked field, Save securely and Decline. What the person types is saved on this machine as the Pane secret <project>/<name> and synced to their other machines. You get back {status: \"saved\", project, name} or {status: \"declined\"}, never the value. Then use it with `runpane secrets exec`.";
8260
+ readonly requiresPaneDaemon: true;
8261
+ readonly mutates: true;
8262
+ readonly arguments: readonly [{
8263
+ readonly name: "--project";
8264
+ readonly value: "<project>";
8265
+ readonly required: true;
8266
+ readonly description: "Secret project, such as the service or repo it belongs to: up to 64 letters, digits, \".\", \"_\" or \"-\".";
8267
+ }, {
8268
+ readonly name: "--name";
8269
+ readonly value: "<name>";
8270
+ readonly required: true;
8271
+ readonly description: "Secret name, such as STRIPE_SECRET_KEY: letters, digits and underscores, not starting with a digit.";
8272
+ }, {
8273
+ readonly name: "--title";
8274
+ readonly value: "<text>";
8275
+ readonly required: true;
8276
+ readonly description: "What the secret is, in a few words, such as \"Stripe test secret key\".";
8277
+ }, {
8278
+ readonly name: "--reason";
8279
+ readonly value: "<text>";
8280
+ readonly required: true;
8281
+ readonly description: "What you need it for, in one sentence.";
8282
+ }, {
8283
+ readonly name: "--json";
8284
+ readonly required: false;
8285
+ readonly description: "Print machine-readable output.";
8286
+ }, {
8287
+ readonly name: "--pane-dir";
8288
+ readonly value: "<path>";
8289
+ readonly required: false;
8290
+ readonly description: "Connect to a specific Pane data directory.";
8291
+ }];
8292
+ readonly examples: readonly ["runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook integration tests against Stripe's test mode.\" --json"];
8293
+ readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
8294
+ readonly notes: readonly ["A result of {waiting: true, id} means the card is still open and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting.", "A result of {unavailable, next} means nobody can answer through Pane right now. Do not ask for the secret in the chat; follow next.", "Saving replaces a secret that already exists under that name; the card says so."];
8295
+ };
7527
8296
  readonly "panes list": {
7528
8297
  readonly name: "panes list";
7529
8298
  readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
@@ -7829,7 +8598,7 @@ export declare const RUNPANE_CONTRACT: {
7829
8598
  readonly "panes archive": {
7830
8599
  readonly name: "panes archive";
7831
8600
  readonly summary: "Archive a Pane (session) exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
7832
- readonly details: "Use this to close out a Pane once its PR has merged. The safety check refreshes the configured upstream before comparing it to HEAD and includes exact unpushed commit IDs and subjects. When the branch has no upstream or its upstream is gone (GitHub deletes merged branches), a merged pull request whose head is HEAD counts as pushed, so squash-merged branches archive without --force. Refuses unsafe archive operations unless --force is used. Use --dry-run to inspect the same evidence without mutating Pane state. Use --session <id|name> --merged to close out every finished Pane of a Session at once.";
8601
+ readonly details: "Use this to close out a Pane once its PR has merged. The safety check refreshes the configured upstream before comparing it to HEAD and includes exact unpushed commit IDs and subjects. When the branch has no upstream or its upstream is gone (GitHub deletes merged branches), a merged pull request whose head is HEAD counts as pushed, so squash-merged branches archive without --force. Refuses unsafe archive operations unless --force is used. Use --dry-run to inspect the same evidence without mutating Pane state. Use --session <id|name> --merged to close out every finished Pane of a Session at once. Archive also 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, since archiving stops the agent or loses the input.";
7833
8602
  readonly requiresPaneDaemon: true;
7834
8603
  readonly mutates: true;
7835
8604
  readonly arguments: readonly [{
@@ -7845,7 +8614,7 @@ export declare const RUNPANE_CONTRACT: {
7845
8614
  }, {
7846
8615
  readonly name: "--force";
7847
8616
  readonly required: false;
7848
- readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes.";
8617
+ readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes, one of its agents is mid-turn or waiting for an answer (archiving stops it), or a tab holds unsent input (archiving loses it).";
7849
8618
  }, {
7850
8619
  readonly name: "--remove-worktree";
7851
8620
  readonly required: false;
@@ -7879,7 +8648,7 @@ export declare const RUNPANE_CONTRACT: {
7879
8648
  }];
7880
8649
  readonly examples: readonly ["runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes archive --pane <pane-id> --dry-run --json", "runpane panes archive --pane <pane-id> --remove-worktree --yes --json", "runpane panes archive --session <id|name> --merged --dry-run --json", "runpane panes archive --session <id|name> --merged --remove-worktree --yes --json", "runpane panes archive --pane <pane-id> --force --yes --json"];
7881
8650
  readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
7882
- readonly notes: readonly ["If the result has ok:false with a blocked field, the pane was NOT archived; inspect blocked.code and rerun with --force if discarding the flagged work is intentional.", "Inspect safetyCheck.unpushedCommitDetails for exact commit IDs and subjects; upstreamRefreshed confirms the tracking ref was refreshed first.", "A --dry-run result sets dryRun:true and wouldArchive without deleting the Pane or its worktree.", "A successful archive reports worktreeCleanup `completed` once the worktree is gone from its path and from git. trashDeletion `pending` means a large worktree (for example one with node_modules) is still being deleted from .git/pane-trash in the background; that is still ok:true. `timeout` (also ok:true) means removal is still running; only `failed` sets ok:false.", "safetyCheck.mergedViaPr names the merged PR whose head is HEAD; it needs an authenticated `gh`. Without it, a squash-merged branch whose remote branch was deleted reports unpushed-commits.", "An adopted Pane (panes adopt) keeps its worktree unless --remove-worktree is passed. `panes restore` does not recreate a removed adopted worktree; the local branch is kept, so `git worktree add <path> <branch>` brings it back.", "With --session --merged, each item has outcome archived, would-archive (dry run), skipped (with skipped.code and skipped.message), or failed.", "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.", "Undo an archive with `runpane panes restore --pane <pane-id> --yes`, which recreates the worktree. `runpane links create --pane <pane-id>` gives the user a link to review the Pane first.", "When the safety check is skipped, `safetyCheck.reason` says why: `external-worktree` (an adopted Pane whose worktree Pane does not own), `main-repo`, `missing-project-context`, or `git-error`. `worktreeWillRemain: true` means archiving leaves the worktree on disk."];
8651
+ readonly notes: readonly ["If the result has ok:false with a blocked field, the pane was NOT archived; inspect blocked.code and rerun with --force if discarding the flagged work is intentional.", "Inspect safetyCheck.unpushedCommitDetails for exact commit IDs and subjects; upstreamRefreshed confirms the tracking ref was refreshed first.", "A --dry-run result sets dryRun:true and wouldArchive without deleting the Pane or its worktree.", "A successful archive reports worktreeCleanup `completed` once the worktree is gone from its path and from git. trashDeletion `pending` means a large worktree (for example one with node_modules) is still being deleted from .git/pane-trash in the background; that is still ok:true. `timeout` (also ok:true) means removal is still running; only `failed` sets ok:false.", "safetyCheck.mergedViaPr names the merged PR whose head is HEAD; it needs an authenticated `gh`. Without it, a squash-merged branch whose remote branch was deleted reports unpushed-commits.", "An adopted Pane (panes adopt) keeps its worktree unless --remove-worktree is passed. `panes restore` does not recreate a removed adopted worktree; the local branch is kept, so `git worktree add <path> <branch>` brings it back.", "With --session --merged, each item has outcome archived, would-archive (dry run), skipped (with skipped.code and skipped.message), or failed.", "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.", "Undo an archive with `runpane panes restore --pane <pane-id> --yes`, which recreates the worktree. `runpane links create --pane <pane-id>` gives the user a link to review the Pane first.", "When the safety check is skipped, `safetyCheck.reason` says why: `external-worktree` (an adopted Pane whose worktree Pane does not own), `main-repo`, `missing-project-context`, or `git-error`. `worktreeWillRemain: true` means archiving leaves the worktree on disk.", "An agent mid-turn or waiting for an answer blocks archive with `agent-busy` (`safetyCheck.busyAgents` lists them); wait until it is idle with `runpane panels wait --panel <id> --for idle`, then archive again. The Session sweep skips such a Pane with skipped.code `agent-busy`.", "A tab holding text typed into an agent's composer but not sent, or an editor with unsaved edits, blocks archive with `unsent-input` (`safetyCheck.unsentInput` lists them); send, save or clear it, then archive again. `--force` discards it."];
7883
8652
  };
7884
8653
  readonly "panes pin": {
7885
8654
  readonly name: "panes pin";
@@ -7947,6 +8716,64 @@ export declare const RUNPANE_CONTRACT: {
7947
8716
  readonly jsonSchemas: readonly ["panePinRequest", "panePinResult"];
7948
8717
  readonly notes: readonly ["This is a declarative set, not a toggle: retries leave an already-unpinned Pane unpinned.", "Unpinning does not focus the Pane."];
7949
8718
  };
8719
+ readonly "panes pause": {
8720
+ readonly name: "panes pause";
8721
+ readonly summary: "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.";
8722
+ readonly details: "Pauses every terminal tab of a Pane, run scripts included, until `panes resume` resumes it. A Pane reads as paused (`panes list` `paused`) while all of its terminal tabs are. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
8723
+ readonly requiresPaneDaemon: true;
8724
+ readonly mutates: true;
8725
+ readonly arguments: readonly [{
8726
+ readonly name: "--pane";
8727
+ readonly value: "<pane-id>";
8728
+ readonly required: true;
8729
+ readonly description: "Pane id.";
8730
+ }, {
8731
+ readonly name: "--yes";
8732
+ readonly required: false;
8733
+ readonly description: "Skip confirmation for this mutating command.";
8734
+ }, {
8735
+ readonly name: "--json";
8736
+ readonly required: false;
8737
+ readonly description: "Print machine-readable output.";
8738
+ }, {
8739
+ readonly name: "--pane-dir";
8740
+ readonly value: "<path>";
8741
+ readonly required: false;
8742
+ readonly description: "Connect to a specific Pane data directory.";
8743
+ }];
8744
+ readonly examples: readonly ["runpane panes pause --pane <pane-id> --yes --json"];
8745
+ readonly jsonSchemas: readonly ["pauseResult"];
8746
+ readonly notes: readonly ["Find idle Panes with `panes list --json`: `inactiveSince` is the latest terminal output or input in its tabs, or the last time the person selected it.", "Leave paused workers paused unless the person asks to resume them."];
8747
+ };
8748
+ readonly "panes resume": {
8749
+ readonly name: "panes resume";
8750
+ readonly summary: "Resume a paused Pane: restart its paused tabs in their saved conversations.";
8751
+ readonly details: "Resumes a Pane's paused tabs. Pane restarts each paused tab in place through the same restart `panels resume` runs, so agents relaunch in their saved conversations and report ready as usual. Running tabs are left alone and counted in `unchanged`. `watch` reports each resumed tab as `panel.unpaused`.";
8752
+ readonly requiresPaneDaemon: true;
8753
+ readonly mutates: true;
8754
+ readonly arguments: readonly [{
8755
+ readonly name: "--pane";
8756
+ readonly value: "<pane-id>";
8757
+ readonly required: true;
8758
+ readonly description: "Pane id.";
8759
+ }, {
8760
+ readonly name: "--yes";
8761
+ readonly required: false;
8762
+ readonly description: "Skip confirmation for this mutating command.";
8763
+ }, {
8764
+ readonly name: "--json";
8765
+ readonly required: false;
8766
+ readonly description: "Print machine-readable output.";
8767
+ }, {
8768
+ readonly name: "--pane-dir";
8769
+ readonly value: "<path>";
8770
+ readonly required: false;
8771
+ readonly description: "Connect to a specific Pane data directory.";
8772
+ }];
8773
+ readonly examples: readonly ["runpane panes resume --pane <pane-id> --yes --json"];
8774
+ readonly jsonSchemas: readonly ["pauseResult"];
8775
+ readonly notes: readonly ["ok is false when a tab could not start; check failed[] for which and why. The others still resumed."];
8776
+ };
7950
8777
  readonly "panes rename": {
7951
8778
  readonly name: "panes rename";
7952
8779
  readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
@@ -8255,7 +9082,7 @@ export declare const RUNPANE_CONTRACT: {
8255
9082
  readonly "panels resume": {
8256
9083
  readonly name: "panels resume";
8257
9084
  readonly summary: "Restart stopped terminal panels in place, resuming their agents' conversations: one panel, a Session's panels, or every stopped agent panel.";
8258
- readonly details: "Use this when `panels list`, `panels screen`, or `panels wait` report `running: false`, or `watch` reports `panel.stopped`, typically after a Pane restart or once its agent exited back to the shell. The panel keeps its id. Pane re-runs the panel's saved launch command resolved to the agent's resume command (Claude `--resume <session>`, `codex resume <session>`, Cursor `--resume`), the same restart the app runs when it shows the panel. It never takes focus. A panel whose agent exited back to its shell has its saved command run again in that shell. On a running panel it does nothing and returns `action: \"already-running\"`. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope (plain shells are left alone), `--concurrency` at a time, skips running panels, and returns one result per panel; one failure does not stop the others.";
9085
+ readonly details: "Use this when `panels list`, `panels screen`, or `panels wait` report `running: false`, or `watch` reports `panel.stopped`, typically after a Pane restart or once its agent exited back to the shell. The panel keeps its id. Pane re-runs the panel's saved launch command resolved to the agent's resume command (Claude `--resume <session>`, `codex resume <session>`, Cursor `--resume`), the same restart the app runs when it shows the panel. It never takes focus. A panel whose agent exited back to its shell has its saved command run again in that shell. On a running panel it does nothing and returns `action: \"already-running\"`. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope (plain shells and paused tabs are left alone), `--concurrency` at a time, skips running panels, and returns one result per panel; one failure does not stop the others.";
8259
9086
  readonly requiresPaneDaemon: true;
8260
9087
  readonly mutates: true;
8261
9088
  readonly arguments: readonly [{
@@ -8304,6 +9131,64 @@ export declare const RUNPANE_CONTRACT: {
8304
9131
  readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
8305
9132
  readonly notes: readonly ["If readiness.blocked is present, the agent is at a startup prompt (trust, update, [y/n]); inspect `panels screen` or follow blocked.suggestedCommand. Ask the user before answering trust or permission prompts.", "A Claude panel resumes the conversation whose session id Pane launched it with; a Codex panel resumes the session id Pane captured from its output. Without one, the panel relaunches its original command.", "A bulk resume is ok only when every panel resumed and, with --wait-ready, became ready. Check items[].readiness.blocked and items[].error per panel."];
8306
9133
  };
9134
+ readonly "panels close": {
9135
+ readonly name: "panels close";
9136
+ readonly summary: "Close a tab in a Pane, stopping its process, as closing the tab in the app does.";
9137
+ readonly details: "Use this to remove a tab you no longer need, such as a finished or stuck worker. It runs the app's own close-tab path: a terminal tab's process is stopped, the tab disappears from every window showing the Pane, and another tab becomes active if it was the active one.";
9138
+ readonly requiresPaneDaemon: true;
9139
+ readonly mutates: true;
9140
+ readonly arguments: readonly [{
9141
+ readonly name: "--panel";
9142
+ readonly value: "<panel-id>";
9143
+ readonly required: true;
9144
+ readonly description: "Panel id to close (any tab type).";
9145
+ }, {
9146
+ readonly name: "--yes";
9147
+ readonly required: false;
9148
+ readonly description: "Skip confirmation for this mutating command.";
9149
+ }, {
9150
+ readonly name: "--json";
9151
+ readonly required: false;
9152
+ readonly description: "Print machine-readable output.";
9153
+ }, {
9154
+ readonly name: "--pane-dir";
9155
+ readonly value: "<path>";
9156
+ readonly required: false;
9157
+ readonly description: "Connect to a specific Pane data directory.";
9158
+ }];
9159
+ readonly examples: readonly ["runpane panels close --panel <panel-id> --yes --json"];
9160
+ readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
9161
+ readonly notes: readonly ["Closing is not undoable: the tab and its scrollback are gone. To stop an agent and keep its tab, send it Ctrl-C with `panels input` instead; to restart a stopped one, use `panels resume`.", "A Pane's permanent tabs cannot be closed; the command fails and nothing changes.", "Closing the tab the command runs in stops the caller too, so it may not see the result."];
9162
+ };
9163
+ readonly "panels pause": {
9164
+ readonly name: "panels pause";
9165
+ readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
9166
+ readonly details: "Pauses one terminal tab until `panels resume --panel <panel-id>`, or its Pane or Session, resumes it. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
9167
+ readonly requiresPaneDaemon: true;
9168
+ readonly mutates: true;
9169
+ readonly arguments: readonly [{
9170
+ readonly name: "--panel";
9171
+ readonly value: "<panel-id>";
9172
+ readonly required: true;
9173
+ readonly description: "Terminal panel id.";
9174
+ }, {
9175
+ readonly name: "--yes";
9176
+ readonly required: false;
9177
+ readonly description: "Skip confirmation for this mutating command.";
9178
+ }, {
9179
+ readonly name: "--json";
9180
+ readonly required: false;
9181
+ readonly description: "Print machine-readable output.";
9182
+ }, {
9183
+ readonly name: "--pane-dir";
9184
+ readonly value: "<path>";
9185
+ readonly required: false;
9186
+ readonly description: "Connect to a specific Pane data directory.";
9187
+ }];
9188
+ readonly examples: readonly ["runpane panels pause --panel <panel-id> --yes --json"];
9189
+ readonly jsonSchemas: readonly ["pauseResult"];
9190
+ readonly notes: readonly ["Leave paused workers paused unless the person asks to resume them."];
9191
+ };
8307
9192
  readonly "panels wait": {
8308
9193
  readonly name: "panels wait";
8309
9194
  readonly summary: "Wait for a terminal panel to initialize, become ready/idle, or contain text.";
@@ -8646,7 +9531,7 @@ export declare const RUNPANE_CONTRACT: {
8646
9531
  readonly name: "--kinds";
8647
9532
  readonly required: false;
8648
9533
  readonly value: "<kind,...>";
8649
- readonly description: "Replace the default event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited, panel.stopped, agent.report, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged. Defaults: defaults.watch.follow.kinds under --follow, defaults.watch.untilEvent.kinds under --until-event, every kind for a one-shot read.";
9534
+ readonly description: "Replace the default event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited, panel.stopped, panel.paused, panel.unpaused, agent.report, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged. Defaults: defaults.watch.follow.kinds under --follow, defaults.watch.untilEvent.kinds under --until-event, every kind for a one-shot read.";
8650
9535
  }, {
8651
9536
  readonly name: "--json";
8652
9537
  readonly required: false;
@@ -9584,7 +10469,7 @@ export declare const RUNPANE_CONTRACT: {
9584
10469
  }];
9585
10470
  readonly examples: readonly ["runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]"];
9586
10471
  readonly jsonSchemas: readonly ["sessionResult"];
9587
- readonly notes: readonly ["Structured input accepts launchCommand (full command including arguments; empty uses the selected agent default) and profile (Session behavior instructions). Creating/opening a Session submits no automatic prompt. Create starts the Session's agent; to give it a first prompt, run `runpane panels wait --panel <panelId> --for ready`, then `runpane panels submit --panel <panelId>`. Changes apply on next terminal launch.", "JSON isPinned: true/false sets the UI pin star. Creation defaults to false; update preserves the pin when omitted.", "Payload fields (all optional on update; name required on create): name, goal, context, nextAction, launchCommand, profile (strings); isPinned and, on update, archived (booleans); agent (codex|claude|cursor); decisions and blockers (arrays of strings); evidence and outputs (arrays of links); create also takes runtime (windows|wsl) and wslDistribution; update also takes report, expectedRevision (the revision you read; the update is refused if the Session has moved on) and source (user|agent).", "A link is {\"label\": non-empty string, \"url\": an https://, http://, file:// or grain:// URL, \"addedAt\": ISO 8601 date such as 2026-10-14T09:30:00Z, \"kind\"?: evidence|output|ticket|pull-request|other, \"provenance\"?: string}.", "Arrays replace the stored value: send the whole list, not only new items.", "Every problem in the payload is reported at once in one ERR_SESSION_PAYLOAD_INVALID error (paths such as outputs[0].addedAt, \"missing\" for an absent required field), and nothing is changed.", "update only: report is {\"summary\": non-empty string, \"status\": reported|verified, \"evidence\": [at least one link], \"reportedAt\": ISO 8601 date, \"provenance\": non-empty string}; report null clears it.", "Example: {\"expectedRevision\": 4, \"nextAction\": \"Merge after CI\", \"decisions\": [\"Cut from main\", \"Skip beta\"], \"evidence\": [{\"label\": \"QA log\", \"url\": \"file:///tmp/qa.log\", \"addedAt\": \"2026-10-14T09:30:00Z\", \"kind\": \"evidence\", \"provenance\": \"qa agent\"}], \"report\": {\"summary\": \"QA passed\", \"status\": \"verified\", \"evidence\": [{\"label\": \"QA log\", \"url\": \"file:///tmp/qa.log\", \"addedAt\": \"2026-10-14T09:30:00Z\"}], \"reportedAt\": \"2026-10-14T09:31:00Z\", \"provenance\": \"qa agent\"}}"];
10472
+ readonly notes: readonly ["Structured input accepts launchCommand (full command including arguments; empty uses the selected agent default) and profile (Session behavior instructions). Creating/opening a Session submits no automatic prompt. Create starts the Session's agent; to give it a first prompt, run `runpane panels wait --panel <panelId> --for ready`, then `runpane panels submit --panel <panelId>`. Changes apply on next terminal launch.", "JSON isPinned: true/false sets the UI pin star. Creation defaults to false; update preserves the pin when omitted.", "Payload fields (all optional on update; name required on create): name, goal, context, nextAction, launchCommand, profile (strings); isPinned and, on update, archived (booleans); agent (codex|claude|cursor); decisions and blockers (arrays of strings); evidence and outputs (arrays of links); create also takes runtime (windows|wsl) and wslDistribution; update also takes report, expectedRevision (the revision you read; the update is refused if the Session has moved on) and source (user|agent).", "A link is {\"label\": non-empty string, \"url\": an https://, http://, file:// or grain:// URL, \"addedAt\": ISO 8601 date such as 2026-10-14T09:30:00Z, \"kind\"?: evidence|output|ticket|pull-request|other, \"provenance\"?: string}.", "archived: true also archives every Pane associated with the Session, as `panes archive --pane` would. A Pane that check refuses stays open (agent-busy, unsent-input, uncommitted-changes, unpushed-commits, uncommitted-and-unpushed, status-unknown), and so does one whose archive fails. The result's `panes` lists `archivedPaneIds`, `keptPanes` (with `code`) and `failedPanes` (with `error`); check a kept Pane with `panes archive --pane <id> --dry-run --json`. Undo is the person's: `panes restore`.", "Arrays replace the stored value: send the whole list, not only new items.", "Every problem in the payload is reported at once in one ERR_SESSION_PAYLOAD_INVALID error (paths such as outputs[0].addedAt, \"missing\" for an absent required field), and nothing is changed.", "update only: report is {\"summary\": non-empty string, \"status\": reported|verified, \"evidence\": [at least one link], \"reportedAt\": ISO 8601 date, \"provenance\": non-empty string}; report null clears it.", "Example: {\"expectedRevision\": 4, \"nextAction\": \"Merge after CI\", \"decisions\": [\"Cut from main\", \"Skip beta\"], \"evidence\": [{\"label\": \"QA log\", \"url\": \"file:///tmp/qa.log\", \"addedAt\": \"2026-10-14T09:30:00Z\", \"kind\": \"evidence\", \"provenance\": \"qa agent\"}], \"report\": {\"summary\": \"QA passed\", \"status\": \"verified\", \"evidence\": [{\"label\": \"QA log\", \"url\": \"file:///tmp/qa.log\", \"addedAt\": \"2026-10-14T09:30:00Z\"}], \"reportedAt\": \"2026-10-14T09:31:00Z\", \"provenance\": \"qa agent\"}}"];
9588
10473
  };
9589
10474
  readonly "sessions set-agent": {
9590
10475
  readonly name: "sessions set-agent";
@@ -10015,6 +10900,56 @@ export declare const RUNPANE_CONTRACT: {
10015
10900
  readonly jsonSchemas: readonly ["sessionResult"];
10016
10901
  readonly notes: readonly ["Uses the same Session update path as the UI. The requested pin state is idempotent."];
10017
10902
  };
10903
+ readonly "sessions pause": {
10904
+ readonly name: "sessions pause";
10905
+ readonly summary: "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.";
10906
+ readonly details: "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived, until `sessions resume` resumes them. A Session reads as paused (`sessions get` `session.paused`) while its chat and all of its Panes are. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
10907
+ readonly requiresPaneDaemon: true;
10908
+ readonly mutates: true;
10909
+ readonly arguments: readonly [{
10910
+ readonly name: "--session";
10911
+ readonly value: "<id|name>";
10912
+ readonly required: true;
10913
+ readonly description: "Named Session id or exact name.";
10914
+ }, {
10915
+ readonly name: "--json";
10916
+ readonly required: false;
10917
+ readonly description: "Print machine-readable output.";
10918
+ }, {
10919
+ readonly name: "--pane-dir";
10920
+ readonly value: "<path>";
10921
+ readonly required: false;
10922
+ readonly description: "Connect to a specific Pane data directory.";
10923
+ }];
10924
+ readonly examples: readonly ["runpane sessions pause --session <id|name> --json"];
10925
+ readonly jsonSchemas: readonly ["pauseResult"];
10926
+ readonly notes: readonly ["Leave paused workers paused unless the person asks to resume them."];
10927
+ };
10928
+ readonly "sessions resume": {
10929
+ readonly name: "sessions resume";
10930
+ readonly summary: "Resume a paused Session: restart its chat and the paused tabs of its Panes.";
10931
+ readonly details: "Resumes the paused tabs of a Session's chat and Panes. An archived Session is refused. Pane restarts each paused tab in place through the same restart `panels resume` runs, so agents relaunch in their saved conversations and report ready as usual. Running tabs are left alone and counted in `unchanged`. `watch` reports each resumed tab as `panel.unpaused`.";
10932
+ readonly requiresPaneDaemon: true;
10933
+ readonly mutates: true;
10934
+ readonly arguments: readonly [{
10935
+ readonly name: "--session";
10936
+ readonly value: "<id|name>";
10937
+ readonly required: true;
10938
+ readonly description: "Named Session id or exact name.";
10939
+ }, {
10940
+ readonly name: "--json";
10941
+ readonly required: false;
10942
+ readonly description: "Print machine-readable output.";
10943
+ }, {
10944
+ readonly name: "--pane-dir";
10945
+ readonly value: "<path>";
10946
+ readonly required: false;
10947
+ readonly description: "Connect to a specific Pane data directory.";
10948
+ }];
10949
+ readonly examples: readonly ["runpane sessions resume --session <id|name> --json"];
10950
+ readonly jsonSchemas: readonly ["pauseResult"];
10951
+ readonly notes: readonly ["ok is false when a tab could not start; check failed[] for which and why. The others still resumed."];
10952
+ };
10018
10953
  readonly "pr watch": {
10019
10954
  readonly name: "pr watch";
10020
10955
  readonly summary: "Register durable GitHub PR monitoring for a Pane.";
@@ -10546,11 +11481,11 @@ export declare const RUNPANE_CONTRACT: {
10546
11481
  readonly notes: readonly ["Write the card the way the pane MCP server's instructions say: in plain words, what the work is for, what just happened, and what you need.", "Results: options returns {answer: <chosen label>, note?}; approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.", "A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.", "A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.", "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.", "Invalid input, such as choices with ui ask or 10 choices, fails with a message naming the field, and nothing is shown."];
10547
11482
  };
10548
11483
  };
10549
- readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Open later agents with `runpane panels create --pane <id>` (MCP: `panels_create` or `agents_start` with `pane`), not a new 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.", "", "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."];
11484
+ readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Open later agents with `runpane panels create --pane <id>` (MCP: `panels_create` or `agents_start` with `pane`), not a new 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. 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."];
10550
11485
  readonly notifyGuidance: {
10551
- readonly rules: readonly ["Ask only what you can't find out yourself.", "Put related questions in one card.", "Send `info` rarely, only for what the person must know now.", "Keep titles short and choices to a few words."];
11486
+ readonly rules: readonly ["Ask only what you can't find out yourself.", "Put related questions in one card.", "Send `info` rarely, only for what the person must know now.", "Keep titles short and choices to a few words.", "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."];
10552
11487
  readonly cardRule: "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.";
10553
- readonly results: "`waiting` means call `notify` again with `resume`; `unavailable` means ask in the terminal.";
11488
+ readonly results: "`waiting` means call `notify` again with `resume`. `unavailable` means ask in the terminal; for a secret, ask the person to save it in Pane under Settings > Secrets.";
10554
11489
  readonly examples: readonly [{
10555
11490
  readonly name: "Needs a decision";
10556
11491
  readonly ui: "approve";