runpane 2.4.254 → 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/dist/docs-index.json +1 -1
- package/dist/generated/contract.d.ts +47 -16
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +61 -18
- 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 +2 -0
- package/dist/localControl.js.map +1 -1
- package/package.json +1 -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",
|
|
@@ -5601,13 +5602,16 @@ const CONTRACT_SECTION_13 = {
|
|
|
5601
5602
|
" runpane links create --pane <pane-id> [--panel <panel-id>] [--json]",
|
|
5602
5603
|
" runpane links create --repo <repo-id> [--json]",
|
|
5603
5604
|
" runpane links create --session <session-id> [--json]",
|
|
5605
|
+
" runpane links create --repo <repo> --prompt <task> [--agent <codex|claude|cursor|opencode|pi>] [--json]",
|
|
5604
5606
|
"",
|
|
5605
|
-
"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.",
|
|
5606
5608
|
"",
|
|
5607
5609
|
"Options:",
|
|
5608
5610
|
" --pane <pane-id> Pane to open.",
|
|
5609
5611
|
" --panel <panel-id> Panel inside the Pane to select.",
|
|
5610
|
-
" --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).",
|
|
5611
5615
|
" --session <session-id> Session id or name from sessions list.",
|
|
5612
5616
|
" --json Print machine-readable output."
|
|
5613
5617
|
],
|
|
@@ -5618,7 +5622,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
5618
5622
|
"Open a pane:// link in the running Pane app.",
|
|
5619
5623
|
"",
|
|
5620
5624
|
"Options:",
|
|
5621
|
-
" --url <pane-url> A pane://open link from links create.",
|
|
5625
|
+
" --url <pane-url> A pane://open or pane://new link from links create.",
|
|
5622
5626
|
" --yes Confirm this change; required in non-interactive shells.",
|
|
5623
5627
|
" --json Print machine-readable output.",
|
|
5624
5628
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
@@ -8446,13 +8450,16 @@ const CONTRACT_SECTION_13 = {
|
|
|
8446
8450
|
" runpane links create --pane <pane-id> [--panel <panel-id>] [--json]",
|
|
8447
8451
|
" runpane links create --repo <repo-id> [--json]",
|
|
8448
8452
|
" runpane links create --session <session-id> [--json]",
|
|
8453
|
+
" runpane links create --repo <repo> --prompt <task> [--agent <codex|claude|cursor|opencode|pi>] [--json]",
|
|
8449
8454
|
"",
|
|
8450
|
-
"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.",
|
|
8451
8456
|
"",
|
|
8452
8457
|
"Options:",
|
|
8453
8458
|
" --pane <pane-id> Pane to open.",
|
|
8454
8459
|
" --panel <panel-id> Panel inside the Pane to select.",
|
|
8455
|
-
" --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).",
|
|
8456
8463
|
" --session <session-id> Session id or name from sessions list.",
|
|
8457
8464
|
" --json Print machine-readable output."
|
|
8458
8465
|
],
|
|
@@ -8463,7 +8470,7 @@ const CONTRACT_SECTION_13 = {
|
|
|
8463
8470
|
"Open a pane:// link in the running Pane app.",
|
|
8464
8471
|
"",
|
|
8465
8472
|
"Options:",
|
|
8466
|
-
" --url <pane-url> A pane://open link from links create.",
|
|
8473
|
+
" --url <pane-url> A pane://open or pane://new link from links create.",
|
|
8467
8474
|
" --yes Confirm this change; required in non-interactive shells.",
|
|
8468
8475
|
" --json Print machine-readable output.",
|
|
8469
8476
|
" --pane-dir <path> Connect to a specific Pane data directory."
|
|
@@ -10006,7 +10013,7 @@ const CONTRACT_SECTION_14 = {
|
|
|
10006
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.",
|
|
10007
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.",
|
|
10008
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.",
|
|
10009
|
-
"`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.",
|
|
10010
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.",
|
|
10011
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.",
|
|
10012
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.",
|
|
@@ -14851,6 +14858,14 @@ const CONTRACT_SECTION_16 = {
|
|
|
14851
14858
|
"additionalProperties": false
|
|
14852
14859
|
},
|
|
14853
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."
|
|
14854
14869
|
}
|
|
14855
14870
|
},
|
|
14856
14871
|
"additionalProperties": false
|
|
@@ -18167,7 +18182,8 @@ const CONTRACT_SECTION_16 = {
|
|
|
18167
18182
|
"enum": [
|
|
18168
18183
|
"pane",
|
|
18169
18184
|
"repo",
|
|
18170
|
-
"session"
|
|
18185
|
+
"session",
|
|
18186
|
+
"new"
|
|
18171
18187
|
]
|
|
18172
18188
|
},
|
|
18173
18189
|
"id": {
|
|
@@ -18175,6 +18191,12 @@ const CONTRACT_SECTION_16 = {
|
|
|
18175
18191
|
},
|
|
18176
18192
|
"panelId": {
|
|
18177
18193
|
"type": "string"
|
|
18194
|
+
},
|
|
18195
|
+
"prompt": {
|
|
18196
|
+
"type": "string"
|
|
18197
|
+
},
|
|
18198
|
+
"agent": {
|
|
18199
|
+
"type": "string"
|
|
18178
18200
|
}
|
|
18179
18201
|
},
|
|
18180
18202
|
"additionalProperties": false
|
|
@@ -18476,6 +18498,13 @@ const CONTRACT_SECTION_16 = {
|
|
|
18476
18498
|
"liveWatchers": {
|
|
18477
18499
|
"type": "number",
|
|
18478
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."
|
|
18479
18508
|
}
|
|
18480
18509
|
},
|
|
18481
18510
|
"additionalProperties": false
|
|
@@ -27346,8 +27375,8 @@ const CONTRACT_SECTION_17 = {
|
|
|
27346
27375
|
},
|
|
27347
27376
|
"links create": {
|
|
27348
27377
|
"name": "links create",
|
|
27349
|
-
"summary": "Build a pane:// link that opens a Pane, panel, repository, or Session
|
|
27350
|
-
"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.",
|
|
27351
27380
|
"requiresPaneDaemon": false,
|
|
27352
27381
|
"mutates": false,
|
|
27353
27382
|
"arguments": [
|
|
@@ -27367,7 +27396,19 @@ const CONTRACT_SECTION_17 = {
|
|
|
27367
27396
|
"name": "--repo",
|
|
27368
27397
|
"value": "<repo-id>",
|
|
27369
27398
|
"required": false,
|
|
27370
|
-
"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)."
|
|
27371
27412
|
},
|
|
27372
27413
|
{
|
|
27373
27414
|
"name": "--session",
|
|
@@ -27382,19 +27423,21 @@ const CONTRACT_SECTION_17 = {
|
|
|
27382
27423
|
}
|
|
27383
27424
|
],
|
|
27384
27425
|
"examples": [
|
|
27385
|
-
"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"
|
|
27386
27428
|
],
|
|
27387
27429
|
"jsonSchemas": [
|
|
27388
27430
|
"linkCreateResult"
|
|
27389
27431
|
],
|
|
27390
27432
|
"notes": [
|
|
27391
|
-
"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."
|
|
27392
27435
|
]
|
|
27393
27436
|
},
|
|
27394
27437
|
"links open": {
|
|
27395
27438
|
"name": "links open",
|
|
27396
27439
|
"summary": "Open a pane:// link in the running Pane app.",
|
|
27397
|
-
"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.",
|
|
27398
27441
|
"requiresPaneDaemon": true,
|
|
27399
27442
|
"mutates": true,
|
|
27400
27443
|
"arguments": [
|
|
@@ -27402,7 +27445,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
27402
27445
|
"name": "--url",
|
|
27403
27446
|
"value": "<pane-url>",
|
|
27404
27447
|
"required": true,
|
|
27405
|
-
"description": "A pane://open link from links create."
|
|
27448
|
+
"description": "A pane://open or pane://new link from links create."
|
|
27406
27449
|
},
|
|
27407
27450
|
{
|
|
27408
27451
|
"name": "--yes",
|
|
@@ -27428,7 +27471,7 @@ const CONTRACT_SECTION_17 = {
|
|
|
27428
27471
|
"daemonActionResult"
|
|
27429
27472
|
],
|
|
27430
27473
|
"notes": [
|
|
27431
|
-
"
|
|
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."
|
|
27432
27475
|
]
|
|
27433
27476
|
},
|
|
27434
27477
|
"docs search": {
|