runpane 2.4.231 → 2.4.232
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.
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +2 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +6 -1
- package/dist/commands.js.map +1 -1
- package/dist/docs-index.json +1 -1
- package/dist/docs.js +1 -1
- package/dist/docs.js.map +1 -1
- package/dist/generated/contract.d.ts +442 -12
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +770 -6
- package/dist/generated/contract.js.map +1 -1
- package/dist/handoff.js +1 -1
- package/dist/handoff.js.map +1 -1
- package/dist/localControl.d.ts.map +1 -1
- package/dist/localControl.js +7 -0
- package/dist/localControl.js.map +1 -1
- package/dist/machine.d.ts +4 -0
- package/dist/machine.d.ts.map +1 -0
- package/dist/machine.js +231 -0
- package/dist/machine.js.map +1 -0
- package/dist/mcpTools.d.ts +2 -0
- package/dist/mcpTools.d.ts.map +1 -1
- package/dist/mcpTools.js +1 -1
- package/dist/mcpTools.js.map +1 -1
- package/dist/updateArtifacts.d.ts +2 -0
- package/dist/updateArtifacts.d.ts.map +1 -1
- package/dist/updateArtifacts.js +6 -1
- package/dist/updateArtifacts.js.map +1 -1
- package/dist/updateOperation.d.ts +3 -3
- package/package.json +1 -1
|
@@ -101,6 +101,21 @@ exports.RUNPANE_CONTRACT = {
|
|
|
101
101
|
"cursor",
|
|
102
102
|
"opencode",
|
|
103
103
|
"pi"
|
|
104
|
+
],
|
|
105
|
+
"reclaimKinds": [
|
|
106
|
+
"update-snapshot",
|
|
107
|
+
"migration-backup",
|
|
108
|
+
"archived-pane-folder",
|
|
109
|
+
"agent-temp",
|
|
110
|
+
"paused-scratch",
|
|
111
|
+
"foreign-worktree",
|
|
112
|
+
"foreign-pane-data",
|
|
113
|
+
"other-tool-data"
|
|
114
|
+
],
|
|
115
|
+
"foreignReclaimKinds": [
|
|
116
|
+
"foreign-worktree",
|
|
117
|
+
"foreign-pane-data",
|
|
118
|
+
"other-tool-data"
|
|
104
119
|
]
|
|
105
120
|
},
|
|
106
121
|
"agents": {
|
|
@@ -133,6 +148,9 @@ exports.RUNPANE_CONTRACT = {
|
|
|
133
148
|
"transcriptDirs": [
|
|
134
149
|
".claude/projects"
|
|
135
150
|
],
|
|
151
|
+
"tempDirs": [
|
|
152
|
+
"{tmp}/claude-{uid}"
|
|
153
|
+
],
|
|
136
154
|
"signIn": [
|
|
137
155
|
"auth",
|
|
138
156
|
"login"
|
|
@@ -2460,6 +2478,36 @@ exports.RUNPANE_CONTRACT = {
|
|
|
2460
2478
|
],
|
|
2461
2479
|
"localControl": true
|
|
2462
2480
|
},
|
|
2481
|
+
{
|
|
2482
|
+
"name": "machine health",
|
|
2483
|
+
"summary": "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.",
|
|
2484
|
+
"usage": [
|
|
2485
|
+
"runpane machine health [--json] [--pane-dir <path>]"
|
|
2486
|
+
],
|
|
2487
|
+
"toolsets": [
|
|
2488
|
+
"machine"
|
|
2489
|
+
],
|
|
2490
|
+
"jsonSchemas": [
|
|
2491
|
+
"machineHealthResult"
|
|
2492
|
+
],
|
|
2493
|
+
"localControl": true
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"name": "machine cleanup",
|
|
2497
|
+
"confirmDescription": "Delete the listed items (the CLI's --yes). Without it the call is a dry run that lists them and deletes nothing.",
|
|
2498
|
+
"summary": "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.",
|
|
2499
|
+
"usage": [
|
|
2500
|
+
"runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
|
|
2501
|
+
],
|
|
2502
|
+
"mutates": true,
|
|
2503
|
+
"toolsets": [
|
|
2504
|
+
"machine"
|
|
2505
|
+
],
|
|
2506
|
+
"jsonSchemas": [
|
|
2507
|
+
"machineCleanupResult"
|
|
2508
|
+
],
|
|
2509
|
+
"localControl": true
|
|
2510
|
+
},
|
|
2463
2511
|
{
|
|
2464
2512
|
"name": "sessions unpin",
|
|
2465
2513
|
"summary": "Declaratively unpin a named Session using the UI pin state; repeated requests keep the requested state.",
|
|
@@ -3359,6 +3407,11 @@ exports.RUNPANE_CONTRACT = {
|
|
|
3359
3407
|
"name": "--wait-ms",
|
|
3360
3408
|
"value": "<milliseconds>",
|
|
3361
3409
|
"description": "devices run: how long to wait for the command to exit."
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"name": "--kind",
|
|
3413
|
+
"value": "<kind>",
|
|
3414
|
+
"description": "Kind of item for runpane machine cleanup, such as update-snapshot; runpane machine health lists each item's kind."
|
|
3362
3415
|
}
|
|
3363
3416
|
],
|
|
3364
3417
|
"localBoolean": [
|
|
@@ -3581,6 +3634,8 @@ exports.RUNPANE_CONTRACT = {
|
|
|
3581
3634
|
" runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
|
|
3582
3635
|
" runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
|
|
3583
3636
|
" runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]",
|
|
3637
|
+
" runpane machine health [--json]",
|
|
3638
|
+
" runpane machine cleanup --kind <kind> [--yes] [--json]",
|
|
3584
3639
|
" runpane loops list [--json]",
|
|
3585
3640
|
" runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes",
|
|
3586
3641
|
" runpane loops update|run|pause|resume|delete --loop <id> --yes",
|
|
@@ -4302,7 +4357,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
4302
4357
|
"The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.",
|
|
4303
4358
|
"",
|
|
4304
4359
|
"Options:",
|
|
4305
|
-
" --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, git, docs, links, admin",
|
|
4360
|
+
" --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, workspace, machine, git, docs, links, admin",
|
|
4306
4361
|
" --read-only Serve only read-only tools"
|
|
4307
4362
|
],
|
|
4308
4363
|
"relay": [
|
|
@@ -5652,7 +5707,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
5652
5707
|
"Usage:",
|
|
5653
5708
|
" runpane devices run [--background] [--wait-ms <milliseconds>] [--json] [--pane-dir <path>] -- <command>",
|
|
5654
5709
|
"",
|
|
5655
|
-
"On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail, or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
|
|
5710
|
+
"On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
|
|
5656
5711
|
"",
|
|
5657
5712
|
"Options:",
|
|
5658
5713
|
" --background Keep the command running after the call returns (Metro); it stops at device_close",
|
|
@@ -5709,6 +5764,47 @@ exports.RUNPANE_CONTRACT = {
|
|
|
5709
5764
|
" runpane devices close [--json] [--pane-dir <path>]",
|
|
5710
5765
|
" runpane devices usage [--json] [--pane-dir <path>]",
|
|
5711
5766
|
" runpane devices free (--idle|--all) --yes [--json] [--pane-dir <path>]"
|
|
5767
|
+
],
|
|
5768
|
+
"machine": [
|
|
5769
|
+
"Usage:",
|
|
5770
|
+
" runpane machine <health|cleanup> [options]",
|
|
5771
|
+
"",
|
|
5772
|
+
"Shows this machine's health and frees the disk space Pane made.",
|
|
5773
|
+
"Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.",
|
|
5774
|
+
"Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.",
|
|
5775
|
+
"Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.",
|
|
5776
|
+
"Pane never deletes tier 3; machine health says how to free each one.",
|
|
5777
|
+
"",
|
|
5778
|
+
"Commands:",
|
|
5779
|
+
" runpane machine health [--json] [--pane-dir <path>]",
|
|
5780
|
+
" runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
|
|
5781
|
+
],
|
|
5782
|
+
"machine health": [
|
|
5783
|
+
"Usage:",
|
|
5784
|
+
"runpane machine health [--json] [--pane-dir <path>]",
|
|
5785
|
+
"",
|
|
5786
|
+
"Shows free disk per volume, the memory level and its source, the Panes using the most memory,",
|
|
5787
|
+
"leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.",
|
|
5788
|
+
"",
|
|
5789
|
+
"Options:",
|
|
5790
|
+
" --json Print JSON output.",
|
|
5791
|
+
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
5792
|
+
],
|
|
5793
|
+
"machine cleanup": [
|
|
5794
|
+
"Usage:",
|
|
5795
|
+
"runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]",
|
|
5796
|
+
"",
|
|
5797
|
+
"Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,",
|
|
5798
|
+
"and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.",
|
|
5799
|
+
"Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.",
|
|
5800
|
+
"",
|
|
5801
|
+
"Options:",
|
|
5802
|
+
" --kind <kind> Kind of item to delete, from machine health:",
|
|
5803
|
+
" update-snapshot, migration-backup, archived-pane-folder,",
|
|
5804
|
+
" agent-temp, paused-scratch.",
|
|
5805
|
+
" --yes Delete them. Without --yes, list them and delete nothing.",
|
|
5806
|
+
" --json Print JSON output.",
|
|
5807
|
+
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
5712
5808
|
]
|
|
5713
5809
|
},
|
|
5714
5810
|
"pip": {
|
|
@@ -5794,6 +5890,8 @@ exports.RUNPANE_CONTRACT = {
|
|
|
5794
5890
|
" runpane lock acquire --name <name> --ttl <duration> [--wait <milliseconds>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
|
|
5795
5891
|
" runpane lock release --name <name> [--force] [--session <id|name>] [--note <text>] [--pane <pane-id>] [--panel <panel-id>] [--json] [--pane-dir <path>]",
|
|
5796
5892
|
" runpane lock list [--session <id|name>] [--json] [--pane-dir <path>]",
|
|
5893
|
+
" python -m runpane machine health [--json]",
|
|
5894
|
+
" python -m runpane machine cleanup --kind <kind> [--yes] [--json]",
|
|
5797
5895
|
" python -m runpane loops list [--json]",
|
|
5798
5896
|
" python -m runpane loops create (--repo <selector>|--session <id|name|new>) --name <name> --cron <expr> (--agent <claude|codex|cursor>|--tool-command <command>) [--prompt <text>] --yes",
|
|
5799
5897
|
" python -m runpane loops update|run|pause|resume|delete --loop <id> --yes",
|
|
@@ -7704,6 +7802,47 @@ exports.RUNPANE_CONTRACT = {
|
|
|
7704
7802
|
"",
|
|
7705
7803
|
"`runpane devices` ships in the npm package and the Pane app, not in the Python package.",
|
|
7706
7804
|
"Run it with Node instead: npx --yes runpane@latest devices"
|
|
7805
|
+
],
|
|
7806
|
+
"machine": [
|
|
7807
|
+
"Usage:",
|
|
7808
|
+
" python -m runpane machine <health|cleanup> [options]",
|
|
7809
|
+
"",
|
|
7810
|
+
"Shows this machine's health and frees the disk space Pane made.",
|
|
7811
|
+
"Tier 1: Pane made it and nothing uses it now; Pane removes it by itself.",
|
|
7812
|
+
"Tier 2: may still be wanted (archived Pane folders, paused Panes' scratch, agent temp folders); Pane asks before it deletes.",
|
|
7813
|
+
"Tier 3: not Pane's: another tool's data, a database copy Pane did not write, or a worktree Pane did not create.",
|
|
7814
|
+
"Pane never deletes tier 3; machine health says how to free each one.",
|
|
7815
|
+
"",
|
|
7816
|
+
"Commands:",
|
|
7817
|
+
" python -m runpane machine health [--json] [--pane-dir <path>]",
|
|
7818
|
+
" python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]"
|
|
7819
|
+
],
|
|
7820
|
+
"machine health": [
|
|
7821
|
+
"Usage:",
|
|
7822
|
+
"python -m runpane machine health [--json] [--pane-dir <path>]",
|
|
7823
|
+
"",
|
|
7824
|
+
"Shows free disk per volume, the memory level and its source, the Panes using the most memory,",
|
|
7825
|
+
"leak warnings, and the last storage scan by tier, with sizes and reasons. It deletes nothing.",
|
|
7826
|
+
"",
|
|
7827
|
+
"Options:",
|
|
7828
|
+
" --json Print JSON output.",
|
|
7829
|
+
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
7830
|
+
],
|
|
7831
|
+
"machine cleanup": [
|
|
7832
|
+
"Usage:",
|
|
7833
|
+
"python -m runpane machine cleanup --kind <kind> [--yes] [--json] [--pane-dir <path>]",
|
|
7834
|
+
"",
|
|
7835
|
+
"Without --yes, lists the tier 1 and 2 items of that kind from the last scan and their total size,",
|
|
7836
|
+
"and deletes nothing. With --yes, Pane re-checks each item, deletes it, and reports what it skipped and why.",
|
|
7837
|
+
"Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused: free them with the tool that owns them.",
|
|
7838
|
+
"",
|
|
7839
|
+
"Options:",
|
|
7840
|
+
" --kind <kind> Kind of item to delete, from machine health:",
|
|
7841
|
+
" update-snapshot, migration-backup, archived-pane-folder,",
|
|
7842
|
+
" agent-temp, paused-scratch.",
|
|
7843
|
+
" --yes Delete them. Without --yes, list them and delete nothing.",
|
|
7844
|
+
" --json Print JSON output.",
|
|
7845
|
+
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
7707
7846
|
]
|
|
7708
7847
|
}
|
|
7709
7848
|
},
|
|
@@ -7808,6 +7947,9 @@ exports.RUNPANE_CONTRACT = {
|
|
|
7808
7947
|
"runpane lock acquire --name testing-account --ttl 30m --wait 1800000 --note \"call QA\" --json",
|
|
7809
7948
|
"runpane lock release --name testing-account --json",
|
|
7810
7949
|
"runpane lock list --json",
|
|
7950
|
+
"runpane machine health --json",
|
|
7951
|
+
"runpane machine cleanup --kind update-snapshot --json",
|
|
7952
|
+
"runpane machine cleanup --kind update-snapshot --yes --json",
|
|
7811
7953
|
"runpane loops create --repo active --name nightly-bug-sweep --cron \"0 3 * * *\" --agent claude --prompt \"Fix one bug from yesterday's issues\" --yes --json",
|
|
7812
7954
|
"runpane loops list --json",
|
|
7813
7955
|
"runpane loops run --loop <loop-id> --yes --json",
|
|
@@ -7885,6 +8027,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
7885
8027
|
"`sessions detach` detach a Pane from a named Session.",
|
|
7886
8028
|
"`sessions overview` read a live status, activity, git, and pull request overview for a named Session. Each panel in `panes[].panels[]` carries its own latest `runpane report` as `report`, so one call shows what every worker last reported and when (`reportedAt`, next to the panel's `state` and `lastActivityAt`). When a report's summary is a complete JSON object, such as a status file sent with `--summary-file`, `report.data` holds it exactly as the worker gave it; Pane never reads, renames or validates its fields. A summary that is not a JSON object (plain text, an array, a scalar or invalid JSON), is nested more than 64 levels deep, or was truncated (`summaryTruncated`), has no `data`. A panel that never reported has no `report`. `panes[].report` is still the newest report among the Pane's panels. Each panel also has `type` (`terminal`, `browser`, `editor`, `explorer`, `diff`, ...): a Pane linked whole lists every tab, with `explorer` and `diff` last, and a link that names tabs lists exactly those.",
|
|
7887
8029
|
"`runpane lock acquire|release|list` coordinate a resource shared between agents, such as one test account. The caller's Pane and panel own the lock; it is scoped to the owner's Session (or global outside one), renews for the same owner, and is released on TTL expiry, owner panel exit, or owner Pane archive. `--wait` blocks in the daemon until the lock comes free.",
|
|
8030
|
+
"`runpane machine health` shows this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free by tier. `runpane machine cleanup --kind <kind>` lists one kind of tier 1 or 2 item (a dry run) and deletes them with `--yes`; tier 3 items are not Pane's, so it refuses them and says how to free them. Agents free disk only through this command, never with rm.",
|
|
7888
8031
|
"`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).",
|
|
7889
8032
|
"`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.",
|
|
7890
8033
|
"`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.",
|
|
@@ -9467,6 +9610,19 @@ exports.RUNPANE_CONTRACT = {
|
|
|
9467
9610
|
"https://runpane.net/pair#s=secret&c=k7xq2m4n8p3r5t6v&n=parsa-devbox",
|
|
9468
9611
|
"--yes",
|
|
9469
9612
|
"--json"
|
|
9613
|
+
],
|
|
9614
|
+
[
|
|
9615
|
+
"machine",
|
|
9616
|
+
"health",
|
|
9617
|
+
"--json"
|
|
9618
|
+
],
|
|
9619
|
+
[
|
|
9620
|
+
"machine",
|
|
9621
|
+
"cleanup",
|
|
9622
|
+
"--kind",
|
|
9623
|
+
"update-snapshot",
|
|
9624
|
+
"--yes",
|
|
9625
|
+
"--json"
|
|
9470
9626
|
]
|
|
9471
9627
|
],
|
|
9472
9628
|
"topLevelHelpIncludes": [
|
|
@@ -19175,6 +19331,527 @@ exports.RUNPANE_CONTRACT = {
|
|
|
19175
19331
|
}
|
|
19176
19332
|
},
|
|
19177
19333
|
"additionalProperties": false
|
|
19334
|
+
},
|
|
19335
|
+
"reclaimItem": {
|
|
19336
|
+
"type": "object",
|
|
19337
|
+
"required": [
|
|
19338
|
+
"id",
|
|
19339
|
+
"kind",
|
|
19340
|
+
"tier",
|
|
19341
|
+
"path",
|
|
19342
|
+
"sizeBytes",
|
|
19343
|
+
"modifiedAt",
|
|
19344
|
+
"sessionId",
|
|
19345
|
+
"reason"
|
|
19346
|
+
],
|
|
19347
|
+
"properties": {
|
|
19348
|
+
"id": {
|
|
19349
|
+
"type": "string",
|
|
19350
|
+
"minLength": 1
|
|
19351
|
+
},
|
|
19352
|
+
"kind": {
|
|
19353
|
+
"enum": [
|
|
19354
|
+
"update-snapshot",
|
|
19355
|
+
"migration-backup",
|
|
19356
|
+
"archived-pane-folder",
|
|
19357
|
+
"agent-temp",
|
|
19358
|
+
"paused-scratch",
|
|
19359
|
+
"foreign-worktree",
|
|
19360
|
+
"foreign-pane-data",
|
|
19361
|
+
"other-tool-data"
|
|
19362
|
+
]
|
|
19363
|
+
},
|
|
19364
|
+
"tier": {
|
|
19365
|
+
"enum": [
|
|
19366
|
+
1,
|
|
19367
|
+
2,
|
|
19368
|
+
3
|
|
19369
|
+
]
|
|
19370
|
+
},
|
|
19371
|
+
"path": {
|
|
19372
|
+
"type": "string"
|
|
19373
|
+
},
|
|
19374
|
+
"sizeBytes": {
|
|
19375
|
+
"type": "number"
|
|
19376
|
+
},
|
|
19377
|
+
"modifiedAt": {
|
|
19378
|
+
"type": "number"
|
|
19379
|
+
},
|
|
19380
|
+
"sessionId": {
|
|
19381
|
+
"type": [
|
|
19382
|
+
"string",
|
|
19383
|
+
"null"
|
|
19384
|
+
]
|
|
19385
|
+
},
|
|
19386
|
+
"reason": {
|
|
19387
|
+
"type": "string"
|
|
19388
|
+
},
|
|
19389
|
+
"projectPath": {
|
|
19390
|
+
"type": "string"
|
|
19391
|
+
},
|
|
19392
|
+
"howToFree": {
|
|
19393
|
+
"type": "string"
|
|
19394
|
+
}
|
|
19395
|
+
}
|
|
19396
|
+
},
|
|
19397
|
+
"machineHealthResult": {
|
|
19398
|
+
"type": "object",
|
|
19399
|
+
"required": [
|
|
19400
|
+
"ok",
|
|
19401
|
+
"snapshot",
|
|
19402
|
+
"inventory"
|
|
19403
|
+
],
|
|
19404
|
+
"properties": {
|
|
19405
|
+
"ok": {
|
|
19406
|
+
"const": true
|
|
19407
|
+
},
|
|
19408
|
+
"snapshot": {
|
|
19409
|
+
"type": "object",
|
|
19410
|
+
"required": [
|
|
19411
|
+
"sampledAt",
|
|
19412
|
+
"platform",
|
|
19413
|
+
"hostname",
|
|
19414
|
+
"disk",
|
|
19415
|
+
"memory",
|
|
19416
|
+
"cpuPercent",
|
|
19417
|
+
"app",
|
|
19418
|
+
"panes",
|
|
19419
|
+
"leaks"
|
|
19420
|
+
],
|
|
19421
|
+
"properties": {
|
|
19422
|
+
"sampledAt": {
|
|
19423
|
+
"type": "number"
|
|
19424
|
+
},
|
|
19425
|
+
"platform": {
|
|
19426
|
+
"type": "string"
|
|
19427
|
+
},
|
|
19428
|
+
"hostname": {
|
|
19429
|
+
"type": "string"
|
|
19430
|
+
},
|
|
19431
|
+
"disk": {
|
|
19432
|
+
"type": "object",
|
|
19433
|
+
"required": [
|
|
19434
|
+
"level",
|
|
19435
|
+
"volumes"
|
|
19436
|
+
],
|
|
19437
|
+
"properties": {
|
|
19438
|
+
"level": {
|
|
19439
|
+
"enum": [
|
|
19440
|
+
"ok",
|
|
19441
|
+
"warning",
|
|
19442
|
+
"critical"
|
|
19443
|
+
]
|
|
19444
|
+
},
|
|
19445
|
+
"volumes": {
|
|
19446
|
+
"type": "array",
|
|
19447
|
+
"items": {
|
|
19448
|
+
"type": "object",
|
|
19449
|
+
"required": [
|
|
19450
|
+
"path",
|
|
19451
|
+
"roles",
|
|
19452
|
+
"totalBytes",
|
|
19453
|
+
"freeBytes",
|
|
19454
|
+
"level"
|
|
19455
|
+
],
|
|
19456
|
+
"properties": {
|
|
19457
|
+
"path": {
|
|
19458
|
+
"type": "string"
|
|
19459
|
+
},
|
|
19460
|
+
"roles": {
|
|
19461
|
+
"type": "array",
|
|
19462
|
+
"items": {
|
|
19463
|
+
"enum": [
|
|
19464
|
+
"pane-data",
|
|
19465
|
+
"worktrees",
|
|
19466
|
+
"temp"
|
|
19467
|
+
]
|
|
19468
|
+
}
|
|
19469
|
+
},
|
|
19470
|
+
"totalBytes": {
|
|
19471
|
+
"type": "number"
|
|
19472
|
+
},
|
|
19473
|
+
"freeBytes": {
|
|
19474
|
+
"type": "number"
|
|
19475
|
+
},
|
|
19476
|
+
"level": {
|
|
19477
|
+
"enum": [
|
|
19478
|
+
"ok",
|
|
19479
|
+
"warning",
|
|
19480
|
+
"critical"
|
|
19481
|
+
]
|
|
19482
|
+
}
|
|
19483
|
+
}
|
|
19484
|
+
}
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19487
|
+
},
|
|
19488
|
+
"memory": {
|
|
19489
|
+
"type": "object",
|
|
19490
|
+
"required": [
|
|
19491
|
+
"level",
|
|
19492
|
+
"source",
|
|
19493
|
+
"detail",
|
|
19494
|
+
"totalBytes",
|
|
19495
|
+
"freeBytes",
|
|
19496
|
+
"swapUsedBytes"
|
|
19497
|
+
],
|
|
19498
|
+
"properties": {
|
|
19499
|
+
"level": {
|
|
19500
|
+
"enum": [
|
|
19501
|
+
"ok",
|
|
19502
|
+
"warning",
|
|
19503
|
+
"critical"
|
|
19504
|
+
]
|
|
19505
|
+
},
|
|
19506
|
+
"source": {
|
|
19507
|
+
"enum": [
|
|
19508
|
+
"macos-pressure",
|
|
19509
|
+
"psi",
|
|
19510
|
+
"available"
|
|
19511
|
+
]
|
|
19512
|
+
},
|
|
19513
|
+
"detail": {
|
|
19514
|
+
"type": "string"
|
|
19515
|
+
},
|
|
19516
|
+
"totalBytes": {
|
|
19517
|
+
"type": "number"
|
|
19518
|
+
},
|
|
19519
|
+
"freeBytes": {
|
|
19520
|
+
"type": "number"
|
|
19521
|
+
},
|
|
19522
|
+
"swapUsedBytes": {
|
|
19523
|
+
"type": [
|
|
19524
|
+
"number",
|
|
19525
|
+
"null"
|
|
19526
|
+
]
|
|
19527
|
+
}
|
|
19528
|
+
}
|
|
19529
|
+
},
|
|
19530
|
+
"cpuPercent": {
|
|
19531
|
+
"type": "number"
|
|
19532
|
+
},
|
|
19533
|
+
"app": {
|
|
19534
|
+
"type": "object",
|
|
19535
|
+
"required": [
|
|
19536
|
+
"rssMB",
|
|
19537
|
+
"cpuPercent"
|
|
19538
|
+
],
|
|
19539
|
+
"properties": {
|
|
19540
|
+
"rssMB": {
|
|
19541
|
+
"type": "number"
|
|
19542
|
+
},
|
|
19543
|
+
"cpuPercent": {
|
|
19544
|
+
"type": "number"
|
|
19545
|
+
}
|
|
19546
|
+
}
|
|
19547
|
+
},
|
|
19548
|
+
"panes": {
|
|
19549
|
+
"type": "array",
|
|
19550
|
+
"items": {
|
|
19551
|
+
"type": "object",
|
|
19552
|
+
"required": [
|
|
19553
|
+
"sessionId",
|
|
19554
|
+
"name",
|
|
19555
|
+
"rssMB",
|
|
19556
|
+
"cpuPercent",
|
|
19557
|
+
"processes"
|
|
19558
|
+
],
|
|
19559
|
+
"properties": {
|
|
19560
|
+
"sessionId": {
|
|
19561
|
+
"type": "string"
|
|
19562
|
+
},
|
|
19563
|
+
"name": {
|
|
19564
|
+
"type": "string"
|
|
19565
|
+
},
|
|
19566
|
+
"rssMB": {
|
|
19567
|
+
"type": "number"
|
|
19568
|
+
},
|
|
19569
|
+
"cpuPercent": {
|
|
19570
|
+
"type": "number"
|
|
19571
|
+
},
|
|
19572
|
+
"processes": {
|
|
19573
|
+
"type": "array",
|
|
19574
|
+
"items": {
|
|
19575
|
+
"type": "object"
|
|
19576
|
+
}
|
|
19577
|
+
}
|
|
19578
|
+
}
|
|
19579
|
+
}
|
|
19580
|
+
},
|
|
19581
|
+
"leaks": {
|
|
19582
|
+
"type": "array",
|
|
19583
|
+
"items": {
|
|
19584
|
+
"type": "object",
|
|
19585
|
+
"required": [
|
|
19586
|
+
"pid",
|
|
19587
|
+
"name",
|
|
19588
|
+
"sessionId",
|
|
19589
|
+
"memoryMB",
|
|
19590
|
+
"growthMB",
|
|
19591
|
+
"windowMs"
|
|
19592
|
+
],
|
|
19593
|
+
"properties": {
|
|
19594
|
+
"pid": {
|
|
19595
|
+
"type": "number"
|
|
19596
|
+
},
|
|
19597
|
+
"started": {
|
|
19598
|
+
"type": "string"
|
|
19599
|
+
},
|
|
19600
|
+
"name": {
|
|
19601
|
+
"type": "string"
|
|
19602
|
+
},
|
|
19603
|
+
"sessionId": {
|
|
19604
|
+
"type": "string"
|
|
19605
|
+
},
|
|
19606
|
+
"panelId": {
|
|
19607
|
+
"type": [
|
|
19608
|
+
"string",
|
|
19609
|
+
"null"
|
|
19610
|
+
]
|
|
19611
|
+
},
|
|
19612
|
+
"memoryMB": {
|
|
19613
|
+
"type": "number"
|
|
19614
|
+
},
|
|
19615
|
+
"growthMB": {
|
|
19616
|
+
"type": "number"
|
|
19617
|
+
},
|
|
19618
|
+
"windowMs": {
|
|
19619
|
+
"type": "number"
|
|
19620
|
+
},
|
|
19621
|
+
"series": {
|
|
19622
|
+
"type": "array",
|
|
19623
|
+
"items": {
|
|
19624
|
+
"type": "number"
|
|
19625
|
+
}
|
|
19626
|
+
}
|
|
19627
|
+
}
|
|
19628
|
+
}
|
|
19629
|
+
}
|
|
19630
|
+
}
|
|
19631
|
+
},
|
|
19632
|
+
"inventory": {
|
|
19633
|
+
"description": "Null until the first storage scan after Pane starts has finished.",
|
|
19634
|
+
"oneOf": [
|
|
19635
|
+
{
|
|
19636
|
+
"type": "object",
|
|
19637
|
+
"required": [
|
|
19638
|
+
"scannedAt",
|
|
19639
|
+
"durationMs",
|
|
19640
|
+
"items",
|
|
19641
|
+
"panes",
|
|
19642
|
+
"buckets"
|
|
19643
|
+
],
|
|
19644
|
+
"properties": {
|
|
19645
|
+
"scannedAt": {
|
|
19646
|
+
"type": "number"
|
|
19647
|
+
},
|
|
19648
|
+
"durationMs": {
|
|
19649
|
+
"type": "number"
|
|
19650
|
+
},
|
|
19651
|
+
"items": {
|
|
19652
|
+
"type": "array",
|
|
19653
|
+
"items": {
|
|
19654
|
+
"$ref": "#/jsonSchemas/reclaimItem"
|
|
19655
|
+
}
|
|
19656
|
+
},
|
|
19657
|
+
"panes": {
|
|
19658
|
+
"type": "array",
|
|
19659
|
+
"items": {
|
|
19660
|
+
"type": "object"
|
|
19661
|
+
}
|
|
19662
|
+
},
|
|
19663
|
+
"buckets": {
|
|
19664
|
+
"type": "object"
|
|
19665
|
+
}
|
|
19666
|
+
}
|
|
19667
|
+
},
|
|
19668
|
+
{
|
|
19669
|
+
"type": "null"
|
|
19670
|
+
}
|
|
19671
|
+
]
|
|
19672
|
+
}
|
|
19673
|
+
},
|
|
19674
|
+
"additionalProperties": false
|
|
19675
|
+
},
|
|
19676
|
+
"machineCleanupResult": {
|
|
19677
|
+
"oneOf": [
|
|
19678
|
+
{
|
|
19679
|
+
"type": "object",
|
|
19680
|
+
"required": [
|
|
19681
|
+
"ok",
|
|
19682
|
+
"dryRun",
|
|
19683
|
+
"kind",
|
|
19684
|
+
"items",
|
|
19685
|
+
"totalBytes"
|
|
19686
|
+
],
|
|
19687
|
+
"properties": {
|
|
19688
|
+
"ok": {
|
|
19689
|
+
"const": true
|
|
19690
|
+
},
|
|
19691
|
+
"dryRun": {
|
|
19692
|
+
"const": true
|
|
19693
|
+
},
|
|
19694
|
+
"kind": {
|
|
19695
|
+
"enum": [
|
|
19696
|
+
"update-snapshot",
|
|
19697
|
+
"migration-backup",
|
|
19698
|
+
"archived-pane-folder",
|
|
19699
|
+
"agent-temp",
|
|
19700
|
+
"paused-scratch",
|
|
19701
|
+
"foreign-worktree",
|
|
19702
|
+
"foreign-pane-data",
|
|
19703
|
+
"other-tool-data"
|
|
19704
|
+
]
|
|
19705
|
+
},
|
|
19706
|
+
"items": {
|
|
19707
|
+
"type": "array",
|
|
19708
|
+
"items": {
|
|
19709
|
+
"$ref": "#/jsonSchemas/reclaimItem"
|
|
19710
|
+
}
|
|
19711
|
+
},
|
|
19712
|
+
"totalBytes": {
|
|
19713
|
+
"type": "number"
|
|
19714
|
+
},
|
|
19715
|
+
"scanning": {
|
|
19716
|
+
"type": "boolean",
|
|
19717
|
+
"description": "True when Pane has not finished its first storage scan; items is empty. Run the dry run again in a few minutes."
|
|
19718
|
+
}
|
|
19719
|
+
},
|
|
19720
|
+
"additionalProperties": false
|
|
19721
|
+
},
|
|
19722
|
+
{
|
|
19723
|
+
"type": "object",
|
|
19724
|
+
"required": [
|
|
19725
|
+
"ok",
|
|
19726
|
+
"dryRun",
|
|
19727
|
+
"kind",
|
|
19728
|
+
"run"
|
|
19729
|
+
],
|
|
19730
|
+
"properties": {
|
|
19731
|
+
"ok": {
|
|
19732
|
+
"const": true
|
|
19733
|
+
},
|
|
19734
|
+
"dryRun": {
|
|
19735
|
+
"const": false
|
|
19736
|
+
},
|
|
19737
|
+
"kind": {
|
|
19738
|
+
"enum": [
|
|
19739
|
+
"update-snapshot",
|
|
19740
|
+
"migration-backup",
|
|
19741
|
+
"archived-pane-folder",
|
|
19742
|
+
"agent-temp",
|
|
19743
|
+
"paused-scratch",
|
|
19744
|
+
"foreign-worktree",
|
|
19745
|
+
"foreign-pane-data",
|
|
19746
|
+
"other-tool-data"
|
|
19747
|
+
]
|
|
19748
|
+
},
|
|
19749
|
+
"run": {
|
|
19750
|
+
"type": "object",
|
|
19751
|
+
"required": [
|
|
19752
|
+
"at",
|
|
19753
|
+
"source",
|
|
19754
|
+
"removed",
|
|
19755
|
+
"skipped",
|
|
19756
|
+
"freedBytes"
|
|
19757
|
+
],
|
|
19758
|
+
"properties": {
|
|
19759
|
+
"at": {
|
|
19760
|
+
"type": "number"
|
|
19761
|
+
},
|
|
19762
|
+
"source": {
|
|
19763
|
+
"const": "cli"
|
|
19764
|
+
},
|
|
19765
|
+
"removed": {
|
|
19766
|
+
"type": "array",
|
|
19767
|
+
"items": {
|
|
19768
|
+
"type": "object",
|
|
19769
|
+
"required": [
|
|
19770
|
+
"id",
|
|
19771
|
+
"kind",
|
|
19772
|
+
"path",
|
|
19773
|
+
"sizeBytes"
|
|
19774
|
+
],
|
|
19775
|
+
"properties": {
|
|
19776
|
+
"id": {
|
|
19777
|
+
"type": "string"
|
|
19778
|
+
},
|
|
19779
|
+
"kind": {
|
|
19780
|
+
"enum": [
|
|
19781
|
+
"update-snapshot",
|
|
19782
|
+
"migration-backup",
|
|
19783
|
+
"archived-pane-folder",
|
|
19784
|
+
"agent-temp",
|
|
19785
|
+
"paused-scratch",
|
|
19786
|
+
"foreign-worktree",
|
|
19787
|
+
"foreign-pane-data",
|
|
19788
|
+
"other-tool-data"
|
|
19789
|
+
]
|
|
19790
|
+
},
|
|
19791
|
+
"path": {
|
|
19792
|
+
"type": "string"
|
|
19793
|
+
},
|
|
19794
|
+
"sizeBytes": {
|
|
19795
|
+
"type": "number"
|
|
19796
|
+
},
|
|
19797
|
+
"reason": {
|
|
19798
|
+
"type": "string"
|
|
19799
|
+
}
|
|
19800
|
+
}
|
|
19801
|
+
}
|
|
19802
|
+
},
|
|
19803
|
+
"skipped": {
|
|
19804
|
+
"type": "array",
|
|
19805
|
+
"items": {
|
|
19806
|
+
"type": "object",
|
|
19807
|
+
"required": [
|
|
19808
|
+
"id",
|
|
19809
|
+
"kind",
|
|
19810
|
+
"path",
|
|
19811
|
+
"sizeBytes"
|
|
19812
|
+
],
|
|
19813
|
+
"properties": {
|
|
19814
|
+
"id": {
|
|
19815
|
+
"type": "string"
|
|
19816
|
+
},
|
|
19817
|
+
"kind": {
|
|
19818
|
+
"enum": [
|
|
19819
|
+
"update-snapshot",
|
|
19820
|
+
"migration-backup",
|
|
19821
|
+
"archived-pane-folder",
|
|
19822
|
+
"agent-temp",
|
|
19823
|
+
"paused-scratch",
|
|
19824
|
+
"foreign-worktree",
|
|
19825
|
+
"foreign-pane-data",
|
|
19826
|
+
"other-tool-data"
|
|
19827
|
+
]
|
|
19828
|
+
},
|
|
19829
|
+
"path": {
|
|
19830
|
+
"type": "string"
|
|
19831
|
+
},
|
|
19832
|
+
"sizeBytes": {
|
|
19833
|
+
"type": "number"
|
|
19834
|
+
},
|
|
19835
|
+
"reason": {
|
|
19836
|
+
"type": "string"
|
|
19837
|
+
}
|
|
19838
|
+
}
|
|
19839
|
+
}
|
|
19840
|
+
},
|
|
19841
|
+
"freedBytes": {
|
|
19842
|
+
"type": "number"
|
|
19843
|
+
},
|
|
19844
|
+
"deleting": {
|
|
19845
|
+
"type": "boolean",
|
|
19846
|
+
"description": "True while removed items are still being deleted in the background; freedBytes is 0 until they are."
|
|
19847
|
+
}
|
|
19848
|
+
},
|
|
19849
|
+
"additionalProperties": false
|
|
19850
|
+
}
|
|
19851
|
+
},
|
|
19852
|
+
"additionalProperties": false
|
|
19853
|
+
}
|
|
19854
|
+
]
|
|
19178
19855
|
}
|
|
19179
19856
|
},
|
|
19180
19857
|
"agentContext": {
|
|
@@ -19931,7 +20608,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
19931
20608
|
"name": "--toolsets",
|
|
19932
20609
|
"value": "<name,...>",
|
|
19933
20610
|
"required": false,
|
|
19934
|
-
"description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, git, docs, links, admin."
|
|
20611
|
+
"description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, machine, git, docs, links, admin."
|
|
19935
20612
|
},
|
|
19936
20613
|
{
|
|
19937
20614
|
"name": "--read-only",
|
|
@@ -21404,7 +22081,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
21404
22081
|
"panels output": {
|
|
21405
22082
|
"name": "panels output",
|
|
21406
22083
|
"summary": "Read recent terminal output from a panel.",
|
|
21407
|
-
"details": "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text.",
|
|
22084
|
+
"details": "Use this to inspect recent terminal output from a terminal-backed panel without loading the full history by default. Live terminal scrollback is returned as bounded recent lines; persisted output fallback is returned as bounded records. Terminal control noise is stripped before returning text. When older output exists, hasMore is true and the text output says so on stderr.",
|
|
21408
22085
|
"requiresPaneDaemon": true,
|
|
21409
22086
|
"mutates": false,
|
|
21410
22087
|
"arguments": [
|
|
@@ -21558,7 +22235,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
21558
22235
|
"panels screen": {
|
|
21559
22236
|
"name": "panels screen",
|
|
21560
22237
|
"summary": "Read a compact current-screen view from a terminal panel.",
|
|
21561
|
-
"details": "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines.",
|
|
22238
|
+
"details": "Use this for token-safe current terminal state. It prefers active alternate-screen/TUI output, then live scrollback, then persisted output. On a chat tab it returns the newest transcript lines with source acpTranscript. Default output is bounded to 80 lines. When older lines exist, hasMore is true and the text output says so on stderr.",
|
|
21562
22239
|
"requiresPaneDaemon": true,
|
|
21563
22240
|
"mutates": false,
|
|
21564
22241
|
"arguments": [
|
|
@@ -26013,7 +26690,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
26013
26690
|
"devices run": {
|
|
26014
26691
|
"name": "devices run",
|
|
26015
26692
|
"summary": "Run a command where this Pane's device runs, such as a build (npx expo run:ios) or Metro with --background.",
|
|
26016
|
-
"details": "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail, or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
|
|
26693
|
+
"details": "On this machine it runs in the Pane's worktree. When the device runs on a linked Mac, Pane first syncs the worktree there (uncommitted changes included) and runs in Pane's checkout on the Mac. It waits up to --wait-ms (default 120000) and returns the exit code and log tail (the last 16 KB, starting with [earlier output cut] when output was dropped), or a jobId while it still runs. --background keeps a server such as Metro running until device_close. Pass an empty command to sync only.",
|
|
26017
26694
|
"requiresPaneDaemon": true,
|
|
26018
26695
|
"mutates": true,
|
|
26019
26696
|
"arguments": [
|
|
@@ -26157,6 +26834,91 @@ exports.RUNPANE_CONTRACT = {
|
|
|
26157
26834
|
"jsonSchemas": [
|
|
26158
26835
|
"devicesFreeResult"
|
|
26159
26836
|
]
|
|
26837
|
+
},
|
|
26838
|
+
"machine health": {
|
|
26839
|
+
"name": "machine health",
|
|
26840
|
+
"summary": "Show this machine's disk and memory levels, the Panes using the most memory, leak warnings, and the disk space Pane can free, by tier.",
|
|
26841
|
+
"details": "Reads this machine's latest health snapshot and the last storage scan; it deletes nothing. disk lists each watched volume with free and total bytes; memory gives the level and the OS signal it came from; panes lists each Pane's processes and their memory; leaks lists processes whose memory keeps growing. inventory.items lists what can be freed, each with kind, tier, size and reason. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.",
|
|
26842
|
+
"requiresPaneDaemon": true,
|
|
26843
|
+
"mutates": false,
|
|
26844
|
+
"arguments": [
|
|
26845
|
+
{
|
|
26846
|
+
"name": "--json",
|
|
26847
|
+
"required": false,
|
|
26848
|
+
"description": "Print machine-readable output."
|
|
26849
|
+
},
|
|
26850
|
+
{
|
|
26851
|
+
"name": "--pane-dir",
|
|
26852
|
+
"value": "<path>",
|
|
26853
|
+
"required": false,
|
|
26854
|
+
"description": "Connect to a specific Pane data directory."
|
|
26855
|
+
}
|
|
26856
|
+
],
|
|
26857
|
+
"examples": [
|
|
26858
|
+
"runpane machine health --json",
|
|
26859
|
+
"runpane workspace <machine> machine health --json"
|
|
26860
|
+
],
|
|
26861
|
+
"jsonSchemas": [
|
|
26862
|
+
"machineHealthResult"
|
|
26863
|
+
],
|
|
26864
|
+
"notes": [
|
|
26865
|
+
"Free disk on any machine only through `runpane machine cleanup`, never with rm: cleanup re-checks each item, skips Panes in use, and moves each item to a trash folder before deleting it."
|
|
26866
|
+
]
|
|
26867
|
+
},
|
|
26868
|
+
"machine cleanup": {
|
|
26869
|
+
"name": "machine cleanup",
|
|
26870
|
+
"summary": "Free disk space that Pane made: list one kind of tier 1 or 2 item with its size (a dry run), or delete them with --yes.",
|
|
26871
|
+
"details": "Without --yes it is a dry run: it lists the tier 1 and 2 items of --kind from the last scan and their total size, and deletes nothing. With --yes, Pane re-checks each item (it may be gone, in use, or protected because its Pane is pinned, focused, busy or has uncommitted changes), deletes the rest, and returns what it removed, what it skipped and why, and the bytes freed. A tier 3 kind is refused with ERR_MACHINE_CLEANUP_NOT_PANES, and `next` says how to free it with the tool that owns it. Tier 1: Pane made it and nothing uses it now (replaced update snapshots, old migration backups); Pane also removes these by itself. Tier 2: may still be wanted, so Pane asks first (archived Pane folders, scratch of paused Panes, agent temp folders). Tier 3: not Pane's (other tools' data, database copies Pane did not write, worktrees Pane did not create); Pane never deletes these, and each item's howToFree says how to free it.",
|
|
26872
|
+
"requiresPaneDaemon": true,
|
|
26873
|
+
"mutates": true,
|
|
26874
|
+
"arguments": [
|
|
26875
|
+
{
|
|
26876
|
+
"name": "--kind",
|
|
26877
|
+
"value": "<kind>",
|
|
26878
|
+
"required": true,
|
|
26879
|
+
"description": "Kind of item to delete: update-snapshot, migration-backup, archived-pane-folder, agent-temp, paused-scratch. Tier 3 kinds (foreign-worktree, foreign-pane-data, other-tool-data) are refused.",
|
|
26880
|
+
"schema": {
|
|
26881
|
+
"enum": [
|
|
26882
|
+
"update-snapshot",
|
|
26883
|
+
"migration-backup",
|
|
26884
|
+
"archived-pane-folder",
|
|
26885
|
+
"agent-temp",
|
|
26886
|
+
"paused-scratch",
|
|
26887
|
+
"foreign-worktree",
|
|
26888
|
+
"foreign-pane-data",
|
|
26889
|
+
"other-tool-data"
|
|
26890
|
+
]
|
|
26891
|
+
}
|
|
26892
|
+
},
|
|
26893
|
+
{
|
|
26894
|
+
"name": "--yes",
|
|
26895
|
+
"required": false,
|
|
26896
|
+
"description": "Delete the items. Without it, list them and delete nothing."
|
|
26897
|
+
},
|
|
26898
|
+
{
|
|
26899
|
+
"name": "--json",
|
|
26900
|
+
"required": false,
|
|
26901
|
+
"description": "Print machine-readable output."
|
|
26902
|
+
},
|
|
26903
|
+
{
|
|
26904
|
+
"name": "--pane-dir",
|
|
26905
|
+
"value": "<path>",
|
|
26906
|
+
"required": false,
|
|
26907
|
+
"description": "Connect to a specific Pane data directory."
|
|
26908
|
+
}
|
|
26909
|
+
],
|
|
26910
|
+
"examples": [
|
|
26911
|
+
"runpane machine cleanup --kind update-snapshot --json",
|
|
26912
|
+
"runpane machine cleanup --kind update-snapshot --yes --json",
|
|
26913
|
+
"runpane workspace <machine> machine cleanup --kind update-snapshot --yes --json"
|
|
26914
|
+
],
|
|
26915
|
+
"jsonSchemas": [
|
|
26916
|
+
"machineCleanupResult"
|
|
26917
|
+
],
|
|
26918
|
+
"notes": [
|
|
26919
|
+
"Clean machines only through this command, never with rm or another raw delete.",
|
|
26920
|
+
"Run it without --yes first. Add --yes yourself only for a tier 1 kind; for a tier 2 kind, show the person the list and total size and wait for their OK."
|
|
26921
|
+
]
|
|
26160
26922
|
}
|
|
26161
26923
|
},
|
|
26162
26924
|
"managedBlock": [
|
|
@@ -26168,6 +26930,8 @@ exports.RUNPANE_CONTRACT = {
|
|
|
26168
26930
|
"",
|
|
26169
26931
|
"When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.",
|
|
26170
26932
|
"",
|
|
26933
|
+
"To free disk or memory, run `runpane machine health` and delete only with `runpane machine cleanup` (a dry run until `--yes`), never `rm`. Put QA roots and test instances in the Pane's scratch folder (`$PANE_SCRATCH_DIR`).",
|
|
26934
|
+
"",
|
|
26171
26935
|
"CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
|
|
26172
26936
|
"",
|
|
26173
26937
|
"Devices: the `device_*` MCP tools (or `runpane devices`) open an iOS simulator or Android emulator as a tab in the calling Pane, then drive it. `runpane docs read --doc docs/DEVICES.md` has the rest.",
|