orkestrator 2.37.1-beta → 2.37.3-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
@@ -619,6 +619,9 @@ var init_environment = __esm(() => {
619
619
  "setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
620
620
  "setup.tab-publish-failed": "The setup terminal's tab could not be published.",
621
621
  "lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
622
+ "git-https-probe.failed": "Checking whether a project's GitHub remote works over HTTPS failed; `reason` says why.",
623
+ "git-https-remedy.failed": "Deciding whether to offer HTTPS after an SSH failure threw; no remedy is offered.",
624
+ "git-origin.switched-to-https": "A project's origin remote was switched from GitHub SSH to HTTPS at the user's request.",
622
625
  "tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
623
626
  "tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
624
627
  "orphan-session.reaped": "A native session no tab references was torn down.",
@@ -917,7 +920,32 @@ var init_native_agent = __esm(() => {
917
920
  "request.failed": "Handling a request event failed, so the stream restarts. Error class only.",
918
921
  "credential-plugin.skipped": "A host OpenCode server started without the credential plugin, so its tools inherit its password; `reason` says why.",
919
922
  "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.",
920
- "host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only."
923
+ "host-database.unreadable": "The shared OpenCode database could not be inspected, so host OpenCode opens it as usual. Error class only.",
924
+ "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."
925
+ }
926
+ },
927
+ "native-agent.opencode2": {
928
+ description: "The OpenCode 2.x provider: its event monitor, steering, routing, host and container servers.",
929
+ events: {
930
+ "events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
931
+ "steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
932
+ "provider.dispose-failed": "Disposing the 2.x provider of a replaced server failed. Error class only.",
933
+ "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.",
934
+ "mcp.remove-failed": "Removing a closed session's Orkestrator MCP server from the 2.x server failed. Error class only.",
935
+ "protocol.select-failed": "A workflow could not read the OpenCode line setting, so its new session takes 1.x. Error class only.",
936
+ "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.",
937
+ "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.",
938
+ "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.",
939
+ "container-server.launched": "The start script of a container environment's 2.x server was run. Container port only.",
940
+ "container-server.ready": "A container environment's 2.x server this backend started answered `/api/info` as 2.x. Environment id only.",
941
+ "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.",
942
+ "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.",
943
+ "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.",
944
+ "credential.server-exit-unclean": "The private 2.x server started to copy a sign-in did not stop cleanly. Error class only.",
945
+ "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.",
946
+ "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.",
947
+ "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.",
948
+ "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."
921
949
  }
922
950
  }
923
951
  });
@@ -3557,7 +3585,8 @@ var init_command_failure_reason = __esm(() => {
3557
3585
  ["auth-failed", /terminal prompts disabled|invalid username or password|bad credentials/i],
3558
3586
  ["auth-failed", /permission denied \(|permission to \S+ denied|host key verification failed/i],
3559
3587
  ["auth-failed", /gh auth login|not logged in|unauthorized|http 401|returned error: 40[13]/i],
3560
- ["network-failed", /could not resolve host|connection (?:timed out|refused|reset)/i],
3588
+ ["network-failed", /could not resolve host|(?:connection|operation) timed out/i],
3589
+ ["network-failed", /connection (?:refused|reset)/i],
3561
3590
  ["network-failed", /network is unreachable|no route to host|temporary failure in name/i],
3562
3591
  ["network-failed", /early eof|failed to connect|remote end hung up/i],
3563
3592
  ["network-failed", /unable to access ['"]?https?:\/\//i],
@@ -8490,6 +8519,9 @@ function isToolchainName(value) {
8490
8519
  function isSupportToolName(value) {
8491
8520
  return Object.hasOwn(PINNED_SUPPORT_TOOL_VERSIONS, value);
8492
8521
  }
8522
+ function agentPlatformForToolchain(name) {
8523
+ return Object.hasOwn(TOOLCHAIN_PLATFORM_OVERRIDES, name) ? TOOLCHAIN_PLATFORM_OVERRIDES[name] : name;
8524
+ }
8493
8525
  function codexCodeModeHost(target, archive, executable) {
8494
8526
  return {
8495
8527
  fileName: CODEX_CODE_MODE_HOST_FILE_NAME,
@@ -8528,6 +8560,25 @@ function claudeArchiveUrl(target) {
8528
8560
  const pkg = `claude-code-${target}`;
8529
8561
  return `https://registry.npmjs.org/@anthropic-ai/${pkg}/-/${pkg}-${PINNED_TOOLCHAIN_VERSIONS.claude}.tgz`;
8530
8562
  }
8563
+ function openCode2Artifact(platform, architecture, archive, executable) {
8564
+ const version = PINNED_TOOLCHAIN_VERSIONS.opencode2;
8565
+ const pkg = `cli-${platform}-${architecture}`;
8566
+ return {
8567
+ name: "opencode2",
8568
+ version,
8569
+ platform,
8570
+ architecture,
8571
+ archive: {
8572
+ format: "tar.gz",
8573
+ url: `https://registry.npmjs.org/@opencode/${pkg}/-/${pkg}-${version}.tgz`,
8574
+ entryPath: "package/bin/opencode",
8575
+ size: archive.size,
8576
+ sha256: archive.sha256,
8577
+ allowedHosts: NPM_REGISTRY_HOSTS
8578
+ },
8579
+ executable: { fileName: "opencode2", ...executable }
8580
+ };
8581
+ }
8531
8582
  function selectPinnedToolchainArtifacts(artifacts, platform, architecture) {
8532
8583
  if (platform !== "darwin" && platform !== "linux") {
8533
8584
  throw new Error(`Unsupported toolchain platform: ${platform}`);
@@ -8546,13 +8597,14 @@ function selectPinnedToolchainArtifacts(artifacts, platform, architecture) {
8546
8597
  function pinnedToolchainArtifacts(platform = process.platform, architecture = process.arch) {
8547
8598
  return selectPinnedToolchainArtifacts(PINNED_TOOLCHAIN_ARTIFACTS, platform, architecture);
8548
8599
  }
8549
- var PINNED_TOOLCHAIN_VERSIONS, PINNED_SUPPORT_TOOL_VERSIONS, PINNED_TOOL_VERSIONS, 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;
8600
+ 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;
8550
8601
  var init_manifest = __esm(() => {
8551
8602
  PINNED_TOOLCHAIN_VERSIONS = {
8552
8603
  claude: "2.1.319",
8553
8604
  codex: "0.167.0",
8554
8605
  grok: "1.0.77",
8555
8606
  opencode: "1.19.5",
8607
+ opencode2: "2.2.6",
8556
8608
  pi: "1.5.0"
8557
8609
  };
8558
8610
  PINNED_SUPPORT_TOOL_VERSIONS = {
@@ -8562,6 +8614,9 @@ var init_manifest = __esm(() => {
8562
8614
  ...PINNED_TOOLCHAIN_VERSIONS,
8563
8615
  ...PINNED_SUPPORT_TOOL_VERSIONS
8564
8616
  };
8617
+ TOOLCHAIN_PLATFORM_OVERRIDES = {
8618
+ opencode2: "opencode"
8619
+ };
8565
8620
  GITHUB_RELEASE_HOSTS = [
8566
8621
  "github.com",
8567
8622
  "release-assets.githubusercontent.com",
@@ -8764,6 +8819,34 @@ var init_manifest = __esm(() => {
8764
8819
  sha256: "7df4e4136301f16589b0f30bf91a61380fca5f8ef22dd36570f5ebe1d4ec802c"
8765
8820
  }
8766
8821
  },
8822
+ openCode2Artifact("darwin", "arm64", {
8823
+ size: 108258354,
8824
+ sha256: "613ebb74dd8eff767bb9d442a37b40c4d9946ba27f1538985068a1b9678137a3"
8825
+ }, {
8826
+ size: 231791968,
8827
+ sha256: "90e4d03597b03d2051b65b4d793467764e55bacd8e22bf4824479c7233ea0e15"
8828
+ }),
8829
+ openCode2Artifact("darwin", "x64", {
8830
+ size: 113659134,
8831
+ sha256: "4f1475c0b642ece32681dbd4a2fd5f7c1ef6183dced0ecac3861cb3d18a49a15"
8832
+ }, {
8833
+ size: 246528608,
8834
+ sha256: "6273561d1f9b3ff20d350aba47874fd12b2c4aed7ee62c1979f579c9570ef1fc"
8835
+ }),
8836
+ openCode2Artifact("linux", "arm64", {
8837
+ size: 119688147,
8838
+ sha256: "22352e200630ec61a48a65b9f5c2b627328ae5002658d81c067f67c5fb689898"
8839
+ }, {
8840
+ size: 253873144,
8841
+ sha256: "ce4f5e7502b6e32ccd8b05654410e8e8607b9660737222b0b1279621bcea2b03"
8842
+ }),
8843
+ openCode2Artifact("linux", "x64", {
8844
+ size: 121218733,
8845
+ sha256: "dfcd69f1d511ae10ed626768b41d84b8100cc4aa64cecb69da38ba7a29d33551"
8846
+ }, {
8847
+ size: 258824368,
8848
+ sha256: "50503d24577fa4117a7c95ee85b2cd679606a87eacf20ca54ed5db5c9e1cf895"
8849
+ }),
8767
8850
  {
8768
8851
  name: "claude",
8769
8852
  version: PINNED_TOOLCHAIN_VERSIONS.claude,
@@ -10683,7 +10766,7 @@ import { lstat as lstat4, mkdir as mkdir5, readdir as readdir5, readlink as read
10683
10766
  import path23 from "path";
10684
10767
  async function resolveToolchainSelection(options2) {
10685
10768
  const known = Object.keys(PINNED_TOOL_VERSIONS);
10686
- const withSupportTools = (chosen) => known.filter((name) => chosen.has(name) || isSupportToolName(name));
10769
+ const withSupportTools = (chosen) => known.filter((name) => chosen(name) || isSupportToolName(name));
10687
10770
  if (options2.tools !== undefined) {
10688
10771
  if (options2.tools.length === 0)
10689
10772
  throw new Error("At least one tool must be selected");
@@ -10691,12 +10774,17 @@ async function resolveToolchainSelection(options2) {
10691
10774
  if (unknown.length > 0) {
10692
10775
  throw new Error(`Unknown tool: ${unknown.join(", ")}. Expected: ${known.join(", ")}`);
10693
10776
  }
10694
- return { tools: withSupportTools(new Set(options2.tools)), source: "explicit" };
10777
+ const tools = new Set(options2.tools);
10778
+ return { tools: withSupportTools((name) => tools.has(name)), source: "explicit" };
10695
10779
  }
10696
10780
  const selection = await loadAgentPlatformSelection(options2.dataDir);
10697
10781
  if (selection.needsFirstRunChoice)
10698
10782
  return { tools: known, source: "all" };
10699
- return { tools: withSupportTools(new Set(selection.enabled)), source: "config" };
10783
+ const platforms = new Set(selection.enabled);
10784
+ return {
10785
+ tools: withSupportTools((name) => platforms.has(agentPlatformForToolchain(name))),
10786
+ source: "config"
10787
+ };
10700
10788
  }
10701
10789
  async function planToolchainInstall(options2) {
10702
10790
  const selection = await resolveToolchainSelection(options2);
@@ -13035,7 +13123,7 @@ import path5 from "path";
13035
13123
  // ../../apps/backend/package.json
13036
13124
  var package_default = {
13037
13125
  name: "@orkestrator/backend",
13038
- version: "2.37.1-beta",
13126
+ version: "2.37.3-beta",
13039
13127
  private: true,
13040
13128
  type: "module",
13041
13129
  exports: {
@@ -22003,7 +22091,10 @@ var sessionCommands = [
22003
22091
  warnings,
22004
22092
  connection: session.identity,
22005
22093
  ids: receipt ? [receipt.operationId] : [],
22006
- human: receipt ? receiptLines(receipt) : ["steered"]
22094
+ human: [
22095
+ ...receipt ? receiptLines(receipt) : ["steered"],
22096
+ ...result?.deliveredAs === "new-turn" ? ["The turn had ended, so the text was sent as a new turn."] : result?.deliveredAs === "queued" ? ["The turn had moved on, so the text was queued as the next turn."] : []
22097
+ ]
22007
22098
  };
22008
22099
  }
22009
22100
  },