runpane 2.4.253 → 2.4.255
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/README.md +1 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +0 -5
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +0 -14
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +1 -78
- package/dist/commands.js.map +1 -1
- package/dist/docs-index.json +1 -1
- package/dist/generated/contract.d.ts +61 -547
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +137 -1002
- package/dist/generated/contract.js.map +1 -1
- package/dist/links.d.ts +12 -2
- package/dist/links.d.ts.map +1 -1
- package/dist/links.js +50 -1
- package/dist/links.js.map +1 -1
- package/dist/localControl.d.ts +4 -0
- package/dist/localControl.d.ts.map +1 -1
- package/dist/localControl.js +5 -6
- package/dist/localControl.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +3 -1
- package/dist/mcp.js.map +1 -1
- package/dist/updateCapacity.d.ts +1 -0
- package/dist/updateCapacity.d.ts.map +1 -1
- package/dist/updateCapacity.js +1 -0
- package/dist/updateCapacity.js.map +1 -1
- package/dist/updateOperation.d.ts +2 -2
- package/dist/watchLines.d.ts +0 -1
- package/dist/watchLines.d.ts.map +1 -1
- package/dist/watchLines.js +0 -1
- package/dist/watchLines.js.map +1 -1
- package/package.json +1 -1
- package/dist/profiles.d.ts +0 -6
- package/dist/profiles.d.ts.map +0 -1
- package/dist/profiles.js +0 -217
- package/dist/profiles.js.map +0 -1
|
@@ -2338,11 +2338,12 @@ const CONTRACT_SECTION_11 = [
|
|
|
2338
2338
|
},
|
|
2339
2339
|
{
|
|
2340
2340
|
"name": "links create",
|
|
2341
|
-
"summary": "Build a pane:// link that opens a Pane, panel, repository, or Session
|
|
2341
|
+
"summary": "Build a pane:// link that opens a Pane, panel, repository, or Session, or that starts an agent on a prompt once the person confirms.",
|
|
2342
2342
|
"usage": [
|
|
2343
2343
|
"runpane links create --pane <pane-id> [--panel <panel-id>] [--json]",
|
|
2344
2344
|
"runpane links create --repo <repo-id> [--json]",
|
|
2345
|
-
"runpane links create --session <session-id> [--json]"
|
|
2345
|
+
"runpane links create --session <session-id> [--json]",
|
|
2346
|
+
"runpane links create --repo <repo> --prompt <task> [--agent <codex|claude|cursor|opencode|pi>] [--json]"
|
|
2346
2347
|
],
|
|
2347
2348
|
"toolsets": [
|
|
2348
2349
|
"core",
|
|
@@ -2479,7 +2480,7 @@ const CONTRACT_SECTION_11 = [
|
|
|
2479
2480
|
"name": "report",
|
|
2480
2481
|
"summary": "Hand back a worker's structured report: state, PR, head commit, summary, and the question when blocked.",
|
|
2481
2482
|
"usage": [
|
|
2482
|
-
"runpane report
|
|
2483
|
+
"runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text> [--choices <json>|--questions <json>]] [--pane <pane-id> --panel <panel-id>] [--todo <T-n>] [--json] [--pane-dir <path>]"
|
|
2483
2484
|
],
|
|
2484
2485
|
"mutates": true,
|
|
2485
2486
|
"additive": true,
|
|
@@ -3389,76 +3390,6 @@ const CONTRACT_SECTION_11 = [
|
|
|
3389
3390
|
"todoResult"
|
|
3390
3391
|
],
|
|
3391
3392
|
"localControl": true
|
|
3392
|
-
},
|
|
3393
|
-
{
|
|
3394
|
-
"name": "profiles list",
|
|
3395
|
-
"summary": "List the profiles in Pane's library: name, version, origin, on or off, and whether each can launch.",
|
|
3396
|
-
"usage": [
|
|
3397
|
-
"runpane profiles list [--json] [--pane-dir <path>]"
|
|
3398
|
-
],
|
|
3399
|
-
"toolsets": [
|
|
3400
|
-
"core",
|
|
3401
|
-
"profiles",
|
|
3402
|
-
"plugin"
|
|
3403
|
-
],
|
|
3404
|
-
"jsonSchemas": [
|
|
3405
|
-
"profileListResult"
|
|
3406
|
-
],
|
|
3407
|
-
"localControl": true
|
|
3408
|
-
},
|
|
3409
|
-
{
|
|
3410
|
-
"name": "profiles show",
|
|
3411
|
-
"summary": "Show one profile: its agents, its workflow's steps and outcomes, its errors, and its file.",
|
|
3412
|
-
"usage": [
|
|
3413
|
-
"runpane profiles show <name> [--yaml] [--json] [--pane-dir <path>]"
|
|
3414
|
-
],
|
|
3415
|
-
"cliOnlyFlags": [
|
|
3416
|
-
"--yaml"
|
|
3417
|
-
],
|
|
3418
|
-
"toolsets": [
|
|
3419
|
-
"core",
|
|
3420
|
-
"profiles",
|
|
3421
|
-
"plugin"
|
|
3422
|
-
],
|
|
3423
|
-
"jsonSchemas": [
|
|
3424
|
-
"profileShowResult"
|
|
3425
|
-
],
|
|
3426
|
-
"localControl": true
|
|
3427
|
-
},
|
|
3428
|
-
{
|
|
3429
|
-
"name": "profiles launch",
|
|
3430
|
-
"summary": "Launch a profile: Pane runs its workflow step by step, the first step in a new Pane of a Session.",
|
|
3431
|
-
"usage": [
|
|
3432
|
-
"runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] [--agent-harness <agent>=<cli[/model]>]... [--command <cli>=<command>]... --yes [--json] [--pane-dir <path>]"
|
|
3433
|
-
],
|
|
3434
|
-
"mutates": true,
|
|
3435
|
-
"additive": true,
|
|
3436
|
-
"toolsets": [
|
|
3437
|
-
"core",
|
|
3438
|
-
"profiles",
|
|
3439
|
-
"plugin"
|
|
3440
|
-
],
|
|
3441
|
-
"jsonSchemas": [
|
|
3442
|
-
"profileLaunchRequest",
|
|
3443
|
-
"profileLaunchResult"
|
|
3444
|
-
],
|
|
3445
|
-
"localControl": true
|
|
3446
|
-
},
|
|
3447
|
-
{
|
|
3448
|
-
"name": "profiles runs",
|
|
3449
|
-
"summary": "List profile runs: each run's profile, state and current step.",
|
|
3450
|
-
"usage": [
|
|
3451
|
-
"runpane profiles runs [--json] [--pane-dir <path>]"
|
|
3452
|
-
],
|
|
3453
|
-
"toolsets": [
|
|
3454
|
-
"core",
|
|
3455
|
-
"profiles",
|
|
3456
|
-
"plugin"
|
|
3457
|
-
],
|
|
3458
|
-
"jsonSchemas": [
|
|
3459
|
-
"profileRunsResult"
|
|
3460
|
-
],
|
|
3461
|
-
"localControl": true
|
|
3462
3393
|
}
|
|
3463
3394
|
];
|
|
3464
3395
|
/** contract.json "flags". */
|
|
@@ -4175,26 +4106,6 @@ const CONTRACT_SECTION_12 = {
|
|
|
4175
4106
|
"name": "--todo",
|
|
4176
4107
|
"value": "<T-n>",
|
|
4177
4108
|
"description": "notify, report and agents start: the to-do this card, report or agent works on."
|
|
4178
|
-
},
|
|
4179
|
-
{
|
|
4180
|
-
"name": "--outcome",
|
|
4181
|
-
"value": "<name>",
|
|
4182
|
-
"description": "Which of a profile step's declared outcomes happened, for runpane report; implies --state done."
|
|
4183
|
-
},
|
|
4184
|
-
{
|
|
4185
|
-
"name": "--harness",
|
|
4186
|
-
"value": "<cli[/model]>",
|
|
4187
|
-
"description": "profiles launch: one CLI (`cli` or `cli/model`) for every agent of the profile."
|
|
4188
|
-
},
|
|
4189
|
-
{
|
|
4190
|
-
"name": "--agent-harness",
|
|
4191
|
-
"value": "<agent>=<cli[/model]>",
|
|
4192
|
-
"description": "profiles launch: the CLI for one agent of the profile; repeat it per agent."
|
|
4193
|
-
},
|
|
4194
|
-
{
|
|
4195
|
-
"name": "--command",
|
|
4196
|
-
"value": "<cli>=<command>",
|
|
4197
|
-
"description": "profiles launch: the command that starts a CLI Pane does not know; repeat it per CLI."
|
|
4198
4109
|
}
|
|
4199
4110
|
],
|
|
4200
4111
|
"localBoolean": [
|
|
@@ -4373,10 +4284,6 @@ const CONTRACT_SECTION_12 = {
|
|
|
4373
4284
|
{
|
|
4374
4285
|
"name": "--remind-me",
|
|
4375
4286
|
"description": "todos snooze only: at the time, raise a reminder card for the person instead of waking its agents."
|
|
4376
|
-
},
|
|
4377
|
-
{
|
|
4378
|
-
"name": "--yaml",
|
|
4379
|
-
"description": "profiles show: print the profile's file text only."
|
|
4380
4287
|
}
|
|
4381
4288
|
]
|
|
4382
4289
|
};
|
|
@@ -4461,9 +4368,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
4461
4368
|
" runpane todos show|start|stop|done|drop|archive <todo> [--json]",
|
|
4462
4369
|
" runpane todos attach <todo> <file|url> [--kind <kind>] [--label <label>] [--json]",
|
|
4463
4370
|
" runpane todos ask <todo> <question> | comment <todo> <text> | review <todo> [--json]",
|
|
4464
|
-
" runpane profiles list|runs [--json]",
|
|
4465
|
-
" runpane profiles show <name> [--yaml] [--json]",
|
|
4466
|
-
" runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] --yes [--json]",
|
|
4467
4371
|
" runpane panes list [--repo <selector>] [--json]",
|
|
4468
4372
|
" runpane panes cost [--repo <selector>] [--pane <pane-id>] [--json]",
|
|
4469
4373
|
" runpane workspace state [--repo <selector>] [--json]",
|
|
@@ -4501,7 +4405,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
4501
4405
|
" runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
|
|
4502
4406
|
" runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
|
|
4503
4407
|
" runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
|
|
4504
|
-
" runpane report
|
|
4408
|
+
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text> [--choices <json>]] [--json]",
|
|
4505
4409
|
" runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]",
|
|
4506
4410
|
" runpane inbox [--session <id|name>] [--json]",
|
|
4507
4411
|
" runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]",
|
|
@@ -5216,7 +5120,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
5216
5120
|
"The MCP server ships in the npm package and inside the Pane app. The Python package does not include it.",
|
|
5217
5121
|
"",
|
|
5218
5122
|
"Options:",
|
|
5219
|
-
" --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, loops,
|
|
5123
|
+
" --toolsets <name,...> core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, machine, git, docs, links, admin",
|
|
5220
5124
|
" --read-only Serve only read-only tools"
|
|
5221
5125
|
],
|
|
5222
5126
|
"relay": [
|
|
@@ -5698,13 +5602,16 @@ const CONTRACT_SECTION_13 = {
|
|
|
5698
5602
|
" runpane links create --pane <pane-id> [--panel <panel-id>] [--json]",
|
|
5699
5603
|
" runpane links create --repo <repo-id> [--json]",
|
|
5700
5604
|
" runpane links create --session <session-id> [--json]",
|
|
5605
|
+
" runpane links create --repo <repo> --prompt <task> [--agent <codex|claude|cursor|opencode|pi>] [--json]",
|
|
5701
5606
|
"",
|
|
5702
|
-
"Build a pane:// link that opens a Pane, panel, repository, or Session
|
|
5607
|
+
"Build a pane:// link that opens a Pane, panel, repository, or Session, or that starts an agent on a prompt once the person confirms.",
|
|
5703
5608
|
"",
|
|
5704
5609
|
"Options:",
|
|
5705
5610
|
" --pane <pane-id> Pane to open.",
|
|
5706
5611
|
" --panel <panel-id> Panel inside the Pane to select.",
|
|
5707
|
-
" --repo <repo-id> Repository id from repos list.",
|
|
5612
|
+
" --repo <repo-id> Repository id from repos list; with --prompt, also a saved name or owner/repo.",
|
|
5613
|
+
" --prompt <task> Start link: the prompt Pane shows, then sends once the person presses Start.",
|
|
5614
|
+
" --agent <agent> Start link: the agent to start (default: Pane's default agent).",
|
|
5708
5615
|
" --session <session-id> Session id or name from sessions list.",
|
|
5709
5616
|
" --json Print machine-readable output."
|
|
5710
5617
|
],
|
|
@@ -5715,7 +5622,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
5715
5622
|
"Open a pane:// link in the running Pane app.",
|
|
5716
5623
|
"",
|
|
5717
5624
|
"Options:",
|
|
5718
|
-
" --url <pane-url> A pane://open link from links create.",
|
|
5625
|
+
" --url <pane-url> A pane://open or pane://new link from links create.",
|
|
5719
5626
|
" --yes Confirm this change; required in non-interactive shells.",
|
|
5720
5627
|
" --json Print machine-readable output.",
|
|
5721
5628
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
@@ -5796,7 +5703,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
5796
5703
|
],
|
|
5797
5704
|
"report": [
|
|
5798
5705
|
"Usage:",
|
|
5799
|
-
" runpane report
|
|
5706
|
+
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text> [--choices <json>|--questions <json>]] [--pane <pane-id> --panel <panel-id>] [--todo <T-n>] [--json] [--pane-dir <path>]",
|
|
5800
5707
|
"",
|
|
5801
5708
|
"Hands back a worker's structured report for its panel: the orchestrator receives it as an",
|
|
5802
5709
|
"agent.report watch event and reads it in `agents status` and `sessions overview`.",
|
|
@@ -5811,12 +5718,8 @@ const CONTRACT_SECTION_13 = {
|
|
|
5811
5718
|
"brackets with a spaced slash, \"(requests / second)\", reads as options too: word it as prose",
|
|
5812
5719
|
"(\"in requests per second\") or write it without spaces (\"(requests/second)\").",
|
|
5813
5720
|
"",
|
|
5814
|
-
"--outcome <name> ends a profile step with one of its declared outcomes (implies --state done).",
|
|
5815
|
-
"Pane refuses an outcome the step does not declare and lists the ones it does.",
|
|
5816
|
-
"",
|
|
5817
5721
|
"Options:",
|
|
5818
5722
|
" --state <state> ready, blocked, failed, or done",
|
|
5819
|
-
" --outcome <name> A profile step's declared outcome; implies --state done, no --question",
|
|
5820
5723
|
" --pr <number> Pull request number",
|
|
5821
5724
|
" --head <sha> Head commit, 7-40 hex characters",
|
|
5822
5725
|
" --summary <text> Summary text; up to 16,000 characters are kept",
|
|
@@ -5833,7 +5736,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
5833
5736
|
"",
|
|
5834
5737
|
"Examples:",
|
|
5835
5738
|
" runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md",
|
|
5836
|
-
" runpane report --outcome \"plan ready\" --summary-file status.json",
|
|
5837
5739
|
" runpane report --state blocked --question 'Q-3: Use the invoice id in the PDF filename?' --choices '[{\"label\":\"Invoice id\",\"recommended\":true},{\"label\":\"Invoice number\"}]'"
|
|
5838
5740
|
],
|
|
5839
5741
|
"notify": [
|
|
@@ -6204,84 +6106,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
6204
6106
|
" --json Print JSON output.",
|
|
6205
6107
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
6206
6108
|
],
|
|
6207
|
-
"profiles": [
|
|
6208
|
-
"Usage:",
|
|
6209
|
-
" runpane profiles <list|show|launch|runs> [options]",
|
|
6210
|
-
"",
|
|
6211
|
-
"A profile is one YAML file that defines a team of agents and a fixed workflow.",
|
|
6212
|
-
"Pane runs a launched profile's workflow itself, step by step: each step opens as a tab",
|
|
6213
|
-
"in the run's Pane, and an agent step ends when its agent runs",
|
|
6214
|
-
"`runpane report --outcome \"<outcome>\"`. See docs/PROFILES.md.",
|
|
6215
|
-
"",
|
|
6216
|
-
"Commands:",
|
|
6217
|
-
" runpane profiles list [--json] [--pane-dir <path>]",
|
|
6218
|
-
" runpane profiles show <name> [--yaml] [--json] [--pane-dir <path>]",
|
|
6219
|
-
" runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] [--agent-harness <agent>=<cli[/model]>]... [--command <cli>=<command>]... --yes [--json] [--pane-dir <path>]",
|
|
6220
|
-
" runpane profiles runs [--json] [--pane-dir <path>]"
|
|
6221
|
-
],
|
|
6222
|
-
"profiles list": [
|
|
6223
|
-
"Usage:",
|
|
6224
|
-
"runpane profiles list [--json] [--pane-dir <path>]",
|
|
6225
|
-
"",
|
|
6226
|
-
"List the profiles in Pane's library: name, version, origin, on or off, and whether each can launch.",
|
|
6227
|
-
"",
|
|
6228
|
-
"Each line: name, version, bundled or yours, on or off, and launchable, no flow",
|
|
6229
|
-
"(no workflow), or invalid with its first error.",
|
|
6230
|
-
"",
|
|
6231
|
-
"Options:",
|
|
6232
|
-
" --json Print JSON output.",
|
|
6233
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
6234
|
-
],
|
|
6235
|
-
"profiles show": [
|
|
6236
|
-
"Usage:",
|
|
6237
|
-
"runpane profiles show <name> [--yaml] [--json] [--pane-dir <path>]",
|
|
6238
|
-
"",
|
|
6239
|
-
"Show one profile: its agents, its workflow's steps and outcomes, its errors, and its file.",
|
|
6240
|
-
"",
|
|
6241
|
-
"Options:",
|
|
6242
|
-
" <name> The profile's name, from runpane profiles list.",
|
|
6243
|
-
" --yaml Print the profile's file text only.",
|
|
6244
|
-
" --json Print JSON output.",
|
|
6245
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
6246
|
-
],
|
|
6247
|
-
"profiles launch": [
|
|
6248
|
-
"Usage:",
|
|
6249
|
-
"runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] [--agent-harness <agent>=<cli[/model]>]... [--command <cli>=<command>]... --yes [--json] [--pane-dir <path>]",
|
|
6250
|
-
"",
|
|
6251
|
-
"Launch a profile: Pane runs its workflow step by step, the first step in a new Pane of a Session.",
|
|
6252
|
-
"",
|
|
6253
|
-
"Without --repo it runs in the repo of the Pane this terminal is in, else the active repo.",
|
|
6254
|
-
"Without --session a Session orchestrator's runs join its Session; anything else gets a new Session.",
|
|
6255
|
-
"It prints the run id, its Session, its first step and its Pane. Follow it with `runpane profiles runs`.",
|
|
6256
|
-
"",
|
|
6257
|
-
"Options:",
|
|
6258
|
-
" <name> The profile's name, from runpane profiles list.",
|
|
6259
|
-
" --prompt <text> What you want done: the first agent step's request. Required.",
|
|
6260
|
-
" --repo <selector> Repository: active, id, exact path, or saved name.",
|
|
6261
|
-
" --session <id|name> An existing Session to run in.",
|
|
6262
|
-
" --harness <cli[/model]> One CLI for every agent, over the file's runs.",
|
|
6263
|
-
" --agent-harness <agent>=<cli> The CLI for one agent; repeat per agent.",
|
|
6264
|
-
" --command <cli>=<command> The command that starts a CLI Pane does not know; repeat.",
|
|
6265
|
-
" --yes Confirm the launch.",
|
|
6266
|
-
" --json Print JSON output.",
|
|
6267
|
-
" --pane-dir <path> Connect to a specific Pane data directory.",
|
|
6268
|
-
"",
|
|
6269
|
-
"Examples:",
|
|
6270
|
-
" runpane profiles launch greenfield --prompt \"Add dark mode to settings\" --yes",
|
|
6271
|
-
" runpane profiles launch greenfield --prompt \"Fix the flaky test\" --agent-harness planner=claude/opus --yes --json"
|
|
6272
|
-
],
|
|
6273
|
-
"profiles runs": [
|
|
6274
|
-
"Usage:",
|
|
6275
|
-
"runpane profiles runs [--json] [--pane-dir <path>]",
|
|
6276
|
-
"",
|
|
6277
|
-
"List profile runs: each run's profile, state and current step.",
|
|
6278
|
-
"",
|
|
6279
|
-
"Each line: run id, profile, state (running, asking, paused, ended or failed) and step.",
|
|
6280
|
-
"",
|
|
6281
|
-
"Options:",
|
|
6282
|
-
" --json Print JSON output.",
|
|
6283
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
6284
|
-
],
|
|
6285
6109
|
"workspace list": [
|
|
6286
6110
|
"Usage:",
|
|
6287
6111
|
" runpane workspace list [--json] [--pane-dir <path>]",
|
|
@@ -7443,7 +7267,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
7443
7267
|
" runpane agents start (--pane <pane-id> | --repo <selector> --name <name> [--base-branch <branch>]) (--agent <codex|claude|cursor|opencode|pi>|--tool-command <command>) --prompt <task> --yes [--json] [--pane-dir <path>]",
|
|
7444
7268
|
" runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
|
|
7445
7269
|
" runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
|
|
7446
|
-
" runpane report
|
|
7270
|
+
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text> [--choices <json>]] [--json]",
|
|
7447
7271
|
" runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]",
|
|
7448
7272
|
" runpane inbox [--session <id|name>] [--json]",
|
|
7449
7273
|
" runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]",
|
|
@@ -7475,9 +7299,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
7475
7299
|
" python -m runpane todos show|start|stop|done|drop|archive <todo> [--json]",
|
|
7476
7300
|
" python -m runpane todos attach <todo> <file|url> [--kind <kind>] [--label <label>] [--json]",
|
|
7477
7301
|
" python -m runpane todos ask <todo> <question> | comment <todo> <text> | review <todo> [--json]",
|
|
7478
|
-
" python -m runpane profiles list|runs [--json]",
|
|
7479
|
-
" python -m runpane profiles show <name> [--yaml] [--json]",
|
|
7480
|
-
" python -m runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] --yes [--json]",
|
|
7481
7302
|
" runpane help [command]",
|
|
7482
7303
|
"",
|
|
7483
7304
|
"Quick start:",
|
|
@@ -8629,13 +8450,16 @@ const CONTRACT_SECTION_13 = {
|
|
|
8629
8450
|
" runpane links create --pane <pane-id> [--panel <panel-id>] [--json]",
|
|
8630
8451
|
" runpane links create --repo <repo-id> [--json]",
|
|
8631
8452
|
" runpane links create --session <session-id> [--json]",
|
|
8453
|
+
" runpane links create --repo <repo> --prompt <task> [--agent <codex|claude|cursor|opencode|pi>] [--json]",
|
|
8632
8454
|
"",
|
|
8633
|
-
"Build a pane:// link that opens a Pane, panel, repository, or Session
|
|
8455
|
+
"Build a pane:// link that opens a Pane, panel, repository, or Session, or that starts an agent on a prompt once the person confirms.",
|
|
8634
8456
|
"",
|
|
8635
8457
|
"Options:",
|
|
8636
8458
|
" --pane <pane-id> Pane to open.",
|
|
8637
8459
|
" --panel <panel-id> Panel inside the Pane to select.",
|
|
8638
|
-
" --repo <repo-id> Repository id from repos list.",
|
|
8460
|
+
" --repo <repo-id> Repository id from repos list; with --prompt, also a saved name or owner/repo.",
|
|
8461
|
+
" --prompt <task> Start link: the prompt Pane shows, then sends once the person presses Start.",
|
|
8462
|
+
" --agent <agent> Start link: the agent to start (default: Pane's default agent).",
|
|
8639
8463
|
" --session <session-id> Session id or name from sessions list.",
|
|
8640
8464
|
" --json Print machine-readable output."
|
|
8641
8465
|
],
|
|
@@ -8646,7 +8470,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
8646
8470
|
"Open a pane:// link in the running Pane app.",
|
|
8647
8471
|
"",
|
|
8648
8472
|
"Options:",
|
|
8649
|
-
" --url <pane-url> A pane://open link from links create.",
|
|
8473
|
+
" --url <pane-url> A pane://open or pane://new link from links create.",
|
|
8650
8474
|
" --yes Confirm this change; required in non-interactive shells.",
|
|
8651
8475
|
" --json Print machine-readable output.",
|
|
8652
8476
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
@@ -8694,7 +8518,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
8694
8518
|
],
|
|
8695
8519
|
"report": [
|
|
8696
8520
|
"Usage:",
|
|
8697
|
-
" runpane report
|
|
8521
|
+
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary <text>|--summary-file <path|->] [--question <text> [--choices <json>|--questions <json>]] [--pane <pane-id> --panel <panel-id>] [--todo <T-n>] [--json] [--pane-dir <path>]",
|
|
8698
8522
|
"",
|
|
8699
8523
|
"Hands back a worker's structured report for its panel: the orchestrator receives it as an",
|
|
8700
8524
|
"agent.report watch event and reads it in `agents status` and `sessions overview`.",
|
|
@@ -8709,12 +8533,8 @@ const CONTRACT_SECTION_13 = {
|
|
|
8709
8533
|
"brackets with a spaced slash, \"(requests / second)\", reads as options too: word it as prose",
|
|
8710
8534
|
"(\"in requests per second\") or write it without spaces (\"(requests/second)\").",
|
|
8711
8535
|
"",
|
|
8712
|
-
"--outcome <name> ends a profile step with one of its declared outcomes (implies --state done).",
|
|
8713
|
-
"Pane refuses an outcome the step does not declare and lists the ones it does.",
|
|
8714
|
-
"",
|
|
8715
8536
|
"Options:",
|
|
8716
8537
|
" --state <state> ready, blocked, failed, or done",
|
|
8717
|
-
" --outcome <name> A profile step's declared outcome; implies --state done, no --question",
|
|
8718
8538
|
" --pr <number> Pull request number",
|
|
8719
8539
|
" --head <sha> Head commit, 7-40 hex characters",
|
|
8720
8540
|
" --summary <text> Summary text; up to 16,000 characters are kept",
|
|
@@ -8731,7 +8551,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
8731
8551
|
"",
|
|
8732
8552
|
"Examples:",
|
|
8733
8553
|
" runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md",
|
|
8734
|
-
" runpane report --outcome \"plan ready\" --summary-file status.json",
|
|
8735
8554
|
" runpane report --state blocked --question 'Q-3: Use the invoice id in the PDF filename?' --choices '[{\"label\":\"Invoice id\",\"recommended\":true},{\"label\":\"Invoice number\"}]'"
|
|
8736
8555
|
],
|
|
8737
8556
|
"notify": [
|
|
@@ -9102,84 +8921,6 @@ const CONTRACT_SECTION_13 = {
|
|
|
9102
8921
|
" --json Print JSON output.",
|
|
9103
8922
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
9104
8923
|
],
|
|
9105
|
-
"profiles": [
|
|
9106
|
-
"Usage:",
|
|
9107
|
-
" python -m runpane profiles <list|show|launch|runs> [options]",
|
|
9108
|
-
"",
|
|
9109
|
-
"A profile is one YAML file that defines a team of agents and a fixed workflow.",
|
|
9110
|
-
"Pane runs a launched profile's workflow itself, step by step: each step opens as a tab",
|
|
9111
|
-
"in the run's Pane, and an agent step ends when its agent runs",
|
|
9112
|
-
"`runpane report --outcome \"<outcome>\"`. See docs/PROFILES.md.",
|
|
9113
|
-
"",
|
|
9114
|
-
"Commands:",
|
|
9115
|
-
" python -m runpane profiles list [--json] [--pane-dir <path>]",
|
|
9116
|
-
" python -m runpane profiles show <name> [--yaml] [--json] [--pane-dir <path>]",
|
|
9117
|
-
" python -m runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] [--agent-harness <agent>=<cli[/model]>]... [--command <cli>=<command>]... --yes [--json] [--pane-dir <path>]",
|
|
9118
|
-
" python -m runpane profiles runs [--json] [--pane-dir <path>]"
|
|
9119
|
-
],
|
|
9120
|
-
"profiles list": [
|
|
9121
|
-
"Usage:",
|
|
9122
|
-
"python -m runpane profiles list [--json] [--pane-dir <path>]",
|
|
9123
|
-
"",
|
|
9124
|
-
"List the profiles in Pane's library: name, version, origin, on or off, and whether each can launch.",
|
|
9125
|
-
"",
|
|
9126
|
-
"Each line: name, version, bundled or yours, on or off, and launchable, no flow",
|
|
9127
|
-
"(no workflow), or invalid with its first error.",
|
|
9128
|
-
"",
|
|
9129
|
-
"Options:",
|
|
9130
|
-
" --json Print JSON output.",
|
|
9131
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
9132
|
-
],
|
|
9133
|
-
"profiles show": [
|
|
9134
|
-
"Usage:",
|
|
9135
|
-
"python -m runpane profiles show <name> [--yaml] [--json] [--pane-dir <path>]",
|
|
9136
|
-
"",
|
|
9137
|
-
"Show one profile: its agents, its workflow's steps and outcomes, its errors, and its file.",
|
|
9138
|
-
"",
|
|
9139
|
-
"Options:",
|
|
9140
|
-
" <name> The profile's name, from runpane profiles list.",
|
|
9141
|
-
" --yaml Print the profile's file text only.",
|
|
9142
|
-
" --json Print JSON output.",
|
|
9143
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
9144
|
-
],
|
|
9145
|
-
"profiles launch": [
|
|
9146
|
-
"Usage:",
|
|
9147
|
-
"python -m runpane profiles launch <name> --prompt <text> [--repo <selector>] [--session <id|name>] [--harness <cli[/model]>] [--agent-harness <agent>=<cli[/model]>]... [--command <cli>=<command>]... --yes [--json] [--pane-dir <path>]",
|
|
9148
|
-
"",
|
|
9149
|
-
"Launch a profile: Pane runs its workflow step by step, the first step in a new Pane of a Session.",
|
|
9150
|
-
"",
|
|
9151
|
-
"Without --repo it runs in the repo of the Pane this terminal is in, else the active repo.",
|
|
9152
|
-
"Without --session a Session orchestrator's runs join its Session; anything else gets a new Session.",
|
|
9153
|
-
"It prints the run id, its Session, its first step and its Pane. Follow it with `runpane profiles runs`.",
|
|
9154
|
-
"",
|
|
9155
|
-
"Options:",
|
|
9156
|
-
" <name> The profile's name, from runpane profiles list.",
|
|
9157
|
-
" --prompt <text> What you want done: the first agent step's request. Required.",
|
|
9158
|
-
" --repo <selector> Repository: active, id, exact path, or saved name.",
|
|
9159
|
-
" --session <id|name> An existing Session to run in.",
|
|
9160
|
-
" --harness <cli[/model]> One CLI for every agent, over the file's runs.",
|
|
9161
|
-
" --agent-harness <agent>=<cli> The CLI for one agent; repeat per agent.",
|
|
9162
|
-
" --command <cli>=<command> The command that starts a CLI Pane does not know; repeat.",
|
|
9163
|
-
" --yes Confirm the launch.",
|
|
9164
|
-
" --json Print JSON output.",
|
|
9165
|
-
" --pane-dir <path> Connect to a specific Pane data directory.",
|
|
9166
|
-
"",
|
|
9167
|
-
"Examples:",
|
|
9168
|
-
" python -m runpane profiles launch greenfield --prompt \"Add dark mode to settings\" --yes",
|
|
9169
|
-
" python -m runpane profiles launch greenfield --prompt \"Fix the flaky test\" --agent-harness planner=claude/opus --yes --json"
|
|
9170
|
-
],
|
|
9171
|
-
"profiles runs": [
|
|
9172
|
-
"Usage:",
|
|
9173
|
-
"python -m runpane profiles runs [--json] [--pane-dir <path>]",
|
|
9174
|
-
"",
|
|
9175
|
-
"List profile runs: each run's profile, state and current step.",
|
|
9176
|
-
"",
|
|
9177
|
-
"Each line: run id, profile, state (running, asking, paused, ended or failed) and step.",
|
|
9178
|
-
"",
|
|
9179
|
-
"Options:",
|
|
9180
|
-
" --json Print JSON output.",
|
|
9181
|
-
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
9182
|
-
],
|
|
9183
8924
|
"workspace list": [
|
|
9184
8925
|
"Usage:",
|
|
9185
8926
|
" runpane workspace list [--json] [--pane-dir <path>]",
|
|
@@ -10184,8 +9925,6 @@ const CONTRACT_SECTION_14 = {
|
|
|
10184
9925
|
"runpane todos ask T-12 \"Should the sheet list chat shortcuts too?\" --json",
|
|
10185
9926
|
"runpane todos review T-12 --summary \"Ready; see the PR.\" --json",
|
|
10186
9927
|
"runpane todos snooze T-12 --until tomorrow --note \"Check Sentry after the deploy\" --json",
|
|
10187
|
-
"runpane profiles list --json",
|
|
10188
|
-
"runpane profiles launch greenfield --prompt \"Add dark mode to settings\" --yes --json",
|
|
10189
9928
|
"runpane agents start --repo active --name fix-login --agent claude --prompt \"Fix the login redirect\" --yes --json",
|
|
10190
9929
|
"runpane agents start --pane <pane-id> --agent codex --prompt \"Review the PR from this branch and report findings\" --yes --json",
|
|
10191
9930
|
"runpane agents status --pane <pane-id> --json",
|
|
@@ -10263,10 +10002,8 @@ const CONTRACT_SECTION_14 = {
|
|
|
10263
10002
|
"`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.",
|
|
10264
10003
|
"`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).",
|
|
10265
10004
|
"`runpane todos create|update|attach|detach|show|list|assign|ask|comment|review|done|drop|archive|start|stop` manage to-dos, the person's list of agent work: each started to-do gets its own Session and orchestrator, and Pane keeps it moving until it is done. Each call records the caller's tab ($PANE_PANEL_ID). Attach plans, mock-ups, designs, PRs, findings and decisions as soon as they exist; ask the requester first with `todos ask`; replies are summaries of at most 2,000 characters; `todos review` needs attachments or `--no-attachments`; an agent marks a top-level to-do done only after the person's Accept or with `--person-said`. `--todo <T-n>` on `notify`, `report` and `agents start` links that card, report or agent to a to-do.",
|
|
10266
|
-
"`runpane profiles list|show|launch|runs` work with Pane profiles: a profile is one YAML file that defines a team of agents and a fixed workflow, and Pane runs a launched profile's workflow itself (see [PROFILES.md](PROFILES.md)). `list` prints each profile in the library with its version, origin (`bundled` or `yours`), whether it is on, and whether it can launch (`launchable`, `no flow` for a profile with no workflow, or `invalid` with its first error); `--json` adds the bundled Agent Farm's state and the person's own Agent Farm profiles. `show <name>` prints its agents, steps and outcomes, and errors (`--yaml` prints the file text only; `--json` carries both as `profile` and `yaml`). `launch <name> --prompt <text> --yes` starts a run and prints it (`run`: id, Session, step, Pane): it runs in `--repo`, else the repo of the Pane the caller's terminal is in (`PANE_SESSION_ID`), else the active repo; in `--session`, else the caller's orchestrated Session (`PANE_ORCHESTRATION_SESSION_ID`), else a new Session. `--harness <cli[/model]>` picks one CLI for every agent, `--agent-harness <agent>=<cli[/model]>` one agent's CLI, and `--command <cli>=<command>` the command that starts a CLI Pane does not know (each repeatable, or one JSON object). A launch without `--prompt` fails with `ERR_PROFILES_PROMPT_REQUIRED`; Pane refuses a profile it cannot launch with `PROFILE_NOT_FOUND`, `PROFILE_NOT_LAUNCHABLE` or `PROFILE_TEAM_ONLY` and a next step. Profiles is off until Settings › Advanced › Profiles turns it on; until then `list`, `show` and `launch` fail with `PROFILES_OFF`, while runs already started keep going and `runs` still lists them. `runs` lists runs with their state (`running`, `asking`, `paused`, `ended`, `failed`) and current step. The MCP tools are `profiles_list`, `profiles_show`, `profiles_launch` and `profiles_runs`, in the `core`, `profiles` and `plugin` toolsets.",
|
|
10267
10005
|
"`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.",
|
|
10268
10006
|
"`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, with its buttons as `--choices` or `--questions` in notify's JSON), 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.",
|
|
10269
|
-
"`runpane report --outcome <name>` ends one step of a Pane profile workflow: it names which of the step's declared outcomes happened (`runpane report --outcome \"plan ready\" --summary-file status.json`) and sends `state: done` with `outcome`. `--state` is then optional and may only be `done` (otherwise `ERR_REPORT_OUTCOME_STATE`), and `--question` is refused (`ERR_REPORT_OUTCOME_QUESTION`): an outcome ends the step, a question would block it. Pane checks the outcome against the step the panel runs and refuses an undeclared one with an error that lists the allowed outcomes.",
|
|
10270
10007
|
"`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab), and Pane records the reply as the answer once it is delivered. If the reply asks something instead, `--took <id|Q-n> question [--status <text>]` reopens the approval and shows that the agent is getting more context (`--took <id|Q-n> answer` confirms it, and changes nothing), and `runpane notify --update <id|Q-n> [--asked <text>] --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.",
|
|
10271
10008
|
"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.",
|
|
10272
10009
|
"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.",
|
|
@@ -10276,7 +10013,7 @@ const CONTRACT_SECTION_14 = {
|
|
|
10276
10013
|
"`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.",
|
|
10277
10014
|
"`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.",
|
|
10278
10015
|
"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.",
|
|
10279
|
-
"`runpane links create` builds `pane://open?...` links
|
|
10016
|
+
"`runpane links create` builds `pane://open?...` links, which select what they name and never change Pane state, and `pane://new?...` start links, which ask the person before Pane starts an agent on the prompt.",
|
|
10280
10017
|
"`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.",
|
|
10281
10018
|
"`runpane handoff` hands a task to another agent on this or another of your machines. The sending agent writes the note from `runpane handoff --template` (goal, current state, done and verified, in progress, next steps, decisions and constraints, open questions, how to verify, git state); `runpane handoff \"claude opus on parsas-macbook-pro\" --note-file ~/handoff.md` checks every section is filled in, requires the branch to be pushed (or pushes it with `--push`, never forcing), writes the note to that machine's `~/.pane/handoffs/` and starts the agent in a new Pane branched from the sender's branch. When the sender is a Pane tab running a Claude, Codex, Cursor or OpenCode session and the receiver is the same agent, the handoff carries that session: on another machine its files are copied into that machine's agent store and the receiver resumes the same id; on this machine the receiver resumes a fork, because two agents never resume one session on one machine. The receiver starts with no prompt, and the CLI runs the continuity check and reports JSON `continuity.result` `continued`, `inconclusive` (exit 0; `next` gives a probe question) or `not-continued` (exit 1; the receiver is kept and `next` gives the `--note-only` command). `--note-only`, a different agent, or a tab with no carried session starts a fresh agent with the note (`fresh-agent`). JSON `continuity` is `{ carried, result, agent, sessionId, resumedId, fork, files, bytes, checks: { resumedById, restartResumes, historyLoaded, originalUntouched?, originalAppended? }, reason, next }`: `sessionId` is the sender's session, `resumedId` the id the receiver resumes (the fork's on this machine), `checks` are the continuity checks (`historyLoaded` is null when there was nothing to compare; `originalUntouched` is set for forks), and a dry run sets `carried`, `sessionId`, `fork`, `files` and `bytes` with no `result`. After `continued` or `inconclusive` the sending agent ends its turn and makes no more changes on the branch. An OpenCode session travels as its export: `opencode export` on this machine, then `opencode import` inside the receiving repository there, and an OpenCode receiver is accepted only to continue an OpenCode session. A Cursor session is carried only to another machine, best effort since Cursor's store is undocumented: Cursor has no fork, and a copied chat still writes to the original, so on this machine the result is `not-continued` and nothing is started. A destination's agent store is assumed at its default location (`~/.claude`, `~/.codex`, `~/.cursor`); a copy already there is replaced only when the sender's holds all of it and no agent there runs it, otherwise nothing is copied and the result is `not-continued`. A destination Pane too old to resume a carried session is refused before anything is sent (`ERR_HANDOFF_RESUME_UNSUPPORTED`). From a Session's terminal it skips git and creates a Session with the same name, goal and agent on the other machine instead; a same-agent Session starts on the sender's conversation. The receiver reports back to the sender's panel.",
|
|
10282
10019
|
"`runpane ask --agent <agent> --prompt \"<question>\"` asks one agent one read-only question and prints its answer, with no tab left behind: the agent's own headless mode runs once, on this machine or another one (`--machine`), in a saved repository (`--repo`, a WSL repository runs in WSL) or a Pane's worktree (`--pane`), with any model it accepts (`--model`). It can read files but not edit them or run shell commands; an agent with no such mode is refused (`ERR_ASK_UNSUPPORTED`). A missing agent, a sign-in error, an unknown model and a timeout each fail with the agent's own words and the next step. Use it for a second opinion or a question to another model; work that edits files goes to a tab.",
|
|
@@ -12117,54 +11854,6 @@ const CONTRACT_SECTION_15 = {
|
|
|
12117
11854
|
"T-12",
|
|
12118
11855
|
"--yes",
|
|
12119
11856
|
"--json"
|
|
12120
|
-
],
|
|
12121
|
-
[
|
|
12122
|
-
"report",
|
|
12123
|
-
"--outcome",
|
|
12124
|
-
" plan ready ",
|
|
12125
|
-
"--summary-file",
|
|
12126
|
-
"status.json"
|
|
12127
|
-
],
|
|
12128
|
-
[
|
|
12129
|
-
"profiles",
|
|
12130
|
-
"list",
|
|
12131
|
-
"--json"
|
|
12132
|
-
],
|
|
12133
|
-
[
|
|
12134
|
-
"profiles",
|
|
12135
|
-
"show",
|
|
12136
|
-
"greenfield",
|
|
12137
|
-
"--yaml"
|
|
12138
|
-
],
|
|
12139
|
-
[
|
|
12140
|
-
"profiles",
|
|
12141
|
-
"launch",
|
|
12142
|
-
"greenfield",
|
|
12143
|
-
"--prompt",
|
|
12144
|
-
"Add dark mode",
|
|
12145
|
-
"--repo",
|
|
12146
|
-
"active",
|
|
12147
|
-
"--session",
|
|
12148
|
-
"Nightly",
|
|
12149
|
-
"--harness",
|
|
12150
|
-
"claude/opus",
|
|
12151
|
-
"--agent-harness",
|
|
12152
|
-
"planner=codex",
|
|
12153
|
-
"--agent-harness={\"reviewer\":\"claude\"}",
|
|
12154
|
-
"--command",
|
|
12155
|
-
"aider=aider --yes-always",
|
|
12156
|
-
"--yes",
|
|
12157
|
-
"--json"
|
|
12158
|
-
],
|
|
12159
|
-
[
|
|
12160
|
-
"profiles",
|
|
12161
|
-
"runs",
|
|
12162
|
-
"--pane-dir",
|
|
12163
|
-
"/tmp/pane"
|
|
12164
|
-
],
|
|
12165
|
-
[
|
|
12166
|
-
"profiles",
|
|
12167
|
-
"--help"
|
|
12168
11857
|
]
|
|
12169
11858
|
],
|
|
12170
11859
|
"topLevelHelpIncludes": [
|
|
@@ -15169,6 +14858,14 @@ const CONTRACT_SECTION_16 = {
|
|
|
15169
14858
|
"additionalProperties": false
|
|
15170
14859
|
},
|
|
15171
14860
|
"description": "A blocked report's several questions (--questions), each with its own buttons."
|
|
14861
|
+
},
|
|
14862
|
+
"todo": {
|
|
14863
|
+
"type": "string",
|
|
14864
|
+
"description": "The reference the report was sent with (\"T-28\"). A worker's Session machine reads it as its own. Absent when none was sent, and from older daemons."
|
|
14865
|
+
},
|
|
14866
|
+
"installId": {
|
|
14867
|
+
"type": "string",
|
|
14868
|
+
"description": "The install id of the machine the report was made on; sent with todo. Absent from older daemons."
|
|
15172
14869
|
}
|
|
15173
14870
|
},
|
|
15174
14871
|
"additionalProperties": false
|
|
@@ -18485,7 +18182,8 @@ const CONTRACT_SECTION_16 = {
|
|
|
18485
18182
|
"enum": [
|
|
18486
18183
|
"pane",
|
|
18487
18184
|
"repo",
|
|
18488
|
-
"session"
|
|
18185
|
+
"session",
|
|
18186
|
+
"new"
|
|
18489
18187
|
]
|
|
18490
18188
|
},
|
|
18491
18189
|
"id": {
|
|
@@ -18493,6 +18191,12 @@ const CONTRACT_SECTION_16 = {
|
|
|
18493
18191
|
},
|
|
18494
18192
|
"panelId": {
|
|
18495
18193
|
"type": "string"
|
|
18194
|
+
},
|
|
18195
|
+
"prompt": {
|
|
18196
|
+
"type": "string"
|
|
18197
|
+
},
|
|
18198
|
+
"agent": {
|
|
18199
|
+
"type": "string"
|
|
18496
18200
|
}
|
|
18497
18201
|
},
|
|
18498
18202
|
"additionalProperties": false
|
|
@@ -18794,6 +18498,13 @@ const CONTRACT_SECTION_16 = {
|
|
|
18794
18498
|
"liveWatchers": {
|
|
18795
18499
|
"type": "number",
|
|
18796
18500
|
"description": "Watches that were waiting for this report when it was journaled and received it. A snapshot: a named-cursor watch that waits later still receives it. Absent from older daemons."
|
|
18501
|
+
},
|
|
18502
|
+
"warnings": {
|
|
18503
|
+
"type": "array",
|
|
18504
|
+
"items": {
|
|
18505
|
+
"type": "string"
|
|
18506
|
+
},
|
|
18507
|
+
"description": "Recorded anyway, but worth reading: a blocked report's card check, and a reference this machine left to the Session's machine (its Pane is in no Session here). Absent when there is none."
|
|
18797
18508
|
}
|
|
18798
18509
|
},
|
|
18799
18510
|
"additionalProperties": false
|
|
@@ -23506,463 +23217,74 @@ const CONTRACT_SECTION_16 = {
|
|
|
23506
23217
|
}
|
|
23507
23218
|
},
|
|
23508
23219
|
"additionalProperties": false
|
|
23220
|
+
}
|
|
23221
|
+
};
|
|
23222
|
+
/** contract.json "agentContext". */
|
|
23223
|
+
const CONTRACT_SECTION_17 = {
|
|
23224
|
+
"intro": {
|
|
23225
|
+
"humans": {
|
|
23226
|
+
"title": "For people",
|
|
23227
|
+
"sentences": [
|
|
23228
|
+
"Open a Session for each workstream and tell its agent what you want, in plain words.",
|
|
23229
|
+
"It plans the work, starts a Pane for each feature, and runs the builders, reviewers and QA as tabs inside them, so you don't have to.",
|
|
23230
|
+
"{approvals}",
|
|
23231
|
+
"When a feature is done, archiving its Pane cleans up its worktree and files for you."
|
|
23232
|
+
],
|
|
23233
|
+
"approvals": {
|
|
23234
|
+
"on": "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.",
|
|
23235
|
+
"off": "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving."
|
|
23236
|
+
}
|
|
23237
|
+
},
|
|
23238
|
+
"agents": {
|
|
23239
|
+
"title": "For agents",
|
|
23240
|
+
"sentences": [
|
|
23241
|
+
"In Pane, work flows from a Session to Panes to tabs.",
|
|
23242
|
+
"A Session is a workstream: the person or an orchestrator opens it, and every Pane created or adopted from inside it joins it. When you are in one ($PANE_SESSION_DIR is set: you orchestrate it or your Pane belongs to it), start new Panes from there (each result's `association` names the Session they joined); when you are in none, work with several parts starts a new Session.",
|
|
23243
|
+
"Each feature gets one Pane, a git worktree on its own branch, and everything for that feature (the agent that builds it, its reviews, QA and fixes) runs as tabs inside it.",
|
|
23244
|
+
"Scratch files go in $PANE_SCRATCH_DIR inside the Pane.",
|
|
23245
|
+
"When the feature is done, archive the Pane and Pane cleans up its worktree, tabs and scratch files.",
|
|
23246
|
+
"{approvals}"
|
|
23247
|
+
],
|
|
23248
|
+
"approvals": {
|
|
23249
|
+
"on": "When you need the person, ask through Approvals (a Session worker reports blocked to its orchestrator instead).",
|
|
23250
|
+
"off": "When you need the person, ask in this terminal."
|
|
23251
|
+
}
|
|
23252
|
+
}
|
|
23509
23253
|
},
|
|
23510
|
-
"
|
|
23511
|
-
"
|
|
23512
|
-
"
|
|
23513
|
-
"
|
|
23514
|
-
|
|
23515
|
-
|
|
23516
|
-
|
|
23517
|
-
|
|
23518
|
-
|
|
23519
|
-
|
|
23520
|
-
"
|
|
23521
|
-
"
|
|
23522
|
-
|
|
23523
|
-
|
|
23524
|
-
"
|
|
23525
|
-
|
|
23526
|
-
|
|
23527
|
-
"
|
|
23528
|
-
|
|
23529
|
-
|
|
23530
|
-
"
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
"
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23539
|
-
"
|
|
23540
|
-
|
|
23541
|
-
|
|
23542
|
-
"
|
|
23543
|
-
|
|
23544
|
-
},
|
|
23545
|
-
"launchable": {
|
|
23546
|
-
"type": "boolean"
|
|
23547
|
-
},
|
|
23548
|
-
"teamOnly": {
|
|
23549
|
-
"type": "boolean"
|
|
23550
|
-
},
|
|
23551
|
-
"enabled": {
|
|
23552
|
-
"type": "boolean"
|
|
23553
|
-
},
|
|
23554
|
-
"errors": {
|
|
23555
|
-
"type": "array",
|
|
23556
|
-
"items": {
|
|
23557
|
-
"type": "object",
|
|
23558
|
-
"required": [
|
|
23559
|
-
"code",
|
|
23560
|
-
"message",
|
|
23561
|
-
"fix"
|
|
23562
|
-
],
|
|
23563
|
-
"properties": {
|
|
23564
|
-
"code": {
|
|
23565
|
-
"type": "string"
|
|
23566
|
-
},
|
|
23567
|
-
"message": {
|
|
23568
|
-
"type": "string"
|
|
23569
|
-
},
|
|
23570
|
-
"fix": {
|
|
23571
|
-
"type": "string"
|
|
23572
|
-
},
|
|
23573
|
-
"step": {
|
|
23574
|
-
"type": "string"
|
|
23575
|
-
},
|
|
23576
|
-
"outcome": {
|
|
23577
|
-
"type": "string"
|
|
23578
|
-
}
|
|
23579
|
-
}
|
|
23580
|
-
}
|
|
23581
|
-
},
|
|
23582
|
-
"profile": {
|
|
23583
|
-
"type": "object"
|
|
23584
|
-
}
|
|
23585
|
-
}
|
|
23586
|
-
},
|
|
23587
|
-
"profileRun": {
|
|
23588
|
-
"type": "object",
|
|
23589
|
-
"description": "A launched profile: where its steps run and where it is now.",
|
|
23590
|
-
"required": [
|
|
23591
|
-
"id",
|
|
23592
|
-
"profile",
|
|
23593
|
-
"profileVersion",
|
|
23594
|
-
"sessionId",
|
|
23595
|
-
"repoId",
|
|
23596
|
-
"prompt",
|
|
23597
|
-
"state",
|
|
23598
|
-
"step",
|
|
23599
|
-
"wait",
|
|
23600
|
-
"history"
|
|
23601
|
-
],
|
|
23602
|
-
"properties": {
|
|
23603
|
-
"id": {
|
|
23604
|
-
"type": "string"
|
|
23605
|
-
},
|
|
23606
|
-
"profile": {
|
|
23607
|
-
"type": "string"
|
|
23608
|
-
},
|
|
23609
|
-
"profileVersion": {
|
|
23610
|
-
"type": "string"
|
|
23611
|
-
},
|
|
23612
|
-
"sessionId": {
|
|
23613
|
-
"type": "string"
|
|
23614
|
-
},
|
|
23615
|
-
"repoId": {
|
|
23616
|
-
"type": "number"
|
|
23617
|
-
},
|
|
23618
|
-
"paneId": {
|
|
23619
|
-
"type": "string"
|
|
23620
|
-
},
|
|
23621
|
-
"prompt": {
|
|
23622
|
-
"type": "string"
|
|
23623
|
-
},
|
|
23624
|
-
"harness": {
|
|
23625
|
-
"type": "object",
|
|
23626
|
-
"additionalProperties": {
|
|
23627
|
-
"type": "string",
|
|
23628
|
-
"minLength": 1
|
|
23629
|
-
}
|
|
23630
|
-
},
|
|
23631
|
-
"commands": {
|
|
23632
|
-
"type": "object",
|
|
23633
|
-
"additionalProperties": {
|
|
23634
|
-
"type": "string",
|
|
23635
|
-
"minLength": 1
|
|
23636
|
-
}
|
|
23637
|
-
},
|
|
23638
|
-
"state": {
|
|
23639
|
-
"enum": [
|
|
23640
|
-
"running",
|
|
23641
|
-
"asking",
|
|
23642
|
-
"paused",
|
|
23643
|
-
"ended",
|
|
23644
|
-
"failed"
|
|
23645
|
-
]
|
|
23646
|
-
},
|
|
23647
|
-
"step": {
|
|
23648
|
-
"type": "string"
|
|
23649
|
-
},
|
|
23650
|
-
"wait": {
|
|
23651
|
-
"type": "object"
|
|
23652
|
-
},
|
|
23653
|
-
"history": {
|
|
23654
|
-
"type": "array",
|
|
23655
|
-
"items": {
|
|
23656
|
-
"type": "object"
|
|
23657
|
-
}
|
|
23658
|
-
},
|
|
23659
|
-
"error": {
|
|
23660
|
-
"type": "string"
|
|
23661
|
-
},
|
|
23662
|
-
"createdAt": {
|
|
23663
|
-
"type": "string"
|
|
23664
|
-
},
|
|
23665
|
-
"updatedAt": {
|
|
23666
|
-
"type": "string"
|
|
23667
|
-
}
|
|
23668
|
-
}
|
|
23669
|
-
},
|
|
23670
|
-
"profileListResult": {
|
|
23671
|
-
"type": "object",
|
|
23672
|
-
"required": [
|
|
23673
|
-
"ok",
|
|
23674
|
-
"profiles"
|
|
23675
|
-
],
|
|
23676
|
-
"properties": {
|
|
23677
|
-
"ok": {
|
|
23678
|
-
"const": true
|
|
23679
|
-
},
|
|
23680
|
-
"profiles": {
|
|
23681
|
-
"type": "array",
|
|
23682
|
-
"items": {
|
|
23683
|
-
"$ref": "#/jsonSchemas/libraryProfile"
|
|
23684
|
-
}
|
|
23685
|
-
},
|
|
23686
|
-
"agentFarm": {
|
|
23687
|
-
"type": "object",
|
|
23688
|
-
"required": [
|
|
23689
|
-
"state"
|
|
23690
|
-
],
|
|
23691
|
-
"properties": {
|
|
23692
|
-
"state": {
|
|
23693
|
-
"enum": [
|
|
23694
|
-
"missing",
|
|
23695
|
-
"installing",
|
|
23696
|
-
"ready",
|
|
23697
|
-
"failed"
|
|
23698
|
-
]
|
|
23699
|
-
},
|
|
23700
|
-
"version": {
|
|
23701
|
-
"type": "string"
|
|
23702
|
-
},
|
|
23703
|
-
"error": {
|
|
23704
|
-
"type": "string"
|
|
23705
|
-
}
|
|
23706
|
-
}
|
|
23707
|
-
},
|
|
23708
|
-
"ownAgentFarm": {
|
|
23709
|
-
"type": "object",
|
|
23710
|
-
"required": [
|
|
23711
|
-
"profiles"
|
|
23712
|
-
],
|
|
23713
|
-
"properties": {
|
|
23714
|
-
"profiles": {
|
|
23715
|
-
"type": "array",
|
|
23716
|
-
"items": {
|
|
23717
|
-
"type": "object",
|
|
23718
|
-
"required": [
|
|
23719
|
-
"name",
|
|
23720
|
-
"source"
|
|
23721
|
-
],
|
|
23722
|
-
"properties": {
|
|
23723
|
-
"name": {
|
|
23724
|
-
"type": "string"
|
|
23725
|
-
},
|
|
23726
|
-
"source": {
|
|
23727
|
-
"type": "string"
|
|
23728
|
-
},
|
|
23729
|
-
"harness": {
|
|
23730
|
-
"type": "string"
|
|
23731
|
-
},
|
|
23732
|
-
"model": {
|
|
23733
|
-
"type": "string"
|
|
23734
|
-
}
|
|
23735
|
-
}
|
|
23736
|
-
}
|
|
23737
|
-
},
|
|
23738
|
-
"error": {
|
|
23739
|
-
"type": "string"
|
|
23740
|
-
}
|
|
23741
|
-
}
|
|
23742
|
-
}
|
|
23743
|
-
}
|
|
23744
|
-
},
|
|
23745
|
-
"profileShowResult": {
|
|
23746
|
-
"type": "object",
|
|
23747
|
-
"required": [
|
|
23748
|
-
"ok",
|
|
23749
|
-
"profile",
|
|
23750
|
-
"yaml"
|
|
23751
|
-
],
|
|
23752
|
-
"properties": {
|
|
23753
|
-
"ok": {
|
|
23754
|
-
"const": true
|
|
23755
|
-
},
|
|
23756
|
-
"profile": {
|
|
23757
|
-
"$ref": "#/jsonSchemas/libraryProfile"
|
|
23758
|
-
},
|
|
23759
|
-
"yaml": {
|
|
23760
|
-
"type": "string"
|
|
23761
|
-
}
|
|
23762
|
-
}
|
|
23763
|
-
},
|
|
23764
|
-
"profileLaunchRequest": {
|
|
23765
|
-
"type": "object",
|
|
23766
|
-
"description": "What `runpane profiles launch` sends to Pane.",
|
|
23767
|
-
"required": [
|
|
23768
|
-
"name",
|
|
23769
|
-
"prompt",
|
|
23770
|
-
"repo"
|
|
23771
|
-
],
|
|
23772
|
-
"properties": {
|
|
23773
|
-
"name": {
|
|
23774
|
-
"type": "string",
|
|
23775
|
-
"minLength": 1
|
|
23776
|
-
},
|
|
23777
|
-
"prompt": {
|
|
23778
|
-
"type": "string",
|
|
23779
|
-
"minLength": 1
|
|
23780
|
-
},
|
|
23781
|
-
"repo": {
|
|
23782
|
-
"anyOf": [
|
|
23783
|
-
{
|
|
23784
|
-
"type": "string"
|
|
23785
|
-
},
|
|
23786
|
-
{
|
|
23787
|
-
"type": "object",
|
|
23788
|
-
"required": [
|
|
23789
|
-
"id"
|
|
23790
|
-
],
|
|
23791
|
-
"properties": {
|
|
23792
|
-
"id": {
|
|
23793
|
-
"type": "number"
|
|
23794
|
-
}
|
|
23795
|
-
},
|
|
23796
|
-
"additionalProperties": false
|
|
23797
|
-
},
|
|
23798
|
-
{
|
|
23799
|
-
"type": "object",
|
|
23800
|
-
"required": [
|
|
23801
|
-
"path"
|
|
23802
|
-
],
|
|
23803
|
-
"properties": {
|
|
23804
|
-
"path": {
|
|
23805
|
-
"type": "string"
|
|
23806
|
-
}
|
|
23807
|
-
},
|
|
23808
|
-
"additionalProperties": false
|
|
23809
|
-
},
|
|
23810
|
-
{
|
|
23811
|
-
"type": "object",
|
|
23812
|
-
"required": [
|
|
23813
|
-
"name"
|
|
23814
|
-
],
|
|
23815
|
-
"properties": {
|
|
23816
|
-
"name": {
|
|
23817
|
-
"type": "string"
|
|
23818
|
-
}
|
|
23819
|
-
},
|
|
23820
|
-
"additionalProperties": false
|
|
23821
|
-
},
|
|
23822
|
-
{
|
|
23823
|
-
"type": "object",
|
|
23824
|
-
"required": [
|
|
23825
|
-
"active"
|
|
23826
|
-
],
|
|
23827
|
-
"properties": {
|
|
23828
|
-
"active": {
|
|
23829
|
-
"const": true
|
|
23830
|
-
}
|
|
23831
|
-
},
|
|
23832
|
-
"additionalProperties": false
|
|
23833
|
-
}
|
|
23834
|
-
]
|
|
23835
|
-
},
|
|
23836
|
-
"session": {
|
|
23837
|
-
"type": "string",
|
|
23838
|
-
"minLength": 1
|
|
23839
|
-
},
|
|
23840
|
-
"harness": {
|
|
23841
|
-
"type": "string",
|
|
23842
|
-
"minLength": 1
|
|
23843
|
-
},
|
|
23844
|
-
"agentHarness": {
|
|
23845
|
-
"type": "object",
|
|
23846
|
-
"additionalProperties": {
|
|
23847
|
-
"type": "string",
|
|
23848
|
-
"minLength": 1
|
|
23849
|
-
}
|
|
23850
|
-
},
|
|
23851
|
-
"commands": {
|
|
23852
|
-
"type": "object",
|
|
23853
|
-
"additionalProperties": {
|
|
23854
|
-
"type": "string",
|
|
23855
|
-
"minLength": 1
|
|
23856
|
-
}
|
|
23857
|
-
},
|
|
23858
|
-
"callerPanelId": {
|
|
23859
|
-
"type": "string",
|
|
23860
|
-
"minLength": 1
|
|
23861
|
-
}
|
|
23862
|
-
},
|
|
23863
|
-
"additionalProperties": false
|
|
23864
|
-
},
|
|
23865
|
-
"profileLaunchResult": {
|
|
23866
|
-
"type": "object",
|
|
23867
|
-
"required": [
|
|
23868
|
-
"ok",
|
|
23869
|
-
"run"
|
|
23870
|
-
],
|
|
23871
|
-
"properties": {
|
|
23872
|
-
"ok": {
|
|
23873
|
-
"const": true
|
|
23874
|
-
},
|
|
23875
|
-
"run": {
|
|
23876
|
-
"$ref": "#/jsonSchemas/profileRun"
|
|
23877
|
-
}
|
|
23878
|
-
}
|
|
23879
|
-
},
|
|
23880
|
-
"profileRunsResult": {
|
|
23881
|
-
"type": "object",
|
|
23882
|
-
"required": [
|
|
23883
|
-
"ok",
|
|
23884
|
-
"runs"
|
|
23885
|
-
],
|
|
23886
|
-
"properties": {
|
|
23887
|
-
"ok": {
|
|
23888
|
-
"const": true
|
|
23889
|
-
},
|
|
23890
|
-
"runs": {
|
|
23891
|
-
"type": "array",
|
|
23892
|
-
"items": {
|
|
23893
|
-
"$ref": "#/jsonSchemas/profileRun"
|
|
23894
|
-
}
|
|
23895
|
-
}
|
|
23896
|
-
}
|
|
23897
|
-
}
|
|
23898
|
-
};
|
|
23899
|
-
/** contract.json "agentContext". */
|
|
23900
|
-
const CONTRACT_SECTION_17 = {
|
|
23901
|
-
"intro": {
|
|
23902
|
-
"humans": {
|
|
23903
|
-
"title": "For people",
|
|
23904
|
-
"sentences": [
|
|
23905
|
-
"Open a Session for each workstream and tell its agent what you want, in plain words.",
|
|
23906
|
-
"It plans the work, starts a Pane for each feature, and runs the builders, reviewers and QA as tabs inside them, so you don't have to.",
|
|
23907
|
-
"{approvals}",
|
|
23908
|
-
"When a feature is done, archiving its Pane cleans up its worktree and files for you."
|
|
23909
|
-
],
|
|
23910
|
-
"approvals": {
|
|
23911
|
-
"on": "Anything that needs you, like a decision, an approval or a merge, waits for you in Approvals while everything else keeps moving.",
|
|
23912
|
-
"off": "When the agent needs you for a decision, an approval or a merge, it asks in its terminal while everything else keeps moving."
|
|
23913
|
-
}
|
|
23914
|
-
},
|
|
23915
|
-
"agents": {
|
|
23916
|
-
"title": "For agents",
|
|
23917
|
-
"sentences": [
|
|
23918
|
-
"In Pane, work flows from a Session to Panes to tabs.",
|
|
23919
|
-
"A Session is a workstream: the person or an orchestrator opens it, and every Pane created or adopted from inside it joins it. When you are in one ($PANE_SESSION_DIR is set: you orchestrate it or your Pane belongs to it), start new Panes from there (each result's `association` names the Session they joined); when you are in none, work with several parts starts a new Session.",
|
|
23920
|
-
"Each feature gets one Pane, a git worktree on its own branch, and everything for that feature (the agent that builds it, its reviews, QA and fixes) runs as tabs inside it.",
|
|
23921
|
-
"Scratch files go in $PANE_SCRATCH_DIR inside the Pane.",
|
|
23922
|
-
"When the feature is done, archive the Pane and Pane cleans up its worktree, tabs and scratch files.",
|
|
23923
|
-
"{approvals}"
|
|
23924
|
-
],
|
|
23925
|
-
"approvals": {
|
|
23926
|
-
"on": "When you need the person, ask through Approvals (a Session worker reports blocked to its orchestrator instead).",
|
|
23927
|
-
"off": "When you need the person, ask in this terminal."
|
|
23928
|
-
}
|
|
23929
|
-
}
|
|
23930
|
-
},
|
|
23931
|
-
"workspaceRules": [
|
|
23932
|
-
"Session: where a workstream lives, and the default home for orchestrated work. Its folder ($PANE_SESSION_DIR) holds plans, notes and reports.",
|
|
23933
|
-
"Pane: one per feature (one worktree, one branch). Before creating one, find the feature's Pane (`runpane panes list --json`, match the branch) and create one only when none exists.",
|
|
23934
|
-
"Tab: reviews, review reruns, QA, fixes and follow-ups for a feature go in new tabs in its Pane (`runpane panels create --pane <id>`), never a new Pane or a plain `git worktree`.",
|
|
23935
|
-
"Scratch: in Pane, put temporary files, clones, captures, downloads, logs and test instances (an isolated PANE_DIR and HOME for QA) in `$PANE_SCRATCH_DIR`, not /tmp or your tool's own scratchpad. When the feature is done, archive the Pane and Pane cleans it up.",
|
|
23936
|
-
"Profiles: a profile is a team and a fixed workflow Pane runs from its file (docs/PROFILES.md). Once Profiles is on (Settings › Advanced › Profiles), `runpane profiles list` and `runpane profiles launch <name> --prompt <text>` start one; in a profile step's tab, end the step with `runpane report --outcome \"<one of the step's outcomes>\"`, which the step's first message names."
|
|
23937
|
-
],
|
|
23938
|
-
"brief": {
|
|
23939
|
-
"title": "Pane agent context",
|
|
23940
|
-
"summary": "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.",
|
|
23941
|
-
"rules": [
|
|
23942
|
-
"Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.",
|
|
23943
|
-
"In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.",
|
|
23944
|
-
"Happy path for any user request to use Pane/RunPane: run `runpane doctor --json`, read `runpane agent-context --json`, resolve or add the saved base repo, then route by the rule If the work's branch already has a Pane (find it with `runpane panes list --repo <repo> --json` by matching the PR's head branch against `git -C <worktreePath> branch --show-current`), open a new agent tab in it with `runpane panels create --pane <id> --agent <agent> --initial-input \"<task>\" --source agent --no-focus --wait-ready --yes --json`; only when the branch has no Pane yet, create one with a complete command such as `runpane panes create --repo <repo> --name <name> --agent <agent> --prompt \"<task>\" --source agent --no-focus --wait-ready --yes --json` (the new Pane is pinned by default; add `--no-pinned` for a throwaway Pane, add `--base-branch <ref>` to branch from something other than the repository default, or use `--tool-command <command>` instead of `--agent <agent>`), then validate with `panels wait` or `panels screen`. For long-lived supervision, use `runpane watch --follow` instead of polling wait or screen.",
|
|
23945
|
-
"Treat Pane as the user's visible cockpit for watching/co-driving work. Do not create Panes or panels for private delegation unless the user asked for visible Pane orchestration or the result should appear in the Pane app.",
|
|
23946
|
-
"Register the saved base repository once with `repos add`; do not register a pre-created worktree as a separate repo unless the user explicitly asks.",
|
|
23947
|
-
"Use `panes create` only when the work's branch has no Pane yet (new work, or an existing PR with no Pane), since each new Pane creates a worktree. Every later agent for that branch opens as a new tab in its Pane with `panels create --pane <id>`, never a new Pane. Tabs share one checkout: only the implementer changes the branch or HEAD, one writer at a time; review, audit and QA tabs never run `git checkout`, `reset` or `stash`.",
|
|
23948
|
-
"For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.",
|
|
23949
|
-
"Skill routing: Pane's skills live in `<PANE_DIR>/skills/pane-chat/skills/`, and the Pane Chat entry point is `<PANE_DIR>/skills/pane-chat/pane-orchestrator/SKILL.md`; read the skill that matches the request, such as `discussion`, `create-ticket`, `tdd`, `prepare-pr`, or `review`.",
|
|
23950
|
-
"When an agent creates Panes or panels, pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved; `panes create` pins the new Pane into the UI's favorite/pin set by default, so no follow-up `panes pin` call is needed and `--no-pinned` is the opt-out for throwaway Panes.",
|
|
23951
|
-
"Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.",
|
|
23952
|
-
"For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
|
|
23953
|
-
"Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
|
|
23954
|
-
"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.",
|
|
23955
|
-
"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. For a secret from 1Password, ask with `runpane secrets lease` and wait; when `secrets exec` fails with SECRET_LEASE_ENDED, run the next step it names.",
|
|
23956
|
-
"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'`.",
|
|
23957
|
-
"If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
|
|
23958
|
-
"Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
|
|
23959
|
-
"Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.",
|
|
23960
|
-
"Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.",
|
|
23961
|
-
"Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.",
|
|
23962
|
-
"Pane terminals draw inline images: sixel, iTerm2 inline images, and the kitty graphics protocol. Tools that need kitty graphics, such as terminal-browser and terminal-doom, run inside a Pane panel; `runpane doctor --json` reports the exact list under `terminal.graphicsProtocols`.",
|
|
23963
|
-
"After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen`. For a harness that consumes streaming output, use `runpane watch --follow` (with `--session <id>` for a Session); its named consumer applies settling and batching. Adding numeric --since leaves it unnamed and bypasses cadence; --as cannot be combined with --since. A harness that wakes only when a process exits uses `runpane watch --as <name> --until-event --json` and runs it again after each event. Single-event waits deliver immediately without follow cadence. Never pipe `--follow` into `grep -m1` or `head`.",
|
|
23964
|
-
"When several agents share one resource, such as a test account, name a lock in their prompts: each worker runs `runpane lock acquire --name <name> --ttl 30m --wait 1800000 --json` before using it and `runpane lock release --name <name>` after.",
|
|
23965
|
-
"Loops (`runpane loops create`) run a task on a cron schedule, each run in a new Pane or, with `--session`, as a message to a Session's agent. They are for large recurring jobs, such as a nightly bug sweep, and run at most once an hour. For a short wait, use your agent harness's own sleep and wake instead."
|
|
23254
|
+
"workspaceRules": [
|
|
23255
|
+
"Session: where a workstream lives, and the default home for orchestrated work. Its folder ($PANE_SESSION_DIR) holds plans, notes and reports.",
|
|
23256
|
+
"Pane: one per feature (one worktree, one branch). Before creating one, find the feature's Pane (`runpane panes list --json`, match the branch) and create one only when none exists.",
|
|
23257
|
+
"Tab: reviews, review reruns, QA, fixes and follow-ups for a feature go in new tabs in its Pane (`runpane panels create --pane <id>`), never a new Pane or a plain `git worktree`.",
|
|
23258
|
+
"Scratch: in Pane, put temporary files, clones, captures, downloads, logs and test instances (an isolated PANE_DIR and HOME for QA) in `$PANE_SCRATCH_DIR`, not /tmp or your tool's own scratchpad. When the feature is done, archive the Pane and Pane cleans it up."
|
|
23259
|
+
],
|
|
23260
|
+
"brief": {
|
|
23261
|
+
"title": "Pane agent context",
|
|
23262
|
+
"summary": "Pane runs coding agents in parallel git worktrees. A Pane is a visible workspace for one feature or PR, with its own Pane-managed git worktree and branch; a panel is a terminal tab in a Pane and shares its worktree; an agent is a CLI process running in a panel.",
|
|
23263
|
+
"rules": [
|
|
23264
|
+
"Start with `runpane doctor --json` to understand wrapper, platform, daemon reachability, and the next safe commands before mutating Pane state.",
|
|
23265
|
+
"In a Pane repository checkout, if `runpane` is not on PATH, build the local wrapper with `pnpm --filter runpane build` and run it with patched Node 22.23.4+ (22.x), 24.22.1+ (24.x), or 26.12.1+ (26.x), for example `node packages/runpane/dist/cli.js doctor --json`.",
|
|
23266
|
+
"Happy path for any user request to use Pane/RunPane: run `runpane doctor --json`, read `runpane agent-context --json`, resolve or add the saved base repo, then route by the rule If the work's branch already has a Pane (find it with `runpane panes list --repo <repo> --json` by matching the PR's head branch against `git -C <worktreePath> branch --show-current`), open a new agent tab in it with `runpane panels create --pane <id> --agent <agent> --initial-input \"<task>\" --source agent --no-focus --wait-ready --yes --json`; only when the branch has no Pane yet, create one with a complete command such as `runpane panes create --repo <repo> --name <name> --agent <agent> --prompt \"<task>\" --source agent --no-focus --wait-ready --yes --json` (the new Pane is pinned by default; add `--no-pinned` for a throwaway Pane, add `--base-branch <ref>` to branch from something other than the repository default, or use `--tool-command <command>` instead of `--agent <agent>`), then validate with `panels wait` or `panels screen`. For long-lived supervision, use `runpane watch --follow` instead of polling wait or screen.",
|
|
23267
|
+
"Treat Pane as the user's visible cockpit for watching/co-driving work. Do not create Panes or panels for private delegation unless the user asked for visible Pane orchestration or the result should appear in the Pane app.",
|
|
23268
|
+
"Register the saved base repository once with `repos add`; do not register a pre-created worktree as a separate repo unless the user explicitly asks.",
|
|
23269
|
+
"Use `panes create` only when the work's branch has no Pane yet (new work, or an existing PR with no Pane), since each new Pane creates a worktree. Every later agent for that branch opens as a new tab in its Pane with `panels create --pane <id>`, never a new Pane. Tabs share one checkout: only the implementer changes the branch or HEAD, one writer at a time; review, audit and QA tabs never run `git checkout`, `reset` or `stash`.",
|
|
23270
|
+
"For private background decomposition, use your normal subagent/worktree mechanism instead of Pane.",
|
|
23271
|
+
"Skill routing: Pane's skills live in `<PANE_DIR>/skills/pane-chat/skills/`, and the Pane Chat entry point is `<PANE_DIR>/skills/pane-chat/pane-orchestrator/SKILL.md`; read the skill that matches the request, such as `discussion`, `create-ticket`, `tdd`, `prepare-pr`, or `review`.",
|
|
23272
|
+
"When an agent creates Panes or panels, pass `--source agent --no-focus --wait-ready --yes --json` unless the user explicitly wants focus moved; `panes create` pins the new Pane into the UI's favorite/pin set by default, so no follow-up `panes pin` call is needed and `--no-pinned` is the opt-out for throwaway Panes.",
|
|
23273
|
+
"Use `runpane agent-context --json` for the full agent-facing CLI context, or `runpane agent-context --command <command> --json` for one detailed command definition.",
|
|
23274
|
+
"For `agent-context --command`, use canonical spaced names like `panes create`; copied forms like `panes.create` or `runpane panes create` are accepted too.",
|
|
23275
|
+
"Use `runpane repos list --json` to find the saved repository when unsure after doctor shows the daemon is reachable.",
|
|
23276
|
+
"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.",
|
|
23277
|
+
"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. For a secret from 1Password, ask with `runpane secrets lease` and wait; when `secrets exec` fails with SECRET_LEASE_ENDED, run the next step it names.",
|
|
23278
|
+
"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'`.",
|
|
23279
|
+
"If the repository exists on disk but is not saved in Pane, use `runpane repos add --path <repo> --yes --json` before creating panes.",
|
|
23280
|
+
"Use `runpane agents doctor --agent <codex|claude|cursor|opencode|pi> --repo <selector> --json` when agent availability differs across host, Windows, WSL, or repo environments.",
|
|
23281
|
+
"Use `runpane panes create --wait-ready` to create Panes, wait for each agent's input box, and verify its starting message in one call.",
|
|
23282
|
+
"Use `runpane panels screen` for compact current state, including Claude and Codex composer state. Use `panels wait` for create-time readiness or text checks. Use `runpane watch --follow` to block on workspace transitions (READY, BLOCKED, IDLE, STUCK, EXIT) without polling, or `runpane watch --until-event` to exit on the first one. Use `panels submit` to send and submit a new turn. Use `panels submit-composer --strategy auto` only for a composer that was filled separately.",
|
|
23283
|
+
"Use `runpane panels input` only when exact bytes are required, such as Ctrl-C or handcrafted terminal input.",
|
|
23284
|
+
"Pane terminals draw inline images: sixel, iTerm2 inline images, and the kitty graphics protocol. Tools that need kitty graphics, such as terminal-browser and terminal-doom, run inside a Pane panel; `runpane doctor --json` reports the exact list under `terminal.graphicsProtocols`.",
|
|
23285
|
+
"After creating Panes or sending terminal input, validate with `panels wait` or bounded `panels screen`. For a harness that consumes streaming output, use `runpane watch --follow` (with `--session <id>` for a Session); its named consumer applies settling and batching. Adding numeric --since leaves it unnamed and bypasses cadence; --as cannot be combined with --since. A harness that wakes only when a process exits uses `runpane watch --as <name> --until-event --json` and runs it again after each event. Single-event waits deliver immediately without follow cadence. Never pipe `--follow` into `grep -m1` or `head`.",
|
|
23286
|
+
"When several agents share one resource, such as a test account, name a lock in their prompts: each worker runs `runpane lock acquire --name <name> --ttl 30m --wait 1800000 --json` before using it and `runpane lock release --name <name>` after.",
|
|
23287
|
+
"Loops (`runpane loops create`) run a task on a cron schedule, each run in a new Pane or, with `--session`, as a message to a Session's agent. They are for large recurring jobs, such as a nightly bug sweep, and run at most once an hour. For a short wait, use your agent harness's own sleep and wake instead."
|
|
23966
23288
|
],
|
|
23967
23289
|
"detailCommand": "runpane agent-context --command <command> [--json]",
|
|
23968
23290
|
"tools": [
|
|
@@ -24662,7 +23984,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
24662
23984
|
"name": "--toolsets",
|
|
24663
23985
|
"value": "<name,...>",
|
|
24664
23986
|
"required": false,
|
|
24665
|
-
"description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops,
|
|
23987
|
+
"description": "Comma-separated toolsets to serve: core (default), all, read, repos, panes, panels, agents, sessions, loops, workspace, machine, git, docs, links, admin."
|
|
24666
23988
|
},
|
|
24667
23989
|
{
|
|
24668
23990
|
"name": "--read-only",
|
|
@@ -28053,8 +27375,8 @@ const CONTRACT_SECTION_17 = {
|
|
|
28053
27375
|
},
|
|
28054
27376
|
"links create": {
|
|
28055
27377
|
"name": "links create",
|
|
28056
|
-
"summary": "Build a pane:// link that opens a Pane, panel, repository, or Session
|
|
28057
|
-
"details": "Use this to hand the user a clickable link. It only builds the URL
|
|
27378
|
+
"summary": "Build a pane:// link that opens a Pane, panel, repository, or Session, or that starts an agent on a prompt once the person confirms.",
|
|
27379
|
+
"details": "Use this to hand the user a clickable link. It only builds the URL. An open link navigates and never changes Pane state; a start link (--prompt) shows the repository, agent and whole prompt in Pane, and creates a Pane only when the person presses Start.",
|
|
28058
27380
|
"requiresPaneDaemon": false,
|
|
28059
27381
|
"mutates": false,
|
|
28060
27382
|
"arguments": [
|
|
@@ -28074,7 +27396,19 @@ const CONTRACT_SECTION_17 = {
|
|
|
28074
27396
|
"name": "--repo",
|
|
28075
27397
|
"value": "<repo-id>",
|
|
28076
27398
|
"required": false,
|
|
28077
|
-
"description": "Repository id from repos list."
|
|
27399
|
+
"description": "Repository id from repos list; with --prompt, also a saved name or owner/repo."
|
|
27400
|
+
},
|
|
27401
|
+
{
|
|
27402
|
+
"name": "--prompt",
|
|
27403
|
+
"value": "<task>",
|
|
27404
|
+
"required": false,
|
|
27405
|
+
"description": "Start link: the prompt Pane shows, then sends once the person presses Start."
|
|
27406
|
+
},
|
|
27407
|
+
{
|
|
27408
|
+
"name": "--agent",
|
|
27409
|
+
"value": "<agent>",
|
|
27410
|
+
"required": false,
|
|
27411
|
+
"description": "Start link: the agent to start (default: Pane's default agent)."
|
|
28078
27412
|
},
|
|
28079
27413
|
{
|
|
28080
27414
|
"name": "--session",
|
|
@@ -28089,19 +27423,21 @@ const CONTRACT_SECTION_17 = {
|
|
|
28089
27423
|
}
|
|
28090
27424
|
],
|
|
28091
27425
|
"examples": [
|
|
28092
|
-
"runpane links create --pane <pane-id> --json"
|
|
27426
|
+
"runpane links create --pane <pane-id> --json",
|
|
27427
|
+
"runpane links create --repo owner/repo --prompt \"Fix the failing test\" --agent codex --json"
|
|
28093
27428
|
],
|
|
28094
27429
|
"jsonSchemas": [
|
|
28095
27430
|
"linkCreateResult"
|
|
28096
27431
|
],
|
|
28097
27432
|
"notes": [
|
|
28098
|
-
"Links look like `pane://open?pane=<pane-id>&panel=<panel-id>`. Give exactly one of --pane, --repo, or --session."
|
|
27433
|
+
"Links look like `pane://open?pane=<pane-id>&panel=<panel-id>`. Give exactly one of --pane, --repo, or --session.",
|
|
27434
|
+
"Start links look like `pane://new?repo=<repo>&prompt=<text>&agent=<id>`: --repo (id, saved name, or owner/repo matched against each saved repository's origin remote) and --prompt (at most 4000 characters, no control characters but tab and newline). Pane never runs one on its own."
|
|
28099
27435
|
]
|
|
28100
27436
|
},
|
|
28101
27437
|
"links open": {
|
|
28102
27438
|
"name": "links open",
|
|
28103
27439
|
"summary": "Open a pane:// link in the running Pane app.",
|
|
28104
|
-
"details": "Use this to navigate the app to a Pane, panel, repository, or Session. It raises the Pane window, so run it only when the user asked.",
|
|
27440
|
+
"details": "Use this to navigate the app to a Pane, panel, repository, or Session, or to ask the person about a start link. It raises the Pane window, so run it only when the user asked.",
|
|
28105
27441
|
"requiresPaneDaemon": true,
|
|
28106
27442
|
"mutates": true,
|
|
28107
27443
|
"arguments": [
|
|
@@ -28109,7 +27445,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
28109
27445
|
"name": "--url",
|
|
28110
27446
|
"value": "<pane-url>",
|
|
28111
27447
|
"required": true,
|
|
28112
|
-
"description": "A pane://open link from links create."
|
|
27448
|
+
"description": "A pane://open or pane://new link from links create."
|
|
28113
27449
|
},
|
|
28114
27450
|
{
|
|
28115
27451
|
"name": "--yes",
|
|
@@ -28135,7 +27471,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
28135
27471
|
"daemonActionResult"
|
|
28136
27472
|
],
|
|
28137
27473
|
"notes": [
|
|
28138
|
-
"
|
|
27474
|
+
"An open link never changes Pane state; it selects what the link names. A start link (pane://new) only asks: Pane creates a Pane when the person presses Start."
|
|
28139
27475
|
]
|
|
28140
27476
|
},
|
|
28141
27477
|
"docs search": {
|
|
@@ -28409,7 +27745,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
28409
27745
|
"name": "--state",
|
|
28410
27746
|
"value": "<ready|blocked|failed|done>",
|
|
28411
27747
|
"required": true,
|
|
28412
|
-
"description": "ready: work is ready for review; done: finished with nothing to review; blocked: needs an answer; failed: could not finish.
|
|
27748
|
+
"description": "ready: work is ready for review; done: finished with nothing to review; blocked: needs an answer; failed: could not finish."
|
|
28413
27749
|
},
|
|
28414
27750
|
{
|
|
28415
27751
|
"name": "--pr",
|
|
@@ -28481,17 +27817,10 @@ const CONTRACT_SECTION_17 = {
|
|
|
28481
27817
|
"value": "<path>",
|
|
28482
27818
|
"required": false,
|
|
28483
27819
|
"description": "Connect to a specific Pane data directory."
|
|
28484
|
-
},
|
|
28485
|
-
{
|
|
28486
|
-
"name": "--outcome",
|
|
28487
|
-
"value": "<name>",
|
|
28488
|
-
"required": false,
|
|
28489
|
-
"description": "Ends a profile step with one of its declared outcomes (implies --state done). Refused with --question, or with --state other than done (ERR_REPORT_OUTCOME_STATE)."
|
|
28490
27820
|
}
|
|
28491
27821
|
],
|
|
28492
27822
|
"examples": [
|
|
28493
27823
|
"runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json",
|
|
28494
|
-
"runpane report --outcome \"plan ready\" --summary-file status.json",
|
|
28495
27824
|
"runpane report --state blocked --question \"Should the migration drop the old column?\"",
|
|
28496
27825
|
"runpane report --state blocked --question 'Q-3: Use the invoice id in the PDF filename?' --choices '[{\"label\":\"Invoice id\",\"detail\":\"Ids are stable\",\"recommended\":true},{\"label\":\"Invoice number\"}]' --summary 'Invoice PDFs'"
|
|
28497
27826
|
],
|
|
@@ -28504,8 +27833,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
28504
27833
|
"agent.report is in the default kinds of `runpane watch --follow` and `--until-event`, and arrives from any panel, a shell tab included. REPORT lines skip the --min-interval batch.",
|
|
28505
27834
|
"The output says who received it: \"Delivered to N waiting watcher(s).\" counts watches waiting at that moment (liveWatchers in JSON). With no Session and nobody waiting it adds that the report is stored on the panel (runpane agents status --panel <id>) and that a named-cursor watch (runpane watch --as <name> --kinds agent.report) still receives it when it next waits. Zero is not a failure; the exit code is 0 either way.",
|
|
28506
27835
|
"With --state blocked and --question, the person sees an answerable card at once; it rings once the orchestrator relays it or after 10 minutes. The answer reaches this tab as `answer: Q-n → <answer> (by you)`. `closed: Q-n (by you)` and `correction: Q-n → <answer> (by you)` lines are the person's word too.",
|
|
28507
|
-
"A blocked report's buttons come from --choices or --questions first, then from the `needs_you` block of the status file passed as --summary-file. Invalid --choices or --questions JSON fails with ERR_NOTIFY_INVALID, as notify does. A --question that ends with an option list in brackets (\"(A / B)\" or \"(A (recommended) / B)\") and has no options from either source is refused with ERR_REPORT_PACKED_OPTIONS and nothing is shown; a question with no option list is accepted as an open question. A bracketed unit with a spaced slash (\"(requests / second)\") reads as an option list too; when the question asks for a value, word the unit as prose (\"in requests per second\") or drop the spaces (\"(requests/second)\")."
|
|
28508
|
-
"`--outcome <name>` ends one step of a Pane profile workflow by naming which of the step's declared outcomes happened, such as `runpane report --outcome \"plan ready\" --summary-file status.json`. It sends `state: done` with `outcome`; --state is optional and may only be done (else ERR_REPORT_OUTCOME_STATE), and --question is refused (ERR_REPORT_OUTCOME_QUESTION). Pane checks the outcome against the step the panel runs and refuses one the step does not declare, listing the allowed outcomes."
|
|
27836
|
+
"A blocked report's buttons come from --choices or --questions first, then from the `needs_you` block of the status file passed as --summary-file. Invalid --choices or --questions JSON fails with ERR_NOTIFY_INVALID, as notify does. A --question that ends with an option list in brackets (\"(A / B)\" or \"(A (recommended) / B)\") and has no options from either source is refused with ERR_REPORT_PACKED_OPTIONS and nothing is shown; a question with no option list is accepted as an open question. A bracketed unit with a spaced slash (\"(requests / second)\") reads as an option list too; when the question asks for a value, word the unit as prose (\"in requests per second\") or drop the spaces (\"(requests/second)\")."
|
|
28509
27837
|
]
|
|
28510
27838
|
},
|
|
28511
27839
|
"sessions list": {
|
|
@@ -30021,198 +29349,6 @@ const CONTRACT_SECTION_17 = {
|
|
|
30021
29349
|
],
|
|
30022
29350
|
"notes": []
|
|
30023
29351
|
},
|
|
30024
|
-
"profiles list": {
|
|
30025
|
-
"name": "profiles list",
|
|
30026
|
-
"summary": "List the profiles in Pane's library: name, version, origin, on or off, and whether each can launch.",
|
|
30027
|
-
"details": "Lists every profile in Pane's library: name, version, title, origin (bundled with Pane, or yours in <PANE_DIR>/profiles), file, enabled, valid, launchable (valid and has a workflow), teamOnly (a team with no workflow), errors ({code, message, fix, step?, outcome?}) and the normalized profile. agentFarm is the state of the Agent Farm bundled in Pane; ownAgentFarm lists the person's own Agent Farm profiles when one is installed.",
|
|
30028
|
-
"requiresPaneDaemon": true,
|
|
30029
|
-
"mutates": false,
|
|
30030
|
-
"arguments": [
|
|
30031
|
-
{
|
|
30032
|
-
"name": "--json",
|
|
30033
|
-
"required": false,
|
|
30034
|
-
"description": "Print machine-readable output."
|
|
30035
|
-
},
|
|
30036
|
-
{
|
|
30037
|
-
"name": "--pane-dir",
|
|
30038
|
-
"value": "<path>",
|
|
30039
|
-
"required": false,
|
|
30040
|
-
"description": "Connect to a specific Pane data directory."
|
|
30041
|
-
}
|
|
30042
|
-
],
|
|
30043
|
-
"examples": [
|
|
30044
|
-
"runpane profiles list --json"
|
|
30045
|
-
],
|
|
30046
|
-
"jsonSchemas": [
|
|
30047
|
-
"profileListResult"
|
|
30048
|
-
],
|
|
30049
|
-
"notes": [
|
|
30050
|
-
"Launch a profile whose launchable is true with `runpane profiles launch <name> --prompt <text> --yes`; one with no flow, an invalid one, or any while Profiles is off is refused."
|
|
30051
|
-
]
|
|
30052
|
-
},
|
|
30053
|
-
"profiles show": {
|
|
30054
|
-
"name": "profiles show",
|
|
30055
|
-
"summary": "Show one profile: its agents, its workflow's steps and outcomes, its errors, and its file.",
|
|
30056
|
-
"details": "Returns the profile as `profiles list` does, plus `yaml`, its file's text. The normalized profile names its agents ({id, runs, cli, model?, reads, skills}) and its flow: start, and steps that are agent steps (agent, goal, outcomes), command steps (run, outcomes) or asks (ask, choices, next?). Each outcome or choice is {name, to}, where to is a step id or end.",
|
|
30057
|
-
"requiresPaneDaemon": true,
|
|
30058
|
-
"mutates": false,
|
|
30059
|
-
"arguments": [
|
|
30060
|
-
{
|
|
30061
|
-
"name": "<name>",
|
|
30062
|
-
"required": true,
|
|
30063
|
-
"description": "The profile's name, from `runpane profiles list`."
|
|
30064
|
-
},
|
|
30065
|
-
{
|
|
30066
|
-
"name": "--yaml",
|
|
30067
|
-
"required": false,
|
|
30068
|
-
"description": "Print the profile's file text only (CLI only)."
|
|
30069
|
-
},
|
|
30070
|
-
{
|
|
30071
|
-
"name": "--json",
|
|
30072
|
-
"required": false,
|
|
30073
|
-
"description": "Print machine-readable output."
|
|
30074
|
-
},
|
|
30075
|
-
{
|
|
30076
|
-
"name": "--pane-dir",
|
|
30077
|
-
"value": "<path>",
|
|
30078
|
-
"required": false,
|
|
30079
|
-
"description": "Connect to a specific Pane data directory."
|
|
30080
|
-
}
|
|
30081
|
-
],
|
|
30082
|
-
"examples": [
|
|
30083
|
-
"runpane profiles show greenfield --json",
|
|
30084
|
-
"runpane profiles show greenfield --yaml"
|
|
30085
|
-
],
|
|
30086
|
-
"jsonSchemas": [
|
|
30087
|
-
"profileShowResult"
|
|
30088
|
-
],
|
|
30089
|
-
"notes": [
|
|
30090
|
-
"A name not in the library fails with PROFILE_NOT_FOUND; see names with `runpane profiles list`."
|
|
30091
|
-
]
|
|
30092
|
-
},
|
|
30093
|
-
"profiles launch": {
|
|
30094
|
-
"name": "profiles launch",
|
|
30095
|
-
"summary": "Launch a profile: Pane runs its workflow step by step, the first step in a new Pane of a Session.",
|
|
30096
|
-
"details": "Starts a run of the profile: Pane makes (or joins) a Session, opens the first step as a tab in a new Pane of the repo, and follows the workflow from there. Each agent step ends when its agent runs `runpane report --outcome \"<outcome>\"` with one of the step's declared outcomes, a command step when its tab exits, and an ask when the person answers its card. Returns the run: id, sessionId, paneId, state, step and wait.",
|
|
30097
|
-
"requiresPaneDaemon": true,
|
|
30098
|
-
"mutates": true,
|
|
30099
|
-
"arguments": [
|
|
30100
|
-
{
|
|
30101
|
-
"name": "<name>",
|
|
30102
|
-
"required": true,
|
|
30103
|
-
"description": "The profile's name, from `runpane profiles list`."
|
|
30104
|
-
},
|
|
30105
|
-
{
|
|
30106
|
-
"name": "--prompt",
|
|
30107
|
-
"value": "<text>",
|
|
30108
|
-
"required": true,
|
|
30109
|
-
"description": "What the person wants done: the first agent step's request."
|
|
30110
|
-
},
|
|
30111
|
-
{
|
|
30112
|
-
"name": "--repo",
|
|
30113
|
-
"value": "<selector>",
|
|
30114
|
-
"required": false,
|
|
30115
|
-
"description": "Repository: active, id, exact path, or saved name. Defaults to the repo of the Pane the caller runs in, else the active repo."
|
|
30116
|
-
},
|
|
30117
|
-
{
|
|
30118
|
-
"name": "--session",
|
|
30119
|
-
"value": "<id|name>",
|
|
30120
|
-
"required": false,
|
|
30121
|
-
"description": "An existing Session to run in. Defaults to the caller's orchestrated Session (PANE_ORCHESTRATION_SESSION_ID); otherwise Pane makes a new Session."
|
|
30122
|
-
},
|
|
30123
|
-
{
|
|
30124
|
-
"name": "--harness",
|
|
30125
|
-
"value": "<cli[/model]>",
|
|
30126
|
-
"required": false,
|
|
30127
|
-
"description": "One CLI (`cli` or `cli/model`) for every agent, over the file's runs."
|
|
30128
|
-
},
|
|
30129
|
-
{
|
|
30130
|
-
"name": "--agent-harness",
|
|
30131
|
-
"value": "<agent>=<cli[/model]>",
|
|
30132
|
-
"required": false,
|
|
30133
|
-
"description": "Agent id → the CLI (`cli` or `cli/model`) that agent runs, over the file's runs and --harness.",
|
|
30134
|
-
"schema": {
|
|
30135
|
-
"type": "object",
|
|
30136
|
-
"additionalProperties": {
|
|
30137
|
-
"type": "string",
|
|
30138
|
-
"minLength": 1
|
|
30139
|
-
}
|
|
30140
|
-
}
|
|
30141
|
-
},
|
|
30142
|
-
{
|
|
30143
|
-
"name": "--command",
|
|
30144
|
-
"value": "<cli>=<command>",
|
|
30145
|
-
"required": false,
|
|
30146
|
-
"description": "A CLI Pane doesn't know → the command that starts it.",
|
|
30147
|
-
"schema": {
|
|
30148
|
-
"type": "object",
|
|
30149
|
-
"additionalProperties": {
|
|
30150
|
-
"type": "string",
|
|
30151
|
-
"minLength": 1
|
|
30152
|
-
}
|
|
30153
|
-
}
|
|
30154
|
-
},
|
|
30155
|
-
{
|
|
30156
|
-
"name": "--yes",
|
|
30157
|
-
"required": true,
|
|
30158
|
-
"description": "Confirm the launch."
|
|
30159
|
-
},
|
|
30160
|
-
{
|
|
30161
|
-
"name": "--json",
|
|
30162
|
-
"required": false,
|
|
30163
|
-
"description": "Print machine-readable output."
|
|
30164
|
-
},
|
|
30165
|
-
{
|
|
30166
|
-
"name": "--pane-dir",
|
|
30167
|
-
"value": "<path>",
|
|
30168
|
-
"required": false,
|
|
30169
|
-
"description": "Connect to a specific Pane data directory."
|
|
30170
|
-
}
|
|
30171
|
-
],
|
|
30172
|
-
"examples": [
|
|
30173
|
-
"runpane profiles launch greenfield --prompt \"Add dark mode to settings\" --yes --json",
|
|
30174
|
-
"runpane profiles launch greenfield --prompt \"Fix the flaky test\" --repo active --agent-harness planner=claude/opus --agent-harness implementer=codex --yes --json"
|
|
30175
|
-
],
|
|
30176
|
-
"jsonSchemas": [
|
|
30177
|
-
"profileLaunchRequest",
|
|
30178
|
-
"profileLaunchResult"
|
|
30179
|
-
],
|
|
30180
|
-
"notes": [
|
|
30181
|
-
"A launch without --prompt fails with ERR_PROFILES_PROMPT_REQUIRED and starts nothing.",
|
|
30182
|
-
"Pane refuses a profile it cannot launch: PROFILE_NOT_FOUND (no such profile), PROFILES_OFF (Profiles is off in Settings › Advanced), PROFILE_TEAM_ONLY (no flow) or PROFILE_NOT_LAUNCHABLE (invalid, or off); the error's next says what to do.",
|
|
30183
|
-
"A --harness or --agent-harness CLI that Pane doesn't know needs --command <cli>=<command that starts it>; without one the launch fails with PROFILE_CLI_UNKNOWN and starts nothing.",
|
|
30184
|
-
"Follow the run with `runpane profiles runs --json`; its steps are tabs in the run's Pane (`runpane agents status --pane <paneId>`)."
|
|
30185
|
-
]
|
|
30186
|
-
},
|
|
30187
|
-
"profiles runs": {
|
|
30188
|
-
"name": "profiles runs",
|
|
30189
|
-
"summary": "List profile runs: each run's profile, state and current step.",
|
|
30190
|
-
"details": "Lists every profile run Pane knows: id, profile and profileVersion, sessionId, repoId, paneId, prompt, state (running, asking, paused, ended or failed), step (the current one, or the last once ended), wait (a step's tab, a card, or none), history of finished steps, and error when it failed.",
|
|
30191
|
-
"requiresPaneDaemon": true,
|
|
30192
|
-
"mutates": false,
|
|
30193
|
-
"arguments": [
|
|
30194
|
-
{
|
|
30195
|
-
"name": "--json",
|
|
30196
|
-
"required": false,
|
|
30197
|
-
"description": "Print machine-readable output."
|
|
30198
|
-
},
|
|
30199
|
-
{
|
|
30200
|
-
"name": "--pane-dir",
|
|
30201
|
-
"value": "<path>",
|
|
30202
|
-
"required": false,
|
|
30203
|
-
"description": "Connect to a specific Pane data directory."
|
|
30204
|
-
}
|
|
30205
|
-
],
|
|
30206
|
-
"examples": [
|
|
30207
|
-
"runpane profiles runs --json"
|
|
30208
|
-
],
|
|
30209
|
-
"jsonSchemas": [
|
|
30210
|
-
"profileRunsResult"
|
|
30211
|
-
],
|
|
30212
|
-
"notes": [
|
|
30213
|
-
"A run waits on a step's tab (wait.kind step, with its panelId), a card for the person (wait.kind card), or nothing once it has ended. Read a step's agent with `runpane agents status --panel <panelId>`."
|
|
30214
|
-
]
|
|
30215
|
-
},
|
|
30216
29352
|
"notify": {
|
|
30217
29353
|
"name": "notify",
|
|
30218
29354
|
"summary": "Ask the person a question, or tell them something, wherever they are, and get their answer back.",
|
|
@@ -32876,7 +32012,6 @@ const CONTRACT_SECTION_17 = {
|
|
|
32876
32012
|
"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`).",
|
|
32877
32013
|
"",
|
|
32878
32014
|
"Loops: before `runpane loops create` or `loops update`, read its `--help`. A loop runs while the person is away, so it reaches them only through cards that wait, keeps a ledger so it never repeats itself, and keeps its prompt in a file.",
|
|
32879
|
-
"Profiles: a profile is a team of agents and a fixed workflow in one file. Once Profiles is on (Settings › Advanced › Profiles), `runpane profiles list` shows them, `profiles launch <name> --prompt <text> --yes` runs one (Pane opens each step as a tab), and an agent in a profile step ends it with `\"$PANE_RUNPANE_BIN\" report --outcome \"<outcome>\"`, using one of the outcomes its first message lists.",
|
|
32880
32015
|
"",
|
|
32881
32016
|
"CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
|
|
32882
32017
|
"",
|