orkestrator 2.36.1 → 2.36.2-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 +331 -23
- package/dist/main.js +7949 -3557
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +626 -429
- package/resources/claude-bridge/dist/index.js +540 -147
- package/resources/codex-bridge/dist/index.js +1912 -1261
- package/resources/cursor-bridge/dist/index.js +579 -42
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +730 -103
- package/resources/pi-bridge/runtime/install.json +1 -1
package/dist/client.js
CHANGED
|
@@ -8288,6 +8288,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
|
|
|
8288
8288
|
"request_project_on_node",
|
|
8289
8289
|
"request_root_changes",
|
|
8290
8290
|
"resolve_conflicts",
|
|
8291
|
+
"restart_build_pipeline_step",
|
|
8291
8292
|
"resume_build_pipeline",
|
|
8292
8293
|
"resume_schedule",
|
|
8293
8294
|
"run_worker_command",
|
|
@@ -8452,6 +8453,16 @@ function normalizeDebugLogRetentionDays(value) {
|
|
|
8452
8453
|
}
|
|
8453
8454
|
|
|
8454
8455
|
// ../protocol/src/log-vocabulary/define.ts
|
|
8456
|
+
var ESSENTIAL_ERROR_FIELDS = {
|
|
8457
|
+
"error.name": "label",
|
|
8458
|
+
"error.code": "label",
|
|
8459
|
+
"error.errno": "number",
|
|
8460
|
+
"error.syscall": "label",
|
|
8461
|
+
"error.exitCode": "number",
|
|
8462
|
+
"error.signal": "label",
|
|
8463
|
+
"error.outputOmitted": "boolean",
|
|
8464
|
+
"error.errorCount": "number"
|
|
8465
|
+
};
|
|
8455
8466
|
var THROTTLE_LOG_EVENTS = {
|
|
8456
8467
|
"throttle.suppressed": "Repeats of the throttled `site` were counted over a window, not written.",
|
|
8457
8468
|
"throttle.recovered": "The throttled `site` succeeded again, so its fault has cleared.",
|
|
@@ -8501,7 +8512,11 @@ var BACKEND_LOG_AREAS = defineLogAreas({
|
|
|
8501
8512
|
backend: {
|
|
8502
8513
|
description: "The backend process: startup, background notices and shutdown.",
|
|
8503
8514
|
events: {
|
|
8504
|
-
starting:
|
|
8515
|
+
starting: {
|
|
8516
|
+
description: "The backend process is starting.",
|
|
8517
|
+
essential: true,
|
|
8518
|
+
fields: { version: "label" }
|
|
8519
|
+
},
|
|
8505
8520
|
"ssh-socket.resolved": "An SSH agent socket was found.",
|
|
8506
8521
|
"ssh-socket.missing": "No usable SSH agent socket was found.",
|
|
8507
8522
|
"standalone-updater.mismatch": "--standalone-updater does not match --data-dir, so self-update is off.",
|
|
@@ -8516,8 +8531,16 @@ var BACKEND_LOG_AREAS = defineLogAreas({
|
|
|
8516
8531
|
"notice.failed": "A background notice after a turn or prompt failed; `step` says which.",
|
|
8517
8532
|
"artifacts.live-unavailable": "Live interactive artifacts are unavailable.",
|
|
8518
8533
|
"shutdown.step-failed": "One part of shutdown failed and the rest went on; `step` says which.",
|
|
8519
|
-
"shutdown.signal-received":
|
|
8520
|
-
|
|
8534
|
+
"shutdown.signal-received": {
|
|
8535
|
+
description: "A signal started shutdown, which tells a clean quit from the backend being killed.",
|
|
8536
|
+
essential: true,
|
|
8537
|
+
fields: { signal: "label" }
|
|
8538
|
+
},
|
|
8539
|
+
"shutdown.finished": {
|
|
8540
|
+
description: "Shutdown finished, and the process exits with `code`.",
|
|
8541
|
+
essential: true,
|
|
8542
|
+
fields: { code: "number" }
|
|
8543
|
+
},
|
|
8521
8544
|
"port-policy.second-backend": "Another backend serves the default data directory, so this one avoids its ports.",
|
|
8522
8545
|
"port-policy.serve-on-free-port": "--tailscale-serve is on a free gateway port; pass --port with --strict-gateway-port to keep one."
|
|
8523
8546
|
}
|
|
@@ -8560,7 +8583,10 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8560
8583
|
"evidence.record-failed": "Change evidence could not be recorded; the read loop carries on.",
|
|
8561
8584
|
"evidence.shell-record-failed": "A shell observation could not be recorded.",
|
|
8562
8585
|
"evidence.turn-record-failed": "Turn change evidence could not be recorded.",
|
|
8586
|
+
"agent.exited": "An ACP agent process exited, with its `code` and `signal`, always at `warn`. `requested` is true when the bridge closed it normally, false for an unrequested or fault-driven exit.",
|
|
8587
|
+
"http.route-failed": "An HTTP route answered 500; its error message is not logged because it can hold content.",
|
|
8563
8588
|
"server.listening": "The HTTP server is listening.",
|
|
8589
|
+
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
8564
8590
|
"state.composer-reset": "A saved composer state was malformed and was reset.",
|
|
8565
8591
|
"state.discarded": "Saved bridge state could not be used and was discarded.",
|
|
8566
8592
|
"state.persist-failed": "Saving bridge state failed; a later write retries.",
|
|
@@ -8614,7 +8640,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8614
8640
|
"session.created": "A session was created or recovered.",
|
|
8615
8641
|
"session.delete-failed": "Deleting a session failed.",
|
|
8616
8642
|
"session.fork-failed": "Forking a session failed.",
|
|
8617
|
-
"session.policy-widening-refused": "A
|
|
8643
|
+
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
8618
8644
|
"session.rename-failed": "Renaming a session failed.",
|
|
8619
8645
|
"session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
|
|
8620
8646
|
"session.rewind-failed": "Rewinding session files failed.",
|
|
@@ -8648,6 +8674,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8648
8674
|
"app-server.exited": "app-server exited unexpectedly; the code and signal say how.",
|
|
8649
8675
|
"app-server.invariant-violation": "app-server asked for something its configuration forbids.",
|
|
8650
8676
|
"app-server.protocol-violation": "app-server wrote a line that is not valid protocol; it was ignored.",
|
|
8677
|
+
"app-server.overflow-restart-failed": "Replacing the child after a notification queue overflow failed; the next request tries again.",
|
|
8651
8678
|
"app-server.recording": "Notification recording is on; recordings hold content.",
|
|
8652
8679
|
"app-server.stale-reaped": "A stale app-server left by an earlier bridge was stopped.",
|
|
8653
8680
|
"app-server.stderr": "Metadata of an app-server stderr line, never its content.",
|
|
@@ -8678,6 +8705,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8678
8705
|
"ordered-events.publish-failed": "Publishing an ordered event failed; clients are told to rehydrate.",
|
|
8679
8706
|
"ordered-events.reconcile-failed": "Reconciling ordered events failed.",
|
|
8680
8707
|
"parent.gone": "The backend that launched this bridge has gone; stopping turns and shutting down.",
|
|
8708
|
+
"queue.overflow": "The notification queue passed a bound and dropped its backlog.",
|
|
8681
8709
|
"queue.task-failed": "A task on a per-thread queue failed.",
|
|
8682
8710
|
"raw-log.write-failed": "Appending to the raw Codex log failed.",
|
|
8683
8711
|
"recorder.notice": "The notification recorder needs attention: it is on, or was asked for without its confirmation.",
|
|
@@ -8691,6 +8719,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8691
8719
|
"server-request.flush-timeout": "An answer to a server request did not flush in time.",
|
|
8692
8720
|
"server-request.handoff-failed": "Handing a server request to the router threw.",
|
|
8693
8721
|
"session.config-apply-failed": "Applying session configuration failed; the route answers unavailable.",
|
|
8722
|
+
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
8694
8723
|
"sse.closed": "An event stream was closed by the bridge; the client reconnects and replays.",
|
|
8695
8724
|
"sse.keepalive-failed": "An event stream keepalive failed.",
|
|
8696
8725
|
"sse.observer-failed": "An event stream observer failed; it reconnects.",
|
|
@@ -8719,19 +8748,39 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
8719
8748
|
events: {
|
|
8720
8749
|
"agent.archive-failed": "Archiving or unarchiving an agent failed.",
|
|
8721
8750
|
"http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
|
|
8751
|
+
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
8722
8752
|
"startup.closes-failed": "Finishing closes a previous process left behind failed at startup.",
|
|
8723
8753
|
"startup.closes-incomplete": "Some closes a previous process left behind did not finish at startup; a retried close finishes them.",
|
|
8724
8754
|
"state.publication-failing": "Saving bridge state is failing; new prompts and steers are refused until it recovers.",
|
|
8725
8755
|
"state.publication-recovered": "Saving bridge state recovered.",
|
|
8726
|
-
"state.transcripts-shortened": "The state file reached its limit, so some sessions were saved with a shortened transcript copy."
|
|
8756
|
+
"state.transcripts-shortened": "The state file reached its limit, so some sessions were saved with a shortened transcript copy.",
|
|
8757
|
+
"session.resume-fell-back": {
|
|
8758
|
+
description: "A saved conversation could not be resumed, so a new one started; its error message is not logged because it can hold content.",
|
|
8759
|
+
essential: true,
|
|
8760
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8761
|
+
},
|
|
8762
|
+
"turn.failed": "A turn failed; its error message is not logged because it can hold content. A cancelled turn is not a failure.",
|
|
8763
|
+
"turn.recovery-failed": "A run recovered after a bridge restart ended in failure, or could not be followed. A cancelled run is not a failure.",
|
|
8764
|
+
"turn.send-failed": "Sending a prompt to Cursor failed, so whether its run started is unknown; its error message is not logged because it can hold content.",
|
|
8765
|
+
"turn.timed-out": "A turn outlived its time budget, so its run was asked to cancel; `turn.failed` follows if it never stops."
|
|
8727
8766
|
}
|
|
8728
8767
|
},
|
|
8729
8768
|
"bridge.pi": {
|
|
8730
8769
|
description: "The Pi bridge: its routes, sessions and saved state.",
|
|
8731
8770
|
events: {
|
|
8732
8771
|
"http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
|
|
8772
|
+
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
8773
|
+
"session-list.failed": "Reading the resumable sessions failed, so none were offered; its error message is not logged because it can hold content.",
|
|
8733
8774
|
"state.over-budget": "The state file stayed over budget after shedding transcripts, so the write was skipped.",
|
|
8734
|
-
"state.transcripts-shed": "The state file was over budget, so some sessions were saved without their transcript."
|
|
8775
|
+
"state.transcripts-shed": "The state file was over budget, so some sessions were saved without their transcript.",
|
|
8776
|
+
"session.resume-fell-back": {
|
|
8777
|
+
description: "A saved conversation could not be reopened, so a new one started; its error message is not logged because it can hold content.",
|
|
8778
|
+
essential: true,
|
|
8779
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8780
|
+
},
|
|
8781
|
+
"turn.failed": "A turn failed; its error message is not logged because it can hold content. A cancelled turn is not a failure.",
|
|
8782
|
+
"turn.refused": "Pi refused a prompt before starting a run, so nothing ran; its error message is not logged because it can hold content.",
|
|
8783
|
+
"turn.startup-timed-out": "Pi did not start a turn within its startup deadline, so the prompt was abandoned."
|
|
8735
8784
|
}
|
|
8736
8785
|
}
|
|
8737
8786
|
});
|
|
@@ -8742,14 +8791,31 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
8742
8791
|
description: "The Electron main process: startup, windows, quit and the Local backend's life.",
|
|
8743
8792
|
events: {
|
|
8744
8793
|
"backend.docker-context-seed-failed": "An agent-test profile fell back to the default Docker context.",
|
|
8745
|
-
"backend.exited":
|
|
8746
|
-
|
|
8794
|
+
"backend.exited": {
|
|
8795
|
+
description: "The Local backend exited unexpectedly; Local work is unavailable. `error.exitCode` and `error.signal` say how.",
|
|
8796
|
+
essential: true,
|
|
8797
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8798
|
+
},
|
|
8799
|
+
"backend.exited-recovering": {
|
|
8800
|
+
description: "The Local backend exited just after a remote update; relaunching unattended. `error.exitCode` and `error.signal` say how.",
|
|
8801
|
+
essential: true,
|
|
8802
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8803
|
+
},
|
|
8747
8804
|
"backend.keychain-link-remove-failed": "An agent-test profile kept a legacy link to the host keychain.",
|
|
8748
|
-
"backend.start-failed":
|
|
8805
|
+
"backend.start-failed": {
|
|
8806
|
+
description: "The Local backend did not start; continuing with remote machines.",
|
|
8807
|
+
essential: true,
|
|
8808
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8809
|
+
},
|
|
8749
8810
|
"clipboard.write-failed": "Writing text to the system clipboard failed.",
|
|
8750
8811
|
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
8751
8812
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
8752
|
-
"main-thread.stalled":
|
|
8813
|
+
"main-thread.stalled": {
|
|
8814
|
+
description: "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
8815
|
+
essential: true,
|
|
8816
|
+
minLevel: "error",
|
|
8817
|
+
fields: { lagMs: "number", intervalMs: "number" }
|
|
8818
|
+
},
|
|
8753
8819
|
"quit.stopping-backend": "The app is quitting and has asked the Local backend to stop.",
|
|
8754
8820
|
"relaunch.schedule-failed": "The AppImage relaunch waiter failed; using Electron's relauncher.",
|
|
8755
8821
|
"relaunch.service-register-failed": "The AppImage relaunch service was refused; using a detached waiter.",
|
|
@@ -8760,7 +8826,11 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
8760
8826
|
"saved-machines.attach-failed": "Saved machines were not imported into the command node yet.",
|
|
8761
8827
|
"saved-machines.attached": "Saved machines were imported into the local command node.",
|
|
8762
8828
|
"startup.failed": "The application failed to start.",
|
|
8763
|
-
"uncaught-exception":
|
|
8829
|
+
"uncaught-exception": {
|
|
8830
|
+
description: "The main process hit an uncaught exception.",
|
|
8831
|
+
essential: true,
|
|
8832
|
+
fields: ESSENTIAL_ERROR_FIELDS
|
|
8833
|
+
},
|
|
8764
8834
|
"uncaught-exception.dialog-failed": "The uncaught exception sheet could not be shown.",
|
|
8765
8835
|
"window.create-failed": "A menu-driven new window could not be created.",
|
|
8766
8836
|
"window.recreate-failed": "The main window could not be recreated on activation.",
|
|
@@ -8783,6 +8853,12 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
8783
8853
|
"unhandled-rejection": "An unhandled rejection occurred while the renderer was starting."
|
|
8784
8854
|
}
|
|
8785
8855
|
},
|
|
8856
|
+
"desktop.permissions": {
|
|
8857
|
+
description: "Permission requests refused on the renderer and workspace realm sessions.",
|
|
8858
|
+
events: {
|
|
8859
|
+
denied: "A renderer asked for a permission the policy does not grant."
|
|
8860
|
+
}
|
|
8861
|
+
},
|
|
8786
8862
|
"desktop.dialog": {
|
|
8787
8863
|
description: "Native dialogs, whose modal loops hold the main thread while they are open.",
|
|
8788
8864
|
events: {
|
|
@@ -8901,6 +8977,8 @@ var GATEWAY_LOG_AREAS = defineLogAreas({
|
|
|
8901
8977
|
"loopback.unavailable": "The loopback client listener could not start.",
|
|
8902
8978
|
"auth-token.stored": "The gateway token's file was written. The path only, never the token.",
|
|
8903
8979
|
"auth-token.persist-failed": "The gateway token could not be saved.",
|
|
8980
|
+
"auth-guess.throttled": "A listener saw enough different wrong tokens that it now pauses new ones. Never the values.",
|
|
8981
|
+
"host.refused": "A request named a host this gateway does not answer to. Logged once per name, up to a limit.",
|
|
8904
8982
|
"port.fallback": "The preferred port was taken, so a nearby one is used.",
|
|
8905
8983
|
"port.fallback-distant": "The preferred port and those nearby were taken, so another is used.",
|
|
8906
8984
|
"request.failed": "A gateway request failed. Throttled: repeats are counted, not written.",
|
|
@@ -8944,6 +9022,22 @@ var LOCAL_SERVER_LOG_AREAS = defineLogAreas({
|
|
|
8944
9022
|
"bridge-runtime.installed": "A bridge runtime finished installing.",
|
|
8945
9023
|
"opencode.database-lost-retrying": "OpenCode lost its shared database at startup, so it is retried.",
|
|
8946
9024
|
"server.stopping": "A local server is being stopped, for the fixed `reason` given.",
|
|
9025
|
+
"bridge.started": {
|
|
9026
|
+
description: "A local bridge process was spawned; `key` names its kind and environment.",
|
|
9027
|
+
essential: true,
|
|
9028
|
+
fields: { key: "label", pid: "number" }
|
|
9029
|
+
},
|
|
9030
|
+
"bridge.exited": {
|
|
9031
|
+
description: "A local bridge process exited, with its `code` and `signal`. `warn` when nothing asked it to, whatever the code; `info` when the backend stopped it, which `server.stopping` explains.",
|
|
9032
|
+
essential: true,
|
|
9033
|
+
fields: {
|
|
9034
|
+
key: "label",
|
|
9035
|
+
pid: "number",
|
|
9036
|
+
code: "number",
|
|
9037
|
+
signal: "label",
|
|
9038
|
+
requested: "boolean"
|
|
9039
|
+
}
|
|
9040
|
+
},
|
|
8947
9041
|
"reaper.tmux-list-failed": "Orphaned claude-tmux sessions could not be listed.",
|
|
8948
9042
|
"reaper.tmux-kill-failed": "An orphaned tmux session could not be killed.",
|
|
8949
9043
|
"reaper.tmux-reaped": "Orphaned claude-tmux sessions of a deleted environment were killed.",
|
|
@@ -8977,13 +9071,29 @@ var LOGGING_LOG_AREAS = defineLogAreas({
|
|
|
8977
9071
|
"capture.started": "Saving logs to disk began for this process.",
|
|
8978
9072
|
"capture.stopped": "Saving logs to disk stopped for this process.",
|
|
8979
9073
|
"config.invalid": "A logging environment variable held a value that was ignored.",
|
|
8980
|
-
"entries.dropped":
|
|
9074
|
+
"entries.dropped": {
|
|
9075
|
+
description: "Entries were dropped and counted, for the fixed `reason` given: the queue was full, a write failed or, in the essential log, one event was repeating too fast.",
|
|
9076
|
+
essential: true,
|
|
9077
|
+
fields: { entries: "number", bytes: "number", reason: "label" }
|
|
9078
|
+
},
|
|
9079
|
+
"essential.started": {
|
|
9080
|
+
description: "This process began writing the essential log. One with no `essential.stopped` before it means the last writer died.",
|
|
9081
|
+
essential: true,
|
|
9082
|
+
fields: { owner: "label" }
|
|
9083
|
+
},
|
|
9084
|
+
"essential.stopped": {
|
|
9085
|
+
description: "This process stopped writing the essential log, in an orderly exit.",
|
|
9086
|
+
essential: true,
|
|
9087
|
+
fields: { owner: "label" }
|
|
9088
|
+
},
|
|
9089
|
+
"essential.write-failed": "Writing the essential log failed. Its entries are counted, and a marker reports them at the next write that works.",
|
|
8981
9090
|
"policy.changed": "The logging settings changed: saving, retention and levels, with no content.",
|
|
8982
9091
|
"policy.bridge-predates-route": "A running bridge has no logging settings route; it applies them at its next start.",
|
|
8983
9092
|
"policy.push-failed": "A running bridge did not take the logging settings after retries; its next start resends them.",
|
|
8984
9093
|
"prune.failed": "Removing expired log files failed; the next sweep retries.",
|
|
8985
9094
|
"write.failed": "Appending to the log file failed.",
|
|
8986
|
-
"unknown-area": "Code outside the type checker asked for an area that is not listed."
|
|
9095
|
+
"unknown-area": "Code outside the type checker asked for an area that is not listed.",
|
|
9096
|
+
...THROTTLE_LOG_EVENTS
|
|
8987
9097
|
}
|
|
8988
9098
|
}
|
|
8989
9099
|
});
|
|
@@ -9108,7 +9218,28 @@ var RUNTIME_LOG_AREAS = defineLogAreas({
|
|
|
9108
9218
|
"event-loop": {
|
|
9109
9219
|
description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
|
|
9110
9220
|
events: {
|
|
9111
|
-
stalled:
|
|
9221
|
+
stalled: {
|
|
9222
|
+
description: "A timer fired late, so every request in that window waited.",
|
|
9223
|
+
essential: true,
|
|
9224
|
+
minLevel: "error",
|
|
9225
|
+
fields: { lagMs: "number", intervalMs: "number" }
|
|
9226
|
+
}
|
|
9227
|
+
}
|
|
9228
|
+
},
|
|
9229
|
+
process: {
|
|
9230
|
+
description: "Failures of a whole process that nothing in it handled.",
|
|
9231
|
+
events: {
|
|
9232
|
+
"rejection.unhandled": {
|
|
9233
|
+
description: "A promise rejection reached the fatal rejection guard, which keeps the process running.",
|
|
9234
|
+
essential: true,
|
|
9235
|
+
fields: { kind: "label", ...ESSENTIAL_ERROR_FIELDS }
|
|
9236
|
+
},
|
|
9237
|
+
"uncaught-exception": {
|
|
9238
|
+
description: "An exception reached the top of the backend, which is about to die with it. `origin` says whether it was thrown or a rejected top-level await.",
|
|
9239
|
+
essential: true,
|
|
9240
|
+
fields: { origin: "label", ...ESSENTIAL_ERROR_FIELDS }
|
|
9241
|
+
},
|
|
9242
|
+
...THROTTLE_LOG_EVENTS
|
|
9112
9243
|
}
|
|
9113
9244
|
}
|
|
9114
9245
|
});
|
|
@@ -9346,21 +9477,43 @@ var STORAGE_LOG_AREAS = defineLogAreas({
|
|
|
9346
9477
|
description: "The SQLite-backed stores, their snapshots and imports from older formats.",
|
|
9347
9478
|
events: {
|
|
9348
9479
|
"usage.environment-label-failed": "Usage labels could not be retained for a removed environment; deletion continues.",
|
|
9349
|
-
"
|
|
9480
|
+
"migration.failed": {
|
|
9481
|
+
description: "The database could not be brought to this build's schema, so it did not open; `step` says whether the safety copy or the migration itself failed.",
|
|
9482
|
+
essential: true,
|
|
9483
|
+
fields: {
|
|
9484
|
+
fromVersion: "number",
|
|
9485
|
+
toVersion: "number",
|
|
9486
|
+
step: "label",
|
|
9487
|
+
...ESSENTIAL_ERROR_FIELDS
|
|
9488
|
+
}
|
|
9489
|
+
},
|
|
9490
|
+
"snapshot.integrity-failed": {
|
|
9491
|
+
description: "A database snapshot failed its integrity check and was discarded.",
|
|
9492
|
+
essential: true,
|
|
9493
|
+
fields: {}
|
|
9494
|
+
},
|
|
9350
9495
|
"snapshot.skipped-low-disk": "The hourly database snapshot was skipped because the disk lacks room; `retryAt` says when it tries again.",
|
|
9351
|
-
"snapshot.failed":
|
|
9496
|
+
"snapshot.failed": {
|
|
9497
|
+
description: "The hourly database snapshot failed; `retryAt` says when it tries again, if known.",
|
|
9498
|
+
essential: true,
|
|
9499
|
+
fields: { retryAt: "label", ...ESSENTIAL_ERROR_FIELDS }
|
|
9500
|
+
},
|
|
9352
9501
|
"listener.attention-failed": "An environment attention listener threw; the committed mutation stands.",
|
|
9353
9502
|
"listener.change-failed": "A resource change listener threw; the committed mutation stands.",
|
|
9354
9503
|
"kanban.image-cleanup-failed": "An orphaned Kanban image could not be removed after its retries; it is safe to remove later.",
|
|
9355
9504
|
"nodes.entries-dropped": "Unreadable node registry entries were ignored.",
|
|
9356
9505
|
"preview-identity.reminted": "The data directory moved or was copied, so previews get a new backend identity.",
|
|
9506
|
+
"preview-settings.invalid": "Invalid preview settings disabled transport and relay.",
|
|
9357
9507
|
"machine-profile.invalid": "The stored machine profile was invalid and the default was restored.",
|
|
9358
9508
|
"permission-rules.cleanup-failed": "A deleted project's permission rules could not be removed.",
|
|
9359
9509
|
"retired.turn-cleanup-pending": "Cleanup of a retired Looped Review turn did not finish and stays pending.",
|
|
9360
9510
|
"handoffs.prune-failed": "Pruning agent handoffs that nothing references failed; a later prune retries.",
|
|
9361
9511
|
"desktop-connections.malformed": "Stored desktop connection settings were malformed, so the local connection is used.",
|
|
9362
9512
|
"legacy-json.moved": "JSON store files written after the SQLite migration were archived, not imported.",
|
|
9363
|
-
"legacy-json.archive-failed": "Imported JSON store files could not be archived."
|
|
9513
|
+
"legacy-json.archive-failed": "Imported JSON store files could not be archived.",
|
|
9514
|
+
"lease.heartbeat-failed": "A held lease's heartbeat failed, which shortens the lease; the next one retries.",
|
|
9515
|
+
"scrub.checkpoint-failed": "Deleted content could not be scrubbed from the WAL because the truncating checkpoint failed or was blocked; the next checkpoint retries.",
|
|
9516
|
+
...THROTTLE_LOG_EVENTS
|
|
9364
9517
|
}
|
|
9365
9518
|
}
|
|
9366
9519
|
});
|
|
@@ -9468,8 +9621,10 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
9468
9621
|
"remote-worker.settle-failed": "A remote worker could not be settled.",
|
|
9469
9622
|
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
9470
9623
|
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
9471
|
-
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded, or `outcome` says why not (`timed-out`, `failed`).",
|
|
9472
|
-
"checkout.mail-follow-failed": "Before mail woke the main coordinator, checking whether to fast-forward the project checkout failed; the mail was delivered anyway."
|
|
9624
|
+
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded (`fast-forwarded-fetched` when the fetch was slow or failed and the upstream commit already fetched was merged), or `outcome` says why not (`timed-out`, `failed`).",
|
|
9625
|
+
"checkout.mail-follow-failed": "Before mail woke the main coordinator, checking whether to fast-forward the project checkout failed; the mail was delivered anyway.",
|
|
9626
|
+
"checkout.message-check": "Before a typed message to the main coordinator, the backend answered whether to fast-forward the project checkout: `outcome` (`offer`, `fast-forwarded`, `turn-running`, `not-behind`, `blocked`, `no-status`), `fetch` (`fetched`, `failed`, `timed-out`, `skipped`) and `durationMs`.",
|
|
9627
|
+
"checkout.message-check-failed": "Before a typed message to the main coordinator, fast-forwarding to the upstream commit already fetched failed after a slow or failed fetch; the message was sent anyway."
|
|
9473
9628
|
}
|
|
9474
9629
|
}
|
|
9475
9630
|
});
|
|
@@ -9572,7 +9727,27 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
9572
9727
|
"recovery.clear-terminals-failed": "Terminal sessions could not be cleared after a recovery restore.",
|
|
9573
9728
|
"github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container, so its firewall fetches them.",
|
|
9574
9729
|
"availability.probe-failed": "Docker is not available; written when the diagnostic changes. Fixed-shape metadata only: messages can hold daemon endpoints.",
|
|
9575
|
-
"start.port-collision-retrying": "An automatic host port collided on start, so it is retried once with fresh ports."
|
|
9730
|
+
"start.port-collision-retrying": "An automatic host port collided on start, so it is retried once with fresh ports.",
|
|
9731
|
+
"writer-lease.lost": {
|
|
9732
|
+
description: "This backend lost the registry writer lease, for the fixed `reason` given. Schedules stop and container changes are refused until it restarts.",
|
|
9733
|
+
essential: true,
|
|
9734
|
+
fields: { reason: "label" }
|
|
9735
|
+
},
|
|
9736
|
+
"writer-lease.regained": {
|
|
9737
|
+
description: "This backend took the registry writer lease over from a holder that stopped refreshing it (it crashed, was killed or stalled), `staleForMs` after its last refresh. The counterpart of that holder's `writer-lease.lost` with reason `reclaimed`; a lease left by a clean shutdown is acquired silently.",
|
|
9738
|
+
essential: true,
|
|
9739
|
+
fields: { staleForMs: "number" }
|
|
9740
|
+
},
|
|
9741
|
+
"writer-lease.not-acquired": {
|
|
9742
|
+
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes.",
|
|
9743
|
+
essential: true,
|
|
9744
|
+
fields: { reason: "label" }
|
|
9745
|
+
},
|
|
9746
|
+
"bridge.launched": {
|
|
9747
|
+
description: "A bridge process was launched in a container, for the first time there or as a relaunch; `provider` names it. A relaunch keeps the run before it in the previous log.",
|
|
9748
|
+
essential: true,
|
|
9749
|
+
fields: { provider: "label", containerPort: "number" }
|
|
9750
|
+
}
|
|
9576
9751
|
}
|
|
9577
9752
|
},
|
|
9578
9753
|
"docker.reachability": {
|
|
@@ -10280,6 +10455,125 @@ var LOG_VOCABULARY = {
|
|
|
10280
10455
|
...WEB_SYNC_LOG_AREAS
|
|
10281
10456
|
};
|
|
10282
10457
|
|
|
10458
|
+
// ../protocol/src/log-essential-labels.ts
|
|
10459
|
+
var ERROR_NAMES = new Set([
|
|
10460
|
+
"Error",
|
|
10461
|
+
"TypeError",
|
|
10462
|
+
"RangeError",
|
|
10463
|
+
"ReferenceError",
|
|
10464
|
+
"SyntaxError",
|
|
10465
|
+
"URIError",
|
|
10466
|
+
"EvalError",
|
|
10467
|
+
"AggregateError",
|
|
10468
|
+
"AbortError",
|
|
10469
|
+
"TimeoutError",
|
|
10470
|
+
"SystemError"
|
|
10471
|
+
]);
|
|
10472
|
+
var ERROR_CODES = new Set([
|
|
10473
|
+
"EACCES",
|
|
10474
|
+
"EADDRINUSE",
|
|
10475
|
+
"EADDRNOTAVAIL",
|
|
10476
|
+
"EAGAIN",
|
|
10477
|
+
"EBADF",
|
|
10478
|
+
"EBUSY",
|
|
10479
|
+
"ECANCELED",
|
|
10480
|
+
"ECONNABORTED",
|
|
10481
|
+
"ECONNREFUSED",
|
|
10482
|
+
"ECONNRESET",
|
|
10483
|
+
"EEXIST",
|
|
10484
|
+
"EHOSTUNREACH",
|
|
10485
|
+
"EINTR",
|
|
10486
|
+
"EINVAL",
|
|
10487
|
+
"EIO",
|
|
10488
|
+
"EISDIR",
|
|
10489
|
+
"EMFILE",
|
|
10490
|
+
"ENETUNREACH",
|
|
10491
|
+
"ENFILE",
|
|
10492
|
+
"ENOENT",
|
|
10493
|
+
"ENOMEM",
|
|
10494
|
+
"ENOSPC",
|
|
10495
|
+
"ENOSYS",
|
|
10496
|
+
"ENOTDIR",
|
|
10497
|
+
"ENOTEMPTY",
|
|
10498
|
+
"ENOTFOUND",
|
|
10499
|
+
"EPERM",
|
|
10500
|
+
"EPIPE",
|
|
10501
|
+
"EROFS",
|
|
10502
|
+
"ETIMEDOUT",
|
|
10503
|
+
"EXDEV",
|
|
10504
|
+
"SQLITE_BUSY",
|
|
10505
|
+
"SQLITE_CORRUPT",
|
|
10506
|
+
"SQLITE_FULL",
|
|
10507
|
+
"SQLITE_IOERR",
|
|
10508
|
+
"SQLITE_NOTADB",
|
|
10509
|
+
"SQLITE_READONLY",
|
|
10510
|
+
"ERR_CANCELED",
|
|
10511
|
+
"ERR_STREAM_DESTROYED"
|
|
10512
|
+
]);
|
|
10513
|
+
var SYSCALLS = new Set([
|
|
10514
|
+
"open",
|
|
10515
|
+
"read",
|
|
10516
|
+
"write",
|
|
10517
|
+
"stat",
|
|
10518
|
+
"lstat",
|
|
10519
|
+
"mkdir",
|
|
10520
|
+
"rmdir",
|
|
10521
|
+
"readdir",
|
|
10522
|
+
"rename",
|
|
10523
|
+
"unlink",
|
|
10524
|
+
"fsync",
|
|
10525
|
+
"fdatasync",
|
|
10526
|
+
"close",
|
|
10527
|
+
"access",
|
|
10528
|
+
"chmod",
|
|
10529
|
+
"copyfile",
|
|
10530
|
+
"connect",
|
|
10531
|
+
"listen",
|
|
10532
|
+
"bind",
|
|
10533
|
+
"spawn",
|
|
10534
|
+
"kill",
|
|
10535
|
+
"getaddrinfo"
|
|
10536
|
+
]);
|
|
10537
|
+
var SIGNALS = new Set([
|
|
10538
|
+
"SIGABRT",
|
|
10539
|
+
"SIGALRM",
|
|
10540
|
+
"SIGBUS",
|
|
10541
|
+
"SIGCHLD",
|
|
10542
|
+
"SIGCONT",
|
|
10543
|
+
"SIGFPE",
|
|
10544
|
+
"SIGHUP",
|
|
10545
|
+
"SIGILL",
|
|
10546
|
+
"SIGINT",
|
|
10547
|
+
"SIGKILL",
|
|
10548
|
+
"SIGPIPE",
|
|
10549
|
+
"SIGQUIT",
|
|
10550
|
+
"SIGSEGV",
|
|
10551
|
+
"SIGSTOP",
|
|
10552
|
+
"SIGTERM",
|
|
10553
|
+
"SIGTRAP",
|
|
10554
|
+
"SIGTSTP",
|
|
10555
|
+
"SIGTTIN",
|
|
10556
|
+
"SIGTTOU",
|
|
10557
|
+
"SIGUSR1",
|
|
10558
|
+
"SIGUSR2",
|
|
10559
|
+
"SIGWINCH",
|
|
10560
|
+
"SIGXCPU",
|
|
10561
|
+
"SIGXFSZ"
|
|
10562
|
+
]);
|
|
10563
|
+
var PROVIDERS = new Set(["claude", "codex", "opencode", "cursor", "grok", "acp", "pi"]);
|
|
10564
|
+
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
10565
|
+
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
10566
|
+
|
|
10567
|
+
// ../protocol/src/log-essential.ts
|
|
10568
|
+
var UNDECLARED_ERROR_LABELS = new Set([
|
|
10569
|
+
"site",
|
|
10570
|
+
"kind",
|
|
10571
|
+
"step",
|
|
10572
|
+
"reason",
|
|
10573
|
+
"signal",
|
|
10574
|
+
"code"
|
|
10575
|
+
]);
|
|
10576
|
+
|
|
10283
10577
|
// ../protocol/src/log-error.ts
|
|
10284
10578
|
var safeErrors = new WeakSet;
|
|
10285
10579
|
|
|
@@ -10306,6 +10600,16 @@ var LOG_THROTTLE_WINDOW_MS = 60000;
|
|
|
10306
10600
|
var LOG_THROTTLE_IDLE_MS = 5 * LOG_THROTTLE_WINDOW_MS;
|
|
10307
10601
|
var throttledSites = new Map;
|
|
10308
10602
|
|
|
10603
|
+
// ../protocol/src/node/essential-log.ts
|
|
10604
|
+
var DEFAULT_ESSENTIAL_LOG_BOUNDS = {
|
|
10605
|
+
maxFileBytes: 1024 * 1024,
|
|
10606
|
+
rotatedFiles: 3,
|
|
10607
|
+
maxEntryBytes: 4 * 1024,
|
|
10608
|
+
maxPendingBytes: 256 * 1024,
|
|
10609
|
+
eventBurst: 10,
|
|
10610
|
+
eventRefillMs: 10 * 60 * 1000
|
|
10611
|
+
};
|
|
10612
|
+
|
|
10309
10613
|
// ../protocol/src/log-policy.ts
|
|
10310
10614
|
var DEFAULT_LOG_LEVEL = "info";
|
|
10311
10615
|
var BRIDGE_LOG_SCOPE = "bridge";
|
|
@@ -10353,6 +10657,8 @@ function resolveLogDetail(source) {
|
|
|
10353
10657
|
// ../protocol/src/node/application-logging.ts
|
|
10354
10658
|
var LOG_CLEANUP_INTERVAL_MS = 6 * 60 * 60 * 1000;
|
|
10355
10659
|
var MAX_PENDING_LOG_BYTES = 4 * 1024 * 1024;
|
|
10660
|
+
var MAX_PENDING_LOG_ENTRIES = 64 * 1024;
|
|
10661
|
+
var MAX_LOG_BATCH_BYTES = 256 * 1024;
|
|
10356
10662
|
var MAX_LOG_ENTRY_BYTES = 64 * 1024;
|
|
10357
10663
|
var MAX_LOG_FILE_BYTES = 32 * 1024 * 1024;
|
|
10358
10664
|
var MAX_LOG_DIRECTORY_BYTES = 512 * 1024 * 1024;
|
|
@@ -10665,7 +10971,7 @@ import path5 from "path";
|
|
|
10665
10971
|
// ../../apps/backend/package.json
|
|
10666
10972
|
var package_default = {
|
|
10667
10973
|
name: "@orkestrator/backend",
|
|
10668
|
-
version: "2.36.
|
|
10974
|
+
version: "2.36.2-beta",
|
|
10669
10975
|
private: true,
|
|
10670
10976
|
type: "module",
|
|
10671
10977
|
exports: {
|
|
@@ -10770,6 +11076,8 @@ init_agent_platforms();
|
|
|
10770
11076
|
var AGENT_MAIL_MAX_BODY_BYTES = 32 * 1024;
|
|
10771
11077
|
var AGENT_MAIL_MAX_STORE_BYTES = 32 * 1024 * 1024;
|
|
10772
11078
|
var AGENT_MAIL_DEFAULT_RETENTION_DAYS = 14;
|
|
11079
|
+
var AGENT_MAIL_MAX_ATTACHMENT_BYTES = 8 * 1024 * 1024;
|
|
11080
|
+
var AGENT_MAIL_MAX_TOTAL_ATTACHMENT_BYTES = 32 * 1024 * 1024;
|
|
10773
11081
|
var AGENT_MAIL_DEFAULT_AUTONOMOUS_WAKE_BUDGET = 16;
|
|
10774
11082
|
var AGENT_MAIL_DEFAULT_HOURLY_WAKE_LIMIT = 40;
|
|
10775
11083
|
var AGENT_MAIL_TOOL_NAMES = Object.freeze([
|
|
@@ -10906,7 +11214,7 @@ var PERMISSION_RULE_PROVIDERS = [
|
|
|
10906
11214
|
"grok",
|
|
10907
11215
|
"pi"
|
|
10908
11216
|
];
|
|
10909
|
-
var
|
|
11217
|
+
var PROVIDERS2 = new Set(PERMISSION_RULE_PROVIDERS);
|
|
10910
11218
|
var KINDS = new Set(PERMISSION_RULE_KINDS);
|
|
10911
11219
|
var SCOPES = new Set(PERMISSION_RULE_SCOPES);
|
|
10912
11220
|
var UNQUOTED_REFUSED = new Set([
|
|
@@ -11181,7 +11489,7 @@ var AGENT_INTERACTION_AUTHORIZATION_KINDS = [
|
|
|
11181
11489
|
];
|
|
11182
11490
|
var INPUT_KINDS = new Set(AGENT_INTERACTION_INPUT_KINDS);
|
|
11183
11491
|
var AUTHORIZATION_KINDS = new Set(AGENT_INTERACTION_AUTHORIZATION_KINDS);
|
|
11184
|
-
var
|
|
11492
|
+
var PROVIDERS3 = new Set(AGENT_INTERACTION_PROVIDERS);
|
|
11185
11493
|
var KINDS2 = new Set(AGENT_INTERACTION_KINDS);
|
|
11186
11494
|
var ORIGINS = new Set(AGENT_INTERACTION_ORIGINS);
|
|
11187
11495
|
var STATES = new Set(AGENT_INTERACTION_STATES);
|