runpane 2.4.203 → 2.4.204
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 +18 -7
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +8 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +28 -0
- package/dist/commands.js.map +1 -1
- package/dist/daemonClient.d.ts +1 -0
- package/dist/daemonClient.d.ts.map +1 -1
- package/dist/daemonClient.js +7 -4
- package/dist/daemonClient.js.map +1 -1
- package/dist/docs-index.json +1 -1
- package/dist/generated/contract.d.ts +367 -6
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +573 -3
- package/dist/generated/contract.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +51 -5
- package/dist/mcp.js.map +1 -1
- package/dist/mcpTools.d.ts +7 -5
- package/dist/mcpTools.d.ts.map +1 -1
- package/dist/mcpTools.js +19 -6
- package/dist/mcpTools.js.map +1 -1
- package/dist/notify.d.ts +8 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +179 -0
- package/dist/notify.js.map +1 -0
- package/dist/telemetry.d.ts +4 -0
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +57 -2
- package/dist/telemetry.js.map +1 -1
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +69 -1
- package/dist/update.js.map +1 -1
- package/dist/updatePreflight.d.ts +3 -0
- package/dist/updatePreflight.d.ts.map +1 -1
- package/dist/updatePreflight.js +12 -2
- package/dist/updatePreflight.js.map +1 -1
- package/package.json +1 -1
|
@@ -1240,6 +1240,24 @@ exports.RUNPANE_CONTRACT = {
|
|
|
1240
1240
|
],
|
|
1241
1241
|
"localControl": true
|
|
1242
1242
|
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "notify",
|
|
1245
|
+
"summary": "Ask the person a question, or tell them something, wherever they are, and get their answer back.",
|
|
1246
|
+
"usage": [
|
|
1247
|
+
"runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]",
|
|
1248
|
+
"runpane notify --resume <id> [--json] [--pane-dir <path>]"
|
|
1249
|
+
],
|
|
1250
|
+
"mutates": true,
|
|
1251
|
+
"additive": true,
|
|
1252
|
+
"toolsets": [
|
|
1253
|
+
"core"
|
|
1254
|
+
],
|
|
1255
|
+
"jsonSchemas": [
|
|
1256
|
+
"notifyRequest",
|
|
1257
|
+
"notifyResult"
|
|
1258
|
+
],
|
|
1259
|
+
"localControl": true
|
|
1260
|
+
},
|
|
1243
1261
|
{
|
|
1244
1262
|
"name": "inbox",
|
|
1245
1263
|
"summary": "List the reports, missing reports, and on-screen questions a Session's orchestrator has not acknowledged.",
|
|
@@ -2063,6 +2081,41 @@ exports.RUNPANE_CONTRACT = {
|
|
|
2063
2081
|
"name": "--epoch",
|
|
2064
2082
|
"value": "<epoch>",
|
|
2065
2083
|
"description": "Journal epoch paired with --since; a mismatch emits _reset instead of silently skipping events."
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "--ui",
|
|
2087
|
+
"value": "<options|approve|ask|info>",
|
|
2088
|
+
"description": "notify: what to show: pick one of choices, approve or deny, type an answer, or an update."
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "--context",
|
|
2092
|
+
"value": "<text>",
|
|
2093
|
+
"description": "notify: background shown under Details."
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"name": "--choices",
|
|
2097
|
+
"value": "<json>",
|
|
2098
|
+
"description": "notify --ui options: 1 to 9 choices as a JSON array of {label, detail?, recommended?}."
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"name": "--detail",
|
|
2102
|
+
"value": "<text>",
|
|
2103
|
+
"description": "notify --ui approve: a preformatted block, such as the command or SQL to approve."
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "--detail-label",
|
|
2107
|
+
"value": "<text>",
|
|
2108
|
+
"description": "notify --ui approve: label of the disclosure that reveals --detail, such as Show the SQL; up to 40 characters."
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"name": "--suggestions",
|
|
2112
|
+
"value": "<json>",
|
|
2113
|
+
"description": "notify --ui ask: suggested answers as a JSON array of strings."
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"name": "--action",
|
|
2117
|
+
"value": "<json>",
|
|
2118
|
+
"description": "notify --ui info: one button as a JSON object {label, url}."
|
|
2066
2119
|
}
|
|
2067
2120
|
],
|
|
2068
2121
|
"localBoolean": [
|
|
@@ -2263,6 +2316,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
2263
2316
|
" runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
|
|
2264
2317
|
" runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
|
|
2265
2318
|
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
|
|
2319
|
+
" runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--resume <id>] [--json]",
|
|
2266
2320
|
" runpane inbox [--session <id|name>] [--json]",
|
|
2267
2321
|
" runpane inbox ack <item-id>... [--session <id|name>] [--json]",
|
|
2268
2322
|
" runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
|
|
@@ -3315,6 +3369,32 @@ exports.RUNPANE_CONTRACT = {
|
|
|
3315
3369
|
"Example:",
|
|
3316
3370
|
" runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"
|
|
3317
3371
|
],
|
|
3372
|
+
"notify": [
|
|
3373
|
+
"Usage:",
|
|
3374
|
+
" runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]",
|
|
3375
|
+
" runpane notify --resume <id> [--json] [--pane-dir <path>]",
|
|
3376
|
+
"",
|
|
3377
|
+
"Asks the person a question, or tells them something, on screen wherever they are, and",
|
|
3378
|
+
"prints their answer. The call waits until they answer; --ui info returns at once.",
|
|
3379
|
+
"Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.",
|
|
3380
|
+
"When Pane is not running it prints an unavailable result: ask in the terminal instead.",
|
|
3381
|
+
"",
|
|
3382
|
+
"Options:",
|
|
3383
|
+
" --ui <ui> options, approve, ask, or info",
|
|
3384
|
+
" --title <text> The question or update in one line",
|
|
3385
|
+
" --context <text> Background shown under Details",
|
|
3386
|
+
" --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
|
|
3387
|
+
" --detail <text> approve: the command or SQL to approve",
|
|
3388
|
+
" --detail-label <text> approve: label of the disclosure for --detail (default Show details)",
|
|
3389
|
+
" --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
|
|
3390
|
+
" --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}",
|
|
3391
|
+
" --resume <id> Keep waiting on a question an earlier call returned waiting for",
|
|
3392
|
+
" --pane-dir <path> Connect to a specific Pane data directory",
|
|
3393
|
+
" --json Print machine-readable output",
|
|
3394
|
+
"",
|
|
3395
|
+
"Example:",
|
|
3396
|
+
" runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"
|
|
3397
|
+
],
|
|
3318
3398
|
"panels resume": [
|
|
3319
3399
|
"Usage:",
|
|
3320
3400
|
" runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]",
|
|
@@ -3754,6 +3834,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
3754
3834
|
" runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
|
|
3755
3835
|
" runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
|
|
3756
3836
|
" runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
|
|
3837
|
+
" runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--resume <id>] [--json]",
|
|
3757
3838
|
" runpane inbox [--session <id|name>] [--json]",
|
|
3758
3839
|
" runpane inbox ack <item-id>... [--session <id|name>] [--json]",
|
|
3759
3840
|
" runpane panes squash-rebase --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
|
|
@@ -4765,6 +4846,32 @@ exports.RUNPANE_CONTRACT = {
|
|
|
4765
4846
|
"Example:",
|
|
4766
4847
|
" runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md"
|
|
4767
4848
|
],
|
|
4849
|
+
"notify": [
|
|
4850
|
+
"Usage:",
|
|
4851
|
+
" runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--json] [--pane-dir <path>]",
|
|
4852
|
+
" runpane notify --resume <id> [--json] [--pane-dir <path>]",
|
|
4853
|
+
"",
|
|
4854
|
+
"Asks the person a question, or tells them something, on screen wherever they are, and",
|
|
4855
|
+
"prints their answer. The call waits until they answer; --ui info returns at once.",
|
|
4856
|
+
"Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.",
|
|
4857
|
+
"When Pane is not running it prints an unavailable result: ask in the terminal instead.",
|
|
4858
|
+
"",
|
|
4859
|
+
"Options:",
|
|
4860
|
+
" --ui <ui> options, approve, ask, or info",
|
|
4861
|
+
" --title <text> The question or update in one line",
|
|
4862
|
+
" --context <text> Background shown under Details",
|
|
4863
|
+
" --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
|
|
4864
|
+
" --detail <text> approve: the command or SQL to approve",
|
|
4865
|
+
" --detail-label <text> approve: label of the disclosure for --detail (default Show details)",
|
|
4866
|
+
" --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
|
|
4867
|
+
" --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}",
|
|
4868
|
+
" --resume <id> Keep waiting on a question an earlier call returned waiting for",
|
|
4869
|
+
" --pane-dir <path> Connect to a specific Pane data directory",
|
|
4870
|
+
" --json Print machine-readable output",
|
|
4871
|
+
"",
|
|
4872
|
+
"Example:",
|
|
4873
|
+
" runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"
|
|
4874
|
+
],
|
|
4768
4875
|
"panels resume": [
|
|
4769
4876
|
"Usage:",
|
|
4770
4877
|
" runpane panels resume --panel <panel-id> [--wait-ready] [--ready-timeout-ms <ms>] --yes [--json] [--pane-dir <path>]",
|
|
@@ -5274,6 +5381,7 @@ exports.RUNPANE_CONTRACT = {
|
|
|
5274
5381
|
"`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).",
|
|
5275
5382
|
"`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.",
|
|
5276
5383
|
"`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.",
|
|
5384
|
+
"`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), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. 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. It needs no `--yes`: asking the person is the point.",
|
|
5277
5385
|
"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.",
|
|
5278
5386
|
"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. Answer a blocked panel with panels submit --no-expect-report, then watch for the original result.",
|
|
5279
5387
|
"`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on). `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.",
|
|
@@ -5295,9 +5403,9 @@ exports.RUNPANE_CONTRACT = {
|
|
|
5295
5403
|
"The PyPI package uses `source=pip` for all Python consumers, including pip, pipx, uvx, and `python -m runpane`.",
|
|
5296
5404
|
"Wrappers should prefer `https://runpane.com/api/download?platform=<platform>&arch=<arch>&format=<format>&version=<version>&channel=<channel>&source=<npm|pip>`.",
|
|
5297
5405
|
"If the website route cannot satisfy the download, wrappers may fall back to the matching GitHub release asset and print a warning that website attribution may be incomplete for that run.",
|
|
5298
|
-
"Wrappers emit best-effort telemetry to `https://runpane.com/api/runpane/telemetry` for command failures, download request/success/failure, and GitHub fallback usage. Routine command starts and successes emit nothing.",
|
|
5406
|
+
"Wrappers emit best-effort telemetry to `https://runpane.com/api/runpane/telemetry` for command failures, download request/success/failure, and GitHub fallback usage. Routine command starts and successes emit nothing. A command failure is a thrown error, or a non-zero exit from `install` or `update` (also when setup runs them); other exit codes are documented results (such as `panels wait` not ready or `doctor` findings) and emit nothing. A failure event carries the command, `failure_stage`, `failure_category`, `exit_code` when known, and `error_code` (the code printed in the `--json` error). Both wrappers share a per-install limit in `<PANE_DIR>/runpane-wrapper-telemetry.json`: one failure event per cause per hour and at most 10 per hour.",
|
|
5299
5407
|
"Wrapper telemetry uses a persisted anonymous `install_id` in the form `install_<uuid>` and PostHog `distinct_id = install:<install_id>` so installs reporting failures or downloads can be counted with `count(DISTINCT properties.install_id)`; this is not a count of all CLI users.",
|
|
5300
|
-
"Wrapper telemetry must be disabled in CI, when `RUNPANE_TELEMETRY_DISABLED` is set, and when the local config explicitly disables analytics. It must not include raw paths, labels, prompts, raw error text, or environment values.",
|
|
5408
|
+
"Wrapper telemetry must be disabled in CI (`CI`, `GITHUB_ACTIONS`, `GITLAB_CI`, `BUILDKITE`, `CIRCLECI`, `TF_BUILD`, `JENKINS_URL`, `TEAMCITY_VERSION` or `CODEBUILD_BUILD_ID` set), when `DO_NOT_TRACK=1` or `RUNPANE_TELEMETRY_DISABLED` is set, and when the local config explicitly disables analytics. It must not include raw paths, labels, prompts, raw error text, or environment values.",
|
|
5301
5409
|
"Desktop local control reports useful failures as `runpane_local_control_failed`; normal polling, wait deadlines, and optional agent unavailability emit nothing. Reports contain coarse operation and failure classification only, with a five-minute deduplication interval and a maximum of 20 per hour per app process. Handled CLI failures are ordinary events, not exceptions."
|
|
5302
5410
|
],
|
|
5303
5411
|
"publishingCredentials": [
|
|
@@ -6445,6 +6553,48 @@ exports.RUNPANE_CONTRACT = {
|
|
|
6445
6553
|
[
|
|
6446
6554
|
"loops",
|
|
6447
6555
|
"--help"
|
|
6556
|
+
],
|
|
6557
|
+
[
|
|
6558
|
+
"notify",
|
|
6559
|
+
"--ui",
|
|
6560
|
+
"options",
|
|
6561
|
+
"--title",
|
|
6562
|
+
"Ship it?",
|
|
6563
|
+
"--context",
|
|
6564
|
+
"Tests pass.",
|
|
6565
|
+
"--choices=[{\"label\":\"Yes\",\"recommended\":true},{\"label\":\"No\"}]",
|
|
6566
|
+
"--json"
|
|
6567
|
+
],
|
|
6568
|
+
[
|
|
6569
|
+
"notify",
|
|
6570
|
+
"--ui=approve",
|
|
6571
|
+
"--title=Drop the table?",
|
|
6572
|
+
"--detail=DROP TABLE t;",
|
|
6573
|
+
"--detail-label=Show the SQL",
|
|
6574
|
+
"--pane-dir",
|
|
6575
|
+
"/tmp/pane"
|
|
6576
|
+
],
|
|
6577
|
+
[
|
|
6578
|
+
"notify",
|
|
6579
|
+
"--ui",
|
|
6580
|
+
"ask",
|
|
6581
|
+
"--title",
|
|
6582
|
+
"Which branch?",
|
|
6583
|
+
"--suggestions=[\"main\"]"
|
|
6584
|
+
],
|
|
6585
|
+
[
|
|
6586
|
+
"notify",
|
|
6587
|
+
"--ui",
|
|
6588
|
+
"info",
|
|
6589
|
+
"--title",
|
|
6590
|
+
"Done",
|
|
6591
|
+
"--action={\"label\":\"Open\",\"url\":\"https://example.com\"}"
|
|
6592
|
+
],
|
|
6593
|
+
[
|
|
6594
|
+
"notify",
|
|
6595
|
+
"--resume",
|
|
6596
|
+
"n-1",
|
|
6597
|
+
"--json"
|
|
6448
6598
|
]
|
|
6449
6599
|
],
|
|
6450
6600
|
"topLevelHelpIncludes": [
|
|
@@ -12398,6 +12548,213 @@ exports.RUNPANE_CONTRACT = {
|
|
|
12398
12548
|
}
|
|
12399
12549
|
},
|
|
12400
12550
|
"additionalProperties": false
|
|
12551
|
+
},
|
|
12552
|
+
"notifyChoice": {
|
|
12553
|
+
"type": "object",
|
|
12554
|
+
"required": [
|
|
12555
|
+
"label"
|
|
12556
|
+
],
|
|
12557
|
+
"properties": {
|
|
12558
|
+
"label": {
|
|
12559
|
+
"type": "string",
|
|
12560
|
+
"minLength": 1,
|
|
12561
|
+
"description": "The answer notify returns when the person picks this choice."
|
|
12562
|
+
},
|
|
12563
|
+
"detail": {
|
|
12564
|
+
"type": "string",
|
|
12565
|
+
"description": "One more line about this choice."
|
|
12566
|
+
},
|
|
12567
|
+
"recommended": {
|
|
12568
|
+
"type": "boolean",
|
|
12569
|
+
"description": "Shade this choice as the one you recommend."
|
|
12570
|
+
}
|
|
12571
|
+
},
|
|
12572
|
+
"additionalProperties": false
|
|
12573
|
+
},
|
|
12574
|
+
"notifyAction": {
|
|
12575
|
+
"type": "object",
|
|
12576
|
+
"required": [
|
|
12577
|
+
"label",
|
|
12578
|
+
"url"
|
|
12579
|
+
],
|
|
12580
|
+
"properties": {
|
|
12581
|
+
"label": {
|
|
12582
|
+
"type": "string",
|
|
12583
|
+
"minLength": 1
|
|
12584
|
+
},
|
|
12585
|
+
"url": {
|
|
12586
|
+
"type": "string",
|
|
12587
|
+
"minLength": 1
|
|
12588
|
+
}
|
|
12589
|
+
},
|
|
12590
|
+
"additionalProperties": false
|
|
12591
|
+
},
|
|
12592
|
+
"notifyRequest": {
|
|
12593
|
+
"description": "What `runpane notify` sends on the runpane:notify daemon channel: the question fields, or resume alone.",
|
|
12594
|
+
"type": "object",
|
|
12595
|
+
"required": [
|
|
12596
|
+
"caller"
|
|
12597
|
+
],
|
|
12598
|
+
"properties": {
|
|
12599
|
+
"ui": {
|
|
12600
|
+
"enum": [
|
|
12601
|
+
"options",
|
|
12602
|
+
"approve",
|
|
12603
|
+
"ask",
|
|
12604
|
+
"info"
|
|
12605
|
+
]
|
|
12606
|
+
},
|
|
12607
|
+
"title": {
|
|
12608
|
+
"type": "string",
|
|
12609
|
+
"minLength": 1
|
|
12610
|
+
},
|
|
12611
|
+
"context": {
|
|
12612
|
+
"type": "string"
|
|
12613
|
+
},
|
|
12614
|
+
"choices": {
|
|
12615
|
+
"type": "array",
|
|
12616
|
+
"minItems": 1,
|
|
12617
|
+
"maxItems": 9,
|
|
12618
|
+
"items": {
|
|
12619
|
+
"$ref": "#/jsonSchemas/notifyChoice"
|
|
12620
|
+
}
|
|
12621
|
+
},
|
|
12622
|
+
"detail": {
|
|
12623
|
+
"type": "string"
|
|
12624
|
+
},
|
|
12625
|
+
"detailLabel": {
|
|
12626
|
+
"type": "string",
|
|
12627
|
+
"maxLength": 40
|
|
12628
|
+
},
|
|
12629
|
+
"suggestions": {
|
|
12630
|
+
"type": "array",
|
|
12631
|
+
"items": {
|
|
12632
|
+
"type": "string",
|
|
12633
|
+
"minLength": 1
|
|
12634
|
+
}
|
|
12635
|
+
},
|
|
12636
|
+
"action": {
|
|
12637
|
+
"$ref": "#/jsonSchemas/notifyAction"
|
|
12638
|
+
},
|
|
12639
|
+
"resume": {
|
|
12640
|
+
"type": "string",
|
|
12641
|
+
"minLength": 1
|
|
12642
|
+
},
|
|
12643
|
+
"returnAfterMs": {
|
|
12644
|
+
"type": "number",
|
|
12645
|
+
"description": "Return waiting after this long; set for MCP clients whose tool calls time out."
|
|
12646
|
+
},
|
|
12647
|
+
"caller": {
|
|
12648
|
+
"type": "object",
|
|
12649
|
+
"properties": {
|
|
12650
|
+
"paneId": {
|
|
12651
|
+
"type": "string"
|
|
12652
|
+
},
|
|
12653
|
+
"panelId": {
|
|
12654
|
+
"type": "string"
|
|
12655
|
+
},
|
|
12656
|
+
"cwd": {
|
|
12657
|
+
"type": "string"
|
|
12658
|
+
},
|
|
12659
|
+
"agent": {
|
|
12660
|
+
"type": "string"
|
|
12661
|
+
}
|
|
12662
|
+
},
|
|
12663
|
+
"additionalProperties": false
|
|
12664
|
+
}
|
|
12665
|
+
},
|
|
12666
|
+
"additionalProperties": false
|
|
12667
|
+
},
|
|
12668
|
+
"notifyResult": {
|
|
12669
|
+
"oneOf": [
|
|
12670
|
+
{
|
|
12671
|
+
"type": "object",
|
|
12672
|
+
"required": [
|
|
12673
|
+
"answer"
|
|
12674
|
+
],
|
|
12675
|
+
"properties": {
|
|
12676
|
+
"answer": {
|
|
12677
|
+
"type": "string",
|
|
12678
|
+
"description": "options: the chosen label. ask: the typed answer."
|
|
12679
|
+
},
|
|
12680
|
+
"note": {
|
|
12681
|
+
"type": "string",
|
|
12682
|
+
"description": "What the person typed with their answer."
|
|
12683
|
+
}
|
|
12684
|
+
},
|
|
12685
|
+
"additionalProperties": false
|
|
12686
|
+
},
|
|
12687
|
+
{
|
|
12688
|
+
"type": "object",
|
|
12689
|
+
"required": [
|
|
12690
|
+
"approved"
|
|
12691
|
+
],
|
|
12692
|
+
"properties": {
|
|
12693
|
+
"approved": {
|
|
12694
|
+
"type": "boolean"
|
|
12695
|
+
},
|
|
12696
|
+
"note": {
|
|
12697
|
+
"type": "string",
|
|
12698
|
+
"description": "What the person typed with their answer."
|
|
12699
|
+
}
|
|
12700
|
+
},
|
|
12701
|
+
"additionalProperties": false
|
|
12702
|
+
},
|
|
12703
|
+
{
|
|
12704
|
+
"type": "object",
|
|
12705
|
+
"required": [
|
|
12706
|
+
"delivered"
|
|
12707
|
+
],
|
|
12708
|
+
"properties": {
|
|
12709
|
+
"delivered": {
|
|
12710
|
+
"enum": [
|
|
12711
|
+
"screen",
|
|
12712
|
+
"inbox"
|
|
12713
|
+
],
|
|
12714
|
+
"description": "screen: shown on the strip. inbox: listed in the Notify inbox because a question was on screen."
|
|
12715
|
+
}
|
|
12716
|
+
},
|
|
12717
|
+
"additionalProperties": false
|
|
12718
|
+
},
|
|
12719
|
+
{
|
|
12720
|
+
"type": "object",
|
|
12721
|
+
"required": [
|
|
12722
|
+
"waiting",
|
|
12723
|
+
"id",
|
|
12724
|
+
"next"
|
|
12725
|
+
],
|
|
12726
|
+
"properties": {
|
|
12727
|
+
"waiting": {
|
|
12728
|
+
"const": true
|
|
12729
|
+
},
|
|
12730
|
+
"id": {
|
|
12731
|
+
"type": "string",
|
|
12732
|
+
"minLength": 1
|
|
12733
|
+
},
|
|
12734
|
+
"next": {
|
|
12735
|
+
"type": "string"
|
|
12736
|
+
}
|
|
12737
|
+
},
|
|
12738
|
+
"additionalProperties": false
|
|
12739
|
+
},
|
|
12740
|
+
{
|
|
12741
|
+
"type": "object",
|
|
12742
|
+
"required": [
|
|
12743
|
+
"unavailable",
|
|
12744
|
+
"next"
|
|
12745
|
+
],
|
|
12746
|
+
"properties": {
|
|
12747
|
+
"unavailable": {
|
|
12748
|
+
"type": "string",
|
|
12749
|
+
"description": "Why nobody can answer through Pane."
|
|
12750
|
+
},
|
|
12751
|
+
"next": {
|
|
12752
|
+
"type": "string"
|
|
12753
|
+
}
|
|
12754
|
+
},
|
|
12755
|
+
"additionalProperties": false
|
|
12756
|
+
}
|
|
12757
|
+
]
|
|
12401
12758
|
}
|
|
12402
12759
|
},
|
|
12403
12760
|
"agentContext": {
|
|
@@ -12709,6 +13066,17 @@ exports.RUNPANE_CONTRACT = {
|
|
|
12709
13066
|
"--kinds <kind,...>",
|
|
12710
13067
|
"--json"
|
|
12711
13068
|
]
|
|
13069
|
+
},
|
|
13070
|
+
{
|
|
13071
|
+
"name": "notify",
|
|
13072
|
+
"summary": "Ask the person a question wherever they are and wait for the answer; prefer it to asking in the terminal.",
|
|
13073
|
+
"arguments": [
|
|
13074
|
+
"--ui <options|approve|ask|info>",
|
|
13075
|
+
"--title <text>",
|
|
13076
|
+
"--choices <json>",
|
|
13077
|
+
"--resume <id>",
|
|
13078
|
+
"--json"
|
|
13079
|
+
]
|
|
12712
13080
|
}
|
|
12713
13081
|
]
|
|
12714
13082
|
},
|
|
@@ -17236,6 +17604,130 @@ exports.RUNPANE_CONTRACT = {
|
|
|
17236
17604
|
"loopDeleteResult"
|
|
17237
17605
|
],
|
|
17238
17606
|
"notes": []
|
|
17607
|
+
},
|
|
17608
|
+
"notify": {
|
|
17609
|
+
"name": "notify",
|
|
17610
|
+
"summary": "Ask the person a question, or tell them something, wherever they are, and get their answer back.",
|
|
17611
|
+
"details": "Prefer this to asking in the terminal whenever you need the person: to pick between options (ui options), to approve or deny an action (ui approve), to type a short answer (ui ask), or to tell them something that needs no answer (ui info). Pane shows it on screen even while the person works in another app, and the call waits until they answer, however long that takes. info returns at once.",
|
|
17612
|
+
"requiresPaneDaemon": true,
|
|
17613
|
+
"mutates": true,
|
|
17614
|
+
"arguments": [
|
|
17615
|
+
{
|
|
17616
|
+
"name": "--ui",
|
|
17617
|
+
"value": "<options|approve|ask|info>",
|
|
17618
|
+
"required": false,
|
|
17619
|
+
"description": "options: pick one of choices. approve: Approve or Deny. ask: a typed answer. info: an update that returns at once. Required unless resume.",
|
|
17620
|
+
"schema": {
|
|
17621
|
+
"type": "string",
|
|
17622
|
+
"enum": [
|
|
17623
|
+
"options",
|
|
17624
|
+
"approve",
|
|
17625
|
+
"ask",
|
|
17626
|
+
"info"
|
|
17627
|
+
]
|
|
17628
|
+
}
|
|
17629
|
+
},
|
|
17630
|
+
{
|
|
17631
|
+
"name": "--title",
|
|
17632
|
+
"value": "<text>",
|
|
17633
|
+
"required": false,
|
|
17634
|
+
"description": "The question or update in one line; long titles wrap to 3 lines. Required unless resume."
|
|
17635
|
+
},
|
|
17636
|
+
{
|
|
17637
|
+
"name": "--context",
|
|
17638
|
+
"value": "<text>",
|
|
17639
|
+
"required": false,
|
|
17640
|
+
"description": "Background the person can open under Details."
|
|
17641
|
+
},
|
|
17642
|
+
{
|
|
17643
|
+
"name": "--choices",
|
|
17644
|
+
"value": "<json>",
|
|
17645
|
+
"required": false,
|
|
17646
|
+
"description": "ui options only, and required there: 1 to 9 choices. The answer is the chosen label. Mark at most the one you recommend.",
|
|
17647
|
+
"schema": {
|
|
17648
|
+
"type": "array",
|
|
17649
|
+
"minItems": 1,
|
|
17650
|
+
"maxItems": 9,
|
|
17651
|
+
"items": {
|
|
17652
|
+
"$ref": "#/jsonSchemas/notifyChoice"
|
|
17653
|
+
}
|
|
17654
|
+
}
|
|
17655
|
+
},
|
|
17656
|
+
{
|
|
17657
|
+
"name": "--detail",
|
|
17658
|
+
"value": "<text>",
|
|
17659
|
+
"required": false,
|
|
17660
|
+
"description": "ui approve only: a preformatted block, such as the command or SQL to approve, behind a disclosure."
|
|
17661
|
+
},
|
|
17662
|
+
{
|
|
17663
|
+
"name": "--detail-label",
|
|
17664
|
+
"value": "<text>",
|
|
17665
|
+
"required": false,
|
|
17666
|
+
"description": "ui approve only, with detail: the disclosure's label, such as \"Show the SQL\"; up to 40 characters. Defaults to \"Show details\".",
|
|
17667
|
+
"schema": {
|
|
17668
|
+
"type": "string",
|
|
17669
|
+
"maxLength": 40
|
|
17670
|
+
}
|
|
17671
|
+
},
|
|
17672
|
+
{
|
|
17673
|
+
"name": "--suggestions",
|
|
17674
|
+
"value": "<json>",
|
|
17675
|
+
"required": false,
|
|
17676
|
+
"description": "ui ask only: suggested answers, shown as chips above the text field.",
|
|
17677
|
+
"schema": {
|
|
17678
|
+
"type": "array",
|
|
17679
|
+
"items": {
|
|
17680
|
+
"type": "string",
|
|
17681
|
+
"minLength": 1
|
|
17682
|
+
}
|
|
17683
|
+
}
|
|
17684
|
+
},
|
|
17685
|
+
{
|
|
17686
|
+
"name": "--action",
|
|
17687
|
+
"value": "<json>",
|
|
17688
|
+
"required": false,
|
|
17689
|
+
"description": "ui info only: one button that opens a URL.",
|
|
17690
|
+
"schema": {
|
|
17691
|
+
"$ref": "#/jsonSchemas/notifyAction"
|
|
17692
|
+
}
|
|
17693
|
+
},
|
|
17694
|
+
{
|
|
17695
|
+
"name": "--resume",
|
|
17696
|
+
"value": "<id>",
|
|
17697
|
+
"required": false,
|
|
17698
|
+
"description": "The id from a waiting result: keep waiting on that question. Pass no other fields."
|
|
17699
|
+
},
|
|
17700
|
+
{
|
|
17701
|
+
"name": "--json",
|
|
17702
|
+
"required": false,
|
|
17703
|
+
"description": "Print machine-readable output."
|
|
17704
|
+
},
|
|
17705
|
+
{
|
|
17706
|
+
"name": "--pane-dir",
|
|
17707
|
+
"value": "<path>",
|
|
17708
|
+
"required": false,
|
|
17709
|
+
"description": "Connect to a specific Pane data directory."
|
|
17710
|
+
}
|
|
17711
|
+
],
|
|
17712
|
+
"examples": [
|
|
17713
|
+
"runpane notify --ui options --title \"Which database for the cache?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]' --json",
|
|
17714
|
+
"runpane notify --ui approve --title \"Drop the legacy_users table?\" --detail \"DROP TABLE legacy_users;\" --detail-label \"Show the SQL\" --json",
|
|
17715
|
+
"runpane notify --ui ask --title \"Which branch should I base this on?\" --suggestions '[\"main\",\"release\"]' --json",
|
|
17716
|
+
"runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json",
|
|
17717
|
+
"runpane notify --resume n-4f2a --json"
|
|
17718
|
+
],
|
|
17719
|
+
"jsonSchemas": [
|
|
17720
|
+
"notifyRequest",
|
|
17721
|
+
"notifyResult"
|
|
17722
|
+
],
|
|
17723
|
+
"notes": [
|
|
17724
|
+
"Write the card the way the pane MCP server's instructions say: in plain words, what the work is for, what just happened, and what you need.",
|
|
17725
|
+
"Results: options returns {answer: <chosen label>, note?}; approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.",
|
|
17726
|
+
"A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.",
|
|
17727
|
+
"A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.",
|
|
17728
|
+
"Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.",
|
|
17729
|
+
"Invalid input, such as choices with ui ask or 10 choices, fails with a message naming the field, and nothing is shown."
|
|
17730
|
+
]
|
|
17239
17731
|
}
|
|
17240
17732
|
},
|
|
17241
17733
|
"managedBlock": [
|
|
@@ -17245,10 +17737,88 @@ exports.RUNPANE_CONTRACT = {
|
|
|
17245
17737
|
"",
|
|
17246
17738
|
"1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Open later agents with `runpane panels create --pane <id>` (MCP: `panels_create` or `agents_start` with `pane`), not a new Pane.",
|
|
17247
17739
|
"",
|
|
17740
|
+
"When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal.",
|
|
17741
|
+
"",
|
|
17248
17742
|
"CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
|
|
17249
17743
|
"",
|
|
17250
17744
|
"MCP: packaged Pane registers a stdio server named `pane` with Claude Code, Codex, and Cursor. Check the connection with `claude mcp list`, `codex mcp list`, or `agent mcp list`. Cursor may ask you to enable `pane` with `agent mcp enable pane`. If tools are missing, add it in the agent's MCP settings: Claude Code `claude mcp add --scope user pane -- npx --yes runpane@latest mcp`; Codex (`~/.codex/config.toml`) table `[mcp_servers.pane]` with `command = \"npx\"` and `args = [\"--yes\", \"runpane@latest\", \"mcp\"]`; Cursor (`~/.cursor/mcp.json`) uses `mcpServers.pane` with the same `npx` command and args; any other stdio client uses them too."
|
|
17251
|
-
]
|
|
17745
|
+
],
|
|
17746
|
+
"notifyGuidance": {
|
|
17747
|
+
"rules": [
|
|
17748
|
+
"Ask only what you can't find out yourself.",
|
|
17749
|
+
"Put related questions in one card.",
|
|
17750
|
+
"Send `info` rarely, only for what the person must know now.",
|
|
17751
|
+
"Keep titles short and choices to a few words."
|
|
17752
|
+
],
|
|
17753
|
+
"cardRule": "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.",
|
|
17754
|
+
"results": "`waiting` means call `notify` again with `resume`; `unavailable` means ask in the terminal.",
|
|
17755
|
+
"examples": [
|
|
17756
|
+
{
|
|
17757
|
+
"name": "Needs a decision",
|
|
17758
|
+
"ui": "approve",
|
|
17759
|
+
"bad": [
|
|
17760
|
+
{
|
|
17761
|
+
"title": "Approve the migration?",
|
|
17762
|
+
"context": "Ready to run 0042_add_index on prod. Proceed?"
|
|
17763
|
+
}
|
|
17764
|
+
],
|
|
17765
|
+
"good": {
|
|
17766
|
+
"title": "Speed up slow search: run the database change?",
|
|
17767
|
+
"context": "Search in the app takes 4 s, and an index brings it under 100 ms. It changes the live database and can't easily be undone. Approve runs it now; Deny keeps it ready for later."
|
|
17768
|
+
}
|
|
17769
|
+
},
|
|
17770
|
+
{
|
|
17771
|
+
"name": "Blocked",
|
|
17772
|
+
"ui": "options",
|
|
17773
|
+
"bad": [
|
|
17774
|
+
{
|
|
17775
|
+
"title": "Blocked",
|
|
17776
|
+
"context": "CI failing on macos-intel, hdiutil resource busy."
|
|
17777
|
+
}
|
|
17778
|
+
],
|
|
17779
|
+
"good": {
|
|
17780
|
+
"title": "The 2.5 release is stuck on a GitHub hiccup",
|
|
17781
|
+
"context": "The fixes you asked for pass everywhere except one Mac build machine, which errored. That's GitHub's machine, not our code.",
|
|
17782
|
+
"choices": [
|
|
17783
|
+
"Rerun it (about 15 min)",
|
|
17784
|
+
"Ship without the Intel Mac build"
|
|
17785
|
+
]
|
|
17786
|
+
}
|
|
17787
|
+
},
|
|
17788
|
+
{
|
|
17789
|
+
"name": "Just so you know",
|
|
17790
|
+
"ui": "info",
|
|
17791
|
+
"bad": [
|
|
17792
|
+
{
|
|
17793
|
+
"title": "Done",
|
|
17794
|
+
"context": "Completed refactor of src/notify/queue.ts (head 06d310a)."
|
|
17795
|
+
},
|
|
17796
|
+
{
|
|
17797
|
+
"title": "PR #812 is ready",
|
|
17798
|
+
"context": "Tests pass."
|
|
17799
|
+
}
|
|
17800
|
+
],
|
|
17801
|
+
"good": {
|
|
17802
|
+
"title": "Questions from agents now wait until you answer",
|
|
17803
|
+
"context": "The fix you asked for this morning is done and tested. Next is your review: one click to merge."
|
|
17804
|
+
}
|
|
17805
|
+
},
|
|
17806
|
+
{
|
|
17807
|
+
"name": "A question for ask",
|
|
17808
|
+
"ui": "ask",
|
|
17809
|
+
"bad": [
|
|
17810
|
+
{
|
|
17811
|
+
"title": "Which option?",
|
|
17812
|
+
"context": "1, 2 or 3?"
|
|
17813
|
+
}
|
|
17814
|
+
],
|
|
17815
|
+
"good": {
|
|
17816
|
+
"title": "What should the release headline say?",
|
|
17817
|
+
"context": "You're writing the 2.5 release notes, and the headline is the first line people read. A few words is enough."
|
|
17818
|
+
}
|
|
17819
|
+
}
|
|
17820
|
+
]
|
|
17821
|
+
}
|
|
17252
17822
|
}
|
|
17253
17823
|
};
|
|
17254
17824
|
//# sourceMappingURL=contract.js.map
|