runpane 2.4.215 → 2.4.217

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 (43) hide show
  1. package/README.md +33 -2
  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 +16 -3
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands.d.ts +47 -0
  10. package/dist/commands.d.ts.map +1 -1
  11. package/dist/commands.js +196 -3
  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 +1939 -281
  18. package/dist/generated/contract.d.ts.map +1 -1
  19. package/dist/generated/contract.js +5719 -2946
  20. package/dist/generated/contract.js.map +1 -1
  21. package/dist/localControl.d.ts +28 -5
  22. package/dist/localControl.d.ts.map +1 -1
  23. package/dist/localControl.js +333 -38
  24. package/dist/localControl.js.map +1 -1
  25. package/dist/mcp.js +4 -2
  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 +16 -3
  30. package/dist/mcpTools.js.map +1 -1
  31. package/dist/notify.d.ts +72 -5
  32. package/dist/notify.d.ts.map +1 -1
  33. package/dist/notify.js +211 -18
  34. package/dist/notify.js.map +1 -1
  35. package/dist/updateCapacity.d.ts +2 -2
  36. package/dist/updateCapacity.d.ts.map +1 -1
  37. package/dist/updateCapacity.js +4 -1
  38. package/dist/updateCapacity.js.map +1 -1
  39. package/dist/watchLines.d.ts +1 -0
  40. package/dist/watchLines.d.ts.map +1 -1
  41. package/dist/watchLines.js +5 -0
  42. package/dist/watchLines.js.map +1 -1
  43. package/package.json +1 -1
@@ -335,7 +335,7 @@ export declare const RUNPANE_CONTRACT: {
335
335
  }, {
336
336
  readonly name: "panes archive";
337
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.";
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 [--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>]"];
339
339
  readonly mutates: true;
340
340
  readonly toolsets: readonly ["core", "panes"];
341
341
  readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
@@ -413,6 +413,15 @@ export declare const RUNPANE_CONTRACT: {
413
413
  readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
414
414
  readonly localControl: true;
415
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;
416
425
  }, {
417
426
  readonly name: "panels list";
418
427
  readonly summary: "List tool panels inside a Pane session.";
@@ -475,14 +484,6 @@ export declare const RUNPANE_CONTRACT: {
475
484
  readonly toolsets: readonly ["panels"];
476
485
  readonly jsonSchemas: readonly ["panelResumeResult", "panelResumeManyResult"];
477
486
  readonly localControl: true;
478
- }, {
479
- readonly name: "panels close";
480
- readonly summary: "Close a tab in a Pane, stopping its process, as closing the tab in the app does.";
481
- readonly usage: readonly ["runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]"];
482
- readonly mutates: true;
483
- readonly toolsets: readonly ["panels"];
484
- readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
485
- readonly localControl: true;
486
487
  }, {
487
488
  readonly name: "panels pause";
488
489
  readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
@@ -499,6 +500,16 @@ export declare const RUNPANE_CONTRACT: {
499
500
  readonly toolsets: readonly ["panels", "agents"];
500
501
  readonly jsonSchemas: readonly ["panelLastMessageResult"];
501
502
  readonly localControl: true;
503
+ }, {
504
+ readonly name: "panels conversation";
505
+ readonly summary: "Record which conversation a terminal panel's agent is on, so Switch to chat and restarts open that one. A Claude Code SessionStart hook runs it with --hook.";
506
+ readonly usage: readonly ["runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane panels conversation --hook [--pane-dir <path>]"];
507
+ readonly mutates: true;
508
+ readonly additive: true;
509
+ readonly idempotent: true;
510
+ readonly toolsets: readonly ["panels"];
511
+ readonly jsonSchemas: readonly ["panelConversationRequest", "panelConversationResult"];
512
+ readonly localControl: true;
502
513
  }, {
503
514
  readonly name: "panes git-status";
504
515
  readonly summary: "Read the git status of a Pane worktree: uncommitted, unpushed, and behind-main counts.";
@@ -780,7 +791,7 @@ export declare const RUNPANE_CONTRACT: {
780
791
  }, {
781
792
  readonly name: "notify";
782
793
  readonly summary: "Ask the person a question, or tell them something, wherever they are, and get their answer back.";
783
- 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>]"];
794
+ readonly usage: readonly ["runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", "runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", "runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]", "runpane notify --resume <id> [--json] [--pane-dir <path>]"];
784
795
  readonly mutates: true;
785
796
  readonly additive: true;
786
797
  readonly toolsets: readonly ["core"];
@@ -788,18 +799,72 @@ export declare const RUNPANE_CONTRACT: {
788
799
  readonly localControl: true;
789
800
  }, {
790
801
  readonly name: "inbox";
791
- readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged.";
802
+ readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged, and the answers its workers got.";
792
803
  readonly usage: readonly ["runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]"];
793
804
  readonly jsonSchemas: readonly ["inboxListResult"];
794
805
  readonly localControl: true;
795
806
  }, {
796
807
  readonly name: "inbox ack";
797
- readonly summary: "Clear Session inbox items once they are handled.";
798
- 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>]"];
808
+ readonly summary: "Clear Session inbox items once they are handled, and record an answer's D-n.";
809
+ 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>]"];
799
810
  readonly mutates: true;
800
811
  readonly idempotent: true;
801
812
  readonly jsonSchemas: readonly ["inboxAckResult"];
802
813
  readonly localControl: true;
814
+ }, {
815
+ readonly name: "autopilot status";
816
+ 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.";
817
+ readonly usage: readonly ["runpane autopilot status [--json] [--pane-dir <path>]"];
818
+ readonly toolsets: readonly ["autopilot"];
819
+ readonly jsonSchemas: readonly ["autopilotStatusResult"];
820
+ readonly localControl: true;
821
+ }, {
822
+ readonly name: "autopilot waiting";
823
+ 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.";
824
+ readonly usage: readonly ["runpane autopilot waiting [--json] [--pane-dir <path>]"];
825
+ readonly toolsets: readonly ["autopilot"];
826
+ readonly jsonSchemas: readonly ["autopilotWaitingResult"];
827
+ readonly localControl: true;
828
+ }, {
829
+ readonly name: "autopilot stack";
830
+ readonly summary: "List the entries on Autopilot's stack in order, and which one is on screen.";
831
+ readonly usage: readonly ["runpane autopilot stack [--json] [--pane-dir <path>]"];
832
+ readonly toolsets: readonly ["autopilot"];
833
+ readonly jsonSchemas: readonly ["autopilotStackResult"];
834
+ readonly localControl: true;
835
+ }, {
836
+ readonly name: "autopilot stack push";
837
+ readonly summary: "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.";
838
+ 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>]"];
839
+ readonly mutates: true;
840
+ readonly additive: true;
841
+ readonly toolsets: readonly ["autopilot"];
842
+ readonly jsonSchemas: readonly ["autopilotStackPushRequest", "autopilotStackPushResult"];
843
+ readonly localControl: true;
844
+ }, {
845
+ readonly name: "autopilot answer";
846
+ readonly summary: "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.";
847
+ readonly usage: readonly ["runpane autopilot answer <id> (--choice <label> | --approve | --deny | --text <text>) [--note <text>] --because <why> [--json] [--pane-dir <path>]"];
848
+ readonly mutates: true;
849
+ readonly toolsets: readonly ["autopilot"];
850
+ readonly jsonSchemas: readonly ["autopilotAnswerRequest", "autopilotAnswerResult"];
851
+ readonly localControl: true;
852
+ }, {
853
+ readonly name: "autopilot close";
854
+ readonly summary: "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.";
855
+ readonly usage: readonly ["runpane autopilot close <id> --reason <why> [--json] [--pane-dir <path>]"];
856
+ readonly mutates: true;
857
+ readonly toolsets: readonly ["autopilot"];
858
+ readonly jsonSchemas: readonly ["autopilotCloseRequest", "autopilotCloseResult"];
859
+ readonly localControl: true;
860
+ }, {
861
+ readonly name: "autopilot rewrite";
862
+ readonly summary: "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.";
863
+ 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>]"];
864
+ readonly mutates: true;
865
+ readonly toolsets: readonly ["autopilot"];
866
+ readonly jsonSchemas: readonly ["autopilotRewriteRequest", "autopilotRewriteResult"];
867
+ readonly localControl: true;
803
868
  }, {
804
869
  readonly name: "sessions list";
805
870
  readonly summary: "List durable named orchestration Sessions.";
@@ -913,7 +978,7 @@ export declare const RUNPANE_CONTRACT: {
913
978
  readonly localControl: true;
914
979
  }, {
915
980
  readonly name: "sessions pause";
916
- readonly summary: "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.";
981
+ readonly summary: "Pause a Session: stop the terminal tabs of its chat and every Pane in it, keeping their conversations. Chat tabs keep running.";
917
982
  readonly usage: readonly ["runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]"];
918
983
  readonly mutates: true;
919
984
  readonly idempotent: true;
@@ -1199,7 +1264,7 @@ export declare const RUNPANE_CONTRACT: {
1199
1264
  }, {
1200
1265
  readonly name: "--source";
1201
1266
  readonly value: "<user|agent>";
1202
- readonly description: "Identify whether a local-control mutation is user-initiated or agent/orchestrator-initiated.";
1267
+ readonly description: "Identify whether a local-control mutation is user-initiated or agent/orchestrator-initiated. On panels conversation it is instead what started the conversation: startup, resume, clear, or compact.";
1203
1268
  }, {
1204
1269
  readonly name: "--strategy";
1205
1270
  readonly value: "<auto|codex-ctrl-enter|enter|tab>";
@@ -1328,6 +1393,10 @@ export declare const RUNPANE_CONTRACT: {
1328
1393
  readonly name: "--question";
1329
1394
  readonly value: "<text>";
1330
1395
  readonly description: "What a blocked worker needs answered; required with --state blocked.";
1396
+ }, {
1397
+ readonly name: "--conversation";
1398
+ readonly value: "<id>";
1399
+ readonly description: "The conversation (agent session) id a panel's agent is on, for runpane panels conversation.";
1331
1400
  }, {
1332
1401
  readonly name: "--cwd";
1333
1402
  readonly value: "<path>";
@@ -1395,7 +1464,7 @@ export declare const RUNPANE_CONTRACT: {
1395
1464
  }, {
1396
1465
  readonly name: "--reason";
1397
1466
  readonly value: "<text>";
1398
- readonly description: "Why you need the secret; shown on the card.";
1467
+ readonly description: "secrets request: why you need the secret, shown on the card. autopilot close: why it closes, recorded on the item.";
1399
1468
  }, {
1400
1469
  readonly name: "--epoch";
1401
1470
  readonly value: "<epoch>";
@@ -1407,11 +1476,11 @@ export declare const RUNPANE_CONTRACT: {
1407
1476
  }, {
1408
1477
  readonly name: "--context";
1409
1478
  readonly value: "<text>";
1410
- readonly description: "notify: background shown under Details.";
1479
+ readonly description: "notify: the card's subtitle: one or two sentences on why it matters (up to 240 characters).";
1411
1480
  }, {
1412
1481
  readonly name: "--choices";
1413
1482
  readonly value: "<json>";
1414
- readonly description: "notify --ui options: 1 to 9 choices as a JSON array of {label, detail?, recommended?}.";
1483
+ readonly description: "notify --ui options: 1 to 9 choices as a JSON array of {label, detail?, recommended?}; with --update a reworded choice adds \"was\", its old label.";
1415
1484
  }, {
1416
1485
  readonly name: "--detail";
1417
1486
  readonly value: "<text>";
@@ -1428,10 +1497,74 @@ export declare const RUNPANE_CONTRACT: {
1428
1497
  readonly name: "--action";
1429
1498
  readonly value: "<json>";
1430
1499
  readonly description: "notify --ui info: one button as a JSON object {label, url}.";
1500
+ }, {
1501
+ readonly name: "--links";
1502
+ readonly value: "<json>";
1503
+ readonly description: "notify: up to 6 related files, pages or approvals as a JSON array of {label, path}, {label, url} or {label, approval}; any ui.";
1431
1504
  }, {
1432
1505
  readonly name: "--content";
1433
1506
  readonly value: "<text>";
1434
1507
  readonly description: "Text that workspace write writes instead of stdin.";
1508
+ }, {
1509
+ readonly name: "--agent-farm";
1510
+ readonly value: "<profile>";
1511
+ readonly description: "Start an Agent Farm profile (such as greenfield/implementer:opus) in a chat tab.";
1512
+ }, {
1513
+ readonly name: "--arg";
1514
+ readonly value: "<key=value>";
1515
+ readonly description: "A launch argument for --agent-farm, shown to the agent in its LAUNCH CONTEXT; repeatable.";
1516
+ }, {
1517
+ readonly name: "--item";
1518
+ readonly value: "<id>";
1519
+ readonly description: "autopilot stack push only: the waiting item (an id from `runpane autopilot waiting`) to put on the stack.";
1520
+ }, {
1521
+ readonly name: "--relays";
1522
+ readonly value: "<item>";
1523
+ 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.";
1524
+ }, {
1525
+ readonly name: "--about-session";
1526
+ readonly value: "<id|name>";
1527
+ readonly description: "notify only, for Autopilot's own items: the Session the item is about.";
1528
+ }, {
1529
+ readonly name: "--questions";
1530
+ readonly value: "<json>";
1531
+ readonly description: "notify --ui options, instead of --choices: 2 to 4 questions as a JSON array of {title, choices}, each with 1 to 9 choices and one pick.";
1532
+ }, {
1533
+ readonly name: "--took";
1534
+ readonly value: "<id|Q-n>";
1535
+ readonly description: "notify only: say how you took the person's reply to this approval; answer or question follows the id.";
1536
+ }, {
1537
+ readonly name: "--took-as";
1538
+ readonly value: "<answer|question>";
1539
+ readonly description: "notify --took: the word after the id, as a flag (the MCP tool's tookAs).";
1540
+ }, {
1541
+ readonly name: "--status";
1542
+ readonly value: "<text>";
1543
+ readonly description: "notify --took <id> question: what you are doing about it, shown on the approval. Defaults to \"Getting more context…\".";
1544
+ }, {
1545
+ readonly name: "--update";
1546
+ readonly value: "<id|Q-n>";
1547
+ readonly description: "notify only: save a new version of this approval after the person's question, and wait on it.";
1548
+ }, {
1549
+ readonly name: "--asked";
1550
+ readonly value: "<text>";
1551
+ readonly description: "notify --update: the person's question, as they typed it.";
1552
+ }, {
1553
+ readonly name: "--what-changed";
1554
+ readonly value: "<text>";
1555
+ readonly description: "notify --update: what changed, one line per change.";
1556
+ }, {
1557
+ readonly name: "--decision";
1558
+ readonly value: "<D-n>";
1559
+ readonly description: "inbox ack only: record this D-n on each named item.";
1560
+ }, {
1561
+ readonly name: "--choice";
1562
+ readonly value: "<label>";
1563
+ readonly description: "autopilot answer only: answer with this choice's label.";
1564
+ }, {
1565
+ readonly name: "--because";
1566
+ readonly value: "<why>";
1567
+ readonly description: "autopilot answer only: why, recorded on the item: a D-n, a document or the person's words.";
1435
1568
  }];
1436
1569
  readonly localBoolean: readonly [{
1437
1570
  readonly name: "--json";
@@ -1450,7 +1583,7 @@ export declare const RUNPANE_CONTRACT: {
1450
1583
  readonly description: "Open the tab in split view beside the primary tab group (default for panels open).";
1451
1584
  }, {
1452
1585
  readonly name: "--tab";
1453
- readonly description: "Open the tab in the current tab group instead of split view.";
1586
+ 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.";
1454
1587
  }, {
1455
1588
  readonly name: "--pinned";
1456
1589
  readonly description: "Request pinning at creation; Session association still clears the first pin. Outside a Session, creation pins by default.";
@@ -1462,13 +1595,16 @@ export declare const RUNPANE_CONTRACT: {
1462
1595
  readonly description: "Inside a Session orchestrator, do not associate the created pane with that Session.";
1463
1596
  }, {
1464
1597
  readonly name: "--force";
1465
- readonly description: "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes, one of its agents is mid-turn, or a tab holds unsent input; for lock release, release another owner's lock.";
1598
+ 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.";
1466
1599
  }, {
1467
1600
  readonly name: "--remove-worktree";
1468
1601
  readonly description: "Also check and remove an adopted Pane's worktree when archiving it. The local branch is kept.";
1469
1602
  }, {
1470
1603
  readonly name: "--merged";
1471
1604
  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).";
1605
+ }, {
1606
+ readonly name: "--closed";
1607
+ readonly description: "With panes archive --session --merged, also archive Panes whose PR closed without merging, with the same unsaved-work checks.";
1472
1608
  }, {
1473
1609
  readonly name: "--launch";
1474
1610
  readonly description: "Run an adopted pane's agent resume command immediately instead of staging it.";
@@ -1532,11 +1668,26 @@ export declare const RUNPANE_CONTRACT: {
1532
1668
  }, {
1533
1669
  readonly name: "--paused";
1534
1670
  readonly description: "loops create only: create the loop paused.";
1671
+ }, {
1672
+ readonly name: "--chat";
1673
+ readonly description: "Open the agent as a chat tab (Claude or Codex over ACP, no terminal) instead of a terminal tab.";
1674
+ }, {
1675
+ readonly name: "--next";
1676
+ 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).";
1677
+ }, {
1678
+ readonly name: "--approve";
1679
+ readonly description: "autopilot answer only: approve the item.";
1680
+ }, {
1681
+ readonly name: "--deny";
1682
+ readonly description: "autopilot answer only: deny the item.";
1683
+ }, {
1684
+ readonly name: "--hook";
1685
+ readonly description: "runpane panels conversation: read a Claude Code SessionStart hook's JSON from stdin and report it for PANE_PANEL_ID. Prints nothing and always exits 0.";
1535
1686
  }];
1536
1687
  };
1537
1688
  readonly help: {
1538
1689
  readonly npm: {
1539
- readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane sessions list [--json] [--pane-dir <path>]", " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions pause|resume --session <id|name> [--json] [--pane-dir <path>]", " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]", " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " runpane loops list [--json]", " runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane workspace list [--json]", " runpane workspace <machine> read|write|exec|<command>", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1690
+ 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 conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane help [command]", "", "Quick start:", " npx --yes runpane@latest", " npm i -g runpane && runpane setup", "", "Advanced examples:", " npx --yes runpane@latest install client", " npx --yes runpane@latest install daemon --label \"My Server\"", " pnpm dlx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1540
1691
  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>"];
1541
1692
  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"];
1542
1693
  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."];
@@ -1554,21 +1705,21 @@ export declare const RUNPANE_CONTRACT: {
1554
1705
  readonly "secrets delete": readonly ["Usage:", " runpane secrets delete --project <project> --name <name> --yes [--json]", "", "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1555
1706
  readonly "secrets exec": readonly ["Usage:", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...", "", "Runs the command with Pane secrets added to your environment, and exits with its exit code. Each secret is injected under its own name and overrides a variable of that name.", "With no --only, --env or --file, it injects every secret in the project.", "", "Options:", " --project <project> Secret project", " --only <name,...> Inject only these secrets", " --env <VAR=NAME> Inject secret NAME as VAR; repeatable", " --file <name> Write secret NAME to a private temp file and set NAME to its path; repeatable. The file is removed when the command exits", " --pane-dir <path> Connect to a specific Pane data directory", "", "Example:", " runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"];
1556
1707
  readonly "secrets request": readonly ["Usage:", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", "", "Asks the person for a secret on a masked Notify card. What they type is saved as the Pane secret <project>/<name>; you get back only \"saved\" or \"declined\". Then use it with `runpane secrets exec`.", "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --title <text> What the secret is, such as \"Stripe test secret key\"", " --reason <text> What you need it for", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1557
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", " runpane panes pause|resume --pane <pane-id> --yes [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1708
+ 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."];
1558
1709
  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"];
1559
1710
  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"];
1560
1711
  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'"];
1561
1712
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
1562
- readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
1713
+ 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."];
1563
1714
  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."];
1564
1715
  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."];
1565
- readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it.", "", "Options:", " --pane <pane-id> Pane/session id to archive", " --source <user|agent> Mark mutation source", " --force Archive even if the pane has uncommitted, untracked, or unpushed changes, a busy agent, or unsent input", " --remove-worktree Also check and remove an adopted Pane's worktree (the branch is kept)", " --session <id|name> Archive the Panes associated with this Session (requires --merged)", " --merged Only archive Panes that are clean and pushed, or merged via a PR", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", " --dry-run Refresh and print archive safety evidence without archiving", " --yes Skip confirmation for mutating commands"];
1716
+ 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"];
1566
1717
  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"];
1567
1718
  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"];
1568
1719
  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"];
1569
1720
  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"];
1570
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1571
- readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "resumeId is the saved agent session ID that reopens the panel; resumeSource says which rule uses it: agent-farm, configured, or agent.", "", "Options:", " --pane <pane-id> Pane/session id", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1721
+ 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]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1722
+ 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"];
1572
1723
  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"];
1573
1724
  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"];
1574
1725
  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"];
@@ -1579,6 +1730,7 @@ export declare const RUNPANE_CONTRACT: {
1579
1730
  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"];
1580
1731
  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."];
1581
1732
  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."];
1733
+ 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"];
1582
1734
  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."];
1583
1735
  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."];
1584
1736
  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."];
@@ -1613,10 +1765,10 @@ export declare const RUNPANE_CONTRACT: {
1613
1765
  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."];
1614
1766
  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."];
1615
1767
  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"];
1616
- readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"];
1768
+ readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <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.", "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer", "the question or ask one. Say which with --took; for a question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --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, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --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", " --took <id|Q-n> <answer|question>", " Say how you took the person's reply: answer records it as the answer;", " question shows that you are getting more context", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it", " --what-changed <text> With --update: one line per change", " --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", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 answer", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
1617
1769
  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"];
1618
1770
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1619
- readonly "panels close": readonly ["Close a tab in a Pane, stopping its process, as closing the tab in the app does.", "", "Usage:", " runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:", "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.", "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.", "", "Options:", " --panel <panel-id> Panel id, from runpane panels list", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " runpane panels close --panel <panel-id> --yes --json"];
1771
+ readonly "panels conversation": readonly ["Usage:", " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane panels conversation --hook [--pane-dir <path>]", "", "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart", "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal", "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin", "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.", "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:", "outside Pane, with bad input, when Pane is not running, or with an older Pane.", "", "Options:", " --conversation <id> Conversation (agent session) id", " --source <source> What started it: startup, resume, clear, or compact", " --hook Read a SessionStart hook's JSON from stdin, silently", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane <pane-id> Pane id, with --panel", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"];
1620
1772
  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."];
1621
1773
  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."];
1622
1774
  readonly "lock release": readonly ["Usage:", "runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
@@ -1641,16 +1793,24 @@ export declare const RUNPANE_CONTRACT: {
1641
1793
  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."];
1642
1794
  readonly "pr unwatch": readonly ["runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "", "Remove a Pane’s explicit PR registration."];
1643
1795
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1644
- readonly inbox: readonly ["Usage:", " runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]", "", "Lists what a Session's orchestrator has not acknowledged: worker reports (agent.report),", "missing reports (agent.report.missing), and questions waiting on a worker's screen", "(agent.blocked; these clear themselves once the worker moves on). Pane keeps them across", "restarts. An orchestrator reads it when it starts or resumes, to catch what finished while it was down.", "", "Options:", " --session <id|name> Session; defaults to PANE_ORCHESTRATION_SESSION_ID", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Clear handled items with `runpane inbox ack <item-id>...`."];
1645
- readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--session <id|name>] [--json] [--pane-dir <path>]", " runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]", "", "Clears Session inbox items. Ids that match nothing are listed as unknown; acknowledging twice is harmless.", "", "Options:", " --session <id|name> Only clear items of this Session; required with --all", " --all Clear every item of the Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1796
+ 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>`."];
1797
+ 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"];
1798
+ 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."];
1799
+ 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"];
1800
+ 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"];
1801
+ 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"];
1802
+ 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."];
1803
+ 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."];
1804
+ 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."];
1805
+ 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> Subtitle: why it matters, one or two sentences", " --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."];
1646
1806
  readonly "panels pause": readonly ["Usage:", " runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Pauses one terminal tab: stops its process and marks it paused until", "`runpane panels resume --panel <panel-id>`, or its Pane or Session, resumes it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --panel <panel-id> Terminal panel id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1647
1807
  readonly "panes pause": readonly ["Usage:", " runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Pauses every terminal tab of a Pane, run scripts included, until `runpane panes resume`", "resumes it. A Pane is paused while all of its terminal tabs are; `panes list` reports it.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --pane <pane-id> Pane id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1648
1808
  readonly "panes resume": readonly ["Usage:", " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents", "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --pane <pane-id> Pane id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1649
- readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1809
+ 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"];
1650
1810
  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"];
1651
1811
  };
1652
1812
  readonly pip: {
1653
- readonly default: readonly ["Usage:", " runpane", " runpane setup", " runpane install [client|daemon] [options]", " runpane update [options]", " runpane version", " runpane doctor", " runpane doctor --report --body-file <path|->", " runpane daemon repair [--pane-dir <path>] [--yes] [--json]", " runpane agent-context [--json]", " runpane mcp [--toolsets <name,...>] [--read-only]", " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]", " runpane repos list [--json]", " runpane repos add --path <path> [--name <name>]", " runpane repos get [--repo <selector>] [--json]", " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]", " runpane repos rename --repo <selector> --name <name>", " runpane secrets list [--project <project>] [--json]", " runpane secrets set --project <project> --name <name> --yes (value on stdin)", " runpane secrets delete --project <project> --name <name> --yes", " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...", " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane workspace state [--repo <selector>] [--json]", " runpane watch --follow", " runpane watch --until-event", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes", " runpane panes pause|resume --pane <pane-id> --yes [--json]", " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes", " runpane panels list --pane <pane-id> [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--keys <name,...>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--resume <id>] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--session <id|name>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " python -m runpane loops list [--json]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1813
+ 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 conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]", " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]", " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes push --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes pull --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes rebase-main --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes restore --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane links create --pane <pane-id> [--panel <panel-id>] [--json]", " runpane links open --url <pane-url> --yes [--json] [--pane-dir <path>]", " runpane docs search --query <text> [--limit <count>] [--json]", " runpane docs read --doc <path> [--json]", " runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]", " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]", " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]", " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]", " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]", " runpane inbox [--session <id|name>] [--json]", " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]", " runpane autopilot status|waiting|stack [--json]", " runpane autopilot stack push (--item <id>|--file <path>|--url <url>|--session <id|name>) [--next] [--json]", " runpane autopilot answer <id> (--choice <label>|--approve|--deny|--text <text>) --because <why> [--json]", " runpane autopilot close <id> --reason <why> [--json]", " runpane autopilot rewrite <id> --ui <options|approve|ask> --title <text> [--choices <json>] [--json]", " runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]", " runpane panes stash --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stash-pop --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes soft-reset --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes fetch --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes run-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes stop-script --pane <pane-id> --yes [--json] [--pane-dir <path>]", " runpane panes move --pane <pane-id> --folder <folder-id> --yes [--json] [--pane-dir <path>]", " runpane folders list --repo <repo-id> [--json] [--pane-dir <path>]", " runpane folders create --repo <repo-id> --name <name> --yes [--json] [--pane-dir <path>]", " runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", " runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]", " python -m runpane loops list [--json]", " python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes", " python -m runpane loops update|run|pause|resume|delete --loop <id> --yes", " runpane help [command]", "", "Quick start:", " pipx run runpane", " python -m pip install runpane && python -m runpane setup", "", "Advanced examples:", " pipx run runpane install client", " pipx run runpane install daemon --label \"My Server\"", " uvx runpane@latest", "", "Common commands:", " runpane help", " runpane setup", " runpane install", " runpane doctor", "", "Agent discovery:", " runpane doctor --json", " runpane agent-context --json", " runpane agent-context --command \"<command>\" --json", "", "Run \"runpane help panes create\" for pane orchestration options."];
1654
1814
  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>"];
1655
1815
  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"];
1656
1816
  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."];
@@ -1668,21 +1828,21 @@ export declare const RUNPANE_CONTRACT: {
1668
1828
  readonly "secrets delete": readonly ["Usage:", " python -m runpane secrets delete --project <project> --name <name> --yes [--json]", "", "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name", " --yes Skip confirmation for mutating commands", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1669
1829
  readonly "secrets exec": readonly ["Usage:", " python -m runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...", "", "Runs the command with Pane secrets added to your environment, and exits with its exit code. Each secret is injected under its own name and overrides a variable of that name.", "With no --only, --env or --file, it injects every secret in the project.", "", "Options:", " --project <project> Secret project", " --only <name,...> Inject only these secrets", " --env <VAR=NAME> Inject secret NAME as VAR; repeatable", " --file <name> Write secret NAME to a private temp file and set NAME to its path; repeatable. The file is removed when the command exits", " --pane-dir <path> Connect to a specific Pane data directory", "", "Example:", " python -m runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"];
1670
1830
  readonly "secrets request": readonly ["Usage:", " python -m runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]", "", "Asks the person for a secret on a masked Notify card. What they type is saved as the Pane secret <project>/<name>; you get back only \"saved\" or \"declined\". Then use it with `runpane secrets exec`.", "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.", "", "Options:", " --project <project> Secret project", " --name <name> Secret name, such as STRIPE_SECRET_KEY", " --title <text> What the secret is, such as \"Stripe test secret key\"", " --reason <text> What you need it for", " --json Print machine-readable output", " --pane-dir <path> Connect to a specific Pane data directory"];
1671
- readonly panes: readonly ["Pane session commands.", "", "Usage:", " runpane panes <command> [options]", "", "Commands:", " runpane panes list [--repo <selector>] [--json]", " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]", " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [options]", " runpane panes archive --pane <pane-id> [--force] [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]", " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]", " runpane panes pause|resume --pane <pane-id> --yes [--json]", "", "Run \"runpane help panes <command>\" for command-specific options."];
1831
+ 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."];
1672
1832
  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"];
1673
1833
  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"];
1674
1834
  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"];
1675
1835
  readonly "workspace state": readonly ["Usage:", " runpane workspace state [--repo <selector>] [--json]", "", "Returns one workspace snapshot of every Pane and CLI panel."];
1676
- readonly watch: readonly ["Usage:", " runpane watch Print what changed since your cursor, then exit", " runpane watch --follow Keep watching, tuned for an agent watching unattended", " runpane watch --until-event Wait for one event worth waking for, print it, exit 0", "", "Waits for agent, Pane, panel, and PR events from the daemon without polling.", "", "What --follow does by default (see defaults.watch.follow in the contract):", " prints WATCH OK once when armed, then one line per event, with no heartbeats", " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,", " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,", " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted", " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m", " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)", " IDLE reminders at 10m, 30m, 1h, 3h, then daily", " ends with WATCH EXPIRED and exit 0 after 3h with nothing but IDLE", "", "What --until-event does by default: waits for agent.report, agent.blocked, panel.exited,", "or pane.gone, prints that one line, and exits 0. Run it as a background task, act on", "its line, then run it again; its named cursor means nothing is missed between runs.", "Single-event waits deliver immediately without follow settling or batching.", "--follow --since <generation> has no consumer name and bypasses settling and batching. Cadence requires a named follow consumer; --as cannot be combined with numeric --since.", "agent.report.missing (an agent given work ended its turn or exited without `runpane report`) is opt-in:", "add it to --kinds to wake on MISSING REPORT too.", "", "Options:", " --session <id|name> Watch every Pane in a Session; associate/detach apply live", " --pane <id> Watch one Pane; repeatable (default: every managed Pane)", " --exclude-pane <id> Leave out a Pane; repeatable", " --repo <selector> Limit to a saved repository", " --name-contains <text> Limit by Pane name substring", " --include-shells Include plain shell panels (default: agent panels only)", " --kinds <kind,...> Replace the default event kinds", " --json One JSON object per line", " --as <name> Name the cursor (default: from --session or this panel)", " --since <generation> Use an explicit cursor instead of a name", " --epoch <epoch> Pair with --since to detect journal resets", " --from <now|earliest> Where a new named cursor starts (default: now)", " --self-test Check the daemon watch path and exit", "", "Overrides (durations such as 30s, 10m, 3h; a bare number is milliseconds; 0 turns it off):", " --ready-settle <duration> Quiet time before READY (default 3m)", " --blocked-settle <duration> Time before BLOCKED (default 30s)", " --min-interval <duration> Batch window for non-urgent lines (default 10m)", " --idle-after <duration> First IDLE reminder (default 10m)", " --expire-after <duration> End after this long with nothing but IDLE (default 3h)", " --heartbeat <duration> Print a HEARTBEAT line this often (default off)", " --timeout-ms <duration> Per-request wait; with --until-event, the total deadline (exit 124)", " --limit <count> Maximum entries per response", " --ack-now At-most-once cursor delivery", " --include-held-input Include unsubmitted composer text in JSON", " --no-held-input Turn off STUCK detection", " --pane-dir <path> Connect to a specific Pane data directory", "", "How a watch ends: WATCH EXPIRED (exit 0) means nothing happened; arm a new one with the next", "dispatch. A non-zero exit or a WATCH ERROR line means it failed: say so and re-arm once. Judge", "a watch by WATCH OK and these endings, never by silence. Never pipe --follow into grep -m1 or head.", "STUCK means real unsubmitted composer text; a prompt suggestion never counts."];
1836
+ 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."];
1677
1837
  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."];
1678
1838
  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."];
1679
- readonly "panes archive": readonly ["Usage:", " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]", " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]", "", "Archives a Pane (session) exactly like the UI Archive action, including removal of its Pane-managed git worktree. Refreshes the configured upstream before checking for unpushed commits and reports exact commit evidence. When the branch has no upstream or its upstream is gone, a merged GitHub pull request whose head is HEAD (found with `gh`) counts as pushed. Refuses unsafe archives unless --force is passed. An adopted worktree is kept unless --remove-worktree is passed, which applies the same safety check and removal. The local branch is always kept. With --session and --merged, archives every Pane associated with the Session whose work is clean and pushed or merged, and reports a reason for each Pane it skips. Use --dry-run to print the evidence without mutating Pane state. Refuses a Pane with an agent mid-turn or waiting for an answer (agent-busy), or with a tab holding unsent composer text or unsaved editor edits (unsent-input), unless --force is passed; the --session sweep skips it.", "", "Options:", " --pane <pane-id>", " --source <user|agent>", " --force", " --remove-worktree", " --session <id|name>", " --merged", " --pane-dir <path>", " --json", " --dry-run", " --yes"];
1839
+ 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"];
1680
1840
  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"];
1681
1841
  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"];
1682
1842
  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"];
1683
1843
  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"];
1684
- readonly panels: readonly ["Terminal-backed panel commands.", "", "Usage:", " runpane panels <command> [options]", "", "Commands:", " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [options]", " runpane panels open (--url <url>|--file <path>) [--split|--tab] --yes [--json]", " runpane panels list --pane <pane-id> [--json]", " runpane panels screen --panel <panel-id> [--limit <count>] [--json]", " runpane panels output --panel <panel-id> [--limit <count>] [--json]", " runpane panels input --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit --panel <panel-id> (--text <text>|--input-file <path|->) --yes [--json]", " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]", " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]", " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]", " runpane panels close --panel <panel-id> --yes [--json]", " runpane panels pause --panel <panel-id> --yes [--json]", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1685
- readonly "panels list": readonly ["Usage:", " runpane panels list --pane <pane-id> [--json]", "", "Lists tool panels in a Pane session.", "", "agentDetection says how Pane knows agentType: declared, command, process, or screen. launchCommand is the command the panel was launched with.", "resumeId is the saved agent session ID that reopens the panel; resumeSource says which rule uses it: agent-farm, configured, or agent.", "", "Options:", " --pane <pane-id>", " --pane-dir <path>", " --json"];
1844
+ 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]", " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]", "", "Run \"runpane help panels create\" or another command-specific topic for options."];
1845
+ 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"];
1686
1846
  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"];
1687
1847
  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"];
1688
1848
  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"];
@@ -1693,6 +1853,7 @@ export declare const RUNPANE_CONTRACT: {
1693
1853
  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"];
1694
1854
  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."];
1695
1855
  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."];
1856
+ 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"];
1696
1857
  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."];
1697
1858
  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."];
1698
1859
  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."];
@@ -1727,10 +1888,10 @@ export declare const RUNPANE_CONTRACT: {
1727
1888
  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"];
1728
1889
  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."];
1729
1890
  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"];
1730
- readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]", " runpane notify --resume <id> [--json] [--pane-dir <path>]", "", "Asks the person a question, or tells them something, on screen wherever they are, and", "prints their answer. The call waits until they answer; --ui info returns at once.", "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.", "When Pane is not running it prints an unavailable result: ask in the terminal instead.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line", " --context <text> Background shown under Details", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --detail <text> approve: the command or SQL to approve", " --detail-label <text> approve: label of the disclosure for --detail (default Show details)", " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]", " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}", " --resume <id> Keep waiting on a question an earlier call returned waiting for", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"];
1891
+ readonly notify: readonly ["Usage:", " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]", " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]", " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <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.", "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer", "the question or ask one. Say which with --took; for a question, find out, then --update.", "", "Options:", " --ui <ui> options, approve, ask, or info", " --title <text> The question or update in one line, about 80 characters", " --context <text> Subtitle: why it matters, one or two sentences", " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]", " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each", " --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, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]", " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]", " --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", " --took <id|Q-n> <answer|question>", " Say how you took the person's reply: answer records it as the answer;", " question shows that you are getting more context", " --status <text> With --took question: what you are doing (default Getting more context…)", " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;", " pass only what changed, and mark a reworded choice with \"was\" (its old label)", " --asked <text> With --update: the person's question, as they typed it", " --what-changed <text> With --update: one line per change", " --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", "", "Examples:", " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'", " runpane notify --took Q-20 answer", " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""];
1731
1892
  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"];
1732
1893
  readonly "panels last-message": readonly ["Usage:", " runpane panels last-message --panel <panel-id> [--limit <count>] [--json] [--pane-dir <path>]", "", "Reads a Claude or Codex agent's last reply from its transcript. It never scrapes the screen:", "without a transcript it reports transcript-unavailable and exits non-zero.", "", "Options:", " --panel <panel-id> Agent panel id", " --limit <count> Maximum characters to return; defaults to 20000 (the end is kept)", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1733
- readonly "panels close": readonly ["Close a tab in a Pane, stopping its process, as closing the tab in the app does.", "", "Usage:", " python -m runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]", "", "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:", "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.", "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.", "", "Options:", " --panel <panel-id> Panel id, from runpane panels list", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Examples:", " python -m runpane panels close --panel <panel-id> --yes --json"];
1894
+ readonly "panels conversation": readonly ["Usage:", " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]", " runpane panels conversation --hook [--pane-dir <path>]", "", "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart", "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal", "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.", "", "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin", "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.", "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:", "outside Pane, with bad input, when Pane is not running, or with an older Pane.", "", "Options:", " --conversation <id> Conversation (agent session) id", " --source <source> What started it: startup, resume, clear, or compact", " --hook Read a SessionStart hook's JSON from stdin, silently", " --panel <panel-id> Panel id when not running inside a Pane terminal", " --pane <pane-id> Pane id, with --panel", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Example:", " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"];
1734
1895
  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."];
1735
1896
  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."];
1736
1897
  readonly "lock release": readonly ["Usage:", "python -m runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]", "", "Options:", " --name <name> Lock name: 1-128 letters, digits, \".\", \"_\", or \"-\".", " --ttl <duration> Time to live, such as 90s, 30m, or 2h; a bare number is milliseconds.", " --wait <milliseconds> Wait this long for a held lock to come free (acquire).", " --note <text> What the lock is for; outside a Pane it also names the owner.", " --pane <pane-id> Act for this Pane instead of $PANE_SESSION_ID.", " --panel <panel-id> Act for this panel instead of $PANE_PANEL_ID.", " --force Release a lock another owner holds (release).", " --session <id|name> Named Session whose locks to list or release.", " --json Print JSON output."];
@@ -1755,12 +1916,20 @@ export declare const RUNPANE_CONTRACT: {
1755
1916
  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."];
1756
1917
  readonly "pr unwatch": readonly ["runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "", "Remove a Pane’s explicit PR registration."];
1757
1918
  readonly "pr list": readonly ["runpane pr list [--pane <id>] [--json] [--pane-dir <path>]", "", "List PR registrations and stopped watches."];
1758
- readonly inbox: readonly ["Usage:", " runpane inbox [--session <id|name>] [--json] [--pane-dir <path>]", "", "Lists what a Session's orchestrator has not acknowledged: worker reports (agent.report),", "missing reports (agent.report.missing), and questions waiting on a worker's screen", "(agent.blocked; these clear themselves once the worker moves on). Pane keeps them across", "restarts. An orchestrator reads it when it starts or resumes, to catch what finished while it was down.", "", "Options:", " --session <id|name> Session; defaults to PANE_ORCHESTRATION_SESSION_ID", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output", "", "Clear handled items with `runpane inbox ack <item-id>...`."];
1759
- readonly "inbox ack": readonly ["Usage:", " runpane inbox ack <item-id>... [--session <id|name>] [--json] [--pane-dir <path>]", " runpane inbox ack --all --session <id|name> [--json] [--pane-dir <path>]", "", "Clears Session inbox items. Ids that match nothing are listed as unknown; acknowledging twice is harmless.", "", "Options:", " --session <id|name> Only clear items of this Session; required with --all", " --all Clear every item of the Session", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1919
+ 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>`."];
1920
+ 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"];
1921
+ 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."];
1922
+ 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"];
1923
+ 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"];
1924
+ 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"];
1925
+ 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."];
1926
+ 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."];
1927
+ 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."];
1928
+ 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> Subtitle: why it matters, one or two sentences", " --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
1929
  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
1930
  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
1931
  readonly "panes resume": readonly ["Usage:", " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]", "", "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents", "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.", "`runpane watch` reports each resumed tab as panel.unpaused.", "", "Options:", " --pane <pane-id> Pane id", " --yes Skip the confirmation prompt", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1763
- readonly "sessions pause": readonly ["Usage:", " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]", "", "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,", "until `runpane sessions resume` resumes them.", "Stopping works the way quitting Pane does, without asking, even while an agent is working.", "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts", "and updates, and `panels resume --session` and `--all-stopped` skip it.", "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.", "", "Options:", " --session <id|name> Named Session id or exact name", " --pane-dir <path> Connect to a specific Pane data directory", " --json Print machine-readable output"];
1932
+ 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
1933
  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"];
1765
1934
  };
1766
1935
  };
@@ -1770,8 +1939,8 @@ export declare const RUNPANE_CONTRACT: {
1770
1939
  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\""];
1771
1940
  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\""];
1772
1941
  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."];
1773
- readonly commandUsages: readonly ["runpane", "runpane setup", "runpane install", "runpane install client", "runpane install daemon", "runpane update", "runpane version", "runpane doctor", "runpane doctor --json", "runpane daemon repair --pane-dir ~/.pane_remote --yes --json", "runpane agent-context", "runpane agent-context --command \"panes create\" --json", "runpane mcp", "runpane repos list --json", "runpane repos add --path /path/to/repo --name Pane --yes --json", "runpane repos get --repo Pane --json", "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json", "runpane repos update --repo Pane --clear run-script --yes --json", "runpane repos update --repo Pane --env '[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://api.test\"},{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json", "runpane repos rename --repo 3 --name Lev --yes --json", "runpane secrets list --json", "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes", "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json", "runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks", "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook tests against Stripe test mode.\" --json", "runpane panes list --repo active --json", "runpane panes cost --pane <pane-id> --json", "runpane panes create --repo active --name issue-252 --agent <agent> --prompt \"Kick off the discussion skill for issue 252\" --source agent --no-focus --wait-ready --yes --json", "runpane panes create --from-json panes.json --yes --json", "runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes rename --pane <pane-id> --name issue-393 --yes --json", "runpane panels list --pane <pane-id> --json", "runpane panels output --panel <panel-id> --limit 200 --json", "printf 'Continue\\n' | runpane panels input --panel <panel-id> --input-file - --yes --json", "runpane sessions list [--json] [--pane-dir <path>]", "runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions get --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]", "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]", "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]", "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]", "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]", "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]", "runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json", "runpane lock release --name testing-account --json", "runpane lock list --json", "runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json", "runpane loops list --json", "runpane loops run --loop <loop-id> --yes --json", "runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json", "runpane agents start --pane <pane-id> --agent codex --prompt \"Review the PR from this branch and report findings\" --yes --json", "runpane agents status --pane <pane-id> --json", "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json", "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json", "runpane panels last-message --panel <panel-id> --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panels close --panel <panel-id> --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
1774
- readonly commandDescriptions: readonly ["`runpane` with no arguments and `runpane setup` open an interactive wizard when stdin and stdout are TTYs. The remote-host wizard asks only for a name, then runs interactive Tailscale setup with automatic port selection; explicit install daemon flags remain available for SSH and manual URLs. In non-interactive shells or CI, both forms must print help, common commands, and agent discovery hints, then exit successfully instead of waiting for input.", "`runpane install` is an alias for `runpane install client`.", "`runpane install client` downloads the selected Pane desktop artifact and installs, opens, or launches it for the current platform.", "`runpane install daemon` downloads or installs Pane, resolves a stable Pane executable path, and spawns `<pane executable> --remote-setup <forwarded remote setup args>`.", "The wrapper must stream Pane stdout/stderr without reformatting because `pane --remote-setup` prints the one-time `pane-remote://...` connection code.", "`runpane update` defaults to both app and active supported CLI, with independent supervision, staging, durable status, and explicit restoration outcomes. Prerequisites, status fields/exit codes, draft handling and manual recovery are documented in [Update recovery](UPDATE_RECOVERY.md).", "`runpane version` prints only wrapper package metadata and does not contact, launch, or focus the Pane app or daemon.", "`runpane doctor` checks platform support, release metadata reachability, download URL selection, installed Pane detection, daemon reachability, every `runpane` on `PATH` against the Pane-managed CLI, and remote-daemon hints. `--fix` updates npm installs of `runpane` older than the Pane-managed CLI to its version and never removes a file. Add `--json` for a machine-readable report that agents should run before mutating Pane state. Installed app version detection must be best-effort and must not launch, focus, or configure Pane; macOS wrappers read app bundle metadata instead of executing `Pane --version`.", "`runpane daemon repair` rewrites and restarts only the managed remote-daemon launcher/service. It never creates pairing credentials, changes tunnels, or downloads Pane; doctor only recommends it and never runs it automatically.", "`runpane agent-context` prints a brief, token-efficient command schema for coding agents without connecting to the Pane daemon.", "`runpane agent-context --command \"panes create\"` prints the detailed definition for one command. Add `--json` for machine-readable output. An unknown command exits 2 and lists the closest command names; with `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout.", "`runpane mcp` runs a stdio MCP server whose tools are generated from this contract: every command with result `jsonSchemas` becomes a tool that runs `runpane <command> --json` and returns its output. Only the npm package and the Pane app include it; the Python wrapper prints how to run it with Node and exits non-zero.", "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.", "`runpane repos add` registers an existing git repository with the running local Pane daemon. It does not create directories or initialize git repositories by default.", "`runpane repos get` prints a saved repository's Project Settings. Each script shows its saved value, the fallback from the repository's config file, and the one Pane will run.", "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, clears settings with `--clear`, and adds, replaces or removes project environment variables with `--env` and `--env-remove`.", "`runpane repos rename` trims and sets a saved repository's display name, the same rename as the repository settings in the app, and returns the updated repository record.", "`runpane secrets` manages Pane secrets: named values, addressed as `<project>/<NAME>`, that every machine saved in Pane keeps a copy of. `list` shows names, times and machines only. `set` reads the value from stdin. `delete` removes one everywhere. `exec` runs a command with secrets in its environment and returns its exit code. `request` asks the person on a masked Notify card and returns only `saved` or `declined`. No command prints a value, and the MCP server has no tool that sets or reads one. These commands run on the machine itself, so `runpane workspace <machine> secrets ...` is refused; use `runpane workspace <machine> exec -- runpane secrets ...`.", "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.", "`runpane panes cost` reports estimated token costs per Pane for the last 30 days, including per-model breakdowns and cache efficiency; unscoped output includes an Unattributed bucket that reconciles against workspace totals.", "`runpane panes create` connects to the running local Pane daemon, resolves the requested saved base repository, creates user-visible Pane sessions backed by Pane-managed worktrees/branches, opens terminal-backed tool tabs, and optionally sends initial input to the started tool. Built-in agent panes and `--source agent` default to background/no-focus unless `--focus` is passed. New Panes are pinned into the UI's favorite/pin set by default, except when the CLI runs inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID`), where child worktrees default to unpinned. Explicit `--pinned` / `--no-pinned` override creation defaults. First Session association clears an existing pin, including an explicit creation pin; use `panes pin` after association to pin a child. This avoids duplicating Session children in the global pinned list. Manual pins applied afterward are preserved. Panes created interactively in the Pane UI are unaffected. Inside a Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` set), new Panes are associated with that Session automatically; `--no-associate` opts out. A failed association is reported on the item and never undoes the Pane.", "For `panes create --wait-ready` (and `panels create`, `panes adopt --launch`), ready means an identified agent at its own input box: declared with `--agent`, or detected from the command, its foreground process or its screen. A `--tool-command` that never shows a supported agent is not ready: `readiness.ok` is false with `readiness.reason.code` `no-agent-detected` after the timeout, or `command-exited` as soon as the command exits back to the shell, and nothing is typed into it. `agent-not-ready` means the agent was detected but its input box was not ready in time. CLI readiness is confirmed on consecutive polls. Codex also requires a recognized configured model or context footer below its live composer; its provisional startup composer is not ready. Hidden or unrecognized Codex status lines conservatively time out rather than prove readiness. Startup prompts return blocked with the prompt's own text in blocked.message and a suggestedCommand, and Pane never answers them, apart from Claude's folder trust for a Session's own folder: first-run trust and daemon dialogs and Agent Farm's `Trust this repository workspace? [y/N]` as blocked.kind=first-run-dialog; Codex's security setup banner and any other prompt, including a wrapper's or shell's `[y/N]` before the agent appears, as agent-prompt. A starting message blocked this way is held and sent once the prompt is answered and the agent's input box is ready. Every create with a starting message returns `initialInput`. Pane stages the text in the composer, presses the agent's submit key separately (Ctrl+Enter for Codex, declared or detected), and checks where it went: `initialInput.delivery` is `taken` or `queued` (from the agent's transcript or its screen), `in-composer`, or `unknown` (`argv` means a prompt was routed at launch; Pane gives the transcript up to 10 seconds before settling on unknown). `initialInput.verifiedSubmitted` is true exactly when it is `taken` or `queued`, and the create's `ok` is false unless a Claude or Codex starting message is verified. Cursor and OpenCode have no acceptance probe: their delivery stays `unknown` with a delivery.message saying so, `verification: unverifiable`, and `ok` follows readiness. Without `--wait-ready` the create returns at once with `initialInput.verifiedSubmitted: false`, a delivery.message saying the call did not wait, and a `panels wait` nextCommand; Pane still sends the message once the agent is identified and at its input box, and gives up without typing it if no supported agent appears within 30 seconds.", "`runpane panes archive` refreshes the configured upstream, reports exact unpushed commit evidence, and refuses unsafe archive operations unless `--force` is used. A branch whose upstream is gone counts as pushed when a merged GitHub pull request has HEAD as its head (`safetyCheck.mergedViaPr`). Add `--dry-run` to inspect the same evidence without archiving. `--remove-worktree` applies the same check and removal to an adopted worktree; local branches are always kept. Successful archives report `worktreeCleanup: completed` once the worktree is gone from its path and from git; `trashDeletion: pending` means its files are still being deleted in the background. `runpane panes archive --session <id|name> --merged` archives every Session Pane that is clean and pushed or merged, and reports a reason for each skipped Pane. Archive refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless `--force` is used, and the Session sweep skips it.", "`runpane panes rename` trims and updates a Pane's display name without changing its worktree, branch, panels, or focus, and returns the updated pane summary.", "`runpane panes focus` raises the Pane window and selects a Pane (and optionally one of its panels) exactly like clicking it in the UI. Because it steals the user's window focus, run it only on an explicit user request to open, focus, show, or switch to a Pane; never focus a Pane proactively, the same doctrine that keeps `panes create` background/no-focus for `--source agent`.", "`runpane panels open` opens a URL or a file from the Pane worktree as a tab in an existing Pane (default: the calling panel's Pane from `PANE_SESSION_ID`), in split view beside the agent unless `--tab` is passed. Files open in an editor tab with read-only previews for supported formats, and HTML opens as editable source; an existing tab showing the same target is reused. It brings the tab forward for clients already showing that Pane, and never raises or focuses the Pane window or switches anyone's Pane.", "`runpane panels list` lists tool panels inside one Pane session. Each panel with a saved agent session ID reports it as `resumeId`, with `resumeSource` (`agent-farm`, `configured`, or `agent`) naming the rule that reopens the conversation.", "`runpane panels output` reads bounded recent terminal output from one panel and strips common terminal control noise for agent use.", "`runpane panels input` sends exact input bytes to one terminal panel. Prefer `--input-file` for newlines, Ctrl-C, quotes, or shell-sensitive text.", "`runpane panes create --prompt` is an alias for `--initial-input`; request JSON and daemon payloads should use the canonical `initialInput` field.", "`runpane panes create --branch <name>` creates the Pane's worktree on exactly that new branch, slashes included (for example `agents/w5a`). The name is checked with `git check-ref-format --branch`, creation fails if the branch already exists, and Pane never renames it to make it unique. `--worktree-name` still names the directory and defaults to `--name`. `--base` is an alias for `--base-branch`, and `--prompt-file` for `--initial-input-file`. `panes create --base <ref> --branch <name> --prompt-file <file>` replaces `git worktree add` plus `panes adopt`. When the base is a remote-tracking branch (the default `origin/main`, or one named with `--base`), Pane fetches it first, waiting at most about 10 seconds, so the Pane starts at the remote's current tip. Each created item reports `base` (`ref`, `commit`, `refresh`); if the fetch fails the Pane still starts, from the local ref, and `base.notice` says so and how to catch up.", "`runpane panes adopt --launch` accepts `--prompt`, `--prompt-file`, `--wait-ready`, and `--ready-timeout-ms`, and reports `readiness`, `initialInput`, and `nextCommand` like `panes create`. A prompt without `--launch` is an error rather than being dropped.", "If composer submission cannot be verified without risking a duplicate, the create item is unsuccessful with `initialInput.staged`, `initialInput.attempts`, `initialInput.blocked.kind: submission_unverified`, and an actionable `nextCommand`. The CLI-facing `--prompt` alias maps to this canonical `initialInput` result.", "When running from WSL while Pane is installed on Windows, a Linux-installed runpane cannot reach Pane: it looks for a missing `/tmp/pane-daemon.../daemon.sock`. Pane's own `runpane` (on PATH in Pane's WSL terminals, or `/mnt/c/Users/<you>/.pane/bin/runpane` from any WSL shell) runs the Windows CLI through WSL interop and converts path arguments. With a Pane build older than that shim, invoke the Windows wrapper through PowerShell from a Windows cwd, for example `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.", "`runpane watch` waits for agent, Pane, panel, and PR events from the daemon journal without polling. `--follow` keeps watching with defaults tuned for an agent watching unattended (quiet, batched, and it ends itself after 3 hours with nothing happening); individual duration flags override these defaults. Cadence requires a named follow consumer; `--follow --since <generation>` has no consumer name and bypasses settling and batching. `--until-event` waits for one event worth waking for, prints it immediately without follow settling or batching, and exits 0. The defaults are listed in the contract under defaults.watch.", "A watch releases its pending slot when its client socket or named pipe disconnects. Re-arming the same named cursor takes over the previous request; the superseded watcher exits with a WATCH ERROR instead of competing for the cursor. Anonymous concurrent watchers retain the eight-wait limit. Each request also has a 125-second lease (slightly longer than the maximum 120-second long poll), so an abandoned request is reclaimed even if no disconnect arrives.", "The desktop app treats one consumer name specially: while a `runpane watch --as dictate` request is in flight, and for 30 seconds after the last one ends, Pane skips its own \"needs your input\" and \"finished\" desktop notifications, because [Dictate](https://github.com/parsakhaz/open-dictate) shows those events on its pill. When that watcher stops, Pane's notifications come back. The CLI's flags and output are unchanged.", "`sessions list` list durable named orchestration Sessions.", "`sessions create` create a durable named orchestration Session and its hidden terminal owner.", "`sessions get` read one durable named orchestration Session.", "`sessions update` update a Session overview from structured JSON.", "`sessions pin` and `sessions unpin` set the Session pin star through the existing UI update path. Create JSON accepts `isPinned` (default false); update JSON preserves the pin when the field is omitted.", "`sessions set-agent` switch the durable terminal agent for a named Session.", "`sessions associate` associate a user-visible Pane with a named Session.", "`sessions detach` detach a Pane from a named Session.", "`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.", "`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.", "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).", "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.", "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.", "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on). `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input in its tabs or the last time the person selected it; `panels list` reports each tab's `paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.", "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane pr watch`: Register durable GitHub PR monitoring for a Pane.", "`runpane pr unwatch`: Remove a Pane’s explicit PR registration.", "`runpane pr list`: List PR registrations and stopped watches."];
1942
+ 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 conversation --conversation <id> --source resume --json", "runpane panels close --panel <panel-id> --yes --json", "runpane panels resume --panel <panel-id> --wait-ready --yes --json", "runpane panels resume --session <id|name> --wait-ready --yes --json", "runpane panes pause --pane <pane-id> --yes --json", "runpane panes resume --pane <pane-id> --yes --json", "runpane docs search --query \"archive a pane\" --json", "runpane links create --pane <pane-id> --json", "runpane panes git-status --pane <pane-id> --json", "runpane help", "runpane <command> --help", "runpane watch --until-event", "runpane watch --follow", "runpane watch --session <id|name> --follow", "runpane watch --session <id|name> --follow --ready-settle 1m --blocked-settle 15s --min-interval 2m", "runpane pr watch [--pane <id>] --url <PR URL> [--head <full-sha>] [--json] [--pane-dir <path>]", "runpane pr unwatch [--pane <id>] --url <PR URL> [--json] [--pane-dir <path>]", "runpane pr list [--pane <id>] [--json] [--pane-dir <path>]"];
1943
+ 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), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab): the reply may answer the question or ask one. `runpane notify --took <id|Q-n> answer` records it as the answer; `--took <id|Q-n> question [--status <text>]` shows that the agent is getting more context, and `runpane notify --update <id|Q-n> --asked <text> --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.", "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.", "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.", "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.", "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.", "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. 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.", "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.", "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.", "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.", "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.", "`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session resumes the sender's conversation when first opened. The receiver reports back to the sender's panel.", "`runpane 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."];
1775
1944
  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.";
1776
1945
  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 ...'`.";
1777
1946
  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.";
@@ -1779,7 +1948,7 @@ export declare const RUNPANE_CONTRACT: {
1779
1948
  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."];
1780
1949
  };
1781
1950
  readonly testFixtures: {
1782
- readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--heartbeat", "60s", "--idle-after", "600000", "--ready-settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--expire-after", "10800000", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"], readonly ["watch", "--follow", "--json", "--pane-dir", "/tmp/pane"], readonly ["watch", "--follow"], readonly ["watch", "--session", "__orchestration_session_1b4e28ba-2fa1-11d2-883f-0016d3cca427__", "--follow", "--json", "--kinds", "agent.ready,agent.blocked,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged", "--ready-settle", "180000"], readonly ["watch", "--session=Release train", "--as", "release-watch", "--exclude-pane", "pane-old"], readonly ["agent-context", "--command", "panes create", "--json", "--pane-dir", "/tmp/pane"], readonly ["agent-context", "--pane-dir=/tmp/pane"], readonly ["version", "--pane-dir", "/tmp/pane"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--agent", "claude", "--base-branch", "origin/release", "--source", "agent", "--no-focus", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--tool-command", "wrapper codex-run", "--wait-ready", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "farm", "--tool-command", "agent-farm run free-range", "--agent", "claude", "--prompt", "Plan", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "brief.md", "--as-file-pointer", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "long", "--agent", "claude", "--initial-input-file", "brief.md", "--as-file-pointer", "--dry-run", "--yes", "--json"], readonly ["report", "--state", "ready", "--pr", "747", "--head", "FC5DCE9", "--summary", "Done: tests pass", "--json"], readonly ["report", "--state", "blocked", "--question", "Which API version?", "--pane", "session-1", "--panel", "panel-1", "--summary-file", "-"], readonly ["report", "--state=done", "--summary-file=/tmp/report.md", "--pane-dir", "/tmp/pane"], readonly ["panels", "resume", "--all-stopped", "--wait-ready", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "resume", "--panel", "panel-1", "--wait-ready", "--ready-timeout-ms", "45000", "--yes", "--json"], readonly ["panels", "last-message", "--panel", "panel-1", "--limit", "5000", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--base", "release/foo", "--branch", "agents/w5a", "--agent", "claude", "--prompt-file", "prompt.md", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5b", "--base-branch", "origin/main", "--branch", "agents/w5b", "--worktree-name", "w5b-dir", "--tool-command", "bash", "--initial-input-file", "-", "--dry-run", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--remove-worktree", "--yes", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--dry-run", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--remove-worktree", "--yes"], readonly ["lock", "acquire", "--name", "testing-account", "--ttl", "30m", "--wait", "1800000", "--note", "call QA", "--json"], readonly ["lock", "acquire", "--name", "staging-db", "--ttl", "1500", "--pane", "session-1", "--panel", "panel-1", "--pane-dir", "/tmp/pane"], readonly ["lock", "acquire", "--name=db", "--ttl=2h"], readonly ["lock", "release", "--name", "testing-account", "--force", "--session", "Release QA", "--json"], readonly ["lock", "list", "--session", "Release QA", "--json"], readonly ["lock", "--help"], readonly ["panels", "open", "--pane", "session-1", "--file", "plan.html", "--title", "Plan", "--split", "--no-focus", "--source", "agent", "--yes", "--json"], readonly ["panels", "open", "--url", "http://localhost:3000", "--tab", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "correction", "--interrupt", "--yes", "--json"], readonly ["repos", "get", "--repo", "Pane", "--json"], readonly ["repos", "update", "--repo", "Pane", "--build-script", "pnpm install", "--run-script", "pnpm dev", "--worktree-folder", "../wt", "--clear", "archive-script,system-prompt", "--yes", "--dry-run", "--json"], readonly ["watch", "--as", "orch", "--until-event", "--json", "--kinds", "agent.report,agent.blocked,panel.exited,pane.gone", "--timeout-ms", "600000"], readonly ["pr", "watch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "unwatch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "list", "--pane", "worker"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "0"], readonly ["watch", "--until-event", "--timeout-ms", "30s"], readonly ["watch", "--timeout-ms", "off"], readonly ["watch", "--since", "42", "--epoch", "test-epoch", "--until-event", "--json"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "off"], readonly ["watch", "--follow", "--ready-settle", "5s", "--blocked-settle", "2s", "--min-interval", "1m", "--idle-after", "20m", "--expire-after", "off", "--heartbeat", "30s"], readonly ["watch", "--follow", "--since", "42", "--epoch", "test-epoch"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "go", "--expect-report", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "claude", "--expect-report", "--yes"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "codex", "--expect-report", "--yes"], readonly ["inbox", "--session", "Release", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "in-5e6f7a8b", "--session", "Release", "--json"], readonly ["inbox", "ack", "--all", "--session", "Release"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "fyi", "--no-expect-report", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "prompt.md", "--as-file-pointer", "--wait", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "Red", "--wait", "--timeout", "30m", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "claude", "--prompt-file", "task.md", "--wait", "--yes"], readonly ["lock", "acquire", "--name", "deploy", "--wait", "5000"], readonly ["loops", "create", "--repo", "active", "--name", "nightly", "--cron", "0 3 * * *", "--agent", "claude", "--prompt", "Sweep bugs", "--worktree-name", "nightly-sweep", "--paused", "--dry-run", "--yes", "--json"], readonly ["loops", "create", "--repo=2", "--name=deps", "--cron=0 9 * * 1", "--tool-command", "./scripts/nightly-report.sh", "--prompt-file", "-"], readonly ["loops", "create", "--session", "new", "--name", "triage", "--cron", "0 9 * * 1-5", "--agent", "claude", "--prompt", "Triage", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--cron", "0 4 * * *", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--session", "Nightly", "--yes"], readonly ["loops", "run", "--loop=loop-1", "--yes", "--json"], readonly ["loops", "pause", "--loop", "loop-1", "--pane-dir", "/tmp/pane"], readonly ["loops", "list", "--json"], readonly ["loops", "--help"], readonly ["notify", "--ui", "options", "--title", "Ship it?", "--context", "Tests pass.", "--choices=[{\"label\":\"Yes\",\"recommended\":true},{\"label\":\"No\"}]", "--json"], readonly ["notify", "--ui=approve", "--title=Drop the table?", "--detail=DROP TABLE t;", "--detail-label=Show the SQL", "--pane-dir", "/tmp/pane"], readonly ["notify", "--ui", "ask", "--title", "Which branch?", "--suggestions=[\"main\"]"], readonly ["notify", "--ui", "info", "--title", "Done", "--action={\"label\":\"Open\",\"url\":\"https://example.com\"}"], readonly ["notify", "--resume", "n-1", "--json"], readonly ["secrets", "list", "--project", "stripe", "--json"], readonly ["secrets", "set", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes"], readonly ["secrets", "delete", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes", "--json"], readonly ["secrets", "exec", "--project", "stripe", "--only", "A,B", "--env", "KEY=STRIPE_SECRET_KEY", "--env=TOKEN=GH_TOKEN", "--file", "CERT", "--", "node", "-e", "run()", "--json"], readonly ["secrets", "exec", "--project", "qa", "sh", "-c", "echo ok"], readonly ["secrets", "request", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--title", "Stripe test key", "--reason", "- for the webhook tests", "--json"], readonly ["repos", "update", "--repo", "Pane", "--env", "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]", "--env-remove", "OLD,STALE", "--yes", "--json"]];
1951
+ readonly parserSamples: readonly [readonly ["setup"], readonly ["install"], readonly ["install", "client", "--version", "v2.2.8", "--format", "dmg", "--download-dir", "/tmp/pane-downloads", "--dry-run", "--yes"], readonly ["install", "daemon", "--label", "VM", "--prefer-tunnel", "ssh", "--channel", "nightly", "--base-url", "https://example.test", "--pane-dir", "/tmp/pane", "--listen-port", "4555", "--auto-listen-port", "--print-only", "--repo-ref", "main", "--unknown-future-flag", "future-value", "--dry-run", "--verbose"], readonly ["update", "--version", "latest", "--format", "appimage", "--pane-path", "/usr/bin/pane", "--dry-run"], readonly ["doctor", "--pane-path", "/usr/bin/pane", "--format", "zip", "--verbose"], readonly ["doctor", "--json", "--pane-dir", "/tmp/pane"], readonly ["doctor", "--report", "--title", "watch failed", "--body-file", "/tmp/watch-evidence.txt", "--json"], readonly ["watch", "--as", "monitor", "--from", "earliest", "--follow", "--heartbeat", "60s", "--idle-after", "600000", "--ready-settle", "180000", "--blocked-settle", "30000", "--min-interval", "600000", "--expire-after", "10800000", "--exclude-pane", "pane-old", "--kinds", "agent.ready,agent.idle", "--include-held-input", "--self-test"], readonly ["daemon", "repair", "--pane-dir", "/tmp/pane-remote", "--yes", "--json"], readonly ["agent-context"], readonly ["agent-context", "--command", "panes create", "--json"], readonly ["repos", "list", "--json", "--pane-dir", "/tmp/pane"], readonly ["repos", "add", "--path", "/tmp/repo", "--name", "Repo", "--dry-run", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panes", "list", "--repo", "active", "--json"], readonly ["panes", "cost", "--pane", "session-1", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--pinned", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "issue-252", "--agent", "codex", "--prompt", "Kick off discussion", "--source", "agent", "--no-pinned", "--no-associate", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--from-json", "-", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--force", "--source", "agent", "--yes", "--json"], readonly ["panes", "pin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "unpin", "--pane", "session-1", "--yes", "--json"], readonly ["panes", "rename", "--pane", "session-1", "--name", "issue-393", "--yes", "--json"], readonly ["panes", "focus", "--pane", "session-1", "--panel", "panel-1", "--source", "user", "--yes", "--json"], readonly ["panels", "list", "--pane", "session-1", "--json"], readonly ["panels", "output", "--panel", "panel-1", "--limit", "200", "--json"], readonly ["panels", "input", "--panel", "panel-1", "--text", "Continue\\n", "--yes", "--json"], readonly ["--version"], readonly ["agents", "doctor", "--agent", "codex", "--repo", "active", "--json"], readonly ["panes", "create", "--from-json", "-", "--source", "agent", "--focus", "--wait-ready", "--ready-timeout-ms", "45000", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "screen", "--panel", "panel-1", "--limit", "80", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "2", "--yes", "--json"], readonly ["panels", "wait", "--panel", "panel-1", "--for", "text", "--contains", "ready", "--timeout-ms", "30000", "--interval-ms", "500", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--source", "agent", "--no-focus", "--wait-ready", "--ready-timeout-ms", "15000", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--focus", "--yes", "--json"], readonly ["panels", "submit-composer", "--panel", "panel-1", "--strategy", "auto", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--yes", "--json"], readonly ["sessions", "list", "--json"], readonly ["sessions", "get", "--session", "demo", "--json"], readonly ["sessions", "update", "--session", "demo", "--from-json", "-"], readonly ["panels", "submit", "--panel=panel-1", "--text=- [ ] item", "--yes", "--json"], readonly ["panes", "commit", "--pane", "pane-1", "--message", "fix: title\n\nbody", "--yes", "--json"], readonly ["links", "create", "--pane", "pane-1", "--panel", "panel-1", "--json"], readonly ["links", "open", "--url=pane://open?pane=pane-1", "--yes"], readonly ["mcp", "--toolsets", "core,git", "--read-only"], readonly ["docs", "search", "--query", "archive a pane", "--limit", "3"], readonly ["docs", "read", "--doc", "docs/PANE_MCP.md"], readonly ["agents", "start", "--repo", "active", "--name", "fix-login", "--agent", "claude", "--prompt", "Fix the login redirect", "--yes", "--json"], readonly ["agents", "send", "--pane", "pane-1", "--text=- [ ] item", "--yes"], readonly ["panels", "input", "--panel", "panel-1", "--keys", "down,enter", "--yes", "--json"], readonly ["panes", "squash-rebase", "--pane", "pane-1", "--message", "feat: land it", "--yes", "--json"], readonly ["folders", "create", "--repo", "3", "--name", "Reviews", "--yes"], readonly ["panes", "move", "--pane", "pane-1", "--folder", "folder-9", "--yes", "--json"], readonly ["watch", "--follow", "--json", "--pane-dir", "/tmp/pane"], readonly ["watch", "--follow"], readonly ["watch", "--session", "__orchestration_session_1b4e28ba-2fa1-11d2-883f-0016d3cca427__", "--follow", "--json", "--kinds", "agent.ready,agent.blocked,pane.associated,pane.detached,pr.conflicted,pr.checks,pr.merged", "--ready-settle", "180000"], readonly ["watch", "--session=Release train", "--as", "release-watch", "--exclude-pane", "pane-old"], readonly ["agent-context", "--command", "panes create", "--json", "--pane-dir", "/tmp/pane"], readonly ["agent-context", "--pane-dir=/tmp/pane"], readonly ["version", "--pane-dir", "/tmp/pane"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--agent", "claude", "--base-branch", "origin/release", "--source", "agent", "--no-focus", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "codex", "--tool-command", "wrapper codex-run", "--wait-ready", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "farm", "--tool-command", "agent-farm run free-range", "--agent", "claude", "--prompt", "Plan", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "brief.md", "--as-file-pointer", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "long", "--agent", "claude", "--initial-input-file", "brief.md", "--as-file-pointer", "--dry-run", "--yes", "--json"], readonly ["report", "--state", "ready", "--pr", "747", "--head", "FC5DCE9", "--summary", "Done: tests pass", "--json"], readonly ["report", "--state", "blocked", "--question", "Which API version?", "--pane", "session-1", "--panel", "panel-1", "--summary-file", "-"], readonly ["report", "--state=done", "--summary-file=/tmp/report.md", "--pane-dir", "/tmp/pane"], readonly ["panels", "resume", "--all-stopped", "--wait-ready", "--concurrency", "2", "--yes", "--json"], readonly ["panels", "resume", "--panel", "panel-1", "--wait-ready", "--ready-timeout-ms", "45000", "--yes", "--json"], readonly ["panels", "last-message", "--panel", "panel-1", "--limit", "5000", "--json"], readonly ["panels", "conversation", "--conversation", "0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44", "--source", "resume", "--panel", "panel-1", "--pane", "session-1", "--json"], readonly ["panels", "conversation", "--conversation=abc", "--source=compact", "--pane-dir", "/tmp/pane"], readonly ["panels", "conversation", "--hook"], readonly ["panes", "create", "--repo", "active", "--name", "w5a", "--base", "release/foo", "--branch", "agents/w5a", "--agent", "claude", "--prompt-file", "prompt.md", "--dry-run", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "w5b", "--base-branch", "origin/main", "--branch", "agents/w5b", "--worktree-name", "w5b-dir", "--tool-command", "bash", "--initial-input-file", "-", "--dry-run", "--yes", "--json"], readonly ["panes", "archive", "--pane", "session-1", "--remove-worktree", "--yes", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--dry-run", "--json"], readonly ["panes", "archive", "--session", "refactor", "--merged", "--remove-worktree", "--yes"], readonly ["lock", "acquire", "--name", "testing-account", "--ttl", "30m", "--wait", "1800000", "--note", "call QA", "--json"], readonly ["lock", "acquire", "--name", "staging-db", "--ttl", "1500", "--pane", "session-1", "--panel", "panel-1", "--pane-dir", "/tmp/pane"], readonly ["lock", "acquire", "--name=db", "--ttl=2h"], readonly ["lock", "release", "--name", "testing-account", "--force", "--session", "Release QA", "--json"], readonly ["lock", "list", "--session", "Release QA", "--json"], readonly ["lock", "--help"], readonly ["panels", "open", "--pane", "session-1", "--file", "plan.html", "--title", "Plan", "--split", "--no-focus", "--source", "agent", "--yes", "--json"], readonly ["panels", "open", "--url", "http://localhost:3000", "--tab", "--yes", "--json"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "correction", "--interrupt", "--yes", "--json"], readonly ["repos", "get", "--repo", "Pane", "--json"], readonly ["repos", "update", "--repo", "Pane", "--build-script", "pnpm install", "--run-script", "pnpm dev", "--worktree-folder", "../wt", "--clear", "archive-script,system-prompt", "--yes", "--dry-run", "--json"], readonly ["watch", "--as", "orch", "--until-event", "--json", "--kinds", "agent.report,agent.blocked,panel.exited,pane.gone", "--timeout-ms", "600000"], readonly ["pr", "watch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "unwatch", "--pane", "worker", "--url", "https://github.com/acme/app/pull/7"], readonly ["pr", "list", "--pane", "worker"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "0"], readonly ["watch", "--until-event", "--timeout-ms", "30s"], readonly ["watch", "--timeout-ms", "off"], readonly ["watch", "--since", "42", "--epoch", "test-epoch", "--until-event", "--json"], readonly ["watch", "--follow", "--ready-settle", "5s", "--expire-after", "off"], readonly ["watch", "--follow", "--ready-settle", "5s", "--blocked-settle", "2s", "--min-interval", "1m", "--idle-after", "20m", "--expire-after", "off", "--heartbeat", "30s"], readonly ["watch", "--follow", "--since", "42", "--epoch", "test-epoch"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "go", "--expect-report", "--yes", "--json"], readonly ["panels", "create", "--pane", "pane-1", "--agent", "claude", "--expect-report", "--yes"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "codex", "--expect-report", "--yes"], readonly ["inbox", "--session", "Release", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "in-5e6f7a8b", "--session", "Release", "--json"], readonly ["inbox", "ack", "--all", "--session", "Release"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "fyi", "--no-expect-report", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--input-file", "prompt.md", "--as-file-pointer", "--wait", "--yes"], readonly ["panels", "submit", "--panel", "panel-1", "--text", "Red", "--wait", "--timeout", "30m", "--yes", "--json"], readonly ["panes", "create", "--repo", "active", "--name", "feat", "--agent", "claude", "--prompt-file", "task.md", "--wait", "--yes"], readonly ["lock", "acquire", "--name", "deploy", "--wait", "5000"], readonly ["loops", "create", "--repo", "active", "--name", "nightly", "--cron", "0 3 * * *", "--agent", "claude", "--prompt", "Sweep bugs", "--worktree-name", "nightly-sweep", "--paused", "--dry-run", "--yes", "--json"], readonly ["loops", "create", "--repo=2", "--name=deps", "--cron=0 9 * * 1", "--tool-command", "./scripts/nightly-report.sh", "--prompt-file", "-"], readonly ["loops", "create", "--session", "new", "--name", "triage", "--cron", "0 9 * * 1-5", "--agent", "claude", "--prompt", "Triage", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--cron", "0 4 * * *", "--yes"], readonly ["loops", "update", "--loop", "loop-1", "--session", "Nightly", "--yes"], readonly ["loops", "run", "--loop=loop-1", "--yes", "--json"], readonly ["loops", "pause", "--loop", "loop-1", "--pane-dir", "/tmp/pane"], readonly ["loops", "list", "--json"], readonly ["loops", "--help"], readonly ["notify", "--ui", "options", "--title", "Ship it?", "--context", "Tests pass.", "--choices=[{\"label\":\"Yes\",\"recommended\":true},{\"label\":\"No\"}]", "--json"], readonly ["notify", "--ui=approve", "--title=Drop the table?", "--detail=DROP TABLE t;", "--detail-label=Show the SQL", "--pane-dir", "/tmp/pane"], readonly ["notify", "--ui", "ask", "--title", "Which branch?", "--suggestions=[\"main\"]"], readonly ["notify", "--ui", "info", "--title", "Done", "--action={\"label\":\"Open\",\"url\":\"https://example.com\"}"], readonly ["notify", "--ui", "approve", "--title", "Ship the notes?", "--links=[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR\",\"url\":\"https://example.com/pr/1\"}]"], readonly ["notify", "--resume", "n-1", "--json"], readonly ["secrets", "list", "--project", "stripe", "--json"], readonly ["secrets", "set", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes"], readonly ["secrets", "delete", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--yes", "--json"], readonly ["secrets", "exec", "--project", "stripe", "--only", "A,B", "--env", "KEY=STRIPE_SECRET_KEY", "--env=TOKEN=GH_TOKEN", "--file", "CERT", "--", "node", "-e", "run()", "--json"], readonly ["secrets", "exec", "--project", "qa", "sh", "-c", "echo ok"], readonly ["secrets", "request", "--project", "stripe", "--name", "STRIPE_SECRET_KEY", "--title", "Stripe test key", "--reason", "- for the webhook tests", "--json"], readonly ["repos", "update", "--repo", "Pane", "--env", "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]", "--env-remove", "OLD,STALE", "--yes", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--dry-run", "--json"], readonly ["panels", "close", "--panel", "panel-1", "--source", "agent", "--yes", "--json", "--pane-dir", "/tmp/pane"], readonly ["panels", "close", "--panel", "panel-1", "--force", "--yes", "--json"], readonly ["panes", "archive", "--session", "session-a", "--merged", "--closed", "--dry-run", "--json"], readonly ["autopilot", "status", "--json"], readonly ["autopilot", "waiting"], readonly ["autopilot", "stack", "--json"], readonly ["autopilot", "stack", "push", "--item", "n-1", "--note", "Needs a go", "--next", "--json"], readonly ["autopilot", "stack", "push", "--file", "/tmp/plan.html", "--title", "Plan", "--tab", "https://localhost:5173", "--tab=/tmp/notes.md"], readonly ["autopilot", "stack", "push", "--session", "Release"], readonly ["watch", "--as", "autopilot", "--kinds", "item.created,item.answered,session.created,session.archived,orchestrator.turn_ended", "--until-event", "--json"], readonly ["inbox", "ack", "in-1a2b3c4d", "--decision", "D-147", "--json"], readonly ["notify", "--relays", "in-1a2b3c4d", "--ui", "ask", "--title", "Q-39: Run it?"], readonly ["notify", "--ui", "ask", "--title", "Which?", "--about-session=Release", "--json"], readonly ["autopilot", "answer", "n-1", "--choice", "Yes", "--note", "Go", "--because", "D-22", "--json"], readonly ["autopilot", "answer", "n-1", "--approve", "--because=The person said so"], readonly ["autopilot", "answer", "n-1", "--deny", "--because", "D-23"], readonly ["autopilot", "answer", "n-1", "--text", "main", "--because", "D-24"], readonly ["autopilot", "close", "n-1", "--reason", "The PR merged", "--json"], readonly ["autopilot", "rewrite", "n-1", "--ui", "options", "--title", "Q-3: Which?", "--context", "Why", "--choices=[{\"label\":\"A\"}]", "--links=[{\"label\":\"Notes\",\"url\":\"https://example.com\"}]", "--json"], readonly ["notify", "--took", "Q-20", "answer", "--json"], readonly ["notify", "--took=n-1", "question", "--status", "Checking the logs", "--json"], readonly ["notify", "--took", "Q-20", "--took-as", "answer"], readonly ["notify", "--update", "Q-20", "--asked", "Can it be undone?", "--what-changed", "- Added: it can be undone", "--questions", "[{\"title\":\"A\",\"choices\":[{\"label\":\"x\"}]},{\"title\":\"B\",\"choices\":[{\"label\":\"y\"}]}]", "--json"]];
1783
1952
  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:"];
1784
1953
  readonly npmHelpIncludes: readonly ["pnpm dlx runpane@latest", "npx --yes runpane@latest", "runpane loops list"];
1785
1954
  readonly pipHelpIncludes: readonly ["pipx run runpane", "python -m pip install runpane && python -m runpane setup", "python -m runpane loops list"];
@@ -2954,6 +3123,10 @@ export declare const RUNPANE_CONTRACT: {
2954
3123
  readonly source: {
2955
3124
  readonly enum: readonly ["user", "agent"];
2956
3125
  };
3126
+ readonly callerPanelId: {
3127
+ readonly type: "string";
3128
+ 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.";
3129
+ };
2957
3130
  readonly associateSession: {
2958
3131
  readonly type: "string";
2959
3132
  readonly description: "Session id to associate each created Pane with; the CLI sets it from PANE_ORCHESTRATION_SESSION_ID unless --no-associate.";
@@ -3644,7 +3817,7 @@ export declare const RUNPANE_CONTRACT: {
3644
3817
  readonly type: "string";
3645
3818
  };
3646
3819
  readonly kind: {
3647
- readonly enum: readonly ["agent.ready", "agent.busy", "agent.blocked", "agent.unknown", "agent.idle", "pane.created", "pane.gone", "panel.exited", "panel.stopped", "panel.paused", "panel.unpaused", "agent.report", "agent.report.missing", "pane.associated", "pane.detached", "pr.conflicted", "pr.checks", "pr.merged", "pr.closed", "pr.head", "pr.base_changed", "pr.base_deleted", "pr.review", "pr.comment", "pr.stopped", "github.unavailable", "github.recovered"];
3820
+ 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"];
3648
3821
  };
3649
3822
  readonly paneId: {
3650
3823
  readonly type: "string";
@@ -3819,6 +3992,10 @@ export declare const RUNPANE_CONTRACT: {
3819
3992
  };
3820
3993
  readonly description: "The screen lines of the prompt an agent.blocked entry's agent waits on (at most 20).";
3821
3994
  };
3995
+ readonly itemId: {
3996
+ readonly type: "string";
3997
+ readonly description: "The Notify item of an item.created or item.answered entry; `runpane autopilot stack push --item <id>` takes it.";
3998
+ };
3822
3999
  };
3823
4000
  readonly additionalProperties: false;
3824
4001
  };
@@ -4545,6 +4722,20 @@ export declare const RUNPANE_CONTRACT: {
4545
4722
  readonly paused: {
4546
4723
  readonly $ref: "#/jsonSchemas/pausedMark";
4547
4724
  };
4725
+ readonly openedBy: {
4726
+ readonly type: "object";
4727
+ 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.";
4728
+ readonly required: readonly ["source"];
4729
+ readonly properties: {
4730
+ readonly source: {
4731
+ readonly enum: readonly ["agent", "user"];
4732
+ };
4733
+ readonly panelId: {
4734
+ readonly type: "string";
4735
+ };
4736
+ };
4737
+ readonly additionalProperties: false;
4738
+ };
4548
4739
  };
4549
4740
  readonly additionalProperties: false;
4550
4741
  };
@@ -4774,7 +4965,7 @@ export declare const RUNPANE_CONTRACT: {
4774
4965
  readonly type: "string";
4775
4966
  };
4776
4967
  readonly source: {
4777
- readonly enum: readonly ["alternateScreen", "scrollback", "persistedOutput", "empty"];
4968
+ readonly enum: readonly ["alternateScreen", "scrollback", "persistedOutput", "empty", "acpTranscript"];
4778
4969
  };
4779
4970
  readonly limit: {
4780
4971
  readonly type: "number";
@@ -5490,6 +5681,61 @@ export declare const RUNPANE_CONTRACT: {
5490
5681
  readonly additionalProperties: false;
5491
5682
  }];
5492
5683
  };
5684
+ readonly panelConversationRequest: {
5685
+ readonly type: "object";
5686
+ readonly description: "What runpane panels conversation sends the daemon (runpane:panels:conversation).";
5687
+ readonly required: readonly ["panelId", "conversationId"];
5688
+ readonly properties: {
5689
+ readonly panelId: {
5690
+ readonly type: "string";
5691
+ readonly minLength: 1;
5692
+ };
5693
+ readonly paneId: {
5694
+ readonly type: "string";
5695
+ readonly minLength: 1;
5696
+ };
5697
+ readonly conversationId: {
5698
+ readonly type: "string";
5699
+ readonly minLength: 1;
5700
+ readonly maxLength: 256;
5701
+ };
5702
+ readonly source: {
5703
+ readonly enum: readonly ["startup", "resume", "clear", "compact"];
5704
+ readonly description: "What started the conversation, as Claude Code's SessionStart hook names it.";
5705
+ };
5706
+ };
5707
+ readonly additionalProperties: false;
5708
+ };
5709
+ readonly panelConversationResult: {
5710
+ readonly type: "object";
5711
+ readonly required: readonly ["ok", "paneId", "panelId", "conversationId", "sure"];
5712
+ readonly properties: {
5713
+ readonly ok: {
5714
+ readonly const: true;
5715
+ };
5716
+ readonly paneId: {
5717
+ readonly type: "string";
5718
+ };
5719
+ readonly panelId: {
5720
+ readonly type: "string";
5721
+ };
5722
+ readonly conversationId: {
5723
+ readonly type: "string";
5724
+ };
5725
+ readonly source: {
5726
+ readonly enum: readonly ["startup", "resume", "clear", "compact"];
5727
+ readonly description: "What started the conversation, as Claude Code's SessionStart hook names it.";
5728
+ };
5729
+ readonly sure: {
5730
+ readonly type: "boolean";
5731
+ readonly description: "True when this report came since the panel's agent started, so Pane knows the panel is on this conversation.";
5732
+ };
5733
+ readonly generation: {
5734
+ readonly type: "number";
5735
+ };
5736
+ };
5737
+ readonly additionalProperties: false;
5738
+ };
5493
5739
  readonly agentDoctorResult: {
5494
5740
  readonly type: "object";
5495
5741
  readonly required: readonly ["ok", "agent", "command", "available", "checks"];
@@ -5569,6 +5815,10 @@ export declare const RUNPANE_CONTRACT: {
5569
5815
  readonly source: {
5570
5816
  readonly enum: readonly ["user", "agent"];
5571
5817
  };
5818
+ readonly callerPanelId: {
5819
+ readonly type: "string";
5820
+ 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.";
5821
+ };
5572
5822
  readonly waitReady: {
5573
5823
  readonly type: "boolean";
5574
5824
  };
@@ -5770,6 +6020,10 @@ export declare const RUNPANE_CONTRACT: {
5770
6020
  readonly source: {
5771
6021
  readonly enum: readonly ["user", "agent"];
5772
6022
  };
6023
+ readonly callerPanelId: {
6024
+ readonly type: "string";
6025
+ 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.";
6026
+ };
5773
6027
  };
5774
6028
  readonly additionalProperties: false;
5775
6029
  };
@@ -5810,6 +6064,90 @@ export declare const RUNPANE_CONTRACT: {
5810
6064
  };
5811
6065
  readonly additionalProperties: false;
5812
6066
  };
6067
+ readonly panelCloseRequest: {
6068
+ readonly type: "object";
6069
+ readonly required: readonly ["panelId"];
6070
+ readonly properties: {
6071
+ readonly panelId: {
6072
+ readonly type: "string";
6073
+ };
6074
+ readonly dryRun: {
6075
+ readonly type: "boolean";
6076
+ readonly description: "Report whether the tab would close, and why not, without closing it.";
6077
+ };
6078
+ readonly force: {
6079
+ readonly type: "boolean";
6080
+ 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.";
6081
+ };
6082
+ readonly source: {
6083
+ readonly enum: readonly ["user", "agent"];
6084
+ };
6085
+ };
6086
+ readonly additionalProperties: false;
6087
+ };
6088
+ readonly panelCloseResult: {
6089
+ readonly type: "object";
6090
+ readonly required: readonly ["ok", "panelId", "closed"];
6091
+ readonly properties: {
6092
+ readonly ok: {
6093
+ readonly type: "boolean";
6094
+ readonly description: "False when the close was refused (the tab stays open); the CLI exits 1.";
6095
+ };
6096
+ readonly generation: {
6097
+ readonly type: "number";
6098
+ };
6099
+ readonly paneId: {
6100
+ readonly type: "string";
6101
+ readonly description: "Omitted only when the tab was already gone.";
6102
+ };
6103
+ readonly panelId: {
6104
+ readonly type: "string";
6105
+ };
6106
+ readonly type: {
6107
+ readonly type: "string";
6108
+ readonly description: "The tab's type, such as terminal, chat, browser or editor. Omitted only when the tab was already gone.";
6109
+ };
6110
+ readonly title: {
6111
+ readonly type: "string";
6112
+ };
6113
+ readonly closed: {
6114
+ readonly type: "boolean";
6115
+ };
6116
+ readonly forced: {
6117
+ readonly type: "boolean";
6118
+ readonly description: "Closed with --force, skipping the checks that would have kept it.";
6119
+ };
6120
+ readonly alreadyClosed: {
6121
+ readonly type: "boolean";
6122
+ readonly description: "No tab has this id: it was closed already.";
6123
+ };
6124
+ readonly dryRun: {
6125
+ readonly type: "boolean";
6126
+ };
6127
+ readonly wouldClose: {
6128
+ readonly type: "boolean";
6129
+ readonly description: "Dry run only: whether the close would go ahead.";
6130
+ };
6131
+ readonly refused: {
6132
+ readonly type: "object";
6133
+ 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.";
6134
+ readonly required: readonly ["code", "message", "next"];
6135
+ readonly properties: {
6136
+ readonly code: {
6137
+ readonly enum: readonly ["opened-by-user", "permanent", "agent-busy", "unsent-input", "input-unknown"];
6138
+ };
6139
+ readonly message: {
6140
+ readonly type: "string";
6141
+ };
6142
+ readonly next: {
6143
+ readonly type: "string";
6144
+ };
6145
+ };
6146
+ readonly additionalProperties: false;
6147
+ };
6148
+ };
6149
+ readonly additionalProperties: false;
6150
+ };
5813
6151
  readonly panelSubmitComposerRequest: {
5814
6152
  readonly type: "object";
5815
6153
  readonly required: readonly ["panelId"];
@@ -5882,42 +6220,6 @@ export declare const RUNPANE_CONTRACT: {
5882
6220
  };
5883
6221
  readonly additionalProperties: false;
5884
6222
  };
5885
- readonly panelCloseRequest: {
5886
- readonly type: "object";
5887
- readonly required: readonly ["panelId"];
5888
- readonly properties: {
5889
- readonly panelId: {
5890
- readonly type: "string";
5891
- };
5892
- };
5893
- readonly additionalProperties: false;
5894
- };
5895
- readonly panelCloseResult: {
5896
- readonly type: "object";
5897
- readonly required: readonly ["ok", "paneId", "panelId", "type", "title"];
5898
- readonly properties: {
5899
- readonly ok: {
5900
- readonly const: true;
5901
- };
5902
- readonly generation: {
5903
- readonly type: "number";
5904
- };
5905
- readonly paneId: {
5906
- readonly type: "string";
5907
- };
5908
- readonly panelId: {
5909
- readonly type: "string";
5910
- };
5911
- readonly type: {
5912
- readonly type: "string";
5913
- readonly description: "The closed tab's type, such as terminal, browser or editor.";
5914
- };
5915
- readonly title: {
5916
- readonly type: "string";
5917
- };
5918
- };
5919
- readonly additionalProperties: false;
5920
- };
5921
6223
  readonly sessionListResult: {
5922
6224
  readonly type: "object";
5923
6225
  readonly required: readonly ["ok", "sessions"];
@@ -6526,6 +6828,10 @@ export declare const RUNPANE_CONTRACT: {
6526
6828
  readonly merged: {
6527
6829
  readonly const: true;
6528
6830
  };
6831
+ readonly closed: {
6832
+ readonly type: "boolean";
6833
+ readonly description: "Also archive Panes whose PR closed without merging, with the same unsaved-work checks.";
6834
+ };
6529
6835
  readonly source: {
6530
6836
  readonly enum: readonly ["user", "agent"];
6531
6837
  };
@@ -6551,6 +6857,9 @@ export declare const RUNPANE_CONTRACT: {
6551
6857
  readonly merged: {
6552
6858
  readonly const: true;
6553
6859
  };
6860
+ readonly closed: {
6861
+ readonly const: true;
6862
+ };
6554
6863
  readonly dryRun: {
6555
6864
  readonly const: true;
6556
6865
  };
@@ -6736,32 +7045,81 @@ export declare const RUNPANE_CONTRACT: {
6736
7045
  readonly additionalProperties: false;
6737
7046
  };
6738
7047
  };
6739
- };
6740
- readonly additionalProperties: false;
6741
- };
6742
- readonly inboxAckResult: {
6743
- readonly type: "object";
6744
- readonly required: readonly ["ok", "acknowledged", "unknown"];
6745
- readonly properties: {
6746
- readonly ok: {
6747
- readonly const: true;
6748
- };
6749
- readonly acknowledged: {
6750
- readonly type: "array";
6751
- readonly items: {
6752
- readonly type: "string";
6753
- };
6754
- };
6755
- readonly unknown: {
7048
+ readonly answers: {
6756
7049
  readonly type: "array";
7050
+ readonly description: "The answers the Session's workers got, kept 7 days. Absent from an older Pane.";
6757
7051
  readonly items: {
6758
- readonly type: "string";
6759
- };
6760
- };
6761
- };
6762
- readonly additionalProperties: false;
6763
- };
6764
- readonly dispatchWaitResult: {
7052
+ readonly type: "object";
7053
+ readonly required: readonly ["id", "title", "answer", "by", "worker", "answeredAt"];
7054
+ readonly properties: {
7055
+ readonly id: {
7056
+ readonly type: "string";
7057
+ };
7058
+ readonly title: {
7059
+ readonly type: "string";
7060
+ };
7061
+ readonly answer: {
7062
+ readonly type: "string";
7063
+ };
7064
+ readonly by: {
7065
+ readonly enum: readonly ["you", "autopilot", "orchestrator", "pane"];
7066
+ readonly description: "Who answered.";
7067
+ };
7068
+ readonly because: {
7069
+ readonly type: "string";
7070
+ };
7071
+ readonly worker: {
7072
+ readonly type: "string";
7073
+ readonly description: "The worker that asked.";
7074
+ };
7075
+ readonly panelId: {
7076
+ readonly type: "string";
7077
+ };
7078
+ readonly answeredAt: {
7079
+ readonly type: "string";
7080
+ };
7081
+ readonly delivered: {
7082
+ readonly enum: readonly ["call", "tab"];
7083
+ readonly description: "How it reached the worker; absent while its tab is busy.";
7084
+ };
7085
+ readonly undelivered: {
7086
+ readonly type: "string";
7087
+ 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.";
7088
+ };
7089
+ readonly decision: {
7090
+ readonly type: "string";
7091
+ readonly description: "The D-n recorded for it; absent: run `runpane inbox ack <id> --decision <D-n>`.";
7092
+ };
7093
+ };
7094
+ readonly additionalProperties: false;
7095
+ };
7096
+ };
7097
+ };
7098
+ readonly additionalProperties: false;
7099
+ };
7100
+ readonly inboxAckResult: {
7101
+ readonly type: "object";
7102
+ readonly required: readonly ["ok", "acknowledged", "unknown"];
7103
+ readonly properties: {
7104
+ readonly ok: {
7105
+ readonly const: true;
7106
+ };
7107
+ readonly acknowledged: {
7108
+ readonly type: "array";
7109
+ readonly items: {
7110
+ readonly type: "string";
7111
+ };
7112
+ };
7113
+ readonly unknown: {
7114
+ readonly type: "array";
7115
+ readonly items: {
7116
+ readonly type: "string";
7117
+ };
7118
+ };
7119
+ };
7120
+ readonly additionalProperties: false;
7121
+ };
7122
+ readonly dispatchWaitResult: {
6765
7123
  readonly type: "object";
6766
7124
  readonly description: "What `--wait` prints, as one line: how the dispatched work ended. Exit codes: 0 report, 3 missing, 4 blocked, 5 exited or gone, 124 timeout. Exit 6 is indeterminate after journal replacement or history loss; inspect the panel and inbox before retrying.";
6767
7125
  readonly required: readonly ["ok", "outcome"];
@@ -7039,6 +7397,31 @@ export declare const RUNPANE_CONTRACT: {
7039
7397
  readonly type: "boolean";
7040
7398
  readonly description: "Shade this choice as the one you recommend.";
7041
7399
  };
7400
+ readonly was: {
7401
+ readonly type: "string";
7402
+ readonly minLength: 1;
7403
+ readonly description: "--update only: the label this choice had before it was reworded. A choice whose label stays but whose detail changed may repeat its label here.";
7404
+ };
7405
+ };
7406
+ readonly additionalProperties: false;
7407
+ };
7408
+ readonly notifySubQuestion: {
7409
+ readonly description: "One question of an options approval that asks several at once; the person picks one choice.";
7410
+ readonly type: "object";
7411
+ readonly required: readonly ["title", "choices"];
7412
+ readonly properties: {
7413
+ readonly title: {
7414
+ readonly type: "string";
7415
+ readonly minLength: 1;
7416
+ };
7417
+ readonly choices: {
7418
+ readonly type: "array";
7419
+ readonly minItems: 1;
7420
+ readonly maxItems: 9;
7421
+ readonly items: {
7422
+ readonly $ref: "#/jsonSchemas/notifyChoice";
7423
+ };
7424
+ };
7042
7425
  };
7043
7426
  readonly additionalProperties: false;
7044
7427
  };
@@ -7057,8 +7440,39 @@ export declare const RUNPANE_CONTRACT: {
7057
7440
  };
7058
7441
  readonly additionalProperties: false;
7059
7442
  };
7443
+ readonly notifyLink: {
7444
+ readonly description: "A related file, page or approval shown as a chip on the card: a label and exactly one of path, url or approval.";
7445
+ readonly type: "object";
7446
+ readonly required: readonly ["label"];
7447
+ readonly minProperties: 2;
7448
+ readonly maxProperties: 2;
7449
+ readonly properties: {
7450
+ readonly label: {
7451
+ readonly type: "string";
7452
+ readonly minLength: 1;
7453
+ readonly maxLength: 80;
7454
+ readonly description: "The chip's text.";
7455
+ };
7456
+ readonly path: {
7457
+ readonly type: "string";
7458
+ readonly minLength: 1;
7459
+ readonly description: "A file on the asking machine; a relative path resolves against the caller's working directory.";
7460
+ };
7461
+ readonly url: {
7462
+ readonly type: "string";
7463
+ readonly pattern: "^https?://\\S+$";
7464
+ readonly description: "An http or https page.";
7465
+ };
7466
+ readonly approval: {
7467
+ readonly type: "string";
7468
+ readonly minLength: 1;
7469
+ readonly description: "Another approval, by its id or Q-n; it opens in place, with Back.";
7470
+ };
7471
+ };
7472
+ readonly additionalProperties: false;
7473
+ };
7060
7474
  readonly notifyRequest: {
7061
- readonly description: "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, or resume alone. Only `secrets request` sends ui secret.";
7475
+ 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; resume alone; took with tookAs (and status); or update with asked, whatChanged and the changed fields. Only `secrets request` sends ui secret.";
7062
7476
  readonly type: "object";
7063
7477
  readonly required: readonly ["caller"];
7064
7478
  readonly properties: {
@@ -7080,6 +7494,15 @@ export declare const RUNPANE_CONTRACT: {
7080
7494
  readonly $ref: "#/jsonSchemas/notifyChoice";
7081
7495
  };
7082
7496
  };
7497
+ readonly questions: {
7498
+ readonly type: "array";
7499
+ readonly minItems: 2;
7500
+ readonly maxItems: 4;
7501
+ readonly items: {
7502
+ readonly $ref: "#/jsonSchemas/notifySubQuestion";
7503
+ };
7504
+ readonly description: "ui options, instead of choices: several questions, one pick each.";
7505
+ };
7083
7506
  readonly detail: {
7084
7507
  readonly type: "string";
7085
7508
  };
@@ -7113,10 +7536,56 @@ export declare const RUNPANE_CONTRACT: {
7113
7536
  };
7114
7537
  readonly additionalProperties: false;
7115
7538
  };
7539
+ readonly links: {
7540
+ readonly type: "array";
7541
+ readonly maxItems: 6;
7542
+ readonly items: {
7543
+ readonly $ref: "#/jsonSchemas/notifyLink";
7544
+ };
7545
+ };
7116
7546
  readonly resume: {
7117
7547
  readonly type: "string";
7118
7548
  readonly minLength: 1;
7119
7549
  };
7550
+ readonly took: {
7551
+ readonly type: "string";
7552
+ readonly minLength: 1;
7553
+ readonly description: "The approval (id or Q-n) whose reply the reader took; sent with tookAs and nothing but status.";
7554
+ };
7555
+ readonly tookAs: {
7556
+ readonly enum: readonly ["answer", "question"];
7557
+ readonly description: "answer records the reply as the answer; question shows the reader is getting more context.";
7558
+ };
7559
+ readonly status: {
7560
+ readonly type: "string";
7561
+ readonly minLength: 1;
7562
+ readonly description: "tookAs question: what the reader is doing, shown on the approval.";
7563
+ };
7564
+ readonly update: {
7565
+ readonly type: "string";
7566
+ readonly minLength: 1;
7567
+ readonly description: "The approval (id or Q-n) to save a new version of; the question fields sent replace those fields. No ui.";
7568
+ };
7569
+ readonly asked: {
7570
+ readonly type: "string";
7571
+ readonly minLength: 1;
7572
+ readonly description: "update: the person's question, as they typed it.";
7573
+ };
7574
+ readonly whatChanged: {
7575
+ readonly type: "string";
7576
+ readonly minLength: 1;
7577
+ readonly description: "update: what changed, one line per change.";
7578
+ };
7579
+ readonly relays: {
7580
+ readonly type: "string";
7581
+ readonly minLength: 1;
7582
+ readonly description: "A waiting item (an id from `runpane inbox`) to improve instead of posting a second card. ui and title are still required.";
7583
+ };
7584
+ readonly aboutSession: {
7585
+ readonly type: "string";
7586
+ readonly minLength: 1;
7587
+ readonly description: "Autopilot's own item: the Session it is about, an id or exact name.";
7588
+ };
7120
7589
  readonly returnAfterMs: {
7121
7590
  readonly type: "number";
7122
7591
  readonly description: "Return waiting after this long; set for MCP clients whose tool calls time out.";
@@ -7149,12 +7618,67 @@ export declare const RUNPANE_CONTRACT: {
7149
7618
  readonly properties: {
7150
7619
  readonly answer: {
7151
7620
  readonly type: "string";
7152
- readonly description: "options: the chosen label. ask: the typed answer.";
7621
+ readonly description: "options: the chosen label (with questions, the picks joined with \" · \"). ask: the typed answer.";
7153
7622
  };
7154
7623
  readonly note: {
7155
7624
  readonly type: "string";
7156
7625
  readonly description: "What the person typed with their answer.";
7157
7626
  };
7627
+ readonly answers: {
7628
+ readonly type: "array";
7629
+ readonly items: {
7630
+ readonly type: "string";
7631
+ };
7632
+ readonly description: "options with questions: one pick per question, in order.";
7633
+ };
7634
+ };
7635
+ readonly additionalProperties: false;
7636
+ }, {
7637
+ readonly type: "object";
7638
+ readonly description: "The person typed a reply: it may answer the question or ask one. The approval keeps waiting; say which with `runpane notify --took <replyId> answer|question` (see next).";
7639
+ readonly required: readonly ["reply", "id", "replyId", "next"];
7640
+ readonly properties: {
7641
+ readonly reply: {
7642
+ readonly type: "string";
7643
+ readonly description: "What the person typed.";
7644
+ };
7645
+ readonly picks: {
7646
+ readonly type: "array";
7647
+ readonly items: {
7648
+ readonly type: "string";
7649
+ };
7650
+ readonly description: "What they picked with it, one label per question.";
7651
+ };
7652
+ readonly id: {
7653
+ readonly type: "string";
7654
+ readonly minLength: 1;
7655
+ readonly description: "The approval, for --took and --update.";
7656
+ };
7657
+ readonly replyId: {
7658
+ readonly type: "string";
7659
+ readonly minLength: 1;
7660
+ readonly description: "This call's private id for the reply (not the id other screens show). Pass it to --took and --update: only this call was given it, so it lets its agent continue, also from outside a Pane tab.";
7661
+ };
7662
+ readonly next: {
7663
+ readonly type: "string";
7664
+ };
7665
+ };
7666
+ readonly additionalProperties: false;
7667
+ }, {
7668
+ readonly type: "object";
7669
+ readonly description: "--took: how the reply was recorded.";
7670
+ readonly required: readonly ["took", "id"];
7671
+ readonly properties: {
7672
+ readonly took: {
7673
+ readonly enum: readonly ["answer", "question"];
7674
+ };
7675
+ readonly id: {
7676
+ readonly type: "string";
7677
+ readonly minLength: 1;
7678
+ };
7679
+ readonly next: {
7680
+ readonly type: "string";
7681
+ };
7158
7682
  };
7159
7683
  readonly additionalProperties: false;
7160
7684
  }, {
@@ -7270,186 +7794,891 @@ export declare const RUNPANE_CONTRACT: {
7270
7794
  };
7271
7795
  readonly mine: {
7272
7796
  readonly type: "boolean";
7273
- readonly description: "Signed in to this machine's own login.";
7797
+ readonly description: "Signed in to this machine's own login.";
7798
+ };
7799
+ };
7800
+ };
7801
+ readonly workspaceListResult: {
7802
+ readonly type: "object";
7803
+ readonly required: readonly ["ok", "self", "machines"];
7804
+ readonly properties: {
7805
+ readonly ok: {
7806
+ readonly const: true;
7807
+ };
7808
+ readonly self: {
7809
+ readonly allOf: readonly [{
7810
+ readonly $ref: "#/jsonSchemas/workspaceMachine";
7811
+ }];
7812
+ readonly properties: {
7813
+ readonly workspace: {
7814
+ readonly description: "This machine's workspace state; null when Pane is not running.";
7815
+ readonly anyOf: readonly [{
7816
+ readonly type: "null";
7817
+ }, {
7818
+ readonly type: "object";
7819
+ readonly required: readonly ["enabled", "state"];
7820
+ readonly properties: {
7821
+ readonly enabled: {
7822
+ readonly type: "boolean";
7823
+ };
7824
+ readonly state: {
7825
+ readonly enum: readonly ["on", "off"];
7826
+ };
7827
+ readonly reason: {
7828
+ readonly type: "string";
7829
+ };
7830
+ readonly fix: {
7831
+ readonly type: "string";
7832
+ };
7833
+ readonly machineName: {
7834
+ readonly type: "string";
7835
+ };
7836
+ readonly url: {
7837
+ readonly type: "string";
7838
+ };
7839
+ };
7840
+ }];
7841
+ };
7842
+ };
7843
+ };
7844
+ readonly machines: {
7845
+ readonly type: "array";
7846
+ readonly items: {
7847
+ readonly allOf: readonly [{
7848
+ readonly $ref: "#/jsonSchemas/workspaceMachine";
7849
+ }];
7850
+ readonly required: readonly ["joined"];
7851
+ readonly properties: {
7852
+ readonly joined: {
7853
+ readonly type: "boolean";
7854
+ readonly description: "Its Pane answers workspace read, write, and exec.";
7855
+ };
7856
+ readonly info: {
7857
+ readonly type: "object";
7858
+ readonly required: readonly ["hostname", "os", "isWsl", "shell", "homeDir", "wslDistros"];
7859
+ readonly properties: {
7860
+ readonly hostname: {
7861
+ readonly type: "string";
7862
+ };
7863
+ readonly os: {
7864
+ readonly enum: readonly ["macOS", "Windows", "Linux"];
7865
+ };
7866
+ readonly isWsl: {
7867
+ readonly type: "boolean";
7868
+ };
7869
+ readonly shell: {
7870
+ readonly type: "string";
7871
+ };
7872
+ readonly homeDir: {
7873
+ readonly type: "string";
7874
+ };
7875
+ readonly wslDistros: {
7876
+ readonly type: "array";
7877
+ readonly items: {
7878
+ readonly type: "string";
7879
+ };
7880
+ };
7881
+ };
7882
+ };
7883
+ readonly error: {
7884
+ readonly type: "string";
7885
+ readonly description: "Why it does not answer.";
7886
+ };
7887
+ };
7888
+ };
7889
+ };
7890
+ };
7891
+ };
7892
+ readonly workspaceReadResult: {
7893
+ readonly type: "object";
7894
+ readonly required: readonly ["ok", "machine", "path", "encoding", "content", "bytes"];
7895
+ readonly properties: {
7896
+ readonly ok: {
7897
+ readonly const: true;
7898
+ };
7899
+ readonly machine: {
7900
+ readonly type: readonly ["string", "null"];
7901
+ readonly description: "The machine read from; null is this machine.";
7902
+ };
7903
+ readonly path: {
7904
+ readonly type: "string";
7905
+ };
7906
+ readonly encoding: {
7907
+ readonly enum: readonly ["utf8", "base64"];
7908
+ };
7909
+ readonly content: {
7910
+ readonly type: "string";
7911
+ readonly description: "File text, or base64 bytes; a directory lists its entries.";
7912
+ };
7913
+ readonly bytes: {
7914
+ readonly type: "number";
7915
+ };
7916
+ };
7917
+ };
7918
+ readonly workspaceWriteResult: {
7919
+ readonly type: "object";
7920
+ readonly required: readonly ["ok", "machine", "path", "bytes"];
7921
+ readonly properties: {
7922
+ readonly ok: {
7923
+ readonly const: true;
7924
+ };
7925
+ readonly machine: {
7926
+ readonly type: readonly ["string", "null"];
7927
+ readonly description: "The machine written to; null is this machine.";
7928
+ };
7929
+ readonly path: {
7930
+ readonly type: "string";
7931
+ };
7932
+ readonly bytes: {
7933
+ readonly type: "number";
7934
+ };
7935
+ };
7936
+ };
7937
+ readonly workspaceExecResult: {
7938
+ readonly type: "object";
7939
+ readonly required: readonly ["ok", "machine", "os", "shell", "cwd", "exitCode", "signal", "timedOut", "stdout", "stderr"];
7940
+ readonly properties: {
7941
+ readonly ok: {
7942
+ readonly type: "boolean";
7943
+ readonly description: "The command exited 0.";
7944
+ };
7945
+ readonly machine: {
7946
+ readonly type: "string";
7947
+ };
7948
+ readonly os: {
7949
+ readonly enum: readonly ["macOS", "Windows", "Linux"];
7950
+ };
7951
+ readonly shell: {
7952
+ readonly type: "string";
7953
+ };
7954
+ readonly cwd: {
7955
+ readonly type: "string";
7956
+ };
7957
+ readonly exitCode: {
7958
+ readonly type: readonly ["number", "null"];
7959
+ };
7960
+ readonly signal: {
7961
+ readonly type: readonly ["string", "null"];
7962
+ };
7963
+ readonly timedOut: {
7964
+ readonly type: "boolean";
7965
+ };
7966
+ readonly stillRunning: {
7967
+ readonly const: true;
7968
+ readonly description: "It timed out and could not be stopped.";
7969
+ };
7970
+ readonly stdout: {
7971
+ readonly type: "string";
7972
+ };
7973
+ readonly stderr: {
7974
+ readonly type: "string";
7975
+ };
7976
+ };
7977
+ };
7978
+ readonly autopilotStackEntry: {
7979
+ readonly type: "object";
7980
+ readonly required: readonly ["id", "ref", "title", "tabs", "addedAt"];
7981
+ readonly properties: {
7982
+ readonly id: {
7983
+ readonly type: "string";
7984
+ };
7985
+ readonly ref: {
7986
+ readonly oneOf: readonly [{
7987
+ readonly type: "object";
7988
+ readonly required: readonly ["kind", "notifyId"];
7989
+ readonly properties: {
7990
+ readonly kind: {
7991
+ readonly const: "item";
7992
+ };
7993
+ readonly notifyId: {
7994
+ readonly type: "string";
7995
+ };
7996
+ };
7997
+ readonly additionalProperties: false;
7998
+ }, {
7999
+ readonly type: "object";
8000
+ readonly required: readonly ["kind", "path"];
8001
+ readonly properties: {
8002
+ readonly kind: {
8003
+ readonly const: "file";
8004
+ };
8005
+ readonly path: {
8006
+ readonly type: "string";
8007
+ };
8008
+ };
8009
+ readonly additionalProperties: false;
8010
+ }, {
8011
+ readonly type: "object";
8012
+ readonly required: readonly ["kind", "url"];
8013
+ readonly properties: {
8014
+ readonly kind: {
8015
+ readonly const: "url";
8016
+ };
8017
+ readonly url: {
8018
+ readonly type: "string";
8019
+ };
8020
+ };
8021
+ readonly additionalProperties: false;
8022
+ }, {
8023
+ readonly type: "object";
8024
+ readonly required: readonly ["kind", "sessionId"];
8025
+ readonly properties: {
8026
+ readonly kind: {
8027
+ readonly const: "session";
8028
+ };
8029
+ readonly sessionId: {
8030
+ readonly type: "string";
8031
+ };
8032
+ };
8033
+ readonly additionalProperties: false;
8034
+ }];
8035
+ };
8036
+ readonly title: {
8037
+ readonly type: "string";
8038
+ };
8039
+ readonly sessionId: {
8040
+ readonly type: "string";
8041
+ };
8042
+ readonly sessionName: {
8043
+ readonly type: "string";
8044
+ };
8045
+ readonly tabs: {
8046
+ readonly type: "array";
8047
+ readonly items: {
8048
+ readonly oneOf: readonly [{
8049
+ readonly type: "object";
8050
+ readonly required: readonly ["kind", "label", "notifyId"];
8051
+ readonly properties: {
8052
+ readonly kind: {
8053
+ readonly const: "item";
8054
+ };
8055
+ readonly label: {
8056
+ readonly type: "string";
8057
+ };
8058
+ readonly notifyId: {
8059
+ readonly type: "string";
8060
+ };
8061
+ };
8062
+ readonly additionalProperties: false;
8063
+ }, {
8064
+ readonly type: "object";
8065
+ readonly required: readonly ["kind", "label", "path"];
8066
+ readonly properties: {
8067
+ readonly kind: {
8068
+ readonly const: "file";
8069
+ };
8070
+ readonly label: {
8071
+ readonly type: "string";
8072
+ };
8073
+ readonly path: {
8074
+ readonly type: "string";
8075
+ };
8076
+ };
8077
+ readonly additionalProperties: false;
8078
+ }, {
8079
+ readonly type: "object";
8080
+ readonly required: readonly ["kind", "label", "url"];
8081
+ readonly properties: {
8082
+ readonly kind: {
8083
+ readonly const: "url";
8084
+ };
8085
+ readonly label: {
8086
+ readonly type: "string";
8087
+ };
8088
+ readonly url: {
8089
+ readonly type: "string";
8090
+ };
8091
+ };
8092
+ readonly additionalProperties: false;
8093
+ }, {
8094
+ readonly type: "object";
8095
+ readonly required: readonly ["kind", "label", "sessionId"];
8096
+ readonly properties: {
8097
+ readonly kind: {
8098
+ readonly const: "session";
8099
+ };
8100
+ readonly label: {
8101
+ readonly type: "string";
8102
+ };
8103
+ readonly sessionId: {
8104
+ readonly type: "string";
8105
+ };
8106
+ };
8107
+ readonly additionalProperties: false;
8108
+ }];
8109
+ };
8110
+ readonly description: "The first tab is the entry's own (its approval, document, URL, or Session).";
8111
+ };
8112
+ readonly note: {
8113
+ readonly type: "string";
8114
+ };
8115
+ readonly addedAt: {
8116
+ readonly type: "number";
8117
+ readonly description: "Epoch ms.";
8118
+ };
8119
+ readonly byAutopilot: {
8120
+ readonly type: "boolean";
8121
+ readonly description: "About something Autopilot wrote or asked itself.";
8122
+ };
8123
+ readonly doneAt: {
8124
+ readonly type: "number";
8125
+ readonly description: "Epoch ms when it was resolved (answered, expired, or dismissed).";
8126
+ };
8127
+ };
8128
+ readonly additionalProperties: false;
8129
+ readonly description: "One entry on Autopilot's stack. References only: the item, file, URL, or Session it is about.";
8130
+ };
8131
+ readonly autopilotStatusResult: {
8132
+ readonly type: "object";
8133
+ readonly required: readonly ["ok", "enabled", "chatTabsEnabled", "entitlement", "run", "panelId", "ownerPaneId", "state", "sentinel", "stack", "walk"];
8134
+ readonly properties: {
8135
+ readonly ok: {
8136
+ readonly const: true;
8137
+ };
8138
+ readonly enabled: {
8139
+ readonly type: "boolean";
8140
+ readonly description: "The experimental switch (Settings › Advanced › Experimental › Autopilot).";
8141
+ };
8142
+ readonly chatTabsEnabled: {
8143
+ readonly type: "boolean";
8144
+ readonly description: "Autopilot runs as a chat tab, so it needs chat tabs on.";
8145
+ };
8146
+ readonly entitlement: {
8147
+ readonly type: "object";
8148
+ readonly required: readonly ["entitled"];
8149
+ readonly properties: {
8150
+ readonly entitled: {
8151
+ readonly type: "boolean";
8152
+ };
8153
+ readonly reason: {
8154
+ readonly type: "string";
8155
+ };
8156
+ readonly next: {
8157
+ readonly type: "string";
8158
+ };
8159
+ };
8160
+ readonly additionalProperties: false;
8161
+ };
8162
+ readonly run: {
8163
+ readonly oneOf: readonly [{
8164
+ readonly type: "object";
8165
+ readonly required: readonly ["id", "folder", "docsFolder", "createdAt"];
8166
+ readonly properties: {
8167
+ readonly id: {
8168
+ readonly type: "string";
8169
+ };
8170
+ readonly folder: {
8171
+ readonly type: "string";
8172
+ };
8173
+ readonly docsFolder: {
8174
+ readonly type: "string";
8175
+ };
8176
+ readonly createdAt: {
8177
+ readonly type: "string";
8178
+ };
8179
+ };
8180
+ readonly additionalProperties: false;
8181
+ }, {
8182
+ readonly type: "null";
8183
+ }];
8184
+ };
8185
+ readonly panelId: {
8186
+ readonly oneOf: readonly [{
8187
+ readonly type: "string";
8188
+ }, {
8189
+ readonly type: "null";
8190
+ }];
8191
+ readonly description: "Autopilot's chat tab, once the run has one.";
8192
+ };
8193
+ readonly ownerPaneId: {
8194
+ readonly oneOf: readonly [{
8195
+ readonly type: "string";
8196
+ }, {
8197
+ readonly type: "null";
8198
+ }];
8199
+ };
8200
+ readonly state: {
8201
+ readonly enum: readonly ["stopped", "running", "paused"];
8202
+ };
8203
+ readonly sentinel: {
8204
+ readonly type: "boolean";
8205
+ readonly description: "Sentinel Mode: Autopilot keeps Sessions moving while the person is away (turning it on also starts Autopilot).";
8206
+ };
8207
+ readonly sentinelSince: {
8208
+ readonly type: "number";
8209
+ readonly description: "Epoch milliseconds when Sentinel was turned on; absent while it is off.";
8210
+ };
8211
+ readonly stack: {
8212
+ readonly type: "object";
8213
+ readonly required: readonly ["entries", "shownId"];
8214
+ readonly properties: {
8215
+ readonly entries: {
8216
+ readonly type: "array";
8217
+ readonly items: {
8218
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
8219
+ };
8220
+ };
8221
+ readonly shownId: {
8222
+ readonly oneOf: readonly [{
8223
+ readonly type: "string";
8224
+ }, {
8225
+ readonly type: "null";
8226
+ }];
8227
+ readonly description: "The entry on screen; null when none is.";
8228
+ };
8229
+ };
8230
+ readonly additionalProperties: false;
8231
+ };
8232
+ readonly walk: {
8233
+ readonly type: "object";
8234
+ readonly required: readonly ["sessions"];
8235
+ readonly properties: {
8236
+ readonly sessionId: {
8237
+ readonly type: "string";
8238
+ readonly description: "The Session the walk is on.";
8239
+ };
8240
+ readonly sessions: {
8241
+ readonly type: "array";
8242
+ readonly items: {
8243
+ readonly type: "object";
8244
+ readonly required: readonly ["id", "name", "waiting"];
8245
+ readonly properties: {
8246
+ readonly id: {
8247
+ readonly type: "string";
8248
+ };
8249
+ readonly name: {
8250
+ readonly type: "string";
8251
+ };
8252
+ readonly waiting: {
8253
+ readonly type: "number";
8254
+ readonly description: "Items waiting on the person in this Session.";
8255
+ };
8256
+ };
8257
+ readonly additionalProperties: false;
8258
+ };
8259
+ };
8260
+ };
8261
+ readonly additionalProperties: false;
8262
+ };
8263
+ };
8264
+ readonly additionalProperties: false;
8265
+ };
8266
+ readonly autopilotWaitingResult: {
8267
+ readonly type: "object";
8268
+ readonly required: readonly ["ok", "items"];
8269
+ readonly properties: {
8270
+ readonly ok: {
8271
+ readonly const: true;
8272
+ };
8273
+ readonly items: {
8274
+ readonly type: "array";
8275
+ readonly description: "Grouped by Session, top first, in the order Autopilot walks them.";
8276
+ readonly items: {
8277
+ readonly type: "object";
8278
+ readonly required: readonly ["id", "title", "kind", "agent", "pane", "links", "createdAt", "ageMs", "machine", "machineId", "onStack"];
8279
+ readonly properties: {
8280
+ readonly id: {
8281
+ readonly type: "string";
8282
+ };
8283
+ readonly title: {
8284
+ readonly type: "string";
8285
+ };
8286
+ readonly kind: {
8287
+ readonly enum: readonly ["approval", "question", "permission"];
8288
+ };
8289
+ readonly sessionId: {
8290
+ readonly type: "string";
8291
+ readonly description: "Absent: not in a Session.";
8292
+ };
8293
+ readonly sessionName: {
8294
+ readonly type: "string";
8295
+ };
8296
+ readonly agent: {
8297
+ readonly type: "string";
8298
+ };
8299
+ readonly pane: {
8300
+ readonly type: "string";
8301
+ };
8302
+ readonly paneId: {
8303
+ readonly type: "string";
8304
+ };
8305
+ readonly panelId: {
8306
+ readonly type: "string";
8307
+ };
8308
+ readonly orchestrator: {
8309
+ readonly type: "boolean";
8310
+ readonly description: "The asking tab is the Session's orchestrator.";
8311
+ };
8312
+ readonly byAutopilot: {
8313
+ readonly type: "boolean";
8314
+ readonly description: "Autopilot asked it itself.";
8315
+ };
8316
+ readonly context: {
8317
+ readonly type: "string";
8318
+ };
8319
+ readonly choices: {
8320
+ readonly type: "array";
8321
+ readonly items: {
8322
+ readonly type: "string";
8323
+ };
8324
+ };
8325
+ readonly links: {
8326
+ readonly type: "array";
8327
+ readonly items: {
8328
+ readonly type: "object";
8329
+ readonly required: readonly ["label"];
8330
+ readonly properties: {
8331
+ readonly label: {
8332
+ readonly type: "string";
8333
+ };
8334
+ readonly path: {
8335
+ readonly type: "string";
8336
+ };
8337
+ readonly url: {
8338
+ readonly type: "string";
8339
+ };
8340
+ };
8341
+ readonly additionalProperties: false;
8342
+ };
8343
+ };
8344
+ readonly createdAt: {
8345
+ readonly type: "number";
8346
+ readonly description: "Epoch ms.";
8347
+ };
8348
+ readonly ageMs: {
8349
+ readonly type: "number";
8350
+ };
8351
+ readonly machine: {
8352
+ readonly type: "string";
8353
+ };
8354
+ readonly machineId: {
8355
+ readonly type: "string";
8356
+ };
8357
+ readonly onStack: {
8358
+ readonly type: "boolean";
8359
+ readonly description: "Already on the stack.";
8360
+ };
8361
+ readonly quiet: {
8362
+ readonly type: "boolean";
8363
+ readonly description: "A worker's question its orchestrator still has first call on: it shows, but doesn't ring yet.";
8364
+ };
8365
+ readonly stale: {
8366
+ readonly type: "boolean";
8367
+ readonly description: "Unanswered for 3 days: it never rings or pushes again.";
8368
+ };
8369
+ readonly connected: {
8370
+ readonly type: "object";
8371
+ 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.";
8372
+ readonly required: readonly ["kind", "id", "name"];
8373
+ readonly properties: {
8374
+ readonly kind: {
8375
+ readonly enum: readonly ["session", "pane", "autopilot", "machine"];
8376
+ };
8377
+ readonly id: {
8378
+ readonly type: "string";
8379
+ };
8380
+ readonly name: {
8381
+ readonly type: "string";
8382
+ };
8383
+ readonly paneId: {
8384
+ readonly type: "string";
8385
+ };
8386
+ };
8387
+ readonly additionalProperties: false;
8388
+ };
8389
+ };
8390
+ readonly additionalProperties: false;
8391
+ };
8392
+ };
8393
+ readonly offline: {
8394
+ readonly type: "array";
8395
+ readonly items: {
8396
+ readonly type: "string";
8397
+ };
8398
+ readonly description: "Saved machines it can't reach. Absent from an older Pane.";
8399
+ };
8400
+ readonly cantSee: {
8401
+ readonly type: "array";
8402
+ readonly items: {
8403
+ readonly type: "string";
8404
+ };
8405
+ readonly description: "The person's Tailscale machines not saved here, so their items can't show. Absent from an older Pane.";
8406
+ };
8407
+ };
8408
+ readonly additionalProperties: false;
8409
+ };
8410
+ readonly autopilotStackResult: {
8411
+ readonly type: "object";
8412
+ readonly required: readonly ["ok", "entries", "shownId"];
8413
+ readonly properties: {
8414
+ readonly ok: {
8415
+ readonly const: true;
8416
+ };
8417
+ readonly entries: {
8418
+ readonly type: "array";
8419
+ readonly items: {
8420
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
8421
+ };
8422
+ };
8423
+ readonly shownId: {
8424
+ readonly oneOf: readonly [{
8425
+ readonly type: "string";
8426
+ }, {
8427
+ readonly type: "null";
8428
+ }];
8429
+ readonly description: "The entry on screen; null when none is.";
8430
+ };
8431
+ };
8432
+ readonly additionalProperties: false;
8433
+ };
8434
+ readonly autopilotStackPushRequest: {
8435
+ readonly type: "object";
8436
+ readonly required: readonly [];
8437
+ readonly properties: {
8438
+ readonly item: {
8439
+ readonly type: "string";
8440
+ };
8441
+ readonly file: {
8442
+ readonly type: "string";
8443
+ readonly description: "Absolute: runpane resolves a relative path against the caller's directory.";
8444
+ };
8445
+ readonly url: {
8446
+ readonly type: "string";
8447
+ };
8448
+ readonly session: {
8449
+ readonly type: "string";
8450
+ readonly description: "Session id or exact name.";
8451
+ };
8452
+ readonly title: {
8453
+ readonly type: "string";
8454
+ };
8455
+ readonly note: {
8456
+ readonly type: "string";
8457
+ };
8458
+ readonly tabs: {
8459
+ readonly type: "array";
8460
+ readonly items: {
8461
+ readonly type: "object";
8462
+ readonly required: readonly [];
8463
+ readonly properties: {
8464
+ readonly label: {
8465
+ readonly type: "string";
8466
+ };
8467
+ readonly path: {
8468
+ readonly type: "string";
8469
+ };
8470
+ readonly url: {
8471
+ readonly type: "string";
8472
+ };
8473
+ };
8474
+ readonly additionalProperties: false;
8475
+ };
8476
+ };
8477
+ readonly next: {
8478
+ readonly type: "boolean";
8479
+ readonly description: "Right after the entry on screen, so it comes up next.";
7274
8480
  };
7275
8481
  };
8482
+ readonly additionalProperties: false;
8483
+ readonly description: "Exactly one of item, file, url, or session.";
7276
8484
  };
7277
- readonly workspaceListResult: {
8485
+ readonly autopilotStackPushResult: {
7278
8486
  readonly type: "object";
7279
- readonly required: readonly ["ok", "self", "machines"];
8487
+ readonly required: readonly ["ok", "entry", "shown", "position", "total"];
7280
8488
  readonly properties: {
7281
8489
  readonly ok: {
7282
8490
  readonly const: true;
7283
8491
  };
7284
- readonly self: {
7285
- readonly allOf: readonly [{
7286
- readonly $ref: "#/jsonSchemas/workspaceMachine";
8492
+ readonly entry: {
8493
+ readonly oneOf: readonly [{
8494
+ readonly $ref: "#/jsonSchemas/autopilotStackEntry";
8495
+ }, {
8496
+ readonly type: "null";
7287
8497
  }];
7288
- readonly properties: {
7289
- readonly workspace: {
7290
- readonly description: "This machine's workspace state; null when Pane is not running.";
7291
- readonly anyOf: readonly [{
7292
- readonly type: "null";
7293
- }, {
7294
- readonly type: "object";
7295
- readonly required: readonly ["enabled", "state"];
7296
- readonly properties: {
7297
- readonly enabled: {
7298
- readonly type: "boolean";
7299
- };
7300
- readonly state: {
7301
- readonly enum: readonly ["on", "off"];
7302
- };
7303
- readonly reason: {
7304
- readonly type: "string";
7305
- };
7306
- readonly fix: {
7307
- readonly type: "string";
7308
- };
7309
- readonly machineName: {
7310
- readonly type: "string";
7311
- };
7312
- readonly url: {
7313
- readonly type: "string";
7314
- };
7315
- };
7316
- }];
7317
- };
7318
- };
7319
8498
  };
7320
- readonly machines: {
7321
- readonly type: "array";
7322
- readonly items: {
7323
- readonly allOf: readonly [{
7324
- readonly $ref: "#/jsonSchemas/workspaceMachine";
7325
- }];
7326
- readonly required: readonly ["joined"];
8499
+ readonly shown: {
8500
+ readonly type: "boolean";
8501
+ readonly description: "The entry is on screen now (the stack had nothing open).";
8502
+ };
8503
+ readonly position: {
8504
+ readonly type: "number";
8505
+ readonly description: "1-based place on the stack.";
8506
+ };
8507
+ readonly total: {
8508
+ readonly type: "number";
8509
+ };
8510
+ };
8511
+ readonly additionalProperties: false;
8512
+ };
8513
+ readonly autopilotAnswerRequest: {
8514
+ readonly type: "object";
8515
+ readonly description: "What `runpane autopilot answer` sends on the runpane:autopilot:answer daemon channel.";
8516
+ readonly required: readonly ["id", "answer", "because"];
8517
+ readonly properties: {
8518
+ readonly id: {
8519
+ readonly type: "string";
8520
+ readonly minLength: 1;
8521
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
8522
+ };
8523
+ readonly answer: {
8524
+ readonly oneOf: readonly [{
8525
+ readonly type: "object";
8526
+ readonly required: readonly ["choice"];
7327
8527
  readonly properties: {
7328
- readonly joined: {
8528
+ readonly choice: {
8529
+ readonly type: "string";
8530
+ readonly minLength: 1;
8531
+ };
8532
+ readonly note: {
8533
+ readonly type: "string";
8534
+ };
8535
+ };
8536
+ readonly additionalProperties: false;
8537
+ }, {
8538
+ readonly type: "object";
8539
+ readonly required: readonly ["approved"];
8540
+ readonly properties: {
8541
+ readonly approved: {
7329
8542
  readonly type: "boolean";
7330
- readonly description: "Its Pane answers workspace read, write, and exec.";
7331
8543
  };
7332
- readonly info: {
7333
- readonly type: "object";
7334
- readonly required: readonly ["hostname", "os", "isWsl", "shell", "homeDir", "wslDistros"];
7335
- readonly properties: {
7336
- readonly hostname: {
7337
- readonly type: "string";
7338
- };
7339
- readonly os: {
7340
- readonly enum: readonly ["macOS", "Windows", "Linux"];
7341
- };
7342
- readonly isWsl: {
7343
- readonly type: "boolean";
7344
- };
7345
- readonly shell: {
7346
- readonly type: "string";
7347
- };
7348
- readonly homeDir: {
7349
- readonly type: "string";
7350
- };
7351
- readonly wslDistros: {
7352
- readonly type: "array";
7353
- readonly items: {
7354
- readonly type: "string";
7355
- };
7356
- };
7357
- };
8544
+ readonly note: {
8545
+ readonly type: "string";
7358
8546
  };
7359
- readonly error: {
8547
+ };
8548
+ readonly additionalProperties: false;
8549
+ }, {
8550
+ readonly type: "object";
8551
+ readonly required: readonly ["text"];
8552
+ readonly properties: {
8553
+ readonly text: {
7360
8554
  readonly type: "string";
7361
- readonly description: "Why it does not answer.";
8555
+ readonly minLength: 1;
7362
8556
  };
7363
8557
  };
7364
- };
8558
+ readonly additionalProperties: false;
8559
+ }];
8560
+ };
8561
+ readonly because: {
8562
+ readonly type: "string";
8563
+ readonly minLength: 1;
8564
+ readonly description: "A D-n, a document or the person's words.";
7365
8565
  };
7366
8566
  };
8567
+ readonly additionalProperties: false;
7367
8568
  };
7368
- readonly workspaceReadResult: {
8569
+ readonly autopilotAnswerResult: {
7369
8570
  readonly type: "object";
7370
- readonly required: readonly ["ok", "machine", "path", "encoding", "content", "bytes"];
8571
+ readonly required: readonly ["ok", "id"];
7371
8572
  readonly properties: {
7372
8573
  readonly ok: {
7373
8574
  readonly const: true;
7374
8575
  };
7375
- readonly machine: {
7376
- readonly type: readonly ["string", "null"];
7377
- readonly description: "The machine read from; null is this machine.";
7378
- };
7379
- readonly path: {
8576
+ readonly id: {
7380
8577
  readonly type: "string";
7381
8578
  };
7382
- readonly encoding: {
7383
- readonly enum: readonly ["utf8", "base64"];
8579
+ readonly machine: {
8580
+ readonly type: "string";
8581
+ readonly description: "The machine that holds the item.";
7384
8582
  };
7385
- readonly content: {
8583
+ };
8584
+ readonly additionalProperties: false;
8585
+ };
8586
+ readonly autopilotCloseRequest: {
8587
+ readonly type: "object";
8588
+ readonly description: "What `runpane autopilot close` sends on the runpane:autopilot:close daemon channel.";
8589
+ readonly required: readonly ["id", "reason"];
8590
+ readonly properties: {
8591
+ readonly id: {
7386
8592
  readonly type: "string";
7387
- readonly description: "File text, or base64 bytes; a directory lists its entries.";
8593
+ readonly minLength: 1;
8594
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
7388
8595
  };
7389
- readonly bytes: {
7390
- readonly type: "number";
8596
+ readonly reason: {
8597
+ readonly type: "string";
8598
+ readonly minLength: 1;
7391
8599
  };
7392
8600
  };
8601
+ readonly additionalProperties: false;
7393
8602
  };
7394
- readonly workspaceWriteResult: {
8603
+ readonly autopilotCloseResult: {
7395
8604
  readonly type: "object";
7396
- readonly required: readonly ["ok", "machine", "path", "bytes"];
8605
+ readonly required: readonly ["ok", "id"];
7397
8606
  readonly properties: {
7398
8607
  readonly ok: {
7399
8608
  readonly const: true;
7400
8609
  };
7401
- readonly machine: {
7402
- readonly type: readonly ["string", "null"];
7403
- readonly description: "The machine written to; null is this machine.";
7404
- };
7405
- readonly path: {
8610
+ readonly id: {
7406
8611
  readonly type: "string";
7407
8612
  };
7408
- readonly bytes: {
7409
- readonly type: "number";
8613
+ readonly machine: {
8614
+ readonly type: "string";
8615
+ readonly description: "The machine that holds the item.";
7410
8616
  };
7411
8617
  };
8618
+ readonly additionalProperties: false;
7412
8619
  };
7413
- readonly workspaceExecResult: {
8620
+ readonly autopilotRewriteRequest: {
7414
8621
  readonly type: "object";
7415
- readonly required: readonly ["ok", "machine", "os", "shell", "cwd", "exitCode", "signal", "timedOut", "stdout", "stderr"];
8622
+ 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.";
8623
+ readonly required: readonly ["id", "ui", "title"];
7416
8624
  readonly properties: {
7417
- readonly ok: {
7418
- readonly type: "boolean";
7419
- readonly description: "The command exited 0.";
7420
- };
7421
- readonly machine: {
8625
+ readonly id: {
7422
8626
  readonly type: "string";
8627
+ readonly minLength: 1;
8628
+ readonly description: "An id from `runpane autopilot waiting`; it names the item's machine too.";
7423
8629
  };
7424
- readonly os: {
7425
- readonly enum: readonly ["macOS", "Windows", "Linux"];
8630
+ readonly ui: {
8631
+ readonly enum: readonly ["options", "approve", "ask"];
7426
8632
  };
7427
- readonly shell: {
8633
+ readonly title: {
7428
8634
  readonly type: "string";
8635
+ readonly minLength: 1;
7429
8636
  };
7430
- readonly cwd: {
8637
+ readonly context: {
7431
8638
  readonly type: "string";
7432
8639
  };
7433
- readonly exitCode: {
7434
- readonly type: readonly ["number", "null"];
8640
+ readonly choices: {
8641
+ readonly type: "array";
8642
+ readonly minItems: 1;
8643
+ readonly maxItems: 9;
8644
+ readonly items: {
8645
+ readonly $ref: "#/jsonSchemas/notifyChoice";
8646
+ };
7435
8647
  };
7436
- readonly signal: {
7437
- readonly type: readonly ["string", "null"];
8648
+ readonly suggestions: {
8649
+ readonly type: "array";
8650
+ readonly items: {
8651
+ readonly type: "string";
8652
+ readonly minLength: 1;
8653
+ };
7438
8654
  };
7439
- readonly timedOut: {
7440
- readonly type: "boolean";
8655
+ readonly links: {
8656
+ readonly type: "array";
8657
+ readonly maxItems: 6;
8658
+ readonly items: {
8659
+ readonly $ref: "#/jsonSchemas/notifyLink";
8660
+ };
7441
8661
  };
7442
- readonly stillRunning: {
8662
+ };
8663
+ readonly additionalProperties: false;
8664
+ };
8665
+ readonly autopilotRewriteResult: {
8666
+ readonly type: "object";
8667
+ readonly required: readonly ["ok", "id"];
8668
+ readonly properties: {
8669
+ readonly ok: {
7443
8670
  readonly const: true;
7444
- readonly description: "It timed out and could not be stopped.";
7445
8671
  };
7446
- readonly stdout: {
8672
+ readonly id: {
7447
8673
  readonly type: "string";
8674
+ readonly description: "The new item's id.";
7448
8675
  };
7449
- readonly stderr: {
8676
+ readonly machine: {
7450
8677
  readonly type: "string";
8678
+ readonly description: "The machine that holds the item.";
7451
8679
  };
7452
8680
  };
8681
+ readonly additionalProperties: false;
7453
8682
  };
7454
8683
  readonly pausedMark: {
7455
8684
  readonly type: "object";
@@ -7512,6 +8741,10 @@ export declare const RUNPANE_CONTRACT: {
7512
8741
  };
7513
8742
  readonly description: "Tabs this call paused or resumed.";
7514
8743
  };
8744
+ readonly chatTabsNotPaused: {
8745
+ readonly type: "number";
8746
+ readonly description: "On a pause: chat tabs in scope, which can't pause yet, so their agents keep running.";
8747
+ };
7515
8748
  readonly unchanged: {
7516
8749
  readonly type: "number";
7517
8750
  readonly description: "Terminal tabs in scope that were already paused (for pause) or not paused (for resume).";
@@ -7607,7 +8840,7 @@ export declare const RUNPANE_CONTRACT: {
7607
8840
  }, {
7608
8841
  readonly name: "panes archive";
7609
8842
  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.";
7610
- readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
8843
+ readonly arguments: readonly ["--pane <pane-id>", "--session <id|name>", "--merged", "--closed", "--source <user|agent>", "--force", "--remove-worktree", "--dry-run", "--yes", "--json"];
7611
8844
  }, {
7612
8845
  readonly name: "panes pin";
7613
8846
  readonly summary: "Declaratively pin a Pane (the Pane UI's favorite/pin star) without changing focus.";
@@ -7632,6 +8865,10 @@ export declare const RUNPANE_CONTRACT: {
7632
8865
  readonly name: "panels open";
7633
8866
  readonly summary: "Show the user an HTML page, plan, report, dev server URL, or file as a tab in split view beside the agent.";
7634
8867
  readonly arguments: readonly ["--pane <pane-id>", "--url <url>", "--file <path>", "--title <title>", "--split", "--tab", "--no-focus", "--source <user|agent>", "--yes", "--json"];
8868
+ }, {
8869
+ readonly name: "panels close";
8870
+ readonly summary: "Close a tab an agent opened once it no longer matters; refuses the person's tabs, busy agents and unsent input.";
8871
+ readonly arguments: readonly ["--panel <panel-id>", "--dry-run", "--force", "--source <user|agent>", "--yes", "--json"];
7635
8872
  }, {
7636
8873
  readonly name: "panels list";
7637
8874
  readonly summary: "List tool panels inside a Pane session.";
@@ -7664,10 +8901,6 @@ export declare const RUNPANE_CONTRACT: {
7664
8901
  readonly name: "panels resume";
7665
8902
  readonly summary: "Restart a stopped terminal panel in place (same panel id), resuming its agent's conversation.";
7666
8903
  readonly arguments: readonly ["--panel <panel-id>", "--session <id|name>", "--all-stopped", "--concurrency <count>", "--wait-ready", "--ready-timeout-ms <ms>", "--yes", "--json", "--pane-dir <path>"];
7667
- }, {
7668
- readonly name: "panels close";
7669
- readonly summary: "Close a tab, stopping its process, as the app's close button does.";
7670
- readonly arguments: readonly ["--panel <panel-id>", "--yes", "--json"];
7671
8904
  }, {
7672
8905
  readonly name: "watch";
7673
8906
  readonly summary: "Wait for workspace events from the durable daemon journal; follow uses conservative cadence and quiet expiry by default.";
@@ -7675,7 +8908,7 @@ export declare const RUNPANE_CONTRACT: {
7675
8908
  }, {
7676
8909
  readonly name: "notify";
7677
8910
  readonly summary: "Ask the person a question wherever they are and wait for the answer; prefer it to asking in the terminal.";
7678
- readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--resume <id>", "--json"];
8911
+ readonly arguments: readonly ["--ui <options|approve|ask|info>", "--title <text>", "--choices <json>", "--links <json>", "--resume <id>", "--json"];
7679
8912
  }];
7680
8913
  };
7681
8914
  readonly commands: {
@@ -8598,7 +9831,7 @@ export declare const RUNPANE_CONTRACT: {
8598
9831
  readonly "panes archive": {
8599
9832
  readonly name: "panes archive";
8600
9833
  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.";
8601
- readonly details: "Use this to close out a Pane once its PR has merged. The safety check refreshes the configured upstream before comparing it to HEAD and includes exact unpushed commit IDs and subjects. When the branch has no upstream or its upstream is gone (GitHub deletes merged branches), a merged pull request whose head is HEAD counts as pushed, so squash-merged branches archive without --force. Refuses unsafe archive operations unless --force is used. Use --dry-run to inspect the same evidence without mutating Pane state. Use --session <id|name> --merged to close out every finished Pane of a Session at once. Archive also refuses a Pane with an agent mid-turn or waiting for an answer (`agent-busy`, listed in `safetyCheck.busyAgents`), or with a tab holding unsent composer text or unsaved editor edits (`unsent-input`, listed in `safetyCheck.unsentInput`), unless --force is used, since archiving stops the agent or loses the input.";
9834
+ 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.";
8602
9835
  readonly requiresPaneDaemon: true;
8603
9836
  readonly mutates: true;
8604
9837
  readonly arguments: readonly [{
@@ -8628,6 +9861,10 @@ export declare const RUNPANE_CONTRACT: {
8628
9861
  readonly name: "--merged";
8629
9862
  readonly required: false;
8630
9863
  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.";
9864
+ }, {
9865
+ readonly name: "--closed";
9866
+ readonly required: false;
9867
+ 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.";
8631
9868
  }, {
8632
9869
  readonly name: "--yes";
8633
9870
  readonly required: false;
@@ -8646,9 +9883,9 @@ export declare const RUNPANE_CONTRACT: {
8646
9883
  readonly required: false;
8647
9884
  readonly description: "Connect to a specific Pane data directory.";
8648
9885
  }];
8649
- readonly examples: readonly ["runpane panes archive --pane <pane-id> --source agent --yes --json", "runpane panes archive --pane <pane-id> --dry-run --json", "runpane panes archive --pane <pane-id> --remove-worktree --yes --json", "runpane panes archive --session <id|name> --merged --dry-run --json", "runpane panes archive --session <id|name> --merged --remove-worktree --yes --json", "runpane panes archive --pane <pane-id> --force --yes --json"];
9886
+ 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"];
8650
9887
  readonly jsonSchemas: readonly ["paneArchiveRequest", "paneArchiveBulkRequest", "paneArchiveResult", "paneArchiveBulkResult"];
8651
- readonly notes: readonly ["If the result has ok:false with a blocked field, the pane was NOT archived; inspect blocked.code and rerun with --force if discarding the flagged work is intentional.", "Inspect safetyCheck.unpushedCommitDetails for exact commit IDs and subjects; upstreamRefreshed confirms the tracking ref was refreshed first.", "A --dry-run result sets dryRun:true and wouldArchive without deleting the Pane or its worktree.", "A successful archive reports worktreeCleanup `completed` once the worktree is gone from its path and from git. trashDeletion `pending` means a large worktree (for example one with node_modules) is still being deleted from .git/pane-trash in the background; that is still ok:true. `timeout` (also ok:true) means removal is still running; only `failed` sets ok:false.", "safetyCheck.mergedViaPr names the merged PR whose head is HEAD; it needs an authenticated `gh`. Without it, a squash-merged branch whose remote branch was deleted reports unpushed-commits.", "An adopted Pane (panes adopt) keeps its worktree unless --remove-worktree is passed. `panes restore` does not recreate a removed adopted worktree; the local branch is kept, so `git worktree add <path> <branch>` brings it back.", "With --session --merged, each item has outcome archived, would-archive (dry run), skipped (with skipped.code and skipped.message), or failed.", "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.", "Undo an archive with `runpane panes restore --pane <pane-id> --yes`, which recreates the worktree. `runpane links create --pane <pane-id>` gives the user a link to review the Pane first.", "When the safety check is skipped, `safetyCheck.reason` says why: `external-worktree` (an adopted Pane whose worktree Pane does not own), `main-repo`, `missing-project-context`, or `git-error`. `worktreeWillRemain: true` means archiving leaves the worktree on disk.", "An agent mid-turn or waiting for an answer blocks archive with `agent-busy` (`safetyCheck.busyAgents` lists them); wait until it is idle with `runpane panels wait --panel <id> --for idle`, then archive again. The Session sweep skips such a Pane with skipped.code `agent-busy`.", "A tab holding text typed into an agent's composer but not sent, or an editor with unsaved edits, blocks archive with `unsent-input` (`safetyCheck.unsentInput` lists them); send, save or clear it, then archive again. `--force` discards it."];
9888
+ 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."];
8652
9889
  };
8653
9890
  readonly "panes pin": {
8654
9891
  readonly name: "panes pin";
@@ -8719,7 +9956,7 @@ export declare const RUNPANE_CONTRACT: {
8719
9956
  readonly "panes pause": {
8720
9957
  readonly name: "panes pause";
8721
9958
  readonly summary: "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.";
8722
- readonly details: "Pauses every terminal tab of a Pane, run scripts included, until `panes resume` resumes it. A Pane reads as paused (`panes list` `paused`) while all of its terminal tabs are. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
9959
+ 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`.";
8723
9960
  readonly requiresPaneDaemon: true;
8724
9961
  readonly mutates: true;
8725
9962
  readonly arguments: readonly [{
@@ -8874,7 +10111,7 @@ export declare const RUNPANE_CONTRACT: {
8874
10111
  }];
8875
10112
  readonly examples: readonly ["runpane panels list --pane <pane-id> --json"];
8876
10113
  readonly jsonSchemas: readonly ["panelListResult"];
8877
- 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)."];
10114
+ 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`."];
8878
10115
  };
8879
10116
  readonly "panels output": {
8880
10117
  readonly name: "panels output";
@@ -8909,7 +10146,7 @@ export declare const RUNPANE_CONTRACT: {
8909
10146
  readonly "panels input": {
8910
10147
  readonly name: "panels input";
8911
10148
  readonly summary: "Send input bytes to a terminal panel.";
8912
- 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.";
10149
+ 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.";
8913
10150
  readonly requiresPaneDaemon: true;
8914
10151
  readonly mutates: true;
8915
10152
  readonly arguments: readonly [{
@@ -8983,7 +10220,7 @@ export declare const RUNPANE_CONTRACT: {
8983
10220
  readonly "panels screen": {
8984
10221
  readonly name: "panels screen";
8985
10222
  readonly summary: "Read a compact current-screen view from a terminal panel.";
8986
- 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.";
10223
+ 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.";
8987
10224
  readonly requiresPaneDaemon: true;
8988
10225
  readonly mutates: false;
8989
10226
  readonly arguments: readonly [{
@@ -9077,7 +10314,7 @@ export declare const RUNPANE_CONTRACT: {
9077
10314
  }];
9078
10315
  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"];
9079
10316
  readonly jsonSchemas: readonly ["panelSubmitRequest", "panelSubmitResult"];
9080
- 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."];
10317
+ 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."];
9081
10318
  };
9082
10319
  readonly "panels resume": {
9083
10320
  readonly name: "panels resume";
@@ -9133,15 +10370,28 @@ export declare const RUNPANE_CONTRACT: {
9133
10370
  };
9134
10371
  readonly "panels close": {
9135
10372
  readonly name: "panels close";
9136
- readonly summary: "Close a tab in a Pane, stopping its process, as closing the tab in the app does.";
9137
- readonly details: "Use this to remove a tab you no longer need, such as a finished or stuck worker. It runs the app's own close-tab path: a terminal tab's process is stopped, the tab disappears from every window showing the Pane, and another tab becomes active if it was the active one.";
10373
+ 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.";
10374
+ 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.";
9138
10375
  readonly requiresPaneDaemon: true;
9139
10376
  readonly mutates: true;
9140
10377
  readonly arguments: readonly [{
9141
10378
  readonly name: "--panel";
9142
10379
  readonly value: "<panel-id>";
9143
10380
  readonly required: true;
9144
- readonly description: "Panel id to close (any tab type).";
10381
+ readonly description: "Tab to close.";
10382
+ }, {
10383
+ readonly name: "--dry-run";
10384
+ readonly required: false;
10385
+ readonly description: "Report whether the tab would close, and why not, without closing it.";
10386
+ }, {
10387
+ readonly name: "--force";
10388
+ readonly required: false;
10389
+ 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.";
10390
+ }, {
10391
+ readonly name: "--source";
10392
+ readonly value: "<user|agent>";
10393
+ readonly required: false;
10394
+ readonly description: "Mutation source.";
9145
10395
  }, {
9146
10396
  readonly name: "--yes";
9147
10397
  readonly required: false;
@@ -9156,14 +10406,14 @@ export declare const RUNPANE_CONTRACT: {
9156
10406
  readonly required: false;
9157
10407
  readonly description: "Connect to a specific Pane data directory.";
9158
10408
  }];
9159
- readonly examples: readonly ["runpane panels close --panel <panel-id> --yes --json"];
10409
+ readonly examples: readonly ["runpane panels close --panel <panel-id> --dry-run --json", "runpane panels close --panel <panel-id> --yes --json"];
9160
10410
  readonly jsonSchemas: readonly ["panelCloseRequest", "panelCloseResult"];
9161
- readonly notes: readonly ["Closing is not undoable: the tab and its scrollback are gone. To stop an agent and keep its tab, send it Ctrl-C with `panels input` instead; to restart a stopped one, use `panels resume`.", "A Pane's permanent tabs cannot be closed; the command fails and nothing changes.", "Closing the tab the command runs in stops the caller too, so it may not see the result."];
10411
+ 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`."];
9162
10412
  };
9163
10413
  readonly "panels pause": {
9164
10414
  readonly name: "panels pause";
9165
10415
  readonly summary: "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.";
9166
- readonly details: "Pauses one terminal tab until `panels resume --panel <panel-id>`, or its Pane or Session, resumes it. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
10416
+ 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`.";
9167
10417
  readonly requiresPaneDaemon: true;
9168
10418
  readonly mutates: true;
9169
10419
  readonly arguments: readonly [{
@@ -9192,7 +10442,7 @@ export declare const RUNPANE_CONTRACT: {
9192
10442
  readonly "panels wait": {
9193
10443
  readonly name: "panels wait";
9194
10444
  readonly summary: "Wait for a terminal panel to initialize, become ready/idle, or contain text.";
9195
- 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.";
10445
+ 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.";
9196
10446
  readonly requiresPaneDaemon: true;
9197
10447
  readonly mutates: false;
9198
10448
  readonly arguments: readonly [{
@@ -9232,24 +10482,64 @@ export declare const RUNPANE_CONTRACT: {
9232
10482
  }];
9233
10483
  readonly examples: readonly ["runpane panels wait --panel <panel-id> --for ready --timeout-ms 30000 --json", "runpane panels wait --panel <panel-id> --contains \"Ready\" --json"];
9234
10484
  readonly jsonSchemas: readonly ["panelWaitResult"];
9235
- 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."];
10485
+ 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."];
9236
10486
  };
9237
10487
  readonly "panels last-message": {
9238
10488
  readonly name: "panels last-message";
9239
10489
  readonly summary: "Read an agent's last reply from its transcript, without scraping the screen.";
9240
10490
  readonly details: "Use this when a worker is READY and you need what it said, such as its PR number or result. It reads the Claude or Codex transcript Pane found for the panel and never falls back to the screen.";
9241
10491
  readonly requiresPaneDaemon: true;
9242
- readonly mutates: false;
10492
+ readonly mutates: false;
10493
+ readonly arguments: readonly [{
10494
+ readonly name: "--panel";
10495
+ readonly value: "<panel-id>";
10496
+ readonly required: true;
10497
+ readonly description: "Agent panel id.";
10498
+ }, {
10499
+ readonly name: "--limit";
10500
+ readonly value: "<count>";
10501
+ readonly required: false;
10502
+ readonly description: "Maximum characters to return; defaults to 20000. The end of the reply is kept.";
10503
+ }, {
10504
+ readonly name: "--json";
10505
+ readonly required: false;
10506
+ readonly description: "Print machine-readable output.";
10507
+ }, {
10508
+ readonly name: "--pane-dir";
10509
+ readonly value: "<path>";
10510
+ readonly required: false;
10511
+ readonly description: "Connect to a specific Pane data directory.";
10512
+ }];
10513
+ readonly examples: readonly ["runpane panels last-message --panel <panel-id> --json"];
10514
+ readonly jsonSchemas: readonly ["panelLastMessageResult"];
10515
+ readonly notes: readonly ["Without a transcript (a shell panel, another agent, or no reply yet) the result is `{ ok: false, reason: \"transcript-unavailable\" }` and the command exits 1. Use `panels screen` then.", "A worker that ran `runpane report` already handed back its state, PR, head, and summary; read those with `agents status` before reading the whole reply."];
10516
+ };
10517
+ readonly "panels conversation": {
10518
+ readonly name: "panels conversation";
10519
+ readonly summary: "Record which conversation a terminal panel's agent is on, so Switch to chat and restarts open that one. A Claude Code SessionStart hook runs it with --hook.";
10520
+ readonly details: "Pane calls this for you: the Claude Code SessionStart hook that Agent Farm and Pane's plain claude tabs install runs `runpane panels conversation --hook` on start, /resume, /clear and compact. Run it yourself only to tell Pane a panel is on a conversation it could not learn from the hook.";
10521
+ readonly requiresPaneDaemon: true;
10522
+ readonly mutates: true;
9243
10523
  readonly arguments: readonly [{
10524
+ readonly name: "--conversation";
10525
+ readonly value: "<id>";
10526
+ readonly required: false;
10527
+ readonly description: "Conversation (agent session) id the panel is on.";
10528
+ }, {
10529
+ readonly name: "--source";
10530
+ readonly value: "<startup|resume|clear|compact>";
10531
+ readonly required: false;
10532
+ readonly description: "What started the conversation.";
10533
+ }, {
9244
10534
  readonly name: "--panel";
9245
10535
  readonly value: "<panel-id>";
9246
- readonly required: true;
9247
- readonly description: "Agent panel id.";
10536
+ readonly required: false;
10537
+ readonly description: "Panel id; defaults to PANE_PANEL_ID inside a Pane terminal.";
9248
10538
  }, {
9249
- readonly name: "--limit";
9250
- readonly value: "<count>";
10539
+ readonly name: "--pane";
10540
+ readonly value: "<pane-id>";
9251
10541
  readonly required: false;
9252
- readonly description: "Maximum characters to return; defaults to 20000. The end of the reply is kept.";
10542
+ readonly description: "Pane id, with --panel; defaults to PANE_SESSION_ID.";
9253
10543
  }, {
9254
10544
  readonly name: "--json";
9255
10545
  readonly required: false;
@@ -9260,9 +10550,9 @@ export declare const RUNPANE_CONTRACT: {
9260
10550
  readonly required: false;
9261
10551
  readonly description: "Connect to a specific Pane data directory.";
9262
10552
  }];
9263
- readonly examples: readonly ["runpane panels last-message --panel <panel-id> --json"];
9264
- readonly jsonSchemas: readonly ["panelLastMessageResult"];
9265
- readonly notes: readonly ["Without a transcript (a shell panel, another agent, or no reply yet) the result is `{ ok: false, reason: \"transcript-unavailable\" }` and the command exits 1. Use `panels screen` then.", "A worker that ran `runpane report` already handed back its state, PR, head, and summary; read those with `agents status` before reading the whole reply."];
10553
+ readonly examples: readonly ["runpane panels conversation --conversation <id> --source resume --json"];
10554
+ readonly jsonSchemas: readonly ["panelConversationRequest", "panelConversationResult"];
10555
+ readonly notes: readonly ["`sure` in the result is true when the report came since the panel's agent started; a Switch to chat or restart opens a sure conversation, and otherwise opens the folder's most recent one.", "`--hook` reads the hook's stdin, prints nothing and always exits 0; it is not offered over MCP."];
9266
10556
  };
9267
10557
  readonly "panels create": {
9268
10558
  readonly name: "panels create";
@@ -9285,6 +10575,20 @@ export declare const RUNPANE_CONTRACT: {
9285
10575
  readonly value: "<command>";
9286
10576
  readonly required: false;
9287
10577
  readonly description: "Custom terminal command to launch instead of a built-in agent.";
10578
+ }, {
10579
+ readonly name: "--chat";
10580
+ readonly required: false;
10581
+ 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 > AI & Agents.";
10582
+ }, {
10583
+ readonly name: "--agent-farm";
10584
+ readonly value: "<profile>";
10585
+ readonly required: false;
10586
+ readonly description: "Start this Agent Farm profile in a chat tab; Agent Farm prints its ACP launch (agent-farm run --print-acp).";
10587
+ }, {
10588
+ readonly name: "--arg";
10589
+ readonly value: "<key=value>";
10590
+ readonly required: false;
10591
+ readonly description: "A launch argument for --agent-farm; repeatable.";
9288
10592
  }, {
9289
10593
  readonly name: "--title";
9290
10594
  readonly value: "<title>";
@@ -9364,7 +10668,7 @@ export declare const RUNPANE_CONTRACT: {
9364
10668
  }];
9365
10669
  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"];
9366
10670
  readonly jsonSchemas: readonly ["panelCreateRequest", "panelCreateResult"];
9367
- 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."];
10671
+ 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."];
9368
10672
  };
9369
10673
  readonly "panels open": {
9370
10674
  readonly name: "panels open";
@@ -9424,12 +10728,12 @@ export declare const RUNPANE_CONTRACT: {
9424
10728
  }];
9425
10729
  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"];
9426
10730
  readonly jsonSchemas: readonly ["panelOpenRequest", "panelOpenResult"];
9427
- 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."];
10731
+ 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."];
9428
10732
  };
9429
10733
  readonly "panels submit-composer": {
9430
10734
  readonly name: "panels submit-composer";
9431
10735
  readonly summary: "Submit an agent composer using the panel-appropriate key sequence.";
9432
- 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.";
10736
+ 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.";
9433
10737
  readonly requiresPaneDaemon: true;
9434
10738
  readonly mutates: true;
9435
10739
  readonly arguments: readonly [{
@@ -9531,7 +10835,7 @@ export declare const RUNPANE_CONTRACT: {
9531
10835
  readonly name: "--kinds";
9532
10836
  readonly required: false;
9533
10837
  readonly value: "<kind,...>";
9534
- readonly description: "Replace the default event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited, panel.stopped, panel.paused, panel.unpaused, agent.report, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged. Defaults: defaults.watch.follow.kinds under --follow, defaults.watch.untilEvent.kinds under --until-event, every kind for a one-shot read.";
10838
+ 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.";
9535
10839
  }, {
9536
10840
  readonly name: "--json";
9537
10841
  readonly required: false;
@@ -9619,7 +10923,7 @@ export declare const RUNPANE_CONTRACT: {
9619
10923
  readonly required: false;
9620
10924
  }];
9621
10925
  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"];
9622
- 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."];
10926
+ 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`."];
9623
10927
  };
9624
10928
  readonly "panes git-status": {
9625
10929
  readonly name: "panes git-status";
@@ -10405,7 +11709,7 @@ export declare const RUNPANE_CONTRACT: {
10405
11709
  }];
10406
11710
  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?\""];
10407
11711
  readonly jsonSchemas: readonly ["reportResult"];
10408
- 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."];
11712
+ 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."];
10409
11713
  };
10410
11714
  readonly "sessions list": {
10411
11715
  readonly name: "sessions list";
@@ -10902,8 +12206,8 @@ export declare const RUNPANE_CONTRACT: {
10902
12206
  };
10903
12207
  readonly "sessions pause": {
10904
12208
  readonly name: "sessions pause";
10905
- readonly summary: "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.";
10906
- readonly details: "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived, until `sessions resume` resumes them. A Session reads as paused (`sessions get` `session.paused`) while its chat and all of its Panes are. Pane stops each terminal tab the way quitting does, without asking, even mid-turn, keeps its agent's conversation, and marks it paused. A paused tab stays stopped through clicks, app restarts and updates; `panels resume --session` and `--all-stopped` skip it. `watch` reports each tab as `panel.paused`.";
12209
+ readonly summary: "Pause a Session: stop the terminal tabs of its chat and every Pane in it, keeping their conversations. Chat tabs keep running.";
12210
+ 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`.";
10907
12211
  readonly requiresPaneDaemon: true;
10908
12212
  readonly mutates: true;
10909
12213
  readonly arguments: readonly [{
@@ -11042,8 +12346,8 @@ export declare const RUNPANE_CONTRACT: {
11042
12346
  };
11043
12347
  readonly inbox: {
11044
12348
  readonly name: "inbox";
11045
- readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged.";
11046
- 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.";
12349
+ readonly summary: "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged, and the answers its workers got.";
12350
+ 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.";
11047
12351
  readonly requiresPaneDaemon: true;
11048
12352
  readonly mutates: false;
11049
12353
  readonly arguments: readonly [{
@@ -11063,18 +12367,23 @@ export declare const RUNPANE_CONTRACT: {
11063
12367
  }];
11064
12368
  readonly examples: readonly ["runpane inbox --session \"$PANE_ORCHESTRATION_SESSION_ID\" --json"];
11065
12369
  readonly jsonSchemas: readonly ["inboxListResult"];
11066
- 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."];
12370
+ 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."];
11067
12371
  };
11068
12372
  readonly "inbox ack": {
11069
12373
  readonly name: "inbox ack";
11070
- readonly summary: "Clear Session inbox items once they are handled.";
11071
- readonly details: "Acknowledge each item once you have acted on it, so the hook stops repeating it.";
12374
+ readonly summary: "Clear Session inbox items once they are handled, and record an answer's D-n.";
12375
+ 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.";
11072
12376
  readonly requiresPaneDaemon: true;
11073
12377
  readonly mutates: true;
11074
12378
  readonly arguments: readonly [{
11075
12379
  readonly name: "<item-id>...";
11076
12380
  readonly required: false;
11077
12381
  readonly description: "Item ids from `runpane inbox`.";
12382
+ }, {
12383
+ readonly name: "--decision";
12384
+ readonly value: "<D-n>";
12385
+ readonly required: false;
12386
+ readonly description: "Record this D-n on each named item, such as D-147. Not with --all.";
11078
12387
  }, {
11079
12388
  readonly name: "--session";
11080
12389
  readonly value: "<id|name>";
@@ -11094,9 +12403,9 @@ export declare const RUNPANE_CONTRACT: {
11094
12403
  readonly required: false;
11095
12404
  readonly description: "Connect to a specific Pane data directory.";
11096
12405
  }];
11097
- readonly examples: readonly ["runpane inbox ack in-1a2b3c4d --json"];
12406
+ readonly examples: readonly ["runpane inbox ack in-1a2b3c4d --json", "runpane inbox ack in-1a2b3c4d --decision D-147 --json"];
11098
12407
  readonly jsonSchemas: readonly ["inboxAckResult"];
11099
- readonly notes: readonly ["Unknown ids are reported under `unknown`; acknowledging twice is harmless."];
12408
+ 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."];
11100
12409
  };
11101
12410
  readonly "loops list": {
11102
12411
  readonly name: "loops list";
@@ -11399,7 +12708,7 @@ export declare const RUNPANE_CONTRACT: {
11399
12708
  readonly name: "--ui";
11400
12709
  readonly value: "<options|approve|ask|info>";
11401
12710
  readonly required: false;
11402
- readonly description: "options: pick one of choices. approve: Approve or Deny. ask: a typed answer. info: an update that returns at once. Required unless resume.";
12711
+ readonly description: "options: pick one of choices. approve: Approve or Deny. ask: a typed answer. info: an update that returns at once. Required unless resume, took or update.";
11403
12712
  readonly schema: {
11404
12713
  readonly type: "string";
11405
12714
  readonly enum: readonly ["options", "approve", "ask", "info"];
@@ -11408,17 +12717,17 @@ export declare const RUNPANE_CONTRACT: {
11408
12717
  readonly name: "--title";
11409
12718
  readonly value: "<text>";
11410
12719
  readonly required: false;
11411
- readonly description: "The question or update in one line; long titles wrap to 3 lines. Required unless resume.";
12720
+ readonly description: "The question or update in one line, about 80 characters; long titles wrap to 3 lines. Required unless resume, took or update.";
11412
12721
  }, {
11413
12722
  readonly name: "--context";
11414
12723
  readonly value: "<text>";
11415
12724
  readonly required: false;
11416
- readonly description: "Background the person can open under Details.";
12725
+ readonly description: "The card's subtitle: one or two sentences on why it matters, up to 240 characters.";
11417
12726
  }, {
11418
12727
  readonly name: "--choices";
11419
12728
  readonly value: "<json>";
11420
12729
  readonly required: false;
11421
- 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.";
12730
+ readonly description: "ui options only, and required there unless questions: 1 to 9 choices. The answer is the chosen label. Say what each does in detail, and mark the one you recommend. With update, a reworded choice adds was, its old label.";
11422
12731
  readonly schema: {
11423
12732
  readonly type: "array";
11424
12733
  readonly minItems: 1;
@@ -11461,6 +12770,75 @@ export declare const RUNPANE_CONTRACT: {
11461
12770
  readonly schema: {
11462
12771
  readonly $ref: "#/jsonSchemas/notifyAction";
11463
12772
  };
12773
+ }, {
12774
+ readonly name: "--links";
12775
+ readonly value: "<json>";
12776
+ readonly required: false;
12777
+ readonly description: "Any ui: up to 6 related files, pages or approvals, 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. Another approval is {label, approval}, its id or Q-n.";
12778
+ readonly schema: {
12779
+ readonly type: "array";
12780
+ readonly maxItems: 6;
12781
+ readonly items: {
12782
+ readonly $ref: "#/jsonSchemas/notifyLink";
12783
+ };
12784
+ };
12785
+ }, {
12786
+ readonly name: "--relays";
12787
+ readonly value: "<item>";
12788
+ readonly required: false;
12789
+ 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.";
12790
+ }, {
12791
+ readonly name: "--about-session";
12792
+ readonly value: "<id|name>";
12793
+ readonly required: false;
12794
+ 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.";
12795
+ }, {
12796
+ readonly name: "--questions";
12797
+ readonly value: "<json>";
12798
+ readonly required: false;
12799
+ readonly description: "ui options only, instead of choices: 2 to 4 questions asked at once, each with 1 to 9 choices and one pick. The result's answers holds one label per question; answer joins them with \" · \".";
12800
+ readonly schema: {
12801
+ readonly type: "array";
12802
+ readonly minItems: 2;
12803
+ readonly maxItems: 4;
12804
+ readonly items: {
12805
+ readonly $ref: "#/jsonSchemas/notifySubQuestion";
12806
+ };
12807
+ };
12808
+ }, {
12809
+ readonly name: "--took";
12810
+ readonly value: "<id|Q-n>";
12811
+ readonly required: false;
12812
+ readonly description: "After a reply result or a `reply:` line: the approval's id or Q-n, with tookAs answer (record the reply as the answer) or question (it asked something; find out, then call update). Pass no question fields.";
12813
+ }, {
12814
+ readonly name: "--took-as";
12815
+ readonly value: "<answer|question>";
12816
+ readonly required: false;
12817
+ readonly description: "With took: answer or question. On the command line it can follow the id instead (`--took Q-20 answer`).";
12818
+ readonly schema: {
12819
+ readonly type: "string";
12820
+ readonly enum: readonly ["answer", "question"];
12821
+ };
12822
+ }, {
12823
+ readonly name: "--status";
12824
+ readonly value: "<text>";
12825
+ readonly required: false;
12826
+ readonly description: "With took question: what you are doing about it, shown on the approval. Defaults to \"Getting more context…\".";
12827
+ }, {
12828
+ readonly name: "--update";
12829
+ readonly value: "<id|Q-n>";
12830
+ readonly required: false;
12831
+ readonly description: "After you took a reply as a question and found out: the approval's id or Q-n. Saves a new version with any of title, context, choices, questions and links you pass (the rest stay), shows it as updated, and waits on it like any notify call. Needs asked and whatChanged; takes no ui.";
12832
+ }, {
12833
+ readonly name: "--asked";
12834
+ readonly value: "<text>";
12835
+ readonly required: false;
12836
+ readonly description: "With update: the person's question, as they typed it.";
12837
+ }, {
12838
+ readonly name: "--what-changed";
12839
+ readonly value: "<text>";
12840
+ readonly required: false;
12841
+ readonly description: "With update: what changed, one line per change.";
11464
12842
  }, {
11465
12843
  readonly name: "--resume";
11466
12844
  readonly value: "<id>";
@@ -11476,14 +12854,294 @@ export declare const RUNPANE_CONTRACT: {
11476
12854
  readonly required: false;
11477
12855
  readonly description: "Connect to a specific Pane data directory.";
11478
12856
  }];
11479
- 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"];
12857
+ 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 --ui options --title \"Ship 2.5 today: which parts go out?\" --questions '[{\"title\":\"Release notes\",\"choices\":[{\"label\":\"Ship as written\",\"recommended\":true},{\"label\":\"Hold\"}]},{\"title\":\"Intel Mac build\",\"choices\":[{\"label\":\"Include it\"},{\"label\":\"Skip it\"}]}]' --json", "runpane notify --took Q-20 answer --json", "runpane notify --took Q-20 question --status \"Checking whether it can be undone\" --json", "runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: Settings > Search turns it off again\" --context \"Search takes 4 s; the index brings it under 100 ms. It can be undone from Settings.\" --json", "runpane notify --resume n-4f2a --json"];
11480
12858
  readonly jsonSchemas: readonly ["notifyRequest", "notifyResult"];
11481
- readonly notes: readonly ["Write the card the way the pane MCP server's instructions say: in plain words, what the work is for, what just happened, and what you need.", "Results: options returns {answer: <chosen label>, note?}; approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.", "A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.", "A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.", "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.", "Invalid input, such as choices with ui ask or 10 choices, fails with a message naming the field, and nothing is shown."];
12859
+ 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?}, with questions also answers (one label per question); approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.", "A result of {reply, picks?, id, replyId, next} means the person typed a reply instead of only picking: it may answer the question or ask one. Read it, then call `runpane notify --took <replyId> answer` to record it as the answer, or `runpane notify --took <replyId> question` and find out, then `runpane notify --update <replyId> --asked \"<their question>\" --what-changed \"<one line per change>\"` with whatever changed, instead of asking again. With no open call the reply reaches your tab as a `reply:` line; `correction:` lines fix how it was taken. --took returns {took, id, next?}. Use its replyId rather than the Q-n: only this call was given it, so it works from outside a Pane tab too.", "Only the reply's reader may run took and update: the asker, the orchestrator that relayed it, or Autopilot. Anyone else gets ERR_NOTIFY_NOT_READER.", "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, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown."];
12860
+ };
12861
+ readonly "autopilot status": {
12862
+ readonly name: "autopilot status";
12863
+ 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.";
12864
+ 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.";
12865
+ readonly requiresPaneDaemon: true;
12866
+ readonly mutates: false;
12867
+ readonly arguments: readonly [{
12868
+ readonly name: "--json";
12869
+ readonly required: false;
12870
+ readonly description: "Print machine-readable output.";
12871
+ }, {
12872
+ readonly name: "--pane-dir";
12873
+ readonly value: "<path>";
12874
+ readonly required: false;
12875
+ readonly description: "Connect to a specific Pane data directory.";
12876
+ }];
12877
+ readonly examples: readonly ["runpane autopilot status --json"];
12878
+ readonly jsonSchemas: readonly ["autopilotStatusResult"];
12879
+ readonly notes: readonly ["Works while Autopilot is off (enabled: false), so a caller can tell off from broken."];
12880
+ };
12881
+ readonly "autopilot waiting": {
12882
+ readonly name: "autopilot waiting";
12883
+ 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.";
12884
+ 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.";
12885
+ readonly requiresPaneDaemon: true;
12886
+ readonly mutates: false;
12887
+ readonly arguments: readonly [{
12888
+ readonly name: "--json";
12889
+ readonly required: false;
12890
+ readonly description: "Print machine-readable output.";
12891
+ }, {
12892
+ readonly name: "--pane-dir";
12893
+ readonly value: "<path>";
12894
+ readonly required: false;
12895
+ readonly description: "Connect to a specific Pane data directory.";
12896
+ }];
12897
+ readonly examples: readonly ["runpane autopilot waiting --json"];
12898
+ readonly jsonSchemas: readonly ["autopilotWaitingResult"];
12899
+ 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."];
12900
+ };
12901
+ readonly "autopilot stack": {
12902
+ readonly name: "autopilot stack";
12903
+ readonly summary: "List the entries on Autopilot's stack in order, and which one is on screen.";
12904
+ 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.";
12905
+ readonly requiresPaneDaemon: true;
12906
+ readonly mutates: false;
12907
+ readonly arguments: readonly [{
12908
+ readonly name: "--json";
12909
+ readonly required: false;
12910
+ readonly description: "Print machine-readable output.";
12911
+ }, {
12912
+ readonly name: "--pane-dir";
12913
+ readonly value: "<path>";
12914
+ readonly required: false;
12915
+ readonly description: "Connect to a specific Pane data directory.";
12916
+ }];
12917
+ readonly examples: readonly ["runpane autopilot stack --json"];
12918
+ readonly jsonSchemas: readonly ["autopilotStackResult"];
12919
+ readonly notes: readonly ["Fails with AUTOPILOT_OFF while Autopilot is off. A resolved entry carries doneAt."];
12920
+ };
12921
+ readonly "autopilot stack push": {
12922
+ readonly name: "autopilot stack push";
12923
+ readonly summary: "Put a waiting item, a document, a URL, or a Session on Autopilot's stack for the person to look at.";
12924
+ 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.";
12925
+ readonly requiresPaneDaemon: true;
12926
+ readonly mutates: true;
12927
+ readonly arguments: readonly [{
12928
+ readonly name: "--item";
12929
+ readonly value: "<id>";
12930
+ readonly required: false;
12931
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12932
+ }, {
12933
+ readonly name: "--file";
12934
+ readonly value: "<path>";
12935
+ readonly required: false;
12936
+ readonly description: "A document to show: HTML loads as a page, anything else as text.";
12937
+ }, {
12938
+ readonly name: "--url";
12939
+ readonly value: "<url>";
12940
+ readonly required: false;
12941
+ readonly description: "An http(s) page or running app to show.";
12942
+ }, {
12943
+ readonly name: "--session";
12944
+ readonly value: "<id|name>";
12945
+ readonly required: false;
12946
+ readonly description: "A Session whose overview to show.";
12947
+ }, {
12948
+ readonly name: "--title";
12949
+ readonly value: "<text>";
12950
+ readonly required: false;
12951
+ readonly description: "The entry's title; defaults to the item's, file's, or Session's own.";
12952
+ }, {
12953
+ readonly name: "--note";
12954
+ readonly value: "<text>";
12955
+ readonly required: false;
12956
+ readonly description: "Autopilot's one line about why it is here.";
12957
+ }, {
12958
+ readonly name: "--tab";
12959
+ readonly value: "<path-or-url>";
12960
+ readonly required: false;
12961
+ readonly description: "An extra tab: a file path, or an http(s) URL. Repeatable on the CLI.";
12962
+ }, {
12963
+ readonly name: "--next";
12964
+ readonly required: false;
12965
+ readonly description: "Put it right after the entry on screen, so it comes up next (jumping back up to a higher Session).";
12966
+ }, {
12967
+ readonly name: "--json";
12968
+ readonly required: false;
12969
+ readonly description: "Print machine-readable output.";
12970
+ }, {
12971
+ readonly name: "--pane-dir";
12972
+ readonly value: "<path>";
12973
+ readonly required: false;
12974
+ readonly description: "Connect to a specific Pane data directory.";
12975
+ }];
12976
+ 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"];
12977
+ readonly jsonSchemas: readonly ["autopilotStackPushRequest", "autopilotStackPushResult"];
12978
+ 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."];
12979
+ };
12980
+ readonly "autopilot answer": {
12981
+ readonly name: "autopilot answer";
12982
+ readonly summary: "Answer a waiting item as Autopilot, with why; delivered at once and recorded \"by Autopilot\". Never a permission prompt.";
12983
+ 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.";
12984
+ readonly requiresPaneDaemon: true;
12985
+ readonly mutates: true;
12986
+ readonly arguments: readonly [{
12987
+ readonly name: "<id>";
12988
+ readonly required: true;
12989
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
12990
+ }, {
12991
+ readonly name: "--choice";
12992
+ readonly value: "<label>";
12993
+ readonly required: false;
12994
+ readonly description: "The chosen label of an options item.";
12995
+ }, {
12996
+ readonly name: "--approve";
12997
+ readonly required: false;
12998
+ readonly description: "Approve an approve item.";
12999
+ }, {
13000
+ readonly name: "--deny";
13001
+ readonly required: false;
13002
+ readonly description: "Deny an approve item.";
13003
+ }, {
13004
+ readonly name: "--text";
13005
+ readonly value: "<text>";
13006
+ readonly required: false;
13007
+ readonly description: "A typed answer.";
13008
+ }, {
13009
+ readonly name: "--note";
13010
+ readonly value: "<text>";
13011
+ readonly required: false;
13012
+ readonly description: "A note for the asker, with --choice, --approve or --deny.";
13013
+ }, {
13014
+ readonly name: "--because";
13015
+ readonly value: "<why>";
13016
+ readonly required: true;
13017
+ readonly description: "Why, recorded on the item: a D-n, a document or the person's words.";
13018
+ }, {
13019
+ readonly name: "--json";
13020
+ readonly required: false;
13021
+ readonly description: "Print machine-readable output.";
13022
+ }, {
13023
+ readonly name: "--pane-dir";
13024
+ readonly value: "<path>";
13025
+ readonly required: false;
13026
+ readonly description: "Connect to a specific Pane data directory.";
13027
+ }];
13028
+ 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"];
13029
+ readonly jsonSchemas: readonly ["autopilotAnswerRequest", "autopilotAnswerResult"];
13030
+ 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."];
13031
+ };
13032
+ readonly "autopilot close": {
13033
+ readonly name: "autopilot close";
13034
+ readonly summary: "Close a waiting item as Autopilot, with why; its asker is told and the person can reopen it. Never a permission prompt.";
13035
+ 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.";
13036
+ readonly requiresPaneDaemon: true;
13037
+ readonly mutates: true;
13038
+ readonly arguments: readonly [{
13039
+ readonly name: "<id>";
13040
+ readonly required: true;
13041
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
13042
+ }, {
13043
+ readonly name: "--reason";
13044
+ readonly value: "<why>";
13045
+ readonly required: true;
13046
+ readonly description: "Why it no longer needs the person, recorded on the item.";
13047
+ }, {
13048
+ readonly name: "--json";
13049
+ readonly required: false;
13050
+ readonly description: "Print machine-readable output.";
13051
+ }, {
13052
+ readonly name: "--pane-dir";
13053
+ readonly value: "<path>";
13054
+ readonly required: false;
13055
+ readonly description: "Connect to a specific Pane data directory.";
13056
+ }];
13057
+ readonly examples: readonly ["runpane autopilot close n-1a2b3c --reason \"The PR it asks about merged yesterday\" --json"];
13058
+ readonly jsonSchemas: readonly ["autopilotCloseRequest", "autopilotCloseResult"];
13059
+ 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."];
13060
+ };
13061
+ readonly "autopilot rewrite": {
13062
+ readonly name: "autopilot rewrite";
13063
+ readonly summary: "Close an unclear waiting item and re-ask it rewritten; the answer goes to the original asker.";
13064
+ 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.";
13065
+ readonly requiresPaneDaemon: true;
13066
+ readonly mutates: true;
13067
+ readonly arguments: readonly [{
13068
+ readonly name: "<id>";
13069
+ readonly required: true;
13070
+ readonly description: "A waiting item's id from `runpane autopilot waiting`.";
13071
+ }, {
13072
+ readonly name: "--ui";
13073
+ readonly value: "<options|approve|ask>";
13074
+ readonly required: true;
13075
+ readonly description: "options: pick one of choices. approve: Approve or Deny. ask: a typed answer.";
13076
+ readonly schema: {
13077
+ readonly type: "string";
13078
+ readonly enum: readonly ["options", "approve", "ask"];
13079
+ };
13080
+ }, {
13081
+ readonly name: "--title";
13082
+ readonly value: "<text>";
13083
+ readonly required: true;
13084
+ readonly description: "The question in one line.";
13085
+ }, {
13086
+ readonly name: "--context";
13087
+ readonly value: "<text>";
13088
+ readonly required: false;
13089
+ readonly description: "The card's subtitle: one or two sentences on why it matters, up to 240 characters.";
13090
+ }, {
13091
+ readonly name: "--choices";
13092
+ readonly value: "<json>";
13093
+ readonly required: false;
13094
+ 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.";
13095
+ readonly schema: {
13096
+ readonly type: "array";
13097
+ readonly minItems: 1;
13098
+ readonly maxItems: 9;
13099
+ readonly items: {
13100
+ readonly $ref: "#/jsonSchemas/notifyChoice";
13101
+ };
13102
+ };
13103
+ }, {
13104
+ readonly name: "--suggestions";
13105
+ readonly value: "<json>";
13106
+ readonly required: false;
13107
+ readonly description: "ui ask only: suggested answers, shown as chips above the text field.";
13108
+ readonly schema: {
13109
+ readonly type: "array";
13110
+ readonly items: {
13111
+ readonly type: "string";
13112
+ readonly minLength: 1;
13113
+ };
13114
+ };
13115
+ }, {
13116
+ readonly name: "--links";
13117
+ readonly value: "<json>";
13118
+ readonly required: false;
13119
+ 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.";
13120
+ readonly schema: {
13121
+ readonly type: "array";
13122
+ readonly maxItems: 6;
13123
+ readonly items: {
13124
+ readonly $ref: "#/jsonSchemas/notifyLink";
13125
+ };
13126
+ };
13127
+ }, {
13128
+ readonly name: "--json";
13129
+ readonly required: false;
13130
+ readonly description: "Print machine-readable output.";
13131
+ }, {
13132
+ readonly name: "--pane-dir";
13133
+ readonly value: "<path>";
13134
+ readonly required: false;
13135
+ readonly description: "Connect to a specific Pane data directory.";
13136
+ }];
13137
+ 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"];
13138
+ readonly jsonSchemas: readonly ["autopilotRewriteRequest", "autopilotRewriteResult"];
13139
+ 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."];
11482
13140
  };
11483
13141
  };
11484
- readonly managedBlock: readonly ["## Pane", "", "This repository is used with [Pane](https://runpane.com). Drive it with the CLI or the `pane` MCP server.", "", "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Open later agents with `runpane panels create --pane <id>` (MCP: `panels_create` or `agents_start` with `pane`), not a new Pane.", "", "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."];
13142
+ 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. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.", "", "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.", "", "MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."];
11485
13143
  readonly notifyGuidance: {
11486
- readonly rules: readonly ["Ask only what you can't find out yourself.", "Put related questions in one card.", "Send `info` rarely, only for what the person must know now.", "Keep titles short and choices to a few words.", "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."];
13144
+ readonly rules: readonly ["Which card: Claude's own card (AskUserQuestion) only when you are answering the person's latest message in the chat they are typing in, the answer only steers this turn, and the question needs no context, links or Summary. Everything else is an approval card (`notify`, or `runpane report` for a worker): a worker's question in a Session, a question a Session orchestrator relays, and anything that waits, blocks other work, is recorded as a decision or approves an ask-first action. Unsure? Use an approval card. Codex and other agents without a built-in card always do.", "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.", "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.", "A `reply:` line (or a `{reply, replyId}` result) is the person's typed reply: an answer or a question. If it answers, run `runpane notify --took <id|Q-n> answer`. If it asks, run `--took <id|Q-n> question`, find out, then `runpane notify --update <id|Q-n> --asked \"<their question>\" --what-changed \"<one line per change>\"` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` (a reworded choice adds `\"was\"`, its old label) instead of asking again. A `correction:` line fixes how it was taken. From a `{reply, replyId}` result, pass its replyId to --took and --update.", "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."];
11487
13145
  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.";
11488
13146
  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.";
11489
13147
  readonly examples: readonly [{