orkestrator 2.37.1-beta → 2.37.4-beta
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/client.js +454 -23
- package/dist/main.js +185742 -168918
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +229 -77
- package/resources/claude-bridge/dist/index.js +395 -169
- package/resources/codex-bridge/dist/index.js +270 -90
- package/resources/cursor-bridge/dist/index.js +1375 -397
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +382 -133
- package/resources/pi-bridge/runtime/install.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orkestrator",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.4-beta",
|
|
4
4
|
"description": "Run the Orkestrator backend service without the desktop application",
|
|
5
5
|
"homepage": "https://orkestrator.dev",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"sharp": "0.35.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@orkestrator/protocol": "2.37.
|
|
43
|
-
"@orkestrator/toolchain": "2.37.
|
|
42
|
+
"@orkestrator/protocol": "2.37.4-beta",
|
|
43
|
+
"@orkestrator/toolchain": "2.37.4-beta"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"bun": ">=1.4.4"
|
|
@@ -687,12 +687,22 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
687
687
|
denied: "A renderer asked for a permission the policy does not grant."
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
|
+
"desktop.webrequest": {
|
|
691
|
+
description: "Main-process webRequest listeners on Electron sessions. Listener names only; never a URL, header or error message.",
|
|
692
|
+
events: {
|
|
693
|
+
"listener.failed-closed": "A listener's decision threw or rejected, so it answered with its fail-closed response.",
|
|
694
|
+
"observer.failed": "A listener with no callback (a redirect observer) threw; its fallback ran.",
|
|
695
|
+
"callback.failed": "Electron's webRequest callback threw while a listener answered.",
|
|
696
|
+
...THROTTLE_LOG_EVENTS
|
|
697
|
+
}
|
|
698
|
+
},
|
|
690
699
|
"desktop.dialog": {
|
|
691
700
|
description: "Native dialogs, whose modal loops hold the main thread while they are open.",
|
|
692
701
|
events: {
|
|
693
702
|
"attention-failed": "A dialog could not ask for the user's attention.",
|
|
694
703
|
closed: "A native dialog closed.",
|
|
695
704
|
"hidden-cancelled": "A hidden profile cancelled a dialog without opening native UI.",
|
|
705
|
+
"no-display-cancelled": "A headless Electron with no display cancelled a dialog instead of opening native UI.",
|
|
696
706
|
"open-failed": "A dialog could not open; it was answered as cancelled.",
|
|
697
707
|
opening: "A native dialog is opening.",
|
|
698
708
|
"preview-beforeunload-ignored": "A browser preview's beforeunload handler was ignored.",
|
|
@@ -775,6 +785,9 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
|
|
|
775
785
|
"setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
|
|
776
786
|
"setup.tab-publish-failed": "The setup terminal's tab could not be published.",
|
|
777
787
|
"lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
|
|
788
|
+
"git-https-probe.failed": "Checking whether a project's GitHub remote works over HTTPS failed; `reason` says why.",
|
|
789
|
+
"git-https-remedy.failed": "Deciding whether to offer HTTPS after an SSH failure threw; no remedy is offered.",
|
|
790
|
+
"git-origin.switched-to-https": "A project's origin remote was switched from GitHub SSH to HTTPS at the user's request.",
|
|
778
791
|
"tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
|
|
779
792
|
"tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
|
|
780
793
|
"orphan-session.reaped": "A native session no tab references was torn down.",
|
|
@@ -1045,11 +1058,38 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1045
1058
|
"agent-tools.unavailable": "OpenCode agent tools remain unavailable for a session.",
|
|
1046
1059
|
"coordinator-servers.unavailable": "OpenCode coordinator research servers are unavailable.",
|
|
1047
1060
|
"monitor.reconnecting": "The request monitor lost its stream and is reconnecting. Error class only.",
|
|
1061
|
+
"monitor.silent": "The request monitor's stream stopped heartbeating, so it is replaced. `silenceMs` only.",
|
|
1048
1062
|
"worker-limit.reached": "The bounded request workers are full, so the stream restarts and a snapshot reconciles.",
|
|
1049
1063
|
"request.failed": "Handling a request event failed, so the stream restarts. Error class only.",
|
|
1050
1064
|
"credential-plugin.skipped": "A host OpenCode server started without the credential plugin, so its tools inherit its password; `reason` says why.",
|
|
1051
1065
|
"host-database.separated": "Host OpenCode uses Orkestrator's own database because the shared one has no `session` table (an OpenCode 2 database); `reason` says why.",
|
|
1052
|
-
"host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only."
|
|
1066
|
+
"host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only.",
|
|
1067
|
+
"login.opencode2-mirror-failed": "A provider sign-in change reached OpenCode 1 but could not be copied into the OpenCode 2 database; the user is told to retry. Error class only."
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"native-agent.opencode2": {
|
|
1071
|
+
description: "The OpenCode 2.x provider: its event monitor, steering, routing, host and container servers.",
|
|
1072
|
+
events: {
|
|
1073
|
+
"events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
|
|
1074
|
+
"steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
|
|
1075
|
+
"provider.dispose-failed": "Disposing the 2.x provider of a replaced server failed. Error class only.",
|
|
1076
|
+
"transcript.unknown-row": "A 2.x history row of a kind the transcript does not know was dropped (a newer server). Its kind name only, once per kind.",
|
|
1077
|
+
"mcp.remove-failed": "Removing a closed session's Orkestrator MCP server from the 2.x server failed. Error class only.",
|
|
1078
|
+
"protocol.select-failed": "A workflow could not read the OpenCode line setting, so its new session takes 1.x. Error class only.",
|
|
1079
|
+
"host-server.ready": "A local environment's (or a coordinator conversation's) 2.x server answered `/api/info` as 2.x. Environment id, pid and whether it is a coordinator's only.",
|
|
1080
|
+
"coordinator-research.unavailable": "A coordinator's 2.x server could not register its research servers, so the conversation runs without them until the server restarts. Error class only.",
|
|
1081
|
+
"host-server.terminate-failed": "A 2.x server that did not become ready could not be stopped; its process entry is kept for shutdown. Error class only.",
|
|
1082
|
+
"container-server.launched": "The start script of a container environment's 2.x server was run. Container port only.",
|
|
1083
|
+
"container-server.ready": "A container environment's 2.x server this backend started answered `/api/info` as 2.x. Environment id only.",
|
|
1084
|
+
"container-server.cleanup-failed": "Cleanup after OpenCode startup failed; step names only, while the original startup error is preserved.",
|
|
1085
|
+
"container-server.warm-incomplete": "The first workspace request to a container's new 2.x server failed, so its plugins load on the next one. Error class only.",
|
|
1086
|
+
"resume-list.unavailable": "The 2.x sessions could not be listed for the resume picker, so it shows the 1.x list alone. Error class only.",
|
|
1087
|
+
"credential.mirrored": "A provider sign-in change was copied into the 2.x database. `outcome` (written, removed, unchanged, skipped) only; never a provider id or value.",
|
|
1088
|
+
"credential.server-exit-unclean": "The private 2.x server started to copy a sign-in did not stop cleanly. Error class only.",
|
|
1089
|
+
"user-config.mirror-failed": "The user's global OpenCode configuration could not be mirrored for a host 2.x server, which starts without it. Error class only.",
|
|
1090
|
+
"user-config.unreadable": "A file of the user's OpenCode configuration could not be read for the 2.x mirror. `source`, the file's name and the error code only.",
|
|
1091
|
+
"user-config.rejected": "Files of the user's OpenCode configuration are not a JSONC object, so the 2.x mirror leaves them out. `source` and file names only, never contents.",
|
|
1092
|
+
"user-config.plugins-withheld": "The user's OpenCode configuration lists plugins, which the 2.x mirror leaves out (1.x plugins do not run on 2.x). `source` only."
|
|
1053
1093
|
}
|
|
1054
1094
|
}
|
|
1055
1095
|
});
|
|
@@ -1276,6 +1316,7 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
1276
1316
|
"cleanup.skipped": "Environment tmux cleanup was skipped because tmux could not be reached and nothing required it.",
|
|
1277
1317
|
"cleanup.environments-load-failed": "Environments could not be loaded during tmux cleanup, so it stays incomplete.",
|
|
1278
1318
|
"cleanup.kill-failed": "An environment's tmux sessions could not be killed.",
|
|
1319
|
+
"cleanup.kill-incomplete": "An environment's tmux sessions could not all be shown gone (a session survived, or the socket was unreachable while another tmux process might own it), so cleanup stays incomplete.",
|
|
1279
1320
|
"hooks.uninstall-failed": "Workspace hooks could not be uninstalled.",
|
|
1280
1321
|
"hooks.git-exclude-failed": "The git exclude for Claude's local settings could not be set.",
|
|
1281
1322
|
"naming.prepare-failed": "First-prompt naming could not be prepared; the prompt still goes ahead.",
|
|
@@ -1405,6 +1446,7 @@ var STORAGE_LOG_AREAS = defineLogAreas({
|
|
|
1405
1446
|
"config.restrict-mode-failed": "A config file holding provider secrets could not be set to owner-only; the backend carries on.",
|
|
1406
1447
|
"legacy-json.moved": "JSON store files written after the SQLite migration were archived, not imported.",
|
|
1407
1448
|
"legacy-json.archive-failed": "Imported JSON store files could not be archived.",
|
|
1449
|
+
"native-session-owners.backfill-failed": "Native-session rows could not be given their environment as owner at open; an environment delete then parses those rows instead, and the next open retries.",
|
|
1408
1450
|
"lease.timed-out": "A waiter gave up on a lease; `lease` and `family` name it, `holderAgeMs` is the time since its holder's last heartbeat (null when the holder had just gone), `waitedMs` how long the waiter waited.",
|
|
1409
1451
|
"lease.heartbeat-failed": "A held lease's heartbeat failed, which shortens the lease; the next one retries.",
|
|
1410
1452
|
"scrub.vacuum-failed": "Deleted-content page reclamation failed; the checkpoint is attempted independently.",
|
|
@@ -1454,6 +1496,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
1454
1496
|
"transcripts.maintenance-failed": "Migrating or sweeping stage transcripts failed; the next start retries.",
|
|
1455
1497
|
"restore.skipped": "A pipeline could not be restored at startup and was skipped.",
|
|
1456
1498
|
"criteria.record-failed": "Acceptance criteria results could not be recorded on the ticket.",
|
|
1499
|
+
"completion-notes.publish-failed": "A finished pipeline's notes tab could not be added to the layout; the run stays complete.",
|
|
1457
1500
|
"workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
|
|
1458
1501
|
"rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
|
|
1459
1502
|
"kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
|
|
@@ -1495,6 +1538,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
1495
1538
|
"dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
|
|
1496
1539
|
"turn.finalize-failed": "Finalizing a turn failed.",
|
|
1497
1540
|
"turn.settle-failed": "Settling a late interrupted turn failed.",
|
|
1541
|
+
"turn.end-recovery": "A background retry of a turn end capture that timed out finished: recovered, done (no longer eligible) or exhausted.",
|
|
1542
|
+
"turn.end-recovery-failed": "A background retry of a turn end capture threw; it counts as a failed attempt.",
|
|
1498
1543
|
"evidence.pull-failed": "Pulling change evidence from a bridge failed; a later pull retries.",
|
|
1499
1544
|
"measurement.failed": "Recomputing a tool's measurement failed."
|
|
1500
1545
|
}
|
|
@@ -1563,6 +1608,7 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
1563
1608
|
"node-release.no-coordinator": "Work closed on a released node belonged to a coordinator that no longer exists, so nobody was told.",
|
|
1564
1609
|
"node-offline.notice-failed": "The notice that a node has been unreachable for a day could not be sent; the next failed read retries.",
|
|
1565
1610
|
"node-offline.check-failed": "Whether a long-unreachable node's coordinators were told could not be checked; the next read retries.",
|
|
1611
|
+
"node-reconnect.notice-failed": "The message that a node a coordinator tried while it was disconnected is back could not be sent; it is not retried, since the coordinator already holds the refusal.",
|
|
1566
1612
|
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
1567
1613
|
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
1568
1614
|
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded (`fast-forwarded-fetched` when the fetch was slow or failed and the upstream commit already fetched was merged), or `outcome` says why not (`timed-out`, `failed`).",
|
|
@@ -1615,7 +1661,8 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
1615
1661
|
"monitor.task-store-failed": "A pull request could not be recorded on its Kanban task.",
|
|
1616
1662
|
"monitor.merged-tickets-closed": "The startup sweep moved Kanban tickets whose pull request had merged to done (`count`).",
|
|
1617
1663
|
"monitor.merged-tickets-close-failed": "The startup sweep closing Kanban tickets whose pull request merged failed; the next backend start retries.",
|
|
1618
|
-
"monitor.emit-failed": "A pull request monitor event could not be emitted to its sink."
|
|
1664
|
+
"monitor.emit-failed": "A pull request monitor event could not be emitted to its sink.",
|
|
1665
|
+
"branch-cleanup.kept": "A merge or cleanup kept a pull request's head branch because it is not the branch created for the environment (`reason`)."
|
|
1619
1666
|
}
|
|
1620
1667
|
}
|
|
1621
1668
|
});
|
|
@@ -1647,6 +1694,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
1647
1694
|
"kept-note.failed": "Recording why a limit stop found no account to move to failed; the stop stands.",
|
|
1648
1695
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
1649
1696
|
"last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
|
|
1697
|
+
"shared-usage.save-failed": "The shared usage readings could not be saved; they stay in memory and the next reading saves them.",
|
|
1698
|
+
"shared-usage.record-failed": "A fresh usage reading could not be kept for sharing with other machines; the account's own reading stands.",
|
|
1650
1699
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
1651
1700
|
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
1652
1701
|
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
@@ -1664,6 +1713,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1664
1713
|
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
1665
1714
|
"git-mirror.mount-withheld": "A new restricted container gets no project Git mirror because its firewall would not let it reach the project's remote, so it cannot read what the remote serves through the mirror either.",
|
|
1666
1715
|
"git-mirror.refreshed": "A project's Git mirror was built or updated.",
|
|
1716
|
+
"git-mirror.access-changed": "A project's Git mirror was withdrawn because containers are now given a different credential (another access kind, or a token acting as another or an unreadable account), so no reader keeps what it could not fetch itself.",
|
|
1667
1717
|
"git-mirror.seeded": "A project's Git mirror was built from its host checkout and only what the remote added to it.",
|
|
1668
1718
|
"git-mirror.seed-skipped": "A project's host checkout could not seed its Git mirror, so the build downloads everything.",
|
|
1669
1719
|
"git-mirror.refresh-failed": "A project's Git mirror could not be updated. New clones still work, from the mirror as it was or from the remote.",
|
|
@@ -1677,6 +1727,9 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1677
1727
|
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
1678
1728
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
1679
1729
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
1730
|
+
"opencode.listener-replaced": "The process on a container's OpenCode port (`provider`: `opencode` or `opencode2`) is not the server the backend launched and recorded, so its password was withheld and the next start replaces it. `stage` is `request` when the re-check after a refused connection or an unexpected answer found it (to-do 7550); that connection then sends nothing more.",
|
|
1731
|
+
"opencode.project-config-too-large": "A checkout's opencode.json or opencode.jsonc was larger than the limit, so a launched OpenCode server does not read it. File name only.",
|
|
1732
|
+
"opencode.project-config-filtered": "Values were left out of a checkout's OpenCode configuration before a launched server reads it (to-do 7550): counts of plugin keys, `{env:}` and `{file:}` references and dropped instructions (including separate instructionGlob and instructionUrl counts), and the names of files that were not a JSONC object. Never values.",
|
|
1680
1733
|
"log-driver.unbounded": "The Docker daemon offers neither the local nor the json-file log driver, so new containers keep its default driver, whose log may be uncapped. Written once per backend.",
|
|
1681
1734
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
1682
1735
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
@@ -1711,6 +1764,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1711
1764
|
description: "A bridge process was launched in a container, for the first time there or as a relaunch; `provider` names it. A relaunch keeps the run before it in the previous log.",
|
|
1712
1765
|
essential: true,
|
|
1713
1766
|
fields: { provider: "label", containerPort: "number" }
|
|
1767
|
+
},
|
|
1768
|
+
"bridge.listener-refused": {
|
|
1769
|
+
description: "The socket listening on a container bridge's port is not the one the bridge the backend started opened (to-do 7250), so its token is not handed out and the next start replaces it. `reason` is a fixed label: `different-socket`, `several-sockets`, `pending` (a start has not recorded its bridge yet, or failed before it did) or `scan-incomplete`.",
|
|
1770
|
+
essential: true,
|
|
1771
|
+
fields: { provider: "label", reason: "label" }
|
|
1772
|
+
},
|
|
1773
|
+
"bridge.listener-adopted": "A running container bridge had no listener record, because a backend from before the record started it, so the socket on its port was recorded as the bridge's; `provider` names it.",
|
|
1774
|
+
"bridge.listener-unrecorded": {
|
|
1775
|
+
description: "A bridge the backend just launched could not be recorded as its port's listener, for the fixed `reason` given (`no-listener`, `several-sockets`, `launch-exited` or `scan-incomplete`); what listens on the port is stopped and the start fails.",
|
|
1776
|
+
essential: true,
|
|
1777
|
+
fields: { provider: "label", reason: "label" }
|
|
1714
1778
|
}
|
|
1715
1779
|
}
|
|
1716
1780
|
},
|
|
@@ -1765,7 +1829,8 @@ var MCP_LOG_AREAS = defineLogAreas({
|
|
|
1765
1829
|
"listener.port-free": "The Control MCP's fixed port is free again, so it is listening.",
|
|
1766
1830
|
"state-listener.failed": "A Control MCP state listener threw; the others still run.",
|
|
1767
1831
|
"delegation.remote-open-failed": "A delegation could not be opened on another node.",
|
|
1768
|
-
"delegation.open-failed": "A coordinator delegation could not be opened."
|
|
1832
|
+
"delegation.open-failed": "A coordinator delegation could not be opened.",
|
|
1833
|
+
"delegation.turn-origin-unreadable": "A coordinator's last turn origin could not be read, so its delegated prompt is marked as arising from agent mail."
|
|
1769
1834
|
}
|
|
1770
1835
|
},
|
|
1771
1836
|
"mcp-management": {
|
|
@@ -1850,6 +1915,7 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
1850
1915
|
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
1851
1916
|
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
1852
1917
|
"ticket-sync.forget-failed": "A detached command node's ticket copies could not be released.",
|
|
1918
|
+
"usage-sync.failed": "Sharing usage readings with a node failed; the next reading or reconnect retries.",
|
|
1853
1919
|
"fleet-update.requested": "The update policy asked an older leaf to install the command node's version.",
|
|
1854
1920
|
"fleet-update.failed": "The update policy could not read or update a leaf; it retries later.",
|
|
1855
1921
|
"fleet-update.policy-load-failed": "The stored update policy could not be read; it is off."
|
|
@@ -1941,6 +2007,20 @@ var SCHEDULER_LOG_AREAS = defineLogAreas({
|
|
|
1941
2007
|
}
|
|
1942
2008
|
});
|
|
1943
2009
|
|
|
2010
|
+
// ../protocol/src/log-vocabulary/self-improvement.ts
|
|
2011
|
+
var SELF_IMPROVEMENT_LOG_AREAS = defineLogAreas({
|
|
2012
|
+
"self-improvement": {
|
|
2013
|
+
description: "Self-improvement runs: diagnostics and conversation review turned into tickets. Counts and steps only, never conversation text.",
|
|
2014
|
+
events: {
|
|
2015
|
+
"run.started": "A run started; `trigger` is manual, daily or dry-run.",
|
|
2016
|
+
"run.finished": "A run finished; `created`, `verified`, `fixFailed` and `parts` count its tickets, confirmed fixes, failed fixes and conversation parts read.",
|
|
2017
|
+
"run.failed": "A run stopped before it finished; `reason` is a fixed label.",
|
|
2018
|
+
"review.call-failed": "One conversation review call failed; the run carries on and the part is read again next run.",
|
|
2019
|
+
"daily.check-failed": "The daily run check failed; the next check retries."
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
});
|
|
2023
|
+
|
|
1944
2024
|
// ../protocol/src/log-vocabulary/web-app.ts
|
|
1945
2025
|
var WEB_APP_LOG_AREAS = defineLogAreas({
|
|
1946
2026
|
"web.app": {
|
|
@@ -2276,6 +2356,10 @@ var WEB_SETTINGS_LOG_AREAS = defineLogAreas({
|
|
|
2276
2356
|
"web.settings": {
|
|
2277
2357
|
description: "The settings screens.",
|
|
2278
2358
|
events: {
|
|
2359
|
+
"self-improvement.status-failed": "Settings → Self-improvement could not read the status.",
|
|
2360
|
+
"self-improvement.projects-failed": "Settings → Self-improvement could not list the projects.",
|
|
2361
|
+
"self-improvement.save-failed": "Settings → Self-improvement could not save a setting.",
|
|
2362
|
+
"self-improvement.run-failed": "Settings → Self-improvement could not start a run.",
|
|
2279
2363
|
"config.save-failed": "Global settings could not be saved.",
|
|
2280
2364
|
"config.load-failed": "The settings page could not load the config.",
|
|
2281
2365
|
"config.reload-failed": "Re-reading the workspace config after a save failed.",
|
|
@@ -2445,6 +2529,7 @@ var LOG_VOCABULARY = {
|
|
|
2445
2529
|
...HOST_LOG_AREAS,
|
|
2446
2530
|
...TRANSCRIPT_ARTIFACTS_LOG_AREAS,
|
|
2447
2531
|
...SCHEDULER_LOG_AREAS,
|
|
2532
|
+
...SELF_IMPROVEMENT_LOG_AREAS,
|
|
2448
2533
|
...WEB_APP_LOG_AREAS,
|
|
2449
2534
|
...WEB_BUILD_PIPELINE_LOG_AREAS,
|
|
2450
2535
|
...WEB_CHAT_LOG_AREAS,
|
|
@@ -2566,6 +2651,14 @@ var SIGNALS = new Set([
|
|
|
2566
2651
|
"SIGXFSZ"
|
|
2567
2652
|
]);
|
|
2568
2653
|
var PROVIDERS = new Set(["claude", "codex", "opencode", "cursor", "grok", "acp", "pi"]);
|
|
2654
|
+
var BRIDGE_LISTENER_REASONS = new Set([
|
|
2655
|
+
"different-socket",
|
|
2656
|
+
"several-sockets",
|
|
2657
|
+
"pending",
|
|
2658
|
+
"scan-incomplete",
|
|
2659
|
+
"no-listener",
|
|
2660
|
+
"launch-exited"
|
|
2661
|
+
]);
|
|
2569
2662
|
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
2570
2663
|
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
2571
2664
|
var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
|
|
@@ -11600,6 +11693,59 @@ var PROTECTED_SEGMENTS = new Set([
|
|
|
11600
11693
|
".mcp.json"
|
|
11601
11694
|
]);
|
|
11602
11695
|
|
|
11696
|
+
// ../protocol/src/agent-mail.ts
|
|
11697
|
+
var AGENT_MAIL_MAX_BODY_BYTES = 32 * 1024;
|
|
11698
|
+
var AGENT_MAIL_MAX_STORE_BYTES = 32 * 1024 * 1024;
|
|
11699
|
+
var AGENT_MAIL_DEFAULT_RETENTION_DAYS = 14;
|
|
11700
|
+
var AGENT_MAIL_MAX_ATTACHMENT_BYTES = 8 * 1024 * 1024;
|
|
11701
|
+
var AGENT_MAIL_MAX_TOTAL_ATTACHMENT_BYTES = 32 * 1024 * 1024;
|
|
11702
|
+
var AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET = 16;
|
|
11703
|
+
var AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT = 40;
|
|
11704
|
+
var ORKESTRATOR_MCP_SERVER_NAME = "orkestrator";
|
|
11705
|
+
var AGENT_MAIL_TOOL_NAMES = Object.freeze([
|
|
11706
|
+
"list_mailboxes",
|
|
11707
|
+
"send_message",
|
|
11708
|
+
"check_inbox",
|
|
11709
|
+
"read_message",
|
|
11710
|
+
"ack_message",
|
|
11711
|
+
"reply_message",
|
|
11712
|
+
"get_message_status"
|
|
11713
|
+
]);
|
|
11714
|
+
var DEFAULT_AGENT_MESSAGING_SETTINGS = Object.freeze({
|
|
11715
|
+
enabled: true,
|
|
11716
|
+
allowCrossProject: false,
|
|
11717
|
+
defaultInjectPolicy: "off",
|
|
11718
|
+
wakePeers: false,
|
|
11719
|
+
autonomousWakeBudget: AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET,
|
|
11720
|
+
hourlyWakeLimit: AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT,
|
|
11721
|
+
coordinatorStatusWakes: "settled",
|
|
11722
|
+
retentionDays: AGENT_MAIL_DEFAULT_RETENTION_DAYS,
|
|
11723
|
+
paused: false
|
|
11724
|
+
});
|
|
11725
|
+
function agentMailCapabilities(tabType, agent, locked = true) {
|
|
11726
|
+
if (tabType === "agent-native") {
|
|
11727
|
+
if (!locked || !agent)
|
|
11728
|
+
return { canPull: false, canSend: false, canInject: false };
|
|
11729
|
+
if (agent === "claude" || agent === "codex" || agent === "opencode" || agent === "pi" || agent === "cursor" || agent === "grok") {
|
|
11730
|
+
return { canPull: true, canSend: true, canInject: true };
|
|
11731
|
+
}
|
|
11732
|
+
return { canPull: false, canSend: false, canInject: false };
|
|
11733
|
+
}
|
|
11734
|
+
if (tabType === "claude-tmux")
|
|
11735
|
+
return { canPull: true, canSend: true, canInject: true };
|
|
11736
|
+
if (tabType === "pipeline-worker") {
|
|
11737
|
+
return agent ? { canPull: true, canSend: true, canInject: true } : { canPull: false, canSend: false, canInject: false };
|
|
11738
|
+
}
|
|
11739
|
+
if (["claude", "codex", "opencode"].includes(tabType)) {
|
|
11740
|
+
return { canPull: true, canSend: true, canInject: false };
|
|
11741
|
+
}
|
|
11742
|
+
if (["cursor", "grok", "pi"].includes(tabType)) {
|
|
11743
|
+
return { canPull: false, canSend: false, canInject: false };
|
|
11744
|
+
}
|
|
11745
|
+
return { canPull: false, canSend: false, canInject: false };
|
|
11746
|
+
}
|
|
11747
|
+
var NATIVE_AGENT_MAIL_CAPABILITIES = Object.freeze(Object.fromEntries(AGENT_PLATFORMS.map((agent) => [agent, agentMailCapabilities("agent-native", agent)])));
|
|
11748
|
+
|
|
11603
11749
|
// ../protocol/src/review-evidence-frames.ts
|
|
11604
11750
|
var COORDINATOR_WORKER_NO_PR_INSTRUCTION = "Do not open a pull request, even if the prompt below asks you to: commit your work and report back. Orkestrator raises the pull request from a PR tab once the work has been reviewed.";
|
|
11605
11751
|
var COORDINATOR_WORKER_VALIDATION_INSTRUCTION = "Run the focused checks your changes need and report them. When the prompt below says review follows, leave the required full test suite, typecheck, lint and build passes to review preparation unless it explicitly asks you to run them. When no review follows or the prompt does not say, follow the repository's validation requirements before handoff. Report any required full validation you did not run; do not assume a later review will run it.";
|
|
@@ -12170,6 +12316,11 @@ var BACKGROUND_CAPABLE_SHELL_TOOL_NAMES = new Set([
|
|
|
12170
12316
|
"run_terminal_cmd",
|
|
12171
12317
|
"execute_command"
|
|
12172
12318
|
]);
|
|
12319
|
+
var NATIVE_AGENT_BRANCH_LIST_LIMITS = Object.freeze({
|
|
12320
|
+
branches: 50,
|
|
12321
|
+
promptChars: 280,
|
|
12322
|
+
entryIdChars: 512
|
|
12323
|
+
});
|
|
12173
12324
|
var NATIVE_AGENT_COMMAND_EXECUTION_KINDS = [
|
|
12174
12325
|
"provider-prompt",
|
|
12175
12326
|
"provider-command",
|
|
@@ -12319,59 +12470,6 @@ function startParentWatchdog(options) {
|
|
|
12319
12470
|
return stop;
|
|
12320
12471
|
}
|
|
12321
12472
|
|
|
12322
|
-
// ../protocol/src/agent-mail.ts
|
|
12323
|
-
var AGENT_MAIL_MAX_BODY_BYTES = 32 * 1024;
|
|
12324
|
-
var AGENT_MAIL_MAX_STORE_BYTES = 32 * 1024 * 1024;
|
|
12325
|
-
var AGENT_MAIL_DEFAULT_RETENTION_DAYS = 14;
|
|
12326
|
-
var AGENT_MAIL_MAX_ATTACHMENT_BYTES = 8 * 1024 * 1024;
|
|
12327
|
-
var AGENT_MAIL_MAX_TOTAL_ATTACHMENT_BYTES = 32 * 1024 * 1024;
|
|
12328
|
-
var AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET = 16;
|
|
12329
|
-
var AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT = 40;
|
|
12330
|
-
var ORKESTRATOR_MCP_SERVER_NAME = "orkestrator";
|
|
12331
|
-
var AGENT_MAIL_TOOL_NAMES = Object.freeze([
|
|
12332
|
-
"list_mailboxes",
|
|
12333
|
-
"send_message",
|
|
12334
|
-
"check_inbox",
|
|
12335
|
-
"read_message",
|
|
12336
|
-
"ack_message",
|
|
12337
|
-
"reply_message",
|
|
12338
|
-
"get_message_status"
|
|
12339
|
-
]);
|
|
12340
|
-
var DEFAULT_AGENT_MESSAGING_SETTINGS = Object.freeze({
|
|
12341
|
-
enabled: true,
|
|
12342
|
-
allowCrossProject: false,
|
|
12343
|
-
defaultInjectPolicy: "off",
|
|
12344
|
-
wakePeers: false,
|
|
12345
|
-
autonomousWakeBudget: AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET,
|
|
12346
|
-
hourlyWakeLimit: AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT,
|
|
12347
|
-
coordinatorStatusWakes: "settled",
|
|
12348
|
-
retentionDays: AGENT_MAIL_DEFAULT_RETENTION_DAYS,
|
|
12349
|
-
paused: false
|
|
12350
|
-
});
|
|
12351
|
-
function agentMailCapabilities(tabType, agent, locked = true) {
|
|
12352
|
-
if (tabType === "agent-native") {
|
|
12353
|
-
if (!locked || !agent)
|
|
12354
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12355
|
-
if (agent === "claude" || agent === "codex" || agent === "opencode" || agent === "pi" || agent === "cursor" || agent === "grok") {
|
|
12356
|
-
return { canPull: true, canSend: true, canInject: true };
|
|
12357
|
-
}
|
|
12358
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12359
|
-
}
|
|
12360
|
-
if (tabType === "claude-tmux")
|
|
12361
|
-
return { canPull: true, canSend: true, canInject: true };
|
|
12362
|
-
if (tabType === "pipeline-worker") {
|
|
12363
|
-
return agent ? { canPull: true, canSend: true, canInject: true } : { canPull: false, canSend: false, canInject: false };
|
|
12364
|
-
}
|
|
12365
|
-
if (["claude", "codex", "opencode"].includes(tabType)) {
|
|
12366
|
-
return { canPull: true, canSend: true, canInject: false };
|
|
12367
|
-
}
|
|
12368
|
-
if (["cursor", "grok", "pi"].includes(tabType)) {
|
|
12369
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12370
|
-
}
|
|
12371
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12372
|
-
}
|
|
12373
|
-
var NATIVE_AGENT_MAIL_CAPABILITIES = Object.freeze(Object.fromEntries(AGENT_PLATFORMS.map((agent) => [agent, agentMailCapabilities("agent-native", agent)])));
|
|
12374
|
-
|
|
12375
12473
|
// ../protocol/src/transcript-artifacts.ts
|
|
12376
12474
|
var ARTIFACT_TOOL_NAMES = Object.freeze([
|
|
12377
12475
|
"create_artifact",
|
|
@@ -19847,7 +19945,8 @@ var SHARED_RULES = [
|
|
|
19847
19945
|
["auth-failed", /terminal prompts disabled|invalid username or password|bad credentials/i],
|
|
19848
19946
|
["auth-failed", /permission denied \(|permission to \S+ denied|host key verification failed/i],
|
|
19849
19947
|
["auth-failed", /gh auth login|not logged in|unauthorized|http 401|returned error: 40[13]/i],
|
|
19850
|
-
["network-failed", /could not resolve host|connection
|
|
19948
|
+
["network-failed", /could not resolve host|(?:connection|operation) timed out/i],
|
|
19949
|
+
["network-failed", /connection (?:refused|reset)/i],
|
|
19851
19950
|
["network-failed", /network is unreachable|no route to host|temporary failure in name/i],
|
|
19852
19951
|
["network-failed", /early eof|failed to connect|remote end hung up/i],
|
|
19853
19952
|
["network-failed", /unable to access ['"]?https?:\/\//i],
|
|
@@ -24991,6 +25090,11 @@ async function forkAcpSession(state, upToMessageId, signal) {
|
|
|
24991
25090
|
}
|
|
24992
25091
|
}
|
|
24993
25092
|
|
|
25093
|
+
// ../protocol/src/terminal-text.ts
|
|
25094
|
+
var MAX_STRING_LENGTH = 8 * 1024;
|
|
25095
|
+
var BUDGET_FLOOR = 4 * 1024;
|
|
25096
|
+
var MAX_MOVE = 4 * 1024;
|
|
25097
|
+
|
|
24994
25098
|
// ../protocol/src/human-prompts.ts
|
|
24995
25099
|
var HUMAN_PROMPT_SCAN_BYTES = 16 * 1024;
|
|
24996
25100
|
var HUMAN_PROMPT_KINDS = new Set([
|
|
@@ -25443,6 +25547,27 @@ async function readWorkspaceImage(filePath, workspaceRoot) {
|
|
|
25443
25547
|
}
|
|
25444
25548
|
}
|
|
25445
25549
|
|
|
25550
|
+
// ../protocol/src/contract/ipc-error.ts
|
|
25551
|
+
var REGISTERED_ERROR_CODES = {
|
|
25552
|
+
"unknown-command": { domain: "text", command: "text" },
|
|
25553
|
+
"unsupported-version": { domain: "text", range: "range", command: "text" },
|
|
25554
|
+
"unsupported-field": { domain: "text", field: "text", command: "text" },
|
|
25555
|
+
"kanban-request-id-conflict": { record: "text" },
|
|
25556
|
+
"native-job-receipt-capacity": { limit: "count" },
|
|
25557
|
+
"native-agent-provider-session-missing": {},
|
|
25558
|
+
"container-lifecycle": { reason: "text" },
|
|
25559
|
+
"mcp-management": { reason: "text" },
|
|
25560
|
+
"pane-layout-revision-conflict": {},
|
|
25561
|
+
"design-revision-conflict": {},
|
|
25562
|
+
"prompt-queue-message-conflict": {},
|
|
25563
|
+
"unknown-node": {},
|
|
25564
|
+
"node-admin-refused": {},
|
|
25565
|
+
"node-scope-closed": {},
|
|
25566
|
+
"node-unavailable": {}
|
|
25567
|
+
};
|
|
25568
|
+
var REGISTERED_ERROR_CODE_LIST = Object.keys(REGISTERED_ERROR_CODES);
|
|
25569
|
+
var MAX_COUNT = 2 ** 31 - 1;
|
|
25570
|
+
|
|
25446
25571
|
// ../protocol/src/mcp-management.ts
|
|
25447
25572
|
var MCP_CONFIG_REPORTING_VERSION = 1;
|
|
25448
25573
|
var MCP_MANAGEMENT_LIMITS = {
|
|
@@ -26019,26 +26144,53 @@ function acpTranscriptSource(state, generation) {
|
|
|
26019
26144
|
};
|
|
26020
26145
|
}
|
|
26021
26146
|
|
|
26147
|
+
// ../protocol/src/node/bounded-wait.ts
|
|
26148
|
+
function boundedWait(work, timeoutMs, options = {}) {
|
|
26149
|
+
return new Promise((resolve, reject) => {
|
|
26150
|
+
let timedOut = false;
|
|
26151
|
+
const timer = setTimeout(() => {
|
|
26152
|
+
timedOut = true;
|
|
26153
|
+
resolve({ settled: false });
|
|
26154
|
+
}, timeoutMs);
|
|
26155
|
+
unrefTimer(timer);
|
|
26156
|
+
Promise.resolve(work).then((value) => {
|
|
26157
|
+
if (!timedOut) {
|
|
26158
|
+
clearTimeout(timer);
|
|
26159
|
+
resolve({ settled: true, value });
|
|
26160
|
+
return;
|
|
26161
|
+
}
|
|
26162
|
+
disposeLate(options.onLate, value);
|
|
26163
|
+
}, (error) => {
|
|
26164
|
+
if (!timedOut) {
|
|
26165
|
+
clearTimeout(timer);
|
|
26166
|
+
reject(error);
|
|
26167
|
+
}
|
|
26168
|
+
});
|
|
26169
|
+
});
|
|
26170
|
+
}
|
|
26171
|
+
function unrefTimer(timer) {
|
|
26172
|
+
const handle = timer;
|
|
26173
|
+
if (typeof handle === "object" && typeof handle.unref === "function")
|
|
26174
|
+
handle.unref();
|
|
26175
|
+
}
|
|
26176
|
+
function disposeLate(onLate, value) {
|
|
26177
|
+
if (!onLate)
|
|
26178
|
+
return;
|
|
26179
|
+
try {
|
|
26180
|
+
const disposal = onLate(value);
|
|
26181
|
+
if (disposal && typeof disposal.then === "function") {
|
|
26182
|
+
Promise.resolve(disposal).catch(() => {
|
|
26183
|
+
return;
|
|
26184
|
+
});
|
|
26185
|
+
}
|
|
26186
|
+
} catch {}
|
|
26187
|
+
}
|
|
26188
|
+
|
|
26022
26189
|
// ../../bridges/acp-bridge/src/acp-session-close.ts
|
|
26023
26190
|
var closesInFlight = new Map;
|
|
26024
26191
|
function exited(process2) {
|
|
26025
26192
|
return process2.child.exitCode !== null || process2.child.signalCode !== null;
|
|
26026
26193
|
}
|
|
26027
|
-
async function within(promise, timeoutMs) {
|
|
26028
|
-
let timer;
|
|
26029
|
-
try {
|
|
26030
|
-
return await Promise.race([
|
|
26031
|
-
promise,
|
|
26032
|
-
new Promise((resolve) => {
|
|
26033
|
-
timer = setTimeout(() => resolve("timeout"), timeoutMs);
|
|
26034
|
-
timer.unref?.();
|
|
26035
|
-
})
|
|
26036
|
-
]);
|
|
26037
|
-
} finally {
|
|
26038
|
-
if (timer)
|
|
26039
|
-
clearTimeout(timer);
|
|
26040
|
-
}
|
|
26041
|
-
}
|
|
26042
26194
|
function denyPendingRequests(state) {
|
|
26043
26195
|
for (const approval of Array.from(state.approvals.values()))
|
|
26044
26196
|
approval.respond();
|
|
@@ -26069,15 +26221,15 @@ async function runClose(state) {
|
|
|
26069
26221
|
}
|
|
26070
26222
|
const children = new Set;
|
|
26071
26223
|
if (state.attaching) {
|
|
26072
|
-
const late = await
|
|
26073
|
-
if (late
|
|
26224
|
+
const late = await boundedWait(state.attaching.then((child) => child, () => null), CLOSE_ATTACH_WAIT_MS);
|
|
26225
|
+
if (!late.settled)
|
|
26074
26226
|
return "pending";
|
|
26075
|
-
if (late)
|
|
26076
|
-
children.add(late);
|
|
26227
|
+
if (late.value)
|
|
26228
|
+
children.add(late.value);
|
|
26077
26229
|
}
|
|
26078
26230
|
const settlement = state.status === "running" ? state.turnSettlement : undefined;
|
|
26079
26231
|
if (settlement)
|
|
26080
|
-
await
|
|
26232
|
+
await boundedWait(settlement, CLOSE_CANCEL_WAIT_MS);
|
|
26081
26233
|
const live = state.child;
|
|
26082
26234
|
if (live?.sessionCloseSupported && !exited(live)) {
|
|
26083
26235
|
await live.request("session/close", { sessionId: state.acpSessionId }, CLOSE_SESSION_WAIT_MS).catch(() => {
|