orkestrator 2.35.3-beta → 2.35.4-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 CHANGED
@@ -7923,7 +7923,7 @@ function describeBugReportBackend(facts) {
7923
7923
  return parts.filter(Boolean).join(", ");
7924
7924
  }
7925
7925
  function describeBugReportLogs(facts) {
7926
- const state = facts.debugLogging ? "on" : "off (Settings \u2192 Debug \u2192 Save Logs for Debugging); new events are not being written";
7926
+ const state = facts.debugLogging ? "on" : "off (Settings \u2192 Debug \u2192 Save Logs to Disk); new events are not being written";
7927
7927
  const lines = [`- Logs directory: ${facts.logsDir} \u2014 debug logging is ${state}`];
7928
7928
  if (facts.recentLogs.length === 0) {
7929
7929
  lines.push("- Log files: none");
@@ -7955,7 +7955,7 @@ function bugReportDiagnosticsSection(connectionLine) {
7955
7955
  "Gather evidence yourself instead of asking me to copy it. Before each command, say in one sentence what it checks. Stay read-only: do not edit, delete, move, restart, reinstall or update anything, and do not change Orkestrator's data directory or settings. If something needs changing, explain it and let me do it.",
7956
7956
  "Useful sources:",
7957
7957
  "- Log files: `orkestrator-ai-YYYY-MM-DD.log` is the desktop app (it includes its backend's output), `orkestrator-backend-YYYY-MM-DD.log` a standalone backend; JSON mode uses `.jsonl` instead of `.log`. A busy day continues in `.1.log`, `.2.log` (or `.1.jsonl`, `.2.jsonl`), and so on. Search around the time of the problem (errors, warnings, stack traces, the environment or session name) rather than reading whole files.",
7958
- "- If debug logging is off or the logs predate the problem, ask me to turn on Settings \u2192 Debug \u2192 Save Logs for Debugging, reproduce the problem, and tell you when I have.",
7958
+ "- If debug logging is off or the logs predate the problem, ask me to turn on Settings \u2192 Debug \u2192 Save Logs to Disk, reproduce the problem, and tell you when I have.",
7959
7959
  connectionLine,
7960
7960
  "- Docker environments: `docker version`, `docker ps -a`, and `docker logs --tail 200 <container>` for the affected container.",
7961
7961
  "- Versions: `<agent> --version` for the agents involved, `git --version`, `gh --version`; on macOS, `defaults read /Applications/OrkestratorV2.app/Contents/Info.plist CFBundleShortVersionString` for the desktop app.",
@@ -8047,9 +8047,6 @@ function normalizeDebugLogRetentionDays(value) {
8047
8047
  return isValidDebugLogRetentionDays(value) ? value : DEFAULT_DEBUG_LOG_RETENTION_DAYS;
8048
8048
  }
8049
8049
 
8050
- // ../protocol/src/log-error.ts
8051
- var safeErrors = new WeakSet;
8052
-
8053
8050
  // ../protocol/src/log-vocabulary/define.ts
8054
8051
  var THROTTLE_LOG_EVENTS = {
8055
8052
  "throttle.suppressed": "Repeats of the throttled `site` were counted over a window, not written.",
@@ -8072,6 +8069,15 @@ var AGENT_MAIL_LOG_AREAS = defineLogAreas({
8072
8069
 
8073
8070
  // ../protocol/src/log-vocabulary/backend.ts
8074
8071
  var BACKEND_LOG_AREAS = defineLogAreas({
8072
+ "build.pipeline": {
8073
+ description: "Build delivery, ticket reconciliation and persisted pipeline recovery.",
8074
+ events: {
8075
+ "delivery-policy.failed": "A ticket delivery edit could not be reconciled with the running build.",
8076
+ "criteria.failed": "Verify could not record criterion results on the ticket.",
8077
+ "transcript-maintenance.failed": "Pipeline transcript maintenance failed.",
8078
+ "hydrate.failed": "The renderer could not load the authoritative pipeline snapshot."
8079
+ }
8080
+ },
8075
8081
  "backend.activity": {
8076
8082
  description: "The backend's recurring activity and maintenance jobs.",
8077
8083
  events: {
@@ -8081,6 +8087,216 @@ var BACKEND_LOG_AREAS = defineLogAreas({
8081
8087
  }
8082
8088
  });
8083
8089
 
8090
+ // ../protocol/src/log-vocabulary/bridge.ts
8091
+ var MAX_BRIDGE_DIAGNOSTIC_BYTES = 8192;
8092
+ var BRIDGE_LOG_AREAS = defineLogAreas({
8093
+ "bridge.diagnostics": {
8094
+ description: "Metadata snapshots of bridge turns and processes, written while Save Logs for Debugging is on. docs/architecture/bridge-diagnostics.md reads them.",
8095
+ tag: "bridge-diagnostics",
8096
+ maxStringChars: MAX_BRIDGE_DIAGNOSTIC_BYTES,
8097
+ events: {
8098
+ heartbeat: "The once-a-minute snapshot of a turn or process that is still open.",
8099
+ "send-started": "A turn or process diagnostic scope began.",
8100
+ "send-resolved": "The provider accepted a dispatch.",
8101
+ "cancel-requested": "Cancellation of a turn was requested.",
8102
+ "cancel-settled": "The provider's cancel call returned or failed.",
8103
+ closed: "A diagnostic scope ended, with its final counters.",
8104
+ "snapshot-overflow": "A snapshot exceeded the bound, so only its size was written.",
8105
+ "debug-events": "A batch of allowlisted debug labels with their counts.",
8106
+ "setup-failed": "A Cursor setup step failed and swallowed its error.",
8107
+ "sdk-snapshot": "Cursor's SDK transports and executions at a boundary.",
8108
+ "sdk-snapshot-overflow": "A Cursor SDK snapshot exceeded the bound, so it was omitted."
8109
+ }
8110
+ },
8111
+ "bridge.lifecycle": {
8112
+ description: "What every long-lived bridge does the same way: its sweep and its shutdown.",
8113
+ events: {
8114
+ "idle-sweep.failed": "An idle sweep threw; the next tick retries.",
8115
+ "shutdown.failed": "Releasing the bridge failed during shutdown; it still exits."
8116
+ }
8117
+ },
8118
+ "bridge.acp": {
8119
+ description: "The ACP bridge behind Grok: its routes, sessions, saved state and change evidence.",
8120
+ events: {
8121
+ "command-change.record-failed": "A measured command change could not be recorded.",
8122
+ "evidence.record-failed": "Change evidence could not be recorded; the read loop carries on.",
8123
+ "evidence.shell-record-failed": "A shell observation could not be recorded.",
8124
+ "evidence.turn-record-failed": "Turn change evidence could not be recorded.",
8125
+ "server.listening": "The HTTP server is listening.",
8126
+ "state.composer-reset": "A saved composer state was malformed and was reset.",
8127
+ "state.discarded": "Saved bridge state could not be used and was discarded.",
8128
+ "state.persist-failed": "Saving bridge state failed; a later write retries.",
8129
+ "state.session-config-reset": "A saved session configuration was malformed and was reset."
8130
+ }
8131
+ },
8132
+ "bridge.claude": {
8133
+ description: "The Claude bridge: its routes, sessions, parked interactions and the Agent SDK turn loop.",
8134
+ events: {
8135
+ "commands.read-failed": "The command catalogue read failed; the cached answer stands.",
8136
+ "context-usage.read-failed": "The detailed context usage read failed; the route falls back.",
8137
+ "dispatch.rollback-failed": "Rolling back a prompt dispatch claim failed.",
8138
+ "event-subscriber.failed": "An event subscriber threw; other subscribers still ran.",
8139
+ "http.request-failed": "An HTTP route threw; it answered 500.",
8140
+ "mcp.config-ignored": "An MCP server configuration of an unsupported shape was ignored.",
8141
+ "mcp.read-failed": "Listing MCP servers failed; the route answered 500.",
8142
+ "models.fetch-failed": "Reading the supported models failed; the fallback catalogue is served.",
8143
+ "models.requested": "The model catalogue route was called.",
8144
+ "models.responded": "The model catalogue route answered.",
8145
+ "parent.gone": "The backend that launched this bridge has gone; shutting down.",
8146
+ "plan-approval.responding": "Answering a parked plan approval.",
8147
+ "plan-approval.response-failed": "The plan approval route failed.",
8148
+ "plan-approval.response-received": "The route received a plan approval answer.",
8149
+ "plan-approval.result": "A parked plan approval was answered.",
8150
+ "plan-approval.wait-failed": "A parked plan approval ended without an answer: cancelled, timed out or closed.",
8151
+ "plan-exit.failure-overridden": "ExitPlanMode failed after the user approved; treated as success with a continuation re-prompt.",
8152
+ "plan-mode.record-failed": "Plan mode from a status frame could not be recorded.",
8153
+ "plan.reprompt-approved-failed": "Re-prompting after an approved plan failed.",
8154
+ "plan.reprompt-feedback-failed": "Re-prompting with plan rejection feedback failed.",
8155
+ "plugin.path-missing": "A configured plugin was skipped because its path does not exist.",
8156
+ "plugin.unsafe-path": "An installed plugin was skipped because its install path is unsafe.",
8157
+ "plugins.read-failed": "Listing plugins failed; the route answered 500.",
8158
+ "prompt.accepted": "The route accepted a prompt and answered 202.",
8159
+ "prompt.failed": "A prompt turn failed; the session reports the error.",
8160
+ "prompt.processing-failed": "A prompt accepted by the route failed while processing.",
8161
+ "prompt.received": "A prompt reached the bridge; only its length is logged.",
8162
+ "prompt.send-failed": "A prompt request failed; the route answered with an error.",
8163
+ "query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
8164
+ "query.failed": "A Claude query ended with an error result.",
8165
+ "question.answer-failed": "The answer-question route failed.",
8166
+ "question.answering": "Answering a parked question.",
8167
+ "question.answers-prepared": "The route prepared a question answer for the session.",
8168
+ "question.answers-received": "A parked question received its answers.",
8169
+ "question.stale": "An answer arrived for a question no longer pending; the route answered stale.",
8170
+ "question.wait-failed": "A parked question ended without an answer: cancelled, timed out or closed.",
8171
+ "runtime.ended-under-resumed-turn": "The Claude runtime ended while a resumed root turn was still open.",
8172
+ "server.listening": "The HTTP server is listening.",
8173
+ "server.starting": "The HTTP server is about to bind.",
8174
+ "session.compact-failed": "A requested compaction failed.",
8175
+ "session.create-failed": "Creating a session failed; the route answered with an error.",
8176
+ "session.created": "A session was created or recovered.",
8177
+ "session.delete-failed": "Deleting a session failed.",
8178
+ "session.fork-failed": "Forking a session failed.",
8179
+ "session.rename-failed": "Renaming a session failed.",
8180
+ "session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
8181
+ "session.rewind-failed": "Rewinding session files failed.",
8182
+ "session.task-state-hydrate-failed": "Hydrating session task state failed; the route answered with an error.",
8183
+ "sessions.reconcile-failed": "Reconciling persisted sessions failed; the sessions already known are listed.",
8184
+ "sse.aborted": "The client closed an event stream.",
8185
+ "sse.cleanup": "An event stream connection was released.",
8186
+ "sse.closed": "An event stream was closed by the bridge; the client reconnects and replays.",
8187
+ "sse.handshake-failed": "An event stream failed during its handshake; the client reconnects.",
8188
+ "sse.keepalive-failed": "An event stream keepalive failed, usually a client that has gone; the connection closes.",
8189
+ "sse.opened": "An event stream connection opened.",
8190
+ "sse.subscribe-requested": "A client asked to subscribe to the event stream.",
8191
+ "sse.write-failed": "Writing to an event stream failed; the connection closes and the client reconnects.",
8192
+ "task.candidate-bound-reached": "An unresolved Bash call was not tracked as a background task: the candidate bound is full.",
8193
+ "task.details-persist-failed": "Shell task details could not be saved; the task carries on.",
8194
+ "task.settling-bound-reached": "A settling task was not tracked: the settling bound is full.",
8195
+ "task.stop-failed": "Stopping a background task failed on a control channel that had closed.",
8196
+ "task.stop-route-failed": "The stop-task route failed.",
8197
+ "transcript.background-hydrate-failed": "Hydrating a transcript in the background failed; the next read retries.",
8198
+ "transcript.hydrate-failed": "Hydrating a transcript before a prompt failed; the prompt runs and a later read retries."
8199
+ }
8200
+ },
8201
+ "bridge.codex": {
8202
+ description: "The Codex bridge: its routes, sessions and the app-server child it supervises.",
8203
+ events: {
8204
+ "account.connector-recovery-failed": "Recovering account connectors failed; the account answer stands.",
8205
+ "account.login-reload-failed": "Reloading the stored account login failed.",
8206
+ "account.sign-in-check-failed": "An account sign-in check failed; admission is left unchanged.",
8207
+ "account.usage-read-failed": "Reading account usage failed; the route answers 503.",
8208
+ "app-server.drain-expired": "The drain deadline expired, so app-server restarted with turns still in flight.",
8209
+ "app-server.exited": "app-server exited unexpectedly; the code and signal say how.",
8210
+ "app-server.invariant-violation": "app-server asked for something its configuration forbids.",
8211
+ "app-server.protocol-violation": "app-server wrote a line that is not valid protocol; it was ignored.",
8212
+ "app-server.recording": "Notification recording is on; recordings hold content.",
8213
+ "app-server.stale-reaped": "A stale app-server left by an earlier bridge was stopped.",
8214
+ "app-server.stderr": "Metadata of an app-server stderr line, never its content.",
8215
+ "app-server.stderr-suppressed": "app-server stderr lines beyond the budget were counted, not described.",
8216
+ "approval.cancel-failed": "Cancelling a turn after an approval answer failed.",
8217
+ "approval.present-failed": "Presenting an approval threw; it is auto-declined.",
8218
+ "approval.resolved-callback-failed": "An approval resolved callback threw.",
8219
+ "command-changes.record-failed": "Recording line changes for a command failed; the turn carries on.",
8220
+ "dispatch.reconcile-failed": "A dispatch could not be reconciled against its thread; it stays recovering.",
8221
+ "dispatch.restore-failed": "A journaled dispatch could not be restored after a restart; recovery retries.",
8222
+ "engine.listener-failed": "An engine event listener threw; the others still ran.",
8223
+ "engine.ready": "The app-server engine started.",
8224
+ "engine.start-failed": "The app-server engine failed to start; reported through health.",
8225
+ "engine.stop-failed": "Stopping the Codex engine failed during shutdown; the bridge exits anyway.",
8226
+ "generation.recovery-failed": "Recovering sessions after an app-server generation change failed.",
8227
+ "http.request-failed": "An HTTP route threw; it answered 500.",
8228
+ "idle-sweep.failed": "An idle sweep failed; the next one retries.",
8229
+ "interaction.present-failed": "Presenting an interaction threw; it is cancelled.",
8230
+ "interaction.resolved-callback-failed": "An interaction resolved callback threw.",
8231
+ "journal.persist-failed": "Saving the dispatch journal failed.",
8232
+ "message.publish-failed": "Publishing a message update failed.",
8233
+ "models.cache-persist-failed": "Saving the model cache failed.",
8234
+ "models.debug-read-failed": "`codex debug models` failed; another source is used.",
8235
+ "models.list-failed": "model/list failed; the cached models are served.",
8236
+ "models.refresh-failed": "A background model refresh failed; the cache stands.",
8237
+ "notification.enqueue-failed": "Queueing a notification threw.",
8238
+ "ordered-events.flush-failed": "Flushing before ordered-event reconciliation failed.",
8239
+ "ordered-events.publish-failed": "Publishing an ordered event failed; clients are told to rehydrate.",
8240
+ "ordered-events.reconcile-failed": "Reconciling ordered events failed.",
8241
+ "parent.gone": "The backend that launched this bridge has gone; stopping turns and shutting down.",
8242
+ "queue.task-failed": "A task on a per-thread queue failed.",
8243
+ "raw-log.write-failed": "Appending to the raw Codex log failed.",
8244
+ "recorder.notice": "The notification recorder needs attention: it is on, or was asked for without its confirmation.",
8245
+ "recorder.threw": "The notification recorder threw.",
8246
+ "recorder.write-failed": "Writing a notification recording failed; its lines were dropped.",
8247
+ "registry.persist-failed": "Saving the session registry failed; a later write retries.",
8248
+ "rollout.hydrate-failed": "A rollout could not be read to hydrate a thread.",
8249
+ "runtime-env.refresh-failed": "Refreshing the runtime environment failed; the last values stay.",
8250
+ "runtime-env.refreshed": "Runtime environment variables changed; names only, never values.",
8251
+ "server-request.answer-failed": "Answering a server request failed.",
8252
+ "server-request.flush-timeout": "An answer to a server request did not flush in time.",
8253
+ "server-request.handoff-failed": "Handing a server request to the router threw.",
8254
+ "session.config-apply-failed": "Applying session configuration failed; the route answers unavailable.",
8255
+ "sse.closed": "An event stream was closed by the bridge; the client reconnects and replays.",
8256
+ "sse.keepalive-failed": "An event stream keepalive failed.",
8257
+ "sse.observer-failed": "An event stream observer failed; it reconnects.",
8258
+ "sse.payload-serialize-failed": "An event payload could not be serialized; a placeholder was sent.",
8259
+ "sse.payload-snapshot-failed": "An event payload could not be snapshotted; a placeholder was sent.",
8260
+ "sse.subscriber-failed": "An event stream subscriber failed; it reconnects and replays.",
8261
+ "subagent.activity-load-failed": "Sub-agent activity could not be loaded; the transcript renders without it.",
8262
+ "thread.archive-failed": "Archiving or unarchiving a thread failed.",
8263
+ "thread.fork-failed": "thread/fork failed; the route answers 503.",
8264
+ "thread.fork-hydrate-failed": "A forked thread could not be hydrated and was closed.",
8265
+ "thread.reattach-failed": "A thread could not be re-attached.",
8266
+ "thread.rename-failed": "thread/name/set failed; the bridge title index stays authoritative.",
8267
+ "thread.turns-read-after-revert-failed": "A thread's turns could not be read after a revert.",
8268
+ "thread.turns-read-failed": "A thread's turns could not be read.",
8269
+ "thread.unsubscribe-failed": "thread/unsubscribe failed; the binding is kept so a retry can unsubscribe.",
8270
+ "threads.list-failed": "thread/list failed; sessions come from the rollout parser.",
8271
+ "transcript.serving-last-known": "A thread read failed, so the last known transcript is served.",
8272
+ "turn.capacity-retry-failed": "Retrying a turn after a capacity failure failed.",
8273
+ "turn.capacity-retry-journal-failed": "A capacity retry could not be journaled.",
8274
+ "turn.finalize-failed": "Finalizing a turn failed.",
8275
+ "turns.stopped": "Running turns were stopped because the backend went away."
8276
+ }
8277
+ },
8278
+ "bridge.cursor": {
8279
+ description: "The Cursor bridge: its routes, sessions and saved state.",
8280
+ events: {
8281
+ "agent.archive-failed": "Archiving or unarchiving an agent failed.",
8282
+ "http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
8283
+ "startup.closes-failed": "Finishing closes a previous process left behind failed at startup.",
8284
+ "startup.closes-incomplete": "Some closes a previous process left behind did not finish at startup; a retried close finishes them.",
8285
+ "state.publication-failing": "Saving bridge state is failing; new prompts and steers are refused until it recovers.",
8286
+ "state.publication-recovered": "Saving bridge state recovered.",
8287
+ "state.transcripts-shortened": "The state file reached its limit, so some sessions were saved with a shortened transcript copy."
8288
+ }
8289
+ },
8290
+ "bridge.pi": {
8291
+ description: "The Pi bridge: its routes, sessions and saved state.",
8292
+ events: {
8293
+ "http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
8294
+ "state.over-budget": "The state file stayed over budget after shedding transcripts, so the write was skipped.",
8295
+ "state.transcripts-shed": "The state file was over budget, so some sessions were saved without their transcript."
8296
+ }
8297
+ }
8298
+ });
8299
+
8084
8300
  // ../protocol/src/log-vocabulary/desktop.ts
8085
8301
  var DESKTOP_LOG_AREAS = defineLogAreas({
8086
8302
  desktop: {
@@ -8232,8 +8448,12 @@ var LOGGING_LOG_AREAS = defineLogAreas({
8232
8448
  description: "The logger and the on-disk application log themselves.",
8233
8449
  events: {
8234
8450
  "capture.started": "Saving logs to disk began for this process.",
8451
+ "capture.stopped": "Saving logs to disk stopped for this process.",
8235
8452
  "config.invalid": "A logging environment variable held a value that was ignored.",
8236
8453
  "entries.dropped": "The log queue was full, so entries were dropped and counted.",
8454
+ "policy.changed": "The logging settings changed: saving, retention and levels, with no content.",
8455
+ "policy.bridge-predates-route": "A running bridge has no logging settings route; it applies them at its next start.",
8456
+ "policy.push-failed": "A running bridge did not take the logging settings after retries; its next start resends them.",
8237
8457
  "prune.failed": "Removing expired log files failed; the next sweep retries.",
8238
8458
  "write.failed": "Appending to the log file failed.",
8239
8459
  "unknown-area": "Code outside the type checker asked for an area that is not listed."
@@ -8241,6 +8461,16 @@ var LOGGING_LOG_AREAS = defineLogAreas({
8241
8461
  }
8242
8462
  });
8243
8463
 
8464
+ // ../protocol/src/log-vocabulary/models.ts
8465
+ var MODEL_LOG_AREAS = defineLogAreas({
8466
+ models: {
8467
+ description: "Agent model catalogues and their persistent caches.",
8468
+ events: {
8469
+ "cache.write-failed": "A successful catalogue refresh could not update the host cache."
8470
+ }
8471
+ }
8472
+ });
8473
+
8244
8474
  // ../protocol/src/log-vocabulary/native-agent.ts
8245
8475
  var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
8246
8476
  "native-agent": {
@@ -8276,14 +8506,115 @@ var PREVIEW_LOG_AREAS = defineLogAreas({
8276
8506
  }
8277
8507
  });
8278
8508
 
8509
+ // ../protocol/src/log-vocabulary/runtime.ts
8510
+ var RUNTIME_LOG_AREAS = defineLogAreas({
8511
+ "event-loop": {
8512
+ description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
8513
+ events: {
8514
+ stalled: "A timer fired late, so every request in that window waited."
8515
+ }
8516
+ }
8517
+ });
8518
+
8279
8519
  // ../protocol/src/log-vocabulary/terminal.ts
8280
8520
  var TERMINAL_LOG_AREAS = defineLogAreas({
8281
8521
  terminal: {
8282
8522
  description: "The renderer's terminal. Its lines stay in the browser console, never the saved log.",
8283
8523
  events: {
8284
8524
  "input.undelivered": "A keystroke did not reach a shell: `no-session` or `not-delivered`.",
8525
+ "input.resume-failed": "Asking the backend to resume refused terminal input failed.",
8526
+ "input.write-failed": "Writing input to a terminal session threw.",
8527
+ "listener.remove-failed": "Removing a terminal output listener threw.",
8528
+ "listener.released": "A terminal hook unmounted and dropped its output listener.",
8529
+ "session.unmounted": "A terminal hook unmounted; the shell keeps running.",
8530
+ "connect.called": "A terminal hook began connecting to a session.",
8531
+ "output.reconcile-failed": "Output could not be reconciled against the backend snapshot.",
8532
+ "session.stopped-while-disconnected": "A session ended while its event stream was down.",
8533
+ "session.disconnect-failed": "Closing or detaching a terminal session failed.",
8534
+ "session.resize-failed": "Resizing a terminal session failed, other than for a gone session.",
8535
+ "session.id-stored": "A new backend session id was saved for a terminal tab.",
8536
+ "session-key.environment-missing": "A local session key was built with no environment id.",
8537
+ "clipboard.image-failed": "An image pasted into a terminal could not be saved.",
8538
+ "clipboard.copy-failed": "Copying a terminal selection to the clipboard failed.",
8539
+ "clipboard.paste-failed": "A paste into a terminal failed; `target` says which path.",
8540
+ "clipboard.process-failed": "Reading or storing clipboard data for a paste failed.",
8541
+ "clipboard.image-save-failed": "An image from a paste event could not be written to disk.",
8542
+ "environment.ready-detected": "A first tab's output showed that the workspace is ready.",
8543
+ "shell.ready-detected": "A later tab's output showed that its shell is ready.",
8544
+ "setup.scripts-completed": "A setup tab's scripts reported their end by an escape code.",
8545
+ "setup.marked-complete": "The user marked a setup tab complete by hand.",
8546
+ "setup.awaiting-detection": "A first tab connected and is watching output for readiness.",
8547
+ "reconnect.setup-marker-found": "A reconnected tab's buffer already held the setup marker.",
8548
+ "reconnect.setup-marker-absent": "A reconnected first tab's buffer lacked the setup marker.",
8549
+ "reconnect.completed": "A terminal tab finished reconnecting to its session.",
8550
+ "restore.setup-marker-found": "A restored tab's buffer already held the setup marker.",
8551
+ "persistent-sessions.load-failed": "Listing an environment's saved sessions failed.",
8552
+ "persistent-session.restoring": "A tab began restoring from its saved session.",
8553
+ "persistent-session.found": "A tab found its saved session already recorded.",
8554
+ "persistent-session.creating": "A tab began recording a saved session for the sidebar.",
8555
+ "persistent-session.created": "A saved session for the sidebar was recorded.",
8556
+ "persistent-session.create-failed": "Recording a saved session for the sidebar failed.",
8557
+ "persistent-session.status-update-failed": "Marking a saved session connected failed.",
8558
+ "persistent-session.activity-update-failed": "Updating a saved session's activity failed.",
8559
+ "persistent-buffer.loaded": "A saved session's buffer loaded; only its length is logged.",
8560
+ "persistent-buffer.load-failed": "A saved session's buffer could not be loaded.",
8561
+ "persistent-buffer.save-failed": "Saving a session's buffer during cleanup failed.",
8562
+ "buffer.restore-failed": "Writing a saved buffer back into a terminal threw.",
8563
+ "buffer.serialize-failed": "Serializing a terminal's buffer during cleanup threw.",
8564
+ "command.launching": "A tab began launching its command in a new session.",
8565
+ "bootstrap.failed": "A launch request for a new session failed; it may retry.",
8566
+ "setup-session.bind-failed": "Looking up or binding the backend setup session failed.",
8567
+ "setup-tab.stale-removed": "A setup placeholder tab with no session was removed.",
8568
+ "multi-reviews.restore-failed": "Multi-review tabs could not be restored for an environment.",
8569
+ "pane-layout.restore-failed": "An environment's saved pane layout could not be read.",
8570
+ "pane-layout.history-migrate-failed": "Stripping private browser history fields failed.",
8571
+ "pane-layout.snapshot-remove-failed": "Removing an unusable pane layout snapshot failed.",
8572
+ "pane-layout.selection-migrate-failed": "Saving a migrated legacy pane selection failed.",
8573
+ "panes.reset": "An environment's panes were reset: its container changed or stopped.",
8574
+ "tabs.limit-reached": "A new tab was refused because the tab limit was reached.",
8575
+ "tab.created": "A new tab was added to a pane; `tabType` says which kind.",
8576
+ "tab.activated": "Opening a file selected the tab that already held it.",
8577
+ "tab.duplicate-refused": "A new tab was refused because its requested id is in use.",
8578
+ "tab.multi-review-refused": "A multi-review tab was refused for lack of a workflow id.",
8579
+ "tab.split-at-edge": "A dragged tab split a pane at one of its edges.",
8580
+ "tab.reordered": "A dragged tab moved within its pane.",
8581
+ "tab.moved": "A dragged tab moved to another pane.",
8582
+ "drag.ended": "A tab drag ended, whether or not it landed on a target.",
8583
+ "display.state": "The terminal container's overlays and tab count, on each dev render.",
8584
+ "compose.draft-restore-failed": "A saved compose draft could not be read.",
8585
+ "compose.draft-persist-failed": "A compose draft could not be saved or discarded.",
8586
+ "compose.image-too-large": "A pasted image stayed over the attachment limit after resizing.",
8587
+ "compose.image-add-failed": "Adding a pasted image to the compose bar failed.",
8588
+ "compose.image-save-failed": "Saving one compose image for sending failed; the rest proceed.",
8589
+ "compose.send-failed": "Sending from the compose bar failed.",
8590
+ "init-logs.load-failed": "A container's initialization logs could not be loaded.",
8591
+ "init-logs.refresh-stopped": "A container's initialization logs stopped refreshing.",
8592
+ "portal.terminal-created": "The portal host created a terminal for a new tab.",
8593
+ "portal.terminal-disposed": "The portal host disposed a terminal for a removed tab.",
8594
+ "link.open-failed": "Opening a terminal link in the external browser failed.",
8595
+ "canvas.context-unavailable": "A resize canvas had no 2D context; the original is kept.",
8285
8596
  ...THROTTLE_LOG_EVENTS
8286
8597
  }
8598
+ },
8599
+ "terminal.setup": {
8600
+ description: "The renderer attaching a backend-managed environment setup terminal.",
8601
+ events: {
8602
+ "session.bind-from-environment": "The environment hook bound a setup session to a tab.",
8603
+ "setup.started-received": "An environment-setup-started event arrived.",
8604
+ "setup.complete-received": "An environment-setup-complete event arrived.",
8605
+ "attach.state-changed": "A setup tab's attach inputs changed; runs per effect pass.",
8606
+ "terminal.preserve-failed": "Keeping a setup terminal's buffer before conversion failed.",
8607
+ "tab.marker-retired": "A setup tab with no live PTY stopped being a setup tab.",
8608
+ "tab.added": "The backend-managed setup tab was added to a new layout.",
8609
+ "session.bind-skipped": "A setup session lookup was already running for this tab.",
8610
+ "session.requested": "A tab asked the backend for its setup session.",
8611
+ "session.unavailable": "The backend had no setup session to give a tab.",
8612
+ "session.bind-started": "A backend setup session was found and is being bound to a tab.",
8613
+ "session.awaited": "The layout is waiting for a setup session before adding the tab.",
8614
+ "reconcile.started": "The reconcile effect found setup tabs that still need a session.",
8615
+ "reconnect-listener.install-failed": "Listening for event stream reconnects failed.",
8616
+ "layout.initial-decided": "An empty layout was evaluated for its setup tab; runs per effect."
8617
+ }
8287
8618
  }
8288
8619
  });
8289
8620
 
@@ -8339,24 +8670,485 @@ var WEB_ANNOTATIONS_LOG_AREAS = defineLogAreas({
8339
8670
  }
8340
8671
  });
8341
8672
 
8673
+ // ../protocol/src/log-vocabulary/web-app.ts
8674
+ var WEB_APP_LOG_AREAS = defineLogAreas({
8675
+ "web.app": {
8676
+ description: "The application root: startup checks and restoring state.",
8677
+ events: {
8678
+ "config.load-failed": "The application config could not be loaded.",
8679
+ "docker.check-failed": "A Docker availability probe failed; the result stays unknown.",
8680
+ "docker.checked": "A Docker availability check finished.",
8681
+ "docker.orphans-cleared": "Reconciling with Docker cleared orphaned container references.",
8682
+ "docker.sync-failed": "Reconciling environments with Docker failed; non-fatal.",
8683
+ "prompt-queues.restore-failed": "An environment's prompt queues could not be restored.",
8684
+ "multi-reviews.restore-failed": "An environment's multi reviews could not be restored.",
8685
+ "build-pipelines.migrate-failed": "Migrating legacy build pipelines failed; the next launch retries.",
8686
+ "build-pipelines.restore-failed": "A project's build pipelines could not be restored.",
8687
+ "macos-permissions.check-failed": "Reading macOS file permission status failed.",
8688
+ "cli-check.failed": "One startup CLI check failed; its result stays unknown.",
8689
+ "cli-check.completed": "A startup CLI check finished; one line per tool.",
8690
+ "cli-check.retried": "A user-requested CLI recheck finished.",
8691
+ "cli-check.retry-failed": "A user-requested CLI recheck failed.",
8692
+ "exit.failed": "Exiting through the plugin failed; the window closes instead.",
8693
+ "zoom.native-failed": "Applying native zoom failed; the CSS fallback is used.",
8694
+ "github-cli.status-failed": "Reading the GitHub CLI setup status failed.",
8695
+ "attachments.restore-failed": "Saved prompt attachments could not be restored before startup.",
8696
+ "startup-launch.persist-failed": "Saving the startup agent launch failed; nothing started.",
8697
+ "environment.start-failed": "Starting an environment from the terminal overlay failed.",
8698
+ "project.delete-failed": "Deleting a project from its dialog failed."
8699
+ }
8700
+ },
8701
+ "web.session": {
8702
+ description: "The renderer's terminal and agent session store.",
8703
+ events: {
8704
+ "status.update-failed": "A session status change could not be saved.",
8705
+ "activity.update-failed": "A best-effort session activity update failed.",
8706
+ "environment-sessions.disconnect-failed": "Disconnecting an environment's sessions failed.",
8707
+ "container-sessions.sync-failed": "Syncing sessions with container state failed.",
8708
+ "reorder.failed": "Reordering sessions failed; the list reloads from the backend.",
8709
+ "refresh.manual-failed": "A manual refresh of an agent tab failed."
8710
+ }
8711
+ },
8712
+ "web.action-bar": {
8713
+ description: "The environment action bar.",
8714
+ events: {
8715
+ "editor.open-failed": "The external editor could not be opened.",
8716
+ "run-commands.read-failed": "Reading the project's run commands file failed.",
8717
+ "environment.delete-failed": "Deleting an environment from the action bar failed.",
8718
+ "merge.started": "A user-requested PR merge started.",
8719
+ "merge.completed": "A user-requested PR merge command returned.",
8720
+ "merge.failed": "A user-requested PR merge failed."
8721
+ }
8722
+ }
8723
+ });
8724
+
8725
+ // ../protocol/src/log-vocabulary/web-build-pipeline.ts
8726
+ var WEB_BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
8727
+ "web.build-pipeline": {
8728
+ description: "Build pipelines as the renderer starts, hydrates and shows them.",
8729
+ events: {
8730
+ "build.start-failed": "A build could not be started.",
8731
+ "pipeline.hydrate-failed": "A pipeline read failed; source says who asked for it.",
8732
+ "pipeline.project-mismatch": "A pending tab activation was dropped: wrong project.",
8733
+ "environment.not-found": "A build's environment read returned nothing after creation.",
8734
+ "environment.project-mismatch": "A build's environment was not added: wrong project.",
8735
+ "environment.hydrate-failed": "A build's environment read failed; live sync can recover.",
8736
+ "transcript.load-failed": "A stage transcript read failed and will retry with backoff.",
8737
+ "legacy.state-too-large": "Legacy pipeline state was over the limit and skipped.",
8738
+ "opencode-catalog.load-failed": "The cached OpenCode model list could not be loaded.",
8739
+ "opencode-preferences.load-failed": "OpenCode model preferences could not be loaded."
8740
+ }
8741
+ }
8742
+ });
8743
+
8744
+ // ../protocol/src/log-vocabulary/web-chat.ts
8745
+ var WEB_CHAT_LOG_AREAS = defineLogAreas({
8746
+ "web.chat": {
8747
+ description: "Rendering the agent transcript: messages, rich blocks and question cards.",
8748
+ events: {
8749
+ "message.copy-failed": "A message could not be copied to the clipboard.",
8750
+ "message.long-press-failed": "A user message's long-press action failed.",
8751
+ "message.link-open-failed": "A link in a message could not be opened.",
8752
+ "message.render-failed": "One transcript row failed to render; fields are the bounded diagnostic.",
8753
+ "image-preview.load-failed": "An image in a message could not be loaded for preview.",
8754
+ "session-list.load-failed": "The resume dialog could not fetch the resumable sessions.",
8755
+ "question.submit-failed": "An answer to an agent's question could not be submitted.",
8756
+ "question.dismiss-failed": "An agent's question could not be dismissed.",
8757
+ "rich-block.render-failed": "A rich block's renderer failed and its source is shown instead.",
8758
+ "rich-block.copy-failed": "A rich block's copy action could not write to the clipboard.",
8759
+ "scroll-viewport.not-found": "The scroll viewport was still missing when polling for it ended."
8760
+ }
8761
+ },
8762
+ "web.native-agent": {
8763
+ description: "The native agent tab and its composer.",
8764
+ events: {
8765
+ "model-catalogue.load-failed": "The native model catalogue could not be loaded.",
8766
+ "provider-lock.persist-failed": "The locked agent choice could not be saved.",
8767
+ "compose-draft.persist-failed": "A compose draft could not be saved.",
8768
+ "compose-draft.restore-failed": "A saved compose draft could not be restored.",
8769
+ "compose-draft.discard-failed": "A saved compose draft could not be discarded.",
8770
+ "paste.failed": "Pasting an image into a composer failed unexpectedly.",
8771
+ "agent-state.listen-failed": "Subscribing to a tab's agent state events failed.",
8772
+ "model-favorites.persist-failed": "The favorite model list could not be saved."
8773
+ }
8774
+ }
8775
+ });
8776
+
8777
+ // ../protocol/src/log-vocabulary/web-claude-tmux.ts
8778
+ var WEB_CLAUDE_TMUX_LOG_AREAS = defineLogAreas({
8779
+ "web.claude-tmux": {
8780
+ description: "The renderer's Claude tmux chat tab and interactive terminal.",
8781
+ events: {
8782
+ "sessions.list-failed": "The resume dialog could not list tmux sessions.",
8783
+ "tab.hydrate-failed": "Reading a tab's tmux session from the backend failed.",
8784
+ "models.catalog-unavailable": "The model catalogue failed; the bundled fallback stays.",
8785
+ "queue.promote-failed": "After an interrupt, the next queued prompt did not become the draft.",
8786
+ "files.load-failed": "The file list for @mentions could not be loaded.",
8787
+ "clipboard.image-failed": "An image pasted into the interactive terminal could not be saved.",
8788
+ "terminal.resize-failed": "Resizing the interactive terminal's session failed.",
8789
+ "terminal.recover-failed": "The interactive terminal could not reattach to its session."
8790
+ }
8791
+ }
8792
+ });
8793
+
8794
+ // ../protocol/src/log-vocabulary/web-design.ts
8795
+ var WEB_DESIGN_LOG_AREAS = defineLogAreas({
8796
+ "web.design": {
8797
+ description: "Opening design canvas tabs.",
8798
+ events: {
8799
+ "tab.duplicate-refused": "A design tab was not opened because its id is already in use."
8800
+ }
8801
+ }
8802
+ });
8803
+
8804
+ // ../protocol/src/log-vocabulary/web-environment.ts
8805
+ var WEB_ENVIRONMENT_LOG_AREAS = defineLogAreas({
8806
+ "web.environment": {
8807
+ description: "Environment lifecycle and dialogs as the renderer drives them.",
8808
+ events: {
8809
+ "start.called": "The renderer was asked to start an environment.",
8810
+ "start.unknown-environment": "A start was requested for an id the store does not hold.",
8811
+ "start.snapshot-read": "An environment's state as its start began.",
8812
+ "start.status-set": "The environment was marked as creating before the backend call.",
8813
+ "start.background-requested": "A start is being handed to the backend to run in background.",
8814
+ "start.backend-requested": "A foreground start call to the backend is being made.",
8815
+ "start.backend-completed": "The backend finished a foreground start.",
8816
+ "start.environment-refreshed": "An environment was read back after a foreground start.",
8817
+ "start.worktree-missing": "A local environment started with no worktree path.",
8818
+ "start.failed": "Starting an environment from the renderer failed.",
8819
+ "stop.called": "The renderer was asked to stop an environment.",
8820
+ "stop.status-set": "The environment's status was set while stopping it.",
8821
+ "stop.backend-requested": "A stop call to the backend is being made.",
8822
+ "stop.backend-completed": "The backend finished a stop.",
8823
+ "stop.sessions-disconnecting": "A stopped environment's sessions are being disconnected.",
8824
+ "stop.sessions-disconnected": "A stopped environment's sessions were disconnected.",
8825
+ "stop.failed": "Stopping an environment from the renderer failed.",
8826
+ "restart.failed": "Restarting an environment from the renderer failed.",
8827
+ "status-sync.failed": "An environment's status could not be synced from the backend.",
8828
+ "list.refresh-failed": "A background refresh of a project's environments failed.",
8829
+ "setup-snapshot.reconcile-failed": "An environment's setup state could not be reconciled.",
8830
+ "rename.received": "An environment-renamed event arrived.",
8831
+ "rename.pr-state-cleared": "A rename changed the branch, so stale PR state was cleared.",
8832
+ "unread.clear-failed": "An environment's unread work could not be cleared on the backend.",
8833
+ "create.failed": "Creating an environment from the dialog failed.",
8834
+ "create.port-mappings-invalid": "Creation was refused: a port is not between 1 and 65535.",
8835
+ "create.attachment-read-failed": "A file dropped on the create dialog could not be read.",
8836
+ "auto-start.failed": "A background start after creating an environment was rejected.",
8837
+ "models.pi-seed-failed": "The create dialog could not seed the Pi model catalogue.",
8838
+ "models.opencode-cache-load-failed": "The create dialog could not read cached OpenCode models.",
8839
+ "github-credential.check-failed": "The GitHub credential check before creating failed.",
8840
+ "feature-build.start-failed": "Starting a feature build from the dialog failed.",
8841
+ "settings.extensions-load-failed": "The settings dialog could not load extensions.",
8842
+ "settings.container-reset-failed": "The settings dialog could not reset the container.",
8843
+ "settings.save-failed": "The settings dialog could not save.",
8844
+ "domains.test-failed": "Testing whether network whitelist domains resolve failed.",
8845
+ "network-whitelist.save-failed": "The network whitelist dialog could not save."
8846
+ }
8847
+ },
8848
+ "web.sidebar": {
8849
+ description: "The project and environment sidebar.",
8850
+ events: {
8851
+ "reorder.persist-failed": "A sidebar reorder could not be saved.",
8852
+ "fork.failed": "Forking an environment from the sidebar failed.",
8853
+ "auto-start.started": "Selecting an unstarted local environment is starting it.",
8854
+ "auto-start.failed": "Starting a local environment on selection failed.",
8855
+ "environment.stop-failed": "Stopping a selected environment failed.",
8856
+ "environment.restart-failed": "Restarting a selected environment failed.",
8857
+ "environment.delete-failed": "Deleting an environment from the sidebar failed.",
8858
+ "environments.load-failed": "A project's environments could not be loaded for the sidebar.",
8859
+ "project.add-failed": "Adding a project from the sidebar failed.",
8860
+ "project.create-failed": "Creating a project from scratch failed.",
8861
+ "project.delete-failed": "Deleting a project from the sidebar failed.",
8862
+ "folder.project-remove-failed": "A project could not be removed from its folder.",
8863
+ "folder.rename-failed": "A project folder could not be renamed.",
8864
+ "folder.ungroup-failed": "A project folder could not be removed.",
8865
+ "folder.sort-failed": "A project folder could not be sorted."
8866
+ }
8867
+ },
8868
+ "web.docker": {
8869
+ description: "The Docker settings view.",
8870
+ events: {
8871
+ "data.load-failed": "Container or image data could not be loaded.",
8872
+ "container.stop-failed": "Stopping a container from Docker settings failed.",
8873
+ "container.delete-failed": "Deleting a container from Docker settings failed.",
8874
+ "container.reattach-failed": "Reattaching a container to a project failed."
8875
+ }
8876
+ },
8877
+ "web.project": {
8878
+ description: "Adding a project from the renderer.",
8879
+ events: {
8880
+ "directory-picker.failed": "The directory picker could not be opened.",
8881
+ "git-remote.read-failed": "A chosen directory's git remote could not be read."
8882
+ }
8883
+ }
8884
+ });
8885
+
8886
+ // ../protocol/src/log-vocabulary/web-files.ts
8887
+ var WEB_FILES_LOG_AREAS = defineLogAreas({
8888
+ "web.files": {
8889
+ description: "The files panel, file viewer and file search.",
8890
+ events: {
8891
+ "file.save-failed": "A file could not be saved.",
8892
+ "git-changes.load-failed": "The files panel could not load the git changes.",
8893
+ "file-tree.load-failed": "The file tree could not be loaded.",
8894
+ "changes.refresh-failed": "Refreshing the files panel's changes failed.",
8895
+ "folder.load-failed": "An expanded folder's contents could not be loaded.",
8896
+ "path.copy-failed": "A file's path could not be copied to the clipboard.",
8897
+ "draft.persist-failed": "A file viewer tab's draft could not be saved.",
8898
+ "draft.restore-failed": "A file viewer tab's saved draft could not be restored.",
8899
+ "draft.discard-failed": "A file's saved draft could not be discarded before a reload."
8900
+ }
8901
+ }
8902
+ });
8903
+
8904
+ // ../protocol/src/log-vocabulary/web-github.ts
8905
+ var WEB_GITHUB_LOG_AREAS = defineLogAreas({
8906
+ "web.github": {
8907
+ description: "Pull request and GitHub issue views.",
8908
+ events: {
8909
+ "pull-request.url-failed": "A pull request's URL could not be read.",
8910
+ "pull-request.mode-request-failed": "The pull request monitor refused a watch mode request.",
8911
+ "pull-request.copy-failed": "A pull request value could not be copied to the clipboard.",
8912
+ "comment-edit-draft.clear-failed": "An edited comment's saved draft could not be cleared.",
8913
+ "issue-draft.clear-failed": "An edited issue's saved drafts could not be cleared.",
8914
+ "comment-draft.clear-failed": "A posted comment's draft could not be cleared."
8915
+ }
8916
+ },
8917
+ "web.linear": {
8918
+ description: "The Linear tickets view.",
8919
+ events: {
8920
+ "comment-draft.clear-failed": "A posted comment's draft could not be cleared."
8921
+ }
8922
+ }
8923
+ });
8924
+
8925
+ // ../protocol/src/log-vocabulary/web-kanban.ts
8926
+ var WEB_KANBAN_LOG_AREAS = defineLogAreas({
8927
+ "web.kanban": {
8928
+ description: "The Kanban board, its task dialog and project notes.",
8929
+ events: {
8930
+ "tasks.load-failed": "A project's tasks could not be loaded.",
8931
+ "task.add-failed": "A new task could not be added.",
8932
+ "task.update-failed": "A task's fields could not be updated.",
8933
+ "task.content-update-failed": "A task's content edit could not be saved.",
8934
+ "task.build-status-clear-failed": "A task's build status could not be cleared.",
8935
+ "task.delete-failed": "A task could not be deleted.",
8936
+ "task.move-failed": "A task move failed and its status was rolled back.",
8937
+ "comment.add-failed": "A comment could not be added to a task.",
8938
+ "comment.delete-failed": "A comment could not be deleted from a task.",
8939
+ "image.add-failed": "An image could not be added to a task.",
8940
+ "image.delete-failed": "An image could not be deleted from a task.",
8941
+ "notes.load-failed": "Project notes could not be loaded; the editor stays disabled.",
8942
+ "notes.save-failed": "Project notes could not be saved.",
8943
+ "notes.draft-retained": "A notes save failed; the edit stays in its durable draft.",
8944
+ "draft.restore-failed": "A saved create-task draft could not be restored.",
8945
+ "draft.persist-failed": "A create-task draft could not be saved; phase says when.",
8946
+ "draft.discard-failed": "A create-task draft could not be removed; phase says when.",
8947
+ "build.start-failed": "The task dialog could not start a build for a task.",
8948
+ "build.create-and-start-failed": "The task dialog could not create a task and build it."
8949
+ }
8950
+ },
8951
+ "web.feature-plan": {
8952
+ description: "Feature planning in the renderer.",
8953
+ events: {
8954
+ "features.load-failed": "A project's features could not be loaded.",
8955
+ "feature.create-failed": "A new feature could not be created.",
8956
+ "feature.update-failed": "A feature could not be updated.",
8957
+ "build.claim-failed": "A feature's build could not be claimed for a task.",
8958
+ "build.start-failed": "Starting a build from a feature failed.",
8959
+ "message.append-failed": "A message could not be added to a feature's chat.",
8960
+ "story-message.append-failed": "A message could not be added to a story's chat.",
8961
+ "planning.start-failed": "Feature planning could not be started.",
8962
+ "planning.retry-failed": "Feature planning could not be retried.",
8963
+ "planning.cancel-failed": "Feature planning could not be cancelled.",
8964
+ "drafts.persist-failed": "A project's feature chat drafts could not be saved.",
8965
+ "drafts.restore-failed": "A project's feature chat drafts could not be restored."
8966
+ }
8967
+ }
8968
+ });
8969
+
8970
+ // ../protocol/src/log-vocabulary/web-pane-layout.ts
8971
+ var WEB_PANE_LAYOUT_LOG_AREAS = defineLogAreas({
8972
+ "web.pane-layout": {
8973
+ description: "Panes and tabs in the renderer: moves, splits, teardown and saved layouts.",
8974
+ events: {
8975
+ "persist.failed": "A pane layout could not be written to the backend.",
8976
+ "persist.install-skipped": "A saved layout was not installed: its dependencies did not load.",
8977
+ "persist.settled-handler-failed": "A write-settled handler threw; later handlers still ran.",
8978
+ "environment.activated": "The active environment changed.",
8979
+ "environment.initialized": "An environment's pane state was initialized.",
8980
+ "environment.initialize-skipped": "Initialize was called with no active environment.",
8981
+ "environment.terminals-cleared": "A reset cleared the environment's terminal instances.",
8982
+ "terminal-session.cleanup-started": "A closed tab's terminal session is being cleaned up.",
8983
+ "teardown.pending": "A tab teardown was rejected; the backend keeps it pending and retries.",
8984
+ "browser-preview.destroy-failed": "Destroying a closed browser tab's preview failed.",
8985
+ "handoffs.prune-failed": "Pruning unreferenced agent handoffs failed.",
8986
+ "tab.reactivated": "A tab added twice was activated in its existing pane instead.",
8987
+ "tab.move-started": "A tab move passed its checks and is being applied.",
8988
+ "tab.move-failed": "A tab move was refused; `reason` says which lookup failed.",
8989
+ "tab.initial-prompt-cleared": "A tab's initial prompt was cleared.",
8990
+ "tab.initial-agent-options-cleared": "A tab's initial agent options were cleared.",
8991
+ "pane.split-depth-reached": "A split was refused at the maximum split depth.",
8992
+ "pane.edge-split-started": "An edge split passed its checks and is being applied.",
8993
+ "pane.edge-split-failed": "An edge split was refused; `reason` says which lookup failed.",
8994
+ "pane.close-refused": "Closing the only pane in a layout was refused.",
8995
+ "draft.discard-failed": "A closing tab's draft could not be discarded; the tab stayed open.",
8996
+ "draft.file-conflict-resolve-failed": "Discarding a newer saved file draft failed.",
8997
+ "draft.compose-conflict-resolve-failed": "Discarding a newer saved compose draft failed."
8998
+ }
8999
+ }
9000
+ });
9001
+
9002
+ // ../protocol/src/log-vocabulary/web-settings.ts
9003
+ var WEB_SETTINGS_LOG_AREAS = defineLogAreas({
9004
+ "web.settings": {
9005
+ description: "The settings screens.",
9006
+ events: {
9007
+ "config.save-failed": "Global settings could not be saved.",
9008
+ "config.load-failed": "The settings page could not load the config.",
9009
+ "config.reload-failed": "Re-reading the workspace config after a save failed.",
9010
+ "domains.test-failed": "The domain resolution test could not run.",
9011
+ "github-credentials.propagate-failed": "Propagating GitHub credentials to environments failed.",
9012
+ "credential.save-failed": "A credential could not be saved.",
9013
+ "credential.clear-failed": "A credential could not be cleared.",
9014
+ "gateway-token.save-failed": "The gateway token could not be saved.",
9015
+ "gateway-token.copy-failed": "Copying the gateway token to the clipboard failed.",
9016
+ "web-client-url.copy-failed": "Copying the web client address to the clipboard failed.",
9017
+ "backend-version.read-failed": "The debug tab could not read the backend version.",
9018
+ "messaging.flush-failed": "Saving pending messaging settings on unmount failed.",
9019
+ "directory-picker.failed": "The repository directory picker could not open.",
9020
+ "file-picker.failed": "The repository file picker could not open.",
9021
+ "repository.save-failed": "Repository settings could not be saved.",
9022
+ "model-catalogues.read-failed": "Reading the model catalogues for settings failed."
9023
+ }
9024
+ }
9025
+ });
9026
+
9027
+ // ../protocol/src/log-vocabulary/web-shell.ts
9028
+ var WEB_SHELL_LOG_AREAS = defineLogAreas({
9029
+ "web.startup": {
9030
+ description: "Loading the renderer, after the desktop connection check.",
9031
+ events: {
9032
+ "renderer.load-failed": "Importing or mounting the application failed.",
9033
+ "model-catalogue.restore-failed": "The cached model catalogue could not be restored; bundled fallbacks stay in use."
9034
+ }
9035
+ },
9036
+ "web.window": {
9037
+ description: "Errors nothing in the renderer caught. Bug reports classify these two lines.",
9038
+ events: {
9039
+ "error.unhandled": "A window error event reached the bootstrap handler.",
9040
+ "rejection.unhandled": "A promise rejected with no handler."
9041
+ }
9042
+ },
9043
+ "web.react": {
9044
+ description: "React's root error callbacks and the lazy view boundary.",
9045
+ events: {
9046
+ "root.caught-error": "An error boundary caught a render error.",
9047
+ "root.uncaught-error": "A render error reached the root with no boundary.",
9048
+ "root.recoverable-error": "React recovered from a render error by retrying.",
9049
+ "lazy-view.failed": "A lazily loaded view failed; fields are the bounded diagnostic."
9050
+ }
9051
+ }
9052
+ });
9053
+
9054
+ // ../protocol/src/log-vocabulary/web-sync.ts
9055
+ var WEB_SYNC_LOG_AREAS = defineLogAreas({
9056
+ "web.resource-sync": {
9057
+ description: "Keeping renderer stores current with backend resources.",
9058
+ events: {
9059
+ "handler.threw": "A resource change handler threw; other handlers still ran.",
9060
+ "resync-handler.threw": "A resync handler threw; the resync counts as failed.",
9061
+ "view-safety-check.threw": "A view safety check handler threw; the others still ran.",
9062
+ "snapshots.batch-failed": "A scoped snapshot batch failed; individual reads take over.",
9063
+ "manifest.scoped-check-failed": "The scoped manifest read failed; a full resync runs.",
9064
+ "manifest.check-failed": "The manifest read failed; a full resync runs.",
9065
+ "subscribe.failed": "Subscribing to a resource transport event failed.",
9066
+ "change.malformed": "A resource-changed payload had the wrong shape and was dropped.",
9067
+ "config.refresh-failed": "Refreshing the config store after a change failed.",
9068
+ "pane-layout.refresh-failed": "Refreshing an environment's pane layout failed.",
9069
+ "setup-completion.observe-failed": "Subscribing to setup completion events failed.",
9070
+ "resync.project-failed": "The authoritative project read failed during a store resync.",
9071
+ "resync.environment-failed": "The authoritative environment read failed during a resync.",
9072
+ "resync.read-failed": "One of a store resync's per-environment reads failed.",
9073
+ "resync.pane-failed": "A pane layout read failed during a store resync.",
9074
+ "agent-mail.summary-refresh-failed": "Refreshing the agent mail summary failed.",
9075
+ "agent-mail.mailbox-refresh-failed": "Refreshing one agent mailbox failed.",
9076
+ "prompt-queues.refresh-failed": "Refreshing an environment's prompt queues failed.",
9077
+ "build-pipeline.refresh-failed": "Refreshing one build pipeline failed.",
9078
+ "multi-review.refresh-failed": "Refreshing one multi review workflow failed.",
9079
+ "authoritative.resync-failed": "Re-reading a snapshot after a stream reconnect failed.",
9080
+ "observation.listener-threw": "A native observation invalidation listener threw.",
9081
+ "observation.subscribe-failed": "Subscribing to native observation events failed.",
9082
+ "hydration.status-listener-failed": "A bounded hydration status listener threw.",
9083
+ "hydration.notification-failed": "A bounded hydration change notification threw."
9084
+ }
9085
+ },
9086
+ "web.read-coordinator": {
9087
+ description: "The renderer's coalesced, bounded backend reads.",
9088
+ events: {
9089
+ "listener.threw": "A read state listener threw.",
9090
+ "read.settle-failed": "Applying a finished read's result threw."
9091
+ }
9092
+ },
9093
+ "web.gateway": {
9094
+ description: "The renderer's connection to the gateway: requests and event streams.",
9095
+ events: {
9096
+ "events.disconnected": "The main event stream dropped; it reconnects and replays.",
9097
+ "terminal-stream.disconnected": "A terminal event stream dropped; it reconnects.",
9098
+ "connection-listener.failed": "A main stream connection state listener threw.",
9099
+ "event-listener.failed": "A listener for a gateway event threw.",
9100
+ "stream-listener.failed": "A listener for the stream-connected notice threw."
9101
+ }
9102
+ },
9103
+ "web.federation": {
9104
+ description: "Events from federated nodes as the renderer receives them.",
9105
+ events: {
9106
+ "resync-handler.failed": "A node resync handler failed.",
9107
+ "event-handler.failed": "A handler for an event relayed from a node failed.",
9108
+ "environment.start-failed": "Starting an environment opened in a workspace window failed."
9109
+ }
9110
+ }
9111
+ });
9112
+
8342
9113
  // ../protocol/src/log-vocabulary/index.ts
8343
9114
  var LOG_VOCABULARY = {
8344
9115
  ...AGENT_MAIL_LOG_AREAS,
8345
9116
  ...BACKEND_LOG_AREAS,
9117
+ ...BRIDGE_LOG_AREAS,
8346
9118
  ...DESKTOP_LOG_AREAS,
8347
9119
  ...ENVIRONMENT_LOG_AREAS,
8348
9120
  ...GATEWAY_LOG_AREAS,
8349
9121
  ...LOCAL_SERVER_LOG_AREAS,
8350
9122
  ...GIT_LOG_AREAS,
8351
9123
  ...LOGGING_LOG_AREAS,
9124
+ ...MODEL_LOG_AREAS,
8352
9125
  ...NATIVE_AGENT_LOG_AREAS,
8353
9126
  ...PREVIEW_LOG_AREAS,
9127
+ ...RUNTIME_LOG_AREAS,
8354
9128
  ...TERMINAL_LOG_AREAS,
8355
9129
  ...TMUX_LOG_AREAS,
8356
9130
  ...UPDATER_LOG_AREAS,
8357
- ...WEB_ANNOTATIONS_LOG_AREAS
9131
+ ...WEB_ANNOTATIONS_LOG_AREAS,
9132
+ ...WEB_APP_LOG_AREAS,
9133
+ ...WEB_BUILD_PIPELINE_LOG_AREAS,
9134
+ ...WEB_CHAT_LOG_AREAS,
9135
+ ...WEB_CLAUDE_TMUX_LOG_AREAS,
9136
+ ...WEB_DESIGN_LOG_AREAS,
9137
+ ...WEB_ENVIRONMENT_LOG_AREAS,
9138
+ ...WEB_FILES_LOG_AREAS,
9139
+ ...WEB_GITHUB_LOG_AREAS,
9140
+ ...WEB_KANBAN_LOG_AREAS,
9141
+ ...WEB_PANE_LAYOUT_LOG_AREAS,
9142
+ ...WEB_SETTINGS_LOG_AREAS,
9143
+ ...WEB_SHELL_LOG_AREAS,
9144
+ ...WEB_SYNC_LOG_AREAS
8358
9145
  };
9146
+
9147
+ // ../protocol/src/log-error.ts
9148
+ var safeErrors = new WeakSet;
9149
+
8359
9150
  // ../protocol/src/logger.ts
9151
+ var LOG_LEVELS = ["error", "warn", "info", "debug", "trace"];
8360
9152
  var FORBIDDEN_FIELD_NAMES = new Set([
8361
9153
  "stdout",
8362
9154
  "stderr",
@@ -8371,10 +9163,57 @@ var FORBIDDEN_FIELD_NAMES = new Set([
8371
9163
  "cookie",
8372
9164
  "credentials"
8373
9165
  ]);
9166
+ function isLogLevel(value) {
9167
+ return typeof value === "string" && LOG_LEVELS.includes(value);
9168
+ }
8374
9169
  var LOG_THROTTLE_WINDOW_MS = 60000;
8375
9170
  var LOG_THROTTLE_IDLE_MS = 5 * LOG_THROTTLE_WINDOW_MS;
8376
9171
  var throttledSites = new Map;
8377
9172
 
9173
+ // ../protocol/src/log-policy.ts
9174
+ var DEFAULT_LOG_LEVEL = "info";
9175
+ var BRIDGE_LOG_SCOPE = "bridge";
9176
+ var MAX_LOG_DETAIL_AREAS = 256;
9177
+ var MAX_LOG_AREA_NAME_CHARS = 64;
9178
+ var LOG_AREA_NAME = /^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*$/;
9179
+ function defaultLogDetail() {
9180
+ return { level: DEFAULT_LOG_LEVEL, areaLevels: {} };
9181
+ }
9182
+ function legacyDebugLogDetail() {
9183
+ return { level: DEFAULT_LOG_LEVEL, areaLevels: { [BRIDGE_LOG_SCOPE]: "debug" } };
9184
+ }
9185
+ function parseLogDetail(value) {
9186
+ if (typeof value !== "object" || value === null || Array.isArray(value))
9187
+ return null;
9188
+ const { level, areaLevels } = value;
9189
+ if (!isLogLevel(level))
9190
+ return null;
9191
+ if (areaLevels === undefined)
9192
+ return { level, areaLevels: {} };
9193
+ if (typeof areaLevels !== "object" || areaLevels === null || Array.isArray(areaLevels)) {
9194
+ return null;
9195
+ }
9196
+ const names = Object.keys(areaLevels).sort();
9197
+ if (names.length > MAX_LOG_DETAIL_AREAS)
9198
+ return null;
9199
+ const clean = {};
9200
+ for (const name of names) {
9201
+ const areaLevel = areaLevels[name];
9202
+ if (name.length > MAX_LOG_AREA_NAME_CHARS || !LOG_AREA_NAME.test(name))
9203
+ return null;
9204
+ if (!isLogLevel(areaLevel))
9205
+ return null;
9206
+ clean[name] = areaLevel;
9207
+ }
9208
+ return { level, areaLevels: clean };
9209
+ }
9210
+ function resolveLogDetail(source) {
9211
+ const stored = source.logDetail === undefined ? null : parseLogDetail(source.logDetail);
9212
+ if (stored)
9213
+ return stored;
9214
+ return source.debugLogging === true ? legacyDebugLogDetail() : defaultLogDetail();
9215
+ }
9216
+
8378
9217
  // ../protocol/src/node/application-logging.ts
8379
9218
  var LOG_CLEANUP_INTERVAL_MS = 6 * 60 * 60 * 1000;
8380
9219
  var MAX_PENDING_LOG_BYTES = 4 * 1024 * 1024;
@@ -8384,21 +9223,33 @@ var MAX_LOG_DIRECTORY_BYTES = 512 * 1024 * 1024;
8384
9223
  function isRecord2(value) {
8385
9224
  return Boolean(value) && typeof value === "object" && !Array.isArray(value);
8386
9225
  }
8387
- function readApplicationLogSettings(dataDir) {
9226
+ function readApplicationLogPolicy(dataDir) {
9227
+ return readStoredApplicationLogPolicy(dataDir) ?? {
9228
+ saving: {
9229
+ enabled: false,
9230
+ retentionDays: normalizeDebugLogRetentionDays(undefined)
9231
+ },
9232
+ detail: defaultLogDetail()
9233
+ };
9234
+ }
9235
+ function readStoredApplicationLogPolicy(dataDir) {
8388
9236
  try {
8389
9237
  const parsed = JSON.parse(readFileSync(path.join(dataDir, "config.json"), "utf8"));
8390
9238
  const global2 = isRecord2(parsed) && isRecord2(parsed.global) ? parsed.global : {};
8391
9239
  return {
8392
- enabled: global2.debugLogging === true,
8393
- retentionDays: normalizeDebugLogRetentionDays(global2.debugLogRetentionDays)
9240
+ saving: {
9241
+ enabled: global2.debugLogging === true,
9242
+ retentionDays: normalizeDebugLogRetentionDays(global2.debugLogRetentionDays)
9243
+ },
9244
+ detail: resolveLogDetail(global2)
8394
9245
  };
8395
9246
  } catch {
8396
- return {
8397
- enabled: false,
8398
- retentionDays: normalizeDebugLogRetentionDays(undefined)
8399
- };
9247
+ return null;
8400
9248
  }
8401
9249
  }
9250
+ function readApplicationLogSettings(dataDir) {
9251
+ return readApplicationLogPolicy(dataDir).saving;
9252
+ }
8402
9253
  var BENIGN_RMDIR_CODES = new Set(["ENOENT", "ENOTEMPTY", "EEXIST", "ERR_FS_EISDIR"]);
8403
9254
 
8404
9255
  // ../protocol/src/node/bug-report-facts.ts
@@ -8678,7 +9529,7 @@ import path5 from "path";
8678
9529
  // ../../apps/backend/package.json
8679
9530
  var package_default = {
8680
9531
  name: "@orkestrator/backend",
8681
- version: "2.35.3-beta",
9532
+ version: "2.35.4-beta",
8682
9533
  private: true,
8683
9534
  type: "module",
8684
9535
  exports: {
@@ -9058,6 +9909,7 @@ var AGENT_INTERACTION_LIMITS = Object.freeze({
9058
9909
  maxSerializedPayloadBytes: 256 * 1024,
9059
9910
  maxIdLength: 512,
9060
9911
  maxProviderValueLength: 4096,
9912
+ maxSourceNameLength: 256,
9061
9913
  maxJournalEntries: 512,
9062
9914
  maxWorkflowSummaries: 64
9063
9915
  });
@@ -9125,6 +9977,19 @@ var LIMITED_HOLD_REASONS = new Set([
9125
9977
  "provider-limit",
9126
9978
  "upstream-may-expire"
9127
9979
  ]);
9980
+ var AGENT_INTERACTION_SOURCE_KINDS = ["mcp-server"];
9981
+ var SOURCE_SCOPE_LABELS = Object.freeze({
9982
+ user: "user settings",
9983
+ project: "project settings",
9984
+ local: "local settings",
9985
+ dynamic: "session settings",
9986
+ plugin: "a plugin",
9987
+ managed: "managed settings",
9988
+ enterprise: "enterprise settings",
9989
+ claudeai: "a claude.ai connector",
9990
+ agent: "an agent definition",
9991
+ sdk: "the agent host"
9992
+ });
9128
9993
  var UNATTENDED_POLICY_INSTRUCTION = "This is a non-interactive build session: no user can answer a provider input request. " + "If input is unavailable or declined, choose the safest likely assumption yourself, " + "state that assumption, and continue. Never treat the absence of a person as authorization.";
9129
9994
  var INTERACTIVE_AGENT_INTERACTION_POLICY = Object.freeze({
9130
9995
  version: AGENT_INTERACTION_POLICY_VERSION,
@@ -9200,8 +10065,11 @@ var REQUEST_KEYS = new Set([
9200
10065
  "createdAt",
9201
10066
  "updatedAt",
9202
10067
  "expiresAt",
9203
- "hold"
10068
+ "hold",
10069
+ "source"
9204
10070
  ]);
10071
+ var SOURCE_KEYS = new Set(["kind", "name", "scope"]);
10072
+ var SOURCE_KINDS = new Set(AGENT_INTERACTION_SOURCE_KINDS);
9205
10073
  var HOLD_KEYS = new Set(["available", "heldAt", "reason"]);
9206
10074
  var HOLD_REASONS = new Set(AGENT_INTERACTION_HOLD_REASONS);
9207
10075
  var PRESENTATION_KEYS = new Set([