orkestrator 2.36.5-beta → 2.36.6-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 +72 -20
- package/dist/main.js +64254 -62158
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +365 -78
- package/resources/claude-bridge/dist/index.js +411 -96
- package/resources/codex-bridge/dist/index.js +541 -148
- package/resources/cursor-bridge/dist/index.js +344 -61
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +885 -350
- package/resources/pi-bridge/runtime/install.json +1 -1
package/dist/client.js
CHANGED
|
@@ -506,6 +506,7 @@ var init_desktop = __esm(() => {
|
|
|
506
506
|
events: {
|
|
507
507
|
"attention-failed": "A dialog could not ask for the user's attention.",
|
|
508
508
|
closed: "A native dialog closed.",
|
|
509
|
+
"hidden-cancelled": "A hidden profile cancelled a dialog without opening native UI.",
|
|
509
510
|
"open-failed": "A dialog could not open; it was answered as cancelled.",
|
|
510
511
|
opening: "A native dialog is opening.",
|
|
511
512
|
"preview-beforeunload-ignored": "A browser preview's beforeunload handler was ignored.",
|
|
@@ -595,6 +596,7 @@ var init_environment = __esm(() => {
|
|
|
595
596
|
"orphan-session.reaped": "A native session no tab references was torn down.",
|
|
596
597
|
"handoff-sweep.failed": "Sweeping transferred transcripts no tab references failed.",
|
|
597
598
|
"delete.terminals-survived": "Terminal process trees outlived termination, so the deletion stops.",
|
|
599
|
+
"delete.step-deadline": "A deletion step that runs child processes passed its deadline; they are stopped and the deletion fails once they have.",
|
|
598
600
|
"delete.artifacts-left": "Graph run artifact directories were not removed.",
|
|
599
601
|
"delete.worktrees-kept": "Graph runs kept branch worktrees.",
|
|
600
602
|
"delete.step-failed": "One best-effort part of deleting an environment failed; `step` says which, and the rest goes on.",
|
|
@@ -633,6 +635,7 @@ var init_gateway = __esm(() => {
|
|
|
633
635
|
"host.refused": "A request named a host this gateway does not answer to. Logged once per name, up to a limit.",
|
|
634
636
|
"port.fallback": "The preferred port was taken, so a nearby one is used.",
|
|
635
637
|
"port.fallback-distant": "The preferred port and those nearby were taken, so another is used.",
|
|
638
|
+
"request-auth.fallback": "A desktop request-auth hook failed closed. Phase only; no request or error content.",
|
|
636
639
|
"request.failed": "A gateway request failed. Throttled: repeats are counted, not written.",
|
|
637
640
|
"websocket.upgrade-failed": "A WebSocket upgrade failed.",
|
|
638
641
|
"events.client-dropped": "An event-stream client buffered too much and was dropped; it reconnects and refetches.",
|
|
@@ -695,6 +698,11 @@ var init_local_server = __esm(() => {
|
|
|
695
698
|
requested: "boolean"
|
|
696
699
|
}
|
|
697
700
|
},
|
|
701
|
+
"bridge.orphans-reaped": {
|
|
702
|
+
description: "Processes a bridge left in its process group after exiting on its own (its agent CLI, mid-turn) were stopped. `warn` when they left; `error` when one survived SIGKILL.",
|
|
703
|
+
essential: true,
|
|
704
|
+
fields: { key: "label", pid: "number", result: "label" }
|
|
705
|
+
},
|
|
698
706
|
"reaper.tmux-list-failed": "Orphaned claude-tmux sessions could not be listed.",
|
|
699
707
|
"reaper.tmux-kill-failed": "An orphaned tmux session could not be killed.",
|
|
700
708
|
"reaper.tmux-reaped": "Orphaned claude-tmux sessions of a deleted environment were killed.",
|
|
@@ -1604,7 +1612,11 @@ var init_docker = __esm(() => {
|
|
|
1604
1612
|
"network.list-failed": "Docker networks could not be listed.",
|
|
1605
1613
|
"network.inspect-failed": "A Docker network could not be inspected.",
|
|
1606
1614
|
"stale-containers.removing": "Stale probe containers are being removed.",
|
|
1607
|
-
"stale-networks.removing": "Stale probe networks are being removed."
|
|
1615
|
+
"stale-networks.removing": "Stale probe networks are being removed.",
|
|
1616
|
+
"peers.refused": "The agent tools server closed connections from addresses outside loopback and this backend's Docker networks (at most one entry a minute, with a count).",
|
|
1617
|
+
"peers.subnets-loaded": "The Docker subnets the agent tools server admits were reloaded.",
|
|
1618
|
+
"port.loopback-taken": "The agent tools server gave up a port because another process holds it on 127.0.0.1, where host agents call; it moves to a free port.",
|
|
1619
|
+
"peers.subnets-load-failed": "The Docker subnets the agent tools server admits could not be read; cached permissions are cleared and only loopback is admitted until a successful retry."
|
|
1608
1620
|
}
|
|
1609
1621
|
}
|
|
1610
1622
|
});
|
|
@@ -3442,6 +3454,7 @@ var init_command_failure_reason = __esm(() => {
|
|
|
3442
3454
|
});
|
|
3443
3455
|
|
|
3444
3456
|
// ../protocol/src/node/shell-process-state.ts
|
|
3457
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
3445
3458
|
import { readdirSync as readdirSync2, readFileSync as readFileSync3 } from "fs";
|
|
3446
3459
|
import { constants as osConstants } from "os";
|
|
3447
3460
|
function bunRuntime() {
|
|
@@ -3504,8 +3517,11 @@ function linuxGroupHasLiveMember(pgid) {
|
|
|
3504
3517
|
return false;
|
|
3505
3518
|
}
|
|
3506
3519
|
function psGroupHasLiveMember(pgid) {
|
|
3507
|
-
const
|
|
3508
|
-
|
|
3520
|
+
const argv = ["-A", "-o", "pgid=,stat="];
|
|
3521
|
+
const bun = bunRuntime();
|
|
3522
|
+
const result = bun ? bun.spawnSync(["/bin/ps", ...argv], PROCESS_INSPECTION_OPTIONS) : spawnSync2("/bin/ps", argv, PROCESS_INSPECTION_OPTIONS);
|
|
3523
|
+
const succeeded = "success" in result ? result.success : result.status === 0 && !result.error;
|
|
3524
|
+
if (!succeeded)
|
|
3509
3525
|
return true;
|
|
3510
3526
|
return result.stdout.toString().split(`
|
|
3511
3527
|
`).some((line) => {
|
|
@@ -3838,6 +3854,7 @@ function executeCommandBytes(command, args, options2, timeoutMs, outputLimit, st
|
|
|
3838
3854
|
let limitTimer;
|
|
3839
3855
|
let stopExitWatch = () => {};
|
|
3840
3856
|
let commandExit;
|
|
3857
|
+
let pendingFailure;
|
|
3841
3858
|
const finishCapture = () => {
|
|
3842
3859
|
settled = true;
|
|
3843
3860
|
clearTimeout(timeoutTimer);
|
|
@@ -3859,13 +3876,33 @@ function executeCommandBytes(command, args, options2, timeoutMs, outputLimit, st
|
|
|
3859
3876
|
releaseCaptureFds();
|
|
3860
3877
|
}
|
|
3861
3878
|
};
|
|
3862
|
-
const
|
|
3863
|
-
if (settled)
|
|
3864
|
-
return;
|
|
3879
|
+
const rejectFailure = (error) => {
|
|
3865
3880
|
const output = finishCapture();
|
|
3866
3881
|
if (output)
|
|
3867
3882
|
reject(Object.assign(error, { ...output, killed: timedOut }));
|
|
3868
3883
|
};
|
|
3884
|
+
const awaitTermination = (delayMs) => {
|
|
3885
|
+
clearTimeout(groupTimer);
|
|
3886
|
+
if (settled)
|
|
3887
|
+
return;
|
|
3888
|
+
if ((commandExit || exitReported(child)) && !commandGroupAlive(child)) {
|
|
3889
|
+
rejectFailure(pendingFailure);
|
|
3890
|
+
return;
|
|
3891
|
+
}
|
|
3892
|
+
groupTimer = setTimeout(awaitTermination, delayMs, Math.min(delayMs * 2, COMMAND_GROUP_POLL_MAX_MS));
|
|
3893
|
+
};
|
|
3894
|
+
const fail = (error) => {
|
|
3895
|
+
if (settled || pendingFailure)
|
|
3896
|
+
return;
|
|
3897
|
+
if (options2.waitForTermination && child.pid !== undefined) {
|
|
3898
|
+
pendingFailure = error;
|
|
3899
|
+
signalCommand(child, "SIGKILL");
|
|
3900
|
+
clearTimeout(timeoutTimer);
|
|
3901
|
+
clearInterval(limitTimer);
|
|
3902
|
+
awaitTermination(COMMAND_GROUP_POLL_MS);
|
|
3903
|
+
} else
|
|
3904
|
+
rejectFailure(error);
|
|
3905
|
+
};
|
|
3869
3906
|
const abort = () => {
|
|
3870
3907
|
timedOut = true;
|
|
3871
3908
|
signalCommand(child, "SIGKILL");
|
|
@@ -3892,11 +3929,11 @@ function executeCommandBytes(command, args, options2, timeoutMs, outputLimit, st
|
|
|
3892
3929
|
}
|
|
3893
3930
|
};
|
|
3894
3931
|
limitTimer = setInterval(() => {
|
|
3895
|
-
if (!settled && !timedOut)
|
|
3932
|
+
if (!settled && !timedOut && !pendingFailure)
|
|
3896
3933
|
failIfOverLimit();
|
|
3897
3934
|
}, COMMAND_OUTPUT_CHECK_MS);
|
|
3898
3935
|
const settleOnExit = () => {
|
|
3899
|
-
if (settled || timedOut || failIfOverLimit())
|
|
3936
|
+
if (settled || timedOut || pendingFailure || failIfOverLimit())
|
|
3900
3937
|
return;
|
|
3901
3938
|
if (commandExit?.code !== 0 || commandExit.signal !== null) {
|
|
3902
3939
|
fail(Object.assign(new Error(`Command failed: ${[command, ...args].join(" ")}`), {
|
|
@@ -3910,7 +3947,7 @@ function executeCommandBytes(command, args, options2, timeoutMs, outputLimit, st
|
|
|
3910
3947
|
resolve(output);
|
|
3911
3948
|
};
|
|
3912
3949
|
const awaitGroupExit = (delayMs) => {
|
|
3913
|
-
if (settled || timedOut)
|
|
3950
|
+
if (settled || timedOut || pendingFailure)
|
|
3914
3951
|
return;
|
|
3915
3952
|
if (commandGroupAlive(child)) {
|
|
3916
3953
|
groupTimer = setTimeout(awaitGroupExit, delayMs, Math.min(delayMs * 2, COMMAND_GROUP_POLL_MAX_MS));
|
|
@@ -3923,14 +3960,16 @@ function executeCommandBytes(command, args, options2, timeoutMs, outputLimit, st
|
|
|
3923
3960
|
return;
|
|
3924
3961
|
commandExit = exit;
|
|
3925
3962
|
stopExitWatch();
|
|
3926
|
-
if (
|
|
3963
|
+
if (pendingFailure)
|
|
3964
|
+
awaitTermination(COMMAND_GROUP_POLL_MS);
|
|
3965
|
+
else if (options2.waitForDescendants)
|
|
3927
3966
|
awaitGroupExit(COMMAND_GROUP_POLL_MS);
|
|
3928
3967
|
else
|
|
3929
3968
|
settleOnExit();
|
|
3930
3969
|
};
|
|
3931
3970
|
child.exited.then(onCommandExit, (error) => fail(error instanceof Error ? error : new Error(String(error))));
|
|
3932
3971
|
stopExitWatch = watchForLostExit(child.pid, (exit) => {
|
|
3933
|
-
if (!settled
|
|
3972
|
+
if (!settled)
|
|
3934
3973
|
onCommandExit(exit);
|
|
3935
3974
|
});
|
|
3936
3975
|
if (timeoutMs > 0) {
|
|
@@ -8889,6 +8928,18 @@ function failure2(message, kind) {
|
|
|
8889
8928
|
error.restart = true;
|
|
8890
8929
|
return error;
|
|
8891
8930
|
}
|
|
8931
|
+
function isNetworkChangeAbort(error) {
|
|
8932
|
+
for (let current = error, depth = 0;current && depth < 4; depth += 1) {
|
|
8933
|
+
if (current instanceof Error) {
|
|
8934
|
+
if (current.message.includes(NETWORK_CHANGED))
|
|
8935
|
+
return true;
|
|
8936
|
+
current = current.cause;
|
|
8937
|
+
} else {
|
|
8938
|
+
return typeof current === "string" && current.includes(NETWORK_CHANGED);
|
|
8939
|
+
}
|
|
8940
|
+
}
|
|
8941
|
+
return false;
|
|
8942
|
+
}
|
|
8892
8943
|
function delay(milliseconds) {
|
|
8893
8944
|
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
8894
8945
|
}
|
|
@@ -9062,7 +9113,7 @@ async function downloadArchive(options2) {
|
|
|
9062
9113
|
}
|
|
9063
9114
|
if (attemptFailure.untrusted || attempt >= attempts)
|
|
9064
9115
|
throw error;
|
|
9065
|
-
if (!attemptFailure.restart) {
|
|
9116
|
+
if (!attemptFailure.restart && !isNetworkChangeAbort(error)) {
|
|
9066
9117
|
const endSize = (await lstat(partialPath).catch(() => null))?.size ?? 0;
|
|
9067
9118
|
if (endSize <= startSize)
|
|
9068
9119
|
throw error;
|
|
@@ -9087,7 +9138,7 @@ async function prunePartialDownloads(rootDir, archives, now = Date.now()) {
|
|
|
9087
9138
|
});
|
|
9088
9139
|
}));
|
|
9089
9140
|
}
|
|
9090
|
-
var PARTIAL_DOWNLOAD_DIRECTORY = ".downloads", PARTIAL_SUFFIX = ".partial", UNREFERENCED_PARTIAL_RETENTION_MS, DEFAULT_DOWNLOAD_TIMINGS;
|
|
9141
|
+
var PARTIAL_DOWNLOAD_DIRECTORY = ".downloads", PARTIAL_SUFFIX = ".partial", UNREFERENCED_PARTIAL_RETENTION_MS, DEFAULT_DOWNLOAD_TIMINGS, NETWORK_CHANGED = "ERR_NETWORK_CHANGED";
|
|
9091
9142
|
var init_download = __esm(() => {
|
|
9092
9143
|
UNREFERENCED_PARTIAL_RETENTION_MS = 24 * 60 * 60 * 1000;
|
|
9093
9144
|
DEFAULT_DOWNLOAD_TIMINGS = {
|
|
@@ -10567,6 +10618,7 @@ var init_install = __esm(() => {
|
|
|
10567
10618
|
|
|
10568
10619
|
// ../../apps/backend/src/server-flags.ts
|
|
10569
10620
|
var SERVER_VALUE_FLAGS = Object.freeze([
|
|
10621
|
+
"--agent-tools-port",
|
|
10570
10622
|
"--allowed-origins",
|
|
10571
10623
|
"--app-root",
|
|
10572
10624
|
"--compression",
|
|
@@ -12783,7 +12835,7 @@ import path5 from "path";
|
|
|
12783
12835
|
// ../../apps/backend/package.json
|
|
12784
12836
|
var package_default = {
|
|
12785
12837
|
name: "@orkestrator/backend",
|
|
12786
|
-
version: "2.36.
|
|
12838
|
+
version: "2.36.6-beta",
|
|
12787
12839
|
private: true,
|
|
12788
12840
|
type: "module",
|
|
12789
12841
|
exports: {
|
|
@@ -12835,9 +12887,6 @@ var DEFAULT_ALLOWED_DOMAINS = Object.freeze([
|
|
|
12835
12887
|
"mise-versions.jdx.dev",
|
|
12836
12888
|
"aube.jdx.dev",
|
|
12837
12889
|
"api.anthropic.com",
|
|
12838
|
-
"sentry.io",
|
|
12839
|
-
"statsig.anthropic.com",
|
|
12840
|
-
"statsig.com",
|
|
12841
12890
|
"marketplace.visualstudio.com",
|
|
12842
12891
|
"vscode.blob.core.windows.net",
|
|
12843
12892
|
"update.code.visualstudio.com",
|
|
@@ -23140,7 +23189,7 @@ var mailCommands = [
|
|
|
23140
23189
|
|
|
23141
23190
|
// src/client/commands/service.ts
|
|
23142
23191
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
23143
|
-
import { spawnSync as
|
|
23192
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
23144
23193
|
import { existsSync as existsSync6 } from "fs";
|
|
23145
23194
|
import { mkdir as mkdir2, rm as rm2, stat as stat2, writeFile as writeFile3 } from "fs/promises";
|
|
23146
23195
|
import { createServer } from "net";
|
|
@@ -23616,7 +23665,7 @@ function portArgument(args) {
|
|
|
23616
23665
|
return index >= 0 ? args?.[index + 1] : undefined;
|
|
23617
23666
|
}
|
|
23618
23667
|
function runManager(argv, allowFailure = false) {
|
|
23619
|
-
const result =
|
|
23668
|
+
const result = spawnSync3(argv[0], argv.slice(1), { encoding: "utf8", timeout: 60000 });
|
|
23620
23669
|
const ok = result.status === 0;
|
|
23621
23670
|
if (!ok && !allowFailure) {
|
|
23622
23671
|
throw new CliError("operation-failed", `${argv.join(" ")} failed: ${(result.stderr || result.stdout || "").trim().slice(0, 300)}`);
|
|
@@ -23834,7 +23883,10 @@ var serviceCommands = [
|
|
|
23834
23883
|
...connection ? [
|
|
23835
23884
|
"",
|
|
23836
23885
|
...keyValues([
|
|
23837
|
-
[
|
|
23886
|
+
[
|
|
23887
|
+
"address",
|
|
23888
|
+
connection.browserUrl ?? (connection.clientUrls.length > 0 ? "(no remote browser listener; see local listeners and the log)" : "(no browser listener; see the log)")
|
|
23889
|
+
],
|
|
23838
23890
|
...connection.clientUrls.length > 0 ? [["local listeners", connection.clientUrls.join(", ")]] : [],
|
|
23839
23891
|
["auth file", connection.authFile],
|
|
23840
23892
|
...context.io.stdoutIsTty && context.global.output === "human" && connection.token ? [["token", connection.token]] : []
|