orkestrator 2.37.5-beta → 2.38.0-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.
@@ -576,6 +576,19 @@ function installDesignRuntime(matchesShortcut, shortcuts, claimsShortcut, focuse
576
576
  }, "*");
577
577
  }
578
578
  });
579
+ let lastFocused = null;
580
+ document.addEventListener("focusin", (event) => {
581
+ if (event.target instanceof Element && event.target !== document.body)
582
+ lastFocused = event.target;
583
+ }, true);
584
+ window.addEventListener("focus", () => {
585
+ const active = document.activeElement;
586
+ if (active && active !== document.body && active !== document.documentElement)
587
+ return;
588
+ const target = lastFocused;
589
+ if (target?.isConnected && target instanceof HTMLElement)
590
+ target.focus({ preventScroll: true });
591
+ });
579
592
  document.addEventListener("click", (event) => event.preventDefault(), true);
580
593
  document.addEventListener("auxclick", (event) => event.preventDefault(), true);
581
594
  document.addEventListener("submit", (event) => event.preventDefault(), true);
@@ -765,6 +778,57 @@ var FRAME_CHANNEL_POLICY = {
765
778
  var ARTIFACT_FRAME_CHANNEL = "orkestrator-artifact";
766
779
  var UNSAFE_LINK_CHARACTERS = new RegExp("[\\u0000-\\u001f\\u007f-\\u009f\\u200e\\u200f\\u202a-\\u202e\\u2066-\\u2069]");
767
780
 
781
+ // ../protocol/src/static-html-document-text.ts
782
+ function staticHtmlDocumentText(input) {
783
+ const INLINE_TEXT = /^(?:a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|font|i|ins|kbd|label|mark|q|rp|rt|ruby|s|samp|small|span|strike|strong|sub|sup|time|tspan|tt|u|var|wbr)$/;
784
+ const max = Math.max(0, Math.floor(input.maxCharacters));
785
+ const doc = new DOMParser().parseFromString(input.html, "text/html");
786
+ let text = "";
787
+ let space = false;
788
+ let boundary = false;
789
+ const emit = (character) => {
790
+ if (text.length < max)
791
+ text += character;
792
+ };
793
+ const visit = (node) => {
794
+ if (node.nodeType === 3) {
795
+ const value = node.nodeValue ?? "";
796
+ for (let offset = 0;offset < value.length; offset++) {
797
+ const character = value[offset];
798
+ if (/\s/.test(character)) {
799
+ space = true;
800
+ continue;
801
+ }
802
+ if (text.length > 0) {
803
+ if (boundary)
804
+ emit(`
805
+ `);
806
+ else if (space)
807
+ emit(" ");
808
+ }
809
+ boundary = false;
810
+ space = false;
811
+ emit(character);
812
+ }
813
+ }
814
+ if (node.nodeType !== 1)
815
+ return;
816
+ const element = node;
817
+ if (/^(?:style|noscript)$/.test(element.localName) || element.hasAttribute("hidden"))
818
+ return;
819
+ const isBoundary = !INLINE_TEXT.test(element.localName);
820
+ if (isBoundary)
821
+ boundary = true;
822
+ for (const child of Array.from(element.childNodes))
823
+ visit(child);
824
+ if (isBoundary)
825
+ boundary = true;
826
+ };
827
+ if (doc.body)
828
+ visit(doc.body);
829
+ return text;
830
+ }
831
+
768
832
  // ../../apps/backend/src/core/transcript-artifacts/dependency-manifest.ts
769
833
  import { createHash } from "crypto";
770
834
  import { existsSync } from "fs";
@@ -1640,6 +1704,12 @@ async function runStatic(browser, job, result, remaining) {
1640
1704
  }));
1641
1705
  result.sanitizer = outcome.report.removed;
1642
1706
  result.elementCount = outcome.report.elementCount;
1707
+ try {
1708
+ result.searchText = await page.evaluate(staticHtmlDocumentText, {
1709
+ html: result.effectiveHtml,
1710
+ maxCharacters: STATIC_PRESENTATION_POLICY.maxSearchTextCharacters
1711
+ });
1712
+ } catch {}
1643
1713
  result.ok = true;
1644
1714
  }
1645
1715
  async function runInteractive(browser, job, pkg, result, remaining, emit) {
@@ -575,6 +575,19 @@ function installDesignRuntime(matchesShortcut, shortcuts, claimsShortcut, focuse
575
575
  }, "*");
576
576
  }
577
577
  });
578
+ let lastFocused = null;
579
+ document.addEventListener("focusin", (event) => {
580
+ if (event.target instanceof Element && event.target !== document.body)
581
+ lastFocused = event.target;
582
+ }, true);
583
+ window.addEventListener("focus", () => {
584
+ const active = document.activeElement;
585
+ if (active && active !== document.body && active !== document.documentElement)
586
+ return;
587
+ const target = lastFocused;
588
+ if (target?.isConnected && target instanceof HTMLElement)
589
+ target.focus({ preventScroll: true });
590
+ });
578
591
  document.addEventListener("click", (event) => event.preventDefault(), true);
579
592
  document.addEventListener("auxclick", (event) => event.preventDefault(), true);
580
593
  document.addEventListener("submit", (event) => event.preventDefault(), true);
@@ -764,6 +777,57 @@ var FRAME_CHANNEL_POLICY = {
764
777
  var ARTIFACT_FRAME_CHANNEL = "orkestrator-artifact";
765
778
  var UNSAFE_LINK_CHARACTERS = new RegExp("[\\u0000-\\u001f\\u007f-\\u009f\\u200e\\u200f\\u202a-\\u202e\\u2066-\\u2069]");
766
779
 
780
+ // packages/protocol/src/static-html-document-text.ts
781
+ function staticHtmlDocumentText(input) {
782
+ const INLINE_TEXT = /^(?:a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|font|i|ins|kbd|label|mark|q|rp|rt|ruby|s|samp|small|span|strike|strong|sub|sup|time|tspan|tt|u|var|wbr)$/;
783
+ const max = Math.max(0, Math.floor(input.maxCharacters));
784
+ const doc = new DOMParser().parseFromString(input.html, "text/html");
785
+ let text = "";
786
+ let space = false;
787
+ let boundary = false;
788
+ const emit = (character) => {
789
+ if (text.length < max)
790
+ text += character;
791
+ };
792
+ const visit = (node) => {
793
+ if (node.nodeType === 3) {
794
+ const value = node.nodeValue ?? "";
795
+ for (let offset = 0;offset < value.length; offset++) {
796
+ const character = value[offset];
797
+ if (/\s/.test(character)) {
798
+ space = true;
799
+ continue;
800
+ }
801
+ if (text.length > 0) {
802
+ if (boundary)
803
+ emit(`
804
+ `);
805
+ else if (space)
806
+ emit(" ");
807
+ }
808
+ boundary = false;
809
+ space = false;
810
+ emit(character);
811
+ }
812
+ }
813
+ if (node.nodeType !== 1)
814
+ return;
815
+ const element = node;
816
+ if (/^(?:style|noscript)$/.test(element.localName) || element.hasAttribute("hidden"))
817
+ return;
818
+ const isBoundary = !INLINE_TEXT.test(element.localName);
819
+ if (isBoundary)
820
+ boundary = true;
821
+ for (const child of Array.from(element.childNodes))
822
+ visit(child);
823
+ if (isBoundary)
824
+ boundary = true;
825
+ };
826
+ if (doc.body)
827
+ visit(doc.body);
828
+ return text;
829
+ }
830
+
767
831
  // apps/backend/src/core/transcript-artifacts/dependency-manifest.ts
768
832
  import { createHash } from "node:crypto";
769
833
  import { existsSync } from "node:fs";
@@ -1639,6 +1703,12 @@ async function runStatic(browser, job, result, remaining) {
1639
1703
  }));
1640
1704
  result.sanitizer = outcome.report.removed;
1641
1705
  result.elementCount = outcome.report.elementCount;
1706
+ try {
1707
+ result.searchText = await page.evaluate(staticHtmlDocumentText, {
1708
+ html: result.effectiveHtml,
1709
+ maxCharacters: STATIC_PRESENTATION_POLICY.maxSearchTextCharacters
1710
+ });
1711
+ } catch {}
1642
1712
  result.ok = true;
1643
1713
  }
1644
1714
  async function runInteractive(browser, job, pkg, result, remaining, emit) {
package/dist/client.js CHANGED
@@ -277,6 +277,7 @@ var init_bridge = __esm(() => {
277
277
  "question.answers-received": "A parked question received its answers.",
278
278
  "question.stale": "An answer arrived for a question no longer pending; the route answered stale.",
279
279
  "question.wait-failed": "A parked question ended without an answer: cancelled, timed out or closed.",
280
+ "read-only-connection.bedrock-withheld": "A read-only turn did not take the user settings' Bedrock connection: it names no bearer token or static key pair, so the CLI would resolve AWS profiles, whose credential_process runs outside the read-only boundary.",
280
281
  "runtime.ended-under-resumed-turn": "The Claude runtime ended while a resumed root turn was still open.",
281
282
  "server.listening": "The HTTP server is listening.",
282
283
  "server.starting": "The HTTP server is about to bind.",
@@ -935,28 +936,28 @@ var init_native_agent = __esm(() => {
935
936
  "credential-plugin.skipped": "A host OpenCode server started without the credential plugin, so its tools inherit its password; `reason` says why.",
936
937
  "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.",
937
938
  "host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only.",
938
- "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."
939
+ "login.export-failed": "A provider sign-in change was saved in the host OpenCode database, but the `auth.json` copy containers are handed could not be updated; the user is told to retry. Error class only."
939
940
  }
940
941
  },
941
942
  "native-agent.opencode2": {
942
- description: "The OpenCode 2.x provider: its event monitor, steering, routing, host and container servers.",
943
+ description: "The OpenCode provider (OpenCode 2.x): its event monitor, steering, session instructions, host and container servers.",
943
944
  events: {
944
945
  "events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
946
+ "monitor.silent": "The 2.x event stream sent a heartbeat and then went quiet, so it is replaced. `silenceMs` only.",
945
947
  "steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
946
948
  "provider.dispose-failed": "Disposing the 2.x provider of a replaced server failed. Error class only.",
949
+ "location.reload-unconfirmed": "After a 2.x location reload, the read that waits for the rebuilt location failed; catalogues are re-read anyway. Error class only.",
950
+ "credential.legacy-reconciled": "A host 2.x database from before OpenCode 1.x was retired was reconciled with auth.json once. Counts of credentials written and removed only.",
951
+ "credential.legacy-reconcile-failed": "The one-time reconcile of a host 2.x database with auth.json failed; the next host start retries it. Error class only.",
947
952
  "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.",
948
953
  "mcp.remove-failed": "Removing a closed session's Orkestrator MCP server from the 2.x server failed. Error class only.",
949
- "protocol.select-failed": "A workflow could not read the OpenCode line setting, so its new session takes 1.x. Error class only.",
950
- "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.",
951
954
  "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.",
952
- "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.",
953
955
  "container-server.launched": "The start script of a container environment's 2.x server was run. Container port only.",
954
956
  "container-server.ready": "A container environment's 2.x server this backend started answered `/api/info` as 2.x. Environment id only.",
955
957
  "container-server.cleanup-failed": "Cleanup after OpenCode startup failed; step names only, while the original startup error is preserved.",
956
958
  "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.",
957
- "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.",
958
- "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.",
959
- "credential.server-exit-unclean": "The private 2.x server started to copy a sign-in did not stop cleanly. Error class only.",
959
+ "instructions.unavailable": "The 2.x server refused Orkestrator's shared instructions entry for a session, which runs without them. Error class only.",
960
+ "host-database-server.exit-unclean": "A private 2.x server started on the host database (provider sign-in, the host model catalogue) did not stop cleanly. Error class only.",
960
961
  "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.",
961
962
  "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.",
962
963
  "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.",
@@ -1015,7 +1016,7 @@ var init_runtime = __esm(() => {
1015
1016
  description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
1016
1017
  events: {
1017
1018
  stalled: {
1018
- description: "A timer fired late, so every request in that window waited. In the backend the line also names what ran: `storageMs` and the `storage*` fields describe the slow SQLite calls in the window (`operation.slow` in `storage`), `commandsInFlight` and `commands` the commands running, `blockingCommand` one whose synchronous part overlapped it, and `jobsInWindow` and `jobs` the recurring jobs that ran around it. `cpuMs` is the CPU time the process used in the window: near `lagMs` its own thread was busy, far below it the thread waited.",
1019
+ description: "A timer fired late, so every request in that window waited. In the backend the line also names what ran: `storageMs` and the `storage*` fields describe the slow SQLite calls in the window (`operation.slow` in `storage`), `storageCalls` and `storageCallMs` every SQLite call that ended in it, slow or not (`storageMainCallMs` and `storageLedgerCallMs` per database), `commandsInFlight` and `commands` the commands running, `blockingCommand` one whose synchronous part overlapped it, and `jobsInWindow` and `jobs` the recurring jobs that ran around it. `cpuMs` is the CPU time the process used in the window: near `lagMs` its own thread was busy, far below it the thread waited.",
1019
1020
  essential: true,
1020
1021
  minLevel: "error",
1021
1022
  fields: {
@@ -1028,6 +1029,10 @@ var init_runtime = __esm(() => {
1028
1029
  storageTable: "label",
1029
1030
  storageLongestMs: "number",
1030
1031
  storageBusy: "boolean",
1032
+ storageCalls: "number",
1033
+ storageCallMs: "number",
1034
+ storageMainCallMs: "number",
1035
+ storageLedgerCallMs: "number",
1031
1036
  commandsInFlight: "number",
1032
1037
  blockingCommandMs: "number",
1033
1038
  jobsInWindow: "number"
@@ -1218,6 +1223,7 @@ var init_tmux = __esm(() => {
1218
1223
  "cli.fast-mode-unsupported": "The claude CLI lacks --settings, so it launches without fast mode.",
1219
1224
  "cli.effort-unsupported": "The claude CLI lacks --effort, so it launches without it.",
1220
1225
  "interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
1226
+ "interactive.lease-lapsed": "No client renewed an interactive terminal for 45 seconds, so its capture loop stopped.",
1221
1227
  "signal.arm-failed": "The Claude state signal could not be armed.",
1222
1228
  "signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
1223
1229
  "hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
@@ -1352,7 +1358,6 @@ var init_storage = __esm(() => {
1352
1358
  "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.",
1353
1359
  "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.",
1354
1360
  "lease.heartbeat-failed": "A held lease's heartbeat failed, which shortens the lease; the next one retries.",
1355
- "scrub.vacuum-failed": "Deleted-content page reclamation failed; the checkpoint is attempted independently.",
1356
1361
  "scrub.checkpoint-failed": "Deleted content could not be scrubbed from the WAL yet because the truncating checkpoint failed or a reader held an older snapshot; it is retried without waiting until it succeeds.",
1357
1362
  "upkeep.vacuum-failed": "Periodic page reclamation failed; the next upkeep pass retries.",
1358
1363
  "upkeep.finished": "One periodic upkeep pass ended: `optimizeMs` is how long refreshing planner statistics held the event loop, `released` and `left` the free pages returned and still free, `releaseMs` the release child's run and `stop` why it ended (`done`, `budget`, `busy`, `no-progress`, `slow-step`, `not-incremental`, `no-free-pages`, `failed`).",
@@ -1560,7 +1565,17 @@ var init_review = __esm(() => {
1560
1565
  "fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
1561
1566
  "fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
1562
1567
  "result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
1563
- "failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
1568
+ "failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so.",
1569
+ "consolidation.budget-exceeded": {
1570
+ description: "A panel's reports did not fit one consolidation turn even after optional prose was removed, so consolidation failed before dispatch. Counts only.",
1571
+ essential: true,
1572
+ fields: {
1573
+ reviewers: "number",
1574
+ sourceFindings: "number",
1575
+ compactBytes: "number",
1576
+ maxBytes: "number"
1577
+ }
1578
+ }
1564
1579
  }
1565
1580
  },
1566
1581
  "pull-request": {
@@ -1668,6 +1683,7 @@ var init_docker = __esm(() => {
1668
1683
  "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; that connection then sends nothing more.",
1669
1684
  "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.",
1670
1685
  "opencode.project-config-filtered": "Values were left out of a checkout's OpenCode configuration before a launched server reads it: 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.",
1686
+ "daemon.rootless-live-restore": "The Docker daemon is rootless and has live-restore on, which a rootless restart cannot honour: the new daemon reports every container exited while the old containers' processes keep running with no network, so turn live-restore off in its daemon.json. Written once per backend.",
1671
1687
  "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.",
1672
1688
  "lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
1673
1689
  "login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
@@ -1675,13 +1691,15 @@ var init_docker = __esm(() => {
1675
1691
  "login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
1676
1692
  "login-keeper.refresh-check-failed": "Checking the host Claude login after a refresh failed.",
1677
1693
  "login-watcher.pass-failed": "A container login file watcher pass failed; the next one retries.",
1694
+ "login-watcher.opencode-renewal-failed": "OAuth logins a host OpenCode server refreshed could not be copied into the `auth.json` containers are handed; the files are still delivered and the next pass retries. Error class only.",
1678
1695
  "lifecycle.record-failure-failed": "A failed container operation could not be recorded.",
1679
1696
  "lifecycle.reconcile-failed": "Reconciling one environment's container operation failed; the next pass retries.",
1680
1697
  "replacement.clear-terminals-failed": "Terminal sessions could not be cleared after a container replacement.",
1681
1698
  "recovery.clear-terminals-failed": "Terminal sessions could not be cleared after a recovery restore.",
1682
1699
  "github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container, so its firewall fetches them.",
1683
1700
  "availability.probe-failed": "Docker is not available; written when the diagnostic changes. Fixed-shape metadata only: messages can hold daemon endpoints.",
1684
- "start.port-collision-retrying": "An automatic host port collided on start, so it is retried once with fresh ports.",
1701
+ "start.port-collision-retrying": "An automatic host port collided on start, so it is retried (up to three times): with fresh ports, or, when `backendChosen`, on the same backend-chosen port after a pause.",
1702
+ "host-ports.owned-list-failed": "Docker could not list the host ports the backend chose for this owner's other containers, so a new rootless container's ports were chosen avoiding only this process's recent choices.",
1685
1703
  "writer-lease.lost": {
1686
1704
  description: "This backend lost the registry writer lease, for the fixed `reason` given. Schedules stop and container changes are refused until it restarts.",
1687
1705
  essential: true,
@@ -1803,7 +1821,8 @@ var init_design = __esm(() => {
1803
1821
  "startup.step-failed": "One part of design startup failed; `step` says which.",
1804
1822
  "legacy.retire-failed": "A migrated legacy design could not be retired.",
1805
1823
  "profiles.swept": "Design startup removed stale browser profiles.",
1806
- "session-link.record-failed": "A closing conversation could not be recorded on a design link."
1824
+ "session-link.record-failed": "A closing conversation could not be recorded on a design link.",
1825
+ "session-link.archived-read-failed": "Whether design links' conversations are archived could not be read; they read as not archived."
1807
1826
  }
1808
1827
  }
1809
1828
  });
@@ -1884,9 +1903,14 @@ var init_linear = __esm(() => {
1884
1903
  init_define();
1885
1904
  LINEAR_LOG_AREAS = defineLogAreas({
1886
1905
  linear: {
1887
- description: "Linear issues read for build actions.",
1906
+ description: "Linear issues read for build actions, project board links and the Linear connection across machines.",
1888
1907
  events: {
1889
- "comments.load-failed": "An issue's comments could not be loaded; the issue still renders without them."
1908
+ "board-link.conflict": "Two of this machine's projects were linked to one Linear board on different machines; the link changed last kept it and the other was cleared.",
1909
+ "comments.load-failed": "An issue's comments could not be loaded; the issue still renders without them.",
1910
+ "connection.revoked-by-sync": "A disconnect made on another machine named this machine's Linear key, so it was cleared here.",
1911
+ "connection.exported-to-command-node": "An attached command node copied this machine's Linear key at the user's request (the key is not logged).",
1912
+ "sync.failed": "A Linear board-link sync with a node failed; it is retried on the next pass.",
1913
+ "sync.older-node": "A node does not sync Linear board links yet; it keeps its own links."
1890
1914
  }
1891
1915
  }
1892
1916
  });
@@ -1901,7 +1925,9 @@ var init_usage_history = __esm(() => {
1901
1925
  description: "Recorded agent token usage.",
1902
1926
  events: {
1903
1927
  "record.failed": "Agent usage could not be recorded; a later read counts it.",
1904
- "prune.failed": "Pruning recorded usage failed; the next prune retries."
1928
+ "prune.failed": "Pruning recorded usage failed; the next prune retries.",
1929
+ "settled-read.failed": "Reading a settled turn's usage failed; the session's next outcome or state read retries it.",
1930
+ "settled-read.abandoned": "A settled turn's usage was given up after repeated failed reads or a full retry queue; only a later projection can still count it."
1905
1931
  }
1906
1932
  }
1907
1933
  });
@@ -2136,7 +2162,9 @@ var init_web_claude_tmux = __esm(() => {
2136
2162
  "files.load-failed": "The file list for @mentions could not be loaded.",
2137
2163
  "clipboard.image-failed": "An image pasted into the interactive terminal could not be saved.",
2138
2164
  "terminal.resize-failed": "Resizing the interactive terminal's session failed.",
2139
- "terminal.recover-failed": "The interactive terminal could not reattach to its session."
2165
+ "terminal.recover-failed": "The interactive terminal could not reattach to its session.",
2166
+ "terminal.lease-lapsed": "The backend had dropped the interactive terminal after missed renewals; a new one is attached (once the page is visible).",
2167
+ "terminal.renew-failed": "Renewing the interactive terminal's lease failed; the next renewal retries."
2140
2168
  }
2141
2169
  }
2142
2170
  });
@@ -8678,13 +8706,12 @@ function selectPinnedToolchainArtifacts(artifacts, platform, architecture) {
8678
8706
  function pinnedToolchainArtifacts(platform = process.platform, architecture = process.arch) {
8679
8707
  return selectPinnedToolchainArtifacts(PINNED_TOOLCHAIN_ARTIFACTS, platform, architecture);
8680
8708
  }
8681
- var PINNED_TOOLCHAIN_VERSIONS, PINNED_SUPPORT_TOOL_VERSIONS, PINNED_TOOL_VERSIONS, TOOLCHAIN_PLATFORM_OVERRIDES, GITHUB_RELEASE_HOSTS, NPM_REGISTRY_HOSTS, GROK_DOWNLOAD_HOSTS, CODEX_RELEASE_BASE, PI_RELEASE_BASE, GH_RELEASE_BASE, OPENCODE_RELEASE_BASE, CODEX_CODE_MODE_HOST_FILE_NAME = "codex-code-mode-host", PINNED_TOOLCHAIN_ARTIFACTS;
8709
+ var PINNED_TOOLCHAIN_VERSIONS, PINNED_SUPPORT_TOOL_VERSIONS, PINNED_TOOL_VERSIONS, TOOLCHAIN_PLATFORM_OVERRIDES, GITHUB_RELEASE_HOSTS, NPM_REGISTRY_HOSTS, GROK_DOWNLOAD_HOSTS, CODEX_RELEASE_BASE, PI_RELEASE_BASE, GH_RELEASE_BASE, CODEX_CODE_MODE_HOST_FILE_NAME = "codex-code-mode-host", PINNED_TOOLCHAIN_ARTIFACTS;
8682
8710
  var init_manifest = __esm(() => {
8683
8711
  PINNED_TOOLCHAIN_VERSIONS = {
8684
8712
  claude: "2.1.319",
8685
8713
  codex: "0.167.0",
8686
8714
  grok: "1.0.77",
8687
- opencode: "1.19.5",
8688
8715
  opencode2: "2.2.6",
8689
8716
  pi: "1.5.0"
8690
8717
  };
@@ -8708,7 +8735,6 @@ var init_manifest = __esm(() => {
8708
8735
  CODEX_RELEASE_BASE = `https://github.com/openai/codex/releases/download/rust-v${PINNED_TOOLCHAIN_VERSIONS.codex}`;
8709
8736
  PI_RELEASE_BASE = `https://github.com/earendil-works/pi/releases/download/v${PINNED_TOOLCHAIN_VERSIONS.pi}`;
8710
8737
  GH_RELEASE_BASE = `https://github.com/cli/cli/releases/download/v${PINNED_SUPPORT_TOOL_VERSIONS.gh}`;
8711
- OPENCODE_RELEASE_BASE = `https://github.com/anomalyco/opencode/releases/download/v${PINNED_TOOLCHAIN_VERSIONS.opencode}`;
8712
8738
  PINNED_TOOLCHAIN_ARTIFACTS = [
8713
8739
  {
8714
8740
  name: "codex",
@@ -8822,84 +8848,6 @@ var init_manifest = __esm(() => {
8822
8848
  sha256: "cdcb45aaa01d0f14e298985e09465aebccd47f64ecd298aea44814af7b62bbda"
8823
8849
  }
8824
8850
  },
8825
- {
8826
- name: "opencode",
8827
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8828
- platform: "darwin",
8829
- architecture: "arm64",
8830
- archive: {
8831
- format: "zip",
8832
- url: `${OPENCODE_RELEASE_BASE}/opencode-darwin-arm64.zip`,
8833
- entryPath: "opencode",
8834
- size: 64278924,
8835
- sha256: "c1c9e62521192192ef4c3ed1355ada2144055bddb61682217e997b03c55203c1",
8836
- allowedHosts: GITHUB_RELEASE_HOSTS
8837
- },
8838
- executable: {
8839
- fileName: "opencode",
8840
- size: 180672544,
8841
- sha256: "feaafead8cd563af0c2dcb386b0757e4355e327ebb6bd1aaad5440fe2f83596c",
8842
- repairInvalidMacSignature: true
8843
- }
8844
- },
8845
- {
8846
- name: "opencode",
8847
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8848
- platform: "darwin",
8849
- architecture: "x64",
8850
- archive: {
8851
- format: "zip",
8852
- url: `${OPENCODE_RELEASE_BASE}/opencode-darwin-x64.zip`,
8853
- entryPath: "opencode",
8854
- size: 69100888,
8855
- sha256: "b0212efa6db347187225a17fa3a31c6b261bf4c9f1589a290b0ca902d720d250",
8856
- allowedHosts: GITHUB_RELEASE_HOSTS
8857
- },
8858
- executable: {
8859
- fileName: "opencode",
8860
- size: 193954400,
8861
- sha256: "4b15c8aab1844936e9e1d1327213355d94c820de8c7084fad88d3812a067d3d0",
8862
- repairInvalidMacSignature: true
8863
- }
8864
- },
8865
- {
8866
- name: "opencode",
8867
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8868
- platform: "linux",
8869
- architecture: "arm64",
8870
- archive: {
8871
- format: "tar.gz",
8872
- url: `${OPENCODE_RELEASE_BASE}/opencode-linux-arm64.tar.gz`,
8873
- entryPath: "opencode",
8874
- size: 78513091,
8875
- sha256: "fae5be262d693b7c5e562856cc473e59e741772936db0c0600ac0d5ed5bd088b",
8876
- allowedHosts: GITHUB_RELEASE_HOSTS
8877
- },
8878
- executable: {
8879
- fileName: "opencode",
8880
- size: 211209208,
8881
- sha256: "dab85b46f4ea4813da5367997f99a60aab64a2118d58ebf552980e792747436c"
8882
- }
8883
- },
8884
- {
8885
- name: "opencode",
8886
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8887
- platform: "linux",
8888
- architecture: "x64",
8889
- archive: {
8890
- format: "tar.gz",
8891
- url: `${OPENCODE_RELEASE_BASE}/opencode-linux-x64.tar.gz`,
8892
- entryPath: "opencode",
8893
- size: 79651896,
8894
- sha256: "588310a336fa3b9df36b3f0225b26f679d453efaad0cf3d66c3651ef3ec1647a",
8895
- allowedHosts: GITHUB_RELEASE_HOSTS
8896
- },
8897
- executable: {
8898
- fileName: "opencode",
8899
- size: 214386864,
8900
- sha256: "7df4e4136301f16589b0f30bf91a61380fca5f8ef22dd36570f5ebe1d4ec802c"
8901
- }
8902
- },
8903
8851
  openCode2Artifact("darwin", "arm64", {
8904
8852
  size: 108258354,
8905
8853
  sha256: "613ebb74dd8eff767bb9d442a37b40c4d9946ba27f1538985068a1b9678137a3"
@@ -12638,6 +12586,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12638
12586
  "mark_topic",
12639
12587
  "mark_question",
12640
12588
  "ack_message",
12589
+ "add_linear_comment",
12641
12590
  "add_ticket_comment",
12642
12591
  "address_multi_review",
12643
12592
  "adopt_workflow",
@@ -12649,6 +12598,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12649
12598
  "cancel_schedule",
12650
12599
  "clear_worker_goal",
12651
12600
  "compare_project_files",
12601
+ "create_linear_issue",
12652
12602
  "create_pr",
12653
12603
  "create_schedule",
12654
12604
  "create_ticket",
@@ -12661,6 +12611,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12661
12611
  "get_feature_plan",
12662
12612
  "get_graph_run",
12663
12613
  "get_launch_options",
12614
+ "get_linear_issue",
12664
12615
  "get_message",
12665
12616
  "get_message_status",
12666
12617
  "get_multi_review",
@@ -12680,6 +12631,8 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12680
12631
  "list_agents",
12681
12632
  "list_environments",
12682
12633
  "list_graph_templates",
12634
+ "list_linear_board_options",
12635
+ "list_linear_issues",
12683
12636
  "list_mailboxes",
12684
12637
  "list_nodes",
12685
12638
  "list_projects",
@@ -12720,6 +12673,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12720
12673
  "switch_provider_account",
12721
12674
  "set_account_auto_switch",
12722
12675
  "transfer_files",
12676
+ "update_linear_issue",
12723
12677
  "update_schedule",
12724
12678
  "update_ticket"
12725
12679
  ]);
@@ -13245,7 +13199,7 @@ import path5 from "path";
13245
13199
  // ../../apps/backend/package.json
13246
13200
  var package_default = {
13247
13201
  name: "@orkestrator/backend",
13248
- version: "2.37.5-beta",
13202
+ version: "2.38.0-beta",
13249
13203
  private: true,
13250
13204
  type: "module",
13251
13205
  exports: {
@@ -13265,7 +13219,6 @@ var package_default = {
13265
13219
  dependencies: {
13266
13220
  "@modelcontextprotocol/node": "2.1.2",
13267
13221
  "@modelcontextprotocol/server": "2.4.0",
13268
- "@opencode-ai/sdk": "1.19.5",
13269
13222
  "@orkestrator/protocol": "workspace:*",
13270
13223
  "@orkestrator/toolchain": "workspace:*",
13271
13224
  "@xterm/addon-serialize": "0.14.0",
@@ -20862,6 +20815,10 @@ function asModel(schema) {
20862
20815
  return schema;
20863
20816
  }
20864
20817
 
20818
+ // ../protocol/src/auto-pipeline-tool.ts
20819
+ var AUTO_PIPELINE_TOOL_NAME = "convert_to_pipeline";
20820
+ var AGENT_AUTO_PIPELINE_TOOL_NAMES = Object.freeze([AUTO_PIPELINE_TOOL_NAME]);
20821
+
20865
20822
  // ../protocol/src/auto-pipeline.ts
20866
20823
  var text = String4.check(isMinLength(1), isMaxLength(32000));
20867
20824
  var texts = ArraySchema(text).check(isMaxLength(100));