runpane 2.4.212 → 2.4.214

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.
@@ -295,6 +295,38 @@ exports.RUNPANE_CONTRACT = {
295
295
  ],
296
296
  "localControl": true
297
297
  },
298
+ {
299
+ "name": "repos get",
300
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
301
+ "usage": [
302
+ "runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]"
303
+ ],
304
+ "toolsets": [
305
+ "repos"
306
+ ],
307
+ "jsonSchemas": [
308
+ "repoGetRequest",
309
+ "repoGetResult"
310
+ ],
311
+ "localControl": true
312
+ },
313
+ {
314
+ "name": "repos update",
315
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.",
316
+ "usage": [
317
+ "runpane repos update --repo <selector> [--name <name>] [--build-script <script>] [--run-script <script>] [--archive-script <script>] [--worktree-folder <path>] [--open-ide-command <command>] [--system-prompt <text>] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json] [--pane-dir <path>]"
318
+ ],
319
+ "mutates": true,
320
+ "idempotent": true,
321
+ "toolsets": [
322
+ "repos"
323
+ ],
324
+ "jsonSchemas": [
325
+ "repoUpdateRequest",
326
+ "repoUpdateResult"
327
+ ],
328
+ "localControl": true
329
+ },
298
330
  {
299
331
  "name": "repos rename",
300
332
  "summary": "Rename a repository saved in the running Pane app.",
@@ -1405,7 +1437,7 @@ exports.RUNPANE_CONTRACT = {
1405
1437
  "name": "sessions set-agent",
1406
1438
  "summary": "Switch the durable terminal agent for a named Session.",
1407
1439
  "usage": [
1408
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]"
1440
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
1409
1441
  ],
1410
1442
  "mutates": true,
1411
1443
  "idempotent": true,
@@ -2144,6 +2176,41 @@ exports.RUNPANE_CONTRACT = {
2144
2176
  "value": "<level>",
2145
2177
  "description": "Reasoning effort for the receiving agent (minimal, low, medium, high, xhigh, max); overrides the destination text."
2146
2178
  },
2179
+ {
2180
+ "name": "--build-script",
2181
+ "value": "<script>",
2182
+ "description": "Project Settings build (setup) script; runs in each new worktree. Newline-separated commands."
2183
+ },
2184
+ {
2185
+ "name": "--run-script",
2186
+ "value": "<script>",
2187
+ "description": "Project Settings run script; runs on the Play button. Newline-separated commands."
2188
+ },
2189
+ {
2190
+ "name": "--archive-script",
2191
+ "value": "<script>",
2192
+ "description": "Project Settings archive script; runs before a worktree is removed. Newline-separated commands."
2193
+ },
2194
+ {
2195
+ "name": "--worktree-folder",
2196
+ "value": "<path>",
2197
+ "description": "Folder new worktrees go in: absolute, or relative to the repository. Defaults to worktrees/ in the repository."
2198
+ },
2199
+ {
2200
+ "name": "--open-ide-command",
2201
+ "value": "<command>",
2202
+ "description": "Command the Open in IDE button runs in a worktree."
2203
+ },
2204
+ {
2205
+ "name": "--system-prompt",
2206
+ "value": "<text>",
2207
+ "description": "Project system prompt."
2208
+ },
2209
+ {
2210
+ "name": "--clear",
2211
+ "value": "<setting,...>",
2212
+ "description": "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt."
2213
+ },
2147
2214
  {
2148
2215
  "name": "--epoch",
2149
2216
  "value": "<epoch>",
@@ -2342,6 +2409,8 @@ exports.RUNPANE_CONTRACT = {
2342
2409
  " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
2343
2410
  " runpane repos list [--json]",
2344
2411
  " runpane repos add --path <path> [--name <name>]",
2412
+ " runpane repos get [--repo <selector>] [--json]",
2413
+ " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]",
2345
2414
  " runpane repos rename --repo <selector> --name <name>",
2346
2415
  " runpane sessions list [--json] [--pane-dir <path>]",
2347
2416
  " runpane sessions create --from-json <path|-> [--json] [--pane-dir <path>]",
@@ -2349,7 +2418,7 @@ exports.RUNPANE_CONTRACT = {
2349
2418
  " runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]",
2350
2419
  " runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
2351
2420
  " 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>]",
2421
+ " runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
2353
2422
  " runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
2354
2423
  " runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
2355
2424
  " runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -2546,6 +2615,39 @@ exports.RUNPANE_CONTRACT = {
2546
2615
  " --dry-run Validate and preview without adding the repo",
2547
2616
  " --yes Skip confirmation for mutating commands"
2548
2617
  ],
2618
+ "repos get": [
2619
+ "Usage:",
2620
+ " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]",
2621
+ "",
2622
+ "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.",
2623
+ "",
2624
+ "Options:",
2625
+ " --repo <selector> active, id, exact path, or saved repository name; defaults to active",
2626
+ " --json Print machine-readable output",
2627
+ " --pane-dir <path> Connect to a specific Pane data directory"
2628
+ ],
2629
+ "repos update": [
2630
+ "Usage:",
2631
+ " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]",
2632
+ "",
2633
+ "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.",
2634
+ "",
2635
+ "Options:",
2636
+ " --repo <selector> active, id, exact path, or saved repository name",
2637
+ " --name <name> Repository display name",
2638
+ " --build-script <script> Build (setup) script; runs in each new worktree",
2639
+ " --run-script <script> Run script; runs on the Play button",
2640
+ " --archive-script <script> Archive script; runs before a worktree is removed",
2641
+ " --worktree-folder <path> Folder for new worktrees, absolute or relative to the repository",
2642
+ " --open-ide-command <command> Command the Open in IDE button runs",
2643
+ " --system-prompt <text> Project system prompt",
2644
+ " --clear <setting,...> Clear settings, e.g. run-script,archive-script; cleared scripts fall back to the repo's config file",
2645
+ " --from-json <path|-> Settings object: {\"runScript\": \"pnpm dev\", \"archiveScript\": null, ...}; flags override it",
2646
+ " --dry-run Show the result without saving",
2647
+ " --yes Skip confirmation for mutating commands",
2648
+ " --json Print machine-readable output",
2649
+ " --pane-dir <path> Connect to a specific Pane data directory"
2650
+ ],
2549
2651
  "repos rename": [
2550
2652
  "Usage:",
2551
2653
  " runpane repos rename --repo <selector> --name <name> --yes [--json]",
@@ -3099,7 +3201,7 @@ exports.RUNPANE_CONTRACT = {
3099
3201
  ],
3100
3202
  "sessions set-agent": [
3101
3203
  "Usage:",
3102
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
3204
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
3103
3205
  "",
3104
3206
  "Options:",
3105
3207
  " --session <id|name> Named Session id or exact name.",
@@ -3894,6 +3996,8 @@ exports.RUNPANE_CONTRACT = {
3894
3996
  " runpane agents doctor --agent <codex|claude|cursor> [--repo <selector>] [--json]",
3895
3997
  " runpane repos list [--json]",
3896
3998
  " runpane repos add --path <path> [--name <name>]",
3999
+ " runpane repos get [--repo <selector>] [--json]",
4000
+ " runpane repos update --repo <selector> [setting flags] --yes [--dry-run] [--json]",
3897
4001
  " runpane repos rename --repo <selector> --name <name>",
3898
4002
  " runpane panes list [--repo <selector>] [--json]",
3899
4003
  " runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]",
@@ -4086,6 +4190,39 @@ exports.RUNPANE_CONTRACT = {
4086
4190
  " --dry-run",
4087
4191
  " --yes"
4088
4192
  ],
4193
+ "repos get": [
4194
+ "Usage:",
4195
+ " runpane repos get [--repo <selector>] [--json] [--pane-dir <path>]",
4196
+ "",
4197
+ "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.",
4198
+ "",
4199
+ "Options:",
4200
+ " --repo <selector>",
4201
+ " --json",
4202
+ " --pane-dir <path>"
4203
+ ],
4204
+ "repos update": [
4205
+ "Usage:",
4206
+ " runpane repos update --repo <selector> [setting flags] [--clear <setting,...>] [--from-json <path|->] --yes [--dry-run] [--json]",
4207
+ "",
4208
+ "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.",
4209
+ "",
4210
+ "Options:",
4211
+ " --repo <selector>",
4212
+ " --name <name>",
4213
+ " --build-script <script>",
4214
+ " --run-script <script>",
4215
+ " --archive-script <script>",
4216
+ " --worktree-folder <path>",
4217
+ " --open-ide-command <command>",
4218
+ " --system-prompt <text>",
4219
+ " --clear <setting,...>",
4220
+ " --from-json <path|->",
4221
+ " --dry-run",
4222
+ " --yes",
4223
+ " --json",
4224
+ " --pane-dir <path>"
4225
+ ],
4089
4226
  "repos rename": [
4090
4227
  "Usage:",
4091
4228
  " runpane repos rename --repo <selector> --name <name> --yes [--json]",
@@ -4623,7 +4760,7 @@ exports.RUNPANE_CONTRACT = {
4623
4760
  ],
4624
4761
  "sessions set-agent": [
4625
4762
  "Usage:",
4626
- "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]",
4763
+ "python -m runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
4627
4764
  "",
4628
4765
  "Options:",
4629
4766
  " --session <id|name> Named Session id or exact name.",
@@ -5394,6 +5531,9 @@ exports.RUNPANE_CONTRACT = {
5394
5531
  "runpane mcp",
5395
5532
  "runpane repos list --json",
5396
5533
  "runpane repos add --path /path/to/repo --name Pane --yes --json",
5534
+ "runpane repos get --repo Pane --json",
5535
+ "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --worktree-folder ../pane-worktrees --yes --json",
5536
+ "runpane repos update --repo Pane --clear run-script --yes --json",
5397
5537
  "runpane repos rename --repo 3 --name Lev --yes --json",
5398
5538
  "runpane panes list --repo active --json",
5399
5539
  "runpane panes cost --pane <pane-id> --json",
@@ -5410,7 +5550,7 @@ exports.RUNPANE_CONTRACT = {
5410
5550
  "runpane sessions update --session <id|name> --from-json <path|-> [--json] [--pane-dir <path>]",
5411
5551
  "runpane sessions pin --session <id|name> [--json] [--pane-dir <path>]",
5412
5552
  "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>]",
5553
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]",
5414
5554
  "runpane sessions associate --session <id|name> --pane <pane-id> [--json] [--pane-dir <path>]",
5415
5555
  "runpane sessions detach --session <id|name> [--pane <pane-id>] [--json] [--pane-dir <path>]",
5416
5556
  "runpane sessions overview --session <id|name> [--json] [--pane-dir <path>]",
@@ -5456,6 +5596,8 @@ exports.RUNPANE_CONTRACT = {
5456
5596
  "`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
5597
  "`runpane repos list` connects to the running local Pane daemon and prints saved repository records.",
5458
5598
  "`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.",
5599
+ "`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.",
5600
+ "`runpane repos update` changes a saved repository's Project Settings through the same save as the Project Settings dialog. It requires `--yes`, supports `--dry-run`, and clears settings with `--clear`.",
5459
5601
  "`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.",
5460
5602
  "`runpane panes list` lists Pane sessions, optionally scoped to one saved repository.",
5461
5603
  "`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.",
@@ -5511,7 +5653,7 @@ exports.RUNPANE_CONTRACT = {
5511
5653
  "The PyPI package uses `source=pip` for all Python consumers, including pip, pipx, uvx, and `python -m runpane`.",
5512
5654
  "Wrappers should prefer `https://runpane.com/api/download?platform=<platform>&arch=<arch>&format=<format>&version=<version>&channel=<channel>&source=<npm|pip>`.",
5513
5655
  "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.",
5656
+ "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
5657
  "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
5658
  "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
5659
  "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."
@@ -6370,6 +6512,30 @@ exports.RUNPANE_CONTRACT = {
6370
6512
  "--yes",
6371
6513
  "--json"
6372
6514
  ],
6515
+ [
6516
+ "repos",
6517
+ "get",
6518
+ "--repo",
6519
+ "Pane",
6520
+ "--json"
6521
+ ],
6522
+ [
6523
+ "repos",
6524
+ "update",
6525
+ "--repo",
6526
+ "Pane",
6527
+ "--build-script",
6528
+ "pnpm install",
6529
+ "--run-script",
6530
+ "pnpm dev",
6531
+ "--worktree-folder",
6532
+ "../wt",
6533
+ "--clear",
6534
+ "archive-script,system-prompt",
6535
+ "--yes",
6536
+ "--dry-run",
6537
+ "--json"
6538
+ ],
6373
6539
  [
6374
6540
  "watch",
6375
6541
  "--as",
@@ -7565,6 +7731,386 @@ exports.RUNPANE_CONTRACT = {
7565
7731
  },
7566
7732
  "additionalProperties": false
7567
7733
  },
7734
+ "repoGetRequest": {
7735
+ "type": "object",
7736
+ "properties": {
7737
+ "repo": {
7738
+ "anyOf": [
7739
+ {
7740
+ "type": "string"
7741
+ },
7742
+ {
7743
+ "type": "object"
7744
+ }
7745
+ ]
7746
+ }
7747
+ },
7748
+ "additionalProperties": false
7749
+ },
7750
+ "repoGetResult": {
7751
+ "type": "object",
7752
+ "required": [
7753
+ "ok",
7754
+ "repo",
7755
+ "settings"
7756
+ ],
7757
+ "properties": {
7758
+ "ok": {
7759
+ "const": true
7760
+ },
7761
+ "repo": {
7762
+ "$ref": "#/jsonSchemas/repoListResult/properties/repos/items"
7763
+ },
7764
+ "settings": {
7765
+ "$ref": "#/$defs/settings"
7766
+ }
7767
+ },
7768
+ "additionalProperties": false,
7769
+ "$defs": {
7770
+ "scriptSource": {
7771
+ "type": "object",
7772
+ "required": [
7773
+ "command",
7774
+ "source"
7775
+ ],
7776
+ "properties": {
7777
+ "command": {
7778
+ "type": "string"
7779
+ },
7780
+ "source": {
7781
+ "type": "string"
7782
+ }
7783
+ },
7784
+ "additionalProperties": false
7785
+ },
7786
+ "scriptSetting": {
7787
+ "type": "object",
7788
+ "required": [
7789
+ "value",
7790
+ "fallback",
7791
+ "effective"
7792
+ ],
7793
+ "properties": {
7794
+ "value": {
7795
+ "type": [
7796
+ "string",
7797
+ "null"
7798
+ ]
7799
+ },
7800
+ "fallback": {
7801
+ "anyOf": [
7802
+ {
7803
+ "$ref": "#/$defs/scriptSource"
7804
+ },
7805
+ {
7806
+ "type": "null"
7807
+ }
7808
+ ]
7809
+ },
7810
+ "effective": {
7811
+ "anyOf": [
7812
+ {
7813
+ "$ref": "#/$defs/scriptSource"
7814
+ },
7815
+ {
7816
+ "type": "null"
7817
+ }
7818
+ ]
7819
+ }
7820
+ },
7821
+ "additionalProperties": false
7822
+ },
7823
+ "settings": {
7824
+ "type": "object",
7825
+ "required": [
7826
+ "name",
7827
+ "path",
7828
+ "currentBranch",
7829
+ "worktreeFolder",
7830
+ "openIdeCommand",
7831
+ "systemPrompt",
7832
+ "configFile",
7833
+ "buildScript",
7834
+ "runScript",
7835
+ "archiveScript"
7836
+ ],
7837
+ "properties": {
7838
+ "name": {
7839
+ "type": "string"
7840
+ },
7841
+ "path": {
7842
+ "type": "string"
7843
+ },
7844
+ "currentBranch": {
7845
+ "type": [
7846
+ "string",
7847
+ "null"
7848
+ ]
7849
+ },
7850
+ "worktreeFolder": {
7851
+ "type": [
7852
+ "string",
7853
+ "null"
7854
+ ]
7855
+ },
7856
+ "openIdeCommand": {
7857
+ "type": [
7858
+ "string",
7859
+ "null"
7860
+ ]
7861
+ },
7862
+ "systemPrompt": {
7863
+ "type": [
7864
+ "string",
7865
+ "null"
7866
+ ]
7867
+ },
7868
+ "configFile": {
7869
+ "type": [
7870
+ "string",
7871
+ "null"
7872
+ ]
7873
+ },
7874
+ "buildScript": {
7875
+ "$ref": "#/$defs/scriptSetting"
7876
+ },
7877
+ "runScript": {
7878
+ "$ref": "#/$defs/scriptSetting"
7879
+ },
7880
+ "archiveScript": {
7881
+ "$ref": "#/$defs/scriptSetting"
7882
+ }
7883
+ },
7884
+ "additionalProperties": false
7885
+ }
7886
+ }
7887
+ },
7888
+ "repoUpdateRequest": {
7889
+ "type": "object",
7890
+ "required": [
7891
+ "repo",
7892
+ "settings"
7893
+ ],
7894
+ "properties": {
7895
+ "repo": {
7896
+ "anyOf": [
7897
+ {
7898
+ "type": "string"
7899
+ },
7900
+ {
7901
+ "type": "object"
7902
+ }
7903
+ ]
7904
+ },
7905
+ "settings": {
7906
+ "type": "object",
7907
+ "minProperties": 1,
7908
+ "properties": {
7909
+ "name": {
7910
+ "type": "string",
7911
+ "minLength": 1
7912
+ },
7913
+ "buildScript": {
7914
+ "type": [
7915
+ "string",
7916
+ "null"
7917
+ ]
7918
+ },
7919
+ "runScript": {
7920
+ "type": [
7921
+ "string",
7922
+ "null"
7923
+ ]
7924
+ },
7925
+ "archiveScript": {
7926
+ "type": [
7927
+ "string",
7928
+ "null"
7929
+ ]
7930
+ },
7931
+ "worktreeFolder": {
7932
+ "type": [
7933
+ "string",
7934
+ "null"
7935
+ ]
7936
+ },
7937
+ "openIdeCommand": {
7938
+ "type": [
7939
+ "string",
7940
+ "null"
7941
+ ]
7942
+ },
7943
+ "systemPrompt": {
7944
+ "type": [
7945
+ "string",
7946
+ "null"
7947
+ ]
7948
+ }
7949
+ },
7950
+ "additionalProperties": false
7951
+ },
7952
+ "dryRun": {
7953
+ "type": "boolean"
7954
+ }
7955
+ },
7956
+ "additionalProperties": false
7957
+ },
7958
+ "repoUpdateResult": {
7959
+ "type": "object",
7960
+ "required": [
7961
+ "ok",
7962
+ "changed",
7963
+ "repo",
7964
+ "settings"
7965
+ ],
7966
+ "properties": {
7967
+ "ok": {
7968
+ "const": true
7969
+ },
7970
+ "dryRun": {
7971
+ "const": true
7972
+ },
7973
+ "changed": {
7974
+ "type": "array",
7975
+ "items": {
7976
+ "enum": [
7977
+ "name",
7978
+ "buildScript",
7979
+ "runScript",
7980
+ "archiveScript",
7981
+ "worktreeFolder",
7982
+ "openIdeCommand",
7983
+ "systemPrompt"
7984
+ ]
7985
+ }
7986
+ },
7987
+ "repo": {
7988
+ "$ref": "#/jsonSchemas/repoListResult/properties/repos/items"
7989
+ },
7990
+ "settings": {
7991
+ "$ref": "#/$defs/settings"
7992
+ }
7993
+ },
7994
+ "additionalProperties": false,
7995
+ "$defs": {
7996
+ "scriptSource": {
7997
+ "type": "object",
7998
+ "required": [
7999
+ "command",
8000
+ "source"
8001
+ ],
8002
+ "properties": {
8003
+ "command": {
8004
+ "type": "string"
8005
+ },
8006
+ "source": {
8007
+ "type": "string"
8008
+ }
8009
+ },
8010
+ "additionalProperties": false
8011
+ },
8012
+ "scriptSetting": {
8013
+ "type": "object",
8014
+ "required": [
8015
+ "value",
8016
+ "fallback",
8017
+ "effective"
8018
+ ],
8019
+ "properties": {
8020
+ "value": {
8021
+ "type": [
8022
+ "string",
8023
+ "null"
8024
+ ]
8025
+ },
8026
+ "fallback": {
8027
+ "anyOf": [
8028
+ {
8029
+ "$ref": "#/$defs/scriptSource"
8030
+ },
8031
+ {
8032
+ "type": "null"
8033
+ }
8034
+ ]
8035
+ },
8036
+ "effective": {
8037
+ "anyOf": [
8038
+ {
8039
+ "$ref": "#/$defs/scriptSource"
8040
+ },
8041
+ {
8042
+ "type": "null"
8043
+ }
8044
+ ]
8045
+ }
8046
+ },
8047
+ "additionalProperties": false
8048
+ },
8049
+ "settings": {
8050
+ "type": "object",
8051
+ "required": [
8052
+ "name",
8053
+ "path",
8054
+ "currentBranch",
8055
+ "worktreeFolder",
8056
+ "openIdeCommand",
8057
+ "systemPrompt",
8058
+ "configFile",
8059
+ "buildScript",
8060
+ "runScript",
8061
+ "archiveScript"
8062
+ ],
8063
+ "properties": {
8064
+ "name": {
8065
+ "type": "string"
8066
+ },
8067
+ "path": {
8068
+ "type": "string"
8069
+ },
8070
+ "currentBranch": {
8071
+ "type": [
8072
+ "string",
8073
+ "null"
8074
+ ]
8075
+ },
8076
+ "worktreeFolder": {
8077
+ "type": [
8078
+ "string",
8079
+ "null"
8080
+ ]
8081
+ },
8082
+ "openIdeCommand": {
8083
+ "type": [
8084
+ "string",
8085
+ "null"
8086
+ ]
8087
+ },
8088
+ "systemPrompt": {
8089
+ "type": [
8090
+ "string",
8091
+ "null"
8092
+ ]
8093
+ },
8094
+ "configFile": {
8095
+ "type": [
8096
+ "string",
8097
+ "null"
8098
+ ]
8099
+ },
8100
+ "buildScript": {
8101
+ "$ref": "#/$defs/scriptSetting"
8102
+ },
8103
+ "runScript": {
8104
+ "$ref": "#/$defs/scriptSetting"
8105
+ },
8106
+ "archiveScript": {
8107
+ "$ref": "#/$defs/scriptSetting"
8108
+ }
8109
+ },
8110
+ "additionalProperties": false
8111
+ }
8112
+ }
8113
+ },
7568
8114
  "repoRenameRequest": {
7569
8115
  "type": "object",
7570
8116
  "required": [
@@ -8690,6 +9236,9 @@ exports.RUNPANE_CONTRACT = {
8690
9236
  "panelId": {
8691
9237
  "type": "string"
8692
9238
  },
9239
+ "panelTitle": {
9240
+ "type": "string"
9241
+ },
8693
9242
  "agentType": {
8694
9243
  "type": "string"
8695
9244
  },
@@ -8826,6 +9375,39 @@ exports.RUNPANE_CONTRACT = {
8826
9375
  "type": "string",
8827
9376
  "description": "Added to watch --json NDJSON events. Persist with gen after processing for numeric rearm."
8828
9377
  },
9378
+ "panels": {
9379
+ "type": "array",
9380
+ "items": {
9381
+ "type": "object",
9382
+ "required": [
9383
+ "panelId",
9384
+ "title"
9385
+ ],
9386
+ "properties": {
9387
+ "panelId": {
9388
+ "type": "string"
9389
+ },
9390
+ "title": {
9391
+ "type": "string"
9392
+ },
9393
+ "agentType": {
9394
+ "type": "string"
9395
+ },
9396
+ "agentState": {
9397
+ "enum": [
9398
+ "blocked",
9399
+ "working",
9400
+ "idle",
9401
+ "unknown"
9402
+ ]
9403
+ },
9404
+ "running": {
9405
+ "type": "boolean"
9406
+ }
9407
+ },
9408
+ "additionalProperties": false
9409
+ }
9410
+ },
8829
9411
  "lastOutput": {
8830
9412
  "type": "string",
8831
9413
  "description": "What an agent.report.missing entry's agent said last, up to 2,000 characters (the end is kept)."
@@ -13314,6 +13896,7 @@ exports.RUNPANE_CONTRACT = {
13314
13896
  "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
13897
  "For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
13316
13898
  "Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
13899
+ "Read and change a repo's Project Settings (build, run, and archive scripts, worktree folder) with `runpane repos get` and `runpane repos update`; never edit Pane's database by hand.",
13317
13900
  "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
13901
  "If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
13319
13902
  "Use `runpane agents doctor --agent <codex|claude|cursor> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
@@ -13373,6 +13956,32 @@ exports.RUNPANE_CONTRACT = {
13373
13956
  "--pane-dir <path>"
13374
13957
  ]
13375
13958
  },
13959
+ {
13960
+ "name": "repos get",
13961
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
13962
+ "arguments": [
13963
+ "--repo <selector>",
13964
+ "--json",
13965
+ "--pane-dir <path>"
13966
+ ]
13967
+ },
13968
+ {
13969
+ "name": "repos update",
13970
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.",
13971
+ "arguments": [
13972
+ "--repo <selector>",
13973
+ "--build-script <script>",
13974
+ "--run-script <script>",
13975
+ "--archive-script <script>",
13976
+ "--worktree-folder <path>",
13977
+ "--name <name>",
13978
+ "--clear <setting,...>",
13979
+ "--from-json <path|->",
13980
+ "--yes",
13981
+ "--dry-run",
13982
+ "--json"
13983
+ ]
13984
+ },
13376
13985
  {
13377
13986
  "name": "repos rename",
13378
13987
  "summary": "Rename a repository saved in the running Pane app.",
@@ -14042,6 +14651,146 @@ exports.RUNPANE_CONTRACT = {
14042
14651
  "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."
14043
14652
  ]
14044
14653
  },
14654
+ "repos get": {
14655
+ "name": "repos get",
14656
+ "summary": "Show a saved repository's Project Settings and the scripts Pane will run.",
14657
+ "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).",
14658
+ "requiresPaneDaemon": true,
14659
+ "mutates": false,
14660
+ "arguments": [
14661
+ {
14662
+ "name": "--repo",
14663
+ "value": "<selector>",
14664
+ "required": false,
14665
+ "description": "Repository selector: active, id, exact path, or saved repository name. Defaults to active."
14666
+ },
14667
+ {
14668
+ "name": "--json",
14669
+ "required": false,
14670
+ "description": "Print machine-readable settings."
14671
+ },
14672
+ {
14673
+ "name": "--pane-dir",
14674
+ "value": "<path>",
14675
+ "required": false,
14676
+ "description": "Connect to a specific Pane data directory."
14677
+ }
14678
+ ],
14679
+ "examples": [
14680
+ "runpane repos get --repo Pane --json"
14681
+ ],
14682
+ "jsonSchemas": [
14683
+ "repoGetRequest",
14684
+ "repoGetResult"
14685
+ ],
14686
+ "notes": [
14687
+ "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.",
14688
+ "`currentBranch` is detected from the repository; it is not a setting."
14689
+ ]
14690
+ },
14691
+ "repos update": {
14692
+ "name": "repos update",
14693
+ "summary": "Change a saved repository's Project Settings: scripts, worktree folder, name, IDE command, and system prompt.",
14694
+ "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.",
14695
+ "requiresPaneDaemon": true,
14696
+ "mutates": true,
14697
+ "arguments": [
14698
+ {
14699
+ "name": "--repo",
14700
+ "value": "<selector>",
14701
+ "required": true,
14702
+ "description": "Repository selector: active, id, exact path, or saved repository name."
14703
+ },
14704
+ {
14705
+ "name": "--name",
14706
+ "value": "<name>",
14707
+ "required": false,
14708
+ "description": "Repository display name. It cannot be cleared."
14709
+ },
14710
+ {
14711
+ "name": "--build-script",
14712
+ "value": "<script>",
14713
+ "required": false,
14714
+ "description": "Build (setup) script; runs in each new worktree. Newline-separated commands."
14715
+ },
14716
+ {
14717
+ "name": "--run-script",
14718
+ "value": "<script>",
14719
+ "required": false,
14720
+ "description": "Run script; runs on the Play button. Newline-separated commands."
14721
+ },
14722
+ {
14723
+ "name": "--archive-script",
14724
+ "value": "<script>",
14725
+ "required": false,
14726
+ "description": "Archive script; runs before a worktree is removed. Newline-separated commands."
14727
+ },
14728
+ {
14729
+ "name": "--worktree-folder",
14730
+ "value": "<path>",
14731
+ "required": false,
14732
+ "description": "Folder new worktrees go in: absolute, or relative to the repository."
14733
+ },
14734
+ {
14735
+ "name": "--open-ide-command",
14736
+ "value": "<command>",
14737
+ "required": false,
14738
+ "description": "Command the Open in IDE button runs in a worktree."
14739
+ },
14740
+ {
14741
+ "name": "--system-prompt",
14742
+ "value": "<text>",
14743
+ "required": false,
14744
+ "description": "Project system prompt."
14745
+ },
14746
+ {
14747
+ "name": "--clear",
14748
+ "value": "<setting,...>",
14749
+ "required": false,
14750
+ "description": "Settings to clear, comma-separated: build-script, run-script, archive-script, worktree-folder, open-ide-command, system-prompt."
14751
+ },
14752
+ {
14753
+ "name": "--from-json",
14754
+ "value": "<path|->",
14755
+ "required": false,
14756
+ "description": "JSON settings object with keys name, buildScript, runScript, archiveScript, worktreeFolder, openIdeCommand, systemPrompt; null clears. Flags override it."
14757
+ },
14758
+ {
14759
+ "name": "--yes",
14760
+ "required": false,
14761
+ "description": "Skip confirmation for mutating commands."
14762
+ },
14763
+ {
14764
+ "name": "--dry-run",
14765
+ "required": false,
14766
+ "description": "Return the settings as they would be after the update without saving."
14767
+ },
14768
+ {
14769
+ "name": "--json",
14770
+ "required": false,
14771
+ "description": "Print machine-readable output."
14772
+ },
14773
+ {
14774
+ "name": "--pane-dir",
14775
+ "value": "<path>",
14776
+ "required": false,
14777
+ "description": "Connect to a specific Pane data directory."
14778
+ }
14779
+ ],
14780
+ "examples": [
14781
+ "runpane repos update --repo Pane --build-script \"pnpm install\" --run-script \"pnpm dev\" --yes --json",
14782
+ "runpane repos update --repo Pane --clear archive-script --dry-run --json",
14783
+ "runpane repos update --repo Pane --from-json settings.json --yes --json"
14784
+ ],
14785
+ "jsonSchemas": [
14786
+ "repoUpdateRequest",
14787
+ "repoUpdateResult"
14788
+ ],
14789
+ "notes": [
14790
+ "`changed` lists the settings whose saved value differs from before.",
14791
+ "The worktree folder applies to Panes created after the update; existing worktrees stay where they are."
14792
+ ]
14793
+ },
14045
14794
  "repos rename": {
14046
14795
  "name": "repos rename",
14047
14796
  "summary": "Rename a repository saved in the running Pane app.",
@@ -14890,8 +15639,7 @@ exports.RUNPANE_CONTRACT = {
14890
15639
  "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
15640
  "Use --json when an agent needs timestamps, record types, returnedCount, or hasMore.",
14892
15641
  "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."
15642
+ "Prefer `panels screen` for a smaller current-state read before increasing output limits."
14895
15643
  ]
14896
15644
  },
14897
15645
  "panels input": {
@@ -14959,8 +15707,7 @@ exports.RUNPANE_CONTRACT = {
14959
15707
  "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
15708
  "After sending input, validate with `runpane panels output --panel <panel-id> --json` before reporting success.",
14961
15709
  "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."
15710
+ "For ordinary text plus Enter, prefer `panels submit` so the terminal receives a CR Enter byte."
14964
15711
  ]
14965
15712
  },
14966
15713
  "agents doctor": {
@@ -15045,8 +15792,7 @@ exports.RUNPANE_CONTRACT = {
15045
15792
  "notes": [
15046
15793
  "Use this before `panels output` when an agent only needs the latest visible/current state.",
15047
15794
  "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."
15795
+ "If hasMore is true and context is missing, rerun with a larger --limit or use `panels output`."
15050
15796
  ]
15051
15797
  },
15052
15798
  "panels submit": {
@@ -15147,8 +15893,7 @@ exports.RUNPANE_CONTRACT = {
15147
15893
  "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
15894
  "`--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
15895
  "`--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."
15896
+ "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
15897
  ]
15153
15898
  },
15154
15899
  "panels resume": {
@@ -15220,8 +15965,7 @@ exports.RUNPANE_CONTRACT = {
15220
15965
  "notes": [
15221
15966
  "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
15967
  "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."
15968
+ "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."
15225
15969
  ]
15226
15970
  },
15227
15971
  "panels wait": {
@@ -15283,8 +16027,7 @@ exports.RUNPANE_CONTRACT = {
15283
16027
  "notes": [
15284
16028
  "If blocked is present, do not assume success. Use blocked.suggestedCommand or inspect `panels screen`.",
15285
16029
  "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."
16030
+ "The default timeout and screen are intentionally small for agent context safety."
15288
16031
  ]
15289
16032
  },
15290
16033
  "panels last-message": {
@@ -15326,8 +16069,7 @@ exports.RUNPANE_CONTRACT = {
15326
16069
  ],
15327
16070
  "notes": [
15328
16071
  "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."
16072
+ "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
16073
  ]
15332
16074
  },
15333
16075
  "panels create": {
@@ -15598,8 +16340,7 @@ exports.RUNPANE_CONTRACT = {
15598
16340
  "Use `panels input` or `panels submit` to write prompt text first; this command only submits the current composer.",
15599
16341
  "Use --strategy auto for agent workflows; explicit strategies are diagnostic escape hatches.",
15600
16342
  "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."
16343
+ "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
16344
  ]
15604
16345
  },
15605
16346
  "workspace state": {
@@ -17047,7 +17788,7 @@ exports.RUNPANE_CONTRACT = {
17047
17788
  }
17048
17789
  ],
17049
17790
  "examples": [
17050
- "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor> [--json] [--pane-dir <path>]"
17791
+ "runpane sessions set-agent --session <id|name> --agent <codex|claude|cursor|opencode> [--json] [--pane-dir <path>]"
17051
17792
  ],
17052
17793
  "jsonSchemas": [
17053
17794
  "sessionResult"