orkestrator 2.37.6-beta → 2.38.1-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 CHANGED
@@ -936,29 +936,28 @@ var init_native_agent = __esm(() => {
936
936
  "credential-plugin.skipped": "A host OpenCode server started without the credential plugin, so its tools inherit its password; `reason` says why.",
937
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.",
938
938
  "host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only.",
939
- "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."
940
940
  }
941
941
  },
942
942
  "native-agent.opencode2": {
943
- 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.",
944
944
  events: {
945
945
  "events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
946
946
  "monitor.silent": "The 2.x event stream sent a heartbeat and then went quiet, so it is replaced. `silenceMs` only.",
947
947
  "steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
948
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.",
949
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.",
950
953
  "mcp.remove-failed": "Removing a closed session's Orkestrator MCP server from the 2.x server failed. Error class only.",
951
- "protocol.select-failed": "A workflow could not read the OpenCode line setting, so its new session takes 1.x. Error class only.",
952
- "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.",
953
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.",
954
- "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.",
955
955
  "container-server.launched": "The start script of a container environment's 2.x server was run. Container port only.",
956
956
  "container-server.ready": "A container environment's 2.x server this backend started answered `/api/info` as 2.x. Environment id only.",
957
957
  "container-server.cleanup-failed": "Cleanup after OpenCode startup failed; step names only, while the original startup error is preserved.",
958
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.",
959
- "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.",
960
- "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.",
961
- "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.",
962
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.",
963
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.",
964
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.",
@@ -1017,7 +1016,7 @@ var init_runtime = __esm(() => {
1017
1016
  description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
1018
1017
  events: {
1019
1018
  stalled: {
1020
- 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
+ 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; `storageWrites` those that committed a change; `storageTopCaller` and `storageCallers` whose they were, by store, lease or table family), `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.",
1021
1020
  essential: true,
1022
1021
  minLevel: "error",
1023
1022
  fields: {
@@ -1034,6 +1033,10 @@ var init_runtime = __esm(() => {
1034
1033
  storageCallMs: "number",
1035
1034
  storageMainCallMs: "number",
1036
1035
  storageLedgerCallMs: "number",
1036
+ storageWrites: "number",
1037
+ storageTopCallerCalls: "number",
1038
+ storageTopCallerMs: "number",
1039
+ storageTopCallerWrites: "number",
1037
1040
  commandsInFlight: "number",
1038
1041
  blockingCommandMs: "number",
1039
1042
  jobsInWindow: "number"
@@ -1224,6 +1227,7 @@ var init_tmux = __esm(() => {
1224
1227
  "cli.fast-mode-unsupported": "The claude CLI lacks --settings, so it launches without fast mode.",
1225
1228
  "cli.effort-unsupported": "The claude CLI lacks --effort, so it launches without it.",
1226
1229
  "interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
1230
+ "interactive.lease-lapsed": "No client renewed an interactive terminal for 45 seconds, so its capture loop stopped.",
1227
1231
  "signal.arm-failed": "The Claude state signal could not be armed.",
1228
1232
  "signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
1229
1233
  "hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
@@ -1691,6 +1695,7 @@ var init_docker = __esm(() => {
1691
1695
  "login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
1692
1696
  "login-keeper.refresh-check-failed": "Checking the host Claude login after a refresh failed.",
1693
1697
  "login-watcher.pass-failed": "A container login file watcher pass failed; the next one retries.",
1698
+ "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.",
1694
1699
  "lifecycle.record-failure-failed": "A failed container operation could not be recorded.",
1695
1700
  "lifecycle.reconcile-failed": "Reconciling one environment's container operation failed; the next pass retries.",
1696
1701
  "replacement.clear-terminals-failed": "Terminal sessions could not be cleared after a container replacement.",
@@ -1820,7 +1825,8 @@ var init_design = __esm(() => {
1820
1825
  "startup.step-failed": "One part of design startup failed; `step` says which.",
1821
1826
  "legacy.retire-failed": "A migrated legacy design could not be retired.",
1822
1827
  "profiles.swept": "Design startup removed stale browser profiles.",
1823
- "session-link.record-failed": "A closing conversation could not be recorded on a design link."
1828
+ "session-link.record-failed": "A closing conversation could not be recorded on a design link.",
1829
+ "session-link.archived-read-failed": "Whether design links' conversations are archived could not be read; they read as not archived."
1824
1830
  }
1825
1831
  }
1826
1832
  });
@@ -1901,9 +1907,14 @@ var init_linear = __esm(() => {
1901
1907
  init_define();
1902
1908
  LINEAR_LOG_AREAS = defineLogAreas({
1903
1909
  linear: {
1904
- description: "Linear issues read for build actions.",
1910
+ description: "Linear issues read for build actions, project board links and the Linear connection across machines.",
1905
1911
  events: {
1906
- "comments.load-failed": "An issue's comments could not be loaded; the issue still renders without them."
1912
+ "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.",
1913
+ "comments.load-failed": "An issue's comments could not be loaded; the issue still renders without them.",
1914
+ "connection.revoked-by-sync": "A disconnect made on another machine named this machine's Linear key, so it was cleared here.",
1915
+ "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).",
1916
+ "sync.failed": "A Linear board-link sync with a node failed; it is retried on the next pass.",
1917
+ "sync.older-node": "A node does not sync Linear board links yet; it keeps its own links."
1907
1918
  }
1908
1919
  }
1909
1920
  });
@@ -1918,7 +1929,9 @@ var init_usage_history = __esm(() => {
1918
1929
  description: "Recorded agent token usage.",
1919
1930
  events: {
1920
1931
  "record.failed": "Agent usage could not be recorded; a later read counts it.",
1921
- "prune.failed": "Pruning recorded usage failed; the next prune retries."
1932
+ "prune.failed": "Pruning recorded usage failed; the next prune retries.",
1933
+ "settled-read.failed": "Reading a settled turn's usage failed; the session's next outcome or state read retries it.",
1934
+ "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."
1922
1935
  }
1923
1936
  }
1924
1937
  });
@@ -2095,7 +2108,8 @@ var init_web_build_pipeline = __esm(() => {
2095
2108
  "legacy.state-too-large": "Legacy pipeline state was over the limit and skipped.",
2096
2109
  "opencode-catalog.load-failed": "The cached OpenCode model list could not be loaded.",
2097
2110
  "model-catalog.hydrate-failed": "A node's cached model lists could not be loaded for a launcher.",
2098
- "opencode-preferences.load-failed": "OpenCode model preferences could not be loaded."
2111
+ "opencode-preferences.load-failed": "OpenCode model preferences could not be loaded.",
2112
+ "setup-requirements.load-failed": "A project's root setup steps could not be read for a launcher; it shows no warning."
2099
2113
  }
2100
2114
  }
2101
2115
  });
@@ -2153,7 +2167,9 @@ var init_web_claude_tmux = __esm(() => {
2153
2167
  "files.load-failed": "The file list for @mentions could not be loaded.",
2154
2168
  "clipboard.image-failed": "An image pasted into the interactive terminal could not be saved.",
2155
2169
  "terminal.resize-failed": "Resizing the interactive terminal's session failed.",
2156
- "terminal.recover-failed": "The interactive terminal could not reattach to its session."
2170
+ "terminal.recover-failed": "The interactive terminal could not reattach to its session.",
2171
+ "terminal.lease-lapsed": "The backend had dropped the interactive terminal after missed renewals; a new one is attached (once the page is visible).",
2172
+ "terminal.renew-failed": "Renewing the interactive terminal's lease failed; the next renewal retries."
2157
2173
  }
2158
2174
  }
2159
2175
  });
@@ -8695,13 +8711,12 @@ function selectPinnedToolchainArtifacts(artifacts, platform, architecture) {
8695
8711
  function pinnedToolchainArtifacts(platform = process.platform, architecture = process.arch) {
8696
8712
  return selectPinnedToolchainArtifacts(PINNED_TOOLCHAIN_ARTIFACTS, platform, architecture);
8697
8713
  }
8698
- 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;
8714
+ 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;
8699
8715
  var init_manifest = __esm(() => {
8700
8716
  PINNED_TOOLCHAIN_VERSIONS = {
8701
8717
  claude: "2.1.319",
8702
8718
  codex: "0.167.0",
8703
8719
  grok: "1.0.77",
8704
- opencode: "1.19.5",
8705
8720
  opencode2: "2.2.6",
8706
8721
  pi: "1.5.0"
8707
8722
  };
@@ -8725,7 +8740,6 @@ var init_manifest = __esm(() => {
8725
8740
  CODEX_RELEASE_BASE = `https://github.com/openai/codex/releases/download/rust-v${PINNED_TOOLCHAIN_VERSIONS.codex}`;
8726
8741
  PI_RELEASE_BASE = `https://github.com/earendil-works/pi/releases/download/v${PINNED_TOOLCHAIN_VERSIONS.pi}`;
8727
8742
  GH_RELEASE_BASE = `https://github.com/cli/cli/releases/download/v${PINNED_SUPPORT_TOOL_VERSIONS.gh}`;
8728
- OPENCODE_RELEASE_BASE = `https://github.com/anomalyco/opencode/releases/download/v${PINNED_TOOLCHAIN_VERSIONS.opencode}`;
8729
8743
  PINNED_TOOLCHAIN_ARTIFACTS = [
8730
8744
  {
8731
8745
  name: "codex",
@@ -8839,84 +8853,6 @@ var init_manifest = __esm(() => {
8839
8853
  sha256: "cdcb45aaa01d0f14e298985e09465aebccd47f64ecd298aea44814af7b62bbda"
8840
8854
  }
8841
8855
  },
8842
- {
8843
- name: "opencode",
8844
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8845
- platform: "darwin",
8846
- architecture: "arm64",
8847
- archive: {
8848
- format: "zip",
8849
- url: `${OPENCODE_RELEASE_BASE}/opencode-darwin-arm64.zip`,
8850
- entryPath: "opencode",
8851
- size: 64278924,
8852
- sha256: "c1c9e62521192192ef4c3ed1355ada2144055bddb61682217e997b03c55203c1",
8853
- allowedHosts: GITHUB_RELEASE_HOSTS
8854
- },
8855
- executable: {
8856
- fileName: "opencode",
8857
- size: 180672544,
8858
- sha256: "feaafead8cd563af0c2dcb386b0757e4355e327ebb6bd1aaad5440fe2f83596c",
8859
- repairInvalidMacSignature: true
8860
- }
8861
- },
8862
- {
8863
- name: "opencode",
8864
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8865
- platform: "darwin",
8866
- architecture: "x64",
8867
- archive: {
8868
- format: "zip",
8869
- url: `${OPENCODE_RELEASE_BASE}/opencode-darwin-x64.zip`,
8870
- entryPath: "opencode",
8871
- size: 69100888,
8872
- sha256: "b0212efa6db347187225a17fa3a31c6b261bf4c9f1589a290b0ca902d720d250",
8873
- allowedHosts: GITHUB_RELEASE_HOSTS
8874
- },
8875
- executable: {
8876
- fileName: "opencode",
8877
- size: 193954400,
8878
- sha256: "4b15c8aab1844936e9e1d1327213355d94c820de8c7084fad88d3812a067d3d0",
8879
- repairInvalidMacSignature: true
8880
- }
8881
- },
8882
- {
8883
- name: "opencode",
8884
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8885
- platform: "linux",
8886
- architecture: "arm64",
8887
- archive: {
8888
- format: "tar.gz",
8889
- url: `${OPENCODE_RELEASE_BASE}/opencode-linux-arm64.tar.gz`,
8890
- entryPath: "opencode",
8891
- size: 78513091,
8892
- sha256: "fae5be262d693b7c5e562856cc473e59e741772936db0c0600ac0d5ed5bd088b",
8893
- allowedHosts: GITHUB_RELEASE_HOSTS
8894
- },
8895
- executable: {
8896
- fileName: "opencode",
8897
- size: 211209208,
8898
- sha256: "dab85b46f4ea4813da5367997f99a60aab64a2118d58ebf552980e792747436c"
8899
- }
8900
- },
8901
- {
8902
- name: "opencode",
8903
- version: PINNED_TOOLCHAIN_VERSIONS.opencode,
8904
- platform: "linux",
8905
- architecture: "x64",
8906
- archive: {
8907
- format: "tar.gz",
8908
- url: `${OPENCODE_RELEASE_BASE}/opencode-linux-x64.tar.gz`,
8909
- entryPath: "opencode",
8910
- size: 79651896,
8911
- sha256: "588310a336fa3b9df36b3f0225b26f679d453efaad0cf3d66c3651ef3ec1647a",
8912
- allowedHosts: GITHUB_RELEASE_HOSTS
8913
- },
8914
- executable: {
8915
- fileName: "opencode",
8916
- size: 214386864,
8917
- sha256: "7df4e4136301f16589b0f30bf91a61380fca5f8ef22dd36570f5ebe1d4ec802c"
8918
- }
8919
- },
8920
8856
  openCode2Artifact("darwin", "arm64", {
8921
8857
  size: 108258354,
8922
8858
  sha256: "613ebb74dd8eff767bb9d442a37b40c4d9946ba27f1538985068a1b9678137a3"
@@ -12655,6 +12591,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12655
12591
  "mark_topic",
12656
12592
  "mark_question",
12657
12593
  "ack_message",
12594
+ "add_linear_comment",
12658
12595
  "add_ticket_comment",
12659
12596
  "address_multi_review",
12660
12597
  "adopt_workflow",
@@ -12666,6 +12603,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12666
12603
  "cancel_schedule",
12667
12604
  "clear_worker_goal",
12668
12605
  "compare_project_files",
12606
+ "create_linear_issue",
12669
12607
  "create_pr",
12670
12608
  "create_schedule",
12671
12609
  "create_ticket",
@@ -12678,6 +12616,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12678
12616
  "get_feature_plan",
12679
12617
  "get_graph_run",
12680
12618
  "get_launch_options",
12619
+ "get_linear_issue",
12681
12620
  "get_message",
12682
12621
  "get_message_status",
12683
12622
  "get_multi_review",
@@ -12697,6 +12636,8 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12697
12636
  "list_agents",
12698
12637
  "list_environments",
12699
12638
  "list_graph_templates",
12639
+ "list_linear_board_options",
12640
+ "list_linear_issues",
12700
12641
  "list_mailboxes",
12701
12642
  "list_nodes",
12702
12643
  "list_projects",
@@ -12737,6 +12678,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12737
12678
  "switch_provider_account",
12738
12679
  "set_account_auto_switch",
12739
12680
  "transfer_files",
12681
+ "update_linear_issue",
12740
12682
  "update_schedule",
12741
12683
  "update_ticket"
12742
12684
  ]);
@@ -13262,7 +13204,7 @@ import path5 from "path";
13262
13204
  // ../../apps/backend/package.json
13263
13205
  var package_default = {
13264
13206
  name: "@orkestrator/backend",
13265
- version: "2.37.6-beta",
13207
+ version: "2.38.1-beta",
13266
13208
  private: true,
13267
13209
  type: "module",
13268
13210
  exports: {
@@ -13282,7 +13224,6 @@ var package_default = {
13282
13224
  dependencies: {
13283
13225
  "@modelcontextprotocol/node": "2.1.2",
13284
13226
  "@modelcontextprotocol/server": "2.4.0",
13285
- "@opencode-ai/sdk": "1.19.5",
13286
13227
  "@orkestrator/protocol": "workspace:*",
13287
13228
  "@orkestrator/toolchain": "workspace:*",
13288
13229
  "@xterm/addon-serialize": "0.14.0",
@@ -15487,6 +15428,8 @@ for (const definition of TICKET_SECTION_DEFINITIONS) {
15487
15428
  for (const alias of definition.aliases)
15488
15429
  KEY_BY_HEADING.set(normalizedHeading(alias), definition.key);
15489
15430
  }
15431
+ var ACCEPTANCE_CRITERIA_RULE = "Verify judges each against the committed change alone (its code, tests or docs); rules for how the worker works (what it may read, run or touch) go in constraints.";
15432
+ var TICKET_SECTIONS_GUIDANCE = `Ticket sections; each is optional and replaces only itself (empty clears it). acceptanceCriteria: one item per entry. ${ACCEPTANCE_CRITERIA_RULE} checks: standard commands (lint, typecheck, tests) that must pass. delivery.policy: commit-only, push-no-pr or open-pr (the default); a build applies it once Verify passes. constraints: a limit on which files the work may edit never covers updating references to files it deletes, moves or renames, or descriptions it makes untrue; say so. custom: extra titled sections. Standing project rules (report format, standard checks, PR flow, safety) live in AGENTS.md's Orkestrator section; do not repeat them.`;
15490
15433
 
15491
15434
  // ../protocol/src/build-pipeline-address-findings-report.ts
15492
15435
  var PIPELINE_ADDRESS_FINDINGS_RESULT_LIMITS = Object.freeze({
@@ -20879,6 +20822,10 @@ function asModel(schema) {
20879
20822
  return schema;
20880
20823
  }
20881
20824
 
20825
+ // ../protocol/src/auto-pipeline-tool.ts
20826
+ var AUTO_PIPELINE_TOOL_NAME = "convert_to_pipeline";
20827
+ var AGENT_AUTO_PIPELINE_TOOL_NAMES = Object.freeze([AUTO_PIPELINE_TOOL_NAME]);
20828
+
20882
20829
  // ../protocol/src/auto-pipeline.ts
20883
20830
  var text = String4.check(isMinLength(1), isMaxLength(32000));
20884
20831
  var texts = ArraySchema(text).check(isMaxLength(100));