runpane 2.4.213 → 2.4.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,8 @@ exports.RUNPANE_CONTRACT = {
39
39
  "agent.idle",
40
40
  "panel.exited",
41
41
  "panel.stopped",
42
+ "panel.paused",
43
+ "panel.unpaused",
42
44
  "pane.gone",
43
45
  "pane.associated",
44
46
  "pane.detached",
@@ -295,6 +297,38 @@ exports.RUNPANE_CONTRACT = {
295
297
  ],
296
298
  "localControl": true
297
299
  },
300
+ {
301
+ "name": "repos get",
302
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
303
+ "usage": [
304
+ "runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]"
305
+ ],
306
+ "toolsets": [
307
+ "repos"
308
+ ],
309
+ "jsonSchemas": [
310
+ "repoGetRequest",
311
+ "repoGetResult"
312
+ ],
313
+ "localControl": true
314
+ },
315
+ {
316
+ "name": "repos update",
317
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.",
318
+ "usage": [
319
+ "runpane repos update --repo <selector> [--name <name>] [--build-script <script>] [--run-script <script>] [--archive-script <script>] [--worktree-folder <path>] [--open-ide-command <command>] [--system-prompt <text>] [--env <json>] [--env-remove <name,...>] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json] [--pane-dir <path>]"
320
+ ],
321
+ "mutates": true,
322
+ "idempotent": true,
323
+ "toolsets": [
324
+ "repos"
325
+ ],
326
+ "jsonSchemas": [
327
+ "repoUpdateRequest",
328
+ "repoUpdateResult"
329
+ ],
330
+ "localControl": true
331
+ },
298
332
  {
299
333
  "name": "repos rename",
300
334
  "summary": "Rename a repository saved in the running Pane app.",
@@ -313,6 +347,72 @@ exports.RUNPANE_CONTRACT = {
313
347
  ],
314
348
  "localControl": true
315
349
  },
350
+ {
351
+ "name": "secrets list",
352
+ "summary": "List the Pane secrets on this machine: project, name, and when and where each was set. Never shows a value.",
353
+ "usage": [
354
+ "runpane secrets list [--project <project>] [--json] [--pane-dir <path>]"
355
+ ],
356
+ "toolsets": [
357
+ "secrets"
358
+ ],
359
+ "jsonSchemas": [
360
+ "secretListRequest",
361
+ "secretListResult"
362
+ ],
363
+ "localControl": true
364
+ },
365
+ {
366
+ "name": "secrets set",
367
+ "summary": "Save a Pane secret, adding or replacing it. Reads the value from stdin.",
368
+ "usage": [
369
+ "runpane secrets set --project <project> --name <name> --yes [--json] [--pane-dir <path>]"
370
+ ],
371
+ "mutates": true,
372
+ "idempotent": true,
373
+ "localControl": true
374
+ },
375
+ {
376
+ "name": "secrets delete",
377
+ "summary": "Delete a Pane secret from this machine and, through sync, from your other machines.",
378
+ "usage": [
379
+ "runpane secrets delete --project <project> --name <name> --yes [--json] [--pane-dir <path>]"
380
+ ],
381
+ "mutates": true,
382
+ "toolsets": [
383
+ "secrets"
384
+ ],
385
+ "jsonSchemas": [
386
+ "secretDeleteRequest",
387
+ "secretDeleteResult"
388
+ ],
389
+ "localControl": true
390
+ },
391
+ {
392
+ "name": "secrets exec",
393
+ "summary": "Run a command with Pane secrets in its environment. Nothing prints a value.",
394
+ "usage": [
395
+ "runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... [--pane-dir <path>] -- <command>..."
396
+ ],
397
+ "localControl": true
398
+ },
399
+ {
400
+ "name": "secrets request",
401
+ "summary": "Ask the person for a secret on a masked card. Pane saves what they type as a Pane secret and never returns it.",
402
+ "usage": [
403
+ "runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json] [--pane-dir <path>]"
404
+ ],
405
+ "mutates": true,
406
+ "additive": true,
407
+ "toolsets": [
408
+ "core"
409
+ ],
410
+ "jsonSchemas": [
411
+ "notifyRequest",
412
+ "notifyResult"
413
+ ],
414
+ "localControl": true
415
+ },
316
416
  {
317
417
  "name": "panes list",
318
418
  "summary": "List Pane sessions in a saved repository.",
@@ -580,6 +680,39 @@ exports.RUNPANE_CONTRACT = {
580
680
  ],
581
681
  "localControl": true
582
682
  },
683
+ {
684
+ "name": "panes pause",
685
+ "summary": "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.",
686
+ "usage": [
687
+ "runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]"
688
+ ],
689
+ "mutates": true,
690
+ "idempotent": true,
691
+ "toolsets": [
692
+ "panes"
693
+ ],
694
+ "jsonSchemas": [
695
+ "pauseResult"
696
+ ],
697
+ "localControl": true
698
+ },
699
+ {
700
+ "name": "panes resume",
701
+ "summary": "Resume a paused Pane: restart its paused tabs in their saved conversations.",
702
+ "usage": [
703
+ "runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]"
704
+ ],
705
+ "mutates": true,
706
+ "additive": true,
707
+ "idempotent": true,
708
+ "toolsets": [
709
+ "panes"
710
+ ],
711
+ "jsonSchemas": [
712
+ "pauseResult"
713
+ ],
714
+ "localControl": true
715
+ },
583
716
  {
584
717
  "name": "panes rename",
585
718
  "summary": "Rename a Pane without changing its worktree, branch, panels, or focus.",
@@ -778,6 +911,38 @@ exports.RUNPANE_CONTRACT = {
778
911
  ],
779
912
  "localControl": true
780
913
  },
914
+ {
915
+ "name": "panels close",
916
+ "summary": "Close a tab in a Pane, stopping its process, as closing the tab in the app does.",
917
+ "usage": [
918
+ "runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]"
919
+ ],
920
+ "mutates": true,
921
+ "toolsets": [
922
+ "panels"
923
+ ],
924
+ "jsonSchemas": [
925
+ "panelCloseRequest",
926
+ "panelCloseResult"
927
+ ],
928
+ "localControl": true
929
+ },
930
+ {
931
+ "name": "panels pause",
932
+ "summary": "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.",
933
+ "usage": [
934
+ "runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]"
935
+ ],
936
+ "mutates": true,
937
+ "idempotent": true,
938
+ "toolsets": [
939
+ "panels"
940
+ ],
941
+ "jsonSchemas": [
942
+ "pauseResult"
943
+ ],
944
+ "localControl": true
945
+ },
781
946
  {
782
947
  "name": "panels last-message",
783
948
  "summary": "Read an agent's last reply from its transcript, without scraping the screen.",
@@ -1405,7 +1570,7 @@ exports.RUNPANE_CONTRACT = {
1405
1570
  "name": "sessions set-agent",
1406
1571
  "summary": "Switch the durable terminal agent for a named Session.",
1407
1572
  "usage": [
1408
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]"
1573
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
1409
1574
  ],
1410
1575
  "mutates": true,
1411
1576
  "idempotent": true,
@@ -1546,6 +1711,39 @@ exports.RUNPANE_CONTRACT = {
1546
1711
  ],
1547
1712
  "localControl": true
1548
1713
  },
1714
+ {
1715
+ "name": "sessions pause",
1716
+ "summary": "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.",
1717
+ "usage": [
1718
+ "runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]"
1719
+ ],
1720
+ "mutates": true,
1721
+ "idempotent": true,
1722
+ "toolsets": [
1723
+ "sessions"
1724
+ ],
1725
+ "jsonSchemas": [
1726
+ "pauseResult"
1727
+ ],
1728
+ "localControl": true
1729
+ },
1730
+ {
1731
+ "name": "sessions resume",
1732
+ "summary": "Resume a paused Session: restart its chat and the paused tabs of its Panes.",
1733
+ "usage": [
1734
+ "runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]"
1735
+ ],
1736
+ "mutates": true,
1737
+ "additive": true,
1738
+ "idempotent": true,
1739
+ "toolsets": [
1740
+ "sessions"
1741
+ ],
1742
+ "jsonSchemas": [
1743
+ "pauseResult"
1744
+ ],
1745
+ "localControl": true
1746
+ },
1549
1747
  {
1550
1748
  "name": "pr watch",
1551
1749
  "summary": "Register durable GitHub PR monitoring for a Pane.",
@@ -2144,6 +2342,66 @@ exports.RUNPANE_CONTRACT = {
2144
2342
  "value": "<level>",
2145
2343
  "description": "Reasoning effort for the receiving agent (minimal, low, medium, high, xhigh, max); overrides the destination text."
2146
2344
  },
2345
+ {
2346
+ "name": "--build-script",
2347
+ "value": "<script>",
2348
+ "description": "Project Settings build (setup) script; runs in each new worktree. Newline-separated commands."
2349
+ },
2350
+ {
2351
+ "name": "--run-script",
2352
+ "value": "<script>",
2353
+ "description": "Project Settings run script; runs on the Play button. Newline-separated commands."
2354
+ },
2355
+ {
2356
+ "name": "--archive-script",
2357
+ "value": "<script>",
2358
+ "description": "Project Settings archive script; runs before a worktree is removed. Newline-separated commands."
2359
+ },
2360
+ {
2361
+ "name": "--worktree-folder",
2362
+ "value": "<path>",
2363
+ "description": "Folder new worktrees go in: absolute, or relative to the repository. Defaults to worktrees/ in the repository."
2364
+ },
2365
+ {
2366
+ "name": "--open-ide-command",
2367
+ "value": "<command>",
2368
+ "description": "Command the Open in IDE button runs in a worktree."
2369
+ },
2370
+ {
2371
+ "name": "--system-prompt",
2372
+ "value": "<text>",
2373
+ "description": "Project system prompt."
2374
+ },
2375
+ {
2376
+ "name": "--clear",
2377
+ "value": "<setting,...>",
2378
+ "description": "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt."
2379
+ },
2380
+ {
2381
+ "name": "--env",
2382
+ "value": "<VAR=NAME|json>",
2383
+ "description": "secrets exec: inject secret NAME as VAR; repeatable. repos update: a JSON array of project variables to add or replace by key."
2384
+ },
2385
+ {
2386
+ "name": "--env-remove",
2387
+ "value": "<name,...>",
2388
+ "description": "Project variables to remove, comma-separated."
2389
+ },
2390
+ {
2391
+ "name": "--project",
2392
+ "value": "<project>",
2393
+ "description": "Pane secret project: up to 64 letters, digits, \".\", \"_\" or \"-\"."
2394
+ },
2395
+ {
2396
+ "name": "--only",
2397
+ "value": "<name,...>",
2398
+ "description": "Secrets to inject, comma-separated. Defaults to every secret in the project."
2399
+ },
2400
+ {
2401
+ "name": "--reason",
2402
+ "value": "<text>",
2403
+ "description": "Why you need the secret; shown on the card."
2404
+ },
2147
2405
  {
2148
2406
  "name": "--epoch",
2149
2407
  "value": "<epoch>",
@@ -2229,7 +2487,7 @@ exports.RUNPANE_CONTRACT = {
2229
2487
  },
2230
2488
  {
2231
2489
  "name": "--force",
2232
- "description": "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes; for lock release, release another owner's lock."
2490
+ "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."
2233
2491
  },
2234
2492
  {
2235
2493
  "name": "--remove-worktree",
@@ -2342,14 +2600,22 @@ exports.RUNPANE_CONTRACT = {
2342
2600
  " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
2343
2601
  " runpane repos list [--json]",
2344
2602
  " runpane repos add --path <path> [--name <name>]",
2603
+ " runpane repos get [--repo <selector>] [--json]",
2604
+ " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]",
2345
2605
  " runpane repos rename --repo <selector> --name <name>",
2606
+ " runpane secrets list [--project <project>] [--json]",
2607
+ " runpane secrets set --project <project> --name <name> --yes (value on stdin)",
2608
+ " runpane secrets delete --project <project> --name <name> --yes",
2609
+ " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...",
2610
+ " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
2346
2611
  " runpane sessions list [--json] [--pane-dir <path>]",
2347
2612
  " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]",
2348
2613
  " runpane sessions get --session <id|name> [--json] [--pane-dir <path>]",
2349
2614
  " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]",
2350
2615
  " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
2351
2616
  " runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]",
2352
- " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
2617
+ " runpane sessions pause|resume --session <id|name> [--json] [--pane-dir <path>]",
2618
+ " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
2353
2619
  " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
2354
2620
  " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
2355
2621
  " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -2369,6 +2635,7 @@ exports.RUNPANE_CONTRACT = {
2369
2635
  " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
2370
2636
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes",
2371
2637
  " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes",
2638
+ " runpane panes pause|resume --pane <pane-id> --yes [--json]",
2372
2639
  " runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes",
2373
2640
  " runpane panels list --pane <pane-id> [--json]",
2374
2641
  " runpane panels output --panel <panel-id> [--limit <count>] [--json]",
@@ -2378,6 +2645,8 @@ exports.RUNPANE_CONTRACT = {
2378
2645
  " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]",
2379
2646
  " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]",
2380
2647
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
2648
+ " runpane panels close --panel <panel-id> --yes [--json]",
2649
+ " runpane panels pause --panel <panel-id> --yes [--json]",
2381
2650
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
2382
2651
  " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]",
2383
2652
  " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
@@ -2546,6 +2815,41 @@ exports.RUNPANE_CONTRACT = {
2546
2815
  " --dry-run Validate and preview without adding the repo",
2547
2816
  " --yes Skip confirmation for mutating commands"
2548
2817
  ],
2818
+ "repos get": [
2819
+ "Usage:",
2820
+ " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]",
2821
+ "",
2822
+ "Shows a saved repository's Project Settings. For the build, run, and archive scripts it shows the saved value, the fallback from the repository's config file (pane.json, conductor.json, .gitpod.yml, or devcontainer.json), and which of the two Pane will run.",
2823
+ "",
2824
+ "Options:",
2825
+ " --repo <selector> active, id, exact path, or saved repository name; defaults to active",
2826
+ " --json Print machine-readable output",
2827
+ " --pane-dir <path> Connect to a specific Pane data directory"
2828
+ ],
2829
+ "repos update": [
2830
+ "Usage:",
2831
+ " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]",
2832
+ "",
2833
+ "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.",
2834
+ "",
2835
+ "Options:",
2836
+ " --repo <selector> active, id, exact path, or saved repository name",
2837
+ " --name <name> Repository display name",
2838
+ " --build-script <script> Build (setup) script; runs in each new worktree",
2839
+ " --run-script <script> Run script; runs on the Play button",
2840
+ " --archive-script <script> Archive script; runs before a worktree is removed",
2841
+ " --worktree-folder <path> Folder for new worktrees, absolute or relative to the repository",
2842
+ " --open-ide-command <command> Command the Open in IDE button runs",
2843
+ " --system-prompt <text> Project system prompt",
2844
+ " --env <json> Project variables to add or replace, a JSON array: [{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"https://...\"}, {\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]",
2845
+ " --env-remove <name,...> Project variables to remove",
2846
+ " --clear <setting,...> Clear settings, e.g. run-script,archive-script; cleared scripts fall back to the repo's config file",
2847
+ " --from-json <path|-> Settings object: {\"runScript\": \"pnpm dev\", \"archiveScript\": null, \"envVars\": {\"set\": [...], \"remove\": [\"OLD\"]}, ...}; flags override it",
2848
+ " --dry-run Show the result without saving",
2849
+ " --yes Skip confirmation for mutating commands",
2850
+ " --json Print machine-readable output",
2851
+ " --pane-dir <path> Connect to a specific Pane data directory"
2852
+ ],
2549
2853
  "repos rename": [
2550
2854
  "Usage:",
2551
2855
  " runpane repos rename --repo <selector> --name <name> --yes [--json]",
@@ -2559,6 +2863,93 @@ exports.RUNPANE_CONTRACT = {
2559
2863
  " --json Print machine-readable output",
2560
2864
  " --yes Skip confirmation for mutating commands"
2561
2865
  ],
2866
+ "secrets": [
2867
+ "Usage:",
2868
+ " runpane secrets <list|set|delete|exec|request> [options]",
2869
+ "",
2870
+ "Pane secrets are named values, addressed as <project>/<NAME>, that every machine you saved in Pane keeps a copy of.",
2871
+ "Agents use them only through `runpane secrets exec`, which puts them in a command's environment. No command prints a value.",
2872
+ "Ask the person for a new one with `runpane secrets request`; they type it on a masked card.",
2873
+ "",
2874
+ "Commands:",
2875
+ " runpane secrets list [--project <project>] [--json]",
2876
+ " runpane secrets set --project <project> --name <name> --yes (value on stdin)",
2877
+ " runpane secrets delete --project <project> --name <name> --yes",
2878
+ " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...",
2879
+ " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
2880
+ "",
2881
+ "A project is up to 64 letters, digits, \".\", \"_\" or \"-\". A name follows environment variable rules: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved."
2882
+ ],
2883
+ "secrets list": [
2884
+ "Usage:",
2885
+ " runpane secrets list [--project <project>] [--json] [--pane-dir <path>]",
2886
+ "",
2887
+ "Lists the Pane secrets on this machine: project, name, when each was last set, and on which machine. It never shows a value.",
2888
+ "",
2889
+ "Options:",
2890
+ " --project <project> Only this project's secrets",
2891
+ " --json Print machine-readable output",
2892
+ " --pane-dir <path> Connect to a specific Pane data directory"
2893
+ ],
2894
+ "secrets set": [
2895
+ "Usage:",
2896
+ " printf %s \"$VALUE\" | runpane secrets set --project <project> --name <name> --yes [--json]",
2897
+ "",
2898
+ "Saves the value on stdin as the Pane secret <project>/<name>, adding it or replacing the saved value. One trailing newline is dropped. Pane syncs it to your other machines.",
2899
+ "Agents should not set values they were given in chat. Ask the person with `runpane secrets request` instead.",
2900
+ "",
2901
+ "Options:",
2902
+ " --project <project> Secret project",
2903
+ " --name <name> Secret name, such as STRIPE_SECRET_KEY",
2904
+ " --yes Skip confirmation for mutating commands",
2905
+ " --json Print machine-readable output",
2906
+ " --pane-dir <path> Connect to a specific Pane data directory"
2907
+ ],
2908
+ "secrets delete": [
2909
+ "Usage:",
2910
+ " runpane secrets delete --project <project> --name <name> --yes [--json]",
2911
+ "",
2912
+ "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.",
2913
+ "",
2914
+ "Options:",
2915
+ " --project <project> Secret project",
2916
+ " --name <name> Secret name",
2917
+ " --yes Skip confirmation for mutating commands",
2918
+ " --json Print machine-readable output",
2919
+ " --pane-dir <path> Connect to a specific Pane data directory"
2920
+ ],
2921
+ "secrets exec": [
2922
+ "Usage:",
2923
+ " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...",
2924
+ "",
2925
+ "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.",
2926
+ "With no --only, --env or --file, it injects every secret in the project.",
2927
+ "",
2928
+ "Options:",
2929
+ " --project <project> Secret project",
2930
+ " --only <name,...> Inject only these secrets",
2931
+ " --env <VAR=NAME> Inject secret NAME as VAR; repeatable",
2932
+ " --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",
2933
+ " --pane-dir <path> Connect to a specific Pane data directory",
2934
+ "",
2935
+ "Example:",
2936
+ " runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"
2937
+ ],
2938
+ "secrets request": [
2939
+ "Usage:",
2940
+ " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
2941
+ "",
2942
+ "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`.",
2943
+ "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.",
2944
+ "",
2945
+ "Options:",
2946
+ " --project <project> Secret project",
2947
+ " --name <name> Secret name, such as STRIPE_SECRET_KEY",
2948
+ " --title <text> What the secret is, such as \"Stripe test secret key\"",
2949
+ " --reason <text> What you need it for",
2950
+ " --json Print machine-readable output",
2951
+ " --pane-dir <path> Connect to a specific Pane data directory"
2952
+ ],
2562
2953
  "panes": [
2563
2954
  "Pane session commands.",
2564
2955
  "",
@@ -2574,6 +2965,7 @@ exports.RUNPANE_CONTRACT = {
2574
2965
  " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]",
2575
2966
  " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]",
2576
2967
  " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]",
2968
+ " runpane panes pause|resume --pane <pane-id> --yes [--json]",
2577
2969
  "",
2578
2970
  "Run \"runpane help panes <command>\" for command-specific options."
2579
2971
  ],
@@ -2636,8 +3028,8 @@ exports.RUNPANE_CONTRACT = {
2636
3028
  "What --follow does by default (see defaults.watch.follow in the contract):",
2637
3029
  " prints WATCH OK once when armed, then one line per event, with no heartbeats",
2638
3030
  " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,",
2639
- " pane.gone, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged,",
2640
- " pr.base_changed, pr.base_deleted",
3031
+ " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,",
3032
+ " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted",
2641
3033
  " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m",
2642
3034
  " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)",
2643
3035
  " IDLE reminders at 10m, 30m, 1h, 3h, then daily",
@@ -2749,12 +3141,12 @@ exports.RUNPANE_CONTRACT = {
2749
3141
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]",
2750
3142
  " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]",
2751
3143
  "",
2752
- "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.",
3144
+ "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.",
2753
3145
  "",
2754
3146
  "Options:",
2755
3147
  " --pane <pane-id> Pane/session id to archive",
2756
3148
  " --source <user|agent> Mark mutation source",
2757
- " --force Archive even if the pane has uncommitted, untracked, or unpushed changes",
3149
+ " --force Archive even if the pane has uncommitted, untracked, or unpushed changes, a busy agent, or unsent input",
2758
3150
  " --remove-worktree Also check and remove an adopted Pane's worktree (the branch is kept)",
2759
3151
  " --session <id|name> Archive the Panes associated with this Session (requires --merged)",
2760
3152
  " --merged Only archive Panes that are clean and pushed, or merged via a PR",
@@ -2834,6 +3226,8 @@ exports.RUNPANE_CONTRACT = {
2834
3226
  " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]",
2835
3227
  " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]",
2836
3228
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
3229
+ " runpane panels close --panel <panel-id> --yes [--json]",
3230
+ " runpane panels pause --panel <panel-id> --yes [--json]",
2837
3231
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
2838
3232
  "",
2839
3233
  "Run \"runpane help panels create\" or another command-specific topic for options."
@@ -3099,7 +3493,7 @@ exports.RUNPANE_CONTRACT = {
3099
3493
  ],
3100
3494
  "sessions set-agent": [
3101
3495
  "Usage:",
3102
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
3496
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
3103
3497
  "",
3104
3498
  "Options:",
3105
3499
  " --session <id|name> Named Session id or exact name.",
@@ -3431,7 +3825,7 @@ exports.RUNPANE_CONTRACT = {
3431
3825
  ],
3432
3826
  "sessions": [
3433
3827
  "Usage:",
3434
- " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]",
3828
+ " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]",
3435
3829
  "",
3436
3830
  "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."
3437
3831
  ],
@@ -3496,9 +3890,10 @@ exports.RUNPANE_CONTRACT = {
3496
3890
  "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel",
3497
3891
  "whose agent exited back to its shell counts as stopped: its saved command runs again in that",
3498
3892
  "shell. A panel that is already running is left alone and reported as already-running.",
3893
+ "A paused panel resumes and loses its paused mark.",
3499
3894
  "",
3500
3895
  "With --session or --all-stopped it resumes every stopped agent panel in that scope (a",
3501
- "Session's associated Panes, or every Pane), --concurrency at a time, skips running ones,",
3896
+ "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,",
3502
3897
  "and returns one result per panel. With --wait-ready the resumed panels then wait together,",
3503
3898
  "and each result carries its own readiness and blocker. One panel failing does not stop the others.",
3504
3899
  "",
@@ -3530,6 +3925,25 @@ exports.RUNPANE_CONTRACT = {
3530
3925
  " --pane-dir <path> Connect to a specific Pane data directory",
3531
3926
  " --json Print machine-readable output"
3532
3927
  ],
3928
+ "panels close": [
3929
+ "Close a tab in a Pane, stopping its process, as closing the tab in the app does.",
3930
+ "",
3931
+ "Usage:",
3932
+ " runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]",
3933
+ "",
3934
+ "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:",
3935
+ "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.",
3936
+ "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.",
3937
+ "",
3938
+ "Options:",
3939
+ " --panel <panel-id> Panel id, from runpane panels list",
3940
+ " --yes Skip the confirmation prompt",
3941
+ " --pane-dir <path> Connect to a specific Pane data directory",
3942
+ " --json Print machine-readable output",
3943
+ "",
3944
+ "Examples:",
3945
+ " runpane panels close --panel <panel-id> --yes --json"
3946
+ ],
3533
3947
  "lock": [
3534
3948
  "Usage:",
3535
3949
  " runpane lock <acquire|release|list> [options]",
@@ -3876,25 +4290,109 @@ exports.RUNPANE_CONTRACT = {
3876
4290
  " --all Clear every item of the Session",
3877
4291
  " --pane-dir <path> Connect to a specific Pane data directory",
3878
4292
  " --json Print machine-readable output"
3879
- ]
3880
- },
3881
- "pip": {
3882
- "default": [
4293
+ ],
4294
+ "panels pause": [
3883
4295
  "Usage:",
3884
- " runpane",
3885
- " runpane setup",
3886
- " runpane install [client|daemon] [options]",
3887
- " runpane update [options]",
3888
- " runpane version",
3889
- " runpane doctor",
3890
- " runpane doctor --report --body-file <path|->",
3891
- " runpane daemon repair [--pane-dir <path>] [--yes] [--json]",
3892
- " runpane agent-context [--json]",
3893
- " runpane mcp [--toolsets <name,...>] [--read-only]",
3894
- " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
3895
- " runpane repos list [--json]",
4296
+ " runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]",
4297
+ "",
4298
+ "Pauses one terminal tab: stops its process and marks it paused until",
4299
+ "`runpane panels resume --panel <panel-id>`, or its Pane or Session, resumes it.",
4300
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
4301
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
4302
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
4303
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
4304
+ "",
4305
+ "Options:",
4306
+ " --panel <panel-id> Terminal panel id",
4307
+ " --yes Skip the confirmation prompt",
4308
+ " --pane-dir <path> Connect to a specific Pane data directory",
4309
+ " --json Print machine-readable output"
4310
+ ],
4311
+ "panes pause": [
4312
+ "Usage:",
4313
+ " runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]",
4314
+ "",
4315
+ "Pauses every terminal tab of a Pane, run scripts included, until `runpane panes resume`",
4316
+ "resumes it. A Pane is paused while all of its terminal tabs are; `panes list` reports it.",
4317
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
4318
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
4319
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
4320
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
4321
+ "",
4322
+ "Options:",
4323
+ " --pane <pane-id> Pane id",
4324
+ " --yes Skip the confirmation prompt",
4325
+ " --pane-dir <path> Connect to a specific Pane data directory",
4326
+ " --json Print machine-readable output"
4327
+ ],
4328
+ "panes resume": [
4329
+ "Usage:",
4330
+ " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]",
4331
+ "",
4332
+ "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents",
4333
+ "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.",
4334
+ "`runpane watch` reports each resumed tab as panel.unpaused.",
4335
+ "",
4336
+ "Options:",
4337
+ " --pane <pane-id> Pane id",
4338
+ " --yes Skip the confirmation prompt",
4339
+ " --pane-dir <path> Connect to a specific Pane data directory",
4340
+ " --json Print machine-readable output"
4341
+ ],
4342
+ "sessions pause": [
4343
+ "Usage:",
4344
+ " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]",
4345
+ "",
4346
+ "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,",
4347
+ "until `runpane sessions resume` resumes them.",
4348
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
4349
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
4350
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
4351
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
4352
+ "",
4353
+ "Options:",
4354
+ " --session <id|name> Named Session id or exact name",
4355
+ " --pane-dir <path> Connect to a specific Pane data directory",
4356
+ " --json Print machine-readable output"
4357
+ ],
4358
+ "sessions resume": [
4359
+ "Usage:",
4360
+ " runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]",
4361
+ "",
4362
+ "Restarts the paused tabs of a Session's chat and Panes in their saved conversations.",
4363
+ "Running tabs are left alone. An archived Session is refused; restore it first.",
4364
+ "`runpane watch` reports each resumed tab as panel.unpaused.",
4365
+ "",
4366
+ "Options:",
4367
+ " --session <id|name> Named Session id or exact name",
4368
+ " --pane-dir <path> Connect to a specific Pane data directory",
4369
+ " --json Print machine-readable output"
4370
+ ]
4371
+ },
4372
+ "pip": {
4373
+ "default": [
4374
+ "Usage:",
4375
+ " runpane",
4376
+ " runpane setup",
4377
+ " runpane install [client|daemon] [options]",
4378
+ " runpane update [options]",
4379
+ " runpane version",
4380
+ " runpane doctor",
4381
+ " runpane doctor --report --body-file <path|->",
4382
+ " runpane daemon repair [--pane-dir <path>] [--yes] [--json]",
4383
+ " runpane agent-context [--json]",
4384
+ " runpane mcp [--toolsets <name,...>] [--read-only]",
4385
+ " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
4386
+ " runpane repos list [--json]",
3896
4387
  " runpane repos add --path <path> [--name <name>]",
4388
+ " runpane repos get [--repo <selector>] [--json]",
4389
+ " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]",
3897
4390
  " runpane repos rename --repo <selector> --name <name>",
4391
+ " runpane secrets list [--project <project>] [--json]",
4392
+ " runpane secrets set --project <project> --name <name> --yes (value on stdin)",
4393
+ " runpane secrets delete --project <project> --name <name> --yes",
4394
+ " runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...",
4395
+ " runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
3898
4396
  " runpane panes list [--repo <selector>] [--json]",
3899
4397
  " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]",
3900
4398
  " runpane workspace state [--repo <selector>] [--json]",
@@ -3903,6 +4401,7 @@ exports.RUNPANE_CONTRACT = {
3903
4401
  " runpane panes create --repo <selector> --name <name> --agent <codex|claude|cursor> [--base-branch <branch>] [--source user|agent] [--focus|--no-focus] [--wait-ready]",
3904
4402
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes",
3905
4403
  " runpane panes archive --session <id|name> --merged [--remove-worktree] [--dry-run] --yes",
4404
+ " runpane panes pause|resume --pane <pane-id> --yes [--json]",
3906
4405
  " python -m runpane panels create --pane <pane-id> --agent <codex|claude|cursor> [--source user|agent] [--focus|--no-focus] --yes",
3907
4406
  " runpane panels list --pane <pane-id> [--json]",
3908
4407
  " runpane panels output --panel <panel-id> [--limit <count>] [--json]",
@@ -3912,6 +4411,8 @@ exports.RUNPANE_CONTRACT = {
3912
4411
  " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]",
3913
4412
  " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]",
3914
4413
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
4414
+ " runpane panels close --panel <panel-id> --yes [--json]",
4415
+ " runpane panels pause --panel <panel-id> --yes [--json]",
3915
4416
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
3916
4417
  " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]",
3917
4418
  " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
@@ -4086,6 +4587,41 @@ exports.RUNPANE_CONTRACT = {
4086
4587
  " --dry-run",
4087
4588
  " --yes"
4088
4589
  ],
4590
+ "repos get": [
4591
+ "Usage:",
4592
+ " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]",
4593
+ "",
4594
+ "Shows a saved repository's Project Settings. For the build, run, and archive scripts it shows the saved value, the fallback from the repository's config file (pane.json, conductor.json, .gitpod.yml, or devcontainer.json), and which of the two Pane will run.",
4595
+ "",
4596
+ "Options:",
4597
+ " --repo <selector>",
4598
+ " --json",
4599
+ " --pane-dir <path>"
4600
+ ],
4601
+ "repos update": [
4602
+ "Usage:",
4603
+ " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]",
4604
+ "",
4605
+ "Changes a saved repository's Project Settings through the same save as the Project Settings dialog, so open Pane windows show the new values. Settings you do not pass keep their value. A cleared script falls back to the repository's config file.",
4606
+ "",
4607
+ "Options:",
4608
+ " --repo <selector>",
4609
+ " --name <name>",
4610
+ " --build-script <script>",
4611
+ " --run-script <script>",
4612
+ " --archive-script <script>",
4613
+ " --worktree-folder <path>",
4614
+ " --open-ide-command <command>",
4615
+ " --system-prompt <text>",
4616
+ " --env <json>",
4617
+ " --env-remove <name,...>",
4618
+ " --clear <setting,...>",
4619
+ " --from-json <path|->",
4620
+ " --dry-run",
4621
+ " --yes",
4622
+ " --json",
4623
+ " --pane-dir <path>"
4624
+ ],
4089
4625
  "repos rename": [
4090
4626
  "Usage:",
4091
4627
  " runpane repos rename --repo <selector> --name <name> --yes [--json]",
@@ -4099,6 +4635,93 @@ exports.RUNPANE_CONTRACT = {
4099
4635
  " --json Print machine-readable output",
4100
4636
  " --yes Skip confirmation for mutating commands"
4101
4637
  ],
4638
+ "secrets": [
4639
+ "Usage:",
4640
+ " python -m runpane secrets <list|set|delete|exec|request> [options]",
4641
+ "",
4642
+ "Pane secrets are named values, addressed as <project>/<NAME>, that every machine you saved in Pane keeps a copy of.",
4643
+ "Agents use them only through `runpane secrets exec`, which puts them in a command's environment. No command prints a value.",
4644
+ "Ask the person for a new one with `runpane secrets request`; they type it on a masked card.",
4645
+ "",
4646
+ "Commands:",
4647
+ " python -m runpane secrets list [--project <project>] [--json]",
4648
+ " python -m runpane secrets set --project <project> --name <name> --yes (value on stdin)",
4649
+ " python -m runpane secrets delete --project <project> --name <name> --yes",
4650
+ " python -m runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>] [--file <name>] -- <command>...",
4651
+ " python -m runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
4652
+ "",
4653
+ "A project is up to 64 letters, digits, \".\", \"_\" or \"-\". A name follows environment variable rules: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved."
4654
+ ],
4655
+ "secrets list": [
4656
+ "Usage:",
4657
+ " python -m runpane secrets list [--project <project>] [--json] [--pane-dir <path>]",
4658
+ "",
4659
+ "Lists the Pane secrets on this machine: project, name, when each was last set, and on which machine. It never shows a value.",
4660
+ "",
4661
+ "Options:",
4662
+ " --project <project> Only this project's secrets",
4663
+ " --json Print machine-readable output",
4664
+ " --pane-dir <path> Connect to a specific Pane data directory"
4665
+ ],
4666
+ "secrets set": [
4667
+ "Usage:",
4668
+ " printf %s \"$VALUE\" | python -m runpane secrets set --project <project> --name <name> --yes [--json]",
4669
+ "",
4670
+ "Saves the value on stdin as the Pane secret <project>/<name>, adding it or replacing the saved value. One trailing newline is dropped. Pane syncs it to your other machines.",
4671
+ "Agents should not set values they were given in chat. Ask the person with `runpane secrets request` instead.",
4672
+ "",
4673
+ "Options:",
4674
+ " --project <project> Secret project",
4675
+ " --name <name> Secret name, such as STRIPE_SECRET_KEY",
4676
+ " --yes Skip confirmation for mutating commands",
4677
+ " --json Print machine-readable output",
4678
+ " --pane-dir <path> Connect to a specific Pane data directory"
4679
+ ],
4680
+ "secrets delete": [
4681
+ "Usage:",
4682
+ " python -m runpane secrets delete --project <project> --name <name> --yes [--json]",
4683
+ "",
4684
+ "Deletes the Pane secret <project>/<name>. Your other machines delete it the next time they sync.",
4685
+ "",
4686
+ "Options:",
4687
+ " --project <project> Secret project",
4688
+ " --name <name> Secret name",
4689
+ " --yes Skip confirmation for mutating commands",
4690
+ " --json Print machine-readable output",
4691
+ " --pane-dir <path> Connect to a specific Pane data directory"
4692
+ ],
4693
+ "secrets exec": [
4694
+ "Usage:",
4695
+ " python -m runpane secrets exec --project <project> [--only <name,...>] [--env <VAR=NAME>]... [--file <name>]... -- <command>...",
4696
+ "",
4697
+ "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.",
4698
+ "With no --only, --env or --file, it injects every secret in the project.",
4699
+ "",
4700
+ "Options:",
4701
+ " --project <project> Secret project",
4702
+ " --only <name,...> Inject only these secrets",
4703
+ " --env <VAR=NAME> Inject secret NAME as VAR; repeatable",
4704
+ " --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",
4705
+ " --pane-dir <path> Connect to a specific Pane data directory",
4706
+ "",
4707
+ "Example:",
4708
+ " python -m runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks"
4709
+ ],
4710
+ "secrets request": [
4711
+ "Usage:",
4712
+ " python -m runpane secrets request --project <project> --name <name> --title <text> --reason <text> [--json]",
4713
+ "",
4714
+ "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`.",
4715
+ "A waiting result means the card is still open: run `runpane notify --resume <id>` to keep waiting.",
4716
+ "",
4717
+ "Options:",
4718
+ " --project <project> Secret project",
4719
+ " --name <name> Secret name, such as STRIPE_SECRET_KEY",
4720
+ " --title <text> What the secret is, such as \"Stripe test secret key\"",
4721
+ " --reason <text> What you need it for",
4722
+ " --json Print machine-readable output",
4723
+ " --pane-dir <path> Connect to a specific Pane data directory"
4724
+ ],
4102
4725
  "panes": [
4103
4726
  "Pane session commands.",
4104
4727
  "",
@@ -4114,6 +4737,7 @@ exports.RUNPANE_CONTRACT = {
4114
4737
  " runpane panes pin --pane <pane-id> --yes [--dry-run] [--json]",
4115
4738
  " runpane panes unpin --pane <pane-id> --yes [--dry-run] [--json]",
4116
4739
  " runpane panes rename --pane <pane-id> --name <new-name> --yes [--dry-run] [--json]",
4740
+ " runpane panes pause|resume --pane <pane-id> --yes [--json]",
4117
4741
  "",
4118
4742
  "Run \"runpane help panes <command>\" for command-specific options."
4119
4743
  ],
@@ -4168,8 +4792,8 @@ exports.RUNPANE_CONTRACT = {
4168
4792
  "What --follow does by default (see defaults.watch.follow in the contract):",
4169
4793
  " prints WATCH OK once when armed, then one line per event, with no heartbeats",
4170
4794
  " kinds: agent.report, agent.ready, agent.blocked, agent.idle, panel.exited, panel.stopped,",
4171
- " pane.gone, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged,",
4172
- " pr.base_changed, pr.base_deleted",
4795
+ " panel.paused, panel.unpaused, pane.gone, pane.associated, pane.detached,",
4796
+ " pr.conflicted, pr.checks, pr.merged, pr.base_changed, pr.base_deleted",
4173
4797
  " READY after 3m of quiet; BLOCKED after 30s; other lines batched at most every 10m",
4174
4798
  " (REPORT, BLOCKED, conflicts, base changes, and failed checks arrive at once)",
4175
4799
  " IDLE reminders at 10m, 30m, 1h, 3h, then daily",
@@ -4281,7 +4905,7 @@ exports.RUNPANE_CONTRACT = {
4281
4905
  " runpane panes archive --pane <pane-id> [--source user|agent] [--force] [--remove-worktree] [--dry-run] --yes [--json]",
4282
4906
  " runpane panes archive --session <id|name> --merged [--remove-worktree] [--source user|agent] [--dry-run] --yes [--json]",
4283
4907
  "",
4284
- "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.",
4908
+ "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.",
4285
4909
  "",
4286
4910
  "Options:",
4287
4911
  " --pane <pane-id>",
@@ -4366,6 +4990,8 @@ exports.RUNPANE_CONTRACT = {
4366
4990
  " runpane panels submit-composer --panel <panel-id> [--strategy auto|codex-ctrl-enter|enter|tab] --yes [--json]",
4367
4991
  " runpane panels wait --panel <panel-id> [--for initialized|ready|idle|text] [--json]",
4368
4992
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
4993
+ " runpane panels close --panel <panel-id> --yes [--json]",
4994
+ " runpane panels pause --panel <panel-id> --yes [--json]",
4369
4995
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
4370
4996
  "",
4371
4997
  "Run \"runpane help panels create\" or another command-specific topic for options."
@@ -4623,7 +5249,7 @@ exports.RUNPANE_CONTRACT = {
4623
5249
  ],
4624
5250
  "sessions set-agent": [
4625
5251
  "Usage:",
4626
- "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
5252
+ "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
4627
5253
  "",
4628
5254
  "Options:",
4629
5255
  " --session <id|name> Named Session id or exact name.",
@@ -4923,7 +5549,7 @@ exports.RUNPANE_CONTRACT = {
4923
5549
  ],
4924
5550
  "sessions": [
4925
5551
  "Usage:",
4926
- " runpane sessions <list|create|get|update|set-agent|associate|detach|overview> [options]",
5552
+ " runpane sessions <list|create|get|update|set-agent|associate|detach|overview|pause|resume> [options]",
4927
5553
  "",
4928
5554
  "Use a named Session to keep context, activity, and evidence attached to one orchestration thread."
4929
5555
  ],
@@ -4988,9 +5614,10 @@ exports.RUNPANE_CONTRACT = {
4988
5614
  "--resume), the same restart the app runs when it shows the panel. Nothing takes focus. A panel",
4989
5615
  "whose agent exited back to its shell counts as stopped: its saved command runs again in that",
4990
5616
  "shell. A panel that is already running is left alone and reported as already-running.",
5617
+ "A paused panel resumes and loses its paused mark.",
4991
5618
  "",
4992
5619
  "With --session or --all-stopped it resumes every stopped agent panel in that scope (a",
4993
- "Session's associated Panes, or every Pane), --concurrency at a time, skips running ones,",
5620
+ "Session's associated Panes, or every Pane), --concurrency at a time, skips running and paused ones,",
4994
5621
  "and returns one result per panel. With --wait-ready the resumed panels then wait together,",
4995
5622
  "and each result carries its own readiness and blocker. One panel failing does not stop the others.",
4996
5623
  "",
@@ -5022,6 +5649,25 @@ exports.RUNPANE_CONTRACT = {
5022
5649
  " --pane-dir <path> Connect to a specific Pane data directory",
5023
5650
  " --json Print machine-readable output"
5024
5651
  ],
5652
+ "panels close": [
5653
+ "Close a tab in a Pane, stopping its process, as closing the tab in the app does.",
5654
+ "",
5655
+ "Usage:",
5656
+ " python -m runpane panels close --panel <panel-id> --yes [--json] [--pane-dir <path>]",
5657
+ "",
5658
+ "Closes one tab (agent, terminal, browser or editor) the way its close button in the app does:",
5659
+ "a terminal tab's process is stopped and the tab is removed from every window showing the Pane.",
5660
+ "A Pane's permanent tabs cannot be closed. Closing the tab this command runs in stops this command too.",
5661
+ "",
5662
+ "Options:",
5663
+ " --panel <panel-id> Panel id, from runpane panels list",
5664
+ " --yes Skip the confirmation prompt",
5665
+ " --pane-dir <path> Connect to a specific Pane data directory",
5666
+ " --json Print machine-readable output",
5667
+ "",
5668
+ "Examples:",
5669
+ " python -m runpane panels close --panel <panel-id> --yes --json"
5670
+ ],
5025
5671
  "lock": [
5026
5672
  "Usage:",
5027
5673
  " python -m runpane lock <acquire|release|list> [options]",
@@ -5322,6 +5968,83 @@ exports.RUNPANE_CONTRACT = {
5322
5968
  " --all Clear every item of the Session",
5323
5969
  " --pane-dir <path> Connect to a specific Pane data directory",
5324
5970
  " --json Print machine-readable output"
5971
+ ],
5972
+ "panels pause": [
5973
+ "Usage:",
5974
+ " runpane panels pause --panel <panel-id> --yes [--json] [--pane-dir <path>]",
5975
+ "",
5976
+ "Pauses one terminal tab: stops its process and marks it paused until",
5977
+ "`runpane panels resume --panel <panel-id>`, or its Pane or Session, resumes it.",
5978
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
5979
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
5980
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
5981
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
5982
+ "",
5983
+ "Options:",
5984
+ " --panel <panel-id> Terminal panel id",
5985
+ " --yes Skip the confirmation prompt",
5986
+ " --pane-dir <path> Connect to a specific Pane data directory",
5987
+ " --json Print machine-readable output"
5988
+ ],
5989
+ "panes pause": [
5990
+ "Usage:",
5991
+ " runpane panes pause --pane <pane-id> --yes [--json] [--pane-dir <path>]",
5992
+ "",
5993
+ "Pauses every terminal tab of a Pane, run scripts included, until `runpane panes resume`",
5994
+ "resumes it. A Pane is paused while all of its terminal tabs are; `panes list` reports it.",
5995
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
5996
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
5997
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
5998
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
5999
+ "",
6000
+ "Options:",
6001
+ " --pane <pane-id> Pane id",
6002
+ " --yes Skip the confirmation prompt",
6003
+ " --pane-dir <path> Connect to a specific Pane data directory",
6004
+ " --json Print machine-readable output"
6005
+ ],
6006
+ "panes resume": [
6007
+ "Usage:",
6008
+ " runpane panes resume --pane <pane-id> --yes [--json] [--pane-dir <path>]",
6009
+ "",
6010
+ "Restarts a Pane's paused tabs in place, the same restart `panels resume` runs: agents",
6011
+ "relaunch in their saved conversations and report ready as usual. Running tabs are left alone.",
6012
+ "`runpane watch` reports each resumed tab as panel.unpaused.",
6013
+ "",
6014
+ "Options:",
6015
+ " --pane <pane-id> Pane id",
6016
+ " --yes Skip the confirmation prompt",
6017
+ " --pane-dir <path> Connect to a specific Pane data directory",
6018
+ " --json Print machine-readable output"
6019
+ ],
6020
+ "sessions pause": [
6021
+ "Usage:",
6022
+ " runpane sessions pause --session <id|name> [--json] [--pane-dir <path>]",
6023
+ "",
6024
+ "Pauses a Session's chat and the terminal tabs of every Pane in it that is not archived,",
6025
+ "until `runpane sessions resume` resumes them.",
6026
+ "Stopping works the way quitting Pane does, without asking, even while an agent is working.",
6027
+ "Each agent's conversation is kept. A paused tab stays stopped through clicks, app restarts",
6028
+ "and updates, and `panels resume --session` and `--all-stopped` skip it.",
6029
+ "`runpane watch` reports each tab as panel.paused under --follow, to a Session-scoped watch, or when --kinds lists it.",
6030
+ "",
6031
+ "Options:",
6032
+ " --session <id|name> Named Session id or exact name",
6033
+ " --pane-dir <path> Connect to a specific Pane data directory",
6034
+ " --json Print machine-readable output"
6035
+ ],
6036
+ "sessions resume": [
6037
+ "Usage:",
6038
+ " runpane sessions resume --session <id|name> [--json] [--pane-dir <path>]",
6039
+ "",
6040
+ "Restarts the paused tabs of a Session's chat and Panes in their saved conversations.",
6041
+ "Running tabs are left alone. An archived Session is refused; restore it first.",
6042
+ "`runpane watch` reports each resumed tab as panel.unpaused.",
6043
+ "",
6044
+ "Options:",
6045
+ " --session <id|name> Named Session id or exact name",
6046
+ " --pane-dir <path> Connect to a specific Pane data directory",
6047
+ " --json Print machine-readable output"
5325
6048
  ]
5326
6049
  }
5327
6050
  },
@@ -5394,7 +6117,16 @@ exports.RUNPANE_CONTRACT = {
5394
6117
  "runpane mcp",
5395
6118
  "runpane repos list --json",
5396
6119
  "runpane repos add --path /path/to/repo --name Pane --yes --json",
6120
+ "runpane repos get --repo Pane --json",
6121
+ "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json",
6122
+ "runpane repos update --repo Pane --clear run-script --yes --json",
6123
+ "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",
5397
6124
  "runpane repos rename --repo 3 --name Lev --yes --json",
6125
+ "runpane secrets list --json",
6126
+ "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes",
6127
+ "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json",
6128
+ "runpane secrets exec --project stripe --only STRIPE_SECRET_KEY -- pnpm test:webhooks",
6129
+ "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook tests against Stripe test mode.\" --json",
5398
6130
  "runpane panes list --repo active --json",
5399
6131
  "runpane panes cost --pane <pane-id> --json",
5400
6132
  "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",
@@ -5410,7 +6142,7 @@ exports.RUNPANE_CONTRACT = {
5410
6142
  "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]",
5411
6143
  "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
5412
6144
  "runpane sessions unpin --session <id|name> [--json] [--pane-dir <path>]",
5413
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
6145
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
5414
6146
  "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
5415
6147
  "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
5416
6148
  "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -5428,6 +6160,9 @@ exports.RUNPANE_CONTRACT = {
5428
6160
  "runpane panels last-message --panel <panel-id> --json",
5429
6161
  "runpane panels resume --panel <panel-id> --wait-ready --yes --json",
5430
6162
  "runpane panels resume --session <id|name> --wait-ready --yes --json",
6163
+ "runpane panels close --panel <panel-id> --yes --json",
6164
+ "runpane panes pause --pane <pane-id> --yes --json",
6165
+ "runpane panes resume --pane <pane-id> --yes --json",
5431
6166
  "runpane docs search --query \"archive a pane\" --json",
5432
6167
  "runpane links create --pane <pane-id> --json",
5433
6168
  "runpane panes git-status --pane <pane-id> --json",
@@ -5456,12 +6191,15 @@ exports.RUNPANE_CONTRACT = {
5456
6191
  "`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.",
5457
6192
  "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.",
5458
6193
  "`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.",
6194
+ "`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.",
6195
+ "`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`.",
5459
6196
  "`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.",
6197
+ "`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 ...`.",
5460
6198
  "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.",
5461
6199
  "`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.",
5462
6200
  "`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.",
5463
6201
  "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.",
5464
- "`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.",
6202
+ "`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.",
5465
6203
  "`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.",
5466
6204
  "`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`.",
5467
6205
  "`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.",
@@ -5493,7 +6231,8 @@ exports.RUNPANE_CONTRACT = {
5493
6231
  "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.",
5494
6232
  "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.",
5495
6233
  "`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.",
5496
- "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.",
6234
+ "`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`.",
6235
+ "`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.",
5497
6236
  "`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.",
5498
6237
  "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.",
5499
6238
  "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.",
@@ -5511,7 +6250,7 @@ exports.RUNPANE_CONTRACT = {
5511
6250
  "The PyPI package uses `source=pip` for all Python consumers, including pip, pipx, uvx, and `python -m runpane`.",
5512
6251
  "Wrappers should prefer `https://runpane.com/api/download?platform=<platform>&arch=<arch>&format=<format>&version=<version>&channel=<channel>&source=<npm|pip>`.",
5513
6252
  "If the website route cannot satisfy the download, wrappers may fall back to the matching GitHub release asset and print a warning that website attribution may be incomplete for that run.",
5514
- "Wrappers emit best-effort telemetry to `https://runpane.com/api/runpane/telemetry` for command failures, download request/success/failure, and GitHub fallback usage. Routine command starts and successes emit nothing. A command failure is a thrown error, or a non-zero exit from `install` or `update` (also when setup runs them); other exit codes are documented results (such as `panels wait` not ready or `doctor` findings) and emit nothing. A failure event carries the command, `failure_stage`, `failure_category`, `exit_code` when known, and `error_code` (the code printed in the `--json` error). Both wrappers share a per-install limit in `<PANE_DIR>/runpane-wrapper-telemetry.json`: one failure event per cause per hour and at most 10 per hour.",
6253
+ "Wrappers emit best-effort telemetry to `https://runpane.com/api/runpane/telemetry` for command failures, download request/success/failure, and GitHub fallback usage. Routine command starts and successes emit nothing. A command failure is a thrown error, or a non-zero exit from `install` or `update` (also when setup runs them); other exit codes are documented results (such as `panels wait` not ready or `doctor` findings) and emit nothing. Polling and status commands (`panes list`, `panels wait`, `watch`, `panes archive`, `workspace state`, `agents status`, `doctor`) emit no failure events, and neither does a `not_found` failure outside `install` and `update`. A failure event carries the command, `failure_stage`, `failure_category`, `exit_code` when known, and `error_code` (the code printed in the `--json` error). Both wrappers share a per-install limit in `<PANE_DIR>/runpane-wrapper-telemetry.json`: one failure event per cause per hour and at most 10 per hour.",
5515
6254
  "Wrapper telemetry uses a persisted anonymous `install_id` in the form `install_<uuid>` and PostHog `distinct_id = install:<install_id>` so installs reporting failures or downloads can be counted with `count(DISTINCT properties.install_id)`; this is not a count of all CLI users.",
5516
6255
  "Wrapper telemetry must be disabled in CI (`CI`, `GITHUB_ACTIONS`, `GITLAB_CI`, `BUILDKITE`, `CIRCLECI`, `TF_BUILD`, `JENKINS_URL`, `TEAMCITY_VERSION` or `CODEBUILD_BUILD_ID` set), when `DO_NOT_TRACK=1` or `RUNPANE_TELEMETRY_DISABLED` is set, and when the local config explicitly disables analytics. It must not include raw paths, labels, prompts, raw error text, or environment values.",
5517
6256
  "Desktop local control reports useful failures as `runpane_local_control_failed`; normal polling, wait deadlines, and optional agent unavailability emit nothing. Reports contain coarse operation and failure classification only, with a five-minute deduplication interval and a maximum of 20 per hour per app process. Handled CLI failures are ordinary events, not exceptions."
@@ -5895,6 +6634,14 @@ exports.RUNPANE_CONTRACT = {
5895
6634
  "--yes",
5896
6635
  "--json"
5897
6636
  ],
6637
+ [
6638
+ "panels",
6639
+ "close",
6640
+ "--panel",
6641
+ "panel-1",
6642
+ "--yes",
6643
+ "--json"
6644
+ ],
5898
6645
  [
5899
6646
  "sessions",
5900
6647
  "list",
@@ -6370,6 +7117,30 @@ exports.RUNPANE_CONTRACT = {
6370
7117
  "--yes",
6371
7118
  "--json"
6372
7119
  ],
7120
+ [
7121
+ "repos",
7122
+ "get",
7123
+ "--repo",
7124
+ "Pane",
7125
+ "--json"
7126
+ ],
7127
+ [
7128
+ "repos",
7129
+ "update",
7130
+ "--repo",
7131
+ "Pane",
7132
+ "--build-script",
7133
+ "pnpm install",
7134
+ "--run-script",
7135
+ "pnpm dev",
7136
+ "--worktree-folder",
7137
+ "../wt",
7138
+ "--clear",
7139
+ "archive-script,system-prompt",
7140
+ "--yes",
7141
+ "--dry-run",
7142
+ "--json"
7143
+ ],
6373
7144
  [
6374
7145
  "watch",
6375
7146
  "--as",
@@ -6703,6 +7474,84 @@ exports.RUNPANE_CONTRACT = {
6703
7474
  "--resume",
6704
7475
  "n-1",
6705
7476
  "--json"
7477
+ ],
7478
+ [
7479
+ "secrets",
7480
+ "list",
7481
+ "--project",
7482
+ "stripe",
7483
+ "--json"
7484
+ ],
7485
+ [
7486
+ "secrets",
7487
+ "set",
7488
+ "--project",
7489
+ "stripe",
7490
+ "--name",
7491
+ "STRIPE_SECRET_KEY",
7492
+ "--yes"
7493
+ ],
7494
+ [
7495
+ "secrets",
7496
+ "delete",
7497
+ "--project",
7498
+ "stripe",
7499
+ "--name",
7500
+ "STRIPE_SECRET_KEY",
7501
+ "--yes",
7502
+ "--json"
7503
+ ],
7504
+ [
7505
+ "secrets",
7506
+ "exec",
7507
+ "--project",
7508
+ "stripe",
7509
+ "--only",
7510
+ "A,B",
7511
+ "--env",
7512
+ "KEY=STRIPE_SECRET_KEY",
7513
+ "--env=TOKEN=GH_TOKEN",
7514
+ "--file",
7515
+ "CERT",
7516
+ "--",
7517
+ "node",
7518
+ "-e",
7519
+ "run()",
7520
+ "--json"
7521
+ ],
7522
+ [
7523
+ "secrets",
7524
+ "exec",
7525
+ "--project",
7526
+ "qa",
7527
+ "sh",
7528
+ "-c",
7529
+ "echo ok"
7530
+ ],
7531
+ [
7532
+ "secrets",
7533
+ "request",
7534
+ "--project",
7535
+ "stripe",
7536
+ "--name",
7537
+ "STRIPE_SECRET_KEY",
7538
+ "--title",
7539
+ "Stripe test key",
7540
+ "--reason",
7541
+ "- for the webhook tests",
7542
+ "--json"
7543
+ ],
7544
+ [
7545
+ "repos",
7546
+ "update",
7547
+ "--repo",
7548
+ "Pane",
7549
+ "--env",
7550
+ "[{\"key\":\"API_URL\",\"source\":\"plain\",\"value\":\"x\"}]",
7551
+ "--env-remove",
7552
+ "OLD,STALE",
7553
+ "--yes",
7554
+ "--json"
6706
7555
  ]
6707
7556
  ],
6708
7557
  "topLevelHelpIncludes": [
@@ -7565,28 +8414,28 @@ exports.RUNPANE_CONTRACT = {
7565
8414
  },
7566
8415
  "additionalProperties": false
7567
8416
  },
7568
- "repoRenameRequest": {
8417
+ "repoGetRequest": {
7569
8418
  "type": "object",
7570
- "required": [
7571
- "repo",
7572
- "name"
7573
- ],
7574
8419
  "properties": {
7575
8420
  "repo": {
7576
- "type": "string"
7577
- },
7578
- "name": {
7579
- "type": "string",
7580
- "minLength": 1
8421
+ "anyOf": [
8422
+ {
8423
+ "type": "string"
8424
+ },
8425
+ {
8426
+ "type": "object"
8427
+ }
8428
+ ]
7581
8429
  }
7582
8430
  },
7583
8431
  "additionalProperties": false
7584
8432
  },
7585
- "repoRenameResult": {
8433
+ "repoGetResult": {
7586
8434
  "type": "object",
7587
8435
  "required": [
7588
8436
  "ok",
7589
- "repo"
8437
+ "repo",
8438
+ "settings"
7590
8439
  ],
7591
8440
  "properties": {
7592
8441
  "ok": {
@@ -7594,20 +8443,559 @@ exports.RUNPANE_CONTRACT = {
7594
8443
  },
7595
8444
  "repo": {
7596
8445
  "$ref": "#/jsonSchemas/repoListResult/properties/repos/items"
8446
+ },
8447
+ "settings": {
8448
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/settings"
7597
8449
  }
7598
8450
  },
7599
- "additionalProperties": false
7600
- },
7601
- "paneCreateRequest": {
7602
- "type": "object",
7603
- "required": [
7604
- "repo",
7605
- "panes"
7606
- ],
7607
- "properties": {
7608
- "repo": {
7609
- "oneOf": [
7610
- {
8451
+ "additionalProperties": false,
8452
+ "$defs": {
8453
+ "scriptSource": {
8454
+ "type": "object",
8455
+ "required": [
8456
+ "command",
8457
+ "source"
8458
+ ],
8459
+ "properties": {
8460
+ "command": {
8461
+ "type": "string"
8462
+ },
8463
+ "source": {
8464
+ "type": "string"
8465
+ }
8466
+ },
8467
+ "additionalProperties": false
8468
+ },
8469
+ "scriptSetting": {
8470
+ "type": "object",
8471
+ "required": [
8472
+ "value",
8473
+ "fallback",
8474
+ "effective"
8475
+ ],
8476
+ "properties": {
8477
+ "value": {
8478
+ "type": [
8479
+ "string",
8480
+ "null"
8481
+ ]
8482
+ },
8483
+ "fallback": {
8484
+ "anyOf": [
8485
+ {
8486
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/scriptSource"
8487
+ },
8488
+ {
8489
+ "type": "null"
8490
+ }
8491
+ ]
8492
+ },
8493
+ "effective": {
8494
+ "anyOf": [
8495
+ {
8496
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/scriptSource"
8497
+ },
8498
+ {
8499
+ "type": "null"
8500
+ }
8501
+ ]
8502
+ }
8503
+ },
8504
+ "additionalProperties": false
8505
+ },
8506
+ "settings": {
8507
+ "type": "object",
8508
+ "required": [
8509
+ "name",
8510
+ "path",
8511
+ "currentBranch",
8512
+ "worktreeFolder",
8513
+ "openIdeCommand",
8514
+ "systemPrompt",
8515
+ "configFile",
8516
+ "buildScript",
8517
+ "runScript",
8518
+ "archiveScript",
8519
+ "envVars"
8520
+ ],
8521
+ "properties": {
8522
+ "name": {
8523
+ "type": "string"
8524
+ },
8525
+ "path": {
8526
+ "type": "string"
8527
+ },
8528
+ "currentBranch": {
8529
+ "type": [
8530
+ "string",
8531
+ "null"
8532
+ ]
8533
+ },
8534
+ "worktreeFolder": {
8535
+ "type": [
8536
+ "string",
8537
+ "null"
8538
+ ]
8539
+ },
8540
+ "openIdeCommand": {
8541
+ "type": [
8542
+ "string",
8543
+ "null"
8544
+ ]
8545
+ },
8546
+ "systemPrompt": {
8547
+ "type": [
8548
+ "string",
8549
+ "null"
8550
+ ]
8551
+ },
8552
+ "configFile": {
8553
+ "type": [
8554
+ "string",
8555
+ "null"
8556
+ ]
8557
+ },
8558
+ "buildScript": {
8559
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/scriptSetting"
8560
+ },
8561
+ "runScript": {
8562
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/scriptSetting"
8563
+ },
8564
+ "archiveScript": {
8565
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/scriptSetting"
8566
+ },
8567
+ "envVars": {
8568
+ "type": "array",
8569
+ "items": {
8570
+ "$ref": "#/jsonSchemas/projectEnvVar"
8571
+ }
8572
+ }
8573
+ },
8574
+ "additionalProperties": false
8575
+ }
8576
+ }
8577
+ },
8578
+ "repoUpdateRequest": {
8579
+ "type": "object",
8580
+ "required": [
8581
+ "repo",
8582
+ "settings"
8583
+ ],
8584
+ "properties": {
8585
+ "repo": {
8586
+ "anyOf": [
8587
+ {
8588
+ "type": "string"
8589
+ },
8590
+ {
8591
+ "type": "object"
8592
+ }
8593
+ ]
8594
+ },
8595
+ "settings": {
8596
+ "type": "object",
8597
+ "minProperties": 1,
8598
+ "properties": {
8599
+ "name": {
8600
+ "type": "string",
8601
+ "minLength": 1
8602
+ },
8603
+ "buildScript": {
8604
+ "type": [
8605
+ "string",
8606
+ "null"
8607
+ ]
8608
+ },
8609
+ "runScript": {
8610
+ "type": [
8611
+ "string",
8612
+ "null"
8613
+ ]
8614
+ },
8615
+ "archiveScript": {
8616
+ "type": [
8617
+ "string",
8618
+ "null"
8619
+ ]
8620
+ },
8621
+ "worktreeFolder": {
8622
+ "type": [
8623
+ "string",
8624
+ "null"
8625
+ ]
8626
+ },
8627
+ "openIdeCommand": {
8628
+ "type": [
8629
+ "string",
8630
+ "null"
8631
+ ]
8632
+ },
8633
+ "systemPrompt": {
8634
+ "type": [
8635
+ "string",
8636
+ "null"
8637
+ ]
8638
+ },
8639
+ "envVars": {
8640
+ "type": "object",
8641
+ "description": "set adds or replaces variables by key; remove deletes them by key.",
8642
+ "minProperties": 1,
8643
+ "properties": {
8644
+ "set": {
8645
+ "type": "array",
8646
+ "items": {
8647
+ "$ref": "#/jsonSchemas/projectEnvVar"
8648
+ }
8649
+ },
8650
+ "remove": {
8651
+ "type": "array",
8652
+ "items": {
8653
+ "type": "string",
8654
+ "minLength": 1
8655
+ }
8656
+ }
8657
+ },
8658
+ "additionalProperties": false
8659
+ }
8660
+ },
8661
+ "additionalProperties": false
8662
+ },
8663
+ "dryRun": {
8664
+ "type": "boolean"
8665
+ }
8666
+ },
8667
+ "additionalProperties": false
8668
+ },
8669
+ "repoUpdateResult": {
8670
+ "type": "object",
8671
+ "required": [
8672
+ "ok",
8673
+ "changed",
8674
+ "repo",
8675
+ "settings"
8676
+ ],
8677
+ "properties": {
8678
+ "ok": {
8679
+ "const": true
8680
+ },
8681
+ "dryRun": {
8682
+ "const": true
8683
+ },
8684
+ "changed": {
8685
+ "type": "array",
8686
+ "items": {
8687
+ "enum": [
8688
+ "name",
8689
+ "buildScript",
8690
+ "runScript",
8691
+ "archiveScript",
8692
+ "worktreeFolder",
8693
+ "openIdeCommand",
8694
+ "systemPrompt",
8695
+ "envVars"
8696
+ ]
8697
+ }
8698
+ },
8699
+ "repo": {
8700
+ "$ref": "#/jsonSchemas/repoListResult/properties/repos/items"
8701
+ },
8702
+ "settings": {
8703
+ "$ref": "#/jsonSchemas/repoGetResult/$defs/settings"
8704
+ }
8705
+ },
8706
+ "additionalProperties": false
8707
+ },
8708
+ "repoRenameRequest": {
8709
+ "type": "object",
8710
+ "required": [
8711
+ "repo",
8712
+ "name"
8713
+ ],
8714
+ "properties": {
8715
+ "repo": {
8716
+ "type": "string"
8717
+ },
8718
+ "name": {
8719
+ "type": "string",
8720
+ "minLength": 1
8721
+ }
8722
+ },
8723
+ "additionalProperties": false
8724
+ },
8725
+ "repoRenameResult": {
8726
+ "type": "object",
8727
+ "required": [
8728
+ "ok",
8729
+ "repo"
8730
+ ],
8731
+ "properties": {
8732
+ "ok": {
8733
+ "const": true
8734
+ },
8735
+ "repo": {
8736
+ "$ref": "#/jsonSchemas/repoListResult/properties/repos/items"
8737
+ }
8738
+ },
8739
+ "additionalProperties": false
8740
+ },
8741
+ "secretSummary": {
8742
+ "type": "object",
8743
+ "required": [
8744
+ "project",
8745
+ "name",
8746
+ "updatedAt",
8747
+ "machine"
8748
+ ],
8749
+ "properties": {
8750
+ "project": {
8751
+ "type": "string"
8752
+ },
8753
+ "name": {
8754
+ "type": "string"
8755
+ },
8756
+ "updatedAt": {
8757
+ "type": "string",
8758
+ "description": "ISO time it was last set."
8759
+ },
8760
+ "machine": {
8761
+ "type": "string",
8762
+ "description": "The machine where it was last set."
8763
+ }
8764
+ },
8765
+ "additionalProperties": false
8766
+ },
8767
+ "secretListRequest": {
8768
+ "type": "object",
8769
+ "properties": {
8770
+ "project": {
8771
+ "type": "string"
8772
+ }
8773
+ },
8774
+ "additionalProperties": false
8775
+ },
8776
+ "secretListResult": {
8777
+ "type": "object",
8778
+ "required": [
8779
+ "ok",
8780
+ "secrets",
8781
+ "storage"
8782
+ ],
8783
+ "properties": {
8784
+ "ok": {
8785
+ "const": true
8786
+ },
8787
+ "secrets": {
8788
+ "type": "array",
8789
+ "items": {
8790
+ "$ref": "#/jsonSchemas/secretSummary"
8791
+ }
8792
+ },
8793
+ "storage": {
8794
+ "type": "object",
8795
+ "description": "Where this machine keeps values. encrypted is false only for the file store on a machine without an OS keyring.",
8796
+ "required": [
8797
+ "kind",
8798
+ "encrypted"
8799
+ ],
8800
+ "properties": {
8801
+ "kind": {
8802
+ "enum": [
8803
+ "keychain",
8804
+ "file"
8805
+ ]
8806
+ },
8807
+ "encrypted": {
8808
+ "type": "boolean"
8809
+ }
8810
+ },
8811
+ "additionalProperties": false
8812
+ }
8813
+ },
8814
+ "additionalProperties": false
8815
+ },
8816
+ "secretSetRequest": {
8817
+ "description": "What `runpane secrets set` sends on runpane:secrets:set. value comes from stdin.",
8818
+ "type": "object",
8819
+ "required": [
8820
+ "project",
8821
+ "name",
8822
+ "value"
8823
+ ],
8824
+ "properties": {
8825
+ "project": {
8826
+ "type": "string",
8827
+ "minLength": 1
8828
+ },
8829
+ "name": {
8830
+ "type": "string",
8831
+ "minLength": 1
8832
+ },
8833
+ "value": {
8834
+ "type": "string",
8835
+ "minLength": 1
8836
+ }
8837
+ },
8838
+ "additionalProperties": false
8839
+ },
8840
+ "secretSetResult": {
8841
+ "type": "object",
8842
+ "required": [
8843
+ "ok",
8844
+ "replaced",
8845
+ "secret"
8846
+ ],
8847
+ "properties": {
8848
+ "ok": {
8849
+ "const": true
8850
+ },
8851
+ "replaced": {
8852
+ "type": "boolean"
8853
+ },
8854
+ "secret": {
8855
+ "$ref": "#/jsonSchemas/secretSummary"
8856
+ }
8857
+ },
8858
+ "additionalProperties": false
8859
+ },
8860
+ "secretDeleteRequest": {
8861
+ "type": "object",
8862
+ "required": [
8863
+ "project",
8864
+ "name"
8865
+ ],
8866
+ "properties": {
8867
+ "project": {
8868
+ "type": "string",
8869
+ "minLength": 1
8870
+ },
8871
+ "name": {
8872
+ "type": "string",
8873
+ "minLength": 1
8874
+ }
8875
+ },
8876
+ "additionalProperties": false
8877
+ },
8878
+ "secretDeleteResult": {
8879
+ "type": "object",
8880
+ "required": [
8881
+ "ok",
8882
+ "deleted"
8883
+ ],
8884
+ "properties": {
8885
+ "ok": {
8886
+ "const": true
8887
+ },
8888
+ "deleted": {
8889
+ "type": "object",
8890
+ "required": [
8891
+ "project",
8892
+ "name"
8893
+ ],
8894
+ "properties": {
8895
+ "project": {
8896
+ "type": "string"
8897
+ },
8898
+ "name": {
8899
+ "type": "string"
8900
+ }
8901
+ },
8902
+ "additionalProperties": false
8903
+ }
8904
+ },
8905
+ "additionalProperties": false
8906
+ },
8907
+ "projectEnvVar": {
8908
+ "description": "A project environment variable. Plain values are shown in full; keychain and Pane secret variables are references, never values.",
8909
+ "oneOf": [
8910
+ {
8911
+ "type": "object",
8912
+ "required": [
8913
+ "key",
8914
+ "source",
8915
+ "value"
8916
+ ],
8917
+ "properties": {
8918
+ "key": {
8919
+ "type": "string",
8920
+ "minLength": 1
8921
+ },
8922
+ "source": {
8923
+ "const": "plain"
8924
+ },
8925
+ "value": {
8926
+ "type": "string"
8927
+ }
8928
+ },
8929
+ "additionalProperties": false
8930
+ },
8931
+ {
8932
+ "type": "object",
8933
+ "description": "An existing macOS keychain generic-password item.",
8934
+ "required": [
8935
+ "key",
8936
+ "source",
8937
+ "service",
8938
+ "account"
8939
+ ],
8940
+ "properties": {
8941
+ "key": {
8942
+ "type": "string",
8943
+ "minLength": 1
8944
+ },
8945
+ "source": {
8946
+ "const": "keychain"
8947
+ },
8948
+ "service": {
8949
+ "type": "string",
8950
+ "minLength": 1
8951
+ },
8952
+ "account": {
8953
+ "type": "string",
8954
+ "minLength": 1
8955
+ }
8956
+ },
8957
+ "additionalProperties": false
8958
+ },
8959
+ {
8960
+ "type": "object",
8961
+ "description": "The Pane secret project/name.",
8962
+ "required": [
8963
+ "key",
8964
+ "source",
8965
+ "project",
8966
+ "name"
8967
+ ],
8968
+ "properties": {
8969
+ "key": {
8970
+ "type": "string",
8971
+ "minLength": 1
8972
+ },
8973
+ "source": {
8974
+ "const": "secret"
8975
+ },
8976
+ "project": {
8977
+ "type": "string",
8978
+ "minLength": 1
8979
+ },
8980
+ "name": {
8981
+ "type": "string",
8982
+ "minLength": 1
8983
+ }
8984
+ },
8985
+ "additionalProperties": false
8986
+ }
8987
+ ]
8988
+ },
8989
+ "paneCreateRequest": {
8990
+ "type": "object",
8991
+ "required": [
8992
+ "repo",
8993
+ "panes"
8994
+ ],
8995
+ "properties": {
8996
+ "repo": {
8997
+ "oneOf": [
8998
+ {
7611
8999
  "type": "string"
7612
9000
  },
7613
9001
  {
@@ -8270,6 +9658,14 @@ exports.RUNPANE_CONTRACT = {
8270
9658
  "lastActivity": {
8271
9659
  "type": "string"
8272
9660
  },
9661
+ "inactiveSince": {
9662
+ "type": "string",
9663
+ "description": "When the Pane was last used: the latest terminal output or input in its tabs, or the last time the person selected it (ISO 8601)."
9664
+ },
9665
+ "paused": {
9666
+ "$ref": "#/jsonSchemas/pausedMark",
9667
+ "description": "Set while every terminal tab of the Pane is paused: the latest tab's mark."
9668
+ },
8273
9669
  "archived": {
8274
9670
  "type": "boolean"
8275
9671
  },
@@ -8654,6 +10050,8 @@ exports.RUNPANE_CONTRACT = {
8654
10050
  "pane.gone",
8655
10051
  "panel.exited",
8656
10052
  "panel.stopped",
10053
+ "panel.paused",
10054
+ "panel.unpaused",
8657
10055
  "agent.report",
8658
10056
  "agent.report.missing",
8659
10057
  "pane.associated",
@@ -8690,6 +10088,9 @@ exports.RUNPANE_CONTRACT = {
8690
10088
  "panelId": {
8691
10089
  "type": "string"
8692
10090
  },
10091
+ "panelTitle": {
10092
+ "type": "string"
10093
+ },
8693
10094
  "agentType": {
8694
10095
  "type": "string"
8695
10096
  },
@@ -8826,6 +10227,39 @@ exports.RUNPANE_CONTRACT = {
8826
10227
  "type": "string",
8827
10228
  "description": "Added to watch --json NDJSON events. Persist with gen after processing for numeric rearm."
8828
10229
  },
10230
+ "panels": {
10231
+ "type": "array",
10232
+ "items": {
10233
+ "type": "object",
10234
+ "required": [
10235
+ "panelId",
10236
+ "title"
10237
+ ],
10238
+ "properties": {
10239
+ "panelId": {
10240
+ "type": "string"
10241
+ },
10242
+ "title": {
10243
+ "type": "string"
10244
+ },
10245
+ "agentType": {
10246
+ "type": "string"
10247
+ },
10248
+ "agentState": {
10249
+ "enum": [
10250
+ "blocked",
10251
+ "working",
10252
+ "idle",
10253
+ "unknown"
10254
+ ]
10255
+ },
10256
+ "running": {
10257
+ "type": "boolean"
10258
+ }
10259
+ },
10260
+ "additionalProperties": false
10261
+ }
10262
+ },
8829
10263
  "lastOutput": {
8830
10264
  "type": "string",
8831
10265
  "description": "What an agent.report.missing entry's agent said last, up to 2,000 characters (the end is kept)."
@@ -9431,6 +10865,60 @@ exports.RUNPANE_CONTRACT = {
9431
10865
  }
9432
10866
  },
9433
10867
  "additionalProperties": false
10868
+ },
10869
+ "busyAgents": {
10870
+ "type": "array",
10871
+ "description": "Agents in the Pane that are mid-turn (working) or waiting for an answer (blocked). Archiving would stop them, so archive refuses with agent-busy unless --force.",
10872
+ "items": {
10873
+ "type": "object",
10874
+ "required": [
10875
+ "panelId",
10876
+ "title",
10877
+ "state"
10878
+ ],
10879
+ "properties": {
10880
+ "panelId": {
10881
+ "type": "string"
10882
+ },
10883
+ "title": {
10884
+ "type": "string"
10885
+ },
10886
+ "state": {
10887
+ "enum": [
10888
+ "working",
10889
+ "blocked"
10890
+ ]
10891
+ }
10892
+ },
10893
+ "additionalProperties": false
10894
+ }
10895
+ },
10896
+ "unsentInput": {
10897
+ "type": "array",
10898
+ "description": "Tabs holding input a person typed that archiving would lose: an agent composer's unsent text or an editor's unsaved edits. Archive refuses with unsent-input unless --force.",
10899
+ "items": {
10900
+ "type": "object",
10901
+ "required": [
10902
+ "panelId",
10903
+ "title",
10904
+ "kind"
10905
+ ],
10906
+ "properties": {
10907
+ "panelId": {
10908
+ "type": "string"
10909
+ },
10910
+ "title": {
10911
+ "type": "string"
10912
+ },
10913
+ "kind": {
10914
+ "enum": [
10915
+ "composer",
10916
+ "editor"
10917
+ ]
10918
+ }
10919
+ },
10920
+ "additionalProperties": false
10921
+ }
9434
10922
  }
9435
10923
  },
9436
10924
  "additionalProperties": false
@@ -9507,7 +10995,9 @@ exports.RUNPANE_CONTRACT = {
9507
10995
  "uncommitted-changes",
9508
10996
  "unpushed-commits",
9509
10997
  "uncommitted-and-unpushed",
9510
- "status-unknown"
10998
+ "status-unknown",
10999
+ "agent-busy",
11000
+ "unsent-input"
9511
11001
  ]
9512
11002
  },
9513
11003
  "message": {
@@ -9569,6 +11059,12 @@ exports.RUNPANE_CONTRACT = {
9569
11059
  },
9570
11060
  "worktreeWillRemain": {
9571
11061
  "const": true
11062
+ },
11063
+ "busyAgents": {
11064
+ "$ref": "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/busyAgents"
11065
+ },
11066
+ "unsentInput": {
11067
+ "$ref": "#/jsonSchemas/paneArchiveResult/oneOf/0/properties/safetyCheck/properties/unsentInput"
9572
11068
  }
9573
11069
  },
9574
11070
  "additionalProperties": false
@@ -9678,6 +11174,9 @@ exports.RUNPANE_CONTRACT = {
9678
11174
  "configured",
9679
11175
  "agent"
9680
11176
  ]
11177
+ },
11178
+ "paused": {
11179
+ "$ref": "#/jsonSchemas/pausedMark"
9681
11180
  }
9682
11181
  },
9683
11182
  "additionalProperties": false
@@ -10502,6 +12001,9 @@ exports.RUNPANE_CONTRACT = {
10502
12001
  },
10503
12002
  "report": {
10504
12003
  "$ref": "#/jsonSchemas/agentReport"
12004
+ },
12005
+ "paused": {
12006
+ "$ref": "#/jsonSchemas/pausedMark"
10505
12007
  }
10506
12008
  },
10507
12009
  "additionalProperties": false
@@ -11443,6 +12945,50 @@ exports.RUNPANE_CONTRACT = {
11443
12945
  },
11444
12946
  "additionalProperties": false
11445
12947
  },
12948
+ "panelCloseRequest": {
12949
+ "type": "object",
12950
+ "required": [
12951
+ "panelId"
12952
+ ],
12953
+ "properties": {
12954
+ "panelId": {
12955
+ "type": "string"
12956
+ }
12957
+ },
12958
+ "additionalProperties": false
12959
+ },
12960
+ "panelCloseResult": {
12961
+ "type": "object",
12962
+ "required": [
12963
+ "ok",
12964
+ "paneId",
12965
+ "panelId",
12966
+ "type",
12967
+ "title"
12968
+ ],
12969
+ "properties": {
12970
+ "ok": {
12971
+ "const": true
12972
+ },
12973
+ "generation": {
12974
+ "type": "number"
12975
+ },
12976
+ "paneId": {
12977
+ "type": "string"
12978
+ },
12979
+ "panelId": {
12980
+ "type": "string"
12981
+ },
12982
+ "type": {
12983
+ "type": "string",
12984
+ "description": "The closed tab's type, such as terminal, browser or editor."
12985
+ },
12986
+ "title": {
12987
+ "type": "string"
12988
+ }
12989
+ },
12990
+ "additionalProperties": false
12991
+ },
11446
12992
  "sessionListResult": {
11447
12993
  "type": "object",
11448
12994
  "required": [
@@ -11483,6 +13029,77 @@ exports.RUNPANE_CONTRACT = {
11483
13029
  },
11484
13030
  "internalSessionId": {
11485
13031
  "type": "string"
13032
+ },
13033
+ "panes": {
13034
+ "type": "object",
13035
+ "description": "Only when the update archived the Session: what happened to each associated Pane.",
13036
+ "required": [
13037
+ "archivedPaneIds",
13038
+ "keptPanes",
13039
+ "failedPanes"
13040
+ ],
13041
+ "properties": {
13042
+ "archivedPaneIds": {
13043
+ "type": "array",
13044
+ "items": {
13045
+ "type": "string"
13046
+ }
13047
+ },
13048
+ "keptPanes": {
13049
+ "type": "array",
13050
+ "items": {
13051
+ "type": "object",
13052
+ "required": [
13053
+ "paneId",
13054
+ "name",
13055
+ "code"
13056
+ ],
13057
+ "properties": {
13058
+ "paneId": {
13059
+ "type": "string"
13060
+ },
13061
+ "name": {
13062
+ "type": "string"
13063
+ },
13064
+ "code": {
13065
+ "enum": [
13066
+ "uncommitted-changes",
13067
+ "unpushed-commits",
13068
+ "uncommitted-and-unpushed",
13069
+ "status-unknown",
13070
+ "agent-busy",
13071
+ "unsent-input"
13072
+ ]
13073
+ }
13074
+ },
13075
+ "additionalProperties": false
13076
+ }
13077
+ },
13078
+ "failedPanes": {
13079
+ "type": "array",
13080
+ "items": {
13081
+ "type": "object",
13082
+ "required": [
13083
+ "paneId",
13084
+ "name",
13085
+ "error"
13086
+ ],
13087
+ "properties": {
13088
+ "paneId": {
13089
+ "type": "string"
13090
+ },
13091
+ "name": {
13092
+ "type": "string"
13093
+ },
13094
+ "error": {
13095
+ "type": "string"
13096
+ }
13097
+ },
13098
+ "additionalProperties": false
13099
+ }
13100
+ }
13101
+ },
13102
+ "additionalProperties": false
11486
13103
  }
11487
13104
  },
11488
13105
  "additionalProperties": false
@@ -12232,6 +13849,8 @@ exports.RUNPANE_CONTRACT = {
12232
13849
  "unpushed-commits",
12233
13850
  "uncommitted-and-unpushed",
12234
13851
  "status-unknown",
13852
+ "agent-busy",
13853
+ "unsent-input",
12235
13854
  "missing-pane",
12236
13855
  "already-archived",
12237
13856
  "main-repo",
@@ -12831,7 +14450,7 @@ exports.RUNPANE_CONTRACT = {
12831
14450
  "additionalProperties": false
12832
14451
  },
12833
14452
  "notifyRequest": {
12834
- "description": "What `runpane notify` sends on the runpane:notify daemon channel: the question fields, or resume alone.",
14453
+ "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.",
12835
14454
  "type": "object",
12836
14455
  "required": [
12837
14456
  "caller"
@@ -12842,6 +14461,7 @@ exports.RUNPANE_CONTRACT = {
12842
14461
  "options",
12843
14462
  "approve",
12844
14463
  "ask",
14464
+ "secret",
12845
14465
  "info"
12846
14466
  ]
12847
14467
  },
@@ -12877,6 +14497,25 @@ exports.RUNPANE_CONTRACT = {
12877
14497
  "action": {
12878
14498
  "$ref": "#/jsonSchemas/notifyAction"
12879
14499
  },
14500
+ "secret": {
14501
+ "type": "object",
14502
+ "description": "ui secret only: the Pane secret the answer is saved as.",
14503
+ "required": [
14504
+ "project",
14505
+ "name"
14506
+ ],
14507
+ "properties": {
14508
+ "project": {
14509
+ "type": "string",
14510
+ "minLength": 1
14511
+ },
14512
+ "name": {
14513
+ "type": "string",
14514
+ "minLength": 1
14515
+ }
14516
+ },
14517
+ "additionalProperties": false
14518
+ },
12880
14519
  "resume": {
12881
14520
  "type": "string",
12882
14521
  "minLength": 1
@@ -12944,15 +14583,49 @@ exports.RUNPANE_CONTRACT = {
12944
14583
  {
12945
14584
  "type": "object",
12946
14585
  "required": [
12947
- "delivered"
14586
+ "delivered"
14587
+ ],
14588
+ "properties": {
14589
+ "delivered": {
14590
+ "enum": [
14591
+ "screen",
14592
+ "inbox"
14593
+ ],
14594
+ "description": "screen: shown on the strip. inbox: listed in the Notify inbox because a question was on screen."
14595
+ }
14596
+ },
14597
+ "additionalProperties": false
14598
+ },
14599
+ {
14600
+ "type": "object",
14601
+ "description": "secret: the person saved the value as project/name. The value is never returned.",
14602
+ "required": [
14603
+ "status",
14604
+ "project",
14605
+ "name"
14606
+ ],
14607
+ "properties": {
14608
+ "status": {
14609
+ "const": "saved"
14610
+ },
14611
+ "project": {
14612
+ "type": "string"
14613
+ },
14614
+ "name": {
14615
+ "type": "string"
14616
+ }
14617
+ },
14618
+ "additionalProperties": false
14619
+ },
14620
+ {
14621
+ "type": "object",
14622
+ "description": "secret: the person declined; nothing was saved.",
14623
+ "required": [
14624
+ "status"
12948
14625
  ],
12949
14626
  "properties": {
12950
- "delivered": {
12951
- "enum": [
12952
- "screen",
12953
- "inbox"
12954
- ],
12955
- "description": "screen: shown on the strip. inbox: listed in the Notify inbox because a question was on screen."
14627
+ "status": {
14628
+ "const": "declined"
12956
14629
  }
12957
14630
  },
12958
14631
  "additionalProperties": false
@@ -13295,6 +14968,123 @@ exports.RUNPANE_CONTRACT = {
13295
14968
  "type": "string"
13296
14969
  }
13297
14970
  }
14971
+ },
14972
+ "pausedMark": {
14973
+ "type": "object",
14974
+ "required": [
14975
+ "at",
14976
+ "by"
14977
+ ],
14978
+ "properties": {
14979
+ "at": {
14980
+ "type": "string",
14981
+ "description": "When the tab was paused (ISO 8601)."
14982
+ },
14983
+ "by": {
14984
+ "enum": [
14985
+ "manual",
14986
+ "auto"
14987
+ ],
14988
+ "description": "manual: a person or agent paused it. auto: auto-pause paused it after idleHours without use."
14989
+ },
14990
+ "idleHours": {
14991
+ "type": "number"
14992
+ }
14993
+ },
14994
+ "additionalProperties": false
14995
+ },
14996
+ "pauseResult": {
14997
+ "type": "object",
14998
+ "required": [
14999
+ "ok",
15000
+ "action",
15001
+ "scope",
15002
+ "panelIds",
15003
+ "unchanged",
15004
+ "failed",
15005
+ "message",
15006
+ "nextCommand"
15007
+ ],
15008
+ "properties": {
15009
+ "ok": {
15010
+ "type": "boolean",
15011
+ "description": "False when a tab could not be resumed; the others still were."
15012
+ },
15013
+ "action": {
15014
+ "enum": [
15015
+ "paused",
15016
+ "resumed"
15017
+ ]
15018
+ },
15019
+ "scope": {
15020
+ "type": "object",
15021
+ "required": [
15022
+ "kind"
15023
+ ],
15024
+ "properties": {
15025
+ "kind": {
15026
+ "enum": [
15027
+ "panel",
15028
+ "pane",
15029
+ "session"
15030
+ ]
15031
+ },
15032
+ "panelId": {
15033
+ "type": "string"
15034
+ },
15035
+ "paneId": {
15036
+ "type": "string"
15037
+ },
15038
+ "paneName": {
15039
+ "type": "string"
15040
+ },
15041
+ "sessionId": {
15042
+ "type": "string"
15043
+ },
15044
+ "sessionName": {
15045
+ "type": "string"
15046
+ }
15047
+ },
15048
+ "additionalProperties": false
15049
+ },
15050
+ "panelIds": {
15051
+ "type": "array",
15052
+ "items": {
15053
+ "type": "string"
15054
+ },
15055
+ "description": "Tabs this call paused or resumed."
15056
+ },
15057
+ "unchanged": {
15058
+ "type": "number",
15059
+ "description": "Terminal tabs in scope that were already paused (for pause) or not paused (for resume)."
15060
+ },
15061
+ "failed": {
15062
+ "type": "array",
15063
+ "items": {
15064
+ "type": "object",
15065
+ "required": [
15066
+ "panelId",
15067
+ "error"
15068
+ ],
15069
+ "properties": {
15070
+ "panelId": {
15071
+ "type": "string"
15072
+ },
15073
+ "error": {
15074
+ "type": "string"
15075
+ }
15076
+ },
15077
+ "additionalProperties": false
15078
+ }
15079
+ },
15080
+ "message": {
15081
+ "type": "string"
15082
+ },
15083
+ "nextCommand": {
15084
+ "type": "string"
15085
+ }
15086
+ },
15087
+ "additionalProperties": false
13298
15088
  }
13299
15089
  },
13300
15090
  "agentContext": {
@@ -13314,6 +15104,8 @@ exports.RUNPANE_CONTRACT = {
13314
15104
  "Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.",
13315
15105
  "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
13316
15106
  "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
15107
+ "Read and change a repo's Project Settings (build, run, and archive scripts, worktree folder, environment variables) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.",
15108
+ "When a command needs a secret (an API key, a token), run it with `runpane secrets exec --project <project> -- <command>`. If the secret is missing, ask the person with `runpane secrets request`; never ask them to paste a secret into the chat, and never print one.",
13317
15109
  "If WSL cannot reach Pane, the user may be running Windows Pane; try `/mnt/c/Users/<you>/.pane/bin/runpane doctor --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane doctor --json'`.",
13318
15110
  "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
13319
15111
  "Use `runpane agents doctor --agent <codex|claude|cursor> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
@@ -13373,6 +15165,34 @@ exports.RUNPANE_CONTRACT = {
13373
15165
  "--pane-dir <path>"
13374
15166
  ]
13375
15167
  },
15168
+ {
15169
+ "name": "repos get",
15170
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
15171
+ "arguments": [
15172
+ "--repo <selector>",
15173
+ "--json",
15174
+ "--pane-dir <path>"
15175
+ ]
15176
+ },
15177
+ {
15178
+ "name": "repos update",
15179
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.",
15180
+ "arguments": [
15181
+ "--repo <selector>",
15182
+ "--build-script <script>",
15183
+ "--run-script <script>",
15184
+ "--archive-script <script>",
15185
+ "--worktree-folder <path>",
15186
+ "--env <json>",
15187
+ "--env-remove <name,...>",
15188
+ "--name <name>",
15189
+ "--clear <setting,...>",
15190
+ "--from-json <path|->",
15191
+ "--yes",
15192
+ "--dry-run",
15193
+ "--json"
15194
+ ]
15195
+ },
13376
15196
  {
13377
15197
  "name": "repos rename",
13378
15198
  "summary": "Rename a repository saved in the running Pane app.",
@@ -13384,6 +15204,36 @@ exports.RUNPANE_CONTRACT = {
13384
15204
  "--pane-dir <path>"
13385
15205
  ]
13386
15206
  },
15207
+ {
15208
+ "name": "secrets list",
15209
+ "summary": "List Pane secrets: project, name, time and machine. Never a value.",
15210
+ "arguments": [
15211
+ "--project <project>",
15212
+ "--json"
15213
+ ]
15214
+ },
15215
+ {
15216
+ "name": "secrets exec",
15217
+ "summary": "Run a command with Pane secrets in its environment.",
15218
+ "arguments": [
15219
+ "--project <project>",
15220
+ "--only <name,...>",
15221
+ "--env <VAR=NAME>",
15222
+ "--file <name>",
15223
+ "-- <command>..."
15224
+ ]
15225
+ },
15226
+ {
15227
+ "name": "secrets request",
15228
+ "summary": "Ask the person for a secret on a masked card; returns saved or declined, never the value.",
15229
+ "arguments": [
15230
+ "--project <project>",
15231
+ "--name <name>",
15232
+ "--title <text>",
15233
+ "--reason <text>",
15234
+ "--json"
15235
+ ]
15236
+ },
13387
15237
  {
13388
15238
  "name": "panes list",
13389
15239
  "summary": "List Pane sessions, optionally scoped to a saved repository.",
@@ -13606,6 +15456,15 @@ exports.RUNPANE_CONTRACT = {
13606
15456
  "--pane-dir <path>"
13607
15457
  ]
13608
15458
  },
15459
+ {
15460
+ "name": "panels close",
15461
+ "summary": "Close a tab, stopping its process, as the app's close button does.",
15462
+ "arguments": [
15463
+ "--panel <panel-id>",
15464
+ "--yes",
15465
+ "--json"
15466
+ ]
15467
+ },
13609
15468
  {
13610
15469
  "name": "watch",
13611
15470
  "summary": "Wait for workspace events from the durable daemon journal; follow uses conservative cadence and quiet expiry by default.",
@@ -13640,335 +15499,730 @@ exports.RUNPANE_CONTRACT = {
13640
15499
  "mutates": false,
13641
15500
  "arguments": [
13642
15501
  {
13643
- "name": "command",
13644
- "value": "<command>",
15502
+ "name": "command",
15503
+ "value": "<command>",
15504
+ "required": false,
15505
+ "description": "Optional command topic such as \"panes create\"."
15506
+ }
15507
+ ],
15508
+ "examples": [
15509
+ "runpane help",
15510
+ "runpane help panes create"
15511
+ ],
15512
+ "notes": [
15513
+ "Help text is generated from the runpane contract."
15514
+ ]
15515
+ },
15516
+ "setup": {
15517
+ "name": "setup",
15518
+ "summary": "Open the guided setup wizard for install, remote host setup, update, and diagnostics.",
15519
+ "details": "Use this for a human-driven Pane setup flow, not for unattended agent orchestration.",
15520
+ "requiresPaneDaemon": false,
15521
+ "mutates": false,
15522
+ "arguments": [],
15523
+ "examples": [
15524
+ "runpane setup"
15525
+ ],
15526
+ "notes": [
15527
+ "In non-interactive shells, setup prints help and exits successfully."
15528
+ ]
15529
+ },
15530
+ "install": {
15531
+ "name": "install",
15532
+ "summary": "Install Pane on this machine or configure this machine as a remote daemon host.",
15533
+ "details": "Installs or launches Pane release artifacts at command runtime. `install daemon` forwards remote setup flags to Pane.",
15534
+ "requiresPaneDaemon": false,
15535
+ "mutates": true,
15536
+ "arguments": [
15537
+ {
15538
+ "name": "target",
15539
+ "value": "<client|daemon>",
15540
+ "required": false,
15541
+ "description": "Install the desktop client or configure a remote daemon host."
15542
+ },
15543
+ {
15544
+ "name": "--version",
15545
+ "value": "<latest|vX.Y.Z>",
15546
+ "required": false,
15547
+ "description": "Pane release to install."
15548
+ },
15549
+ {
15550
+ "name": "--format",
15551
+ "value": "<auto|appimage|deb|dmg|zip|exe>",
15552
+ "required": false,
15553
+ "description": "Release artifact format."
15554
+ },
15555
+ {
15556
+ "name": "--yes",
15557
+ "required": false,
15558
+ "description": "Skip interactive prompts where possible."
15559
+ }
15560
+ ],
15561
+ "examples": [
15562
+ "runpane install client",
15563
+ "runpane install daemon --label \"My Server\""
15564
+ ],
15565
+ "notes": [
15566
+ "Package install itself is inert; work begins only when runpane is executed."
15567
+ ]
15568
+ },
15569
+ "update": {
15570
+ "name": "update",
15571
+ "summary": "Update Pane and the active supported CLI with durable status.",
15572
+ "details": "Defaults to both components. Use --pane-only or --cli-only to select one. Preflight checks installation ownership and supervisor capability before downtime.",
15573
+ "requiresPaneDaemon": false,
15574
+ "mutates": true,
15575
+ "arguments": [
15576
+ {
15577
+ "name": "--version",
15578
+ "value": "<latest|vX.Y.Z>",
15579
+ "required": false,
15580
+ "description": "Requested app and CLI release version."
15581
+ },
15582
+ {
15583
+ "name": "--pane-only",
15584
+ "required": false,
15585
+ "description": "Update only the installed Pane app."
15586
+ },
15587
+ {
15588
+ "name": "--cli-only",
15589
+ "required": false,
15590
+ "description": "Update only the invoked supported CLI installation."
15591
+ },
15592
+ {
15593
+ "name": "--status",
15594
+ "value": "<operation-id>",
15595
+ "required": false,
15596
+ "description": "Read durable status without a running Pane."
15597
+ },
15598
+ {
15599
+ "name": "--wait",
15600
+ "required": false,
15601
+ "description": "Wait until the operation completes or requires attention."
15602
+ },
15603
+ {
15604
+ "name": "--dry-run",
15605
+ "required": false,
15606
+ "description": "Inspect preflight without staging or stopping Pane."
15607
+ }
15608
+ ],
15609
+ "examples": [
15610
+ "runpane update",
15611
+ "runpane update --version latest"
15612
+ ],
15613
+ "notes": [
15614
+ "Requires standalone Node and a current-user OS supervisor. npm, managed CLI, and supported pip environments retain their actual ownership. System-package Linux and installations requiring elevation are refused before downtime.",
15615
+ "The operation preserves a pre-migration data snapshot; it never blindly rolls an old app or database over migrated state.",
15616
+ "The initial result can be accepted or staging; it is not a claim that the update or restoration completed."
15617
+ ]
15618
+ },
15619
+ "version": {
15620
+ "name": "version",
15621
+ "summary": "Print the runpane wrapper version without contacting, launching, or focusing Pane.",
15622
+ "details": "Use this to confirm which wrapper is available. App, daemon, and release diagnostics belong in doctor.",
15623
+ "requiresPaneDaemon": false,
15624
+ "mutates": false,
15625
+ "arguments": [
15626
+ {
15627
+ "name": "--pane-path",
15628
+ "value": "<path>",
13645
15629
  "required": false,
13646
- "description": "Optional command topic such as \"panes create\"."
15630
+ "description": "Ignored for version; retained only for parser compatibility."
15631
+ },
15632
+ {
15633
+ "name": "--pane-dir",
15634
+ "value": "<path>",
15635
+ "required": false,
15636
+ "description": "Accepted and ignored, so one --pane-dir can be passed to every runpane command."
13647
15637
  }
13648
15638
  ],
13649
15639
  "examples": [
13650
- "runpane help",
13651
- "runpane help panes create"
15640
+ "runpane version",
15641
+ "runpane --version"
13652
15642
  ],
13653
- "notes": [
13654
- "Help text is generated from the runpane contract."
13655
- ]
15643
+ "notes": []
13656
15644
  },
13657
- "setup": {
13658
- "name": "setup",
13659
- "summary": "Open the guided setup wizard for install, remote host setup, update, and diagnostics.",
13660
- "details": "Use this for a human-driven Pane setup flow, not for unattended agent orchestration.",
15645
+ "doctor": {
15646
+ "name": "doctor",
15647
+ "summary": "Run platform, release, installed Pane, daemon reachability, and remote setup diagnostics.",
15648
+ "details": "Use this first when an agent needs to understand whether Pane is installed, which wrapper/runtime is running, what daemon endpoint is expected, and whether the running Pane app is reachable. JSON mode should return a report even when the daemon is unreachable.",
13661
15649
  "requiresPaneDaemon": false,
13662
15650
  "mutates": false,
13663
- "arguments": [],
15651
+ "arguments": [
15652
+ {
15653
+ "name": "--json",
15654
+ "required": false,
15655
+ "description": "Print a machine-readable environment report."
15656
+ },
15657
+ {
15658
+ "name": "--pane-dir",
15659
+ "value": "<path>",
15660
+ "required": false,
15661
+ "description": "Connect to a specific Pane data directory."
15662
+ },
15663
+ {
15664
+ "name": "--pane-path",
15665
+ "value": "<path>",
15666
+ "required": false,
15667
+ "description": "Inspect a specific Pane executable."
15668
+ },
15669
+ {
15670
+ "name": "--format",
15671
+ "value": "<format>",
15672
+ "required": false,
15673
+ "description": "Release artifact format to inspect."
15674
+ },
15675
+ {
15676
+ "name": "--verbose",
15677
+ "required": false,
15678
+ "description": "Print extra diagnostics."
15679
+ },
15680
+ {
15681
+ "name": "--report",
15682
+ "required": false,
15683
+ "description": "Prepare a redacted, inspectable diagnostic report."
15684
+ },
15685
+ {
15686
+ "name": "--body-file",
15687
+ "value": "<path|->",
15688
+ "required": false,
15689
+ "description": "Read report evidence from a file or stdin."
15690
+ },
15691
+ {
15692
+ "name": "--title",
15693
+ "value": "<text>",
15694
+ "required": false,
15695
+ "description": "Report title."
15696
+ },
15697
+ {
15698
+ "name": "--yes",
15699
+ "required": false,
15700
+ "description": "Confirm creating exactly one greenfield-inc/Pane issue."
15701
+ }
15702
+ ],
13664
15703
  "examples": [
13665
- "runpane setup"
15704
+ "runpane doctor --json",
15705
+ "runpane doctor",
15706
+ "runpane doctor --report --title \"runpane watch failed\" --body-file ./watch.txt --json"
15707
+ ],
15708
+ "jsonSchemas": [
15709
+ "doctorResult"
13666
15710
  ],
13667
15711
  "notes": [
13668
- "In non-interactive shells, setup prints help and exits successfully."
15712
+ "Agents should run `runpane doctor --json` before mutating Pane state.",
15713
+ "The JSON report includes daemon reachability as data; an unreachable daemon is not a reason to skip the rest of the report.",
15714
+ "Use `runpane agent-context --json` after doctor when full CLI context is needed."
13669
15715
  ]
13670
15716
  },
13671
- "install": {
13672
- "name": "install",
13673
- "summary": "Install Pane on this machine or configure this machine as a remote daemon host.",
13674
- "details": "Installs or launches Pane release artifacts at command runtime. `install daemon` forwards remote setup flags to Pane.",
15717
+ "daemon repair": {
15718
+ "name": "daemon repair",
15719
+ "summary": "Repair and restart the managed remote-daemon launcher without changing pairing or tunnel configuration.",
15720
+ "details": "Use this only after doctor reports a stale or broken remote-daemon launcher. The command invokes the installed Pane executable in service-repair mode and does not rerun remote setup.",
13675
15721
  "requiresPaneDaemon": false,
13676
15722
  "mutates": true,
13677
15723
  "arguments": [
13678
15724
  {
13679
- "name": "target",
13680
- "value": "<client|daemon>",
15725
+ "name": "--pane-dir",
15726
+ "value": "<path>",
13681
15727
  "required": false,
13682
- "description": "Install the desktop client or configure a remote daemon host."
15728
+ "description": "Remote daemon data directory; defaults to ~/.pane_remote."
13683
15729
  },
13684
15730
  {
13685
- "name": "--version",
13686
- "value": "<latest|vX.Y.Z>",
15731
+ "name": "--pane-path",
15732
+ "value": "<path>",
13687
15733
  "required": false,
13688
- "description": "Pane release to install."
15734
+ "description": "Existing Pane executable used to perform repair."
13689
15735
  },
13690
15736
  {
13691
- "name": "--format",
13692
- "value": "<auto|appimage|deb|dmg|zip|exe>",
15737
+ "name": "--yes",
13693
15738
  "required": false,
13694
- "description": "Release artifact format."
15739
+ "description": "Skip the service restart confirmation."
13695
15740
  },
13696
15741
  {
13697
- "name": "--yes",
15742
+ "name": "--json",
13698
15743
  "required": false,
13699
- "description": "Skip interactive prompts where possible."
15744
+ "description": "Print one machine-readable repair result."
13700
15745
  }
13701
15746
  ],
13702
15747
  "examples": [
13703
- "runpane install client",
13704
- "runpane install daemon --label \"My Server\""
15748
+ "runpane daemon repair --pane-dir ~/.pane_remote --yes --json"
15749
+ ],
15750
+ "jsonSchemas": [
15751
+ "daemonRepairResult"
13705
15752
  ],
13706
15753
  "notes": [
13707
- "Package install itself is inert; work begins only when runpane is executed."
15754
+ "Repair does not create pairing credentials, change tunnel configuration, or download Pane."
13708
15755
  ]
13709
15756
  },
13710
- "update": {
13711
- "name": "update",
13712
- "summary": "Update Pane and the active supported CLI with durable status.",
13713
- "details": "Defaults to both components. Use --pane-only or --cli-only to select one. Preflight checks installation ownership and supervisor capability before downtime.",
15757
+ "agent-context": {
15758
+ "name": "agent-context",
15759
+ "summary": "Print token-efficient Pane command context for coding agents.",
15760
+ "details": "Use this first when an agent needs to discover Pane primitives. It is local/offline and does not require a running Pane app.",
13714
15761
  "requiresPaneDaemon": false,
13715
- "mutates": true,
15762
+ "mutates": false,
13716
15763
  "arguments": [
13717
15764
  {
13718
- "name": "--version",
13719
- "value": "<latest|vX.Y.Z>",
15765
+ "name": "--command",
15766
+ "value": "<command>",
13720
15767
  "required": false,
13721
- "description": "Requested app and CLI release version."
15768
+ "description": "Print the detailed definition for one command, for example \"panes create\"."
13722
15769
  },
13723
15770
  {
13724
- "name": "--pane-only",
15771
+ "name": "--json",
13725
15772
  "required": false,
13726
- "description": "Update only the installed Pane app."
15773
+ "description": "Print machine-readable output."
15774
+ }
15775
+ ],
15776
+ "examples": [
15777
+ "runpane agent-context",
15778
+ "runpane agent-context --command \"panes create\" --json"
15779
+ ],
15780
+ "jsonSchemas": [
15781
+ "agentContextBriefResult",
15782
+ "agentContextCommandResult",
15783
+ "agentContextUnknownCommandError"
15784
+ ],
15785
+ "notes": [
15786
+ "Default output is brief so AGENTS.md can point here without bloating context.",
15787
+ "`--command` accepts canonical spaced names and common copied forms, including `panes.create` and `runpane panes create`.",
15788
+ "An unknown `--command` exits 2. With `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout, where `candidates` lists the closest command names first; without `--json` the same candidates go to stderr.",
15789
+ "`--pane-dir <path>` is accepted and ignored, so one `--pane-dir` can be passed to every runpane command."
15790
+ ]
15791
+ },
15792
+ "mcp": {
15793
+ "name": "mcp",
15794
+ "summary": "Run the Pane MCP server over stdio so coding agents can call runpane commands as tools.",
15795
+ "details": "Use this to register Pane with an MCP client. Pane registers it with Claude Code, Codex, and Cursor automatically; each tool mirrors one runpane command and returns its --json result.",
15796
+ "requiresPaneDaemon": false,
15797
+ "mutates": false,
15798
+ "arguments": [
15799
+ {
15800
+ "name": "--toolsets",
15801
+ "value": "<name,...>",
15802
+ "required": false,
15803
+ "description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, git, docs, links, admin."
15804
+ },
15805
+ {
15806
+ "name": "--read-only",
15807
+ "required": false,
15808
+ "description": "Serve only read-only tools."
15809
+ }
15810
+ ],
15811
+ "examples": [
15812
+ "claude mcp add --scope user pane -- npx --yes runpane@latest mcp",
15813
+ "codex mcp add pane -- npx --yes runpane@latest mcp"
15814
+ ],
15815
+ "notes": [
15816
+ "Only the npm package and the Pane app include the MCP server; the Python package prints how to run it with Node.",
15817
+ "Commands that need --yes in the CLI take `yes: true` as a tool input."
15818
+ ]
15819
+ },
15820
+ "repos list": {
15821
+ "name": "repos list",
15822
+ "summary": "List repositories saved in the running Pane app.",
15823
+ "details": "Use this to find the right Pane-managed repository before creating panes. If the repo is missing, use `repos add` first.",
15824
+ "requiresPaneDaemon": true,
15825
+ "mutates": false,
15826
+ "arguments": [
15827
+ {
15828
+ "name": "--json",
15829
+ "required": false,
15830
+ "description": "Print machine-readable repository records."
15831
+ },
15832
+ {
15833
+ "name": "--pane-dir",
15834
+ "value": "<path>",
15835
+ "required": false,
15836
+ "description": "Connect to a specific Pane data directory."
15837
+ }
15838
+ ],
15839
+ "examples": [
15840
+ "runpane repos list --json"
15841
+ ],
15842
+ "jsonSchemas": [
15843
+ "repoListResult"
15844
+ ],
15845
+ "notes": [
15846
+ "Requires a running Pane app or daemon for the selected Pane data directory.",
15847
+ "If this fails from WSL with a missing `/tmp/pane-daemon.../daemon.sock`, `volta: command not found`, or a Windows shim error, the user may be running Windows Pane. Retry with `/mnt/c/Users/<you>/.pane/bin/runpane repos list --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.",
15848
+ "When using PowerShell from WSL, set a Windows cwd such as `$env:TEMP` or `$env:USERPROFILE` before running runpane to avoid UNC cwd issues."
15849
+ ]
15850
+ },
15851
+ "repos add": {
15852
+ "name": "repos add",
15853
+ "summary": "Register an existing git repository with the running Pane app.",
15854
+ "details": "Use this when the repository exists on disk but is not saved in Pane yet. It validates the path as a git repository.",
15855
+ "requiresPaneDaemon": true,
15856
+ "mutates": true,
15857
+ "arguments": [
15858
+ {
15859
+ "name": "--path",
15860
+ "value": "<path>",
15861
+ "required": true,
15862
+ "description": "Existing git repository path to register with Pane."
15863
+ },
15864
+ {
15865
+ "name": "--name",
15866
+ "value": "<name>",
15867
+ "required": false,
15868
+ "description": "Saved repository name; defaults to the directory name."
13727
15869
  },
13728
15870
  {
13729
- "name": "--cli-only",
15871
+ "name": "--yes",
13730
15872
  "required": false,
13731
- "description": "Update only the invoked supported CLI installation."
15873
+ "description": "Skip confirmation for mutating commands."
13732
15874
  },
13733
15875
  {
13734
- "name": "--status",
13735
- "value": "<operation-id>",
15876
+ "name": "--json",
13736
15877
  "required": false,
13737
- "description": "Read durable status without a running Pane."
15878
+ "description": "Print machine-readable output."
13738
15879
  },
13739
15880
  {
13740
- "name": "--wait",
15881
+ "name": "--dry-run",
13741
15882
  "required": false,
13742
- "description": "Wait until the operation completes or requires attention."
15883
+ "description": "Validate and preview without adding the repo."
13743
15884
  },
13744
15885
  {
13745
- "name": "--dry-run",
15886
+ "name": "--pane-dir",
15887
+ "value": "<path>",
13746
15888
  "required": false,
13747
- "description": "Inspect preflight without staging or stopping Pane."
15889
+ "description": "Connect to a specific Pane data directory."
13748
15890
  }
13749
15891
  ],
13750
15892
  "examples": [
13751
- "runpane update",
13752
- "runpane update --version latest"
15893
+ "runpane repos add --path /path/to/repo --yes --json"
15894
+ ],
15895
+ "jsonSchemas": [
15896
+ "repoAddRequest",
15897
+ "repoAddResult"
13753
15898
  ],
13754
15899
  "notes": [
13755
- "Requires standalone Node and a current-user OS supervisor. npm, managed CLI, and supported pip environments retain their actual ownership. System-package Linux and installations requiring elevation are refused before downtime.",
13756
- "The operation preserves a pre-migration data snapshot; it never blindly rolls an old app or database over migrated state.",
13757
- "The initial result can be accepted or staging; it is not a claim that the update or restoration completed."
15900
+ "It does not create directories or initialize git repositories by default.",
15901
+ "For a Windows Pane app managing WSL repositories, prefer a saved WSL repo from `repos list` when possible. Adding a brand-new WSL repo from Windows may require WSL-aware path handling."
13758
15902
  ]
13759
15903
  },
13760
- "version": {
13761
- "name": "version",
13762
- "summary": "Print the runpane wrapper version without contacting, launching, or focusing Pane.",
13763
- "details": "Use this to confirm which wrapper is available. App, daemon, and release diagnostics belong in doctor.",
13764
- "requiresPaneDaemon": false,
15904
+ "repos get": {
15905
+ "name": "repos get",
15906
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
15907
+ "details": "Use this before changing a repo's settings, or to find out what a new Pane will run. Each script reports `value` (saved in Project Settings), `fallback` (from the repo's config file), and `effective` (what Pane runs: the saved value when set, otherwise the fallback). `envVars` lists the project environment variables: plain values in full, keychain items and Pane secrets as references, never their values.",
15908
+ "requiresPaneDaemon": true,
13765
15909
  "mutates": false,
13766
15910
  "arguments": [
13767
15911
  {
13768
- "name": "--pane-path",
13769
- "value": "<path>",
15912
+ "name": "--repo",
15913
+ "value": "<selector>",
13770
15914
  "required": false,
13771
- "description": "Ignored for version; retained only for parser compatibility."
15915
+ "description": "Repository selector: active, id, exact path, or saved repository name. Defaults to active."
15916
+ },
15917
+ {
15918
+ "name": "--json",
15919
+ "required": false,
15920
+ "description": "Print machine-readable settings."
13772
15921
  },
13773
15922
  {
13774
15923
  "name": "--pane-dir",
13775
15924
  "value": "<path>",
13776
15925
  "required": false,
13777
- "description": "Accepted and ignored, so one --pane-dir can be passed to every runpane command."
15926
+ "description": "Connect to a specific Pane data directory."
13778
15927
  }
13779
15928
  ],
13780
15929
  "examples": [
13781
- "runpane version",
13782
- "runpane --version"
15930
+ "runpane repos get --repo Pane --json"
13783
15931
  ],
13784
- "notes": []
15932
+ "jsonSchemas": [
15933
+ "repoGetRequest",
15934
+ "repoGetResult"
15935
+ ],
15936
+ "notes": [
15937
+ "Config-file fallbacks are read from the repository root. At run time Pane reads them from each Pane's worktree, so a branch that changes its config file can run something else.",
15938
+ "`currentBranch` is detected from the repository; it is not a setting."
15939
+ ]
13785
15940
  },
13786
- "doctor": {
13787
- "name": "doctor",
13788
- "summary": "Run platform, release, installed Pane, daemon reachability, and remote setup diagnostics.",
13789
- "details": "Use this first when an agent needs to understand whether Pane is installed, which wrapper/runtime is running, what daemon endpoint is expected, and whether the running Pane app is reachable. JSON mode should return a report even when the daemon is unreachable.",
13790
- "requiresPaneDaemon": false,
13791
- "mutates": false,
15941
+ "repos update": {
15942
+ "name": "repos update",
15943
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, system prompt, and environment variables.",
15944
+ "details": "Saves through the same path as the Project Settings dialog: Pane drops its cached project context, rebuilds the run commands, and open windows reload the repo. Settings you do not pass keep their value. Clear a setting with `--clear` or an empty value; a cleared script falls back to the repo's config file. --env adds or replaces project environment variables by key, and --env-remove removes them. A variable is plain text, an existing macOS keychain item, or a Pane secret reference; to store a new secret value, use `runpane secrets request` first.",
15945
+ "requiresPaneDaemon": true,
15946
+ "mutates": true,
13792
15947
  "arguments": [
13793
15948
  {
13794
- "name": "--json",
15949
+ "name": "--repo",
15950
+ "value": "<selector>",
15951
+ "required": true,
15952
+ "description": "Repository selector: active, id, exact path, or saved repository name."
15953
+ },
15954
+ {
15955
+ "name": "--name",
15956
+ "value": "<name>",
13795
15957
  "required": false,
13796
- "description": "Print a machine-readable environment report."
15958
+ "description": "Repository display name. It cannot be cleared."
13797
15959
  },
13798
15960
  {
13799
- "name": "--pane-dir",
13800
- "value": "<path>",
15961
+ "name": "--build-script",
15962
+ "value": "<script>",
13801
15963
  "required": false,
13802
- "description": "Connect to a specific Pane data directory."
15964
+ "description": "Build (setup) script; runs in each new worktree. Newline-separated commands."
13803
15965
  },
13804
15966
  {
13805
- "name": "--pane-path",
15967
+ "name": "--run-script",
15968
+ "value": "<script>",
15969
+ "required": false,
15970
+ "description": "Run script; runs on the Play button. Newline-separated commands."
15971
+ },
15972
+ {
15973
+ "name": "--archive-script",
15974
+ "value": "<script>",
15975
+ "required": false,
15976
+ "description": "Archive script; runs before a worktree is removed. Newline-separated commands."
15977
+ },
15978
+ {
15979
+ "name": "--worktree-folder",
13806
15980
  "value": "<path>",
13807
15981
  "required": false,
13808
- "description": "Inspect a specific Pane executable."
15982
+ "description": "Folder new worktrees go in: absolute, or relative to the repository."
13809
15983
  },
13810
15984
  {
13811
- "name": "--format",
13812
- "value": "<format>",
15985
+ "name": "--open-ide-command",
15986
+ "value": "<command>",
13813
15987
  "required": false,
13814
- "description": "Release artifact format to inspect."
15988
+ "description": "Command the Open in IDE button runs in a worktree."
13815
15989
  },
13816
15990
  {
13817
- "name": "--verbose",
15991
+ "name": "--system-prompt",
15992
+ "value": "<text>",
13818
15993
  "required": false,
13819
- "description": "Print extra diagnostics."
15994
+ "description": "Project system prompt."
13820
15995
  },
13821
15996
  {
13822
- "name": "--report",
15997
+ "name": "--env",
15998
+ "value": "<json>",
13823
15999
  "required": false,
13824
- "description": "Prepare a redacted, inspectable diagnostic report."
16000
+ "description": "Project variables to add or replace by key: a JSON array of {key, source: \"plain\", value}, {key, source: \"keychain\", service, account} or {key, source: \"secret\", project, name}.",
16001
+ "schema": {
16002
+ "type": "array",
16003
+ "minItems": 1,
16004
+ "items": {
16005
+ "$ref": "#/jsonSchemas/projectEnvVar"
16006
+ }
16007
+ }
13825
16008
  },
13826
16009
  {
13827
- "name": "--body-file",
13828
- "value": "<path|->",
16010
+ "name": "--env-remove",
16011
+ "value": "<name,...>",
13829
16012
  "required": false,
13830
- "description": "Read report evidence from a file or stdin."
16013
+ "description": "Project variables to remove, comma-separated."
13831
16014
  },
13832
16015
  {
13833
- "name": "--title",
13834
- "value": "<text>",
16016
+ "name": "--clear",
16017
+ "value": "<setting,...>",
13835
16018
  "required": false,
13836
- "description": "Report title."
16019
+ "description": "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt."
16020
+ },
16021
+ {
16022
+ "name": "--from-json",
16023
+ "value": "<path|->",
16024
+ "required": false,
16025
+ "description": "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt, and envVars ({set: [...], remove: [...]}); null clears. Flags override it."
13837
16026
  },
13838
16027
  {
13839
16028
  "name": "--yes",
13840
16029
  "required": false,
13841
- "description": "Confirm creating exactly one greenfield-inc/Pane issue."
16030
+ "description": "Skip confirmation for mutating commands."
16031
+ },
16032
+ {
16033
+ "name": "--dry-run",
16034
+ "required": false,
16035
+ "description": "Return the settings as they would be after the update without saving."
16036
+ },
16037
+ {
16038
+ "name": "--json",
16039
+ "required": false,
16040
+ "description": "Print machine-readable output."
16041
+ },
16042
+ {
16043
+ "name": "--pane-dir",
16044
+ "value": "<path>",
16045
+ "required": false,
16046
+ "description": "Connect to a specific Pane data directory."
13842
16047
  }
13843
16048
  ],
13844
16049
  "examples": [
13845
- "runpane doctor --json",
13846
- "runpane doctor",
13847
- "runpane doctor --report --title \"runpane watch failed\" --body-file ./watch.txt --json"
16050
+ "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --yes --json",
16051
+ "runpane repos update --repo Pane --clear archive-script --dry-run --json",
16052
+ "runpane repos update --repo Pane --from-json settings.json --yes --json",
16053
+ "runpane repos update --repo Pane --env '[{\"key\":\"STRIPE_KEY\",\"source\":\"secret\",\"project\":\"stripe\",\"name\":\"STRIPE_SECRET_KEY\"}]' --env-remove OLD_TOKEN --yes --json"
13848
16054
  ],
13849
16055
  "jsonSchemas": [
13850
- "doctorResult"
16056
+ "repoUpdateRequest",
16057
+ "repoUpdateResult"
13851
16058
  ],
13852
16059
  "notes": [
13853
- "Agents should run `runpane doctor --json` before mutating Pane state.",
13854
- "The JSON report includes daemon reachability as data; an unreachable daemon is not a reason to skip the rest of the report.",
13855
- "Use `runpane agent-context --json` after doctor when full CLI context is needed."
16060
+ "`changed` lists the settings whose saved value differs from before.",
16061
+ "The worktree folder applies to Panes created after the update; existing worktrees stay where they are.",
16062
+ "Plain values are saved and shown in full; do not put a secret in a plain variable. Point the variable at a Pane secret instead."
13856
16063
  ]
13857
16064
  },
13858
- "daemon repair": {
13859
- "name": "daemon repair",
13860
- "summary": "Repair and restart the managed remote-daemon launcher without changing pairing or tunnel configuration.",
13861
- "details": "Use this only after doctor reports a stale or broken remote-daemon launcher. The command invokes the installed Pane executable in service-repair mode and does not rerun remote setup.",
13862
- "requiresPaneDaemon": false,
16065
+ "repos rename": {
16066
+ "name": "repos rename",
16067
+ "summary": "Rename a repository saved in the running Pane app.",
16068
+ "details": "Use this to replace an automatic repository name, such as one with a numeric suffix, with a clear one. It changes only the display name.",
16069
+ "requiresPaneDaemon": true,
13863
16070
  "mutates": true,
13864
16071
  "arguments": [
13865
16072
  {
13866
- "name": "--pane-dir",
13867
- "value": "<path>",
13868
- "required": false,
13869
- "description": "Remote daemon data directory; defaults to ~/.pane_remote."
16073
+ "name": "--repo",
16074
+ "value": "<selector>",
16075
+ "required": true,
16076
+ "description": "Repository to rename: active, id, exact path, or saved name."
13870
16077
  },
13871
16078
  {
13872
- "name": "--pane-path",
13873
- "value": "<path>",
13874
- "required": false,
13875
- "description": "Existing Pane executable used to perform repair."
16079
+ "name": "--name",
16080
+ "value": "<name>",
16081
+ "required": true,
16082
+ "description": "New non-empty repository name; surrounding whitespace is trimmed."
13876
16083
  },
13877
16084
  {
13878
16085
  "name": "--yes",
13879
16086
  "required": false,
13880
- "description": "Skip the service restart confirmation."
16087
+ "description": "Skip confirmation for mutating commands."
13881
16088
  },
13882
16089
  {
13883
16090
  "name": "--json",
13884
16091
  "required": false,
13885
- "description": "Print one machine-readable repair result."
16092
+ "description": "Print machine-readable output including the updated repository."
16093
+ },
16094
+ {
16095
+ "name": "--pane-dir",
16096
+ "value": "<path>",
16097
+ "required": false,
16098
+ "description": "Connect to a specific Pane data directory."
13886
16099
  }
13887
16100
  ],
13888
16101
  "examples": [
13889
- "runpane daemon repair --pane-dir ~/.pane_remote --yes --json"
16102
+ "runpane repos rename --repo 3 --name Lev --yes --json"
13890
16103
  ],
13891
16104
  "jsonSchemas": [
13892
- "daemonRepairResult"
16105
+ "repoRenameRequest",
16106
+ "repoRenameResult"
13893
16107
  ],
13894
16108
  "notes": [
13895
- "Repair does not create pairing credentials, change tunnel configuration, or download Pane."
16109
+ "The repository path, Panes, and settings are unchanged."
13896
16110
  ]
13897
16111
  },
13898
- "agent-context": {
13899
- "name": "agent-context",
13900
- "summary": "Print token-efficient Pane command context for coding agents.",
13901
- "details": "Use this first when an agent needs to discover Pane primitives. It is local/offline and does not require a running Pane app.",
13902
- "requiresPaneDaemon": false,
16112
+ "secrets list": {
16113
+ "name": "secrets list",
16114
+ "summary": "List the Pane secrets on this machine: project, name, and when and where each was set. Never shows a value.",
16115
+ "details": "Use this to find the project and name to pass to `runpane secrets exec`. Each entry has project, name, updatedAt and machine. storage says how this machine keeps values; encrypted false means a plain 0600 file on a machine without an OS keyring.",
16116
+ "requiresPaneDaemon": true,
13903
16117
  "mutates": false,
13904
16118
  "arguments": [
13905
16119
  {
13906
- "name": "--command",
13907
- "value": "<command>",
16120
+ "name": "--project",
16121
+ "value": "<project>",
13908
16122
  "required": false,
13909
- "description": "Print the detailed definition for one command, for example \"panes create\"."
16123
+ "description": "Only this project's secrets."
13910
16124
  },
13911
16125
  {
13912
16126
  "name": "--json",
13913
16127
  "required": false,
13914
16128
  "description": "Print machine-readable output."
16129
+ },
16130
+ {
16131
+ "name": "--pane-dir",
16132
+ "value": "<path>",
16133
+ "required": false,
16134
+ "description": "Connect to a specific Pane data directory."
13915
16135
  }
13916
16136
  ],
13917
16137
  "examples": [
13918
- "runpane agent-context",
13919
- "runpane agent-context --command \"panes create\" --json"
16138
+ "runpane secrets list --json",
16139
+ "runpane secrets list --project stripe --json"
13920
16140
  ],
13921
16141
  "jsonSchemas": [
13922
- "agentContextBriefResult",
13923
- "agentContextCommandResult",
13924
- "agentContextUnknownCommandError"
16142
+ "secretListRequest",
16143
+ "secretListResult"
13925
16144
  ],
13926
16145
  "notes": [
13927
- "Default output is brief so AGENTS.md can point here without bloating context.",
13928
- "`--command` accepts canonical spaced names and common copied forms, including `panes.create` and `runpane panes create`.",
13929
- "An unknown `--command` exits 2. With `--json` it prints `{ ok: false, code: \"unknown_command\", message, candidates }` on stdout, where `candidates` lists the closest command names first; without `--json` the same candidates go to stderr.",
13930
- "`--pane-dir <path>` is accepted and ignored, so one `--pane-dir` can be passed to every runpane command."
16146
+ "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."
13931
16147
  ]
13932
16148
  },
13933
- "mcp": {
13934
- "name": "mcp",
13935
- "summary": "Run the Pane MCP server over stdio so coding agents can call runpane commands as tools.",
13936
- "details": "Use this to register Pane with an MCP client. Pane registers it with Claude Code, Codex, and Cursor automatically; each tool mirrors one runpane command and returns its --json result.",
13937
- "requiresPaneDaemon": false,
13938
- "mutates": false,
16149
+ "secrets set": {
16150
+ "name": "secrets set",
16151
+ "summary": "Save a Pane secret, adding or replacing it. Reads the value from stdin.",
16152
+ "details": "The value comes only from stdin, so it never appears in argv or a transcript. One trailing newline (\\n or \\r\\n) is dropped; an empty value is refused. If stdin is a terminal it is refused too: pipe the value in, or have the person use Settings > Secrets or `runpane secrets request`. With --json it prints {ok, replaced, secret} (secretSetResult).",
16153
+ "requiresPaneDaemon": true,
16154
+ "mutates": true,
13939
16155
  "arguments": [
13940
16156
  {
13941
- "name": "--toolsets",
13942
- "value": "<name,...>",
16157
+ "name": "--project",
16158
+ "value": "<project>",
16159
+ "required": true,
16160
+ "description": "Secret project: up to 64 letters, digits, \".\", \"_\" or \"-\"."
16161
+ },
16162
+ {
16163
+ "name": "--name",
16164
+ "value": "<name>",
16165
+ "required": true,
16166
+ "description": "Secret name: letters, digits and underscores, not starting with a digit. PATH, WORKTREE_PATH and PANE_* are reserved."
16167
+ },
16168
+ {
16169
+ "name": "--yes",
16170
+ "required": true,
16171
+ "description": "Confirm the change."
16172
+ },
16173
+ {
16174
+ "name": "--json",
13943
16175
  "required": false,
13944
- "description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, git, docs, links, admin."
16176
+ "description": "Print machine-readable output."
13945
16177
  },
13946
16178
  {
13947
- "name": "--read-only",
16179
+ "name": "--pane-dir",
16180
+ "value": "<path>",
13948
16181
  "required": false,
13949
- "description": "Serve only read-only tools."
16182
+ "description": "Connect to a specific Pane data directory."
13950
16183
  }
13951
16184
  ],
13952
16185
  "examples": [
13953
- "claude mcp add --scope user pane -- npx --yes runpane@latest mcp",
13954
- "codex mcp add pane -- npx --yes runpane@latest mcp"
16186
+ "printf %s \"$VALUE\" | runpane secrets set --project stripe --name STRIPE_SECRET_KEY --yes --json"
16187
+ ],
16188
+ "jsonSchemas": [
16189
+ "secretSetRequest",
16190
+ "secretSetResult"
13955
16191
  ],
13956
16192
  "notes": [
13957
- "Only the npm package and the Pane app include the MCP server; the Python package prints how to run it with Node.",
13958
- "Commands that need --yes in the CLI take `yes: true` as a tool input."
16193
+ "Never set a value someone pasted into the chat; ask with `runpane secrets request` instead, so the value stays out of the transcript.",
16194
+ "There is no MCP tool for this command: MCP arguments land in the transcript.",
16195
+ "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."
13959
16196
  ]
13960
16197
  },
13961
- "repos list": {
13962
- "name": "repos list",
13963
- "summary": "List repositories saved in the running Pane app.",
13964
- "details": "Use this to find the right Pane-managed repository before creating panes. If the repo is missing, use `repos add` first.",
16198
+ "secrets delete": {
16199
+ "name": "secrets delete",
16200
+ "summary": "Delete a Pane secret from this machine and, through sync, from your other machines.",
16201
+ "details": "Deletes <project>/<name> here. Each other machine deletes it the next time a desktop or the phone syncs with it.",
13965
16202
  "requiresPaneDaemon": true,
13966
- "mutates": false,
16203
+ "mutates": true,
13967
16204
  "arguments": [
16205
+ {
16206
+ "name": "--project",
16207
+ "value": "<project>",
16208
+ "required": true,
16209
+ "description": "Secret project."
16210
+ },
16211
+ {
16212
+ "name": "--name",
16213
+ "value": "<name>",
16214
+ "required": true,
16215
+ "description": "Secret name."
16216
+ },
16217
+ {
16218
+ "name": "--yes",
16219
+ "required": true,
16220
+ "description": "Confirm the change."
16221
+ },
13968
16222
  {
13969
16223
  "name": "--json",
13970
16224
  "required": false,
13971
- "description": "Print machine-readable repository records."
16225
+ "description": "Print machine-readable output."
13972
16226
  },
13973
16227
  {
13974
16228
  "name": "--pane-dir",
@@ -13978,98 +16232,109 @@ exports.RUNPANE_CONTRACT = {
13978
16232
  }
13979
16233
  ],
13980
16234
  "examples": [
13981
- "runpane repos list --json"
16235
+ "runpane secrets delete --project stripe --name STRIPE_SECRET_KEY --yes --json"
13982
16236
  ],
13983
16237
  "jsonSchemas": [
13984
- "repoListResult"
16238
+ "secretDeleteRequest",
16239
+ "secretDeleteResult"
13985
16240
  ],
13986
16241
  "notes": [
13987
- "Requires a running Pane app or daemon for the selected Pane data directory.",
13988
- "If this fails from WSL with a missing `/tmp/pane-daemon.../daemon.sock`, `volta: command not found`, or a Windows shim error, the user may be running Windows Pane. Retry with `/mnt/c/Users/<you>/.pane/bin/runpane repos list --json`, or with an older Pane build `powershell.exe -NoProfile -Command 'Set-Location $env:TEMP; runpane repos list --json'`.",
13989
- "When using PowerShell from WSL, set a Windows cwd such as `$env:TEMP` or `$env:USERPROFILE` before running runpane to avoid UNC cwd issues."
16242
+ "A secret that does not exist fails with SECRET_NOT_FOUND.",
16243
+ "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine."
13990
16244
  ]
13991
16245
  },
13992
- "repos add": {
13993
- "name": "repos add",
13994
- "summary": "Register an existing git repository with the running Pane app.",
13995
- "details": "Use this when the repository exists on disk but is not saved in Pane yet. It validates the path as a git repository.",
16246
+ "secrets exec": {
16247
+ "name": "secrets exec",
16248
+ "summary": "Run a command with Pane secrets in its environment. Nothing prints a value.",
16249
+ "details": "Reads the secrets from this machine's Pane when it runs, starts the command with your environment plus the secrets, passes stdin, stdout and stderr through, and exits with the command's exit code. By default it injects every secret in the project under its own name. --only limits that to the names given. --env VAR=NAME injects secret NAME as VAR. --file NAME writes secret NAME to a 0600 file in a private temp folder and sets NAME to the file's path; the file is removed when the command exits. Injected names override your environment.",
13996
16250
  "requiresPaneDaemon": true,
13997
- "mutates": true,
16251
+ "mutates": false,
13998
16252
  "arguments": [
13999
16253
  {
14000
- "name": "--path",
14001
- "value": "<path>",
16254
+ "name": "--project",
16255
+ "value": "<project>",
14002
16256
  "required": true,
14003
- "description": "Existing git repository path to register with Pane."
14004
- },
14005
- {
14006
- "name": "--name",
14007
- "value": "<name>",
14008
- "required": false,
14009
- "description": "Saved repository name; defaults to the directory name."
16257
+ "description": "Secret project."
14010
16258
  },
14011
16259
  {
14012
- "name": "--yes",
16260
+ "name": "--only",
16261
+ "value": "<name,...>",
14013
16262
  "required": false,
14014
- "description": "Skip confirmation for mutating commands."
16263
+ "description": "Inject only these secrets, comma-separated."
14015
16264
  },
14016
16265
  {
14017
- "name": "--json",
16266
+ "name": "--env",
16267
+ "value": "<VAR=NAME>",
14018
16268
  "required": false,
14019
- "description": "Print machine-readable output."
16269
+ "description": "Inject secret NAME as VAR. Repeatable."
14020
16270
  },
14021
16271
  {
14022
- "name": "--dry-run",
16272
+ "name": "--file",
16273
+ "value": "<name>",
14023
16274
  "required": false,
14024
- "description": "Validate and preview without adding the repo."
16275
+ "description": "Write secret NAME to a private temp file and set NAME to its path. Repeatable."
14025
16276
  },
14026
16277
  {
14027
16278
  "name": "--pane-dir",
14028
16279
  "value": "<path>",
14029
16280
  "required": false,
14030
16281
  "description": "Connect to a specific Pane data directory."
16282
+ },
16283
+ {
16284
+ "name": "-- <command>",
16285
+ "required": true,
16286
+ "description": "The command to run and its arguments."
14031
16287
  }
14032
16288
  ],
14033
16289
  "examples": [
14034
- "runpane repos add --path /path/to/repo --yes --json"
14035
- ],
14036
- "jsonSchemas": [
14037
- "repoAddRequest",
14038
- "repoAddResult"
16290
+ "runpane secrets exec --project stripe -- pnpm test:webhooks",
16291
+ "runpane secrets exec --project stripe --env STRIPE_API_KEY=STRIPE_SECRET_KEY -- node scripts/sync.js",
16292
+ "runpane secrets exec --project gcp --file SERVICE_ACCOUNT_JSON -- sh -c 'gcloud auth activate-service-account --key-file \"$SERVICE_ACCOUNT_JSON\"'"
14039
16293
  ],
14040
16294
  "notes": [
14041
- "It does not create directories or initialize git repositories by default.",
14042
- "For a Windows Pane app managing WSL repositories, prefer a saved WSL repo from `repos list` when possible. Adding a brand-new WSL repo from Windows may require WSL-aware path handling."
16295
+ "Target names PATH, WORKTREE_PATH and PANE_*, in any case, are refused with SECRET_RESERVED_NAME, and nothing runs.",
16296
+ "A missing secret fails with SECRET_NOT_FOUND before anything runs; ask for it with `runpane secrets request`.",
16297
+ "Do not echo a secret from inside the command: its output lands wherever the command's output goes, such as your transcript.",
16298
+ "There is no MCP tool for this command; run it in a shell.",
16299
+ "Runs on this machine only: `runpane workspace <machine> secrets ...` is refused. Use `runpane workspace <machine> exec -- runpane secrets ...` for another machine.",
16300
+ "Secrets are the machine owner's: every secrets command in a teammate's `runpane workspace exec` (PANE_TEAMMATE_LOGIN set) fails with SECRET_OWNER_REQUIRED."
14043
16301
  ]
14044
16302
  },
14045
- "repos rename": {
14046
- "name": "repos rename",
14047
- "summary": "Rename a repository saved in the running Pane app.",
14048
- "details": "Use this to replace an automatic repository name, such as one with a numeric suffix, with a clear one. It changes only the display name.",
16303
+ "secrets request": {
16304
+ "name": "secrets request",
16305
+ "summary": "Ask the person for a secret on a masked card. Pane saves what they type as a Pane secret and never returns it.",
16306
+ "details": "Shows a Notify card with your title and reason, a masked field, Save securely and Decline. What the person types is saved on this machine as the Pane secret <project>/<name> and synced to their other machines. You get back {status: \"saved\", project, name} or {status: \"declined\"}, never the value. Then use it with `runpane secrets exec`.",
14049
16307
  "requiresPaneDaemon": true,
14050
16308
  "mutates": true,
14051
16309
  "arguments": [
14052
16310
  {
14053
- "name": "--repo",
14054
- "value": "<selector>",
16311
+ "name": "--project",
16312
+ "value": "<project>",
14055
16313
  "required": true,
14056
- "description": "Repository to rename: active, id, exact path, or saved name."
16314
+ "description": "Secret project, such as the service or repo it belongs to: up to 64 letters, digits, \".\", \"_\" or \"-\"."
14057
16315
  },
14058
16316
  {
14059
16317
  "name": "--name",
14060
16318
  "value": "<name>",
14061
16319
  "required": true,
14062
- "description": "New non-empty repository name; surrounding whitespace is trimmed."
16320
+ "description": "Secret name, such as STRIPE_SECRET_KEY: letters, digits and underscores, not starting with a digit."
14063
16321
  },
14064
16322
  {
14065
- "name": "--yes",
14066
- "required": false,
14067
- "description": "Skip confirmation for mutating commands."
16323
+ "name": "--title",
16324
+ "value": "<text>",
16325
+ "required": true,
16326
+ "description": "What the secret is, in a few words, such as \"Stripe test secret key\"."
16327
+ },
16328
+ {
16329
+ "name": "--reason",
16330
+ "value": "<text>",
16331
+ "required": true,
16332
+ "description": "What you need it for, in one sentence."
14068
16333
  },
14069
16334
  {
14070
16335
  "name": "--json",
14071
16336
  "required": false,
14072
- "description": "Print machine-readable output including the updated repository."
16337
+ "description": "Print machine-readable output."
14073
16338
  },
14074
16339
  {
14075
16340
  "name": "--pane-dir",
@@ -14079,14 +16344,16 @@ exports.RUNPANE_CONTRACT = {
14079
16344
  }
14080
16345
  ],
14081
16346
  "examples": [
14082
- "runpane repos rename --repo 3 --name Lev --yes --json"
16347
+ "runpane secrets request --project stripe --name STRIPE_SECRET_KEY --title \"Stripe test secret key\" --reason \"Run the webhook integration tests against Stripe's test mode.\" --json"
14083
16348
  ],
14084
16349
  "jsonSchemas": [
14085
- "repoRenameRequest",
14086
- "repoRenameResult"
16350
+ "notifyRequest",
16351
+ "notifyResult"
14087
16352
  ],
14088
16353
  "notes": [
14089
- "The repository path, Panes, and settings are unchanged."
16354
+ "A result of {waiting: true, id} means the card is still open and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting.",
16355
+ "A result of {unavailable, next} means nobody can answer through Pane right now. Do not ask for the secret in the chat; follow next.",
16356
+ "Saving replaces a secret that already exists under that name; the card says so."
14090
16357
  ]
14091
16358
  },
14092
16359
  "panes list": {
@@ -14519,7 +16786,7 @@ exports.RUNPANE_CONTRACT = {
14519
16786
  "panes archive": {
14520
16787
  "name": "panes archive",
14521
16788
  "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.",
14522
- "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.",
16789
+ "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.",
14523
16790
  "requiresPaneDaemon": true,
14524
16791
  "mutates": true,
14525
16792
  "arguments": [
@@ -14538,7 +16805,7 @@ exports.RUNPANE_CONTRACT = {
14538
16805
  {
14539
16806
  "name": "--force",
14540
16807
  "required": false,
14541
- "description": "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes."
16808
+ "description": "Archive even if the pane's branch has uncommitted, untracked, or unpushed changes, one of its agents is mid-turn or waiting for an answer (archiving stops it), or a tab holds unsent input (archiving loses it)."
14542
16809
  },
14543
16810
  {
14544
16811
  "name": "--remove-worktree",
@@ -14602,7 +16869,9 @@ exports.RUNPANE_CONTRACT = {
14602
16869
  "With --session --merged, each item has outcome archived, would-archive (dry run), skipped (with skipped.code and skipped.message), or failed.",
14603
16870
  "Archiving a main-repo Pane (no Pane-managed worktree) always succeeds immediately since nothing is deleted from disk.",
14604
16871
  "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.",
14605
- "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."
16872
+ "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.",
16873
+ "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`.",
16874
+ "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."
14606
16875
  ]
14607
16876
  },
14608
16877
  "panes pin": {
@@ -14701,6 +16970,87 @@ exports.RUNPANE_CONTRACT = {
14701
16970
  "Unpinning does not focus the Pane."
14702
16971
  ]
14703
16972
  },
16973
+ "panes pause": {
16974
+ "name": "panes pause",
16975
+ "summary": "Pause a Pane: stop every terminal tab and keep their conversations until the Pane is resumed.",
16976
+ "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`.",
16977
+ "requiresPaneDaemon": true,
16978
+ "mutates": true,
16979
+ "arguments": [
16980
+ {
16981
+ "name": "--pane",
16982
+ "value": "<pane-id>",
16983
+ "required": true,
16984
+ "description": "Pane id."
16985
+ },
16986
+ {
16987
+ "name": "--yes",
16988
+ "required": false,
16989
+ "description": "Skip confirmation for this mutating command."
16990
+ },
16991
+ {
16992
+ "name": "--json",
16993
+ "required": false,
16994
+ "description": "Print machine-readable output."
16995
+ },
16996
+ {
16997
+ "name": "--pane-dir",
16998
+ "value": "<path>",
16999
+ "required": false,
17000
+ "description": "Connect to a specific Pane data directory."
17001
+ }
17002
+ ],
17003
+ "examples": [
17004
+ "runpane panes pause --pane <pane-id> --yes --json"
17005
+ ],
17006
+ "jsonSchemas": [
17007
+ "pauseResult"
17008
+ ],
17009
+ "notes": [
17010
+ "Find idle Panes with `panes list --json`: `inactiveSince` is the latest terminal output or input in its tabs, or the last time the person selected it.",
17011
+ "Leave paused workers paused unless the person asks to resume them."
17012
+ ]
17013
+ },
17014
+ "panes resume": {
17015
+ "name": "panes resume",
17016
+ "summary": "Resume a paused Pane: restart its paused tabs in their saved conversations.",
17017
+ "details": "Resumes a Pane's paused tabs. Pane restarts each paused tab in place through the same restart `panels resume` runs, so agents relaunch in their saved conversations and report ready as usual. Running tabs are left alone and counted in `unchanged`. `watch` reports each resumed tab as `panel.unpaused`.",
17018
+ "requiresPaneDaemon": true,
17019
+ "mutates": true,
17020
+ "arguments": [
17021
+ {
17022
+ "name": "--pane",
17023
+ "value": "<pane-id>",
17024
+ "required": true,
17025
+ "description": "Pane id."
17026
+ },
17027
+ {
17028
+ "name": "--yes",
17029
+ "required": false,
17030
+ "description": "Skip confirmation for this mutating command."
17031
+ },
17032
+ {
17033
+ "name": "--json",
17034
+ "required": false,
17035
+ "description": "Print machine-readable output."
17036
+ },
17037
+ {
17038
+ "name": "--pane-dir",
17039
+ "value": "<path>",
17040
+ "required": false,
17041
+ "description": "Connect to a specific Pane data directory."
17042
+ }
17043
+ ],
17044
+ "examples": [
17045
+ "runpane panes resume --pane <pane-id> --yes --json"
17046
+ ],
17047
+ "jsonSchemas": [
17048
+ "pauseResult"
17049
+ ],
17050
+ "notes": [
17051
+ "ok is false when a tab could not start; check failed[] for which and why. The others still resumed."
17052
+ ]
17053
+ },
14704
17054
  "panes rename": {
14705
17055
  "name": "panes rename",
14706
17056
  "summary": "Rename a Pane without changing its worktree, branch, panels, or focus.",
@@ -14890,8 +17240,7 @@ exports.RUNPANE_CONTRACT = {
14890
17240
  "Default output is bounded to the latest 200 lines or records. Use a larger --limit only when hasMore is true and more history is needed.",
14891
17241
  "Use --json when an agent needs timestamps, record types, returnedCount, or hasMore.",
14892
17242
  "The output is intended to be agent-readable, but terminal prompts and shell echoes may still appear; use the newest relevant lines before concluding success.",
14893
- "Prefer `panels screen` for a smaller current-state read before increasing output limits.",
14894
- "In Chat, returns ACP transcript output records instead of stale PTY scrollback."
17243
+ "Prefer `panels screen` for a smaller current-state read before increasing output limits."
14895
17244
  ]
14896
17245
  },
14897
17246
  "panels input": {
@@ -14959,8 +17308,7 @@ exports.RUNPANE_CONTRACT = {
14959
17308
  "If interrupting a running process, send Ctrl-C first, validate/read output, then send the next command in a separate `panels input` call so bytes are not dropped.",
14960
17309
  "After sending input, validate with `runpane panels output --panel <panel-id> --json` before reporting success.",
14961
17310
  "Runpane records action metadata and errors for observability, but should not log full input text by default.",
14962
- "For ordinary text plus Enter, prefer `panels submit` so the terminal receives a CR Enter byte.",
14963
- "Chat-owned tabs reject raw keystrokes. Use panels submit, or switch to Terminal."
17311
+ "For ordinary text plus Enter, prefer `panels submit` so the terminal receives a CR Enter byte."
14964
17312
  ]
14965
17313
  },
14966
17314
  "agents doctor": {
@@ -15045,8 +17393,7 @@ exports.RUNPANE_CONTRACT = {
15045
17393
  "notes": [
15046
17394
  "Use this before `panels output` when an agent only needs the latest visible/current state.",
15047
17395
  "The composer object reports whether a Claude or Codex composer is present and whether it holds undelivered text. Placeholder and suggestion text (drawn dim or grey, such as Claude's suggested next prompt) does not count as undelivered text; `composer.ghostText` carries it, and text output marks its line with `⟨suggestion⟩`.",
15048
- "If hasMore is true and context is missing, rerun with a larger --limit or use `panels output`.",
15049
- "Chat-owned tabs return CHAT_RAW_TERMINAL_UNSUPPORTED. Use panels last-message/output, or switch to Terminal."
17396
+ "If hasMore is true and context is missing, rerun with a larger --limit or use `panels output`."
15050
17397
  ]
15051
17398
  },
15052
17399
  "panels submit": {
@@ -15147,14 +17494,13 @@ exports.RUNPANE_CONTRACT = {
15147
17494
  "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.",
15148
17495
  "`--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.",
15149
17496
  "`--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`.",
15150
- "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.",
15151
- "In Chat, submit routes to the host ACP session and returns sequenceName=acp, enter=none, operationId and acp-receipt delivery evidence. Do not blindly resend after a lost response."
17497
+ "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."
15152
17498
  ]
15153
17499
  },
15154
17500
  "panels resume": {
15155
17501
  "name": "panels resume",
15156
17502
  "summary": "Restart stopped terminal panels in place, resuming their agents' conversations: one panel, a Session's panels, or every stopped agent panel.",
15157
- "details": "Use this when `panels list`, `panels screen`, or `panels wait` report `running: false`, or `watch` reports `panel.stopped`, typically after a Pane restart or once its agent exited back to the shell. The panel keeps its id. Pane re-runs the panel's saved launch command resolved to the agent's resume command (Claude `--resume <session>`, `codex resume <session>`, Cursor `--resume`), the same restart the app runs when it shows the panel. It never takes focus. A panel whose agent exited back to its shell has its saved command run again in that shell. On a running panel it does nothing and returns `action: \"already-running\"`. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope (plain shells are left alone), `--concurrency` at a time, skips running panels, and returns one result per panel; one failure does not stop the others.",
17503
+ "details": "Use this when `panels list`, `panels screen`, or `panels wait` report `running: false`, or `watch` reports `panel.stopped`, typically after a Pane restart or once its agent exited back to the shell. The panel keeps its id. Pane re-runs the panel's saved launch command resolved to the agent's resume command (Claude `--resume <session>`, `codex resume <session>`, Cursor `--resume`), the same restart the app runs when it shows the panel. It never takes focus. A panel whose agent exited back to its shell has its saved command run again in that shell. On a running panel it does nothing and returns `action: \"already-running\"`. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope (plain shells and paused tabs are left alone), `--concurrency` at a time, skips running panels, and returns one result per panel; one failure does not stop the others.",
15158
17504
  "requiresPaneDaemon": true,
15159
17505
  "mutates": true,
15160
17506
  "arguments": [
@@ -15220,8 +17566,90 @@ exports.RUNPANE_CONTRACT = {
15220
17566
  "notes": [
15221
17567
  "If readiness.blocked is present, the agent is at a startup prompt (trust, update, [y/n]); inspect `panels screen` or follow blocked.suggestedCommand. Ask the user before answering trust or permission prompts.",
15222
17568
  "A Claude panel resumes the conversation whose session id Pane launched it with; a Codex panel resumes the session id Pane captured from its output. Without one, the panel relaunches its original command.",
15223
- "A bulk resume is ok only when every panel resumed and, with --wait-ready, became ready. Check items[].readiness.blocked and items[].error per panel.",
15224
- "Stopped Chat-capable tabs recover their exact saved conversation explicitly. After host restart, recover in Terminal first to restore the workspace launch environment."
17569
+ "A bulk resume is ok only when every panel resumed and, with --wait-ready, became ready. Check items[].readiness.blocked and items[].error per panel."
17570
+ ]
17571
+ },
17572
+ "panels close": {
17573
+ "name": "panels close",
17574
+ "summary": "Close a tab in a Pane, stopping its process, as closing the tab in the app does.",
17575
+ "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.",
17576
+ "requiresPaneDaemon": true,
17577
+ "mutates": true,
17578
+ "arguments": [
17579
+ {
17580
+ "name": "--panel",
17581
+ "value": "<panel-id>",
17582
+ "required": true,
17583
+ "description": "Panel id to close (any tab type)."
17584
+ },
17585
+ {
17586
+ "name": "--yes",
17587
+ "required": false,
17588
+ "description": "Skip confirmation for this mutating command."
17589
+ },
17590
+ {
17591
+ "name": "--json",
17592
+ "required": false,
17593
+ "description": "Print machine-readable output."
17594
+ },
17595
+ {
17596
+ "name": "--pane-dir",
17597
+ "value": "<path>",
17598
+ "required": false,
17599
+ "description": "Connect to a specific Pane data directory."
17600
+ }
17601
+ ],
17602
+ "examples": [
17603
+ "runpane panels close --panel <panel-id> --yes --json"
17604
+ ],
17605
+ "jsonSchemas": [
17606
+ "panelCloseRequest",
17607
+ "panelCloseResult"
17608
+ ],
17609
+ "notes": [
17610
+ "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`.",
17611
+ "A Pane's permanent tabs cannot be closed; the command fails and nothing changes.",
17612
+ "Closing the tab the command runs in stops the caller too, so it may not see the result."
17613
+ ]
17614
+ },
17615
+ "panels pause": {
17616
+ "name": "panels pause",
17617
+ "summary": "Pause a terminal tab: stop its process and keep its agent's conversation until it is resumed.",
17618
+ "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`.",
17619
+ "requiresPaneDaemon": true,
17620
+ "mutates": true,
17621
+ "arguments": [
17622
+ {
17623
+ "name": "--panel",
17624
+ "value": "<panel-id>",
17625
+ "required": true,
17626
+ "description": "Terminal panel id."
17627
+ },
17628
+ {
17629
+ "name": "--yes",
17630
+ "required": false,
17631
+ "description": "Skip confirmation for this mutating command."
17632
+ },
17633
+ {
17634
+ "name": "--json",
17635
+ "required": false,
17636
+ "description": "Print machine-readable output."
17637
+ },
17638
+ {
17639
+ "name": "--pane-dir",
17640
+ "value": "<path>",
17641
+ "required": false,
17642
+ "description": "Connect to a specific Pane data directory."
17643
+ }
17644
+ ],
17645
+ "examples": [
17646
+ "runpane panels pause --panel <panel-id> --yes --json"
17647
+ ],
17648
+ "jsonSchemas": [
17649
+ "pauseResult"
17650
+ ],
17651
+ "notes": [
17652
+ "Leave paused workers paused unless the person asks to resume them."
15225
17653
  ]
15226
17654
  },
15227
17655
  "panels wait": {
@@ -15283,8 +17711,7 @@ exports.RUNPANE_CONTRACT = {
15283
17711
  "notes": [
15284
17712
  "If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.",
15285
17713
  "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.",
15286
- "The default timeout and screen are intentionally small for agent context safety.",
15287
- "For Chat, status comes from the host session; the legacy screen field has source=acpTranscript and contains transcript text, not a terminal screen."
17714
+ "The default timeout and screen are intentionally small for agent context safety."
15288
17715
  ]
15289
17716
  },
15290
17717
  "panels last-message": {
@@ -15326,8 +17753,7 @@ exports.RUNPANE_CONTRACT = {
15326
17753
  ],
15327
17754
  "notes": [
15328
17755
  "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.",
15329
- "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.",
15330
- "In Chat, read the active host transcript projection."
17756
+ "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."
15331
17757
  ]
15332
17758
  },
15333
17759
  "panels create": {
@@ -15598,8 +18024,7 @@ exports.RUNPANE_CONTRACT = {
15598
18024
  "Use `panels input` or `panels submit` to write prompt text first; this command only submits the current composer.",
15599
18025
  "Use --strategy auto for agent workflows; explicit strategies are diagnostic escape hatches.",
15600
18026
  "The JSON result includes sequenceName, verifiedSubmitted and, for Claude and Codex, delivery (`taken`, `queued`, `in-composer` or `unknown`, with `transcript` or `screen` evidence). If ok is false, follow blocked.suggestedCommand instead of assuming submission happened.",
15601
- "With `--strategy auto`, if the staged text is still visible in the composer after the first attempt, Pane retries once and checks again: Tab for working Codex, Enter otherwise. It never retries an empty composer.",
15602
- "Chat-owned tabs have no native composer to submit. Use panels submit instead."
18027
+ "With `--strategy auto`, if the staged text is still visible in the composer after the first attempt, Pane retries once and checks again: Tab for working Codex, Enter otherwise. It never retries an empty composer."
15603
18028
  ]
15604
18029
  },
15605
18030
  "workspace state": {
@@ -15690,7 +18115,7 @@ exports.RUNPANE_CONTRACT = {
15690
18115
  "name": "--kinds",
15691
18116
  "required": false,
15692
18117
  "value": "<kind,...>",
15693
- "description": "Replace the default event kinds: agent.ready, agent.busy, agent.blocked, agent.unknown, agent.idle, pane.created, pane.gone, panel.exited, panel.stopped, agent.report, pane.associated, pane.detached, pr.conflicted, pr.checks, pr.merged. Defaults: defaults.watch.follow.kinds under --follow, defaults.watch.untilEvent.kinds under --until-event, every kind for a one-shot read."
18118
+ "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."
15694
18119
  },
15695
18120
  {
15696
18121
  "name": "--json",
@@ -17026,6 +19451,7 @@ exports.RUNPANE_CONTRACT = {
17026
19451
  "JSON isPinned: true/false sets the UI pin star. Creation defaults to false; update preserves the pin when omitted.",
17027
19452
  "Payload fields (all optional on update; name required on create): name, goal, context, nextAction, launchCommand, profile (strings); isPinned and, on update, archived (booleans); agent (codex|claude|cursor); decisions and blockers (arrays of strings); evidence and outputs (arrays of links); create also takes runtime (windows|wsl) and wslDistribution; update also takes report, expectedRevision (the revision you read; the update is refused if the Session has moved on) and source (user|agent).",
17028
19453
  "A link is {\"label\": non-empty string, \"url\": an https://, http://, file:// or grain:// URL, \"addedAt\": ISO 8601 date such as 2026-10-14T09:30:00Z, \"kind\"?: evidence|output|ticket|pull-request|other, \"provenance\"?: string}.",
19454
+ "archived: true also archives every Pane associated with the Session, as `panes archive --pane` would. A Pane that check refuses stays open (agent-busy, unsent-input, uncommitted-changes, unpushed-commits, uncommitted-and-unpushed, status-unknown), and so does one whose archive fails. The result's `panes` lists `archivedPaneIds`, `keptPanes` (with `code`) and `failedPanes` (with `error`); check a kept Pane with `panes archive --pane <id> --dry-run --json`. Undo is the person's: `panes restore`.",
17029
19455
  "Arrays replace the stored value: send the whole list, not only new items.",
17030
19456
  "Every problem in the payload is reported at once in one ERR_SESSION_PAYLOAD_INVALID error (paths such as outputs[0].addedAt, \"missing\" for an absent required field), and nothing is changed.",
17031
19457
  "update only: report is {\"summary\": non-empty string, \"status\": reported|verified, \"evidence\": [at least one link], \"reportedAt\": ISO 8601 date, \"provenance\": non-empty string}; report null clears it.",
@@ -17047,7 +19473,7 @@ exports.RUNPANE_CONTRACT = {
17047
19473
  }
17048
19474
  ],
17049
19475
  "examples": [
17050
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]"
19476
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
17051
19477
  ],
17052
19478
  "jsonSchemas": [
17053
19479
  "sessionResult"
@@ -17635,6 +20061,76 @@ exports.RUNPANE_CONTRACT = {
17635
20061
  "Uses the same Session update path as the UI. The requested pin state is idempotent."
17636
20062
  ]
17637
20063
  },
20064
+ "sessions pause": {
20065
+ "name": "sessions pause",
20066
+ "summary": "Pause a Session: stop its chat and the tabs of every Pane in it, keeping their conversations.",
20067
+ "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`.",
20068
+ "requiresPaneDaemon": true,
20069
+ "mutates": true,
20070
+ "arguments": [
20071
+ {
20072
+ "name": "--session",
20073
+ "value": "<id|name>",
20074
+ "required": true,
20075
+ "description": "Named Session id or exact name."
20076
+ },
20077
+ {
20078
+ "name": "--json",
20079
+ "required": false,
20080
+ "description": "Print machine-readable output."
20081
+ },
20082
+ {
20083
+ "name": "--pane-dir",
20084
+ "value": "<path>",
20085
+ "required": false,
20086
+ "description": "Connect to a specific Pane data directory."
20087
+ }
20088
+ ],
20089
+ "examples": [
20090
+ "runpane sessions pause --session <id|name> --json"
20091
+ ],
20092
+ "jsonSchemas": [
20093
+ "pauseResult"
20094
+ ],
20095
+ "notes": [
20096
+ "Leave paused workers paused unless the person asks to resume them."
20097
+ ]
20098
+ },
20099
+ "sessions resume": {
20100
+ "name": "sessions resume",
20101
+ "summary": "Resume a paused Session: restart its chat and the paused tabs of its Panes.",
20102
+ "details": "Resumes the paused tabs of a Session's chat and Panes. An archived Session is refused. Pane restarts each paused tab in place through the same restart `panels resume` runs, so agents relaunch in their saved conversations and report ready as usual. Running tabs are left alone and counted in `unchanged`. `watch` reports each resumed tab as `panel.unpaused`.",
20103
+ "requiresPaneDaemon": true,
20104
+ "mutates": true,
20105
+ "arguments": [
20106
+ {
20107
+ "name": "--session",
20108
+ "value": "<id|name>",
20109
+ "required": true,
20110
+ "description": "Named Session id or exact name."
20111
+ },
20112
+ {
20113
+ "name": "--json",
20114
+ "required": false,
20115
+ "description": "Print machine-readable output."
20116
+ },
20117
+ {
20118
+ "name": "--pane-dir",
20119
+ "value": "<path>",
20120
+ "required": false,
20121
+ "description": "Connect to a specific Pane data directory."
20122
+ }
20123
+ ],
20124
+ "examples": [
20125
+ "runpane sessions resume --session <id|name> --json"
20126
+ ],
20127
+ "jsonSchemas": [
20128
+ "pauseResult"
20129
+ ],
20130
+ "notes": [
20131
+ "ok is false when a tab could not start; check failed[] for which and why. The others still resumed."
20132
+ ]
20133
+ },
17638
20134
  "pr watch": {
17639
20135
  "name": "pr watch",
17640
20136
  "summary": "Register durable GitHub PR monitoring for a Pane.",
@@ -18359,7 +20855,7 @@ exports.RUNPANE_CONTRACT = {
18359
20855
  "",
18360
20856
  "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.",
18361
20857
  "",
18362
- "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.",
20858
+ "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.",
18363
20859
  "",
18364
20860
  "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
18365
20861
  "",
@@ -18370,10 +20866,11 @@ exports.RUNPANE_CONTRACT = {
18370
20866
  "Ask only what you can't find out yourself.",
18371
20867
  "Put related questions in one card.",
18372
20868
  "Send `info` rarely, only for what the person must know now.",
18373
- "Keep titles short and choices to a few words."
20869
+ "Keep titles short and choices to a few words.",
20870
+ "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."
18374
20871
  ],
18375
20872
  "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.",
18376
- "results": "`waiting` means call `notify` again with `resume`; `unavailable` means ask in the terminal.",
20873
+ "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.",
18377
20874
  "examples": [
18378
20875
  {
18379
20876
  "name": "Needs a decision",