orkestrator 2.37.4-beta → 2.37.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orkestrator",
3
- "version": "2.37.4-beta",
3
+ "version": "2.37.6-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.6-beta",
43
+ "@orkestrator/toolchain": "2.37.6-beta"
44
44
  },
45
45
  "engines": {
46
46
  "bun": ">=1.4.4"
@@ -432,16 +432,20 @@ 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.",
442
445
  "question.answers-received": "A parked question received its answers.",
443
446
  "question.stale": "An answer arrived for a question no longer pending; the route answered stale.",
444
447
  "question.wait-failed": "A parked question ended without an answer: cancelled, timed out or closed.",
448
+ "read-only-connection.bedrock-withheld": "A read-only turn did not take the user settings' Bedrock connection: it names no bearer token or static key pair, so the CLI would resolve AWS profiles, whose credential_process runs outside the read-only boundary.",
445
449
  "runtime.ended-under-resumed-turn": "The Claude runtime ended while a resumed root turn was still open.",
446
450
  "server.listening": "The HTTP server is listening.",
447
451
  "server.starting": "The HTTP server is about to bind.",
@@ -634,10 +638,10 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
634
638
  "dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
635
639
  "instance.already-running": "Another instance holds this data directory; this one will quit.",
636
640
  "main-thread.stalled": {
637
- description: "A timer fired late, so windows, IPC and the stdout reader waited.",
641
+ 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
642
  essential: true,
639
643
  minLevel: "error",
640
- fields: { lagMs: "number", intervalMs: "number" }
644
+ fields: { lagMs: "number", intervalMs: "number", cpuMs: "number" }
641
645
  },
642
646
  "process-memory": "Development only: working set per Electron process type, sampled on an interval.",
643
647
  "process-memory.failed": "Development only: one process memory sample could not be read.",
@@ -1071,6 +1075,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
1071
1075
  description: "The OpenCode 2.x provider: its event monitor, steering, routing, host and container servers.",
1072
1076
  events: {
1073
1077
  "events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
1078
+ "monitor.silent": "The 2.x event stream sent a heartbeat and then went quiet, so it is replaced. `silenceMs` only.",
1074
1079
  "steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
1075
1080
  "provider.dispose-failed": "Disposing the 2.x provider of a replaced server failed. Error class only.",
1076
1081
  "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.",
@@ -1136,20 +1141,26 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
1136
1141
  description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
1137
1142
  events: {
1138
1143
  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.",
1144
+ 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.",
1140
1145
  essential: true,
1141
1146
  minLevel: "error",
1142
1147
  fields: {
1143
1148
  lagMs: "number",
1144
1149
  intervalMs: "number",
1150
+ cpuMs: "number",
1145
1151
  storageMs: "number",
1146
1152
  storageDatabase: "label",
1147
1153
  storageOp: "label",
1148
1154
  storageTable: "label",
1149
1155
  storageLongestMs: "number",
1150
1156
  storageBusy: "boolean",
1157
+ storageCalls: "number",
1158
+ storageCallMs: "number",
1159
+ storageMainCallMs: "number",
1160
+ storageLedgerCallMs: "number",
1151
1161
  commandsInFlight: "number",
1152
- blockingCommandMs: "number"
1162
+ blockingCommandMs: "number",
1163
+ jobsInWindow: "number"
1153
1164
  }
1154
1165
  }
1155
1166
  }
@@ -1189,6 +1200,8 @@ var TERMINAL_LOG_AREAS = defineLogAreas({
1189
1200
  "pty.exit-notify-failed": "Notifying a terminal's exit failed.",
1190
1201
  "pty.late-exit-listener-failed": "A listener added after a terminal exited threw.",
1191
1202
  "setup.pty-reused": "A setup terminal reused its existing PTY.",
1203
+ "setup.pty-retired": "A setup retry ended the terminal the previous run left open, so the new run gets its own.",
1204
+ "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
1205
  "setup.pty-spawning": "A setup terminal is spawning its PTY. The argument count only, never the arguments.",
1193
1206
  "setup.pty-spawned": "A setup terminal's PTY started.",
1194
1207
  "setup.pty-exited": "A setup terminal's PTY exited.",
@@ -1449,7 +1462,6 @@ var STORAGE_LOG_AREAS = defineLogAreas({
1449
1462
  "native-session-owners.backfill-failed": "Native-session rows could not be given their environment as owner at open; an environment delete then parses those rows instead, and the next open retries.",
1450
1463
  "lease.timed-out": "A waiter gave up on a lease; `lease` and `family` name it, `holderAgeMs` is the time since its holder's last heartbeat (null when the holder had just gone), `waitedMs` how long the waiter waited.",
1451
1464
  "lease.heartbeat-failed": "A held lease's heartbeat failed, which shortens the lease; the next one retries.",
1452
- "scrub.vacuum-failed": "Deleted-content page reclamation failed; the checkpoint is attempted independently.",
1453
1465
  "scrub.checkpoint-failed": "Deleted content could not be scrubbed from the WAL yet because the truncating checkpoint failed or a reader held an older snapshot; it is retried without waiting until it succeeds.",
1454
1466
  "upkeep.vacuum-failed": "Periodic page reclamation failed; the next upkeep pass retries.",
1455
1467
  "upkeep.finished": "One periodic upkeep pass ended: `optimizeMs` is how long refreshing planner statistics held the event loop, `released` and `left` the free pages returned and still free, `releaseMs` the release child's run and `stop` why it ended (`done`, `budget`, `busy`, `no-progress`, `slow-step`, `not-incremental`, `no-free-pages`, `failed`).",
@@ -1500,6 +1512,8 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
1500
1512
  "workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
1501
1513
  "rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
1502
1514
  "kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
1515
+ "kanban.environment-deleted-read-failed": "The pipelines of an environment being deleted could not be read, so their tickets keep their columns.",
1516
+ "kanban.environment-deleted-update-failed": "The ticket of a pipeline whose environment was deleted could not be moved; the deletion goes on.",
1503
1517
  "usage.read-failed": "Reading a stage session's token usage failed.",
1504
1518
  "checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
1505
1519
  "checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
@@ -1550,6 +1564,7 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
1550
1564
  "baseline.update-failed": "An environment's diff baseline could not be updated.",
1551
1565
  "scan.watcher-failed": "An environment's diff watcher failed; its scans fall back to polling.",
1552
1566
  "scan.failed": "A diff scan failed; the last results stay, marked stale, and the scan is retried.",
1567
+ "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
1568
  "scan.freshness-read-failed": "Reading whether an environment's remote is fresh failed.",
1554
1569
  "scan.listener-failed": "A change-tracking scan listener threw; the scan itself stands.",
1555
1570
  "emit.diff-stats-failed": "A diff stats change could not be emitted to its sink.",
@@ -1634,7 +1649,17 @@ var REVIEW_LOG_AREAS = defineLogAreas({
1634
1649
  "fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
1635
1650
  "fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
1636
1651
  "result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
1637
- "failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
1652
+ "failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so.",
1653
+ "consolidation.budget-exceeded": {
1654
+ description: "A panel's reports did not fit one consolidation turn even after optional prose was removed, so consolidation failed before dispatch. Counts only.",
1655
+ essential: true,
1656
+ fields: {
1657
+ reviewers: "number",
1658
+ sourceFindings: "number",
1659
+ compactBytes: "number",
1660
+ maxBytes: "number"
1661
+ }
1662
+ }
1638
1663
  }
1639
1664
  },
1640
1665
  "pull-request": {
@@ -1727,9 +1752,10 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1727
1752
  "git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
1728
1753
  "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
1754
  "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.",
1755
+ "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
1756
  "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.",
1757
+ "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.",
1758
+ "daemon.rootless-live-restore": "The Docker daemon is rootless and has live-restore on, which a rootless restart cannot honour: the new daemon reports every container exited while the old containers' processes keep running with no network, so turn live-restore off in its daemon.json. Written once per backend.",
1733
1759
  "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
1760
  "lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
1735
1761
  "login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
@@ -1743,7 +1769,8 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1743
1769
  "recovery.clear-terminals-failed": "Terminal sessions could not be cleared after a recovery restore.",
1744
1770
  "github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container, so its firewall fetches them.",
1745
1771
  "availability.probe-failed": "Docker is not available; written when the diagnostic changes. Fixed-shape metadata only: messages can hold daemon endpoints.",
1746
- "start.port-collision-retrying": "An automatic host port collided on start, so it is retried once with fresh ports.",
1772
+ "start.port-collision-retrying": "An automatic host port collided on start, so it is retried (up to three times): with fresh ports, or, when `backendChosen`, on the same backend-chosen port after a pause.",
1773
+ "host-ports.owned-list-failed": "Docker could not list the host ports the backend chose for this owner's other containers, so a new rootless container's ports were chosen avoiding only this process's recent choices.",
1747
1774
  "writer-lease.lost": {
1748
1775
  description: "This backend lost the registry writer lease, for the fixed `reason` given. Schedules stop and container changes are refused until it restarts.",
1749
1776
  essential: true,
@@ -1766,7 +1793,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1766
1793
  fields: { provider: "label", containerPort: "number" }
1767
1794
  },
1768
1795
  "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`.",
1796
+ 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
1797
  essential: true,
1771
1798
  fields: { provider: "label", reason: "label" }
1772
1799
  },
@@ -2288,6 +2315,7 @@ var WEB_KANBAN_LOG_AREAS = defineLogAreas({
2288
2315
  "task.move-failed": "A task move failed and its status was rolled back.",
2289
2316
  "comment.add-failed": "A comment could not be added to a task.",
2290
2317
  "comment.delete-failed": "A comment could not be deleted from a task.",
2318
+ "pr.merge-failed": "Merging a ticket's pull request from its Notes tab failed; the error was shown to the user.",
2291
2319
  "image.add-failed": "An image could not be added to a task.",
2292
2320
  "image.delete-failed": "An image could not be deleted from a task.",
2293
2321
  "notes.load-failed": "Project notes could not be loaded; the editor stays disabled.",
@@ -3268,11 +3296,10 @@ function setLiveBridgeDiagnostics(enabled) {
3268
3296
  for (const scope of Array.from(liveScopes))
3269
3297
  scope.syncActive();
3270
3298
  }
3271
- function bridgeDebugEnabled(bridge, env = process.env) {
3299
+ function bridgeDebugEnabled(_bridge, env = process.env) {
3272
3300
  if (liveDiagnostics !== undefined && env === process.env)
3273
3301
  return liveDiagnostics;
3274
- const value = env.ORKESTRATOR_BRIDGE_DEBUG ?? env[`${bridge.toUpperCase()}_BRIDGE_DEBUG`];
3275
- return readBridgeDebugFlag(value);
3302
+ return readBridgeDebugFlag(env.ORKESTRATOR_BRIDGE_DEBUG);
3276
3303
  }
3277
3304
  function safeDiagnosticMetrics(value) {
3278
3305
  const result = {};
@@ -19181,7 +19208,7 @@ async function loadPersistedState() {
19181
19208
  } catch {
19182
19209
  throw new Error("ACP persisted state is malformed");
19183
19210
  }
19184
- if (!isObject3(parsed) || parsed.version !== 1 && parsed.version !== 2 && parsed.version !== 3 || parsed.provider !== provider || !Array.isArray(parsed.sessions)) {
19211
+ if (!isObject3(parsed) || parsed.version !== 3 || parsed.provider !== provider || !Array.isArray(parsed.sessions)) {
19185
19212
  throw new Error("ACP persisted state is incompatible");
19186
19213
  }
19187
19214
  const restored = [];
@@ -27181,18 +27208,6 @@ ${structuredPromptInstruction(schema)}` : prompt;
27181
27208
  error: "Session close did not complete"
27182
27209
  });
27183
27210
  }
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
27211
  return json(response, 405, { error: "Method not allowed" });
27197
27212
  }
27198
27213
  function authenticated(request) {
@@ -27206,8 +27221,6 @@ function authenticated(request) {
27206
27221
  function isTrustedBridgeOrigin(origin) {
27207
27222
  if (!origin)
27208
27223
  return true;
27209
- if (origin === "null" || origin === "file://")
27210
- return true;
27211
27224
  try {
27212
27225
  const parsed = new URL(origin);
27213
27226
  return (parsed.protocol === "http:" || parsed.protocol === "https:") && (parsed.hostname === "127.0.0.1" || parsed.hostname === "localhost" || parsed.hostname === "::1" || parsed.hostname === "[::1]");
@@ -27215,33 +27228,10 @@ function isTrustedBridgeOrigin(origin) {
27215
27228
  return false;
27216
27229
  }
27217
27230
  }
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
27231
  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")
27232
+ if (isTrustedBridgeOrigin(request.headers.origin))
27238
27233
  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();
27234
+ json(response, 403, { error: "Origin is not allowed" });
27245
27235
  return false;
27246
27236
  }
27247
27237
  function decodePathSegment(segment) {
@@ -27817,7 +27807,6 @@ export {
27817
27807
  renderAcpToolSource,
27818
27808
  renderDiffHunks,
27819
27809
  requestGrokInterjection,
27820
- requestPathname,
27821
27810
  requestPromptWithRetriableProviderRetries,
27822
27811
  restoreCursorTodosFromMessages,
27823
27812
  restorePersistedPolicy,