orkestrator 2.37.4-beta → 2.37.5-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/artifact-runtime/worker-context/Dockerfile +1 -1
- package/dist/artifact-runtime/worker-context/package-lock.json +4 -4
- package/dist/artifact-runtime/worker-context/package.json +1 -1
- package/dist/client.js +45 -12
- package/dist/main.js +1275 -1518
- package/package.json +4 -4
- package/resources/acp-bridge/dist/index.js +23 -51
- package/resources/claude-bridge/dist/index.js +98 -296
- package/resources/codex-bridge/dist/index.js +23 -139
- package/resources/cursor-bridge/dist/index.js +29 -27
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +26 -34
- package/resources/pi-bridge/runtime/install.json +1 -1
- package/resources/release-runtime/bun.lock +2 -2
- package/resources/release-runtime/package.json +1 -1
|
@@ -929,10 +929,13 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
929
929
|
"prompt.accepted": "The route accepted a prompt and answered 202.",
|
|
930
930
|
"prompt.failed": "A prompt turn failed; the session reports the error.",
|
|
931
931
|
"prompt.processing-failed": "A prompt accepted by the route failed while processing.",
|
|
932
|
+
"prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
|
|
932
933
|
"prompt.received": "A prompt reached the bridge; only its length is logged.",
|
|
933
934
|
"prompt.send-failed": "A prompt request failed; the route answered with an error.",
|
|
935
|
+
"prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
|
|
934
936
|
"query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
|
|
935
937
|
"query.failed": "A Claude query ended with an error result.",
|
|
938
|
+
"query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
|
|
936
939
|
"question.answer-failed": "The answer-question route failed.",
|
|
937
940
|
"question.answering": "Answering a parked question.",
|
|
938
941
|
"question.answers-prepared": "The route prepared a question answer for the session.",
|
|
@@ -1131,10 +1134,10 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
1131
1134
|
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
1132
1135
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
1133
1136
|
"main-thread.stalled": {
|
|
1134
|
-
description: "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
1137
|
+
description: "A timer fired late, so windows, IPC and the stdout reader waited. `cpuMs` is the CPU time the process used in the window: near `lagMs` the main thread was busy, far below it the thread waited.",
|
|
1135
1138
|
essential: true,
|
|
1136
1139
|
minLevel: "error",
|
|
1137
|
-
fields: { lagMs: "number", intervalMs: "number" }
|
|
1140
|
+
fields: { lagMs: "number", intervalMs: "number", cpuMs: "number" }
|
|
1138
1141
|
},
|
|
1139
1142
|
"process-memory": "Development only: working set per Electron process type, sampled on an interval.",
|
|
1140
1143
|
"process-memory.failed": "Development only: one process memory sample could not be read.",
|
|
@@ -1633,12 +1636,13 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
|
|
|
1633
1636
|
description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
|
|
1634
1637
|
events: {
|
|
1635
1638
|
stalled: {
|
|
1636
|
-
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,
|
|
1639
|
+
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.",
|
|
1637
1640
|
essential: true,
|
|
1638
1641
|
minLevel: "error",
|
|
1639
1642
|
fields: {
|
|
1640
1643
|
lagMs: "number",
|
|
1641
1644
|
intervalMs: "number",
|
|
1645
|
+
cpuMs: "number",
|
|
1642
1646
|
storageMs: "number",
|
|
1643
1647
|
storageDatabase: "label",
|
|
1644
1648
|
storageOp: "label",
|
|
@@ -1646,7 +1650,8 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
|
|
|
1646
1650
|
storageLongestMs: "number",
|
|
1647
1651
|
storageBusy: "boolean",
|
|
1648
1652
|
commandsInFlight: "number",
|
|
1649
|
-
blockingCommandMs: "number"
|
|
1653
|
+
blockingCommandMs: "number",
|
|
1654
|
+
jobsInWindow: "number"
|
|
1650
1655
|
}
|
|
1651
1656
|
}
|
|
1652
1657
|
}
|
|
@@ -1686,6 +1691,8 @@ var TERMINAL_LOG_AREAS = defineLogAreas({
|
|
|
1686
1691
|
"pty.exit-notify-failed": "Notifying a terminal's exit failed.",
|
|
1687
1692
|
"pty.late-exit-listener-failed": "A listener added after a terminal exited threw.",
|
|
1688
1693
|
"setup.pty-reused": "A setup terminal reused its existing PTY.",
|
|
1694
|
+
"setup.pty-retired": "A setup retry ended the terminal the previous run left open, so the new run gets its own.",
|
|
1695
|
+
"setup.pty-retire-failed": "A setup retry could not end the previous run's process tree, so it kept that terminal and started nothing.",
|
|
1689
1696
|
"setup.pty-spawning": "A setup terminal is spawning its PTY. The argument count only, never the arguments.",
|
|
1690
1697
|
"setup.pty-spawned": "A setup terminal's PTY started.",
|
|
1691
1698
|
"setup.pty-exited": "A setup terminal's PTY exited.",
|
|
@@ -1997,6 +2004,8 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
1997
2004
|
"workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
|
|
1998
2005
|
"rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
|
|
1999
2006
|
"kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
|
|
2007
|
+
"kanban.environment-deleted-read-failed": "The pipelines of an environment being deleted could not be read, so their tickets keep their columns.",
|
|
2008
|
+
"kanban.environment-deleted-update-failed": "The ticket of a pipeline whose environment was deleted could not be moved; the deletion goes on.",
|
|
2000
2009
|
"usage.read-failed": "Reading a stage session's token usage failed.",
|
|
2001
2010
|
"checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
|
|
2002
2011
|
"checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
|
|
@@ -2047,6 +2056,7 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
2047
2056
|
"baseline.update-failed": "An environment's diff baseline could not be updated.",
|
|
2048
2057
|
"scan.watcher-failed": "An environment's diff watcher failed; its scans fall back to polling.",
|
|
2049
2058
|
"scan.failed": "A diff scan failed; the last results stay, marked stale, and the scan is retried.",
|
|
2059
|
+
"scan.target-missing": "A local environment's worktree folder is missing (deleted, moved or on an unmounted drive); no scan runs, the last results stay, marked stale, and the folder is checked again on the failure backoff.",
|
|
2050
2060
|
"scan.freshness-read-failed": "Reading whether an environment's remote is fresh failed.",
|
|
2051
2061
|
"scan.listener-failed": "A change-tracking scan listener threw; the scan itself stands.",
|
|
2052
2062
|
"emit.diff-stats-failed": "A diff stats change could not be emitted to its sink.",
|
|
@@ -2224,9 +2234,9 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
2224
2234
|
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
2225
2235
|
"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.",
|
|
2226
2236
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
2227
|
-
"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
|
|
2237
|
+
"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.",
|
|
2228
2238
|
"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.",
|
|
2229
|
-
"opencode.project-config-filtered": "Values were left out of a checkout's OpenCode configuration before a launched server reads it
|
|
2239
|
+
"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.",
|
|
2230
2240
|
"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.",
|
|
2231
2241
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
2232
2242
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
@@ -2263,7 +2273,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
2263
2273
|
fields: { provider: "label", containerPort: "number" }
|
|
2264
2274
|
},
|
|
2265
2275
|
"bridge.listener-refused": {
|
|
2266
|
-
description: "The socket listening on a container bridge's port is not the one the bridge the backend started opened
|
|
2276
|
+
description: "The socket listening on a container bridge's port is not the one the bridge the backend started opened, 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`.",
|
|
2267
2277
|
essential: true,
|
|
2268
2278
|
fields: { provider: "label", reason: "label" }
|
|
2269
2279
|
},
|
|
@@ -2785,6 +2795,7 @@ var WEB_KANBAN_LOG_AREAS = defineLogAreas({
|
|
|
2785
2795
|
"task.move-failed": "A task move failed and its status was rolled back.",
|
|
2786
2796
|
"comment.add-failed": "A comment could not be added to a task.",
|
|
2787
2797
|
"comment.delete-failed": "A comment could not be deleted from a task.",
|
|
2798
|
+
"pr.merge-failed": "Merging a ticket's pull request from its Notes tab failed; the error was shown to the user.",
|
|
2788
2799
|
"image.add-failed": "An image could not be added to a task.",
|
|
2789
2800
|
"image.delete-failed": "An image could not be deleted from a task.",
|
|
2790
2801
|
"notes.load-failed": "Project notes could not be loaded; the editor stays disabled.",
|
|
@@ -37804,11 +37815,10 @@ function setLiveBridgeDiagnostics(enabled) {
|
|
|
37804
37815
|
for (const scope of Array.from(liveScopes))
|
|
37805
37816
|
scope.syncActive();
|
|
37806
37817
|
}
|
|
37807
|
-
function bridgeDebugEnabled(
|
|
37818
|
+
function bridgeDebugEnabled(_bridge, env = process.env) {
|
|
37808
37819
|
if (liveDiagnostics !== undefined && env === process.env)
|
|
37809
37820
|
return liveDiagnostics;
|
|
37810
|
-
|
|
37811
|
-
return readBridgeDebugFlag(value);
|
|
37821
|
+
return readBridgeDebugFlag(env.ORKESTRATOR_BRIDGE_DEBUG);
|
|
37812
37822
|
}
|
|
37813
37823
|
function safeDiagnosticMetrics(value) {
|
|
37814
37824
|
const result = {};
|
|
@@ -40591,13 +40601,13 @@ function assertSessionOpen(state) {
|
|
|
40591
40601
|
throw new HttpError(409, "Session is closed");
|
|
40592
40602
|
}
|
|
40593
40603
|
var GLOBAL_REFRESH_CONCURRENCY = 4;
|
|
40594
|
-
var
|
|
40604
|
+
var DEFAULT_CLOSE_CANCEL_TIMEOUT_MS = 5000;
|
|
40595
40605
|
var DEFAULT_CANCEL_ACK_TIMEOUT_MS = 5000;
|
|
40596
40606
|
var TRANSCRIPT_GENERATION = randomBytes9(16).toString("hex");
|
|
40597
|
-
var
|
|
40607
|
+
var closeCancelTimeoutMs = DEFAULT_CLOSE_CANCEL_TIMEOUT_MS;
|
|
40598
40608
|
var cancelAckTimeoutMs = DEFAULT_CANCEL_ACK_TIMEOUT_MS;
|
|
40599
|
-
function
|
|
40600
|
-
|
|
40609
|
+
function setCloseCancelTimeoutForTests(timeoutMs) {
|
|
40610
|
+
closeCancelTimeoutMs = timeoutMs ?? DEFAULT_CLOSE_CANCEL_TIMEOUT_MS;
|
|
40601
40611
|
}
|
|
40602
40612
|
function setCancelAckTimeoutForTests(timeoutMs) {
|
|
40603
40613
|
cancelAckTimeoutMs = timeoutMs ?? DEFAULT_CANCEL_ACK_TIMEOUT_MS;
|
|
@@ -40854,11 +40864,8 @@ async function routeSession(request, response, url, clientSignal) {
|
|
|
40854
40864
|
boundTranscriptForRead(state);
|
|
40855
40865
|
return json(response, 200, publicSession(state));
|
|
40856
40866
|
}
|
|
40857
|
-
if (!action && request.method === "DELETE") {
|
|
40858
|
-
return await handleDelete(response, state);
|
|
40859
|
-
}
|
|
40860
40867
|
if (action === "close" && !subject && request.method === "POST") {
|
|
40861
|
-
const outcome = await closeSessionRetaining(state,
|
|
40868
|
+
const outcome = await closeSessionRetaining(state, closeCancelTimeoutMs);
|
|
40862
40869
|
return outcome === "closed" ? json(response, 200, { closed: true, retained: true }) : json(response, 503, {
|
|
40863
40870
|
closed: false,
|
|
40864
40871
|
pending: true,
|
|
@@ -41002,21 +41009,6 @@ async function routeSession(request, response, url, clientSignal) {
|
|
|
41002
41009
|
}
|
|
41003
41010
|
return json(response, 404, { error: "Not found" });
|
|
41004
41011
|
}
|
|
41005
|
-
async function handleDelete(response, state) {
|
|
41006
|
-
markSessionClosed(state);
|
|
41007
|
-
const { cancel } = requestTurnCancellation(state, "The session was closed before this request was answered.");
|
|
41008
|
-
try {
|
|
41009
|
-
if (cancel) {
|
|
41010
|
-
await withTimeout(cancel, deleteCancelTimeoutMs, "Pi cancellation timed out while deleting the session");
|
|
41011
|
-
}
|
|
41012
|
-
} catch {}
|
|
41013
|
-
await closeSession(state);
|
|
41014
|
-
sessions.delete(state.id);
|
|
41015
|
-
if (state.clientSessionKey)
|
|
41016
|
-
clientSessionKeys.delete(state.clientSessionKey);
|
|
41017
|
-
schedulePersist();
|
|
41018
|
-
return json(response, 200, { deleted: true });
|
|
41019
|
-
}
|
|
41020
41012
|
async function handleConfig(request, response, state) {
|
|
41021
41013
|
const body = await readJson(request);
|
|
41022
41014
|
assertSessionOpen(state);
|
|
@@ -42311,7 +42303,7 @@ export {
|
|
|
42311
42303
|
setAgentSessionTestHooks,
|
|
42312
42304
|
setAuthProbeTimeoutForTests,
|
|
42313
42305
|
setCancelAckTimeoutForTests,
|
|
42314
|
-
|
|
42306
|
+
setCloseCancelTimeoutForTests,
|
|
42315
42307
|
setModelRuntimeFactoryForTests,
|
|
42316
42308
|
setPendingRemoval,
|
|
42317
42309
|
setPersistWriteGateForTests,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"name": "orkestrator-release-runtime",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@anthropic-ai/claude-agent-sdk": "0.3.319",
|
|
9
|
-
"playwright-core": "1.
|
|
9
|
+
"playwright-core": "1.65.0",
|
|
10
10
|
"sharp": "0.35.5",
|
|
11
11
|
},
|
|
12
12
|
},
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
|
|
233
233
|
"pkce-challenge": ["pkce-challenge@5.0.1", "", {}, "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ=="],
|
|
234
234
|
|
|
235
|
-
"playwright-core": ["playwright-core@1.
|
|
235
|
+
"playwright-core": ["playwright-core@1.65.0", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-vNSKgH6YqtN7cdT/L334zo0a+YwkrpicyrHJlWWPIm/Q+Nn2SWInil01oT0mbu96U4GgoRtCYQD9CzJQgju+lA=="],
|
|
236
236
|
|
|
237
237
|
"proxy-addr": ["proxy-addr@2.0.8", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ=="],
|
|
238
238
|
|