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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orkestrator",
3
- "version": "2.37.4-beta",
3
+ "version": "2.37.5-beta",
4
4
  "description": "Run the Orkestrator backend service without the desktop application",
5
5
  "homepage": "https://orkestrator.dev",
6
6
  "repository": {
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@anthropic-ai/claude-agent-sdk": "0.3.319",
38
- "playwright-core": "1.64.0",
38
+ "playwright-core": "1.65.0",
39
39
  "sharp": "0.35.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@orkestrator/protocol": "2.37.4-beta",
43
- "@orkestrator/toolchain": "2.37.4-beta"
42
+ "@orkestrator/protocol": "2.37.5-beta",
43
+ "@orkestrator/toolchain": "2.37.5-beta"
44
44
  },
45
45
  "engines": {
46
46
  "bun": ">=1.4.4"
@@ -432,10 +432,13 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
432
432
  "prompt.accepted": "The route accepted a prompt and answered 202.",
433
433
  "prompt.failed": "A prompt turn failed; the session reports the error.",
434
434
  "prompt.processing-failed": "A prompt accepted by the route failed while processing.",
435
+ "prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
435
436
  "prompt.received": "A prompt reached the bridge; only its length is logged.",
436
437
  "prompt.send-failed": "A prompt request failed; the route answered with an error.",
438
+ "prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
437
439
  "query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
438
440
  "query.failed": "A Claude query ended with an error result.",
441
+ "query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
439
442
  "question.answer-failed": "The answer-question route failed.",
440
443
  "question.answering": "Answering a parked question.",
441
444
  "question.answers-prepared": "The route prepared a question answer for the session.",
@@ -634,10 +637,10 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
634
637
  "dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
635
638
  "instance.already-running": "Another instance holds this data directory; this one will quit.",
636
639
  "main-thread.stalled": {
637
- description: "A timer fired late, so windows, IPC and the stdout reader waited.",
640
+ 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.",
638
641
  essential: true,
639
642
  minLevel: "error",
640
- fields: { lagMs: "number", intervalMs: "number" }
643
+ fields: { lagMs: "number", intervalMs: "number", cpuMs: "number" }
641
644
  },
642
645
  "process-memory": "Development only: working set per Electron process type, sampled on an interval.",
643
646
  "process-memory.failed": "Development only: one process memory sample could not be read.",
@@ -1136,12 +1139,13 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
1136
1139
  description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
1137
1140
  events: {
1138
1141
  stalled: {
1139
- 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, and `blockingCommand` one whose synchronous part overlapped it.",
1142
+ 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.",
1140
1143
  essential: true,
1141
1144
  minLevel: "error",
1142
1145
  fields: {
1143
1146
  lagMs: "number",
1144
1147
  intervalMs: "number",
1148
+ cpuMs: "number",
1145
1149
  storageMs: "number",
1146
1150
  storageDatabase: "label",
1147
1151
  storageOp: "label",
@@ -1149,7 +1153,8 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
1149
1153
  storageLongestMs: "number",
1150
1154
  storageBusy: "boolean",
1151
1155
  commandsInFlight: "number",
1152
- blockingCommandMs: "number"
1156
+ blockingCommandMs: "number",
1157
+ jobsInWindow: "number"
1153
1158
  }
1154
1159
  }
1155
1160
  }
@@ -1189,6 +1194,8 @@ var TERMINAL_LOG_AREAS = defineLogAreas({
1189
1194
  "pty.exit-notify-failed": "Notifying a terminal's exit failed.",
1190
1195
  "pty.late-exit-listener-failed": "A listener added after a terminal exited threw.",
1191
1196
  "setup.pty-reused": "A setup terminal reused its existing PTY.",
1197
+ "setup.pty-retired": "A setup retry ended the terminal the previous run left open, so the new run gets its own.",
1198
+ "setup.pty-retire-failed": "A setup retry could not end the previous run's process tree, so it kept that terminal and started nothing.",
1192
1199
  "setup.pty-spawning": "A setup terminal is spawning its PTY. The argument count only, never the arguments.",
1193
1200
  "setup.pty-spawned": "A setup terminal's PTY started.",
1194
1201
  "setup.pty-exited": "A setup terminal's PTY exited.",
@@ -1500,6 +1507,8 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
1500
1507
  "workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
1501
1508
  "rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
1502
1509
  "kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
1510
+ "kanban.environment-deleted-read-failed": "The pipelines of an environment being deleted could not be read, so their tickets keep their columns.",
1511
+ "kanban.environment-deleted-update-failed": "The ticket of a pipeline whose environment was deleted could not be moved; the deletion goes on.",
1503
1512
  "usage.read-failed": "Reading a stage session's token usage failed.",
1504
1513
  "checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
1505
1514
  "checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
@@ -1550,6 +1559,7 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
1550
1559
  "baseline.update-failed": "An environment's diff baseline could not be updated.",
1551
1560
  "scan.watcher-failed": "An environment's diff watcher failed; its scans fall back to polling.",
1552
1561
  "scan.failed": "A diff scan failed; the last results stay, marked stale, and the scan is retried.",
1562
+ "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.",
1553
1563
  "scan.freshness-read-failed": "Reading whether an environment's remote is fresh failed.",
1554
1564
  "scan.listener-failed": "A change-tracking scan listener threw; the scan itself stands.",
1555
1565
  "emit.diff-stats-failed": "A diff stats change could not be emitted to its sink.",
@@ -1727,9 +1737,9 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1727
1737
  "git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
1728
1738
  "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.",
1729
1739
  "opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
1730
- "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 (to-do 7550); that connection then sends nothing more.",
1740
+ "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.",
1731
1741
  "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.",
1732
- "opencode.project-config-filtered": "Values were left out of a checkout's OpenCode configuration before a launched server reads it (to-do 7550): 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.",
1742
+ "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.",
1733
1743
  "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.",
1734
1744
  "lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
1735
1745
  "login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
@@ -1766,7 +1776,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1766
1776
  fields: { provider: "label", containerPort: "number" }
1767
1777
  },
1768
1778
  "bridge.listener-refused": {
1769
- description: "The socket listening on a container bridge's port is not the one the bridge the backend started opened (to-do 7250), 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`.",
1779
+ 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`.",
1770
1780
  essential: true,
1771
1781
  fields: { provider: "label", reason: "label" }
1772
1782
  },
@@ -2288,6 +2298,7 @@ var WEB_KANBAN_LOG_AREAS = defineLogAreas({
2288
2298
  "task.move-failed": "A task move failed and its status was rolled back.",
2289
2299
  "comment.add-failed": "A comment could not be added to a task.",
2290
2300
  "comment.delete-failed": "A comment could not be deleted from a task.",
2301
+ "pr.merge-failed": "Merging a ticket's pull request from its Notes tab failed; the error was shown to the user.",
2291
2302
  "image.add-failed": "An image could not be added to a task.",
2292
2303
  "image.delete-failed": "An image could not be deleted from a task.",
2293
2304
  "notes.load-failed": "Project notes could not be loaded; the editor stays disabled.",
@@ -3268,11 +3279,10 @@ function setLiveBridgeDiagnostics(enabled) {
3268
3279
  for (const scope of Array.from(liveScopes))
3269
3280
  scope.syncActive();
3270
3281
  }
3271
- function bridgeDebugEnabled(bridge, env = process.env) {
3282
+ function bridgeDebugEnabled(_bridge, env = process.env) {
3272
3283
  if (liveDiagnostics !== undefined && env === process.env)
3273
3284
  return liveDiagnostics;
3274
- const value = env.ORKESTRATOR_BRIDGE_DEBUG ?? env[`${bridge.toUpperCase()}_BRIDGE_DEBUG`];
3275
- return readBridgeDebugFlag(value);
3285
+ return readBridgeDebugFlag(env.ORKESTRATOR_BRIDGE_DEBUG);
3276
3286
  }
3277
3287
  function safeDiagnosticMetrics(value) {
3278
3288
  const result = {};
@@ -19181,7 +19191,7 @@ async function loadPersistedState() {
19181
19191
  } catch {
19182
19192
  throw new Error("ACP persisted state is malformed");
19183
19193
  }
19184
- if (!isObject3(parsed) || parsed.version !== 1 && parsed.version !== 2 && parsed.version !== 3 || parsed.provider !== provider || !Array.isArray(parsed.sessions)) {
19194
+ if (!isObject3(parsed) || parsed.version !== 3 || parsed.provider !== provider || !Array.isArray(parsed.sessions)) {
19185
19195
  throw new Error("ACP persisted state is incompatible");
19186
19196
  }
19187
19197
  const restored = [];
@@ -27181,18 +27191,6 @@ ${structuredPromptInstruction(schema)}` : prompt;
27181
27191
  error: "Session close did not complete"
27182
27192
  });
27183
27193
  }
27184
- if (!action && request.method === "DELETE") {
27185
- if (state.closing) {
27186
- return await closeSessionRetaining(state) === "closed" ? json(response, 200, { deleted: true }) : json(response, 503, { error: "Session close did not complete" });
27187
- }
27188
- denyPendingRequests(state);
27189
- await state.child?.close();
27190
- sessions.delete(state.id);
27191
- if (state.clientSessionKey)
27192
- clientSessionKeys.delete(state.clientSessionKey);
27193
- await persistState();
27194
- return json(response, 200, { deleted: true });
27195
- }
27196
27194
  return json(response, 405, { error: "Method not allowed" });
27197
27195
  }
27198
27196
  function authenticated(request) {
@@ -27206,8 +27204,6 @@ function authenticated(request) {
27206
27204
  function isTrustedBridgeOrigin(origin) {
27207
27205
  if (!origin)
27208
27206
  return true;
27209
- if (origin === "null" || origin === "file://")
27210
- return true;
27211
27207
  try {
27212
27208
  const parsed = new URL(origin);
27213
27209
  return (parsed.protocol === "http:" || parsed.protocol === "https:") && (parsed.hostname === "127.0.0.1" || parsed.hostname === "localhost" || parsed.hostname === "::1" || parsed.hostname === "[::1]");
@@ -27215,33 +27211,10 @@ function isTrustedBridgeOrigin(origin) {
27215
27211
  return false;
27216
27212
  }
27217
27213
  }
27218
- function requestPathname(request) {
27219
- try {
27220
- return new URL(request.url || "/", `http://${request.headers.host || "localhost"}`).pathname;
27221
- } catch {
27222
- return "";
27223
- }
27224
- }
27225
27214
  function applyOriginPolicy(request, response) {
27226
- const origin = request.headers.origin;
27227
- if (!isTrustedBridgeOrigin(origin)) {
27228
- json(response, 403, { error: "Origin is not allowed" });
27229
- return false;
27230
- }
27231
- const unauthenticatedRoute = requestPathname(request) === "/global/health";
27232
- if (origin)
27233
- response.setHeader("Vary", "Origin");
27234
- if (origin && !unauthenticatedRoute) {
27235
- response.setHeader("Access-Control-Allow-Origin", origin);
27236
- }
27237
- if (request.method !== "OPTIONS")
27215
+ if (isTrustedBridgeOrigin(request.headers.origin))
27238
27216
  return true;
27239
- response.writeHead(204, unauthenticatedRoute ? {} : {
27240
- "Access-Control-Allow-Methods": "GET, POST, DELETE, OPTIONS",
27241
- "Access-Control-Allow-Headers": `Content-Type, Authorization, ${ACP_TOKEN_HEADER}`,
27242
- "Access-Control-Allow-Private-Network": "true"
27243
- });
27244
- response.end();
27217
+ json(response, 403, { error: "Origin is not allowed" });
27245
27218
  return false;
27246
27219
  }
27247
27220
  function decodePathSegment(segment) {
@@ -27817,7 +27790,6 @@ export {
27817
27790
  renderAcpToolSource,
27818
27791
  renderDiffHunks,
27819
27792
  requestGrokInterjection,
27820
- requestPathname,
27821
27793
  requestPromptWithRetriableProviderRetries,
27822
27794
  restoreCursorTodosFromMessages,
27823
27795
  restorePersistedPolicy,