orkestrator 2.37.3-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 +356 -16
- package/dist/main.js +111519 -102007
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +198 -75
- package/resources/claude-bridge/dist/index.js +364 -167
- package/resources/codex-bridge/dist/index.js +239 -88
- package/resources/cursor-bridge/dist/index.js +1344 -395
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +351 -131
- 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.",
|
|
@@ -1048,6 +1058,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1048
1058
|
"agent-tools.unavailable": "OpenCode agent tools remain unavailable for a session.",
|
|
1049
1059
|
"coordinator-servers.unavailable": "OpenCode coordinator research servers are unavailable.",
|
|
1050
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.",
|
|
1051
1062
|
"worker-limit.reached": "The bounded request workers are full, so the stream restarts and a snapshot reconciles.",
|
|
1052
1063
|
"request.failed": "Handling a request event failed, so the stream restarts. Error class only.",
|
|
1053
1064
|
"credential-plugin.skipped": "A host OpenCode server started without the credential plugin, so its tools inherit its password; `reason` says why.",
|
|
@@ -1070,6 +1081,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1070
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.",
|
|
1071
1082
|
"container-server.launched": "The start script of a container environment's 2.x server was run. Container port only.",
|
|
1072
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.",
|
|
1073
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.",
|
|
1074
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.",
|
|
1075
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.",
|
|
@@ -1304,6 +1316,7 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
1304
1316
|
"cleanup.skipped": "Environment tmux cleanup was skipped because tmux could not be reached and nothing required it.",
|
|
1305
1317
|
"cleanup.environments-load-failed": "Environments could not be loaded during tmux cleanup, so it stays incomplete.",
|
|
1306
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.",
|
|
1307
1320
|
"hooks.uninstall-failed": "Workspace hooks could not be uninstalled.",
|
|
1308
1321
|
"hooks.git-exclude-failed": "The git exclude for Claude's local settings could not be set.",
|
|
1309
1322
|
"naming.prepare-failed": "First-prompt naming could not be prepared; the prompt still goes ahead.",
|
|
@@ -1433,6 +1446,7 @@ var STORAGE_LOG_AREAS = defineLogAreas({
|
|
|
1433
1446
|
"config.restrict-mode-failed": "A config file holding provider secrets could not be set to owner-only; the backend carries on.",
|
|
1434
1447
|
"legacy-json.moved": "JSON store files written after the SQLite migration were archived, not imported.",
|
|
1435
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.",
|
|
1436
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.",
|
|
1437
1451
|
"lease.heartbeat-failed": "A held lease's heartbeat failed, which shortens the lease; the next one retries.",
|
|
1438
1452
|
"scrub.vacuum-failed": "Deleted-content page reclamation failed; the checkpoint is attempted independently.",
|
|
@@ -1482,6 +1496,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
1482
1496
|
"transcripts.maintenance-failed": "Migrating or sweeping stage transcripts failed; the next start retries.",
|
|
1483
1497
|
"restore.skipped": "A pipeline could not be restored at startup and was skipped.",
|
|
1484
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.",
|
|
1485
1500
|
"workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
|
|
1486
1501
|
"rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
|
|
1487
1502
|
"kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
|
|
@@ -1523,6 +1538,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
1523
1538
|
"dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
|
|
1524
1539
|
"turn.finalize-failed": "Finalizing a turn failed.",
|
|
1525
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.",
|
|
1526
1543
|
"evidence.pull-failed": "Pulling change evidence from a bridge failed; a later pull retries.",
|
|
1527
1544
|
"measurement.failed": "Recomputing a tool's measurement failed."
|
|
1528
1545
|
}
|
|
@@ -1591,6 +1608,7 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
1591
1608
|
"node-release.no-coordinator": "Work closed on a released node belonged to a coordinator that no longer exists, so nobody was told.",
|
|
1592
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.",
|
|
1593
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.",
|
|
1594
1612
|
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
1595
1613
|
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
1596
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`).",
|
|
@@ -1643,7 +1661,8 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
1643
1661
|
"monitor.task-store-failed": "A pull request could not be recorded on its Kanban task.",
|
|
1644
1662
|
"monitor.merged-tickets-closed": "The startup sweep moved Kanban tickets whose pull request had merged to done (`count`).",
|
|
1645
1663
|
"monitor.merged-tickets-close-failed": "The startup sweep closing Kanban tickets whose pull request merged failed; the next backend start retries.",
|
|
1646
|
-
"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`)."
|
|
1647
1666
|
}
|
|
1648
1667
|
}
|
|
1649
1668
|
});
|
|
@@ -1675,6 +1694,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
1675
1694
|
"kept-note.failed": "Recording why a limit stop found no account to move to failed; the stop stands.",
|
|
1676
1695
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
1677
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.",
|
|
1678
1699
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
1679
1700
|
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
1680
1701
|
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
@@ -1692,6 +1713,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1692
1713
|
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
1693
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.",
|
|
1694
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.",
|
|
1695
1717
|
"git-mirror.seeded": "A project's Git mirror was built from its host checkout and only what the remote added to it.",
|
|
1696
1718
|
"git-mirror.seed-skipped": "A project's host checkout could not seed its Git mirror, so the build downloads everything.",
|
|
1697
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.",
|
|
@@ -1705,6 +1727,9 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1705
1727
|
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
1706
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.",
|
|
1707
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.",
|
|
1708
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.",
|
|
1709
1734
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
1710
1735
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
@@ -1739,6 +1764,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1739
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.",
|
|
1740
1765
|
essential: true,
|
|
1741
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" }
|
|
1742
1778
|
}
|
|
1743
1779
|
}
|
|
1744
1780
|
},
|
|
@@ -1793,7 +1829,8 @@ var MCP_LOG_AREAS = defineLogAreas({
|
|
|
1793
1829
|
"listener.port-free": "The Control MCP's fixed port is free again, so it is listening.",
|
|
1794
1830
|
"state-listener.failed": "A Control MCP state listener threw; the others still run.",
|
|
1795
1831
|
"delegation.remote-open-failed": "A delegation could not be opened on another node.",
|
|
1796
|
-
"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."
|
|
1797
1834
|
}
|
|
1798
1835
|
},
|
|
1799
1836
|
"mcp-management": {
|
|
@@ -1878,6 +1915,7 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
1878
1915
|
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
1879
1916
|
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
1880
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.",
|
|
1881
1919
|
"fleet-update.requested": "The update policy asked an older leaf to install the command node's version.",
|
|
1882
1920
|
"fleet-update.failed": "The update policy could not read or update a leaf; it retries later.",
|
|
1883
1921
|
"fleet-update.policy-load-failed": "The stored update policy could not be read; it is off."
|
|
@@ -1969,6 +2007,20 @@ var SCHEDULER_LOG_AREAS = defineLogAreas({
|
|
|
1969
2007
|
}
|
|
1970
2008
|
});
|
|
1971
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
|
+
|
|
1972
2024
|
// ../protocol/src/log-vocabulary/web-app.ts
|
|
1973
2025
|
var WEB_APP_LOG_AREAS = defineLogAreas({
|
|
1974
2026
|
"web.app": {
|
|
@@ -2304,6 +2356,10 @@ var WEB_SETTINGS_LOG_AREAS = defineLogAreas({
|
|
|
2304
2356
|
"web.settings": {
|
|
2305
2357
|
description: "The settings screens.",
|
|
2306
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.",
|
|
2307
2363
|
"config.save-failed": "Global settings could not be saved.",
|
|
2308
2364
|
"config.load-failed": "The settings page could not load the config.",
|
|
2309
2365
|
"config.reload-failed": "Re-reading the workspace config after a save failed.",
|
|
@@ -2473,6 +2529,7 @@ var LOG_VOCABULARY = {
|
|
|
2473
2529
|
...HOST_LOG_AREAS,
|
|
2474
2530
|
...TRANSCRIPT_ARTIFACTS_LOG_AREAS,
|
|
2475
2531
|
...SCHEDULER_LOG_AREAS,
|
|
2532
|
+
...SELF_IMPROVEMENT_LOG_AREAS,
|
|
2476
2533
|
...WEB_APP_LOG_AREAS,
|
|
2477
2534
|
...WEB_BUILD_PIPELINE_LOG_AREAS,
|
|
2478
2535
|
...WEB_CHAT_LOG_AREAS,
|
|
@@ -2594,6 +2651,14 @@ var SIGNALS = new Set([
|
|
|
2594
2651
|
"SIGXFSZ"
|
|
2595
2652
|
]);
|
|
2596
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
|
+
]);
|
|
2597
2662
|
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
2598
2663
|
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
2599
2664
|
var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
|
|
@@ -11628,6 +11693,59 @@ var PROTECTED_SEGMENTS = new Set([
|
|
|
11628
11693
|
".mcp.json"
|
|
11629
11694
|
]);
|
|
11630
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
|
+
|
|
11631
11749
|
// ../protocol/src/review-evidence-frames.ts
|
|
11632
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.";
|
|
11633
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.";
|
|
@@ -12198,6 +12316,11 @@ var BACKGROUND_CAPABLE_SHELL_TOOL_NAMES = new Set([
|
|
|
12198
12316
|
"run_terminal_cmd",
|
|
12199
12317
|
"execute_command"
|
|
12200
12318
|
]);
|
|
12319
|
+
var NATIVE_AGENT_BRANCH_LIST_LIMITS = Object.freeze({
|
|
12320
|
+
branches: 50,
|
|
12321
|
+
promptChars: 280,
|
|
12322
|
+
entryIdChars: 512
|
|
12323
|
+
});
|
|
12201
12324
|
var NATIVE_AGENT_COMMAND_EXECUTION_KINDS = [
|
|
12202
12325
|
"provider-prompt",
|
|
12203
12326
|
"provider-command",
|
|
@@ -12347,59 +12470,6 @@ function startParentWatchdog(options) {
|
|
|
12347
12470
|
return stop;
|
|
12348
12471
|
}
|
|
12349
12472
|
|
|
12350
|
-
// ../protocol/src/agent-mail.ts
|
|
12351
|
-
var AGENT_MAIL_MAX_BODY_BYTES = 32 * 1024;
|
|
12352
|
-
var AGENT_MAIL_MAX_STORE_BYTES = 32 * 1024 * 1024;
|
|
12353
|
-
var AGENT_MAIL_DEFAULT_RETENTION_DAYS = 14;
|
|
12354
|
-
var AGENT_MAIL_MAX_ATTACHMENT_BYTES = 8 * 1024 * 1024;
|
|
12355
|
-
var AGENT_MAIL_MAX_TOTAL_ATTACHMENT_BYTES = 32 * 1024 * 1024;
|
|
12356
|
-
var AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET = 16;
|
|
12357
|
-
var AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT = 40;
|
|
12358
|
-
var ORKESTRATOR_MCP_SERVER_NAME = "orkestrator";
|
|
12359
|
-
var AGENT_MAIL_TOOL_NAMES = Object.freeze([
|
|
12360
|
-
"list_mailboxes",
|
|
12361
|
-
"send_message",
|
|
12362
|
-
"check_inbox",
|
|
12363
|
-
"read_message",
|
|
12364
|
-
"ack_message",
|
|
12365
|
-
"reply_message",
|
|
12366
|
-
"get_message_status"
|
|
12367
|
-
]);
|
|
12368
|
-
var DEFAULT_AGENT_MESSAGING_SETTINGS = Object.freeze({
|
|
12369
|
-
enabled: true,
|
|
12370
|
-
allowCrossProject: false,
|
|
12371
|
-
defaultInjectPolicy: "off",
|
|
12372
|
-
wakePeers: false,
|
|
12373
|
-
autonomousWakeBudget: AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET,
|
|
12374
|
-
hourlyWakeLimit: AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT,
|
|
12375
|
-
coordinatorStatusWakes: "settled",
|
|
12376
|
-
retentionDays: AGENT_MAIL_DEFAULT_RETENTION_DAYS,
|
|
12377
|
-
paused: false
|
|
12378
|
-
});
|
|
12379
|
-
function agentMailCapabilities(tabType, agent, locked = true) {
|
|
12380
|
-
if (tabType === "agent-native") {
|
|
12381
|
-
if (!locked || !agent)
|
|
12382
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12383
|
-
if (agent === "claude" || agent === "codex" || agent === "opencode" || agent === "pi" || agent === "cursor" || agent === "grok") {
|
|
12384
|
-
return { canPull: true, canSend: true, canInject: true };
|
|
12385
|
-
}
|
|
12386
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12387
|
-
}
|
|
12388
|
-
if (tabType === "claude-tmux")
|
|
12389
|
-
return { canPull: true, canSend: true, canInject: true };
|
|
12390
|
-
if (tabType === "pipeline-worker") {
|
|
12391
|
-
return agent ? { canPull: true, canSend: true, canInject: true } : { canPull: false, canSend: false, canInject: false };
|
|
12392
|
-
}
|
|
12393
|
-
if (["claude", "codex", "opencode"].includes(tabType)) {
|
|
12394
|
-
return { canPull: true, canSend: true, canInject: false };
|
|
12395
|
-
}
|
|
12396
|
-
if (["cursor", "grok", "pi"].includes(tabType)) {
|
|
12397
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12398
|
-
}
|
|
12399
|
-
return { canPull: false, canSend: false, canInject: false };
|
|
12400
|
-
}
|
|
12401
|
-
var NATIVE_AGENT_MAIL_CAPABILITIES = Object.freeze(Object.fromEntries(AGENT_PLATFORMS.map((agent) => [agent, agentMailCapabilities("agent-native", agent)])));
|
|
12402
|
-
|
|
12403
12473
|
// ../protocol/src/transcript-artifacts.ts
|
|
12404
12474
|
var ARTIFACT_TOOL_NAMES = Object.freeze([
|
|
12405
12475
|
"create_artifact",
|
|
@@ -25020,6 +25090,11 @@ async function forkAcpSession(state, upToMessageId, signal) {
|
|
|
25020
25090
|
}
|
|
25021
25091
|
}
|
|
25022
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
|
+
|
|
25023
25098
|
// ../protocol/src/human-prompts.ts
|
|
25024
25099
|
var HUMAN_PROMPT_SCAN_BYTES = 16 * 1024;
|
|
25025
25100
|
var HUMAN_PROMPT_KINDS = new Set([
|
|
@@ -25472,6 +25547,27 @@ async function readWorkspaceImage(filePath, workspaceRoot) {
|
|
|
25472
25547
|
}
|
|
25473
25548
|
}
|
|
25474
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
|
+
|
|
25475
25571
|
// ../protocol/src/mcp-management.ts
|
|
25476
25572
|
var MCP_CONFIG_REPORTING_VERSION = 1;
|
|
25477
25573
|
var MCP_MANAGEMENT_LIMITS = {
|
|
@@ -26048,26 +26144,53 @@ function acpTranscriptSource(state, generation) {
|
|
|
26048
26144
|
};
|
|
26049
26145
|
}
|
|
26050
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
|
+
|
|
26051
26189
|
// ../../bridges/acp-bridge/src/acp-session-close.ts
|
|
26052
26190
|
var closesInFlight = new Map;
|
|
26053
26191
|
function exited(process2) {
|
|
26054
26192
|
return process2.child.exitCode !== null || process2.child.signalCode !== null;
|
|
26055
26193
|
}
|
|
26056
|
-
async function within(promise, timeoutMs) {
|
|
26057
|
-
let timer;
|
|
26058
|
-
try {
|
|
26059
|
-
return await Promise.race([
|
|
26060
|
-
promise,
|
|
26061
|
-
new Promise((resolve) => {
|
|
26062
|
-
timer = setTimeout(() => resolve("timeout"), timeoutMs);
|
|
26063
|
-
timer.unref?.();
|
|
26064
|
-
})
|
|
26065
|
-
]);
|
|
26066
|
-
} finally {
|
|
26067
|
-
if (timer)
|
|
26068
|
-
clearTimeout(timer);
|
|
26069
|
-
}
|
|
26070
|
-
}
|
|
26071
26194
|
function denyPendingRequests(state) {
|
|
26072
26195
|
for (const approval of Array.from(state.approvals.values()))
|
|
26073
26196
|
approval.respond();
|
|
@@ -26098,15 +26221,15 @@ async function runClose(state) {
|
|
|
26098
26221
|
}
|
|
26099
26222
|
const children = new Set;
|
|
26100
26223
|
if (state.attaching) {
|
|
26101
|
-
const late = await
|
|
26102
|
-
if (late
|
|
26224
|
+
const late = await boundedWait(state.attaching.then((child) => child, () => null), CLOSE_ATTACH_WAIT_MS);
|
|
26225
|
+
if (!late.settled)
|
|
26103
26226
|
return "pending";
|
|
26104
|
-
if (late)
|
|
26105
|
-
children.add(late);
|
|
26227
|
+
if (late.value)
|
|
26228
|
+
children.add(late.value);
|
|
26106
26229
|
}
|
|
26107
26230
|
const settlement = state.status === "running" ? state.turnSettlement : undefined;
|
|
26108
26231
|
if (settlement)
|
|
26109
|
-
await
|
|
26232
|
+
await boundedWait(settlement, CLOSE_CANCEL_WAIT_MS);
|
|
26110
26233
|
const live = state.child;
|
|
26111
26234
|
if (live?.sessionCloseSupported && !exited(live)) {
|
|
26112
26235
|
await live.request("session/close", { sessionId: state.acpSessionId }, CLOSE_SESSION_WAIT_MS).catch(() => {
|