runpane 2.4.214 → 2.4.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +27 -1
  2. package/dist/autopilot.d.ts +16 -0
  3. package/dist/autopilot.d.ts.map +1 -0
  4. package/dist/autopilot.js +376 -0
  5. package/dist/autopilot.js.map +1 -0
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +24 -0
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands.d.ts +34 -0
  10. package/dist/commands.d.ts.map +1 -1
  11. package/dist/commands.js +133 -6
  12. package/dist/commands.js.map +1 -1
  13. package/dist/daemonClient.d.ts.map +1 -1
  14. package/dist/daemonClient.js +25 -1
  15. package/dist/daemonClient.js.map +1 -1
  16. package/dist/docs-index.json +1 -1
  17. package/dist/generated/contract.d.ts +2478 -197
  18. package/dist/generated/contract.d.ts.map +1 -1
  19. package/dist/generated/contract.js +7356 -3378
  20. package/dist/generated/contract.js.map +1 -1
  21. package/dist/localControl.d.ts +50 -4
  22. package/dist/localControl.d.ts.map +1 -1
  23. package/dist/localControl.js +309 -17
  24. package/dist/localControl.js.map +1 -1
  25. package/dist/mcp.js +1 -1
  26. package/dist/mcp.js.map +1 -1
  27. package/dist/mcpTools.d.ts +5 -4
  28. package/dist/mcpTools.d.ts.map +1 -1
  29. package/dist/mcpTools.js +14 -2
  30. package/dist/mcpTools.js.map +1 -1
  31. package/dist/notify.d.ts +99 -0
  32. package/dist/notify.d.ts.map +1 -1
  33. package/dist/notify.js +83 -19
  34. package/dist/notify.js.map +1 -1
  35. package/dist/secrets.d.ts +12 -0
  36. package/dist/secrets.d.ts.map +1 -0
  37. package/dist/secrets.js +296 -0
  38. package/dist/secrets.js.map +1 -0
  39. package/dist/updateCapacity.d.ts +2 -2
  40. package/dist/updateCapacity.d.ts.map +1 -1
  41. package/dist/updateCapacity.js +4 -1
  42. package/dist/updateCapacity.js.map +1 -1
  43. package/dist/watchLines.d.ts +1 -0
  44. package/dist/watchLines.d.ts.map +1 -1
  45. package/dist/watchLines.js +7 -0
  46. package/dist/watchLines.js.map +1 -1
  47. package/package.json +1 -1
@@ -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.";
@@ -299,7 +335,7 @@ export declare const RUNPANE_CONTRACT: {
299
335
  }, {
300
336
  readonly name: "panes archive";
301
337
  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.";
302
- readonly usage: readonly ["runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json] [--pane-dir <path>]", "runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json] [--pane-dir <path>]"];
338
+ readonly usage: readonly ["runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json] [--pane-dir <path>]", "runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json] [--pane-dir <path>]"];
303
339
  readonly mutates: true;
304
340
  readonly toolsets: readonly ["core", "panes"];
305
341
  readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
@@ -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.";
@@ -358,6 +413,15 @@ export declare const RUNPANE_CONTRACT: {
358
413
  readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
359
414
  readonly localControl: true;
360
415
  readonly toolsets: readonly ["core", "panels"];
416
+ }, {
417
+ readonly name: "panels close";
418
+ readonly summary: "Close a tab an agent opened, exactly like closing it in Pane; refuses the person's tabs, busy agents and unsent input unless --force.";
419
+ readonly usage: readonly ["runpane panels close --panel <panel-id> [--dry-run] [--force] [--source user|agent] --yes [--json] [--pane-dir <path>]"];
420
+ readonly mutates: true;
421
+ readonly idempotent: true;
422
+ readonly toolsets: readonly ["core", "panels"];
423
+ readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
424
+ readonly localControl: true;
361
425
  }, {
362
426
  readonly name: "panels list";
363
427
  readonly summary: "List tool panels inside a Pane session.";
@@ -420,6 +484,15 @@ export declare const RUNPANE_CONTRACT: {
420
484
  readonly toolsets: readonly ["panels"];
421
485
  readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
422
486
  readonly localControl: true;
487
+ }, {
488
+ readonly name: "panels pause";
489
+ readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
490
+ readonly usage: readonly ["runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]"];
491
+ readonly mutates: true;
492
+ readonly idempotent: true;
493
+ readonly toolsets: readonly ["panels"];
494
+ readonly jsonSchemas: readonly ["pauseResult"];
495
+ readonly localControl: true;
423
496
  }, {
424
497
  readonly name: "panels last-message";
425
498
  readonly summary: "Read an agent's last reply from its transcript, without scraping the screen.";
@@ -708,7 +781,7 @@ export declare const RUNPANE_CONTRACT: {
708
781
  }, {
709
782
  readonly name: "notify";
710
783
  readonly summary: "Ask the person a question, or tell them something, wherever they are, and get their answer back.";
711
- readonly usage: readonly ["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>]"];
784
+ readonly usage: readonly ["runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", "runpane notify --resume <id> [--json] [--pane-dir <path>]"];
712
785
  readonly mutates: true;
713
786
  readonly additive: true;
714
787
  readonly toolsets: readonly ["core"];
@@ -716,18 +789,72 @@ export declare const RUNPANE_CONTRACT: {
716
789
  readonly localControl: true;
717
790
  }, {
718
791
  readonly name: "inbox";
719
- readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged.";
792
+ readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged, and the answers its workers got.";
720
793
  readonly usage: readonly ["runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]"];
721
794
  readonly jsonSchemas: readonly ["inboxListResult"];
722
795
  readonly localControl: true;
723
796
  }, {
724
797
  readonly name: "inbox ack";
725
- readonly summary: "Clear Session inbox items once they are handled.";
726
- readonly usage: readonly ["runpane inbox ack <item-id>... [--session <id|name>] [--json] [--pane-dir <path>]", "runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]"];
798
+ readonly summary: "Clear Session inbox items once they are handled, and record an answer's D-n.";
799
+ readonly usage: readonly ["runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json] [--pane-dir <path>]", "runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]"];
727
800
  readonly mutates: true;
728
801
  readonly idempotent: true;
729
802
  readonly jsonSchemas: readonly ["inboxAckResult"];
730
803
  readonly localControl: true;
804
+ }, {
805
+ readonly name: "autopilot status";
806
+ readonly summary: "Show Autopilot (experimental): whether it is on and running, whether Sentinel is on, its run, its stack, and what waits in each Session.";
807
+ readonly usage: readonly ["runpane autopilot status [--json] [--pane-dir <path>]"];
808
+ readonly toolsets: readonly ["autopilot"];
809
+ readonly jsonSchemas: readonly ["autopilotStatusResult"];
810
+ readonly localControl: true;
811
+ }, {
812
+ readonly name: "autopilot waiting";
813
+ readonly summary: "List every approval and question waiting on the person on every machine Autopilot can reach, grouped by Session, and the machines it can't reach. This is Autopilot's queue.";
814
+ readonly usage: readonly ["runpane autopilot waiting [--json] [--pane-dir <path>]"];
815
+ readonly toolsets: readonly ["autopilot"];
816
+ readonly jsonSchemas: readonly ["autopilotWaitingResult"];
817
+ readonly localControl: true;
818
+ }, {
819
+ readonly name: "autopilot stack";
820
+ readonly summary: "List the entries on Autopilot's stack in order, and which one is on screen.";
821
+ readonly usage: readonly ["runpane autopilot stack [--json] [--pane-dir <path>]"];
822
+ readonly toolsets: readonly ["autopilot"];
823
+ readonly jsonSchemas: readonly ["autopilotStackResult"];
824
+ readonly localControl: true;
825
+ }, {
826
+ readonly name: "autopilot stack push";
827
+ readonly summary: "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.";
828
+ readonly usage: readonly ["runpane autopilot stack push (--item <id> | --file <path> | --url <url> | --session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next] [--json] [--pane-dir <path>]"];
829
+ readonly mutates: true;
830
+ readonly additive: true;
831
+ readonly toolsets: readonly ["autopilot"];
832
+ readonly jsonSchemas: readonly ["autopilotStackPushRequest", "autopilotStackPushResult"];
833
+ readonly localControl: true;
834
+ }, {
835
+ readonly name: "autopilot answer";
836
+ readonly summary: "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.";
837
+ readonly usage: readonly ["runpane autopilot answer <id> (--choice <label> | --approve | --deny | --text <text>) [--note <text>] --because <why> [--json] [--pane-dir <path>]"];
838
+ readonly mutates: true;
839
+ readonly toolsets: readonly ["autopilot"];
840
+ readonly jsonSchemas: readonly ["autopilotAnswerRequest", "autopilotAnswerResult"];
841
+ readonly localControl: true;
842
+ }, {
843
+ readonly name: "autopilot close";
844
+ readonly summary: "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.";
845
+ readonly usage: readonly ["runpane autopilot close <id> --reason <why> [--json] [--pane-dir <path>]"];
846
+ readonly mutates: true;
847
+ readonly toolsets: readonly ["autopilot"];
848
+ readonly jsonSchemas: readonly ["autopilotCloseRequest", "autopilotCloseResult"];
849
+ readonly localControl: true;
850
+ }, {
851
+ readonly name: "autopilot rewrite";
852
+ readonly summary: "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.";
853
+ readonly usage: readonly ["runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>] [--json] [--pane-dir <path>]"];
854
+ readonly mutates: true;
855
+ readonly toolsets: readonly ["autopilot"];
856
+ readonly jsonSchemas: readonly ["autopilotRewriteRequest", "autopilotRewriteResult"];
857
+ readonly localControl: true;
731
858
  }, {
732
859
  readonly name: "sessions list";
733
860
  readonly summary: "List durable named orchestration Sessions.";
@@ -839,6 +966,25 @@ export declare const RUNPANE_CONTRACT: {
839
966
  readonly toolsets: readonly ["core", "sessions"];
840
967
  readonly jsonSchemas: readonly ["sessionResult"];
841
968
  readonly localControl: true;
969
+ }, {
970
+ readonly name: "sessions pause";
971
+ readonly summary: "Pause a Session: stop the terminal tabs of its chat and every Pane in it, keeping their conversations. Chat tabs keep running.";
972
+ readonly usage: readonly ["runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]"];
973
+ readonly mutates: true;
974
+ readonly idempotent: true;
975
+ readonly toolsets: readonly ["sessions"];
976
+ readonly jsonSchemas: readonly ["pauseResult"];
977
+ readonly localControl: true;
978
+ }, {
979
+ readonly name: "sessions resume";
980
+ readonly summary: "Resume a paused Session: restart its chat and the paused tabs of its Panes.";
981
+ readonly usage: readonly ["runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]"];
982
+ readonly mutates: true;
983
+ readonly additive: true;
984
+ readonly idempotent: true;
985
+ readonly toolsets: readonly ["sessions"];
986
+ readonly jsonSchemas: readonly ["pauseResult"];
987
+ readonly localControl: true;
842
988
  }, {
843
989
  readonly name: "pr watch";
844
990
  readonly summary: "Register durable GitHub PR monitoring for a Pane.";
@@ -1285,6 +1431,26 @@ export declare const RUNPANE_CONTRACT: {
1285
1431
  readonly name: "--clear";
1286
1432
  readonly value: "<setting,...>";
1287
1433
  readonly description: "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt.";
1434
+ }, {
1435
+ readonly name: "--env";
1436
+ readonly value: "<VAR=NAME|json>";
1437
+ readonly description: "secrets exec: inject secret NAME as VAR; repeatable. repos update: a JSON array of project variables to add or replace by key.";
1438
+ }, {
1439
+ readonly name: "--env-remove";
1440
+ readonly value: "<name,...>";
1441
+ readonly description: "Project variables to remove, comma-separated.";
1442
+ }, {
1443
+ readonly name: "--project";
1444
+ readonly value: "<project>";
1445
+ readonly description: "Pane secret project: up to 64 letters, digits, \".\", \"_\" or \"-\".";
1446
+ }, {
1447
+ readonly name: "--only";
1448
+ readonly value: "<name,...>";
1449
+ readonly description: "Secrets to inject, comma-separated. Defaults to every secret in the project.";
1450
+ }, {
1451
+ readonly name: "--reason";
1452
+ readonly value: "<text>";
1453
+ readonly description: "secrets request: why you need the secret, shown on the card. autopilot close: why it closes, recorded on the item.";
1288
1454
  }, {
1289
1455
  readonly name: "--epoch";
1290
1456
  readonly value: "<epoch>";
@@ -1317,10 +1483,46 @@ export declare const RUNPANE_CONTRACT: {
1317
1483
  readonly name: "--action";
1318
1484
  readonly value: "<json>";
1319
1485
  readonly description: "notify --ui info: one button as a JSON object {label, url}.";
1486
+ }, {
1487
+ readonly name: "--links";
1488
+ readonly value: "<json>";
1489
+ readonly description: "notify: up to 6 related files or pages as a JSON array of {label, path} or {label, url}; any ui.";
1320
1490
  }, {
1321
1491
  readonly name: "--content";
1322
1492
  readonly value: "<text>";
1323
1493
  readonly description: "Text that workspace write writes instead of stdin.";
1494
+ }, {
1495
+ readonly name: "--agent-farm";
1496
+ readonly value: "<profile>";
1497
+ readonly description: "Start an Agent Farm profile (such as greenfield/implementer:opus) in a chat tab.";
1498
+ }, {
1499
+ readonly name: "--arg";
1500
+ readonly value: "<key=value>";
1501
+ readonly description: "A launch argument for --agent-farm, shown to the agent in its LAUNCH CONTEXT; repeatable.";
1502
+ }, {
1503
+ readonly name: "--item";
1504
+ readonly value: "<id>";
1505
+ readonly description: "autopilot stack push only: the waiting item (an id from `runpane autopilot waiting`) to put on the stack.";
1506
+ }, {
1507
+ readonly name: "--relays";
1508
+ readonly value: "<item>";
1509
+ readonly description: "notify only: relay into this waiting item (an id from `runpane inbox`): the same card gains the choices, context and links, and the call waits on it.";
1510
+ }, {
1511
+ readonly name: "--about-session";
1512
+ readonly value: "<id|name>";
1513
+ readonly description: "notify only, for Autopilot's own items: the Session the item is about.";
1514
+ }, {
1515
+ readonly name: "--decision";
1516
+ readonly value: "<D-n>";
1517
+ readonly description: "inbox ack only: record this D-n on each named item.";
1518
+ }, {
1519
+ readonly name: "--choice";
1520
+ readonly value: "<label>";
1521
+ readonly description: "autopilot answer only: answer with this choice's label.";
1522
+ }, {
1523
+ readonly name: "--because";
1524
+ readonly value: "<why>";
1525
+ readonly description: "autopilot answer only: why, recorded on the item: a D-n, a document or the person's words.";
1324
1526
  }];
1325
1527
  readonly localBoolean: readonly [{
1326
1528
  readonly name: "--json";
@@ -1339,7 +1541,7 @@ export declare const RUNPANE_CONTRACT: {
1339
1541
  readonly description: "Open the tab in split view beside the primary tab group (default for panels open).";
1340
1542
  }, {
1341
1543
  readonly name: "--tab";
1342
- readonly description: "Open the tab in the current tab group instead of split view.";
1544
+ readonly description: "Open the tab in the current tab group instead of split view. On autopilot stack push it takes a value instead: --tab <path-or-url> adds a tab (a file, or an http(s) URL); repeatable.";
1343
1545
  }, {
1344
1546
  readonly name: "--pinned";
1345
1547
  readonly description: "Request pinning at creation; Session association still clears the first pin. Outside a Session, creation pins by default.";
@@ -1351,13 +1553,16 @@ export declare const RUNPANE_CONTRACT: {
1351
1553
  readonly description: "Inside a Session orchestrator, do not associate the created pane with that Session.";
1352
1554
  }, {
1353
1555
  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.";
1556
+ 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 panels close, close the tab even if an agent opened it, its agent is busy, or it holds unsent input (a stuck tab); for lock release, release another owner's lock.";
1355
1557
  }, {
1356
1558
  readonly name: "--remove-worktree";
1357
1559
  readonly description: "Also check and remove an adopted Pane's worktree when archiving it. The local branch is kept.";
1358
1560
  }, {
1359
1561
  readonly name: "--merged";
1360
1562
  readonly description: "With panes archive --session, archive only Panes whose PR is confirmed merged and whose worktree has no uncommitted, untracked or unpushed work. Other Panes are skipped with a reason (pr-open, pr-not-merged, pr-status-unknown, or a local safety code).";
1563
+ }, {
1564
+ readonly name: "--closed";
1565
+ readonly description: "With panes archive --session --merged, also archive Panes whose PR closed without merging, with the same unsaved-work checks.";
1361
1566
  }, {
1362
1567
  readonly name: "--launch";
1363
1568
  readonly description: "Run an adopted pane's agent resume command immediately instead of staging it.";
@@ -1421,11 +1626,23 @@ export declare const RUNPANE_CONTRACT: {
1421
1626
  }, {
1422
1627
  readonly name: "--paused";
1423
1628
  readonly description: "loops create only: create the loop paused.";
1629
+ }, {
1630
+ readonly name: "--chat";
1631
+ readonly description: "Open the agent as a chat tab (Claude or Codex over ACP, no terminal) instead of a terminal tab.";
1632
+ }, {
1633
+ readonly name: "--next";
1634
+ readonly description: "autopilot stack push only: put the entry right after the one on screen, so it comes up next (jumping back up to a higher Session).";
1635
+ }, {
1636
+ readonly name: "--approve";
1637
+ readonly description: "autopilot answer only: approve the item.";
1638
+ }, {
1639
+ readonly name: "--deny";
1640
+ readonly description: "autopilot answer only: deny the item.";
1424
1641
  }];
1425
1642
  };
1426
1643
  readonly help: {
1427
1644
  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."];
1645
+ 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 [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1429
1646
  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
1647
  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
1648
  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,23 +1652,29 @@ export declare const RUNPANE_CONTRACT: {
1435
1652
  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
1653
  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
1654
  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"];
1655
+ 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
1656
  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."];
1657
+ 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."];
1658
+ 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"];
1659
+ 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"];
1660
+ 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"];
1661
+ 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"];
1662
+ 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"];
1663
+ 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 [--closed] [--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
1664
  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
1665
  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
1666
  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
1667
  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."];
1668
+ readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "Autopilot's kinds are opt-in the same way, never in a default: item.created and item.answered", "(ITEM|ANSWERED <pane-name> pane <pane-id> [panel <panel-id>] <item-id>: <title>), session.created", "and session.archived (SESSION NEW|ARCHIVED <name> pane <pane-id> session <session-id>), and", "orchestrator.turn_ended (TURN ENDED <session-name> pane <pane-id> panel <panel-id> session <session-id>).", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
1446
1669
  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
1670
  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"];
1671
+ readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it. Add --closed to the sweep to also archive Panes whose PR closed without merging.", "", "Options:", " --pane <pane-id> Pane/session id to archive", " --source <user|agent> Mark mutation source", " --force Archive even if the pane has uncommitted, untracked, or unpushed changes, a busy agent, or unsent input", " --remove-worktree Also check and remove an adopted Pane's worktree (the branch is kept)", " --session <id|name> Archive the Panes associated with this Session (requires --merged)", " --merged Only archive Panes that are clean and pushed, or merged via a PR", " --closed With --session --merged, also archive Panes whose PR closed unmerged", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Refresh and print archive safety evidence without archiving", " --yes Skip confirmation for mutating commands"];
1449
1672
  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
1673
  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
1674
  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
1675
  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."];
1454
- 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"];
1676
+ 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 close --panel <panel-id> [--dry-run] [--force] --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 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."];
1677
+ 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.", "openedBy says who opened the tab through runpane: source agent or user, and panelId of the tab that opened it. Tabs without it are the person's.", "", "Options:", " --pane <pane-id> Pane/session id", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1455
1678
  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
1679
  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"];
1457
1680
  readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command> Print the full definition for one runpane command", " --json Print machine-readable output", " --pane-dir <path> Accepted and ignored; agent-context never contacts Pane", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
@@ -1462,6 +1685,7 @@ export declare const RUNPANE_CONTRACT: {
1462
1685
  readonly "panels wait": readonly ["Usage:", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json]", "", "Polls a terminal panel until it is initialized, ready, idle, or contains text. Output is intentionally small and includes next-step guidance.", "", "Options:", " --panel <panel-id> Terminal panel id", " --for <condition> initialized, ready, idle, or text; defaults to ready for CLI panels and idle otherwise", " --contains <text> Text required for --for text; implies --for text when omitted", " --timeout-ms <milliseconds> Wait timeout; defaults to 30000", " --interval-ms <milliseconds> Poll interval; defaults to 500", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1463
1686
  readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]", " runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] [--expect-report|--no-expect-report] [--wait [--timeout <duration>]] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --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)", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1464
1687
  readonly "panels open": readonly ["Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.", "", "Usage:", " runpane panels open [--pane <pane-id>] (--url <url>|--file <path>) [--title <title>] [--split|--tab] [--focus|--no-focus] [--source user|agent] --yes [--json]", "", "Opens a tab inside a Pane (default: the Pane of the calling panel, from PANE_SESSION_ID). Use it to show the user an HTML page, plan, report, local dev server, or file beside the conversation. --url opens a browser tab (http, https, or file). --file opens a file inside the Pane worktree: files open in an editor tab with read-only previews for supported formats; HTML opens as editable source. Tabs open in split view beside the agent by default; --tab keeps them in the current group. An existing tab showing the same URL or file is reused. Never raises or focuses the Pane window.", "", "Options:", " --pane <pane-id> Pane to open the tab in; defaults to PANE_SESSION_ID.", " --url <url> http(s) or file URL to open in a browser tab.", " --file <path> File inside the Pane worktree (relative, Linux, Windows, or WSL UNC path).", " --title <title> Tab title override.", " --split Open in split view beside the agent (default).", " --tab Open in the current tab group instead.", " --no-focus Open without selecting the tab.", " --focus Select the tab (default); never raises the window.", " --source <user|agent> Mutation source.", " --pane-dir <path> Connect to a specific Pane data directory.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1688
+ readonly "panels close": readonly ["Usage:", " runpane panels close --panel <panel-id> [--dry-run] [--force] [--source user|agent] --yes [--json] [--pane-dir <path>]", "", "Closes a tab exactly like closing it in Pane (a terminal tab's process stops); never archives the Pane or touches its worktree. Only tabs an agent opened with --source agent can close. Refuses, without closing, the person's tabs (and tabs from before Pane recorded openers), permanent tabs, an agent mid-turn or waiting for an answer, unsent composer text or unsaved edits, and a live tab whose input Pane cannot read. A refusal exits 1 with the reason and the next step. --force closes it anyway, as the tab's close button does, for a stuck tab or one the person asked you to close; only a permanent tab still stays. A tab id that no longer exists reports alreadyClosed.", "", "Options:", " --panel <panel-id> Tab to close", " --dry-run Report whether the tab would close, and why not, without closing it", " --force Close it even if an agent didn't open it, its agent is busy, or it holds unsent input", " --source <user|agent> Mark mutation source", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --yes Skip confirmation for mutating commands", "", "Examples:", " runpane panels close --panel <panel-id> --dry-run --json", " runpane panels close --panel <panel-id> --yes --json"];
1465
1689
  readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready. auto retries once if the text is still in the composer.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1466
1690
  readonly "sessions list": readonly ["Usage:", "runpane sessions list [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
1467
1691
  readonly "sessions create": readonly ["Usage:", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output.", "", "JSON isPinned: true pins the Session; omitted or false leaves it unpinned.", "Create-time isPinned requires an updated Pane app; on older apps, use sessions pin after creation and read back the result."];
@@ -1494,10 +1718,10 @@ export declare const RUNPANE_CONTRACT: {
1494
1718
  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
1719
  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
1720
  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."];
1721
+ 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
1722
  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
- 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"];
1723
+ 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>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--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://...\"}", " --links <json> Any ui: up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --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\"}]'"];
1724
+ 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
1725
  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"];
1502
1726
  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
1727
  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."];
@@ -1523,11 +1747,24 @@ export declare const RUNPANE_CONTRACT: {
1523
1747
  readonly "pr watch": readonly ["runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "", "Register durable GitHub PR monitoring for a Pane."];
1524
1748
  readonly "pr unwatch": readonly ["runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "", "Remove a Pane’s explicit PR registration."];
1525
1749
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1526
- 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
- 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"];
1750
+ 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), plus the answers its", "workers got, kept 7 days. An answer with no decision prints as needing a D-n. 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>...`, and record an answer's decision", "with `runpane inbox ack <item-id> --decision <D-n>`."];
1751
+ readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--decision <D-n>] [--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.", "With --decision it also records that D-n on each item, even one already cleared whose answer has none yet.", "", "Options:", " --decision <D-n> Record this D-n on each named item, such as D-147; not with --all", " --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"];
1752
+ readonly autopilot: readonly ["Usage:", " runpane autopilot <status|waiting|stack|stack push|answer|close|rewrite> [options]", "", "Autopilot (experimental) walks every Session from the top and brings the person what waits on", "them, one group at a time. It may close and rewrite items and, when the way forward is clear", "and related to its work with the person or when told to, answer them, recorded \"by Autopilot\"", "on the item. Permission prompts stay the person's: Pane refuses them with AUTOPILOT_CANNOT_ANSWER."];
1753
+ readonly "autopilot status": readonly ["Usage:", " runpane autopilot status [--json] [--pane-dir <path>]", "", "Shows whether Autopilot is on and running, stopped or paused, its current run folder, how many", "entries its stack holds and which one is on screen, and how many items wait in each Session.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1754
+ readonly "autopilot waiting": readonly ["Usage:", " runpane autopilot waiting [--json] [--pane-dir <path>]", "", "Lists every approval, question and permission prompt waiting on the person on every machine", "Autopilot can reach, grouped by Session in the order Autopilot walks them (top first), one line", "per item: its id, kind, title, agent · Pane, how long it has waited, its machine when it isn't", "this one, and \"on the stack\", \"stale\", \"quiet\" or \"reopened by you\" when they apply. A last line names each saved", "machine it can't reach (\"<machine> offline\") and each of the person's machines not saved here", "(\"Can't see: <machine>\"). This is Autopilot's queue: read from each machine's table, no copy.", "Fails with AUTOPILOT_OFF while Autopilot is off.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1755
+ readonly "autopilot stack": readonly ["Usage:", " runpane autopilot stack [--json] [--pane-dir <path>]", "", "Lists the stack's entries in order; > marks the one on screen. Fails with AUTOPILOT_OFF while", "Autopilot is off.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1756
+ readonly "autopilot stack push": readonly ["Usage:", " runpane autopilot stack push (--item <id> | --file <path> | --url <url> | --session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next] [--json] [--pane-dir <path>]", "", "Puts one entry on Autopilot's stack. A new entry never replaces the one on screen: it waits", "and comes up when the person is done with that one. Give exactly one of --item, --file, --url,", "or --session. Relative paths resolve against this directory.", "", "Options:", " --item <id> A waiting item from `runpane autopilot waiting`", " --file <path> A document to show (HTML, Markdown, or text)", " --url <url> A page or running app to show", " --session <id|name> A Session's overview", " --title <text> The entry's title (default: the item's, file's, or Session's name)", " --note <text> Autopilot's one line about why it is here", " --tab <path-or-url> An extra tab: a file, or an http(s) URL; repeatable", " --next Put it right after the entry on screen, so it comes up next", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_PAUSED while the person has paused Autopilot, and AUTOPILOT_STACK_INVALID", "when the item, file, URL, or Session is not one Pane can show."];
1757
+ readonly "autopilot answer": readonly ["Usage:", " runpane autopilot answer <id> (--choice <label> | --approve | --deny | --text <text>) [--note <text>] --because <why> [--json] [--pane-dir <path>]", "", "Answers a waiting item as Autopilot, from `runpane autopilot waiting`. The owning machine delivers", "it to the asker at once and records \"Answered by Autopilot · because <why>\" on every device; the", "person can Override it. Answer only when the way forward is clear and the item relates to your", "work with the person, or when the person told you to handle approvals.", "", "Options:", " --choice <label> The chosen label of an options item", " --approve Approve an approve item", " --deny Deny an approve item", " --text <text> A typed answer", " --note <text> A note for the asker, with --choice, --approve or --deny", " --because <why> Required: a D-n, a document or the person's words", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt, and says who answered when someone", "already has: leave those."];
1758
+ readonly "autopilot close": readonly ["Usage:", " runpane autopilot close <id> --reason <why> [--json] [--pane-dir <path>]", "", "Closes a waiting item as Autopilot: its asker is told, \"Closed by Autopilot: <why>\" shows on every", "device, and the person can reopen it.", "", "Options:", " --reason <why> Required: why it no longer needs the person", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt."];
1759
+ readonly "autopilot rewrite": readonly ["Usage:", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>] [--json] [--pane-dir <path>]", "", "Closes an unclear waiting item and re-asks it rewritten, linked to the old one, on the same", "machine. The answer goes to the original asker. Relative --links paths resolve against this", "directory; a file must exist on the item's machine.", "", "Options:", " --ui <ui> options, approve, or ask", " --title <text> The question in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --links <json> Up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Prints the new item's id. Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt."];
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 the terminal tabs of a Session's chat and of every Pane in it that is not archived (a chat tab can't pause yet: its agent keeps running, and the result says so),", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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"];
1528
1765
  };
1529
1766
  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."];
1767
+ 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 [--closed] [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " python -m runpane loops list [--json]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1531
1768
  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
1769
  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
1770
  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,23 +1774,29 @@ export declare const RUNPANE_CONTRACT: {
1537
1774
  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
1775
  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
1776
  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>"];
1777
+ 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
1778
  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."];
1779
+ 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."];
1780
+ 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"];
1781
+ 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"];
1782
+ 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"];
1783
+ 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"];
1784
+ 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"];
1785
+ 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 [--closed] [--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
1786
  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
1787
  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
1788
  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
1789
  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."];
1790
+ readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "Autopilot's kinds are opt-in the same way, never in a default: item.created and item.answered", "(ITEM|ANSWERED <pane-name> pane <pane-id> [panel <panel-id>] <item-id>: <title>), session.created", "and session.archived (SESSION NEW|ARCHIVED <name> pane <pane-id> session <session-id>), and", "orchestrator.turn_ended (TURN ENDED <session-name> pane <pane-id> panel <panel-id> session <session-id>).", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
1548
1791
  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
1792
  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"];
1793
+ readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--closed] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it. Add --closed to the sweep to also archive Panes whose PR closed without merging.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --closed", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1551
1794
  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
1795
  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
1796
  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
1797
  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."];
1556
- 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"];
1798
+ 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 close --panel <panel-id> [--dry-run] [--force] --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 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."];
1799
+ 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.", "openedBy says who opened the tab through runpane: source agent or user, and panelId of the tab that opened it. Tabs without it are the person's.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json"];
1557
1800
  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
1801
  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"];
1559
1802
  readonly "agent-context": readonly ["Usage:", " runpane agent-context [--json]", " runpane agent-context --command <command> [--json]", "", "Prints Pane command context for coding agents without requiring a running Pane app.", "", "Options:", " --command <command>", " --json", " --pane-dir <path> Accepted and ignored", "", "Examples:", " runpane agent-context", " runpane agent-context --json", " runpane agent-context --command \"panes create\"", " runpane agent-context --command \"panes create\" --json"];
@@ -1564,6 +1807,7 @@ export declare const RUNPANE_CONTRACT: {
1564
1807
  readonly "panels wait": readonly ["Usage:", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--contains <text>] [--timeout-ms <ms>] [--interval-ms <ms>] [--json]", "", "Polls a terminal panel until it is initialized, ready, idle, or contains text. Output is intentionally small and includes next-step guidance.", "", "Options:", " --panel <panel-id> Terminal panel id", " --for <condition> initialized, ready, idle, or text; defaults to ready for CLI panels and idle otherwise", " --contains <text> Text required for --for text; implies --for text when omitted", " --timeout-ms <milliseconds> Wait timeout; defaults to 30000", " --interval-ms <milliseconds> Poll interval; defaults to 500", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1565
1808
  readonly "panels create": readonly ["Create a terminal-backed tool panel inside an existing Pane session.", "", "Usage:", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--title <title>] [--initial-input <text>] [--no-focus] [--wait-ready] --yes [--json]", " python -m runpane panels create --pane <pane-id> --tool-command <command> [--agent <codex|claude|cursor>] [--title <title>] [--no-focus] [--wait-ready] --yes [--json]", "", "Options:", " --pane <pane-id> Existing Pane session to add the panel to.", " --agent <codex|claude|cursor> Built-in agent command template, or with --tool-command the agent it runs.", " --tool-command <command> Custom terminal command to launch.", " --title <title> Panel title override.", " --initial-input, --prompt Initial input to send after the tool starts.", " --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)", " --no-focus Create the panel in the background.", " --focus Explicitly focus the created panel.", " --source <user|agent> Mark the mutation source; agent implies background creation.", " --wait-ready Wait for the agent's input box, then deliver and verify the prompt.", " --ready-timeout-ms <ms> Readiness wait timeout.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1566
1809
  readonly "panels open": readonly ["Open a URL or file as a browser/editor tab in a Pane, in split view beside the agent by default.", "", "Usage:", " python -m runpane panels open [--pane <pane-id>] (--url <url>|--file <path>) [--title <title>] [--split|--tab] [--focus|--no-focus] [--source user|agent] --yes [--json]", "", "Opens a tab inside a Pane (default: the Pane of the calling panel, from PANE_SESSION_ID). Use it to show the user an HTML page, plan, report, local dev server, or file beside the conversation. --url opens a browser tab (http, https, or file). --file opens a file inside the Pane worktree: files open in an editor tab with read-only previews for supported formats; HTML opens as editable source. Tabs open in split view beside the agent by default; --tab keeps them in the current group. An existing tab showing the same URL or file is reused. Never raises or focuses the Pane window.", "", "Options:", " --pane <pane-id> Pane to open the tab in; defaults to PANE_SESSION_ID.", " --url <url> http(s) or file URL to open in a browser tab.", " --file <path> File inside the Pane worktree (relative, Linux, Windows, or WSL UNC path).", " --title <title> Tab title override.", " --split Open in split view beside the agent (default).", " --tab Open in the current tab group instead.", " --no-focus Open without selecting the tab.", " --focus Select the tab (default); never raises the window.", " --source <user|agent> Mutation source.", " --pane-dir <path> Connect to a specific Pane data directory.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1810
+ readonly "panels close": readonly ["Usage:", " runpane panels close --panel <panel-id> [--dry-run] [--force] [--source user|agent] --yes [--json] [--pane-dir <path>]", "", "Closes a tab exactly like closing it in Pane (a terminal tab's process stops); never archives the Pane or touches its worktree. Only tabs an agent opened with --source agent can close. Refuses, without closing, the person's tabs (and tabs from before Pane recorded openers), permanent tabs, an agent mid-turn or waiting for an answer, unsent composer text or unsaved edits, and a live tab whose input Pane cannot read. A refusal exits 1 with the reason and the next step. --force closes it anyway, as the tab's close button does, for a stuck tab or one the person asked you to close; only a permanent tab still stays. A tab id that no longer exists reports alreadyClosed.", "", "Options:", " --panel <panel-id>", " --dry-run", " --force", " --source <user|agent>", " --pane-dir <path>", " --json", " --yes", "", "Examples:", " runpane panels close --panel <panel-id> --dry-run --json", " runpane panels close --panel <panel-id> --yes --json"];
1567
1811
  readonly "panels submit-composer": readonly ["Submit an agent composer using the panel-appropriate key sequence.", "", "Usage:", " python -m runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", "", "Options:", " --panel <panel-id> Terminal panel id.", " --strategy <strategy> Defaults to auto; Codex queues with Tab while working and submits with Enter when ready. auto retries once if the text is still in the composer.", " --yes Skip confirmation prompts.", " --json Print JSON output."];
1568
1812
  readonly "sessions list": readonly ["Usage:", "python -m runpane sessions list [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output."];
1569
1813
  readonly "sessions create": readonly ["Usage:", "python -m runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "", "Options:", " --session <id|name> Named Session id or exact name.", " --from-json <path|-> Read structured JSON from a file or stdin.", " --pane <pane-id> User-visible Pane to associate or detach.", " --agent <codex|claude|cursor> Agent terminal to use.", " --json Print JSON output.", "", "JSON isPinned: true pins the Session; omitted or false leaves it unpinned.", "Create-time isPinned requires an updated Pane app; on older apps, use sessions pin after creation and read back the result."];
@@ -1596,10 +1840,10 @@ export declare const RUNPANE_CONTRACT: {
1596
1840
  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
1841
  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
1842
  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."];
1843
+ 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
1844
  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
- 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"];
1845
+ 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>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--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://...\"}", " --links <json> Any ui: up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)", " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab", " --about-session <id|name> Autopilot's own item: the Session it is about", " --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\"}]'"];
1846
+ 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
1847
  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"];
1604
1848
  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
1849
  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."];
@@ -1625,8 +1869,21 @@ export declare const RUNPANE_CONTRACT: {
1625
1869
  readonly "pr watch": readonly ["runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "", "Register durable GitHub PR monitoring for a Pane."];
1626
1870
  readonly "pr unwatch": readonly ["runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "", "Remove a Pane’s explicit PR registration."];
1627
1871
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1628
- 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
- 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"];
1872
+ 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), plus the answers its", "workers got, kept 7 days. An answer with no decision prints as needing a D-n. 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>...`, and record an answer's decision", "with `runpane inbox ack <item-id> --decision <D-n>`."];
1873
+ readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--decision <D-n>] [--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.", "With --decision it also records that D-n on each item, even one already cleared whose answer has none yet.", "", "Options:", " --decision <D-n> Record this D-n on each named item, such as D-147; not with --all", " --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"];
1874
+ readonly autopilot: readonly ["Usage:", " runpane autopilot <status|waiting|stack|stack push|answer|close|rewrite> [options]", "", "Autopilot (experimental) walks every Session from the top and brings the person what waits on", "them, one group at a time. It may close and rewrite items and, when the way forward is clear", "and related to its work with the person or when told to, answer them, recorded \"by Autopilot\"", "on the item. Permission prompts stay the person's: Pane refuses them with AUTOPILOT_CANNOT_ANSWER."];
1875
+ readonly "autopilot status": readonly ["Usage:", " runpane autopilot status [--json] [--pane-dir <path>]", "", "Shows whether Autopilot is on and running, stopped or paused, its current run folder, how many", "entries its stack holds and which one is on screen, and how many items wait in each Session.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1876
+ readonly "autopilot waiting": readonly ["Usage:", " runpane autopilot waiting [--json] [--pane-dir <path>]", "", "Lists every approval, question and permission prompt waiting on the person on every machine", "Autopilot can reach, grouped by Session in the order Autopilot walks them (top first), one line", "per item: its id, kind, title, agent · Pane, how long it has waited, its machine when it isn't", "this one, and \"on the stack\", \"stale\", \"quiet\" or \"reopened by you\" when they apply. A last line names each saved", "machine it can't reach (\"<machine> offline\") and each of the person's machines not saved here", "(\"Can't see: <machine>\"). This is Autopilot's queue: read from each machine's table, no copy.", "Fails with AUTOPILOT_OFF while Autopilot is off.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1877
+ readonly "autopilot stack": readonly ["Usage:", " runpane autopilot stack [--json] [--pane-dir <path>]", "", "Lists the stack's entries in order; > marks the one on screen. Fails with AUTOPILOT_OFF while", "Autopilot is off.", "", "Options:", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1878
+ readonly "autopilot stack push": readonly ["Usage:", " runpane autopilot stack push (--item <id> | --file <path> | --url <url> | --session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next] [--json] [--pane-dir <path>]", "", "Puts one entry on Autopilot's stack. A new entry never replaces the one on screen: it waits", "and comes up when the person is done with that one. Give exactly one of --item, --file, --url,", "or --session. Relative paths resolve against this directory.", "", "Options:", " --item <id> A waiting item from `runpane autopilot waiting`", " --file <path> A document to show (HTML, Markdown, or text)", " --url <url> A page or running app to show", " --session <id|name> A Session's overview", " --title <text> The entry's title (default: the item's, file's, or Session's name)", " --note <text> Autopilot's one line about why it is here", " --tab <path-or-url> An extra tab: a file, or an http(s) URL; repeatable", " --next Put it right after the entry on screen, so it comes up next", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_PAUSED while the person has paused Autopilot, and AUTOPILOT_STACK_INVALID", "when the item, file, URL, or Session is not one Pane can show."];
1879
+ readonly "autopilot answer": readonly ["Usage:", " runpane autopilot answer <id> (--choice <label> | --approve | --deny | --text <text>) [--note <text>] --because <why> [--json] [--pane-dir <path>]", "", "Answers a waiting item as Autopilot, from `runpane autopilot waiting`. The owning machine delivers", "it to the asker at once and records \"Answered by Autopilot · because <why>\" on every device; the", "person can Override it. Answer only when the way forward is clear and the item relates to your", "work with the person, or when the person told you to handle approvals.", "", "Options:", " --choice <label> The chosen label of an options item", " --approve Approve an approve item", " --deny Deny an approve item", " --text <text> A typed answer", " --note <text> A note for the asker, with --choice, --approve or --deny", " --because <why> Required: a D-n, a document or the person's words", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt, and says who answered when someone", "already has: leave those."];
1880
+ readonly "autopilot close": readonly ["Usage:", " runpane autopilot close <id> --reason <why> [--json] [--pane-dir <path>]", "", "Closes a waiting item as Autopilot: its asker is told, \"Closed by Autopilot: <why>\" shows on every", "device, and the person can reopen it.", "", "Options:", " --reason <why> Required: why it no longer needs the person", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt."];
1881
+ readonly "autopilot rewrite": readonly ["Usage:", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>] [--json] [--pane-dir <path>]", "", "Closes an unclear waiting item and re-asks it rewritten, linked to the old one, on the same", "machine. The answer goes to the original asker. Relative --links paths resolve against this", "directory; a file must exist on the item's machine.", "", "Options:", " --ui <ui> options, approve, or ask", " --title <text> The question in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --links <json> Up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Prints the new item's id. Fails with AUTOPILOT_CANNOT_ANSWER for a permission prompt."];
1882
+ 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"];
1883
+ 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"];
1884
+ 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"];
1885
+ readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses the terminal tabs of a Session's chat and of every Pane in it that is not archived (a chat tab can't pause yet: its agent keeps running, and the result says so),", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused 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"];
1886
+ 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
1887
  };
1631
1888
  };
1632
1889
  readonly docs: {
@@ -1635,8 +1892,8 @@ export declare const RUNPANE_CONTRACT: {
1635
1892
  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
1893
  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
1894
  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."];
1895
+ 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 close --panel <panel-id> --yes --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
1896
+ 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. Add `--closed` to the sweep to also archive Panes whose PR closed without merging.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels close --panel <panel-id>` closes a tab exactly like closing it in Pane (a terminal tab's process stops) and never archives the Pane or touches its worktree. Only a tab an agent opened with `--source agent` can close; Pane records that opener, and `panels list` shows it as `openedBy`. It refuses, without closing, the person's tabs and every tab from before Pane recorded openers (`opened-by-user`), permanent tabs (`permanent`), an agent mid-turn or waiting for an answer (`agent-busy`), unsent composer text or unsaved editor edits (`unsent-input`), and a live tab whose input Pane cannot read, such as agents other than Claude and Codex or chat tabs (`input-unknown`). A refusal prints `{ ok: false, closed: false, refused: { code, message, next } }` and exits 1. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports `wouldClose` and any refusal without closing. `--force` closes the tab anyway, as its close button does, for a stuck tab or one the person asked to close (`forced: true`); only a permanent tab still stays.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.", "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}` or `{label, url}`), shown as chips on the card. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. A chat tab can't pause yet: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input 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.", "`runpane autopilot status|waiting|stack` read Autopilot (experimental): its switch, run and stack, and its queue: every approval or question waiting on the person on every machine it can reach, grouped by Session, plus `offline` and `cantSee` machines. `runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--title <text>] [--note <text>] [--tab <path-or-url>]... [--next]` puts one entry on its stack; relative paths resolve against the caller's directory, and a new entry never replaces the one on screen. `runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) [--note <text>] --because <why>`, `runpane autopilot close <id> --reason <why>` and `runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--context <text>] [--choices <json>] [--suggestions <json>] [--links <json>]` act on an item, on the machine that holds it, recorded \"by Autopilot\" on every device; the person can Override an answer and reopen a close. Only Autopilot may run them (`AUTOPILOT_ONLY`), and they refuse a permission prompt with `AUTOPILOT_CANNOT_ANSWER`. An item someone else already answered is refused with who did."];
1640
1897
  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
1898
  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
1899
  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 +1901,7 @@ export declare const RUNPANE_CONTRACT: {
1644
1901
  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
1902
  };
1646
1903
  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"]];
1904
+ 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", "--ui", "approve", "--title", "Ship the notes?", "--links=[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR\",\"url\":\"https://example.com/pr/1\"}]"], readonly ["notify", "--resume", "n-1", "--json"], readonly ["secrets", "list", "--project", "stripe", "--json"], readonly ["secrets", "set", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes"], readonly ["secrets", "delete", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes", "--json"], readonly ["secrets", "exec", "--project", "stripe", "--only", "A,B", "--env", "KEY=STRIPE_SECRET_KEY", "--env=TOKEN=GH_TOKEN", "--file", "CERT", "--", "node", "-e", "run()", "--json"], readonly ["secrets", "exec", "--project", "qa", "sh", "-c", "echo ok"], readonly ["secrets", "request", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--title", "Stripe test key", "--reason", "- for the webhook tests", "--json"], readonly ["repos", "update", "--repo", "Pane", "--env", "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]", "--env-remove", "OLD,STALE", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--dry-run", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--source", "agent", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "close", "--panel", "panel-1", "--force", "--yes", "--json"], readonly ["panes", "archive", "--session", "session-a", "--merged", "--closed", "--dry-run", "--json"], readonly ["autopilot", "status", "--json"], readonly ["autopilot", "waiting"], readonly ["autopilot", "stack", "--json"], readonly ["autopilot", "stack", "push", "--item", "n-1", "--note", "Needs a go", "--next", "--json"], readonly ["autopilot", "stack", "push", "--file", "/tmp/plan.html", "--title", "Plan", "--tab", "https://localhost:5173", "--tab=/tmp/notes.md"], readonly ["autopilot", "stack", "push", "--session", "Release"], readonly ["watch", "--as", "autopilot", "--kinds", "item.created,item.answered,session.created,session.archived,orchestrator.turn_ended", "--until-event", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "--decision", "D-147", "--json"], readonly ["notify", "--relays", "in-1a2b3c4d", "--ui", "ask", "--title", "Q-39: Run it?"], readonly ["notify", "--ui", "ask", "--title", "Which?", "--about-session=Release", "--json"], readonly ["autopilot", "answer", "n-1", "--choice", "Yes", "--note", "Go", "--because", "D-22", "--json"], readonly ["autopilot", "answer", "n-1", "--approve", "--because=The person said so"], readonly ["autopilot", "answer", "n-1", "--deny", "--because", "D-23"], readonly ["autopilot", "answer", "n-1", "--text", "main", "--because", "D-24"], readonly ["autopilot", "close", "n-1", "--reason", "The PR merged", "--json"], readonly ["autopilot", "rewrite", "n-1", "--ui", "options", "--title", "Q-3: Which?", "--context", "Why", "--choices=[{\"label\":\"A\"}]", "--links=[{\"label\":\"Notes\",\"url\":\"https://example.com\"}]", "--json"]];
1648
1905
  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
1906
  readonly npmHelpIncludes: readonly ["pnpm dlx runpane@latest", "npx --yes runpane@latest", "runpane loops list"];
1650
1907
  readonly pipHelpIncludes: readonly ["pipx run runpane", "python -m pip install runpane && python -m runpane setup", "python -m runpane loops list"];
@@ -2282,7 +2539,7 @@ export declare const RUNPANE_CONTRACT: {
2282
2539
  readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2283
2540
  };
2284
2541
  readonly settings: {
2285
- readonly $ref: "#/$defs/settings";
2542
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/settings";
2286
2543
  };
2287
2544
  };
2288
2545
  readonly additionalProperties: false;
@@ -2309,14 +2566,14 @@ export declare const RUNPANE_CONTRACT: {
2309
2566
  };
2310
2567
  readonly fallback: {
2311
2568
  readonly anyOf: readonly [{
2312
- readonly $ref: "#/$defs/scriptSource";
2569
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSource";
2313
2570
  }, {
2314
2571
  readonly type: "null";
2315
2572
  }];
2316
2573
  };
2317
2574
  readonly effective: {
2318
2575
  readonly anyOf: readonly [{
2319
- readonly $ref: "#/$defs/scriptSource";
2576
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSource";
2320
2577
  }, {
2321
2578
  readonly type: "null";
2322
2579
  }];
@@ -2326,7 +2583,7 @@ export declare const RUNPANE_CONTRACT: {
2326
2583
  };
2327
2584
  readonly settings: {
2328
2585
  readonly type: "object";
2329
- readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript"];
2586
+ readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript", "envVars"];
2330
2587
  readonly properties: {
2331
2588
  readonly name: {
2332
2589
  readonly type: "string";
@@ -2350,13 +2607,19 @@ export declare const RUNPANE_CONTRACT: {
2350
2607
  readonly type: readonly ["string", "null"];
2351
2608
  };
2352
2609
  readonly buildScript: {
2353
- readonly $ref: "#/$defs/scriptSetting";
2610
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2354
2611
  };
2355
2612
  readonly runScript: {
2356
- readonly $ref: "#/$defs/scriptSetting";
2613
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2357
2614
  };
2358
2615
  readonly archiveScript: {
2359
- readonly $ref: "#/$defs/scriptSetting";
2616
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/scriptSetting";
2617
+ };
2618
+ readonly envVars: {
2619
+ readonly type: "array";
2620
+ readonly items: {
2621
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
2622
+ };
2360
2623
  };
2361
2624
  };
2362
2625
  readonly additionalProperties: false;
@@ -2400,6 +2663,27 @@ export declare const RUNPANE_CONTRACT: {
2400
2663
  readonly systemPrompt: {
2401
2664
  readonly type: readonly ["string", "null"];
2402
2665
  };
2666
+ readonly envVars: {
2667
+ readonly type: "object";
2668
+ readonly description: "set adds or replaces variables by key; remove deletes them by key.";
2669
+ readonly minProperties: 1;
2670
+ readonly properties: {
2671
+ readonly set: {
2672
+ readonly type: "array";
2673
+ readonly items: {
2674
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
2675
+ };
2676
+ };
2677
+ readonly remove: {
2678
+ readonly type: "array";
2679
+ readonly items: {
2680
+ readonly type: "string";
2681
+ readonly minLength: 1;
2682
+ };
2683
+ };
2684
+ };
2685
+ readonly additionalProperties: false;
2686
+ };
2403
2687
  };
2404
2688
  readonly additionalProperties: false;
2405
2689
  };
@@ -2422,137 +2706,259 @@ export declare const RUNPANE_CONTRACT: {
2422
2706
  readonly changed: {
2423
2707
  readonly type: "array";
2424
2708
  readonly items: {
2425
- readonly enum: readonly ["name", "buildScript", "runScript", "archiveScript", "worktreeFolder", "openIdeCommand", "systemPrompt"];
2709
+ readonly enum: readonly ["name", "buildScript", "runScript", "archiveScript", "worktreeFolder", "openIdeCommand", "systemPrompt", "envVars"];
2426
2710
  };
2427
2711
  };
2428
2712
  readonly repo: {
2429
2713
  readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2430
2714
  };
2431
2715
  readonly settings: {
2432
- readonly $ref: "#/$defs/settings";
2716
+ readonly $ref: "#/jsonSchemas/repoGetResult/$defs/settings";
2433
2717
  };
2434
2718
  };
2435
2719
  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;
2720
+ };
2721
+ readonly repoRenameRequest: {
2722
+ readonly type: "object";
2723
+ readonly required: readonly ["repo", "name"];
2724
+ readonly properties: {
2725
+ readonly repo: {
2726
+ readonly type: "string";
2449
2727
  };
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
- };
2728
+ readonly name: {
2729
+ readonly type: "string";
2730
+ readonly minLength: 1;
2731
+ };
2732
+ };
2733
+ readonly additionalProperties: false;
2734
+ };
2735
+ readonly repoRenameResult: {
2736
+ readonly type: "object";
2737
+ readonly required: readonly ["ok", "repo"];
2738
+ readonly properties: {
2739
+ readonly ok: {
2740
+ readonly const: true;
2741
+ };
2742
+ readonly repo: {
2743
+ readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2744
+ };
2745
+ };
2746
+ readonly additionalProperties: false;
2747
+ };
2748
+ readonly secretSummary: {
2749
+ readonly type: "object";
2750
+ readonly required: readonly ["project", "name", "updatedAt", "machine"];
2751
+ readonly properties: {
2752
+ readonly project: {
2753
+ readonly type: "string";
2754
+ };
2755
+ readonly name: {
2756
+ readonly type: "string";
2757
+ };
2758
+ readonly updatedAt: {
2759
+ readonly type: "string";
2760
+ readonly description: "ISO time it was last set.";
2761
+ };
2762
+ readonly machine: {
2763
+ readonly type: "string";
2764
+ readonly description: "The machine where it was last set.";
2765
+ };
2766
+ };
2767
+ readonly additionalProperties: false;
2768
+ };
2769
+ readonly secretListRequest: {
2770
+ readonly type: "object";
2771
+ readonly properties: {
2772
+ readonly project: {
2773
+ readonly type: "string";
2774
+ };
2775
+ };
2776
+ readonly additionalProperties: false;
2777
+ };
2778
+ readonly secretListResult: {
2779
+ readonly type: "object";
2780
+ readonly required: readonly ["ok", "secrets", "storage"];
2781
+ readonly properties: {
2782
+ readonly ok: {
2783
+ readonly const: true;
2784
+ };
2785
+ readonly secrets: {
2786
+ readonly type: "array";
2787
+ readonly items: {
2788
+ readonly $ref: "#/jsonSchemas/secretSummary";
2471
2789
  };
2472
- readonly additionalProperties: false;
2473
2790
  };
2474
- readonly settings: {
2791
+ readonly storage: {
2475
2792
  readonly type: "object";
2476
- readonly required: readonly ["name", "path", "currentBranch", "worktreeFolder", "openIdeCommand", "systemPrompt", "configFile", "buildScript", "runScript", "archiveScript"];
2793
+ readonly description: "Where this machine keeps values. encrypted is false only for the file store on a machine without an OS keyring.";
2794
+ readonly required: readonly ["kind", "encrypted"];
2477
2795
  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";
2796
+ readonly kind: {
2797
+ readonly enum: readonly ["keychain", "file"];
2504
2798
  };
2505
- readonly archiveScript: {
2506
- readonly $ref: "#/$defs/scriptSetting";
2799
+ readonly encrypted: {
2800
+ readonly type: "boolean";
2507
2801
  };
2508
2802
  };
2509
2803
  readonly additionalProperties: false;
2510
2804
  };
2511
2805
  };
2806
+ readonly additionalProperties: false;
2512
2807
  };
2513
- readonly repoRenameRequest: {
2808
+ readonly secretSetRequest: {
2809
+ readonly description: "What `runpane secrets set` sends on runpane:secrets:set. value comes from stdin.";
2514
2810
  readonly type: "object";
2515
- readonly required: readonly ["repo", "name"];
2811
+ readonly required: readonly ["project", "name", "value"];
2516
2812
  readonly properties: {
2517
- readonly repo: {
2813
+ readonly project: {
2518
2814
  readonly type: "string";
2815
+ readonly minLength: 1;
2519
2816
  };
2520
2817
  readonly name: {
2521
2818
  readonly type: "string";
2522
2819
  readonly minLength: 1;
2523
2820
  };
2821
+ readonly value: {
2822
+ readonly type: "string";
2823
+ readonly minLength: 1;
2824
+ };
2524
2825
  };
2525
2826
  readonly additionalProperties: false;
2526
2827
  };
2527
- readonly repoRenameResult: {
2828
+ readonly secretSetResult: {
2528
2829
  readonly type: "object";
2529
- readonly required: readonly ["ok", "repo"];
2830
+ readonly required: readonly ["ok", "replaced", "secret"];
2530
2831
  readonly properties: {
2531
2832
  readonly ok: {
2532
2833
  readonly const: true;
2533
2834
  };
2534
- readonly repo: {
2535
- readonly $ref: "#/jsonSchemas/repoListResult/properties/repos/items";
2835
+ readonly replaced: {
2836
+ readonly type: "boolean";
2837
+ };
2838
+ readonly secret: {
2839
+ readonly $ref: "#/jsonSchemas/secretSummary";
2536
2840
  };
2537
2841
  };
2538
2842
  readonly additionalProperties: false;
2539
2843
  };
2540
- readonly paneCreateRequest: {
2844
+ readonly secretDeleteRequest: {
2541
2845
  readonly type: "object";
2542
- readonly required: readonly ["repo", "panes"];
2846
+ readonly required: readonly ["project", "name"];
2543
2847
  readonly properties: {
2544
- readonly repo: {
2545
- readonly oneOf: readonly [{
2546
- readonly type: "string";
2547
- }, {
2548
- readonly type: "object";
2549
- readonly properties: {
2550
- readonly id: {
2551
- readonly type: "number";
2552
- };
2553
- readonly path: {
2554
- readonly type: "string";
2555
- };
2848
+ readonly project: {
2849
+ readonly type: "string";
2850
+ readonly minLength: 1;
2851
+ };
2852
+ readonly name: {
2853
+ readonly type: "string";
2854
+ readonly minLength: 1;
2855
+ };
2856
+ };
2857
+ readonly additionalProperties: false;
2858
+ };
2859
+ readonly secretDeleteResult: {
2860
+ readonly type: "object";
2861
+ readonly required: readonly ["ok", "deleted"];
2862
+ readonly properties: {
2863
+ readonly ok: {
2864
+ readonly const: true;
2865
+ };
2866
+ readonly deleted: {
2867
+ readonly type: "object";
2868
+ readonly required: readonly ["project", "name"];
2869
+ readonly properties: {
2870
+ readonly project: {
2871
+ readonly type: "string";
2872
+ };
2873
+ readonly name: {
2874
+ readonly type: "string";
2875
+ };
2876
+ };
2877
+ readonly additionalProperties: false;
2878
+ };
2879
+ };
2880
+ readonly additionalProperties: false;
2881
+ };
2882
+ readonly projectEnvVar: {
2883
+ readonly description: "A project environment variable. Plain values are shown in full; keychain and Pane secret variables are references, never values.";
2884
+ readonly oneOf: readonly [{
2885
+ readonly type: "object";
2886
+ readonly required: readonly ["key", "source", "value"];
2887
+ readonly properties: {
2888
+ readonly key: {
2889
+ readonly type: "string";
2890
+ readonly minLength: 1;
2891
+ };
2892
+ readonly source: {
2893
+ readonly const: "plain";
2894
+ };
2895
+ readonly value: {
2896
+ readonly type: "string";
2897
+ };
2898
+ };
2899
+ readonly additionalProperties: false;
2900
+ }, {
2901
+ readonly type: "object";
2902
+ readonly description: "An existing macOS keychain generic-password item.";
2903
+ readonly required: readonly ["key", "source", "service", "account"];
2904
+ readonly properties: {
2905
+ readonly key: {
2906
+ readonly type: "string";
2907
+ readonly minLength: 1;
2908
+ };
2909
+ readonly source: {
2910
+ readonly const: "keychain";
2911
+ };
2912
+ readonly service: {
2913
+ readonly type: "string";
2914
+ readonly minLength: 1;
2915
+ };
2916
+ readonly account: {
2917
+ readonly type: "string";
2918
+ readonly minLength: 1;
2919
+ };
2920
+ };
2921
+ readonly additionalProperties: false;
2922
+ }, {
2923
+ readonly type: "object";
2924
+ readonly description: "The Pane secret project/name.";
2925
+ readonly required: readonly ["key", "source", "project", "name"];
2926
+ readonly properties: {
2927
+ readonly key: {
2928
+ readonly type: "string";
2929
+ readonly minLength: 1;
2930
+ };
2931
+ readonly source: {
2932
+ readonly const: "secret";
2933
+ };
2934
+ readonly project: {
2935
+ readonly type: "string";
2936
+ readonly minLength: 1;
2937
+ };
2938
+ readonly name: {
2939
+ readonly type: "string";
2940
+ readonly minLength: 1;
2941
+ };
2942
+ };
2943
+ readonly additionalProperties: false;
2944
+ }];
2945
+ };
2946
+ readonly paneCreateRequest: {
2947
+ readonly type: "object";
2948
+ readonly required: readonly ["repo", "panes"];
2949
+ readonly properties: {
2950
+ readonly repo: {
2951
+ readonly oneOf: readonly [{
2952
+ readonly type: "string";
2953
+ }, {
2954
+ readonly type: "object";
2955
+ readonly properties: {
2956
+ readonly id: {
2957
+ readonly type: "number";
2958
+ };
2959
+ readonly path: {
2960
+ readonly type: "string";
2961
+ };
2556
2962
  readonly name: {
2557
2963
  readonly type: "string";
2558
2964
  };
@@ -2670,6 +3076,10 @@ export declare const RUNPANE_CONTRACT: {
2670
3076
  readonly source: {
2671
3077
  readonly enum: readonly ["user", "agent"];
2672
3078
  };
3079
+ readonly callerPanelId: {
3080
+ readonly type: "string";
3081
+ readonly description: "The calling tab ($PANE_PANEL_ID), recorded as the opener of the tabs this creates. The CLI sets it from PANE_PANEL_ID.";
3082
+ };
2673
3083
  readonly associateSession: {
2674
3084
  readonly type: "string";
2675
3085
  readonly description: "Session id to associate each created Pane with; the CLI sets it from PANE_ORCHESTRATION_SESSION_ID unless --no-associate.";
@@ -3067,6 +3477,14 @@ export declare const RUNPANE_CONTRACT: {
3067
3477
  readonly lastActivity: {
3068
3478
  readonly type: "string";
3069
3479
  };
3480
+ readonly inactiveSince: {
3481
+ readonly type: "string";
3482
+ 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).";
3483
+ };
3484
+ readonly paused: {
3485
+ readonly $ref: "#/jsonSchemas/pausedMark";
3486
+ readonly description: "Set while every terminal tab of the Pane is paused: the latest tab's mark.";
3487
+ };
3070
3488
  readonly archived: {
3071
3489
  readonly type: "boolean";
3072
3490
  };
@@ -3352,7 +3770,7 @@ export declare const RUNPANE_CONTRACT: {
3352
3770
  readonly type: "string";
3353
3771
  };
3354
3772
  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"];
3773
+ 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", "item.created", "item.answered", "session.created", "session.archived", "orchestrator.turn_ended"];
3356
3774
  };
3357
3775
  readonly paneId: {
3358
3776
  readonly type: "string";
@@ -3527,6 +3945,10 @@ export declare const RUNPANE_CONTRACT: {
3527
3945
  };
3528
3946
  readonly description: "The screen lines of the prompt an agent.blocked entry's agent waits on (at most 20).";
3529
3947
  };
3948
+ readonly itemId: {
3949
+ readonly type: "string";
3950
+ readonly description: "The Notify item of an item.created or item.answered entry; `runpane autopilot stack push --item <id>` takes it.";
3951
+ };
3530
3952
  };
3531
3953
  readonly additionalProperties: false;
3532
3954
  };
@@ -4011,6 +4433,46 @@ export declare const RUNPANE_CONTRACT: {
4011
4433
  };
4012
4434
  readonly additionalProperties: false;
4013
4435
  };
4436
+ readonly busyAgents: {
4437
+ readonly type: "array";
4438
+ 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.";
4439
+ readonly items: {
4440
+ readonly type: "object";
4441
+ readonly required: readonly ["panelId", "title", "state"];
4442
+ readonly properties: {
4443
+ readonly panelId: {
4444
+ readonly type: "string";
4445
+ };
4446
+ readonly title: {
4447
+ readonly type: "string";
4448
+ };
4449
+ readonly state: {
4450
+ readonly enum: readonly ["working", "blocked"];
4451
+ };
4452
+ };
4453
+ readonly additionalProperties: false;
4454
+ };
4455
+ };
4456
+ readonly unsentInput: {
4457
+ readonly type: "array";
4458
+ 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.";
4459
+ readonly items: {
4460
+ readonly type: "object";
4461
+ readonly required: readonly ["panelId", "title", "kind"];
4462
+ readonly properties: {
4463
+ readonly panelId: {
4464
+ readonly type: "string";
4465
+ };
4466
+ readonly title: {
4467
+ readonly type: "string";
4468
+ };
4469
+ readonly kind: {
4470
+ readonly enum: readonly ["composer", "editor"];
4471
+ };
4472
+ };
4473
+ readonly additionalProperties: false;
4474
+ };
4475
+ };
4014
4476
  };
4015
4477
  readonly additionalProperties: false;
4016
4478
  };
@@ -4064,7 +4526,7 @@ export declare const RUNPANE_CONTRACT: {
4064
4526
  readonly required: readonly ["code", "message", "safetyCheck"];
4065
4527
  readonly properties: {
4066
4528
  readonly code: {
4067
- readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown"];
4529
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "agent-busy", "unsent-input"];
4068
4530
  };
4069
4531
  readonly message: {
4070
4532
  readonly type: "string";
@@ -4116,6 +4578,12 @@ export declare const RUNPANE_CONTRACT: {
4116
4578
  readonly worktreeWillRemain: {
4117
4579
  readonly const: true;
4118
4580
  };
4581
+ readonly busyAgents: {
4582
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/busyAgents";
4583
+ };
4584
+ readonly unsentInput: {
4585
+ readonly $ref: "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/unsentInput";
4586
+ };
4119
4587
  };
4120
4588
  readonly additionalProperties: false;
4121
4589
  };
@@ -4204,6 +4672,23 @@ export declare const RUNPANE_CONTRACT: {
4204
4672
  readonly resumeSource: {
4205
4673
  readonly enum: readonly ["agent-farm", "configured", "agent"];
4206
4674
  };
4675
+ readonly paused: {
4676
+ readonly $ref: "#/jsonSchemas/pausedMark";
4677
+ };
4678
+ readonly openedBy: {
4679
+ readonly type: "object";
4680
+ readonly description: "Who opened this tab through runpane, and the tab that opened it when known. Omitted for the person's tabs and tabs from before Pane recorded it; `panels close` closes only tabs whose source is agent.";
4681
+ readonly required: readonly ["source"];
4682
+ readonly properties: {
4683
+ readonly source: {
4684
+ readonly enum: readonly ["agent", "user"];
4685
+ };
4686
+ readonly panelId: {
4687
+ readonly type: "string";
4688
+ };
4689
+ };
4690
+ readonly additionalProperties: false;
4691
+ };
4207
4692
  };
4208
4693
  readonly additionalProperties: false;
4209
4694
  };
@@ -4433,7 +4918,7 @@ export declare const RUNPANE_CONTRACT: {
4433
4918
  readonly type: "string";
4434
4919
  };
4435
4920
  readonly source: {
4436
- readonly enum: readonly ["alternateScreen", "scrollback", "persistedOutput", "empty"];
4921
+ readonly enum: readonly ["alternateScreen", "scrollback", "persistedOutput", "empty", "acpTranscript"];
4437
4922
  };
4438
4923
  readonly limit: {
4439
4924
  readonly type: "number";
@@ -4836,6 +5321,9 @@ export declare const RUNPANE_CONTRACT: {
4836
5321
  readonly report: {
4837
5322
  readonly $ref: "#/jsonSchemas/agentReport";
4838
5323
  };
5324
+ readonly paused: {
5325
+ readonly $ref: "#/jsonSchemas/pausedMark";
5326
+ };
4839
5327
  };
4840
5328
  readonly additionalProperties: false;
4841
5329
  };
@@ -5225,6 +5713,10 @@ export declare const RUNPANE_CONTRACT: {
5225
5713
  readonly source: {
5226
5714
  readonly enum: readonly ["user", "agent"];
5227
5715
  };
5716
+ readonly callerPanelId: {
5717
+ readonly type: "string";
5718
+ readonly description: "The calling tab ($PANE_PANEL_ID), recorded as the opener of the tabs this creates. The CLI sets it from PANE_PANEL_ID.";
5719
+ };
5228
5720
  readonly waitReady: {
5229
5721
  readonly type: "boolean";
5230
5722
  };
@@ -5426,6 +5918,10 @@ export declare const RUNPANE_CONTRACT: {
5426
5918
  readonly source: {
5427
5919
  readonly enum: readonly ["user", "agent"];
5428
5920
  };
5921
+ readonly callerPanelId: {
5922
+ readonly type: "string";
5923
+ readonly description: "The calling tab ($PANE_PANEL_ID), recorded as the opener of the tabs this creates. The CLI sets it from PANE_PANEL_ID.";
5924
+ };
5429
5925
  };
5430
5926
  readonly additionalProperties: false;
5431
5927
  };
@@ -5466,6 +5962,90 @@ export declare const RUNPANE_CONTRACT: {
5466
5962
  };
5467
5963
  readonly additionalProperties: false;
5468
5964
  };
5965
+ readonly panelCloseRequest: {
5966
+ readonly type: "object";
5967
+ readonly required: readonly ["panelId"];
5968
+ readonly properties: {
5969
+ readonly panelId: {
5970
+ readonly type: "string";
5971
+ };
5972
+ readonly dryRun: {
5973
+ readonly type: "boolean";
5974
+ readonly description: "Report whether the tab would close, and why not, without closing it.";
5975
+ };
5976
+ readonly force: {
5977
+ readonly type: "boolean";
5978
+ readonly description: "Close it as the tab's close button does, skipping every check but permanent: for a stuck tab, or one the person asked to close. A busy agent's turn and unsent input are lost.";
5979
+ };
5980
+ readonly source: {
5981
+ readonly enum: readonly ["user", "agent"];
5982
+ };
5983
+ };
5984
+ readonly additionalProperties: false;
5985
+ };
5986
+ readonly panelCloseResult: {
5987
+ readonly type: "object";
5988
+ readonly required: readonly ["ok", "panelId", "closed"];
5989
+ readonly properties: {
5990
+ readonly ok: {
5991
+ readonly type: "boolean";
5992
+ readonly description: "False when the close was refused (the tab stays open); the CLI exits 1.";
5993
+ };
5994
+ readonly generation: {
5995
+ readonly type: "number";
5996
+ };
5997
+ readonly paneId: {
5998
+ readonly type: "string";
5999
+ readonly description: "Omitted only when the tab was already gone.";
6000
+ };
6001
+ readonly panelId: {
6002
+ readonly type: "string";
6003
+ };
6004
+ readonly type: {
6005
+ readonly type: "string";
6006
+ readonly description: "The tab's type, such as terminal, chat, browser or editor. Omitted only when the tab was already gone.";
6007
+ };
6008
+ readonly title: {
6009
+ readonly type: "string";
6010
+ };
6011
+ readonly closed: {
6012
+ readonly type: "boolean";
6013
+ };
6014
+ readonly forced: {
6015
+ readonly type: "boolean";
6016
+ readonly description: "Closed with --force, skipping the checks that would have kept it.";
6017
+ };
6018
+ readonly alreadyClosed: {
6019
+ readonly type: "boolean";
6020
+ readonly description: "No tab has this id: it was closed already.";
6021
+ };
6022
+ readonly dryRun: {
6023
+ readonly type: "boolean";
6024
+ };
6025
+ readonly wouldClose: {
6026
+ readonly type: "boolean";
6027
+ readonly description: "Dry run only: whether the close would go ahead.";
6028
+ };
6029
+ readonly refused: {
6030
+ readonly type: "object";
6031
+ readonly description: "Why the tab was kept open. opened-by-user: not opened by an agent with --source agent (including tabs from before Pane recorded openers). permanent: a permanent tab. agent-busy: its agent is mid-turn or waiting for an answer. unsent-input: unsent composer text or unsaved editor edits. input-unknown: a live tab whose input Pane cannot read.";
6032
+ readonly required: readonly ["code", "message", "next"];
6033
+ readonly properties: {
6034
+ readonly code: {
6035
+ readonly enum: readonly ["opened-by-user", "permanent", "agent-busy", "unsent-input", "input-unknown"];
6036
+ };
6037
+ readonly message: {
6038
+ readonly type: "string";
6039
+ };
6040
+ readonly next: {
6041
+ readonly type: "string";
6042
+ };
6043
+ };
6044
+ readonly additionalProperties: false;
6045
+ };
6046
+ };
6047
+ readonly additionalProperties: false;
6048
+ };
5469
6049
  readonly panelSubmitComposerRequest: {
5470
6050
  readonly type: "object";
5471
6051
  readonly required: readonly ["panelId"];
@@ -5573,6 +6153,58 @@ export declare const RUNPANE_CONTRACT: {
5573
6153
  readonly internalSessionId: {
5574
6154
  readonly type: "string";
5575
6155
  };
6156
+ readonly panes: {
6157
+ readonly type: "object";
6158
+ readonly description: "Only when the update archived the Session: what happened to each associated Pane.";
6159
+ readonly required: readonly ["archivedPaneIds", "keptPanes", "failedPanes"];
6160
+ readonly properties: {
6161
+ readonly archivedPaneIds: {
6162
+ readonly type: "array";
6163
+ readonly items: {
6164
+ readonly type: "string";
6165
+ };
6166
+ };
6167
+ readonly keptPanes: {
6168
+ readonly type: "array";
6169
+ readonly items: {
6170
+ readonly type: "object";
6171
+ readonly required: readonly ["paneId", "name", "code"];
6172
+ readonly properties: {
6173
+ readonly paneId: {
6174
+ readonly type: "string";
6175
+ };
6176
+ readonly name: {
6177
+ readonly type: "string";
6178
+ };
6179
+ readonly code: {
6180
+ readonly enum: readonly ["uncommitted-changes", "unpushed-commits", "uncommitted-and-unpushed", "status-unknown", "agent-busy", "unsent-input"];
6181
+ };
6182
+ };
6183
+ readonly additionalProperties: false;
6184
+ };
6185
+ };
6186
+ readonly failedPanes: {
6187
+ readonly type: "array";
6188
+ readonly items: {
6189
+ readonly type: "object";
6190
+ readonly required: readonly ["paneId", "name", "error"];
6191
+ readonly properties: {
6192
+ readonly paneId: {
6193
+ readonly type: "string";
6194
+ };
6195
+ readonly name: {
6196
+ readonly type: "string";
6197
+ };
6198
+ readonly error: {
6199
+ readonly type: "string";
6200
+ };
6201
+ };
6202
+ readonly additionalProperties: false;
6203
+ };
6204
+ };
6205
+ };
6206
+ readonly additionalProperties: false;
6207
+ };
5576
6208
  };
5577
6209
  readonly additionalProperties: false;
5578
6210
  };
@@ -6094,6 +6726,10 @@ export declare const RUNPANE_CONTRACT: {
6094
6726
  readonly merged: {
6095
6727
  readonly const: true;
6096
6728
  };
6729
+ readonly closed: {
6730
+ readonly type: "boolean";
6731
+ readonly description: "Also archive Panes whose PR closed without merging, with the same unsaved-work checks.";
6732
+ };
6097
6733
  readonly source: {
6098
6734
  readonly enum: readonly ["user", "agent"];
6099
6735
  };
@@ -6119,6 +6755,9 @@ export declare const RUNPANE_CONTRACT: {
6119
6755
  readonly merged: {
6120
6756
  readonly const: true;
6121
6757
  };
6758
+ readonly closed: {
6759
+ readonly const: true;
6760
+ };
6122
6761
  readonly dryRun: {
6123
6762
  readonly const: true;
6124
6763
  };
@@ -6155,7 +6794,7 @@ export declare const RUNPANE_CONTRACT: {
6155
6794
  readonly required: readonly ["code", "message"];
6156
6795
  readonly properties: {
6157
6796
  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"];
6797
+ 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
6798
  };
6160
6799
  readonly message: {
6161
6800
  readonly type: "string";
@@ -6304,9 +6943,58 @@ export declare const RUNPANE_CONTRACT: {
6304
6943
  readonly additionalProperties: false;
6305
6944
  };
6306
6945
  };
6307
- };
6308
- readonly additionalProperties: false;
6309
- };
6946
+ readonly answers: {
6947
+ readonly type: "array";
6948
+ readonly description: "The answers the Session's workers got, kept 7 days. Absent from an older Pane.";
6949
+ readonly items: {
6950
+ readonly type: "object";
6951
+ readonly required: readonly ["id", "title", "answer", "by", "worker", "answeredAt"];
6952
+ readonly properties: {
6953
+ readonly id: {
6954
+ readonly type: "string";
6955
+ };
6956
+ readonly title: {
6957
+ readonly type: "string";
6958
+ };
6959
+ readonly answer: {
6960
+ readonly type: "string";
6961
+ };
6962
+ readonly by: {
6963
+ readonly enum: readonly ["you", "autopilot", "orchestrator", "pane"];
6964
+ readonly description: "Who answered.";
6965
+ };
6966
+ readonly because: {
6967
+ readonly type: "string";
6968
+ };
6969
+ readonly worker: {
6970
+ readonly type: "string";
6971
+ readonly description: "The worker that asked.";
6972
+ };
6973
+ readonly panelId: {
6974
+ readonly type: "string";
6975
+ };
6976
+ readonly answeredAt: {
6977
+ readonly type: "string";
6978
+ };
6979
+ readonly delivered: {
6980
+ readonly enum: readonly ["call", "tab"];
6981
+ readonly description: "How it reached the worker; absent while its tab is busy.";
6982
+ };
6983
+ readonly undelivered: {
6984
+ readonly type: "string";
6985
+ readonly description: "Why Pane can't type it into the worker's tab (its tab closed, or Pane can't see what runs there): pass it on yourself.";
6986
+ };
6987
+ readonly decision: {
6988
+ readonly type: "string";
6989
+ readonly description: "The D-n recorded for it; absent: run `runpane inbox ack <id> --decision <D-n>`.";
6990
+ };
6991
+ };
6992
+ readonly additionalProperties: false;
6993
+ };
6994
+ };
6995
+ };
6996
+ readonly additionalProperties: false;
6997
+ };
6310
6998
  readonly inboxAckResult: {
6311
6999
  readonly type: "object";
6312
7000
  readonly required: readonly ["ok", "acknowledged", "unknown"];
@@ -6625,13 +7313,39 @@ export declare const RUNPANE_CONTRACT: {
6625
7313
  };
6626
7314
  readonly additionalProperties: false;
6627
7315
  };
7316
+ readonly notifyLink: {
7317
+ readonly description: "A related file or page shown as a chip on the card: a label and exactly one of path or url.";
7318
+ readonly type: "object";
7319
+ readonly required: readonly ["label"];
7320
+ readonly minProperties: 2;
7321
+ readonly maxProperties: 2;
7322
+ readonly properties: {
7323
+ readonly label: {
7324
+ readonly type: "string";
7325
+ readonly minLength: 1;
7326
+ readonly maxLength: 80;
7327
+ readonly description: "The chip's text.";
7328
+ };
7329
+ readonly path: {
7330
+ readonly type: "string";
7331
+ readonly minLength: 1;
7332
+ readonly description: "A file on the asking machine; a relative path resolves against the caller's working directory.";
7333
+ };
7334
+ readonly url: {
7335
+ readonly type: "string";
7336
+ readonly pattern: "^https?://\\S+$";
7337
+ readonly description: "An http or https page.";
7338
+ };
7339
+ };
7340
+ readonly additionalProperties: false;
7341
+ };
6628
7342
  readonly notifyRequest: {
6629
- readonly description: "What `runpane notify` sends on the runpane:notify daemon channel: the question fields, or resume alone.";
7343
+ readonly description: "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, with relays or aboutSession when they apply, or resume alone. Only `secrets request` sends ui secret.";
6630
7344
  readonly type: "object";
6631
7345
  readonly required: readonly ["caller"];
6632
7346
  readonly properties: {
6633
7347
  readonly ui: {
6634
- readonly enum: readonly ["options", "approve", "ask", "info"];
7348
+ readonly enum: readonly ["options", "approve", "ask", "secret", "info"];
6635
7349
  };
6636
7350
  readonly title: {
6637
7351
  readonly type: "string";
@@ -6665,10 +7379,43 @@ export declare const RUNPANE_CONTRACT: {
6665
7379
  readonly action: {
6666
7380
  readonly $ref: "#/jsonSchemas/notifyAction";
6667
7381
  };
7382
+ readonly secret: {
7383
+ readonly type: "object";
7384
+ readonly description: "ui secret only: the Pane secret the answer is saved as.";
7385
+ readonly required: readonly ["project", "name"];
7386
+ readonly properties: {
7387
+ readonly project: {
7388
+ readonly type: "string";
7389
+ readonly minLength: 1;
7390
+ };
7391
+ readonly name: {
7392
+ readonly type: "string";
7393
+ readonly minLength: 1;
7394
+ };
7395
+ };
7396
+ readonly additionalProperties: false;
7397
+ };
7398
+ readonly links: {
7399
+ readonly type: "array";
7400
+ readonly maxItems: 6;
7401
+ readonly items: {
7402
+ readonly $ref: "#/jsonSchemas/notifyLink";
7403
+ };
7404
+ };
6668
7405
  readonly resume: {
6669
7406
  readonly type: "string";
6670
7407
  readonly minLength: 1;
6671
7408
  };
7409
+ readonly relays: {
7410
+ readonly type: "string";
7411
+ readonly minLength: 1;
7412
+ readonly description: "A waiting item (an id from `runpane inbox`) to improve instead of posting a second card. ui and title are still required.";
7413
+ };
7414
+ readonly aboutSession: {
7415
+ readonly type: "string";
7416
+ readonly minLength: 1;
7417
+ readonly description: "Autopilot's own item: the Session it is about, an id or exact name.";
7418
+ };
6672
7419
  readonly returnAfterMs: {
6673
7420
  readonly type: "number";
6674
7421
  readonly description: "Return waiting after this long; set for MCP clients whose tool calls time out.";
@@ -6732,6 +7479,32 @@ export declare const RUNPANE_CONTRACT: {
6732
7479
  };
6733
7480
  };
6734
7481
  readonly additionalProperties: false;
7482
+ }, {
7483
+ readonly type: "object";
7484
+ readonly description: "secret: the person saved the value as project/name. The value is never returned.";
7485
+ readonly required: readonly ["status", "project", "name"];
7486
+ readonly properties: {
7487
+ readonly status: {
7488
+ readonly const: "saved";
7489
+ };
7490
+ readonly project: {
7491
+ readonly type: "string";
7492
+ };
7493
+ readonly name: {
7494
+ readonly type: "string";
7495
+ };
7496
+ };
7497
+ readonly additionalProperties: false;
7498
+ }, {
7499
+ readonly type: "object";
7500
+ readonly description: "secret: the person declined; nothing was saved.";
7501
+ readonly required: readonly ["status"];
7502
+ readonly properties: {
7503
+ readonly status: {
7504
+ readonly const: "declined";
7505
+ };
7506
+ };
7507
+ readonly additionalProperties: false;
6735
7508
  }, {
6736
7509
  readonly type: "object";
6737
7510
  readonly required: readonly ["waiting", "id", "next"];
@@ -6956,33 +7729,832 @@ export declare const RUNPANE_CONTRACT: {
6956
7729
  readonly cwd: {
6957
7730
  readonly type: "string";
6958
7731
  };
6959
- readonly exitCode: {
6960
- readonly type: readonly ["number", "null"];
7732
+ readonly exitCode: {
7733
+ readonly type: readonly ["number", "null"];
7734
+ };
7735
+ readonly signal: {
7736
+ readonly type: readonly ["string", "null"];
7737
+ };
7738
+ readonly timedOut: {
7739
+ readonly type: "boolean";
7740
+ };
7741
+ readonly stillRunning: {
7742
+ readonly const: true;
7743
+ readonly description: "It timed out and could not be stopped.";
7744
+ };
7745
+ readonly stdout: {
7746
+ readonly type: "string";
7747
+ };
7748
+ readonly stderr: {
7749
+ readonly type: "string";
7750
+ };
7751
+ };
7752
+ };
7753
+ readonly autopilotStackEntry: {
7754
+ readonly type: "object";
7755
+ readonly required: readonly ["id", "ref", "title", "tabs", "addedAt"];
7756
+ readonly properties: {
7757
+ readonly id: {
7758
+ readonly type: "string";
7759
+ };
7760
+ readonly ref: {
7761
+ readonly oneOf: readonly [{
7762
+ readonly type: "object";
7763
+ readonly required: readonly ["kind", "notifyId"];
7764
+ readonly properties: {
7765
+ readonly kind: {
7766
+ readonly const: "item";
7767
+ };
7768
+ readonly notifyId: {
7769
+ readonly type: "string";
7770
+ };
7771
+ };
7772
+ readonly additionalProperties: false;
7773
+ }, {
7774
+ readonly type: "object";
7775
+ readonly required: readonly ["kind", "path"];
7776
+ readonly properties: {
7777
+ readonly kind: {
7778
+ readonly const: "file";
7779
+ };
7780
+ readonly path: {
7781
+ readonly type: "string";
7782
+ };
7783
+ };
7784
+ readonly additionalProperties: false;
7785
+ }, {
7786
+ readonly type: "object";
7787
+ readonly required: readonly ["kind", "url"];
7788
+ readonly properties: {
7789
+ readonly kind: {
7790
+ readonly const: "url";
7791
+ };
7792
+ readonly url: {
7793
+ readonly type: "string";
7794
+ };
7795
+ };
7796
+ readonly additionalProperties: false;
7797
+ }, {
7798
+ readonly type: "object";
7799
+ readonly required: readonly ["kind", "sessionId"];
7800
+ readonly properties: {
7801
+ readonly kind: {
7802
+ readonly const: "session";
7803
+ };
7804
+ readonly sessionId: {
7805
+ readonly type: "string";
7806
+ };
7807
+ };
7808
+ readonly additionalProperties: false;
7809
+ }];
7810
+ };
7811
+ readonly title: {
7812
+ readonly type: "string";
7813
+ };
7814
+ readonly sessionId: {
7815
+ readonly type: "string";
7816
+ };
7817
+ readonly sessionName: {
7818
+ readonly type: "string";
7819
+ };
7820
+ readonly tabs: {
7821
+ readonly type: "array";
7822
+ readonly items: {
7823
+ readonly oneOf: readonly [{
7824
+ readonly type: "object";
7825
+ readonly required: readonly ["kind", "label", "notifyId"];
7826
+ readonly properties: {
7827
+ readonly kind: {
7828
+ readonly const: "item";
7829
+ };
7830
+ readonly label: {
7831
+ readonly type: "string";
7832
+ };
7833
+ readonly notifyId: {
7834
+ readonly type: "string";
7835
+ };
7836
+ };
7837
+ readonly additionalProperties: false;
7838
+ }, {
7839
+ readonly type: "object";
7840
+ readonly required: readonly ["kind", "label", "path"];
7841
+ readonly properties: {
7842
+ readonly kind: {
7843
+ readonly const: "file";
7844
+ };
7845
+ readonly label: {
7846
+ readonly type: "string";
7847
+ };
7848
+ readonly path: {
7849
+ readonly type: "string";
7850
+ };
7851
+ };
7852
+ readonly additionalProperties: false;
7853
+ }, {
7854
+ readonly type: "object";
7855
+ readonly required: readonly ["kind", "label", "url"];
7856
+ readonly properties: {
7857
+ readonly kind: {
7858
+ readonly const: "url";
7859
+ };
7860
+ readonly label: {
7861
+ readonly type: "string";
7862
+ };
7863
+ readonly url: {
7864
+ readonly type: "string";
7865
+ };
7866
+ };
7867
+ readonly additionalProperties: false;
7868
+ }, {
7869
+ readonly type: "object";
7870
+ readonly required: readonly ["kind", "label", "sessionId"];
7871
+ readonly properties: {
7872
+ readonly kind: {
7873
+ readonly const: "session";
7874
+ };
7875
+ readonly label: {
7876
+ readonly type: "string";
7877
+ };
7878
+ readonly sessionId: {
7879
+ readonly type: "string";
7880
+ };
7881
+ };
7882
+ readonly additionalProperties: false;
7883
+ }];
7884
+ };
7885
+ readonly description: "The first tab is the entry's own (its approval, document, URL, or Session).";
7886
+ };
7887
+ readonly note: {
7888
+ readonly type: "string";
7889
+ };
7890
+ readonly addedAt: {
7891
+ readonly type: "number";
7892
+ readonly description: "Epoch ms.";
7893
+ };
7894
+ readonly byAutopilot: {
7895
+ readonly type: "boolean";
7896
+ readonly description: "About something Autopilot wrote or asked itself.";
7897
+ };
7898
+ readonly doneAt: {
7899
+ readonly type: "number";
7900
+ readonly description: "Epoch ms when it was resolved (answered, expired, or dismissed).";
7901
+ };
7902
+ };
7903
+ readonly additionalProperties: false;
7904
+ readonly description: "One entry on Autopilot's stack. References only: the item, file, URL, or Session it is about.";
7905
+ };
7906
+ readonly autopilotStatusResult: {
7907
+ readonly type: "object";
7908
+ readonly required: readonly ["ok", "enabled", "chatTabsEnabled", "entitlement", "run", "panelId", "ownerPaneId", "state", "sentinel", "stack", "walk"];
7909
+ readonly properties: {
7910
+ readonly ok: {
7911
+ readonly const: true;
7912
+ };
7913
+ readonly enabled: {
7914
+ readonly type: "boolean";
7915
+ readonly description: "The experimental switch (Settings › Advanced › Experimental › Autopilot).";
7916
+ };
7917
+ readonly chatTabsEnabled: {
7918
+ readonly type: "boolean";
7919
+ readonly description: "Autopilot runs as a chat tab, so it needs chat tabs on.";
7920
+ };
7921
+ readonly entitlement: {
7922
+ readonly type: "object";
7923
+ readonly required: readonly ["entitled"];
7924
+ readonly properties: {
7925
+ readonly entitled: {
7926
+ readonly type: "boolean";
7927
+ };
7928
+ readonly reason: {
7929
+ readonly type: "string";
7930
+ };
7931
+ readonly next: {
7932
+ readonly type: "string";
7933
+ };
7934
+ };
7935
+ readonly additionalProperties: false;
7936
+ };
7937
+ readonly run: {
7938
+ readonly oneOf: readonly [{
7939
+ readonly type: "object";
7940
+ readonly required: readonly ["id", "folder", "docsFolder", "createdAt"];
7941
+ readonly properties: {
7942
+ readonly id: {
7943
+ readonly type: "string";
7944
+ };
7945
+ readonly folder: {
7946
+ readonly type: "string";
7947
+ };
7948
+ readonly docsFolder: {
7949
+ readonly type: "string";
7950
+ };
7951
+ readonly createdAt: {
7952
+ readonly type: "string";
7953
+ };
7954
+ };
7955
+ readonly additionalProperties: false;
7956
+ }, {
7957
+ readonly type: "null";
7958
+ }];
7959
+ };
7960
+ readonly panelId: {
7961
+ readonly oneOf: readonly [{
7962
+ readonly type: "string";
7963
+ }, {
7964
+ readonly type: "null";
7965
+ }];
7966
+ readonly description: "Autopilot's chat tab, once the run has one.";
7967
+ };
7968
+ readonly ownerPaneId: {
7969
+ readonly oneOf: readonly [{
7970
+ readonly type: "string";
7971
+ }, {
7972
+ readonly type: "null";
7973
+ }];
7974
+ };
7975
+ readonly state: {
7976
+ readonly enum: readonly ["stopped", "running", "paused"];
7977
+ };
7978
+ readonly sentinel: {
7979
+ readonly type: "boolean";
7980
+ readonly description: "Sentinel Mode: Autopilot keeps Sessions moving while the person is away (turning it on also starts Autopilot).";
7981
+ };
7982
+ readonly sentinelSince: {
7983
+ readonly type: "number";
7984
+ readonly description: "Epoch milliseconds when Sentinel was turned on; absent while it is off.";
7985
+ };
7986
+ readonly stack: {
7987
+ readonly type: "object";
7988
+ readonly required: readonly ["entries", "shownId"];
7989
+ readonly properties: {
7990
+ readonly entries: {
7991
+ readonly type: "array";
7992
+ readonly items: {
7993
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
7994
+ };
7995
+ };
7996
+ readonly shownId: {
7997
+ readonly oneOf: readonly [{
7998
+ readonly type: "string";
7999
+ }, {
8000
+ readonly type: "null";
8001
+ }];
8002
+ readonly description: "The entry on screen; null when none is.";
8003
+ };
8004
+ };
8005
+ readonly additionalProperties: false;
8006
+ };
8007
+ readonly walk: {
8008
+ readonly type: "object";
8009
+ readonly required: readonly ["sessions"];
8010
+ readonly properties: {
8011
+ readonly sessionId: {
8012
+ readonly type: "string";
8013
+ readonly description: "The Session the walk is on.";
8014
+ };
8015
+ readonly sessions: {
8016
+ readonly type: "array";
8017
+ readonly items: {
8018
+ readonly type: "object";
8019
+ readonly required: readonly ["id", "name", "waiting"];
8020
+ readonly properties: {
8021
+ readonly id: {
8022
+ readonly type: "string";
8023
+ };
8024
+ readonly name: {
8025
+ readonly type: "string";
8026
+ };
8027
+ readonly waiting: {
8028
+ readonly type: "number";
8029
+ readonly description: "Items waiting on the person in this Session.";
8030
+ };
8031
+ };
8032
+ readonly additionalProperties: false;
8033
+ };
8034
+ };
8035
+ };
8036
+ readonly additionalProperties: false;
8037
+ };
8038
+ };
8039
+ readonly additionalProperties: false;
8040
+ };
8041
+ readonly autopilotWaitingResult: {
8042
+ readonly type: "object";
8043
+ readonly required: readonly ["ok", "items"];
8044
+ readonly properties: {
8045
+ readonly ok: {
8046
+ readonly const: true;
8047
+ };
8048
+ readonly items: {
8049
+ readonly type: "array";
8050
+ readonly description: "Grouped by Session, top first, in the order Autopilot walks them.";
8051
+ readonly items: {
8052
+ readonly type: "object";
8053
+ readonly required: readonly ["id", "title", "kind", "agent", "pane", "links", "createdAt", "ageMs", "machine", "machineId", "onStack"];
8054
+ readonly properties: {
8055
+ readonly id: {
8056
+ readonly type: "string";
8057
+ };
8058
+ readonly title: {
8059
+ readonly type: "string";
8060
+ };
8061
+ readonly kind: {
8062
+ readonly enum: readonly ["approval", "question", "permission"];
8063
+ };
8064
+ readonly sessionId: {
8065
+ readonly type: "string";
8066
+ readonly description: "Absent: not in a Session.";
8067
+ };
8068
+ readonly sessionName: {
8069
+ readonly type: "string";
8070
+ };
8071
+ readonly agent: {
8072
+ readonly type: "string";
8073
+ };
8074
+ readonly pane: {
8075
+ readonly type: "string";
8076
+ };
8077
+ readonly paneId: {
8078
+ readonly type: "string";
8079
+ };
8080
+ readonly panelId: {
8081
+ readonly type: "string";
8082
+ };
8083
+ readonly orchestrator: {
8084
+ readonly type: "boolean";
8085
+ readonly description: "The asking tab is the Session's orchestrator.";
8086
+ };
8087
+ readonly byAutopilot: {
8088
+ readonly type: "boolean";
8089
+ readonly description: "Autopilot asked it itself.";
8090
+ };
8091
+ readonly context: {
8092
+ readonly type: "string";
8093
+ };
8094
+ readonly choices: {
8095
+ readonly type: "array";
8096
+ readonly items: {
8097
+ readonly type: "string";
8098
+ };
8099
+ };
8100
+ readonly links: {
8101
+ readonly type: "array";
8102
+ readonly items: {
8103
+ readonly type: "object";
8104
+ readonly required: readonly ["label"];
8105
+ readonly properties: {
8106
+ readonly label: {
8107
+ readonly type: "string";
8108
+ };
8109
+ readonly path: {
8110
+ readonly type: "string";
8111
+ };
8112
+ readonly url: {
8113
+ readonly type: "string";
8114
+ };
8115
+ };
8116
+ readonly additionalProperties: false;
8117
+ };
8118
+ };
8119
+ readonly createdAt: {
8120
+ readonly type: "number";
8121
+ readonly description: "Epoch ms.";
8122
+ };
8123
+ readonly ageMs: {
8124
+ readonly type: "number";
8125
+ };
8126
+ readonly machine: {
8127
+ readonly type: "string";
8128
+ };
8129
+ readonly machineId: {
8130
+ readonly type: "string";
8131
+ };
8132
+ readonly onStack: {
8133
+ readonly type: "boolean";
8134
+ readonly description: "Already on the stack.";
8135
+ };
8136
+ readonly quiet: {
8137
+ readonly type: "boolean";
8138
+ readonly description: "A worker's question its orchestrator still has first call on: it shows, but doesn't ring yet.";
8139
+ };
8140
+ readonly stale: {
8141
+ readonly type: "boolean";
8142
+ readonly description: "Unanswered for 3 days: it never rings or pushes again.";
8143
+ };
8144
+ readonly connected: {
8145
+ readonly type: "object";
8146
+ readonly description: "What the item is connected to: its Session, or outside one its Pane, Autopilot's chat or its machine. Absent from an older machine.";
8147
+ readonly required: readonly ["kind", "id", "name"];
8148
+ readonly properties: {
8149
+ readonly kind: {
8150
+ readonly enum: readonly ["session", "pane", "autopilot", "machine"];
8151
+ };
8152
+ readonly id: {
8153
+ readonly type: "string";
8154
+ };
8155
+ readonly name: {
8156
+ readonly type: "string";
8157
+ };
8158
+ readonly paneId: {
8159
+ readonly type: "string";
8160
+ };
8161
+ };
8162
+ readonly additionalProperties: false;
8163
+ };
8164
+ };
8165
+ readonly additionalProperties: false;
8166
+ };
8167
+ };
8168
+ readonly offline: {
8169
+ readonly type: "array";
8170
+ readonly items: {
8171
+ readonly type: "string";
8172
+ };
8173
+ readonly description: "Saved machines it can't reach. Absent from an older Pane.";
8174
+ };
8175
+ readonly cantSee: {
8176
+ readonly type: "array";
8177
+ readonly items: {
8178
+ readonly type: "string";
8179
+ };
8180
+ readonly description: "The person's Tailscale machines not saved here, so their items can't show. Absent from an older Pane.";
8181
+ };
8182
+ };
8183
+ readonly additionalProperties: false;
8184
+ };
8185
+ readonly autopilotStackResult: {
8186
+ readonly type: "object";
8187
+ readonly required: readonly ["ok", "entries", "shownId"];
8188
+ readonly properties: {
8189
+ readonly ok: {
8190
+ readonly const: true;
8191
+ };
8192
+ readonly entries: {
8193
+ readonly type: "array";
8194
+ readonly items: {
8195
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
8196
+ };
8197
+ };
8198
+ readonly shownId: {
8199
+ readonly oneOf: readonly [{
8200
+ readonly type: "string";
8201
+ }, {
8202
+ readonly type: "null";
8203
+ }];
8204
+ readonly description: "The entry on screen; null when none is.";
8205
+ };
8206
+ };
8207
+ readonly additionalProperties: false;
8208
+ };
8209
+ readonly autopilotStackPushRequest: {
8210
+ readonly type: "object";
8211
+ readonly required: readonly [];
8212
+ readonly properties: {
8213
+ readonly item: {
8214
+ readonly type: "string";
8215
+ };
8216
+ readonly file: {
8217
+ readonly type: "string";
8218
+ readonly description: "Absolute: runpane resolves a relative path against the caller's directory.";
8219
+ };
8220
+ readonly url: {
8221
+ readonly type: "string";
8222
+ };
8223
+ readonly session: {
8224
+ readonly type: "string";
8225
+ readonly description: "Session id or exact name.";
8226
+ };
8227
+ readonly title: {
8228
+ readonly type: "string";
8229
+ };
8230
+ readonly note: {
8231
+ readonly type: "string";
8232
+ };
8233
+ readonly tabs: {
8234
+ readonly type: "array";
8235
+ readonly items: {
8236
+ readonly type: "object";
8237
+ readonly required: readonly [];
8238
+ readonly properties: {
8239
+ readonly label: {
8240
+ readonly type: "string";
8241
+ };
8242
+ readonly path: {
8243
+ readonly type: "string";
8244
+ };
8245
+ readonly url: {
8246
+ readonly type: "string";
8247
+ };
8248
+ };
8249
+ readonly additionalProperties: false;
8250
+ };
8251
+ };
8252
+ readonly next: {
8253
+ readonly type: "boolean";
8254
+ readonly description: "Right after the entry on screen, so it comes up next.";
8255
+ };
8256
+ };
8257
+ readonly additionalProperties: false;
8258
+ readonly description: "Exactly one of item, file, url, or session.";
8259
+ };
8260
+ readonly autopilotStackPushResult: {
8261
+ readonly type: "object";
8262
+ readonly required: readonly ["ok", "entry", "shown", "position", "total"];
8263
+ readonly properties: {
8264
+ readonly ok: {
8265
+ readonly const: true;
8266
+ };
8267
+ readonly entry: {
8268
+ readonly oneOf: readonly [{
8269
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
8270
+ }, {
8271
+ readonly type: "null";
8272
+ }];
8273
+ };
8274
+ readonly shown: {
8275
+ readonly type: "boolean";
8276
+ readonly description: "The entry is on screen now (the stack had nothing open).";
8277
+ };
8278
+ readonly position: {
8279
+ readonly type: "number";
8280
+ readonly description: "1-based place on the stack.";
8281
+ };
8282
+ readonly total: {
8283
+ readonly type: "number";
8284
+ };
8285
+ };
8286
+ readonly additionalProperties: false;
8287
+ };
8288
+ readonly autopilotAnswerRequest: {
8289
+ readonly type: "object";
8290
+ readonly description: "What `runpane autopilot answer` sends on the runpane:autopilot:answer daemon channel.";
8291
+ readonly required: readonly ["id", "answer", "because"];
8292
+ readonly properties: {
8293
+ readonly id: {
8294
+ readonly type: "string";
8295
+ readonly minLength: 1;
8296
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
8297
+ };
8298
+ readonly answer: {
8299
+ readonly oneOf: readonly [{
8300
+ readonly type: "object";
8301
+ readonly required: readonly ["choice"];
8302
+ readonly properties: {
8303
+ readonly choice: {
8304
+ readonly type: "string";
8305
+ readonly minLength: 1;
8306
+ };
8307
+ readonly note: {
8308
+ readonly type: "string";
8309
+ };
8310
+ };
8311
+ readonly additionalProperties: false;
8312
+ }, {
8313
+ readonly type: "object";
8314
+ readonly required: readonly ["approved"];
8315
+ readonly properties: {
8316
+ readonly approved: {
8317
+ readonly type: "boolean";
8318
+ };
8319
+ readonly note: {
8320
+ readonly type: "string";
8321
+ };
8322
+ };
8323
+ readonly additionalProperties: false;
8324
+ }, {
8325
+ readonly type: "object";
8326
+ readonly required: readonly ["text"];
8327
+ readonly properties: {
8328
+ readonly text: {
8329
+ readonly type: "string";
8330
+ readonly minLength: 1;
8331
+ };
8332
+ };
8333
+ readonly additionalProperties: false;
8334
+ }];
8335
+ };
8336
+ readonly because: {
8337
+ readonly type: "string";
8338
+ readonly minLength: 1;
8339
+ readonly description: "A D-n, a document or the person's words.";
8340
+ };
8341
+ };
8342
+ readonly additionalProperties: false;
8343
+ };
8344
+ readonly autopilotAnswerResult: {
8345
+ readonly type: "object";
8346
+ readonly required: readonly ["ok", "id"];
8347
+ readonly properties: {
8348
+ readonly ok: {
8349
+ readonly const: true;
8350
+ };
8351
+ readonly id: {
8352
+ readonly type: "string";
8353
+ };
8354
+ readonly machine: {
8355
+ readonly type: "string";
8356
+ readonly description: "The machine that holds the item.";
8357
+ };
8358
+ };
8359
+ readonly additionalProperties: false;
8360
+ };
8361
+ readonly autopilotCloseRequest: {
8362
+ readonly type: "object";
8363
+ readonly description: "What `runpane autopilot close` sends on the runpane:autopilot:close daemon channel.";
8364
+ readonly required: readonly ["id", "reason"];
8365
+ readonly properties: {
8366
+ readonly id: {
8367
+ readonly type: "string";
8368
+ readonly minLength: 1;
8369
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
8370
+ };
8371
+ readonly reason: {
8372
+ readonly type: "string";
8373
+ readonly minLength: 1;
8374
+ };
8375
+ };
8376
+ readonly additionalProperties: false;
8377
+ };
8378
+ readonly autopilotCloseResult: {
8379
+ readonly type: "object";
8380
+ readonly required: readonly ["ok", "id"];
8381
+ readonly properties: {
8382
+ readonly ok: {
8383
+ readonly const: true;
8384
+ };
8385
+ readonly id: {
8386
+ readonly type: "string";
8387
+ };
8388
+ readonly machine: {
8389
+ readonly type: "string";
8390
+ readonly description: "The machine that holds the item.";
8391
+ };
8392
+ };
8393
+ readonly additionalProperties: false;
8394
+ };
8395
+ readonly autopilotRewriteRequest: {
8396
+ readonly type: "object";
8397
+ readonly description: "What `runpane autopilot rewrite` sends on the runpane:autopilot:rewrite daemon channel. Link paths are absolute: runpane resolves a relative path against the caller's directory.";
8398
+ readonly required: readonly ["id", "ui", "title"];
8399
+ readonly properties: {
8400
+ readonly id: {
8401
+ readonly type: "string";
8402
+ readonly minLength: 1;
8403
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
8404
+ };
8405
+ readonly ui: {
8406
+ readonly enum: readonly ["options", "approve", "ask"];
8407
+ };
8408
+ readonly title: {
8409
+ readonly type: "string";
8410
+ readonly minLength: 1;
8411
+ };
8412
+ readonly context: {
8413
+ readonly type: "string";
8414
+ };
8415
+ readonly choices: {
8416
+ readonly type: "array";
8417
+ readonly minItems: 1;
8418
+ readonly maxItems: 9;
8419
+ readonly items: {
8420
+ readonly $ref: "#/jsonSchemas/notifyChoice";
8421
+ };
8422
+ };
8423
+ readonly suggestions: {
8424
+ readonly type: "array";
8425
+ readonly items: {
8426
+ readonly type: "string";
8427
+ readonly minLength: 1;
8428
+ };
8429
+ };
8430
+ readonly links: {
8431
+ readonly type: "array";
8432
+ readonly maxItems: 6;
8433
+ readonly items: {
8434
+ readonly $ref: "#/jsonSchemas/notifyLink";
8435
+ };
8436
+ };
8437
+ };
8438
+ readonly additionalProperties: false;
8439
+ };
8440
+ readonly autopilotRewriteResult: {
8441
+ readonly type: "object";
8442
+ readonly required: readonly ["ok", "id"];
8443
+ readonly properties: {
8444
+ readonly ok: {
8445
+ readonly const: true;
8446
+ };
8447
+ readonly id: {
8448
+ readonly type: "string";
8449
+ readonly description: "The new item's id.";
8450
+ };
8451
+ readonly machine: {
8452
+ readonly type: "string";
8453
+ readonly description: "The machine that holds the item.";
8454
+ };
8455
+ };
8456
+ readonly additionalProperties: false;
8457
+ };
8458
+ readonly pausedMark: {
8459
+ readonly type: "object";
8460
+ readonly required: readonly ["at", "by"];
8461
+ readonly properties: {
8462
+ readonly at: {
8463
+ readonly type: "string";
8464
+ readonly description: "When the tab was paused (ISO 8601).";
8465
+ };
8466
+ readonly by: {
8467
+ readonly enum: readonly ["manual", "auto"];
8468
+ readonly description: "manual: a person or agent paused it. auto: auto-pause paused it after idleHours without use.";
8469
+ };
8470
+ readonly idleHours: {
8471
+ readonly type: "number";
8472
+ };
8473
+ };
8474
+ readonly additionalProperties: false;
8475
+ };
8476
+ readonly pauseResult: {
8477
+ readonly type: "object";
8478
+ readonly required: readonly ["ok", "action", "scope", "panelIds", "unchanged", "failed", "message", "nextCommand"];
8479
+ readonly properties: {
8480
+ readonly ok: {
8481
+ readonly type: "boolean";
8482
+ readonly description: "False when a tab could not be resumed; the others still were.";
8483
+ };
8484
+ readonly action: {
8485
+ readonly enum: readonly ["paused", "resumed"];
8486
+ };
8487
+ readonly scope: {
8488
+ readonly type: "object";
8489
+ readonly required: readonly ["kind"];
8490
+ readonly properties: {
8491
+ readonly kind: {
8492
+ readonly enum: readonly ["panel", "pane", "session"];
8493
+ };
8494
+ readonly panelId: {
8495
+ readonly type: "string";
8496
+ };
8497
+ readonly paneId: {
8498
+ readonly type: "string";
8499
+ };
8500
+ readonly paneName: {
8501
+ readonly type: "string";
8502
+ };
8503
+ readonly sessionId: {
8504
+ readonly type: "string";
8505
+ };
8506
+ readonly sessionName: {
8507
+ readonly type: "string";
8508
+ };
8509
+ };
8510
+ readonly additionalProperties: false;
8511
+ };
8512
+ readonly panelIds: {
8513
+ readonly type: "array";
8514
+ readonly items: {
8515
+ readonly type: "string";
8516
+ };
8517
+ readonly description: "Tabs this call paused or resumed.";
6961
8518
  };
6962
- readonly signal: {
6963
- readonly type: readonly ["string", "null"];
8519
+ readonly chatTabsNotPaused: {
8520
+ readonly type: "number";
8521
+ readonly description: "On a pause: chat tabs in scope, which can't pause yet, so their agents keep running.";
6964
8522
  };
6965
- readonly timedOut: {
6966
- readonly type: "boolean";
8523
+ readonly unchanged: {
8524
+ readonly type: "number";
8525
+ readonly description: "Terminal tabs in scope that were already paused (for pause) or not paused (for resume).";
6967
8526
  };
6968
- readonly stillRunning: {
6969
- readonly const: true;
6970
- readonly description: "It timed out and could not be stopped.";
8527
+ readonly failed: {
8528
+ readonly type: "array";
8529
+ readonly items: {
8530
+ readonly type: "object";
8531
+ readonly required: readonly ["panelId", "error"];
8532
+ readonly properties: {
8533
+ readonly panelId: {
8534
+ readonly type: "string";
8535
+ };
8536
+ readonly error: {
8537
+ readonly type: "string";
8538
+ };
8539
+ };
8540
+ readonly additionalProperties: false;
8541
+ };
6971
8542
  };
6972
- readonly stdout: {
8543
+ readonly message: {
6973
8544
  readonly type: "string";
6974
8545
  };
6975
- readonly stderr: {
8546
+ readonly nextCommand: {
6976
8547
  readonly type: "string";
6977
8548
  };
6978
8549
  };
8550
+ readonly additionalProperties: false;
6979
8551
  };
6980
8552
  };
6981
8553
  readonly agentContext: {
6982
8554
  readonly brief: {
6983
8555
  readonly title: "Pane agent context";
6984
8556
  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."];
8557
+ 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
8558
  readonly detailCommand: "runpane agent-context --command <command> [--json]";
6987
8559
  readonly tools: readonly [{
6988
8560
  readonly name: "doctor";
@@ -7010,12 +8582,24 @@ export declare const RUNPANE_CONTRACT: {
7010
8582
  readonly arguments: readonly ["--repo <selector>", "--json", "--pane-dir <path>"];
7011
8583
  }, {
7012
8584
  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"];
8585
+ readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
8586
+ 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
8587
  }, {
7016
8588
  readonly name: "repos rename";
7017
8589
  readonly summary: "Rename a repository saved in the running Pane app.";
7018
8590
  readonly arguments: readonly ["--repo <selector>", "--name <name>", "--yes", "--json", "--pane-dir <path>"];
8591
+ }, {
8592
+ readonly name: "secrets list";
8593
+ readonly summary: "List Pane secrets: project, name, time and machine. Never a value.";
8594
+ readonly arguments: readonly ["--project <project>", "--json"];
8595
+ }, {
8596
+ readonly name: "secrets exec";
8597
+ readonly summary: "Run a command with Pane secrets in its environment.";
8598
+ readonly arguments: readonly ["--project <project>", "--only <name,...>", "--env <VAR=NAME>", "--file <name>", "-- <command>..."];
8599
+ }, {
8600
+ readonly name: "secrets request";
8601
+ readonly summary: "Ask the person for a secret on a masked card; returns saved or declined, never the value.";
8602
+ readonly arguments: readonly ["--project <project>", "--name <name>", "--title <text>", "--reason <text>", "--json"];
7019
8603
  }, {
7020
8604
  readonly name: "panes list";
7021
8605
  readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
@@ -7031,7 +8615,7 @@ export declare const RUNPANE_CONTRACT: {
7031
8615
  }, {
7032
8616
  readonly name: "panes archive";
7033
8617
  readonly summary: "Archive a Pane exactly like the UI Archive action, including safe removal of its Pane-managed git worktree, or archive every merged Pane in a Session.";
7034
- readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
8618
+ readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--closed", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
7035
8619
  }, {
7036
8620
  readonly name: "panes pin";
7037
8621
  readonly summary: "Declaratively pin a Pane (the Pane UI's favorite/pin star) without changing focus.";
@@ -7056,6 +8640,10 @@ export declare const RUNPANE_CONTRACT: {
7056
8640
  readonly name: "panels open";
7057
8641
  readonly summary: "Show the user an HTML page, plan, report, dev server URL, or file as a tab in split view beside the agent.";
7058
8642
  readonly arguments: readonly ["--pane <pane-id>", "--url <url>", "--file <path>", "--title <title>", "--split", "--tab", "--no-focus", "--source <user|agent>", "--yes", "--json"];
8643
+ }, {
8644
+ readonly name: "panels close";
8645
+ readonly summary: "Close a tab an agent opened once it no longer matters; refuses the person's tabs, busy agents and unsent input.";
8646
+ readonly arguments: readonly ["--panel <panel-id>", "--dry-run", "--force", "--source <user|agent>", "--yes", "--json"];
7059
8647
  }, {
7060
8648
  readonly name: "panels list";
7061
8649
  readonly summary: "List tool panels inside a Pane session.";
@@ -7095,7 +8683,7 @@ export declare const RUNPANE_CONTRACT: {
7095
8683
  }, {
7096
8684
  readonly name: "notify";
7097
8685
  readonly summary: "Ask the person a question wherever they are and wait for the answer; prefer it to asking in the terminal.";
7098
- readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--resume <id>", "--json"];
8686
+ readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--links <json>", "--resume <id>", "--json"];
7099
8687
  }];
7100
8688
  };
7101
8689
  readonly commands: {
@@ -7390,7 +8978,7 @@ export declare const RUNPANE_CONTRACT: {
7390
8978
  readonly "repos get": {
7391
8979
  readonly name: "repos get";
7392
8980
  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).";
8981
+ 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
8982
  readonly requiresPaneDaemon: true;
7395
8983
  readonly mutates: false;
7396
8984
  readonly arguments: readonly [{
@@ -7414,8 +9002,8 @@ export declare const RUNPANE_CONTRACT: {
7414
9002
  };
7415
9003
  readonly "repos update": {
7416
9004
  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.";
9005
+ readonly summary: "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.";
9006
+ 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
9007
  readonly requiresPaneDaemon: true;
7420
9008
  readonly mutates: true;
7421
9009
  readonly arguments: readonly [{
@@ -7458,6 +9046,23 @@ export declare const RUNPANE_CONTRACT: {
7458
9046
  readonly value: "<text>";
7459
9047
  readonly required: false;
7460
9048
  readonly description: "Project system prompt.";
9049
+ }, {
9050
+ readonly name: "--env";
9051
+ readonly value: "<json>";
9052
+ readonly required: false;
9053
+ 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}.";
9054
+ readonly schema: {
9055
+ readonly type: "array";
9056
+ readonly minItems: 1;
9057
+ readonly items: {
9058
+ readonly $ref: "#/jsonSchemas/projectEnvVar";
9059
+ };
9060
+ };
9061
+ }, {
9062
+ readonly name: "--env-remove";
9063
+ readonly value: "<name,...>";
9064
+ readonly required: false;
9065
+ readonly description: "Project variables to remove, comma-separated.";
7461
9066
  }, {
7462
9067
  readonly name: "--clear";
7463
9068
  readonly value: "<setting,...>";
@@ -7467,7 +9072,7 @@ export declare const RUNPANE_CONTRACT: {
7467
9072
  readonly name: "--from-json";
7468
9073
  readonly value: "<path|->";
7469
9074
  readonly required: false;
7470
- readonly description: "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt; null clears. Flags override it.";
9075
+ readonly description: "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt, and envVars ({set: [...], remove: [...]}); null clears. Flags override it.";
7471
9076
  }, {
7472
9077
  readonly name: "--yes";
7473
9078
  readonly required: false;
@@ -7486,9 +9091,9 @@ export declare const RUNPANE_CONTRACT: {
7486
9091
  readonly required: false;
7487
9092
  readonly description: "Connect to a specific Pane data directory.";
7488
9093
  }];
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"];
9094
+ 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
9095
  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."];
9096
+ 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
9097
  };
7493
9098
  readonly "repos rename": {
7494
9099
  readonly name: "repos rename";
@@ -7524,6 +9129,178 @@ export declare const RUNPANE_CONTRACT: {
7524
9129
  readonly jsonSchemas: readonly ["repoRenameRequest", "repoRenameResult"];
7525
9130
  readonly notes: readonly ["The repository path, Panes, and settings are unchanged."];
7526
9131
  };
9132
+ readonly "secrets list": {
9133
+ readonly name: "secrets list";
9134
+ readonly summary: "List the Pane secrets on this machine: project, name, and when and where each was set. Never shows a value.";
9135
+ 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.";
9136
+ readonly requiresPaneDaemon: true;
9137
+ readonly mutates: false;
9138
+ readonly arguments: readonly [{
9139
+ readonly name: "--project";
9140
+ readonly value: "<project>";
9141
+ readonly required: false;
9142
+ readonly description: "Only this project's secrets.";
9143
+ }, {
9144
+ readonly name: "--json";
9145
+ readonly required: false;
9146
+ readonly description: "Print machine-readable output.";
9147
+ }, {
9148
+ readonly name: "--pane-dir";
9149
+ readonly value: "<path>";
9150
+ readonly required: false;
9151
+ readonly description: "Connect to a specific Pane data directory.";
9152
+ }];
9153
+ readonly examples: readonly ["runpane secrets list --json", "runpane secrets list --project stripe --json"];
9154
+ readonly jsonSchemas: readonly ["secretListRequest", "secretListResult"];
9155
+ readonly notes: readonly ["Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."];
9156
+ };
9157
+ readonly "secrets set": {
9158
+ readonly name: "secrets set";
9159
+ readonly summary: "Save a Pane secret, adding or replacing it. Reads the value from stdin.";
9160
+ 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).";
9161
+ readonly requiresPaneDaemon: true;
9162
+ readonly mutates: true;
9163
+ readonly arguments: readonly [{
9164
+ readonly name: "--project";
9165
+ readonly value: "<project>";
9166
+ readonly required: true;
9167
+ readonly description: "Secret project: up to 64 letters, digits, \".\", \"_\" or \"-\".";
9168
+ }, {
9169
+ readonly name: "--name";
9170
+ readonly value: "<name>";
9171
+ readonly required: true;
9172
+ readonly description: "Secret name: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved.";
9173
+ }, {
9174
+ readonly name: "--yes";
9175
+ readonly required: true;
9176
+ readonly description: "Confirm the change.";
9177
+ }, {
9178
+ readonly name: "--json";
9179
+ readonly required: false;
9180
+ readonly description: "Print machine-readable output.";
9181
+ }, {
9182
+ readonly name: "--pane-dir";
9183
+ readonly value: "<path>";
9184
+ readonly required: false;
9185
+ readonly description: "Connect to a specific Pane data directory.";
9186
+ }];
9187
+ readonly examples: readonly ["printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes --json"];
9188
+ readonly jsonSchemas: readonly ["secretSetRequest", "secretSetResult"];
9189
+ 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."];
9190
+ };
9191
+ readonly "secrets delete": {
9192
+ readonly name: "secrets delete";
9193
+ readonly summary: "Delete a Pane secret from this machine and, through sync, from your other machines.";
9194
+ readonly details: "Deletes <project>/<name> here. Each other machine deletes it the next time a desktop or the phone syncs with it.";
9195
+ readonly requiresPaneDaemon: true;
9196
+ readonly mutates: true;
9197
+ readonly arguments: readonly [{
9198
+ readonly name: "--project";
9199
+ readonly value: "<project>";
9200
+ readonly required: true;
9201
+ readonly description: "Secret project.";
9202
+ }, {
9203
+ readonly name: "--name";
9204
+ readonly value: "<name>";
9205
+ readonly required: true;
9206
+ readonly description: "Secret name.";
9207
+ }, {
9208
+ readonly name: "--yes";
9209
+ readonly required: true;
9210
+ readonly description: "Confirm the change.";
9211
+ }, {
9212
+ readonly name: "--json";
9213
+ readonly required: false;
9214
+ readonly description: "Print machine-readable output.";
9215
+ }, {
9216
+ readonly name: "--pane-dir";
9217
+ readonly value: "<path>";
9218
+ readonly required: false;
9219
+ readonly description: "Connect to a specific Pane data directory.";
9220
+ }];
9221
+ readonly examples: readonly ["runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json"];
9222
+ readonly jsonSchemas: readonly ["secretDeleteRequest", "secretDeleteResult"];
9223
+ 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."];
9224
+ };
9225
+ readonly "secrets exec": {
9226
+ readonly name: "secrets exec";
9227
+ readonly summary: "Run a command with Pane secrets in its environment. Nothing prints a value.";
9228
+ 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.";
9229
+ readonly requiresPaneDaemon: true;
9230
+ readonly mutates: false;
9231
+ readonly arguments: readonly [{
9232
+ readonly name: "--project";
9233
+ readonly value: "<project>";
9234
+ readonly required: true;
9235
+ readonly description: "Secret project.";
9236
+ }, {
9237
+ readonly name: "--only";
9238
+ readonly value: "<name,...>";
9239
+ readonly required: false;
9240
+ readonly description: "Inject only these secrets, comma-separated.";
9241
+ }, {
9242
+ readonly name: "--env";
9243
+ readonly value: "<VAR=NAME>";
9244
+ readonly required: false;
9245
+ readonly description: "Inject secret NAME as VAR. Repeatable.";
9246
+ }, {
9247
+ readonly name: "--file";
9248
+ readonly value: "<name>";
9249
+ readonly required: false;
9250
+ readonly description: "Write secret NAME to a private temp file and set NAME to its path. Repeatable.";
9251
+ }, {
9252
+ readonly name: "--pane-dir";
9253
+ readonly value: "<path>";
9254
+ readonly required: false;
9255
+ readonly description: "Connect to a specific Pane data directory.";
9256
+ }, {
9257
+ readonly name: "-- <command>";
9258
+ readonly required: true;
9259
+ readonly description: "The command to run and its arguments.";
9260
+ }];
9261
+ 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\"'"];
9262
+ 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."];
9263
+ };
9264
+ readonly "secrets request": {
9265
+ readonly name: "secrets request";
9266
+ 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.";
9267
+ 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`.";
9268
+ readonly requiresPaneDaemon: true;
9269
+ readonly mutates: true;
9270
+ readonly arguments: readonly [{
9271
+ readonly name: "--project";
9272
+ readonly value: "<project>";
9273
+ readonly required: true;
9274
+ readonly description: "Secret project, such as the service or repo it belongs to: up to 64 letters, digits, \".\", \"_\" or \"-\".";
9275
+ }, {
9276
+ readonly name: "--name";
9277
+ readonly value: "<name>";
9278
+ readonly required: true;
9279
+ readonly description: "Secret name, such as STRIPE_SECRET_KEY: letters, digits and underscores, not starting with a digit.";
9280
+ }, {
9281
+ readonly name: "--title";
9282
+ readonly value: "<text>";
9283
+ readonly required: true;
9284
+ readonly description: "What the secret is, in a few words, such as \"Stripe test secret key\".";
9285
+ }, {
9286
+ readonly name: "--reason";
9287
+ readonly value: "<text>";
9288
+ readonly required: true;
9289
+ readonly description: "What you need it for, in one sentence.";
9290
+ }, {
9291
+ readonly name: "--json";
9292
+ readonly required: false;
9293
+ readonly description: "Print machine-readable output.";
9294
+ }, {
9295
+ readonly name: "--pane-dir";
9296
+ readonly value: "<path>";
9297
+ readonly required: false;
9298
+ readonly description: "Connect to a specific Pane data directory.";
9299
+ }];
9300
+ 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"];
9301
+ readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
9302
+ 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."];
9303
+ };
7527
9304
  readonly "panes list": {
7528
9305
  readonly name: "panes list";
7529
9306
  readonly summary: "List Pane sessions, optionally scoped to a saved repository.";
@@ -7829,7 +9606,7 @@ export declare const RUNPANE_CONTRACT: {
7829
9606
  readonly "panes archive": {
7830
9607
  readonly name: "panes archive";
7831
9608
  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.";
9609
+ 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. Add --closed to the Session sweep to also archive Panes whose PR closed without merging.";
7833
9610
  readonly requiresPaneDaemon: true;
7834
9611
  readonly mutates: true;
7835
9612
  readonly arguments: readonly [{
@@ -7845,7 +9622,7 @@ export declare const RUNPANE_CONTRACT: {
7845
9622
  }, {
7846
9623
  readonly name: "--force";
7847
9624
  readonly required: false;
7848
- readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes.";
9625
+ 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
9626
  }, {
7850
9627
  readonly name: "--remove-worktree";
7851
9628
  readonly required: false;
@@ -7859,6 +9636,10 @@ export declare const RUNPANE_CONTRACT: {
7859
9636
  readonly name: "--merged";
7860
9637
  readonly required: false;
7861
9638
  readonly description: "With --session, archive only Panes whose PR is confirmed merged and whose worktree has no uncommitted, untracked or unpushed work; skip the rest with a reason and next step. An open PR is skipped as pr-open, no PR or a closed unmerged PR as pr-not-merged, and a PR state GitHub cannot confirm as pr-status-unknown.";
9639
+ }, {
9640
+ readonly name: "--closed";
9641
+ readonly required: false;
9642
+ readonly description: "With --session --merged, also archive Panes whose PR closed without merging, with the same unsaved-work checks. Without --closed they are skipped as pr-not-merged.";
7862
9643
  }, {
7863
9644
  readonly name: "--yes";
7864
9645
  readonly required: false;
@@ -7877,9 +9658,9 @@ export declare const RUNPANE_CONTRACT: {
7877
9658
  readonly required: false;
7878
9659
  readonly description: "Connect to a specific Pane data directory.";
7879
9660
  }];
7880
- 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"];
9661
+ 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 --closed --dry-run --json", "runpane panes archive --session <id|name> --merged --remove-worktree --yes --json", "runpane panes archive --pane <pane-id> --force --yes --json"];
7881
9662
  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."];
9663
+ 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), the same input `panels close` refuses to lose; send, save or clear it, then archive again. `--force` discards it."];
7883
9664
  };
7884
9665
  readonly "panes pin": {
7885
9666
  readonly name: "panes pin";
@@ -7947,6 +9728,64 @@ export declare const RUNPANE_CONTRACT: {
7947
9728
  readonly jsonSchemas: readonly ["panePinRequest", "panePinResult"];
7948
9729
  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
9730
  };
9731
+ readonly "panes pause": {
9732
+ readonly name: "panes pause";
9733
+ readonly summary: "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.";
9734
+ readonly details: "Pauses every terminal tab of a Pane, run scripts included, until `panes resume` resumes it. A chat tab can't pause yet, so its agent keeps running and the result counts it in `chatTabsNotPaused`. 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`.";
9735
+ readonly requiresPaneDaemon: true;
9736
+ readonly mutates: true;
9737
+ readonly arguments: readonly [{
9738
+ readonly name: "--pane";
9739
+ readonly value: "<pane-id>";
9740
+ readonly required: true;
9741
+ readonly description: "Pane id.";
9742
+ }, {
9743
+ readonly name: "--yes";
9744
+ readonly required: false;
9745
+ readonly description: "Skip confirmation for this mutating command.";
9746
+ }, {
9747
+ readonly name: "--json";
9748
+ readonly required: false;
9749
+ readonly description: "Print machine-readable output.";
9750
+ }, {
9751
+ readonly name: "--pane-dir";
9752
+ readonly value: "<path>";
9753
+ readonly required: false;
9754
+ readonly description: "Connect to a specific Pane data directory.";
9755
+ }];
9756
+ readonly examples: readonly ["runpane panes pause --pane <pane-id> --yes --json"];
9757
+ readonly jsonSchemas: readonly ["pauseResult"];
9758
+ 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."];
9759
+ };
9760
+ readonly "panes resume": {
9761
+ readonly name: "panes resume";
9762
+ readonly summary: "Resume a paused Pane: restart its paused tabs in their saved conversations.";
9763
+ 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`.";
9764
+ readonly requiresPaneDaemon: true;
9765
+ readonly mutates: true;
9766
+ readonly arguments: readonly [{
9767
+ readonly name: "--pane";
9768
+ readonly value: "<pane-id>";
9769
+ readonly required: true;
9770
+ readonly description: "Pane id.";
9771
+ }, {
9772
+ readonly name: "--yes";
9773
+ readonly required: false;
9774
+ readonly description: "Skip confirmation for this mutating command.";
9775
+ }, {
9776
+ readonly name: "--json";
9777
+ readonly required: false;
9778
+ readonly description: "Print machine-readable output.";
9779
+ }, {
9780
+ readonly name: "--pane-dir";
9781
+ readonly value: "<path>";
9782
+ readonly required: false;
9783
+ readonly description: "Connect to a specific Pane data directory.";
9784
+ }];
9785
+ readonly examples: readonly ["runpane panes resume --pane <pane-id> --yes --json"];
9786
+ readonly jsonSchemas: readonly ["pauseResult"];
9787
+ readonly notes: readonly ["ok is false when a tab could not start; check failed[] for which and why. The others still resumed."];
9788
+ };
7950
9789
  readonly "panes rename": {
7951
9790
  readonly name: "panes rename";
7952
9791
  readonly summary: "Rename a Pane without changing its worktree, branch, panels, or focus.";
@@ -8047,7 +9886,7 @@ export declare const RUNPANE_CONTRACT: {
8047
9886
  }];
8048
9887
  readonly examples: readonly ["runpane panels list --pane <pane-id> --json"];
8049
9888
  readonly jsonSchemas: readonly ["panelListResult"];
8050
- readonly notes: readonly ["The ids returned here are stable inputs for `panels output` and `panels input`.", "`agentType` is the agent Pane treats the panel as; `agentDetection` says how it knows (`declared`, `command`, `process`, or `screen`), and `launchCommand` is the command the panel was launched with.", "`resumeId` is the agent session ID Pane saved for reopening the panel, and `resumeSource` says which rule resumes with it: `agent-farm` (an `agent-farm run` or `agent-farm agent` command), `configured` (the panel's own resume command), or `agent` (a built-in agent's captured session). Both are omitted when no ID is saved.", "Every Pane has one plain shell titled `Terminal`, its terminal dock: `dock: true` marks it, and the field is omitted on every other panel. Setup progress notices appear there; it is not a tool or agent tab and does not count toward the Pane's `status`. A `--tool-command` tab without `--title` or `--agent` is titled from its command (whole words up to 40 characters)."];
9889
+ readonly notes: readonly ["The ids returned here are stable inputs for `panels output` and `panels input`.", "`agentType` is the agent Pane treats the panel as; `agentDetection` says how it knows (`declared`, `command`, `process`, or `screen`), and `launchCommand` is the command the panel was launched with.", "`resumeId` is the agent session ID Pane saved for reopening the panel, and `resumeSource` says which rule resumes with it: `agent-farm` (an `agent-farm run` or `agent-farm agent` command), `configured` (the panel's own resume command), or `agent` (a built-in agent's captured session). Both are omitted when no ID is saved.", "Every Pane has one plain shell titled `Terminal`, its terminal dock: `dock: true` marks it, and the field is omitted on every other panel. Setup progress notices appear there; it is not a tool or agent tab and does not count toward the Pane's `status`. A `--tool-command` tab without `--title` or `--agent` is titled from its command (whole words up to 40 characters).", "`openedBy` says who opened the tab through runpane: `source` (`agent` or `user`) and, when known, `panelId` of the tab that opened it. It is omitted for the person's tabs and tabs from before Pane recorded it; `panels close` closes only tabs whose `openedBy.source` is `agent`."];
8051
9890
  };
8052
9891
  readonly "panels output": {
8053
9892
  readonly name: "panels output";
@@ -8082,7 +9921,7 @@ export declare const RUNPANE_CONTRACT: {
8082
9921
  readonly "panels input": {
8083
9922
  readonly name: "panels input";
8084
9923
  readonly summary: "Send input bytes to a terminal panel.";
8085
- readonly details: "Use this to answer prompts or continue an agent inside an existing Pane terminal panel. Input is byte-oriented; choose --input-file for exact control over newlines and control characters.";
9924
+ readonly details: "Use this to answer prompts or continue an agent inside an existing Pane terminal panel. Input is byte-oriented; choose --input-file for exact control over newlines and control characters. A chat tab has no terminal: input fails with CHAT_TAB_NO_TERMINAL; use panels submit.";
8086
9925
  readonly requiresPaneDaemon: true;
8087
9926
  readonly mutates: true;
8088
9927
  readonly arguments: readonly [{
@@ -8156,7 +9995,7 @@ export declare const RUNPANE_CONTRACT: {
8156
9995
  readonly "panels screen": {
8157
9996
  readonly name: "panels screen";
8158
9997
  readonly summary: "Read a compact current-screen view from a terminal panel.";
8159
- readonly details: "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. Default output is bounded to 80 lines.";
9998
+ readonly details: "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines.";
8160
9999
  readonly requiresPaneDaemon: true;
8161
10000
  readonly mutates: false;
8162
10001
  readonly arguments: readonly [{
@@ -8250,12 +10089,12 @@ export declare const RUNPANE_CONTRACT: {
8250
10089
  }];
8251
10090
  readonly examples: readonly ["runpane panels submit --panel <panel-id> --input-file prompt.md --as-file-pointer --wait --yes", "runpane panels submit --panel <panel-id> --text \"2\" --yes --json", "printf \"echo hello\" | runpane panels submit --panel <panel-id> --input-file - --yes --json", "runpane panels submit --panel <panel-id> --input-file brief.md --as-file-pointer --yes --json", "runpane panels submit --panel <panel-id> --text \"Stop that approach and follow this correction\" --interrupt --yes --json"];
8252
10091
  readonly jsonSchemas: readonly ["panelSubmitRequest", "panelSubmitResult"];
8253
- readonly notes: readonly ["The response includes sequenceName, verifiedSubmitted, delivery and nextCommand. For Claude and Codex, `delivery.state` is `taken` (the agent started a turn with the text), `queued` (it holds the text until its current turn ends), `in-composer` (the text is still in the composer) or `unknown`, and `delivery.evidence` is `transcript` (the agent's own transcript) or `screen`. verifiedSubmitted is true for `taken` or `queued`; never resend those. If ok is false, inspect blocked and do not assume the turn started.", "Do not follow `panels submit` with `panels submit-composer`; Claude and Codex composer submission is handled atomically.", "Use `panels input` for Ctrl-C, escape sequences, or any workflow requiring exact bytes.", "On `blocked.kind: composer-unknown`, nothing was typed. Check `panels screen`; if the agent is at a prompt Pane does not recognise, use `panels input`.", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "`--as-file-pointer` writes the text to a prompt file readable only by you, inside the Pane's git worktree at `.pane/prompts/` (hidden by the repository's `.git/info/exclude`, never committed) when it has one, otherwise under `<pane-dir>/prompts/<pane-id>/`, so an agent limited to its working directories reads it without a permission prompt, and sends the one line `Read and follow <path>`, with the path relative to the worktree (where the agent starts) when the file is inside it; the result's `promptFile` is always absolute. Prefer it for long prompts.", "`--attach <file>` (repeatable, with `--as-file-pointer`) copies each file into a folder beside the prompt file and sends `Read and follow <path> (attached: <copy>, ...)`; the result lists the copies in `attachments`.", "With --interrupt, Pane sends the stop key only while the agent is active, waits for an empty idle composer, then submits. If readiness times out, replacement text is not sent. A queued result is not read yet: delivery.message explains the delay; never resend queued text. Interrupt success requires delivery.state: taken. Unknown agents and occupied composers are rejected without typing."];
10092
+ readonly notes: readonly ["The response includes sequenceName, verifiedSubmitted, delivery and nextCommand. For Claude and Codex, `delivery.state` is `taken` (the agent started a turn with the text), `queued` (it holds the text until its current turn ends), `in-composer` (the text is still in the composer) or `unknown`, and `delivery.evidence` is `transcript` (the agent's own transcript) or `screen`. verifiedSubmitted is true for `taken` or `queued`; never resend those. If ok is false, inspect blocked and do not assume the turn started.", "Do not follow `panels submit` with `panels submit-composer`; Claude and Codex composer submission is handled atomically.", "Use `panels input` for Ctrl-C, escape sequences, or any workflow requiring exact bytes.", "On `blocked.kind: composer-unknown`, nothing was typed. Check `panels screen`; if the agent is at a prompt Pane does not recognise, use `panels input`.", "For Claude, text starting with `!`, `#`, `/` or `@` is sent unchanged and the result carries a `warnings` entry (for example `leading-bang-runs-shell`), because Claude Code gives those characters a meaning of its own.", "`--as-file-pointer` writes the text to a prompt file readable only by you, inside the Pane's git worktree at `.pane/prompts/` (hidden by the repository's `.git/info/exclude`, never committed) when it has one, otherwise under `<pane-dir>/prompts/<pane-id>/`, so an agent limited to its working directories reads it without a permission prompt, and sends the one line `Read and follow <path>`, with the path relative to the worktree (where the agent starts) when the file is inside it; the result's `promptFile` is always absolute. Prefer it for long prompts.", "`--attach <file>` (repeatable, with `--as-file-pointer`) copies each file into a folder beside the prompt file and sends `Read and follow <path> (attached: <copy>, ...)`; the result lists the copies in `attachments`.", "With --interrupt, Pane sends the stop key only while the agent is active, waits for an empty idle composer, then submits. If readiness times out, replacement text is not sent. A queued result is not read yet: delivery.message explains the delay; never resend queued text. Interrupt success requires delivery.state: taken. Unknown agents and occupied composers are rejected without typing.", "On a chat tab, submit sends an ACP prompt and returns sequenceName=acp, enter=none, operationId and acp-receipt delivery evidence; a prompt sent while the agent works is queued and sent next. Do not blindly resend after a lost response."];
8254
10093
  };
8255
10094
  readonly "panels resume": {
8256
10095
  readonly name: "panels resume";
8257
10096
  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.";
10097
+ 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
10098
  readonly requiresPaneDaemon: true;
8260
10099
  readonly mutates: true;
8261
10100
  readonly arguments: readonly [{
@@ -8285,7 +10124,78 @@ export declare const RUNPANE_CONTRACT: {
8285
10124
  readonly name: "--ready-timeout-ms";
8286
10125
  readonly value: "<ms>";
8287
10126
  readonly required: false;
8288
- readonly description: "Readiness wait timeout; defaults to 30000.";
10127
+ readonly description: "Readiness wait timeout; defaults to 30000.";
10128
+ }, {
10129
+ readonly name: "--yes";
10130
+ readonly required: false;
10131
+ readonly description: "Skip confirmation for this mutating command.";
10132
+ }, {
10133
+ readonly name: "--json";
10134
+ readonly required: false;
10135
+ readonly description: "Print machine-readable output.";
10136
+ }, {
10137
+ readonly name: "--pane-dir";
10138
+ readonly value: "<path>";
10139
+ readonly required: false;
10140
+ readonly description: "Connect to a specific Pane data directory.";
10141
+ }];
10142
+ readonly examples: readonly ["runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json"];
10143
+ readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
10144
+ 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."];
10145
+ };
10146
+ readonly "panels close": {
10147
+ readonly name: "panels close";
10148
+ readonly summary: "Close a tab an agent opened, exactly like closing it in Pane; refuses the person's tabs, busy agents and unsent input unless --force.";
10149
+ readonly details: "Closes a tab through the same path as closing it in Pane, so a terminal tab's process stops. It never archives the Pane or touches its worktree. Only a tab an agent opened can close: Pane records the opener when a tab is opened with `--source agent` (panels open, panels create, panes create, agents start). It refuses, without closing, a tab not opened by an agent (the person's, and every tab from before Pane recorded openers), a permanent tab, an agent mid-turn or waiting for an answer, unsent composer text or unsaved editor edits, and a live tab whose input Pane cannot read (agents other than Claude and Codex, and chat tabs). A refusal exits 1 with `refused.code`, `refused.message` and `refused.next`. A tab id that no longer exists returns `alreadyClosed: true`. `--dry-run` reports the same without closing. `--force` (only for a stuck tab, or one the person asked you to close) closes it anyway, as the tab's close button does: a busy agent's turn and unsent input are lost, and the result says `forced: true`. A permanent tab still stays.";
10150
+ readonly requiresPaneDaemon: true;
10151
+ readonly mutates: true;
10152
+ readonly arguments: readonly [{
10153
+ readonly name: "--panel";
10154
+ readonly value: "<panel-id>";
10155
+ readonly required: true;
10156
+ readonly description: "Tab to close.";
10157
+ }, {
10158
+ readonly name: "--dry-run";
10159
+ readonly required: false;
10160
+ readonly description: "Report whether the tab would close, and why not, without closing it.";
10161
+ }, {
10162
+ readonly name: "--force";
10163
+ readonly required: false;
10164
+ readonly description: "Close it even if an agent didn't open it, its agent is busy, or it holds unsent input. Only for a stuck tab, or one the person asked you to close.";
10165
+ }, {
10166
+ readonly name: "--source";
10167
+ readonly value: "<user|agent>";
10168
+ readonly required: false;
10169
+ readonly description: "Mutation source.";
10170
+ }, {
10171
+ readonly name: "--yes";
10172
+ readonly required: false;
10173
+ readonly description: "Skip confirmation for this mutating command.";
10174
+ }, {
10175
+ readonly name: "--json";
10176
+ readonly required: false;
10177
+ readonly description: "Print machine-readable output.";
10178
+ }, {
10179
+ readonly name: "--pane-dir";
10180
+ readonly value: "<path>";
10181
+ readonly required: false;
10182
+ readonly description: "Connect to a specific Pane data directory.";
10183
+ }];
10184
+ readonly examples: readonly ["runpane panels close --panel <panel-id> --dry-run --json", "runpane panels close --panel <panel-id> --yes --json"];
10185
+ readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
10186
+ readonly notes: readonly ["ok:false with `refused` means the tab was NOT closed. `refused.code` is opened-by-user, permanent, agent-busy, unsent-input, or input-unknown; follow `refused.next`. Use --force only when the tab is stuck or the person asked you to close it.", "`alreadyClosed: true` (ok:true, closed:false) means no tab has that id any more.", "With --dry-run, `wouldClose` says whether the close would go ahead and `refused` says why not. Nothing closes; a refused dry run also exits 1.", "Open tabs with `--source agent` so they count as yours; `panels list` shows who opened each tab as `openedBy`."];
10187
+ };
10188
+ readonly "panels pause": {
10189
+ readonly name: "panels pause";
10190
+ readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
10191
+ readonly details: "Pauses one terminal tab until `panels resume --panel <panel-id>`, or its Pane or Session, resumes it. A chat tab can't pause yet: pausing one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE` and changes nothing. 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`.";
10192
+ readonly requiresPaneDaemon: true;
10193
+ readonly mutates: true;
10194
+ readonly arguments: readonly [{
10195
+ readonly name: "--panel";
10196
+ readonly value: "<panel-id>";
10197
+ readonly required: true;
10198
+ readonly description: "Terminal panel id.";
8289
10199
  }, {
8290
10200
  readonly name: "--yes";
8291
10201
  readonly required: false;
@@ -8300,14 +10210,14 @@ export declare const RUNPANE_CONTRACT: {
8300
10210
  readonly required: false;
8301
10211
  readonly description: "Connect to a specific Pane data directory.";
8302
10212
  }];
8303
- readonly examples: readonly ["runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json"];
8304
- readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
8305
- 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."];
10213
+ readonly examples: readonly ["runpane panels pause --panel <panel-id> --yes --json"];
10214
+ readonly jsonSchemas: readonly ["pauseResult"];
10215
+ readonly notes: readonly ["Leave paused workers paused unless the person asks to resume them."];
8306
10216
  };
8307
10217
  readonly "panels wait": {
8308
10218
  readonly name: "panels wait";
8309
10219
  readonly summary: "Wait for a terminal panel to initialize, become ready/idle, or contain text.";
8310
- readonly details: "Use this to validate asynchronous terminal behavior without pulling large scrollback. It returns brief readiness state, blocker hints, a compact screen, and a next command.";
10220
+ readonly details: "Use this to validate asynchronous terminal behavior without pulling large scrollback. It returns brief readiness state, blocker hints, a compact screen, and a next command. On a chat tab, a text wait (`--for text`) searches only what the agent writes after the wait starts, plus a reply still streaming then, never the person's prompts.";
8311
10221
  readonly requiresPaneDaemon: true;
8312
10222
  readonly mutates: false;
8313
10223
  readonly arguments: readonly [{
@@ -8347,7 +10257,7 @@ export declare const RUNPANE_CONTRACT: {
8347
10257
  }];
8348
10258
  readonly examples: readonly ["runpane panels wait --panel <panel-id> --for ready --timeout-ms 30000 --json", "runpane panels wait --panel <panel-id> --contains \"Ready\" --json"];
8349
10259
  readonly jsonSchemas: readonly ["panelWaitResult"];
8350
- readonly notes: readonly ["If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.", "If stopped is true, the panel's terminal is not running (for example after a Pane restart); run nextCommand (`panels resume`) instead of waiting again.", "The default timeout and screen are intentionally small for agent context safety."];
10260
+ readonly notes: readonly ["If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.", "If stopped is true, the panel's terminal is not running (for example after a Pane restart); run nextCommand (`panels resume`) instead of waiting again.", "The default timeout and screen are intentionally small for agent context safety.", "On a chat tab, status comes from the host ACP session (a turn that ended is ready, a pending approval or question is blocked) and the screen field has source=acpTranscript: transcript text, not a terminal screen."];
8351
10261
  };
8352
10262
  readonly "panels last-message": {
8353
10263
  readonly name: "panels last-message";
@@ -8400,6 +10310,20 @@ export declare const RUNPANE_CONTRACT: {
8400
10310
  readonly value: "<command>";
8401
10311
  readonly required: false;
8402
10312
  readonly description: "Custom terminal command to launch instead of a built-in agent.";
10313
+ }, {
10314
+ readonly name: "--chat";
10315
+ readonly required: false;
10316
+ readonly description: "Open --agent claude or codex as a chat tab (ACP, no terminal) instead of a terminal tab. Needs chat tabs on in Settings > Advanced.";
10317
+ }, {
10318
+ readonly name: "--agent-farm";
10319
+ readonly value: "<profile>";
10320
+ readonly required: false;
10321
+ readonly description: "Start this Agent Farm profile in a chat tab; Agent Farm prints its ACP launch (agent-farm run --print-acp).";
10322
+ }, {
10323
+ readonly name: "--arg";
10324
+ readonly value: "<key=value>";
10325
+ readonly required: false;
10326
+ readonly description: "A launch argument for --agent-farm; repeatable.";
8403
10327
  }, {
8404
10328
  readonly name: "--title";
8405
10329
  readonly value: "<title>";
@@ -8479,7 +10403,7 @@ export declare const RUNPANE_CONTRACT: {
8479
10403
  }];
8480
10404
  readonly examples: readonly ["runpane panels create --pane <pane-id> --agent <agent> --source agent --no-focus --wait-ready --yes --json", "runpane panels create --pane <pane-id> --tool-command <command> --title <title> --source agent --no-focus --wait-ready --yes --json", "runpane panels create --pane <pane-id> --tool-command \"agent-farm run free-range\" --agent claude --source agent --no-focus --wait-ready --yes --json"];
8481
10405
  readonly jsonSchemas: readonly ["panelCreateRequest", "panelCreateResult"];
8482
- readonly notes: readonly ["Use this for same-pane reviewer loops after PR creation/testing.", "Panels share the existing Pane's worktree and branch.", "`panels create` is for visible helper/reviewer tabs, not the agent's default private delegation mechanism.", "For agent-created panels, prefer --source agent or --no-focus to avoid stealing focus from the user or implementation tab.", "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."];
10406
+ readonly notes: readonly ["Use this for same-pane reviewer loops after PR creation/testing.", "Panels share the existing Pane's worktree and branch.", "`panels create` is for visible helper/reviewer tabs, not the agent's default private delegation mechanism.", "For agent-created panels, prefer --source agent or --no-focus to avoid stealing focus from the user or implementation tab.", "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.", "`--chat` or `--agent-farm` creates a chat tab: --initial-input is its first prompt, sent once when the conversation starts; --wait-ready waits for the agent to start. `panels submit`, `wait`, `screen`, `output`, `last-message`, `report` and `resume` work on chat tabs; `panels input` and `submit-composer` do not.", "With `--source agent`, Pane records this tab as opened by an agent (and by the calling tab from PANE_PANEL_ID), so `panels close` can close it later."];
8483
10407
  };
8484
10408
  readonly "panels open": {
8485
10409
  readonly name: "panels open";
@@ -8539,12 +10463,12 @@ export declare const RUNPANE_CONTRACT: {
8539
10463
  }];
8540
10464
  readonly examples: readonly ["runpane panels open --file plan.html --source agent --yes --json", "runpane panels open --url http://localhost:3000 --source agent --yes --json", "runpane panels open --pane <pane-id> --file src/app.ts --tab --source agent --yes --json"];
8541
10465
  readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
8542
- readonly notes: readonly ["Prefer this over opening the system browser when showing the user a page, plan, report, or dev server.", "Write plans and reports as self-contained HTML files. Use --url with a file URL to render a page in a live browser, or --file to open its editable source; reopening the same target reuses its tab.", "When the user views Pane from another computer, a file page loads only files in its own folder and the folders inside it. Keep the page's CSS, scripts and images there, put them inline, or serve the folder over HTTP and open its localhost URL. Give file URLs as the host sees them, not as the other computer would.", "Opening a tab does not steal window focus; use `panes focus` only on explicit user request."];
10466
+ readonly notes: readonly ["Prefer this over opening the system browser when showing the user a page, plan, report, or dev server.", "Write plans and reports as self-contained HTML files. Use --url with a file URL to render a page in a live browser, or --file to open its editable source; reopening the same target reuses its tab.", "When the user views Pane from another computer, a file page loads only files in its own folder and the folders inside it. Keep the page's CSS, scripts and images there, put them inline, or serve the folder over HTTP and open its localhost URL. Give file URLs as the host sees them, not as the other computer would.", "Opening a tab does not steal window focus; use `panes focus` only on explicit user request.", "With `--source agent`, Pane records this tab as opened by an agent (and by the calling tab from PANE_PANEL_ID), so `panels close` can close it later."];
8543
10467
  };
8544
10468
  readonly "panels submit-composer": {
8545
10469
  readonly name: "panels submit-composer";
8546
10470
  readonly summary: "Submit an agent composer using the panel-appropriate key sequence.";
8547
- readonly details: "Use this after sending text into an agent composer. Auto uses Tab to queue while Codex is working and Enter when ready; Pane verifies that the text left the composer.";
10471
+ readonly details: "Use this after sending text into an agent composer. Auto uses Tab to queue while Codex is working and Enter when ready; Pane verifies that the text left the composer. A chat tab has no composer to submit: it fails with CHAT_TAB_NO_TERMINAL; use panels submit.";
8548
10472
  readonly requiresPaneDaemon: true;
8549
10473
  readonly mutates: true;
8550
10474
  readonly arguments: readonly [{
@@ -8646,7 +10570,7 @@ export declare const RUNPANE_CONTRACT: {
8646
10570
  readonly name: "--kinds";
8647
10571
  readonly required: false;
8648
10572
  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.";
10573
+ 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. Opt-in only, never in a default: agent.report.missing, and Autopilot's item.created, item.answered, session.created, session.archived, orchestrator.turn_ended. Defaults: defaults.watch.follow.kinds under --follow, defaults.watch.untilEvent.kinds under --until-event, every kind for a one-shot read.";
8650
10574
  }, {
8651
10575
  readonly name: "--json";
8652
10576
  readonly required: false;
@@ -8734,7 +10658,7 @@ export declare const RUNPANE_CONTRACT: {
8734
10658
  readonly required: false;
8735
10659
  }];
8736
10660
  readonly examples: readonly ["runpane watch --self-test", "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 watch --follow --json --kinds agent.report,agent.blocked"];
8737
- readonly notes: readonly ["Every default is in the contract under defaults.watch: follow (what --follow does) and untilEvent (what --until-event waits for). An override flag replaces one value; nothing else needs remembering.", "Arming: wait for WATCH OK before relying on a --follow monitor. It prints once when the watch is armed. Run the monitor under your harness's background monitor (one line = one notification).", "Ending: WATCH EXPIRED (exit 0) means nothing happened for --expire-after: say so, and arm a new watch with the next dispatch. A non-zero exit or a WATCH ERROR line means it failed: tell the user and re-arm once; if it dies again, file runpane doctor --report. If the message says the cursor was superseded, keep the replacement monitor and leave the old one stopped. Judge a watch by these lines, never by silence.", "--until-event prints exactly one line: the event (exit 0), WATCH TIMEOUT (exit 124, only with --timeout-ms), or WATCH ERROR (exit 2).", "STUCK means real unsubmitted composer text. An agent prompt suggestion (for example a grey Try \"...\" hint) never counts.", "Cadence state is held per named consumer. Without numeric --since, follow uses an explicit --as or assigns a Session, panel, or follow-<pid> name. With numeric --since it has no name and bypasses cadence; --as cannot be combined with --since. Held lines survive a reconnect of the same consumer; a changed filter re-delivers them under the new filter.", "Journal loss is surfaced through reset and dropped metadata.", "The daemon treats omitted idleAfterMs as disabled so older clients never receive agent.idle unexpectedly.", "Control lines are not journal entries. Lines text and JSON kind: WATCH OK (_ok, once when armed), HEARTBEAT (_heartbeat, only with --heartbeat), WATCH RECONNECTED (_reconnected, after a retried daemon error), WATCH ERROR (_error; exit 2 unless --follow or --until-event retries it), RESET (_reset, the journal restarted or the cursor fell behind; a fresh baseline follows), DROPPED (_dropped, entries lost to journal truncation), WATCH TIMEOUT (_timeout, --until-event deadline; exit 124), and WATCH EXPIRED (_expired, --expire-after passed; exit 0). Under --until-event, only _timeout and _error print.", "Under --follow, JSON entries for panels holding unsubmitted composer text carry heldInputPresent: true, the JSON equivalent of the STUCK line. Only typed composer text counts, the same reading as panels screen composer.hasUndeliveredText; an agent's dim or grey prompt suggestion or placeholder does not. --no-held-input turns this off.", "--session <id|name> scopes the watch to a named Session. The daemon resolves the Session once per request and its associated Panes on every read, so sessions associate and sessions detach take effect without a re-arm; archived and detached Panes drop out, and the Session's own orchestrator panels are excluded. Cadence state is keyed by the Session, not its current Panes, so membership changes keep held lines. A detached Pane's held lines are dropped.", "Under --session, pane.associated (JOINED <pane-name> pane <pane-id> session <session-id>) and pane.detached (LEFT ...) report membership changes; list them in --kinds next to the agent kinds. Other consumers receive them only when --kinds lists them, so older clients never see an unknown kind.", "PR watching: the daemon batches up to 25 direct GraphQL fingerprints per host every ~2 minutes. Full details are read on change or a 30-minute backstop. Existing Session branch discovery remains; standalone Panes register with pr watch --url <PR URL> [--head <full-sha>]. Immediate failures, required-check-aware success, head/review/comment/closed/merged events and GitHub outage/recovery events share durable baselines and the journal. A head pin prevents stale success, empty/partial checks never pass, and merge status BLOCKED/UNKNOWN conservatively withholds success. Rate limits honor server waits and reserve 10% for interactive use. Eight other errors or ten comment-only updates stop the watch with pr.stopped. See pr watch/unwatch/list.", "A daemon that predates --session returns no session field; runpane then fails with WATCH ERROR instead of watching every Pane.", "Replay: after a reset (RESET/_reset), the baseline restates current state. In JSON, those entries carry replay: true (and changedWhileAway: true after an epoch change). A replayed agent.ready is never READY: re-read runpane sessions overview instead of acting on it. Lines mode prints only CHANGED for them.", "agent.report (REPORT <pane-name> pane <pane-id> panel <panel-id> <state> [pr#<n>] [<head>][: <question>]) is a worker's `runpane report`. It is in the default kinds of --follow and --until-event, and arrives from any panel: a shell tab or a wrapper launch whose agent is not yet detected included. It bypasses --min-interval, and orchestrators treat it as the completion signal; a READY without a report means look, and maybe nudge.", "Never pipe --follow into grep -m1, head, or any other exit-on-match reader: it does not exit when its reader does until its next write. To wait for one event, use --until-event.", "Registration returns generation and epoch. Initially arm watch --until-event --since <generation> --epoch <epoch> --pane <id> --json --kinds pr.checks,pr.head,pr.comment,pr.review,pr.closed,pr.merged,pr.conflicted,pr.base_changed,pr.base_deleted,pr.stopped,github.unavailable,github.recovered. Process every NDJSON event, then persist its gen and epoch for the next --since/--epoch; --limit 1 delivers one event per run. Never mix --as with --since/--epoch. On _reset or _dropped, resynchronize GitHub state, then use the control record generation and epoch; replay/baseline records are not new events. No merge or GitHub write is performed.", "--follow has one default cadence: READY 3m, BLOCKED 30s, non-urgent batches 10m, IDLE after 10m with backoff, expiry 3h, heartbeats off. Individual duration flags override it. --present and --profile were removed; use --ready-settle, --blocked-settle, and --min-interval for timing overrides.", "--until-event delivers matching events immediately without follow settling or batching. A harness that consumes a named follow stream gets its cadence; a process-exit waiter keeps immediate single-event semantics. --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."];
10661
+ readonly notes: readonly ["Every default is in the contract under defaults.watch: follow (what --follow does) and untilEvent (what --until-event waits for). An override flag replaces one value; nothing else needs remembering.", "Arming: wait for WATCH OK before relying on a --follow monitor. It prints once when the watch is armed. Run the monitor under your harness's background monitor (one line = one notification).", "Ending: WATCH EXPIRED (exit 0) means nothing happened for --expire-after: say so, and arm a new watch with the next dispatch. A non-zero exit or a WATCH ERROR line means it failed: tell the user and re-arm once; if it dies again, file runpane doctor --report. If the message says the cursor was superseded, keep the replacement monitor and leave the old one stopped. Judge a watch by these lines, never by silence.", "--until-event prints exactly one line: the event (exit 0), WATCH TIMEOUT (exit 124, only with --timeout-ms), or WATCH ERROR (exit 2).", "STUCK means real unsubmitted composer text. An agent prompt suggestion (for example a grey Try \"...\" hint) never counts.", "Cadence state is held per named consumer. Without numeric --since, follow uses an explicit --as or assigns a Session, panel, or follow-<pid> name. With numeric --since it has no name and bypasses cadence; --as cannot be combined with --since. Held lines survive a reconnect of the same consumer; a changed filter re-delivers them under the new filter.", "Journal loss is surfaced through reset and dropped metadata.", "The daemon treats omitted idleAfterMs as disabled so older clients never receive agent.idle unexpectedly.", "Control lines are not journal entries. Lines text and JSON kind: WATCH OK (_ok, once when armed), HEARTBEAT (_heartbeat, only with --heartbeat), WATCH RECONNECTED (_reconnected, after a retried daemon error), WATCH ERROR (_error; exit 2 unless --follow or --until-event retries it), RESET (_reset, the journal restarted or the cursor fell behind; a fresh baseline follows), DROPPED (_dropped, entries lost to journal truncation), WATCH TIMEOUT (_timeout, --until-event deadline; exit 124), and WATCH EXPIRED (_expired, --expire-after passed; exit 0). Under --until-event, only _timeout and _error print.", "Under --follow, JSON entries for panels holding unsubmitted composer text carry heldInputPresent: true, the JSON equivalent of the STUCK line. Only typed composer text counts, the same reading as panels screen composer.hasUndeliveredText; an agent's dim or grey prompt suggestion or placeholder does not. --no-held-input turns this off.", "--session <id|name> scopes the watch to a named Session. The daemon resolves the Session once per request and its associated Panes on every read, so sessions associate and sessions detach take effect without a re-arm; archived and detached Panes drop out, and the Session's own orchestrator panels are excluded. Cadence state is keyed by the Session, not its current Panes, so membership changes keep held lines. A detached Pane's held lines are dropped.", "Under --session, pane.associated (JOINED <pane-name> pane <pane-id> session <session-id>) and pane.detached (LEFT ...) report membership changes; list them in --kinds next to the agent kinds. Other consumers receive them only when --kinds lists them, so older clients never see an unknown kind.", "PR watching: the daemon batches up to 25 direct GraphQL fingerprints per host every ~2 minutes. Full details are read on change or a 30-minute backstop. Existing Session branch discovery remains; standalone Panes register with pr watch --url <PR URL> [--head <full-sha>]. Immediate failures, required-check-aware success, head/review/comment/closed/merged events and GitHub outage/recovery events share durable baselines and the journal. A head pin prevents stale success, empty/partial checks never pass, and merge status BLOCKED/UNKNOWN conservatively withholds success. Rate limits honor server waits and reserve 10% for interactive use. Eight other errors or ten comment-only updates stop the watch with pr.stopped. See pr watch/unwatch/list.", "A daemon that predates --session returns no session field; runpane then fails with WATCH ERROR instead of watching every Pane.", "Replay: after a reset (RESET/_reset), the baseline restates current state. In JSON, those entries carry replay: true (and changedWhileAway: true after an epoch change). A replayed agent.ready is never READY: re-read runpane sessions overview instead of acting on it. Lines mode prints only CHANGED for them.", "agent.report (REPORT <pane-name> pane <pane-id> panel <panel-id> <state> [pr#<n>] [<head>][: <question>]) is a worker's `runpane report`. It is in the default kinds of --follow and --until-event, and arrives from any panel: a shell tab or a wrapper launch whose agent is not yet detected included. It bypasses --min-interval, and orchestrators treat it as the completion signal; a READY without a report means look, and maybe nudge.", "Never pipe --follow into grep -m1, head, or any other exit-on-match reader: it does not exit when its reader does until its next write. To wait for one event, use --until-event.", "Registration returns generation and epoch. Initially arm watch --until-event --since <generation> --epoch <epoch> --pane <id> --json --kinds pr.checks,pr.head,pr.comment,pr.review,pr.closed,pr.merged,pr.conflicted,pr.base_changed,pr.base_deleted,pr.stopped,github.unavailable,github.recovered. Process every NDJSON event, then persist its gen and epoch for the next --since/--epoch; --limit 1 delivers one event per run. Never mix --as with --since/--epoch. On _reset or _dropped, resynchronize GitHub state, then use the control record generation and epoch; replay/baseline records are not new events. No merge or GitHub write is performed.", "--follow has one default cadence: READY 3m, BLOCKED 30s, non-urgent batches 10m, IDLE after 10m with backoff, expiry 3h, heartbeats off. Individual duration flags override it. --present and --profile were removed; use --ready-settle, --blocked-settle, and --min-interval for timing overrides.", "--until-event delivers matching events immediately without follow settling or batching. A harness that consumes a named follow stream gets its cadence; a process-exit waiter keeps immediate single-event semantics. --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.", "Autopilot's kinds reach only watches that list them in --kinds (a Session scope alone does not): item.created and item.answered when an approval or question starts or stops waiting on the person (ITEM|ANSWERED <pane-name> pane <pane-id> [panel <panel-id>] <item-id>: <title>; JSON itemId and reason), session.created and session.archived (SESSION NEW|ARCHIVED <name> pane <pane-id> session <session-id>; paneId is the Session's own Pane), and orchestrator.turn_ended when a Session orchestrator goes from working to idle (TURN ENDED ...). Autopilot waits with `runpane watch --as autopilot --kinds item.created,item.answered,session.created,session.archived,orchestrator.turn_ended --until-event --json`."];
8738
10662
  };
8739
10663
  readonly "panes git-status": {
8740
10664
  readonly name: "panes git-status";
@@ -9520,7 +11444,7 @@ export declare const RUNPANE_CONTRACT: {
9520
11444
  }];
9521
11445
  readonly examples: readonly ["runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane report --state blocked --question \"Should the migration drop the old column?\""];
9522
11446
  readonly jsonSchemas: readonly ["reportResult"];
9523
- readonly notes: readonly ["Inside a Pane terminal the report is for the current panel (PANE_SESSION_ID and PANE_PANEL_ID). Explicit --panel (with an optional --pane) wins; with neither, the command fails with a clear error.", "Each report replaces the panel's previous one and survives a Pane restart.", "agent.report is in the default kinds of `runpane watch --follow` and `--until-event`, and arrives from any panel, a shell tab included. REPORT lines skip the --min-interval batch.", "The output says who received it: \"Delivered to N waiting watcher(s).\" counts watches waiting at that moment (liveWatchers in JSON). With no Session and nobody waiting it adds that the report is stored on the panel (runpane agents status --panel <id>) and that a named-cursor watch (runpane watch --as <name> --kinds agent.report) still receives it when it next waits. Zero is not a failure; the exit code is 0 either way."];
11447
+ readonly notes: readonly ["Inside a Pane terminal the report is for the current panel (PANE_SESSION_ID and PANE_PANEL_ID). Explicit --panel (with an optional --pane) wins; with neither, the command fails with a clear error.", "Each report replaces the panel's previous one and survives a Pane restart.", "agent.report is in the default kinds of `runpane watch --follow` and `--until-event`, and arrives from any panel, a shell tab included. REPORT lines skip the --min-interval batch.", "The output says who received it: \"Delivered to N waiting watcher(s).\" counts watches waiting at that moment (liveWatchers in JSON). With no Session and nobody waiting it adds that the report is stored on the panel (runpane agents status --panel <id>) and that a named-cursor watch (runpane watch --as <name> --kinds agent.report) still receives it when it next waits. Zero is not a failure; the exit code is 0 either way.", "With --state blocked and --question, the person sees an answerable card at once; it rings once the orchestrator relays it or after 10 minutes. The answer reaches this tab as `answer: Q-n → <answer> (by you)`. `closed: Q-n (by you)` and `correction: Q-n → <answer> (by you)` lines are the person's word too."];
9524
11448
  };
9525
11449
  readonly "sessions list": {
9526
11450
  readonly name: "sessions list";
@@ -9584,7 +11508,7 @@ export declare const RUNPANE_CONTRACT: {
9584
11508
  }];
9585
11509
  readonly examples: readonly ["runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]"];
9586
11510
  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\"}}"];
11511
+ 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
11512
  };
9589
11513
  readonly "sessions set-agent": {
9590
11514
  readonly name: "sessions set-agent";
@@ -10015,6 +11939,56 @@ export declare const RUNPANE_CONTRACT: {
10015
11939
  readonly jsonSchemas: readonly ["sessionResult"];
10016
11940
  readonly notes: readonly ["Uses the same Session update path as the UI. The requested pin state is idempotent."];
10017
11941
  };
11942
+ readonly "sessions pause": {
11943
+ readonly name: "sessions pause";
11944
+ readonly summary: "Pause a Session: stop the terminal tabs of its chat and every Pane in it, keeping their conversations. Chat tabs keep running.";
11945
+ readonly details: "Pauses the terminal tabs of a Session's chat and of every Pane in it that is not archived; a chat tab can't pause yet, so its agent keeps running and the result counts it in `chatTabsNotPaused`, 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`.";
11946
+ readonly requiresPaneDaemon: true;
11947
+ readonly mutates: true;
11948
+ readonly arguments: readonly [{
11949
+ readonly name: "--session";
11950
+ readonly value: "<id|name>";
11951
+ readonly required: true;
11952
+ readonly description: "Named Session id or exact name.";
11953
+ }, {
11954
+ readonly name: "--json";
11955
+ readonly required: false;
11956
+ readonly description: "Print machine-readable output.";
11957
+ }, {
11958
+ readonly name: "--pane-dir";
11959
+ readonly value: "<path>";
11960
+ readonly required: false;
11961
+ readonly description: "Connect to a specific Pane data directory.";
11962
+ }];
11963
+ readonly examples: readonly ["runpane sessions pause --session <id|name> --json"];
11964
+ readonly jsonSchemas: readonly ["pauseResult"];
11965
+ readonly notes: readonly ["Leave paused workers paused unless the person asks to resume them."];
11966
+ };
11967
+ readonly "sessions resume": {
11968
+ readonly name: "sessions resume";
11969
+ readonly summary: "Resume a paused Session: restart its chat and the paused tabs of its Panes.";
11970
+ 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`.";
11971
+ readonly requiresPaneDaemon: true;
11972
+ readonly mutates: true;
11973
+ readonly arguments: readonly [{
11974
+ readonly name: "--session";
11975
+ readonly value: "<id|name>";
11976
+ readonly required: true;
11977
+ readonly description: "Named Session id or exact name.";
11978
+ }, {
11979
+ readonly name: "--json";
11980
+ readonly required: false;
11981
+ readonly description: "Print machine-readable output.";
11982
+ }, {
11983
+ readonly name: "--pane-dir";
11984
+ readonly value: "<path>";
11985
+ readonly required: false;
11986
+ readonly description: "Connect to a specific Pane data directory.";
11987
+ }];
11988
+ readonly examples: readonly ["runpane sessions resume --session <id|name> --json"];
11989
+ readonly jsonSchemas: readonly ["pauseResult"];
11990
+ readonly notes: readonly ["ok is false when a tab could not start; check failed[] for which and why. The others still resumed."];
11991
+ };
10018
11992
  readonly "pr watch": {
10019
11993
  readonly name: "pr watch";
10020
11994
  readonly summary: "Register durable GitHub PR monitoring for a Pane.";
@@ -10107,8 +12081,8 @@ export declare const RUNPANE_CONTRACT: {
10107
12081
  };
10108
12082
  readonly inbox: {
10109
12083
  readonly name: "inbox";
10110
- readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged.";
10111
- readonly details: "An orchestrator runs it when it starts or resumes, to catch reports, missing reports, and questions that arrived while it was down. Pane never adds the inbox to the orchestrator's turns.";
12084
+ readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged, and the answers its workers got.";
12085
+ readonly details: "An orchestrator runs it when it starts or resumes, to catch reports, missing reports, questions and answers that arrived while it was down. Pane never adds the inbox to the orchestrator's turns.";
10112
12086
  readonly requiresPaneDaemon: true;
10113
12087
  readonly mutates: false;
10114
12088
  readonly arguments: readonly [{
@@ -10128,18 +12102,23 @@ export declare const RUNPANE_CONTRACT: {
10128
12102
  }];
10129
12103
  readonly examples: readonly ["runpane inbox --session \"$PANE_ORCHESTRATION_SESSION_ID\" --json"];
10130
12104
  readonly jsonSchemas: readonly ["inboxListResult"];
10131
- readonly notes: readonly ["Items: report (agent.report), report.missing (agent.report.missing), and blocked (agent.blocked, with the prompt's screen lines). Reports coalesce per panel, blockers clear when the panel moves on, and each Session keeps at most 200 items until acknowledged or superseded. A journal replay watermark recovers committed outcomes after restart within journal retention.", "A newer report replaces the panel's older report or missing report."];
12105
+ readonly notes: readonly ["Items: report (agent.report), report.missing (agent.report.missing), and blocked (agent.blocked, with the prompt's screen lines). Reports coalesce per panel, blockers clear when the panel moves on, and each Session keeps at most 200 items until acknowledged or superseded. A journal replay watermark recovers committed outcomes after restart within journal retention.", "A newer report replaces the panel's older report or missing report.", "`answers` lists what the Session's workers were told, kept 7 days. One with no `decision` still needs recording: `runpane inbox ack <id> --decision <D-n>`. An older Pane leaves `answers` out."];
10132
12106
  };
10133
12107
  readonly "inbox ack": {
10134
12108
  readonly name: "inbox ack";
10135
- readonly summary: "Clear Session inbox items once they are handled.";
10136
- readonly details: "Acknowledge each item once you have acted on it, so the hook stops repeating it.";
12109
+ readonly summary: "Clear Session inbox items once they are handled, and record an answer's D-n.";
12110
+ readonly details: "Acknowledge each item once you have acted on it, so the hook stops repeating it. With --decision, also record the D-n of an answer the worker already got.";
10137
12111
  readonly requiresPaneDaemon: true;
10138
12112
  readonly mutates: true;
10139
12113
  readonly arguments: readonly [{
10140
12114
  readonly name: "<item-id>...";
10141
12115
  readonly required: false;
10142
12116
  readonly description: "Item ids from `runpane inbox`.";
12117
+ }, {
12118
+ readonly name: "--decision";
12119
+ readonly value: "<D-n>";
12120
+ readonly required: false;
12121
+ readonly description: "Record this D-n on each named item, such as D-147. Not with --all.";
10143
12122
  }, {
10144
12123
  readonly name: "--session";
10145
12124
  readonly value: "<id|name>";
@@ -10159,9 +12138,9 @@ export declare const RUNPANE_CONTRACT: {
10159
12138
  readonly required: false;
10160
12139
  readonly description: "Connect to a specific Pane data directory.";
10161
12140
  }];
10162
- readonly examples: readonly ["runpane inbox ack in-1a2b3c4d --json"];
12141
+ readonly examples: readonly ["runpane inbox ack in-1a2b3c4d --json", "runpane inbox ack in-1a2b3c4d --decision D-147 --json"];
10163
12142
  readonly jsonSchemas: readonly ["inboxAckResult"];
10164
- readonly notes: readonly ["Unknown ids are reported under `unknown`; acknowledging twice is harmless."];
12143
+ readonly notes: readonly ["Unknown ids are reported under `unknown`; acknowledging twice is harmless.", "An id already cleared whose answer has no decision still records it."];
10165
12144
  };
10166
12145
  readonly "loops list": {
10167
12146
  readonly name: "loops list";
@@ -10526,6 +12505,28 @@ export declare const RUNPANE_CONTRACT: {
10526
12505
  readonly schema: {
10527
12506
  readonly $ref: "#/jsonSchemas/notifyAction";
10528
12507
  };
12508
+ }, {
12509
+ readonly name: "--links";
12510
+ readonly value: "<json>";
12511
+ readonly required: false;
12512
+ readonly description: "Any ui: up to 6 related files or pages, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https.";
12513
+ readonly schema: {
12514
+ readonly type: "array";
12515
+ readonly maxItems: 6;
12516
+ readonly items: {
12517
+ readonly $ref: "#/jsonSchemas/notifyLink";
12518
+ };
12519
+ };
12520
+ }, {
12521
+ readonly name: "--relays";
12522
+ readonly value: "<item>";
12523
+ readonly required: false;
12524
+ readonly description: "A Session orchestrator relaying a worker's question: the waiting item's id from `runpane inbox`. The same card gains these choices, context and links instead of a second card showing. ui and title are still required.";
12525
+ }, {
12526
+ readonly name: "--about-session";
12527
+ readonly value: "<id|name>";
12528
+ readonly required: false;
12529
+ readonly description: "Autopilot's own item: the Session it is about, shown as its connected Session. Without it, the item links to Autopilot's chat.";
10529
12530
  }, {
10530
12531
  readonly name: "--resume";
10531
12532
  readonly value: "<id>";
@@ -10541,16 +12542,296 @@ export declare const RUNPANE_CONTRACT: {
10541
12542
  readonly required: false;
10542
12543
  readonly description: "Connect to a specific Pane data directory.";
10543
12544
  }];
10544
- readonly examples: readonly ["runpane notify --ui options --title \"Which database for the cache?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]' --json", "runpane notify --ui approve --title \"Drop the legacy_users table?\" --detail \"DROP TABLE legacy_users;\" --detail-label \"Show the SQL\" --json", "runpane notify --ui ask --title \"Which branch should I base this on?\" --suggestions '[\"main\",\"release\"]' --json", "runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json", "runpane notify --resume n-4f2a --json"];
12545
+ readonly examples: readonly ["runpane notify --ui options --title \"Which database for the cache?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]' --json", "runpane notify --ui approve --title \"Drop the legacy_users table?\" --detail \"DROP TABLE legacy_users;\" --detail-label \"Show the SQL\" --json", "runpane notify --ui ask --title \"Which branch should I base this on?\" --suggestions '[\"main\",\"release\"]' --json", "runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json", "runpane notify --ui approve --title \"Ship the release notes?\" --links '[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR #812\",\"url\":\"https://github.com/org/repo/pull/812\"}]' --json", "runpane notify --relays in-1a2b3c4d --ui options --title \"Q-39: Run the script?\" --choices '[{\"label\":\"Run it\",\"recommended\":true},{\"label\":\"Hold\"}]' --json", "runpane notify --resume n-4f2a --json"];
10545
12546
  readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
10546
- 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."];
12547
+ 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.", "An older Pane ignores links and shows the card without them.", "With relays the call waits on the worker's card as on any notify, and the answer also goes straight to the worker's tab as `answer: Q-n → <answer> (by you)`. Then record it: `runpane inbox ack <item> --decision <D-n>`.", "Invalid input, such as choices with ui ask or 10 choices, fails with a message naming the field, and nothing is shown."];
12548
+ };
12549
+ readonly "autopilot status": {
12550
+ readonly name: "autopilot status";
12551
+ readonly summary: "Show Autopilot (experimental): whether it is on and running, whether Sentinel is on, its run, its stack, and what waits in each Session.";
12552
+ readonly details: "Autopilot (experimental) is one always-running agent above every Session. It is not a Session: its run lives in <PANE_DIR>/autopilot/. Read this first to know whether it is on, entitled, and running.";
12553
+ readonly requiresPaneDaemon: true;
12554
+ readonly mutates: false;
12555
+ readonly arguments: readonly [{
12556
+ readonly name: "--json";
12557
+ readonly required: false;
12558
+ readonly description: "Print machine-readable output.";
12559
+ }, {
12560
+ readonly name: "--pane-dir";
12561
+ readonly value: "<path>";
12562
+ readonly required: false;
12563
+ readonly description: "Connect to a specific Pane data directory.";
12564
+ }];
12565
+ readonly examples: readonly ["runpane autopilot status --json"];
12566
+ readonly jsonSchemas: readonly ["autopilotStatusResult"];
12567
+ readonly notes: readonly ["Works while Autopilot is off (enabled: false), so a caller can tell off from broken."];
12568
+ };
12569
+ readonly "autopilot waiting": {
12570
+ readonly name: "autopilot waiting";
12571
+ readonly summary: "List every approval and question waiting on the person on every machine Autopilot can reach, grouped by Session, and the machines it can't reach. This is Autopilot's queue.";
12572
+ readonly details: "Autopilot's queue, read from each machine's table with no copy: every item waiting on the person on every machine it can reach, filed under its Session (or not in one), this machine's first, with who asked, how long it has waited, whether it is on the stack, and whether it is stale or quiet. `offline` names saved machines it can't reach, and `cantSee` names the person's Tailscale machines not saved here.";
12573
+ readonly requiresPaneDaemon: true;
12574
+ readonly mutates: false;
12575
+ readonly arguments: readonly [{
12576
+ readonly name: "--json";
12577
+ readonly required: false;
12578
+ readonly description: "Print machine-readable output.";
12579
+ }, {
12580
+ readonly name: "--pane-dir";
12581
+ readonly value: "<path>";
12582
+ readonly required: false;
12583
+ readonly description: "Connect to a specific Pane data directory.";
12584
+ }];
12585
+ readonly examples: readonly ["runpane autopilot waiting --json"];
12586
+ readonly jsonSchemas: readonly ["autopilotWaitingResult"];
12587
+ readonly notes: readonly ["Fails with AUTOPILOT_OFF while Autopilot is off.", "Its ids go straight to `runpane autopilot answer`, `close`, `rewrite` and `stack push --item`, whichever machine holds the item.", "A `quiet` item is a worker's question its orchestrator still has first call on; a `stale` one has waited 3 days and no longer rings.", "An older Pane leaves `offline` and `cantSee` out."];
12588
+ };
12589
+ readonly "autopilot stack": {
12590
+ readonly name: "autopilot stack";
12591
+ readonly summary: "List the entries on Autopilot's stack in order, and which one is on screen.";
12592
+ readonly details: "The stack holds entries in the order Autopilot put them; one is shown at a time and the next comes up when the person resolves it.";
12593
+ readonly requiresPaneDaemon: true;
12594
+ readonly mutates: false;
12595
+ readonly arguments: readonly [{
12596
+ readonly name: "--json";
12597
+ readonly required: false;
12598
+ readonly description: "Print machine-readable output.";
12599
+ }, {
12600
+ readonly name: "--pane-dir";
12601
+ readonly value: "<path>";
12602
+ readonly required: false;
12603
+ readonly description: "Connect to a specific Pane data directory.";
12604
+ }];
12605
+ readonly examples: readonly ["runpane autopilot stack --json"];
12606
+ readonly jsonSchemas: readonly ["autopilotStackResult"];
12607
+ readonly notes: readonly ["Fails with AUTOPILOT_OFF while Autopilot is off. A resolved entry carries doneAt."];
12608
+ };
12609
+ readonly "autopilot stack push": {
12610
+ readonly name: "autopilot stack push";
12611
+ readonly summary: "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.";
12612
+ readonly details: "Give exactly one of --item, --file, --url, or --session. A new entry never replaces the one on screen; --next puts it right after it. runpane resolves relative file paths (the entry's and its tabs') against the caller's directory before sending.";
12613
+ readonly requiresPaneDaemon: true;
12614
+ readonly mutates: true;
12615
+ readonly arguments: readonly [{
12616
+ readonly name: "--item";
12617
+ readonly value: "<id>";
12618
+ readonly required: false;
12619
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12620
+ }, {
12621
+ readonly name: "--file";
12622
+ readonly value: "<path>";
12623
+ readonly required: false;
12624
+ readonly description: "A document to show: HTML loads as a page, anything else as text.";
12625
+ }, {
12626
+ readonly name: "--url";
12627
+ readonly value: "<url>";
12628
+ readonly required: false;
12629
+ readonly description: "An http(s) page or running app to show.";
12630
+ }, {
12631
+ readonly name: "--session";
12632
+ readonly value: "<id|name>";
12633
+ readonly required: false;
12634
+ readonly description: "A Session whose overview to show.";
12635
+ }, {
12636
+ readonly name: "--title";
12637
+ readonly value: "<text>";
12638
+ readonly required: false;
12639
+ readonly description: "The entry's title; defaults to the item's, file's, or Session's own.";
12640
+ }, {
12641
+ readonly name: "--note";
12642
+ readonly value: "<text>";
12643
+ readonly required: false;
12644
+ readonly description: "Autopilot's one line about why it is here.";
12645
+ }, {
12646
+ readonly name: "--tab";
12647
+ readonly value: "<path-or-url>";
12648
+ readonly required: false;
12649
+ readonly description: "An extra tab: a file path, or an http(s) URL. Repeatable on the CLI.";
12650
+ }, {
12651
+ readonly name: "--next";
12652
+ readonly required: false;
12653
+ readonly description: "Put it right after the entry on screen, so it comes up next (jumping back up to a higher Session).";
12654
+ }, {
12655
+ readonly name: "--json";
12656
+ readonly required: false;
12657
+ readonly description: "Print machine-readable output.";
12658
+ }, {
12659
+ readonly name: "--pane-dir";
12660
+ readonly value: "<path>";
12661
+ readonly required: false;
12662
+ readonly description: "Connect to a specific Pane data directory.";
12663
+ }];
12664
+ readonly examples: readonly ["runpane autopilot stack push --item n-1a2b3c --note \"The release orchestrator wants a go\" --json", "runpane autopilot stack push --file docs/plan.html --tab https://localhost:5173 --next --json"];
12665
+ readonly jsonSchemas: readonly ["autopilotStackPushRequest", "autopilotStackPushResult"];
12666
+ readonly notes: readonly ["Errors: AUTOPILOT_OFF (off), AUTOPILOT_PAUSED (the person paused Autopilot; wait for Go on), AUTOPILOT_STACK_INVALID (no such item, file, URL, or Session).", "The result says where the entry went: position of total, and shown when it is on screen now."];
12667
+ };
12668
+ readonly "autopilot answer": {
12669
+ readonly name: "autopilot answer";
12670
+ readonly summary: "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.";
12671
+ readonly details: "Give exactly one of --choice, --approve, --deny or --text, and --because. The machine that holds the item delivers the answer at once and records \"Answered by Autopilot · because <why>\" on every device; the person can Override it. Skill behavior, not a setting: answer only when the way forward is clear and the item relates to your work with the person, or when the person told you to handle approvals.";
12672
+ readonly requiresPaneDaemon: true;
12673
+ readonly mutates: true;
12674
+ readonly arguments: readonly [{
12675
+ readonly name: "<id>";
12676
+ readonly required: true;
12677
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12678
+ }, {
12679
+ readonly name: "--choice";
12680
+ readonly value: "<label>";
12681
+ readonly required: false;
12682
+ readonly description: "The chosen label of an options item.";
12683
+ }, {
12684
+ readonly name: "--approve";
12685
+ readonly required: false;
12686
+ readonly description: "Approve an approve item.";
12687
+ }, {
12688
+ readonly name: "--deny";
12689
+ readonly required: false;
12690
+ readonly description: "Deny an approve item.";
12691
+ }, {
12692
+ readonly name: "--text";
12693
+ readonly value: "<text>";
12694
+ readonly required: false;
12695
+ readonly description: "A typed answer.";
12696
+ }, {
12697
+ readonly name: "--note";
12698
+ readonly value: "<text>";
12699
+ readonly required: false;
12700
+ readonly description: "A note for the asker, with --choice, --approve or --deny.";
12701
+ }, {
12702
+ readonly name: "--because";
12703
+ readonly value: "<why>";
12704
+ readonly required: true;
12705
+ readonly description: "Why, recorded on the item: a D-n, a document or the person's words.";
12706
+ }, {
12707
+ readonly name: "--json";
12708
+ readonly required: false;
12709
+ readonly description: "Print machine-readable output.";
12710
+ }, {
12711
+ readonly name: "--pane-dir";
12712
+ readonly value: "<path>";
12713
+ readonly required: false;
12714
+ readonly description: "Connect to a specific Pane data directory.";
12715
+ }];
12716
+ readonly examples: readonly ["runpane autopilot answer n-1a2b3c --choice \"Run it\" --because \"D-22\" --json", "runpane autopilot answer n-1a2b3c --approve --because \"The person said to ship it\" --json"];
12717
+ readonly jsonSchemas: readonly ["autopilotAnswerRequest", "autopilotAnswerResult"];
12718
+ readonly notes: readonly ["Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).", "An item already answered or closed is refused with who did it, and nothing changes: leave it."];
12719
+ };
12720
+ readonly "autopilot close": {
12721
+ readonly name: "autopilot close";
12722
+ readonly summary: "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.";
12723
+ readonly details: "The machine that holds the item closes it, tells its asker, and records \"Closed by Autopilot: <why>\" on every device. The person can reopen it.";
12724
+ readonly requiresPaneDaemon: true;
12725
+ readonly mutates: true;
12726
+ readonly arguments: readonly [{
12727
+ readonly name: "<id>";
12728
+ readonly required: true;
12729
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12730
+ }, {
12731
+ readonly name: "--reason";
12732
+ readonly value: "<why>";
12733
+ readonly required: true;
12734
+ readonly description: "Why it no longer needs the person, recorded on the item.";
12735
+ }, {
12736
+ readonly name: "--json";
12737
+ readonly required: false;
12738
+ readonly description: "Print machine-readable output.";
12739
+ }, {
12740
+ readonly name: "--pane-dir";
12741
+ readonly value: "<path>";
12742
+ readonly required: false;
12743
+ readonly description: "Connect to a specific Pane data directory.";
12744
+ }];
12745
+ readonly examples: readonly ["runpane autopilot close n-1a2b3c --reason \"The PR it asks about merged yesterday\" --json"];
12746
+ readonly jsonSchemas: readonly ["autopilotCloseRequest", "autopilotCloseResult"];
12747
+ readonly notes: readonly ["Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).", "An item already answered or closed is refused with who did it, and nothing changes: leave it."];
12748
+ };
12749
+ readonly "autopilot rewrite": {
12750
+ readonly name: "autopilot rewrite";
12751
+ readonly summary: "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.";
12752
+ readonly details: "The old item reads \"Closed by Autopilot: rewritten as …\" and the new one \"Rewritten by Autopilot from Q-n\". The rewrite stays on the old item's machine, and its answer goes to the original asker. runpane resolves relative --links paths against the caller's directory; a file must exist on the item's machine.";
12753
+ readonly requiresPaneDaemon: true;
12754
+ readonly mutates: true;
12755
+ readonly arguments: readonly [{
12756
+ readonly name: "<id>";
12757
+ readonly required: true;
12758
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12759
+ }, {
12760
+ readonly name: "--ui";
12761
+ readonly value: "<options|approve|ask>";
12762
+ readonly required: true;
12763
+ readonly description: "options: pick one of choices. approve: Approve or Deny. ask: a typed answer.";
12764
+ readonly schema: {
12765
+ readonly type: "string";
12766
+ readonly enum: readonly ["options", "approve", "ask"];
12767
+ };
12768
+ }, {
12769
+ readonly name: "--title";
12770
+ readonly value: "<text>";
12771
+ readonly required: true;
12772
+ readonly description: "The question in one line.";
12773
+ }, {
12774
+ readonly name: "--context";
12775
+ readonly value: "<text>";
12776
+ readonly required: false;
12777
+ readonly description: "Background the person can open under Details.";
12778
+ }, {
12779
+ readonly name: "--choices";
12780
+ readonly value: "<json>";
12781
+ readonly required: false;
12782
+ readonly description: "ui options only, and required there: 1 to 9 choices. The answer is the chosen label. Mark at most the one you recommend.";
12783
+ readonly schema: {
12784
+ readonly type: "array";
12785
+ readonly minItems: 1;
12786
+ readonly maxItems: 9;
12787
+ readonly items: {
12788
+ readonly $ref: "#/jsonSchemas/notifyChoice";
12789
+ };
12790
+ };
12791
+ }, {
12792
+ readonly name: "--suggestions";
12793
+ readonly value: "<json>";
12794
+ readonly required: false;
12795
+ readonly description: "ui ask only: suggested answers, shown as chips above the text field.";
12796
+ readonly schema: {
12797
+ readonly type: "array";
12798
+ readonly items: {
12799
+ readonly type: "string";
12800
+ readonly minLength: 1;
12801
+ };
12802
+ };
12803
+ }, {
12804
+ readonly name: "--links";
12805
+ readonly value: "<json>";
12806
+ readonly required: false;
12807
+ readonly description: "Any ui: up to 6 related files or pages, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https.";
12808
+ readonly schema: {
12809
+ readonly type: "array";
12810
+ readonly maxItems: 6;
12811
+ readonly items: {
12812
+ readonly $ref: "#/jsonSchemas/notifyLink";
12813
+ };
12814
+ };
12815
+ }, {
12816
+ readonly name: "--json";
12817
+ readonly required: false;
12818
+ readonly description: "Print machine-readable output.";
12819
+ }, {
12820
+ readonly name: "--pane-dir";
12821
+ readonly value: "<path>";
12822
+ readonly required: false;
12823
+ readonly description: "Connect to a specific Pane data directory.";
12824
+ }];
12825
+ readonly examples: readonly ["runpane autopilot rewrite n-1a2b3c --ui options --title \"Q-39: Run the import on the copy first?\" --choices '[{\"label\":\"Copy first\",\"recommended\":true},{\"label\":\"Skip\"}]' --json"];
12826
+ readonly jsonSchemas: readonly ["autopilotRewriteRequest", "autopilotRewriteResult"];
12827
+ readonly notes: readonly ["Errors: AUTOPILOT_OFF (off), AUTOPILOT_ONLY (not Autopilot's tab), AUTOPILOT_CANNOT_ANSWER (a permission prompt: it stays the person's), ERR_APPROVALS_MACHINE_OFFLINE (the item's machine is offline; nothing is queued), ERR_APPROVALS_OWNER_TOO_OLD (its machine runs an older Pane).", "The result's id is the new item's. Put that one on the stack."];
10547
12828
  };
10548
12829
  };
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."];
12830
+ 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. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."];
10550
12831
  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."];
12832
+ readonly rules: readonly ["In a Session, only its orchestrator asks the person. A worker in a Session (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`, and the answer reaches its tab as `answer: Q-n → <answer> (by you)`; `closed: Q-n (by you)` and `correction: Q-n → <answer> (by you)` lines are the person's word too. A Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` is set) posts each item that waits on the person once, as a background `runpane notify ... --json`, as its pane-orchestration guide says. Any other agent calls `notify`.", "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
12833
  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.";
12834
+ 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
12835
  readonly examples: readonly [{
10555
12836
  readonly name: "Needs a decision";
10556
12837
  readonly ui: "approve";