orkestrator 2.35.3-beta → 2.35.5-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -7906,6 +7906,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
7906
7906
  "update_schedule",
7907
7907
  "update_ticket"
7908
7908
  ]);
7909
+ var COORDINATOR_PROJECT_HOME_MESSAGE_WINDOW_MS = 3 * 60 * 60000;
7909
7910
 
7910
7911
  // ../protocol/src/bug-report.ts
7911
7912
  var BUG_REPORT_ISSUE_REPOSITORY = "orkestrator-ai/orkestrator-v2";
@@ -7923,7 +7924,7 @@ function describeBugReportBackend(facts) {
7923
7924
  return parts.filter(Boolean).join(", ");
7924
7925
  }
7925
7926
  function describeBugReportLogs(facts) {
7926
- const state = facts.debugLogging ? "on" : "off (Settings \u2192 Debug \u2192 Save Logs for Debugging); new events are not being written";
7927
+ const state = facts.debugLogging ? "on" : "off (Settings \u2192 Debug \u2192 Save Logs to Disk); new events are not being written";
7927
7928
  const lines = [`- Logs directory: ${facts.logsDir} \u2014 debug logging is ${state}`];
7928
7929
  if (facts.recentLogs.length === 0) {
7929
7930
  lines.push("- Log files: none");
@@ -7955,7 +7956,7 @@ function bugReportDiagnosticsSection(connectionLine) {
7955
7956
  "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
7957
  "Useful sources:",
7957
7958
  "- 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.",
7959
+ "- 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
7960
  connectionLine,
7960
7961
  "- Docker environments: `docker version`, `docker ps -a`, and `docker logs --tail 200 <container>` for the affected container.",
7961
7962
  "- 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 +8048,6 @@ function normalizeDebugLogRetentionDays(value) {
8047
8048
  return isValidDebugLogRetentionDays(value) ? value : DEFAULT_DEBUG_LOG_RETENTION_DAYS;
8048
8049
  }
8049
8050
 
8050
- // ../protocol/src/log-error.ts
8051
- var safeErrors = new WeakSet;
8052
-
8053
8051
  // ../protocol/src/log-vocabulary/define.ts
8054
8052
  var THROTTLE_LOG_EVENTS = {
8055
8053
  "throttle.suppressed": "Repeats of the throttled `site` were counted over a window, not written.",
@@ -8065,19 +8063,272 @@ var AGENT_MAIL_LOG_AREAS = defineLogAreas({
8065
8063
  "agent-mail": {
8066
8064
  description: "Delivering agent mail into waiting agent sessions.",
8067
8065
  events: {
8068
- "delivery.waiting": "The drain passed over a pending message, for a reason it had not yet logged."
8066
+ "delivery.waiting": "The drain passed over a pending message, for a reason it had not yet logged.",
8067
+ "drain.new-mail-failed": "Draining newly received mail failed; the next sweep delivers it.",
8068
+ "presence.sync-failed": "Mailboxes could not be synchronized.",
8069
+ "inject.verified": "An injected message's delivery was checked. Ids and decisions only.",
8070
+ "inject.dispatched": "Messages were dispatched into a session. Ids and decisions only.",
8071
+ "stopped-worker.action-failed": "Nothing could act on mail for a stopped worker.",
8072
+ "coordinator.start-failed": "The main coordinator could not be started for a new message.",
8073
+ "message.placed": "A message was placed in a mailbox. Ids and decisions only, never subjects or bodies.",
8074
+ "budget.hold-notify-failed": "The coordinator could not be told about held worker mail.",
8075
+ "budget.reset-failed": "The mail budget could not be reset for a prompted tab."
8069
8076
  }
8070
8077
  }
8071
8078
  });
8072
8079
 
8073
8080
  // ../protocol/src/log-vocabulary/backend.ts
8074
8081
  var BACKEND_LOG_AREAS = defineLogAreas({
8082
+ "build.pipeline": {
8083
+ description: "Build delivery, ticket reconciliation and persisted pipeline recovery.",
8084
+ events: {
8085
+ "delivery-policy.failed": "A ticket delivery edit could not be reconciled with the running build.",
8086
+ "criteria.failed": "Verify could not record criterion results on the ticket.",
8087
+ "transcript-maintenance.failed": "Pipeline transcript maintenance failed.",
8088
+ "hydrate.failed": "The renderer could not load the authoritative pipeline snapshot."
8089
+ }
8090
+ },
8075
8091
  "backend.activity": {
8076
8092
  description: "The backend's recurring activity and maintenance jobs.",
8077
8093
  events: {
8078
8094
  "job.failed": "One pass of the job named in `scope` failed; its next pass retries.",
8079
8095
  ...THROTTLE_LOG_EVENTS
8080
8096
  }
8097
+ },
8098
+ backend: {
8099
+ description: "The backend process: startup, background notices and shutdown.",
8100
+ events: {
8101
+ starting: "The backend process is starting.",
8102
+ "ssh-socket.resolved": "An SSH agent socket was found.",
8103
+ "ssh-socket.missing": "No usable SSH agent socket was found.",
8104
+ "standalone-updater.mismatch": "--standalone-updater does not match --data-dir, so self-update is off.",
8105
+ "instance.publish-failed": "The instance descriptor could not be published.",
8106
+ "instance.republish-failed": "The instance descriptor could not be republished; a later pass retries.",
8107
+ "parent.exited": "The parent process exited, so local servers are shutting down.",
8108
+ "startup.step-failed": "One part of startup failed and the backend carried on; `step` says which.",
8109
+ "startup.setup-fence-failed": "An environment's interrupted setup could not be fenced.",
8110
+ "startup.setup-adopt-failed": "An environment's pending setup could not be adopted.",
8111
+ "startup.deletion-pending": "An interrupted environment deletion stays pending. Its owning step logged the detail.",
8112
+ "startup.looped-review-pending": "Cleanup of the retired Looped Review stays pending.",
8113
+ "notice.failed": "A background notice after a turn or prompt failed; `step` says which.",
8114
+ "artifacts.live-unavailable": "Live interactive artifacts are unavailable.",
8115
+ "shutdown.step-failed": "One part of shutdown failed and the rest went on; `step` says which.",
8116
+ "shutdown.signal-received": "A signal started shutdown, which tells a clean quit from the backend being killed.",
8117
+ "shutdown.finished": "Shutdown finished, and the process exits with `code`.",
8118
+ "port-policy.second-backend": "Another backend serves the default data directory, so this one avoids its ports.",
8119
+ "port-policy.serve-on-free-port": "--tailscale-serve is on a free gateway port; pass --port with --strict-gateway-port to keep one."
8120
+ }
8121
+ }
8122
+ });
8123
+
8124
+ // ../protocol/src/log-vocabulary/bridge.ts
8125
+ var MAX_BRIDGE_DIAGNOSTIC_BYTES = 8192;
8126
+ var BRIDGE_LOG_AREAS = defineLogAreas({
8127
+ "bridge.diagnostics": {
8128
+ description: "Metadata snapshots of bridge turns and processes: lifecycle, stalls and a keepalive at info, every minute at debug, and each change at trace. docs/architecture/bridge-diagnostics.md reads them.",
8129
+ tag: "bridge-diagnostics",
8130
+ maxStringChars: MAX_BRIDGE_DIAGNOSTIC_BYTES,
8131
+ events: {
8132
+ heartbeat: "A periodic snapshot of an open turn or process: every minute at debug; at info only as stall evidence (a stall starting or clearing, a late timer, a change during a silent stall) or the ten-minute keepalive.",
8133
+ change: "At trace only: a snapshot written as soon as the phase, the pending tools or a counter past its threshold changes.",
8134
+ "send-started": "A turn or process diagnostic scope began.",
8135
+ "send-resolved": "The provider accepted a dispatch.",
8136
+ "cancel-requested": "Cancellation of a turn was requested.",
8137
+ "cancel-settled": "The provider's cancel call returned or failed.",
8138
+ closed: "A diagnostic scope ended, with its final counters.",
8139
+ "snapshot-overflow": "A snapshot exceeded the bound, so only its size was written.",
8140
+ "debug-events": "A batch of allowlisted debug labels with their counts.",
8141
+ "setup-failed": "A Cursor setup step failed and swallowed its error.",
8142
+ "sdk-snapshot": "Cursor's SDK transports and executions at a boundary.",
8143
+ "sdk-snapshot-overflow": "A Cursor SDK snapshot exceeded the bound, so it was omitted."
8144
+ }
8145
+ },
8146
+ "bridge.lifecycle": {
8147
+ description: "What every long-lived bridge does the same way: its sweep and its shutdown.",
8148
+ events: {
8149
+ "idle-sweep.failed": "An idle sweep threw; the next tick retries.",
8150
+ "shutdown.failed": "Releasing the bridge failed during shutdown; it still exits."
8151
+ }
8152
+ },
8153
+ "bridge.acp": {
8154
+ description: "The ACP bridge behind Grok: its routes, sessions, saved state and change evidence.",
8155
+ events: {
8156
+ "command-change.record-failed": "A measured command change could not be recorded.",
8157
+ "evidence.record-failed": "Change evidence could not be recorded; the read loop carries on.",
8158
+ "evidence.shell-record-failed": "A shell observation could not be recorded.",
8159
+ "evidence.turn-record-failed": "Turn change evidence could not be recorded.",
8160
+ "server.listening": "The HTTP server is listening.",
8161
+ "state.composer-reset": "A saved composer state was malformed and was reset.",
8162
+ "state.discarded": "Saved bridge state could not be used and was discarded.",
8163
+ "state.persist-failed": "Saving bridge state failed; a later write retries.",
8164
+ "state.session-config-reset": "A saved session configuration was malformed and was reset."
8165
+ }
8166
+ },
8167
+ "bridge.claude": {
8168
+ description: "The Claude bridge: its routes, sessions, parked interactions and the Agent SDK turn loop.",
8169
+ events: {
8170
+ "commands.read-failed": "The command catalogue read failed; the cached answer stands.",
8171
+ "context-usage.read-failed": "The detailed context usage read failed; the route falls back.",
8172
+ "dispatch.rollback-failed": "Rolling back a prompt dispatch claim failed.",
8173
+ "event-subscriber.failed": "An event subscriber threw; other subscribers still ran.",
8174
+ "http.request-failed": "An HTTP route threw; it answered 500.",
8175
+ "mcp.config-ignored": "An MCP server configuration of an unsupported shape was ignored.",
8176
+ "mcp.read-failed": "Listing MCP servers failed; the route answered 500.",
8177
+ "models.fetch-failed": "Reading the supported models failed; the fallback catalogue is served.",
8178
+ "models.requested": "The model catalogue route was called.",
8179
+ "models.responded": "The model catalogue route answered.",
8180
+ "parent.gone": "The backend that launched this bridge has gone; shutting down.",
8181
+ "plan-approval.responding": "Answering a parked plan approval.",
8182
+ "plan-approval.response-failed": "The plan approval route failed.",
8183
+ "plan-approval.response-received": "The route received a plan approval answer.",
8184
+ "plan-approval.result": "A parked plan approval was answered.",
8185
+ "plan-approval.wait-failed": "A parked plan approval ended without an answer: cancelled, timed out or closed.",
8186
+ "plan-exit.failure-overridden": "ExitPlanMode failed after the user approved; treated as success with a continuation re-prompt.",
8187
+ "plan-mode.record-failed": "Plan mode from a status frame could not be recorded.",
8188
+ "plan.reprompt-approved-failed": "Re-prompting after an approved plan failed.",
8189
+ "plan.reprompt-feedback-failed": "Re-prompting with plan rejection feedback failed.",
8190
+ "plugin.path-missing": "A configured plugin was skipped because its path does not exist.",
8191
+ "plugin.unsafe-path": "An installed plugin was skipped because its install path is unsafe.",
8192
+ "plugins.read-failed": "Listing plugins failed; the route answered 500.",
8193
+ "prompt.accepted": "The route accepted a prompt and answered 202.",
8194
+ "prompt.failed": "A prompt turn failed; the session reports the error.",
8195
+ "prompt.processing-failed": "A prompt accepted by the route failed while processing.",
8196
+ "prompt.received": "A prompt reached the bridge; only its length is logged.",
8197
+ "prompt.send-failed": "A prompt request failed; the route answered with an error.",
8198
+ "query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
8199
+ "query.failed": "A Claude query ended with an error result.",
8200
+ "question.answer-failed": "The answer-question route failed.",
8201
+ "question.answering": "Answering a parked question.",
8202
+ "question.answers-prepared": "The route prepared a question answer for the session.",
8203
+ "question.answers-received": "A parked question received its answers.",
8204
+ "question.stale": "An answer arrived for a question no longer pending; the route answered stale.",
8205
+ "question.wait-failed": "A parked question ended without an answer: cancelled, timed out or closed.",
8206
+ "runtime.ended-under-resumed-turn": "The Claude runtime ended while a resumed root turn was still open.",
8207
+ "server.listening": "The HTTP server is listening.",
8208
+ "server.starting": "The HTTP server is about to bind.",
8209
+ "session.compact-failed": "A requested compaction failed.",
8210
+ "session.create-failed": "Creating a session failed; the route answered with an error.",
8211
+ "session.created": "A session was created or recovered.",
8212
+ "session.delete-failed": "Deleting a session failed.",
8213
+ "session.fork-failed": "Forking a session failed.",
8214
+ "session.rename-failed": "Renaming a session failed.",
8215
+ "session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
8216
+ "session.rewind-failed": "Rewinding session files failed.",
8217
+ "session.task-state-hydrate-failed": "Hydrating session task state failed; the route answered with an error.",
8218
+ "sessions.reconcile-failed": "Reconciling persisted sessions failed; the sessions already known are listed.",
8219
+ "sse.aborted": "The client closed an event stream.",
8220
+ "sse.cleanup": "An event stream connection was released.",
8221
+ "sse.closed": "An event stream was closed by the bridge; the client reconnects and replays.",
8222
+ "sse.handshake-failed": "An event stream failed during its handshake; the client reconnects.",
8223
+ "sse.keepalive-failed": "An event stream keepalive failed, usually a client that has gone; the connection closes.",
8224
+ "sse.opened": "An event stream connection opened.",
8225
+ "sse.subscribe-requested": "A client asked to subscribe to the event stream.",
8226
+ "sse.write-failed": "Writing to an event stream failed; the connection closes and the client reconnects.",
8227
+ "task.candidate-bound-reached": "An unresolved Bash call was not tracked as a background task: the candidate bound is full.",
8228
+ "task.details-persist-failed": "Shell task details could not be saved; the task carries on.",
8229
+ "task.settling-bound-reached": "A settling task was not tracked: the settling bound is full.",
8230
+ "task.stop-failed": "Stopping a background task failed on a control channel that had closed.",
8231
+ "task.stop-route-failed": "The stop-task route failed.",
8232
+ "transcript.background-hydrate-failed": "Hydrating a transcript in the background failed; the next read retries.",
8233
+ "transcript.hydrate-failed": "Hydrating a transcript before a prompt failed; the prompt runs and a later read retries."
8234
+ }
8235
+ },
8236
+ "bridge.codex": {
8237
+ description: "The Codex bridge: its routes, sessions and the app-server child it supervises.",
8238
+ events: {
8239
+ "account.connector-recovery-failed": "Recovering account connectors failed; the account answer stands.",
8240
+ "account.login-reload-failed": "Reloading the stored account login failed.",
8241
+ "account.sign-in-check-failed": "An account sign-in check failed; admission is left unchanged.",
8242
+ "account.usage-read-failed": "Reading account usage failed; the route answers 503.",
8243
+ "app-server.drain-expired": "The drain deadline expired, so app-server restarted with turns still in flight.",
8244
+ "app-server.exited": "app-server exited unexpectedly; the code and signal say how.",
8245
+ "app-server.invariant-violation": "app-server asked for something its configuration forbids.",
8246
+ "app-server.protocol-violation": "app-server wrote a line that is not valid protocol; it was ignored.",
8247
+ "app-server.recording": "Notification recording is on; recordings hold content.",
8248
+ "app-server.stale-reaped": "A stale app-server left by an earlier bridge was stopped.",
8249
+ "app-server.stderr": "Metadata of an app-server stderr line, never its content.",
8250
+ "app-server.stderr-suppressed": "app-server stderr lines beyond the budget were counted, not described.",
8251
+ "approval.cancel-failed": "Cancelling a turn after an approval answer failed.",
8252
+ "approval.present-failed": "Presenting an approval threw; it is auto-declined.",
8253
+ "approval.resolved-callback-failed": "An approval resolved callback threw.",
8254
+ "command-changes.record-failed": "Recording line changes for a command failed; the turn carries on.",
8255
+ "dispatch.reconcile-failed": "A dispatch could not be reconciled against its thread; it stays recovering.",
8256
+ "dispatch.restore-failed": "A journaled dispatch could not be restored after a restart; recovery retries.",
8257
+ "engine.listener-failed": "An engine event listener threw; the others still ran.",
8258
+ "engine.ready": "The app-server engine started.",
8259
+ "engine.start-failed": "The app-server engine failed to start; reported through health.",
8260
+ "engine.stop-failed": "Stopping the Codex engine failed during shutdown; the bridge exits anyway.",
8261
+ "generation.recovery-failed": "Recovering sessions after an app-server generation change failed.",
8262
+ "http.request-failed": "An HTTP route threw; it answered 500.",
8263
+ "idle-sweep.failed": "An idle sweep failed; the next one retries.",
8264
+ "interaction.present-failed": "Presenting an interaction threw; it is cancelled.",
8265
+ "interaction.resolved-callback-failed": "An interaction resolved callback threw.",
8266
+ "journal.persist-failed": "Saving the dispatch journal failed.",
8267
+ "message.publish-failed": "Publishing a message update failed.",
8268
+ "models.cache-persist-failed": "Saving the model cache failed.",
8269
+ "models.debug-read-failed": "`codex debug models` failed; another source is used.",
8270
+ "models.list-failed": "model/list failed; the cached models are served.",
8271
+ "models.refresh-failed": "A background model refresh failed; the cache stands.",
8272
+ "notification.enqueue-failed": "Queueing a notification threw.",
8273
+ "ordered-events.flush-failed": "Flushing before ordered-event reconciliation failed.",
8274
+ "ordered-events.publish-failed": "Publishing an ordered event failed; clients are told to rehydrate.",
8275
+ "ordered-events.reconcile-failed": "Reconciling ordered events failed.",
8276
+ "parent.gone": "The backend that launched this bridge has gone; stopping turns and shutting down.",
8277
+ "queue.task-failed": "A task on a per-thread queue failed.",
8278
+ "raw-log.write-failed": "Appending to the raw Codex log failed.",
8279
+ "recorder.notice": "The notification recorder needs attention: it is on, or was asked for without its confirmation.",
8280
+ "recorder.threw": "The notification recorder threw.",
8281
+ "recorder.write-failed": "Writing a notification recording failed; its lines were dropped.",
8282
+ "registry.persist-failed": "Saving the session registry failed; a later write retries.",
8283
+ "rollout.hydrate-failed": "A rollout could not be read to hydrate a thread.",
8284
+ "runtime-env.refresh-failed": "Refreshing the runtime environment failed; the last values stay.",
8285
+ "runtime-env.refreshed": "Runtime environment variables changed; names only, never values.",
8286
+ "server-request.answer-failed": "Answering a server request failed.",
8287
+ "server-request.flush-timeout": "An answer to a server request did not flush in time.",
8288
+ "server-request.handoff-failed": "Handing a server request to the router threw.",
8289
+ "session.config-apply-failed": "Applying session configuration failed; the route answers unavailable.",
8290
+ "sse.closed": "An event stream was closed by the bridge; the client reconnects and replays.",
8291
+ "sse.keepalive-failed": "An event stream keepalive failed.",
8292
+ "sse.observer-failed": "An event stream observer failed; it reconnects.",
8293
+ "sse.payload-serialize-failed": "An event payload could not be serialized; a placeholder was sent.",
8294
+ "sse.payload-snapshot-failed": "An event payload could not be snapshotted; a placeholder was sent.",
8295
+ "sse.subscriber-failed": "An event stream subscriber failed; it reconnects and replays.",
8296
+ "subagent.activity-load-failed": "Sub-agent activity could not be loaded; the transcript renders without it.",
8297
+ "thread.archive-failed": "Archiving or unarchiving a thread failed.",
8298
+ "thread.fork-failed": "thread/fork failed; the route answers 503.",
8299
+ "thread.fork-hydrate-failed": "A forked thread could not be hydrated and was closed.",
8300
+ "thread.reattach-failed": "A thread could not be re-attached.",
8301
+ "thread.rename-failed": "thread/name/set failed; the bridge title index stays authoritative.",
8302
+ "thread.turns-read-after-revert-failed": "A thread's turns could not be read after a revert.",
8303
+ "thread.turns-read-failed": "A thread's turns could not be read.",
8304
+ "thread.unsubscribe-failed": "thread/unsubscribe failed; the binding is kept so a retry can unsubscribe.",
8305
+ "threads.list-failed": "thread/list failed; sessions come from the rollout parser.",
8306
+ "transcript.serving-last-known": "A thread read failed, so the last known transcript is served.",
8307
+ "turn.capacity-retry-failed": "Retrying a turn after a capacity failure failed.",
8308
+ "turn.capacity-retry-journal-failed": "A capacity retry could not be journaled.",
8309
+ "turn.finalize-failed": "Finalizing a turn failed.",
8310
+ "turns.stopped": "Running turns were stopped because the backend went away."
8311
+ }
8312
+ },
8313
+ "bridge.cursor": {
8314
+ description: "The Cursor bridge: its routes, sessions and saved state.",
8315
+ events: {
8316
+ "agent.archive-failed": "Archiving or unarchiving an agent failed.",
8317
+ "http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
8318
+ "startup.closes-failed": "Finishing closes a previous process left behind failed at startup.",
8319
+ "startup.closes-incomplete": "Some closes a previous process left behind did not finish at startup; a retried close finishes them.",
8320
+ "state.publication-failing": "Saving bridge state is failing; new prompts and steers are refused until it recovers.",
8321
+ "state.publication-recovered": "Saving bridge state recovered.",
8322
+ "state.transcripts-shortened": "The state file reached its limit, so some sessions were saved with a shortened transcript copy."
8323
+ }
8324
+ },
8325
+ "bridge.pi": {
8326
+ description: "The Pi bridge: its routes, sessions and saved state.",
8327
+ events: {
8328
+ "http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
8329
+ "state.over-budget": "The state file stayed over budget after shedding transcripts, so the write was skipped.",
8330
+ "state.transcripts-shed": "The state file was over budget, so some sessions were saved without their transcript."
8331
+ }
8081
8332
  }
8082
8333
  });
8083
8334
 
@@ -8178,7 +8429,7 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
8178
8429
  // ../protocol/src/log-vocabulary/environment.ts
8179
8430
  var ENVIRONMENT_LOG_AREAS = defineLogAreas({
8180
8431
  environment: {
8181
- description: "Environment naming, held setup and cleanup after deletion.",
8432
+ description: "Environment naming, setup, status, moves, deletion and cleanup afterwards.",
8182
8433
  events: {
8183
8434
  "cleanup.branch-kept": "A deleted environment's local branch was kept, as it may hold unmerged work.",
8184
8435
  "rename.failed": "Naming an environment from its pending prompt failed for the first time.",
@@ -8187,6 +8438,40 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
8187
8438
  "setup.attention-not-recorded": "Held setup could not be recorded as needing the user's attention.",
8188
8439
  "setup.coordinator-not-notified": "The worker's coordinator could not be told that its setup is held for approval.",
8189
8440
  "setup.unknown-environment": "The renderer was asked to act on the setup of an environment it does not hold.",
8441
+ "cleanup.rearmed": "A deleted environment's stopped cleanup is retried once under a new backend version.",
8442
+ "cleanup.exhausted": "A deleted environment's cleanup keeps failing after its attempts; written once per environment.",
8443
+ "cleanup.retry-not-admitted": "A cleanup retry was not admitted; the entry stays for the next start.",
8444
+ "cleanup.step-failed": "One step of a deleted environment's cleanup failed; a later reconcile retries it.",
8445
+ "cleanup.record-failed": "A finished cleanup step could not be recorded, so it may run again.",
8446
+ "cleanup.sweep-failed": "A cleanup sweep failed; written once per sweep.",
8447
+ "cleanup.reconcile-failed": "A cleanup reconcile pass failed; the next one retries.",
8448
+ "orphan-state.remove-failed": "An orphaned environment state directory could not be removed.",
8449
+ "orphan-state.removed": "Orphaned environment state directories were removed.",
8450
+ "orphan-state.sweep-failed": "Sweeping orphaned environment state failed.",
8451
+ "orphan-canvas.removed": "Orphaned design canvases were removed.",
8452
+ "orphan-canvas.sweep-failed": "Sweeping orphaned design canvases failed.",
8453
+ "orphan-branches.swept": "Orphaned environment branches were deleted, or kept as they may hold unmerged work.",
8454
+ "stray-workspace.remove-failed": "A stray workspace directory could not be removed.",
8455
+ "stray-workspace.removed": "Stray workspace directories were removed.",
8456
+ "stray-workspace.kept": "Unowned workspace directories that hold files were kept; remove them by hand if unneeded.",
8457
+ "temp-files.removed": "Abandoned temp files were removed.",
8458
+ "status.ownership-probe-failed": "A strict container ownership probe failed, so the stored status is kept.",
8459
+ "status.docker-error": "A transient Docker error stopped a status read, so the stored status is kept.",
8460
+ "setup.clear-launch-failed": "A pending agent launch could not be cleared after setup failed.",
8461
+ "setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
8462
+ "lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
8463
+ "tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
8464
+ "tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
8465
+ "orphan-session.reaped": "A native session no tab references was torn down.",
8466
+ "handoff-sweep.failed": "Sweeping transferred transcripts no tab references failed.",
8467
+ "delete.terminals-survived": "Terminal process trees outlived termination, so the deletion stops.",
8468
+ "delete.artifacts-left": "Graph run artifact directories were not removed.",
8469
+ "delete.worktrees-kept": "Graph runs kept branch worktrees.",
8470
+ "delete.step-failed": "One best-effort part of deleting an environment failed; `step` says which, and the rest goes on.",
8471
+ "merge-cleanup.resume-failed": "A merge cleanup interrupted by a restart could not be resumed.",
8472
+ "move.sessions-not-moved": "A provider's sessions could not follow a moved environment.",
8473
+ "move.recovery-failed": "Recovering an interrupted environment move failed.",
8474
+ "stop.settle-activity-failed": "Agent activity could not be settled after a runtime stopped.",
8190
8475
  ...THROTTLE_LOG_EVENTS
8191
8476
  }
8192
8477
  }
@@ -8195,10 +8480,50 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
8195
8480
  // ../protocol/src/log-vocabulary/gateway.ts
8196
8481
  var GATEWAY_LOG_AREAS = defineLogAreas({
8197
8482
  gateway: {
8198
- description: "The remote gateway other devices and browsers connect through.",
8483
+ description: "The gateway other devices, browsers and the desktop connect through.",
8199
8484
  events: {
8200
8485
  "remote.start-failed": "The desktop could not start the remote gateway.",
8201
- "remote.stop-failed": "The desktop could not stop the remote gateway cleanly."
8486
+ "remote.stop-failed": "The desktop could not stop the remote gateway cleanly.",
8487
+ disabled: "The gateway is disabled by its environment variable.",
8488
+ "tailscale.no-address": "No Tailscale address was found, so the gateway did not start.",
8489
+ "tailscale.no-address-fallback": "No Tailscale address was found, so the gateway binds its fallback address.",
8490
+ "control.listening": "The backend control listener is up.",
8491
+ "browser.listening": "The browser listener is up.",
8492
+ "browser.unavailable": "The browser listener could not start; control remains if started, or loopback is attempted.",
8493
+ "browser.unavailable-degraded": "No browser listener was started (`reason=no-tailscale-address`); control remains if started, or loopback is attempted.",
8494
+ "loopback.listening": "The loopback client listener is up.",
8495
+ "loopback.unavailable": "The loopback client listener could not start.",
8496
+ "auth-token.stored": "The gateway token's file was written. The path only, never the token.",
8497
+ "auth-token.persist-failed": "The gateway token could not be saved.",
8498
+ "port.fallback": "The preferred port was taken, so a nearby one is used.",
8499
+ "port.fallback-distant": "The preferred port and those nearby were taken, so another is used.",
8500
+ "request.failed": "A gateway request failed. Throttled: repeats are counted, not written.",
8501
+ "websocket.upgrade-failed": "A WebSocket upgrade failed.",
8502
+ "events.client-dropped": "An event-stream client buffered too much and was dropped; it reconnects and refetches.",
8503
+ "proxy.client-disconnected": "A proxy client went away, so its upstream request was aborted.",
8504
+ "throttle.suppressed": "Repeats of the throttled `site` were counted over a window, not written.",
8505
+ "throttle.recovered": "The throttled `site` succeeded again, so its fault has cleared.",
8506
+ "throttle.evicted": "The tracked-key limit dropped the `site`, so no recovered line follows unless it fails again."
8507
+ }
8508
+ },
8509
+ "gateway.terminal": {
8510
+ description: "The gateway's terminal WebSocket.",
8511
+ events: {
8512
+ "upgrade-rejected": "A terminal WebSocket upgrade was refused.",
8513
+ "socket-error": "A terminal WebSocket reported an error.",
8514
+ "subscription-failed": "A terminal subscription failed.",
8515
+ "operation-failed": "A terminal operation failed. Fixed text: the operation can hold terminal input."
8516
+ }
8517
+ },
8518
+ "gateway.tailscale": {
8519
+ description: "Tailscale Serve for desktop web access and a standalone backend.",
8520
+ events: {
8521
+ "web-access.disable-failed": "Desktop web access could not be turned off.",
8522
+ "web-access.enable-failed": "Desktop web access could not be turned on.",
8523
+ "web-access.cleanup-failed": "Cleaning up after a failed enable also failed.",
8524
+ "web-access.reset-failed": "Desktop web access could not be reset.",
8525
+ "startup.init-failed": "Desktop web access could not be initialized at startup.",
8526
+ available: "Tailscale Serve is publishing the gateway."
8202
8527
  }
8203
8528
  }
8204
8529
  });
@@ -8209,6 +8534,18 @@ var LOCAL_SERVER_LOG_AREAS = defineLogAreas({
8209
8534
  description: "Agent bridge processes the backend runs on the host.",
8210
8535
  events: {
8211
8536
  "bridge.not-answering": "A bridge with work in progress fails health checks, so it is not restarted yet.",
8537
+ "bridge-runtime.installing": "A bridge runtime is being installed.",
8538
+ "bridge-runtime.installed": "A bridge runtime finished installing.",
8539
+ "opencode.database-lost-retrying": "OpenCode lost its shared database at startup, so it is retried.",
8540
+ "server.stopping": "A local server is being stopped, for the fixed `reason` given.",
8541
+ "reaper.tmux-list-failed": "Orphaned claude-tmux sessions could not be listed.",
8542
+ "reaper.tmux-kill-failed": "An orphaned tmux session could not be killed.",
8543
+ "reaper.tmux-reaped": "Orphaned claude-tmux sessions of a deleted environment were killed.",
8544
+ "reaper.runtime-root-remove-failed": "A claude-tmux runtime root could not be removed; it stays for a retry.",
8545
+ "reaper.server-unidentified": "An orphan candidate could not be identified, so its record is kept.",
8546
+ "reaper.server-refused": "An orphan candidate leads no process group, so it was not reaped.",
8547
+ "reaper.server-reaping": "An orphaned server is being stopped.",
8548
+ "reaper.server-kill-failed": "An orphaned server did not exit.",
8212
8549
  ...THROTTLE_LOG_EVENTS
8213
8550
  }
8214
8551
  }
@@ -8232,8 +8569,12 @@ var LOGGING_LOG_AREAS = defineLogAreas({
8232
8569
  description: "The logger and the on-disk application log themselves.",
8233
8570
  events: {
8234
8571
  "capture.started": "Saving logs to disk began for this process.",
8572
+ "capture.stopped": "Saving logs to disk stopped for this process.",
8235
8573
  "config.invalid": "A logging environment variable held a value that was ignored.",
8236
8574
  "entries.dropped": "The log queue was full, so entries were dropped and counted.",
8575
+ "policy.changed": "The logging settings changed: saving, retention and levels, with no content.",
8576
+ "policy.bridge-predates-route": "A running bridge has no logging settings route; it applies them at its next start.",
8577
+ "policy.push-failed": "A running bridge did not take the logging settings after retries; its next start resends them.",
8237
8578
  "prune.failed": "Removing expired log files failed; the next sweep retries.",
8238
8579
  "write.failed": "Appending to the log file failed.",
8239
8580
  "unknown-area": "Code outside the type checker asked for an area that is not listed."
@@ -8241,14 +8582,82 @@ var LOGGING_LOG_AREAS = defineLogAreas({
8241
8582
  }
8242
8583
  });
8243
8584
 
8585
+ // ../protocol/src/log-vocabulary/models.ts
8586
+ var MODEL_LOG_AREAS = defineLogAreas({
8587
+ models: {
8588
+ description: "Agent model catalogues and their persistent caches.",
8589
+ events: {
8590
+ "cache.write-failed": "A successful catalogue refresh could not update the host cache.",
8591
+ "seed.pi-failed": "The host Pi model catalogue could not be seeded; the next launch retries.",
8592
+ "bridge.not-ready": "The first-use catalogue bridge did not become ready.",
8593
+ "bridge.start-failed": "The first-use catalogue bridge failed to start.",
8594
+ "probe.exit-unclean": "A catalogue probe or sign-in server did not exit cleanly.",
8595
+ "download.deferred": "A model catalogue could not be downloaded yet."
8596
+ }
8597
+ }
8598
+ });
8599
+
8244
8600
  // ../protocol/src/log-vocabulary/native-agent.ts
8245
8601
  var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
8246
8602
  "native-agent": {
8247
8603
  description: "Native agent sessions and what the backend reads from their bridges.",
8248
8604
  events: {
8249
8605
  "catalogue.outdated-bridge": "A bridge predates the command catalogue, so its commands stay unavailable.",
8606
+ "handoff.summary-read-failed": "Change summaries could not be read for a handoff, so the carrier says they are unmeasured.",
8607
+ "handoff.consume-failed": "A delivered handoff could not be marked consumed.",
8608
+ "job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
8609
+ "job.resend-queue-failed": "A resend could not be queued for a job.",
8610
+ "interaction.requests-dropped": "Interaction requests that could not be mapped were dropped.",
8611
+ "interaction.observe-failed": "Observing a session's interactions failed. Error class only.",
8612
+ "human-prompt.listener-failed": "A human prompt listener threw; the others still run.",
8613
+ "question.attention-record-failed": "Attention for an async question could not be recorded; the transcript stays readable.",
8614
+ "activity.reconcile-failed": "Reconciling an environment's activity failed. Error class only.",
8615
+ "activity.persist-failed": "An environment's activity could not be saved.",
8616
+ "pr-refresh.schedule-failed": "A pull request refresh after completion could not be scheduled.",
8617
+ "launch.startup-failed": "A startup launch failed; it retries unless `permanent`.",
8618
+ "queue.failing": "A native prompt queue keeps failing. The key and reason only, never the prompt.",
8619
+ "provider.retire-failed": "Retiring an obsolete provider failed.",
8620
+ "workflow-result.store-unavailable": "The workflow result store is unavailable, so the provider's result is used.",
8621
+ "catalogue.refresh-failed": "A provider's command catalogue could not be refreshed.",
8622
+ "dispatch.attach-failed": "Attaching an agent before dispatch failed; the prompt request answers authoritatively.",
8623
+ "coordinator-context.ack-failed": "Coordinator repository context could not be acknowledged.",
8624
+ "naming.prepare-failed": "First-prompt naming could not be prepared; the prompt still goes ahead.",
8625
+ "interrupt.persist-failed": "A turn interrupt could not be saved, so automatic publication stays fenced.",
8626
+ "resume.close-replaced-failed": "The session a resume replaced could not be closed.",
8627
+ "sign-in.check-failed": "A turn could not be checked for a login refusal.",
8628
+ "sign-in.resend-failed": "Sending refused prompts after sign-in failed.",
8629
+ "sign-in.prompt-resend-failed": "One refused prompt could not be sent again after sign-in. Error class only.",
8630
+ "shutdown.checkpoints-skipped": "Shutdown skipped display-tail checkpoints; provider history stays authoritative. Count only.",
8631
+ "turn-recovery.failed": "Recovering an incomplete turn failed.",
8632
+ "turn-recovery.exhausted": "A turn failed again after automatic recovery and is left for the user.",
8633
+ "turn-recovery.retrying": "An incomplete or provider-failed turn is being retried automatically.",
8634
+ "usage-limit.resend-failed": "Resending after a usage limit failed. An unknown send stays in the journal.",
8635
+ "title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
8250
8636
  ...THROTTLE_LOG_EVENTS
8251
8637
  }
8638
+ },
8639
+ "native-agent.goal": {
8640
+ description: "The /goal loop: advancing goals and their verifiers.",
8641
+ events: {
8642
+ "advance.failed": "A goal could not advance; the next sweep retries.",
8643
+ "attention.record-failed": "Attention for a goal could not be recorded.",
8644
+ "turn-end.settle-failed": "Turn-end work for a goal could not be settled.",
8645
+ "verifier.finish-failed": "A verifier failed to finish; the goal stays verifying, so the next sweep runs it again.",
8646
+ "verifier.stop-failed": "An earlier verifier could not be stopped.",
8647
+ "recover.failed": "Goals could not be recovered at startup."
8648
+ }
8649
+ },
8650
+ "native-agent.opencode": {
8651
+ description: "The OpenCode provider: its request monitor, retries and agent tools.",
8652
+ events: {
8653
+ "retry.abort-failed": "Aborting an automatic retry failed. Error class only.",
8654
+ "retry.abort-not-scheduled": "An automatic retry abort could not be scheduled. Error class only.",
8655
+ "agent-tools.unavailable": "OpenCode agent tools remain unavailable for a session.",
8656
+ "coordinator-servers.unavailable": "OpenCode coordinator research servers are unavailable.",
8657
+ "monitor.reconnecting": "The request monitor lost its stream and is reconnecting. Error class only.",
8658
+ "worker-limit.reached": "The bounded request workers are full, so the stream restarts and a snapshot reconciles.",
8659
+ "request.failed": "Handling a request event failed, so the stream restarts. Error class only."
8660
+ }
8252
8661
  }
8253
8662
  });
8254
8663
 
@@ -8271,32 +8680,194 @@ var PREVIEW_LOG_AREAS = defineLogAreas({
8271
8680
  "partitions.retry-forgotten-failed": "Retrying a forgotten preview cleanup failed.",
8272
8681
  "port-hints.persist-failed": "Preview port hints could not be saved.",
8273
8682
  "transport.close-failed": "A preview transport could not be closed.",
8683
+ "ca-bundle.read-failed": "The upstream CA bundle could not be read.",
8684
+ "publication.start-failed": "Private preview publication did not start.",
8685
+ "publication.reconfigure-failed": "Preview publication could not be reconfigured.",
8686
+ "publication.listening": "Private preview origins are listening.",
8687
+ "certificate.reloaded": "The preview certificate was reloaded.",
8688
+ "access.revoked-close-failed": "A revoked preview resource could not be closed. Error class only.",
8689
+ "registry.invalid-definition": "An invalid stored preview service definition was ignored.",
8690
+ "registry.environment-reconcile-failed": "An environment's preview services could not be reconciled.",
8691
+ "registry.resolver-failed": "A preview resolver failed. Error class only.",
8692
+ "registry.revocation-listener-failed": "A preview revocation listener threw. Error class only.",
8693
+ "registry.change-emit-failed": "A preview change event could not be emitted. Error class only.",
8274
8694
  ...THROTTLE_LOG_EVENTS
8275
8695
  }
8276
8696
  }
8277
8697
  });
8278
8698
 
8699
+ // ../protocol/src/log-vocabulary/runtime.ts
8700
+ var RUNTIME_LOG_AREAS = defineLogAreas({
8701
+ "event-loop": {
8702
+ description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
8703
+ events: {
8704
+ stalled: "A timer fired late, so every request in that window waited."
8705
+ }
8706
+ }
8707
+ });
8708
+
8279
8709
  // ../protocol/src/log-vocabulary/terminal.ts
8280
8710
  var TERMINAL_LOG_AREAS = defineLogAreas({
8281
8711
  terminal: {
8282
- description: "The renderer's terminal. Its lines stay in the browser console, never the saved log.",
8712
+ description: "Terminals. The renderer's lines stay in the browser console; the backend's reach the saved log.",
8283
8713
  events: {
8284
8714
  "input.undelivered": "A keystroke did not reach a shell: `no-session` or `not-delivered`.",
8715
+ "orphan.reaped": "A terminal no tab references was closed.",
8716
+ "agent-completion.notify-failed": "A terminal agent's completion could not be reported.",
8717
+ "activity.record-failed": "Terminal environment activity could not be recorded.",
8718
+ "pty.exit-listener-failed": "A terminal exit listener threw; the others still run.",
8719
+ "pty.exit-notify-failed": "Notifying a terminal's exit failed.",
8720
+ "pty.late-exit-listener-failed": "A listener added after a terminal exited threw.",
8721
+ "setup.pty-reused": "A setup terminal reused its existing PTY.",
8722
+ "setup.pty-spawning": "A setup terminal is spawning its PTY. The argument count only, never the arguments.",
8723
+ "setup.pty-spawned": "A setup terminal's PTY started.",
8724
+ "setup.pty-exited": "A setup terminal's PTY exited.",
8725
+ "setup.preparing": "Workspace preparation started in the setup terminal.",
8726
+ "setup.session-creating": "A setup session is being created.",
8727
+ "setup.intro-emitted": "The setup intro was written to the terminal.",
8728
+ "setup.completed": "Setup finished.",
8729
+ "setup.failed": "Setup failed.",
8730
+ "setup.already-complete": "Setup was requested but had already finished.",
8731
+ "setup.renderer-ensured": "The renderer asked for setup to be running.",
8732
+ "setup.renderer-requested": "The renderer asked for the setup session.",
8733
+ "setup.renderer-requested-none": "The renderer asked for a setup session that does not exist.",
8734
+ "setup.no-commands": "An environment has no setup commands to run.",
8735
+ "setup.already-running": "Setup was requested while it was already running.",
8736
+ "setup.held-for-approval": "Setup is held until its commands are approved.",
8737
+ "setup.renderer-checked-session": "The renderer asked whether a setup terminal session exists.",
8738
+ "setup.renderer-requested-buffer": "The renderer asked for a setup terminal's output buffer. A size only, never its contents.",
8739
+ "input.resume-failed": "Asking the backend to resume refused terminal input failed.",
8740
+ "input.write-failed": "Writing input to a terminal session threw.",
8741
+ "listener.remove-failed": "Removing a terminal output listener threw.",
8742
+ "listener.released": "A terminal hook unmounted and dropped its output listener.",
8743
+ "session.unmounted": "A terminal hook unmounted; the shell keeps running.",
8744
+ "connect.called": "A terminal hook began connecting to a session.",
8745
+ "output.reconcile-failed": "Output could not be reconciled against the backend snapshot.",
8746
+ "session.stopped-while-disconnected": "A session ended while its event stream was down.",
8747
+ "session.disconnect-failed": "Closing or detaching a terminal session failed.",
8748
+ "session.resize-failed": "Resizing a terminal session failed, other than for a gone session.",
8749
+ "session.id-stored": "A new backend session id was saved for a terminal tab.",
8750
+ "session-key.environment-missing": "A local session key was built with no environment id.",
8751
+ "clipboard.image-failed": "An image pasted into a terminal could not be saved.",
8752
+ "clipboard.copy-failed": "Copying a terminal selection to the clipboard failed.",
8753
+ "clipboard.paste-failed": "A paste into a terminal failed; `target` says which path.",
8754
+ "clipboard.process-failed": "Reading or storing clipboard data for a paste failed.",
8755
+ "clipboard.image-save-failed": "An image from a paste event could not be written to disk.",
8756
+ "environment.ready-detected": "A first tab's output showed that the workspace is ready.",
8757
+ "shell.ready-detected": "A later tab's output showed that its shell is ready.",
8758
+ "setup.scripts-completed": "A setup tab's scripts reported their end by an escape code.",
8759
+ "setup.marked-complete": "The user marked a setup tab complete by hand.",
8760
+ "setup.awaiting-detection": "A first tab connected and is watching output for readiness.",
8761
+ "reconnect.setup-marker-found": "A reconnected tab's buffer already held the setup marker.",
8762
+ "reconnect.setup-marker-absent": "A reconnected first tab's buffer lacked the setup marker.",
8763
+ "reconnect.completed": "A terminal tab finished reconnecting to its session.",
8764
+ "restore.setup-marker-found": "A restored tab's buffer already held the setup marker.",
8765
+ "persistent-sessions.load-failed": "Listing an environment's saved sessions failed.",
8766
+ "persistent-session.restoring": "A tab began restoring from its saved session.",
8767
+ "persistent-session.found": "A tab found its saved session already recorded.",
8768
+ "persistent-session.creating": "A tab began recording a saved session for the sidebar.",
8769
+ "persistent-session.created": "A saved session for the sidebar was recorded.",
8770
+ "persistent-session.create-failed": "Recording a saved session for the sidebar failed.",
8771
+ "persistent-session.status-update-failed": "Marking a saved session connected failed.",
8772
+ "persistent-session.activity-update-failed": "Updating a saved session's activity failed.",
8773
+ "persistent-buffer.loaded": "A saved session's buffer loaded; only its length is logged.",
8774
+ "persistent-buffer.load-failed": "A saved session's buffer could not be loaded.",
8775
+ "persistent-buffer.save-failed": "Saving a session's buffer during cleanup failed.",
8776
+ "buffer.restore-failed": "Writing a saved buffer back into a terminal threw.",
8777
+ "buffer.serialize-failed": "Serializing a terminal's buffer during cleanup threw.",
8778
+ "command.launching": "A tab began launching its command in a new session.",
8779
+ "bootstrap.failed": "A launch request for a new session failed; it may retry.",
8780
+ "setup-session.bind-failed": "Looking up or binding the backend setup session failed.",
8781
+ "setup-tab.stale-removed": "A setup placeholder tab with no session was removed.",
8782
+ "multi-reviews.restore-failed": "Multi-review tabs could not be restored for an environment.",
8783
+ "pane-layout.restore-failed": "An environment's saved pane layout could not be read.",
8784
+ "pane-layout.history-migrate-failed": "Stripping private browser history fields failed.",
8785
+ "pane-layout.snapshot-remove-failed": "Removing an unusable pane layout snapshot failed.",
8786
+ "pane-layout.selection-migrate-failed": "Saving a migrated legacy pane selection failed.",
8787
+ "panes.reset": "An environment's panes were reset: its container changed or stopped.",
8788
+ "tabs.limit-reached": "A new tab was refused because the tab limit was reached.",
8789
+ "tab.created": "A new tab was added to a pane; `tabType` says which kind.",
8790
+ "tab.activated": "Opening a file selected the tab that already held it.",
8791
+ "tab.duplicate-refused": "A new tab was refused because its requested id is in use.",
8792
+ "tab.multi-review-refused": "A multi-review tab was refused for lack of a workflow id.",
8793
+ "tab.split-at-edge": "A dragged tab split a pane at one of its edges.",
8794
+ "tab.reordered": "A dragged tab moved within its pane.",
8795
+ "tab.moved": "A dragged tab moved to another pane.",
8796
+ "drag.ended": "A tab drag ended, whether or not it landed on a target.",
8797
+ "display.state": "The terminal container's overlays and tab count, on each dev render.",
8798
+ "compose.draft-restore-failed": "A saved compose draft could not be read.",
8799
+ "compose.draft-persist-failed": "A compose draft could not be saved or discarded.",
8800
+ "compose.image-too-large": "A pasted image stayed over the attachment limit after resizing.",
8801
+ "compose.image-add-failed": "Adding a pasted image to the compose bar failed.",
8802
+ "compose.image-save-failed": "Saving one compose image for sending failed; the rest proceed.",
8803
+ "compose.send-failed": "Sending from the compose bar failed.",
8804
+ "init-logs.load-failed": "A container's initialization logs could not be loaded.",
8805
+ "init-logs.refresh-stopped": "A container's initialization logs stopped refreshing.",
8806
+ "portal.terminal-created": "The portal host created a terminal for a new tab.",
8807
+ "portal.terminal-disposed": "The portal host disposed a terminal for a removed tab.",
8808
+ "link.open-failed": "Opening a terminal link in the external browser failed.",
8809
+ "canvas.context-unavailable": "A resize canvas had no 2D context; the original is kept.",
8285
8810
  ...THROTTLE_LOG_EVENTS
8286
8811
  }
8812
+ },
8813
+ "terminal.setup": {
8814
+ description: "The renderer attaching a backend-managed environment setup terminal.",
8815
+ events: {
8816
+ "session.bind-from-environment": "The environment hook bound a setup session to a tab.",
8817
+ "setup.started-received": "An environment-setup-started event arrived.",
8818
+ "setup.complete-received": "An environment-setup-complete event arrived.",
8819
+ "attach.state-changed": "A setup tab's attach inputs changed; runs per effect pass.",
8820
+ "terminal.preserve-failed": "Keeping a setup terminal's buffer before conversion failed.",
8821
+ "tab.marker-retired": "A setup tab with no live PTY stopped being a setup tab.",
8822
+ "tab.added": "The backend-managed setup tab was added to a new layout.",
8823
+ "session.bind-skipped": "A setup session lookup was already running for this tab.",
8824
+ "session.requested": "A tab asked the backend for its setup session.",
8825
+ "session.unavailable": "The backend had no setup session to give a tab.",
8826
+ "session.bind-started": "A backend setup session was found and is being bound to a tab.",
8827
+ "session.awaited": "The layout is waiting for a setup session before adding the tab.",
8828
+ "reconcile.started": "The reconcile effect found setup tabs that still need a session.",
8829
+ "reconnect-listener.install-failed": "Listening for event stream reconnects failed.",
8830
+ "layout.initial-decided": "An empty layout was evaluated for its setup tab; runs per effect."
8831
+ }
8287
8832
  }
8288
8833
  });
8289
8834
 
8290
8835
  // ../protocol/src/log-vocabulary/tmux.ts
8291
8836
  var TMUX_LOG_AREAS = defineLogAreas({
8292
8837
  tmux: {
8293
- description: "The poll loop behind a Claude tmux tab.",
8838
+ description: "Claude tmux tabs: launch, the poll loop, cleanup and the tmux prompt queue.",
8294
8839
  events: {
8295
8840
  "poll.discovery-failed": "Finding the session's transcript failed; a later tick retries.",
8296
8841
  "poll.snapshot-failed": "Reading the hook and transcript state failed; the next tick retries.",
8297
8842
  "poll.drain-pending-failed": "Delivering pending hook events failed; the next tick retries.",
8298
8843
  "poll.drain-timeouts-failed": "Delivering hook timeouts failed; the next tick retries.",
8299
8844
  "poll.tail-failed": "Reading new transcript lines failed; the next tick retries.",
8845
+ "cleanup.session-stop-failed": "A tmux session could not be stopped while cleaning up an environment.",
8846
+ "cleanup.skipped": "Environment tmux cleanup was skipped because tmux could not be reached and nothing required it.",
8847
+ "cleanup.environments-load-failed": "Environments could not be loaded during tmux cleanup, so it stays incomplete.",
8848
+ "cleanup.kill-failed": "An environment's tmux sessions could not be killed.",
8849
+ "hooks.uninstall-failed": "Workspace hooks could not be uninstalled.",
8850
+ "hooks.git-exclude-failed": "The git exclude for Claude's local settings could not be set.",
8851
+ "naming.prepare-failed": "First-prompt naming could not be prepared; the prompt still goes ahead.",
8852
+ "orphans.skipped": "Orphan reconciliation was skipped because pane layouts are unreadable.",
8853
+ "orphan.reaped": "A tmux session no tab references was killed.",
8854
+ "orphan.kill-skipped": "An orphan tmux kill was skipped because the tmux server could not be reached.",
8855
+ "cli.thinking-display-probe-failed": "Probing the CLI for --thinking-display failed, so it launches without it.",
8856
+ "cli.fast-mode-unsupported": "The claude CLI lacks --settings, so it launches without fast mode.",
8857
+ "cli.effort-unsupported": "The claude CLI lacks --effort, so it launches without it.",
8858
+ "interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
8859
+ "signal.arm-failed": "The Claude state signal could not be armed.",
8860
+ "signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
8861
+ "pr-refresh.schedule-failed": "A pull request refresh after a turn could not be scheduled.",
8862
+ "pr-probe.failed": "Probing for a pull request an agent created failed.",
8863
+ "activity.persist-failed": "Tmux tab activity could not be saved.",
8864
+ "fast-mode.persist-failed": "The launch fast mode could not be saved.",
8865
+ "fast-mode.repair-failed": "Fast mode metadata could not be repaired on a reattached session.",
8866
+ "pane.observe-failed": "A pane observation failed. Error class only: pane contents are sensitive.",
8867
+ "turn.failure-record-failed": "A failed turn could not be recorded.",
8868
+ "slash-command.settle-timeout": "Timed out waiting for a Claude slash command to settle.",
8869
+ "queue.failing": "A tmux prompt queue keeps failing to dispatch.",
8870
+ "queue.rename-failed": "An environment could not be named from its first prompt; the prompt still goes ahead.",
8300
8871
  ...THROTTLE_LOG_EVENTS
8301
8872
  }
8302
8873
  }
@@ -8323,7 +8894,8 @@ var UPDATER_LOG_AREAS = defineLogAreas({
8323
8894
  "remote.unavailable": "Updates requested by remote clients are unavailable in this session.",
8324
8895
  "restart-prompt.failed": "The restart prompt for a downloaded update failed.",
8325
8896
  unavailable: "Auto-update could not be set up in this session.",
8326
- "update.failed": "electron-updater reported an update error."
8897
+ "update.failed": "electron-updater reported an update error.",
8898
+ "standalone.restarting": "A standalone backend is restarting into a new version."
8327
8899
  }
8328
8900
  }
8329
8901
  });
@@ -8334,29 +8906,958 @@ var WEB_ANNOTATIONS_LOG_AREAS = defineLogAreas({
8334
8906
  description: "Web annotation requests and their background reconciler.",
8335
8907
  events: {
8336
8908
  "reconcile.failed": "A background reconcile pass failed; the next one retries.",
8909
+ "legacy.degraded": "Legacy annotation storage is damaged, so the previous committed copy is served read-only.",
8910
+ "legacy.draft-index-problem": "The legacy draft index could not be used; `status` says why.",
8911
+ "legacy.unreadable-records": "The legacy import found unreadable records; they stay unread.",
8912
+ "legacy.unavailable": "Legacy annotation storage could not be read.",
8913
+ "legacy.unreadable": "An environment's legacy annotation storage is unreadable.",
8914
+ "legacy.archive-failed": "Imported legacy annotation files could not be archived.",
8915
+ "legacy.files-archived": "Legacy files beside an imported environment were archived, not imported.",
8916
+ "migration.draft-failed": "Migrating one draft failed.",
8917
+ "draft-reconcile.deferred": "Draft reconciliation was deferred; a later pass retries.",
8918
+ "request.handoff-deferred": "A request's handoff was deferred; a later pass retries.",
8919
+ "evidence.materialize-failed": "Materializing a request's evidence failed; it backs off and retries.",
8920
+ "queue.publish-deferred": "Publishing a request to the queue was deferred; it retries under the same id.",
8921
+ "request.reconcile-failed": "Reconciling a request failed; the next pass retries.",
8922
+ "turn-end.reconcile-failed": "Reconciling a request at the end of a turn failed; the next pass retries.",
8923
+ "gc.failed": "Annotation garbage collection failed; the next pass retries.",
8924
+ "record.unavailable": "An annotation record is unavailable; written once per record.",
8925
+ "storage.unavailable": "An environment's annotation store is unreadable.",
8926
+ "change-hint.listener-failed": "A change hint listener threw.",
8927
+ "orphan.remove-failed": "An orphaned environment's annotation storage could not be removed.",
8928
+ "storage.load-failed": "An environment's annotation storage could not be loaded.",
8337
8929
  ...THROTTLE_LOG_EVENTS
8338
8930
  }
8339
8931
  }
8340
8932
  });
8341
8933
 
8934
+ // ../protocol/src/log-vocabulary/storage.ts
8935
+ var STORAGE_LOG_AREAS = defineLogAreas({
8936
+ storage: {
8937
+ description: "The SQLite-backed stores, their snapshots and imports from older formats.",
8938
+ events: {
8939
+ "usage.environment-label-failed": "Usage labels could not be retained for a removed environment; deletion continues.",
8940
+ "snapshot.integrity-failed": "An hourly database snapshot failed its integrity check and was discarded.",
8941
+ "snapshot.skipped-low-disk": "The hourly database snapshot was skipped because the disk lacks room; `retryAt` says when it tries again.",
8942
+ "snapshot.failed": "The hourly database snapshot failed; `retryAt` says when it tries again, if known.",
8943
+ "listener.attention-failed": "An environment attention listener threw; the committed mutation stands.",
8944
+ "listener.change-failed": "A resource change listener threw; the committed mutation stands.",
8945
+ "kanban.image-cleanup-failed": "An orphaned Kanban image could not be removed after its retries; it is safe to remove later.",
8946
+ "nodes.entries-dropped": "Unreadable node registry entries were ignored.",
8947
+ "preview-identity.reminted": "The data directory moved or was copied, so previews get a new backend identity.",
8948
+ "machine-profile.invalid": "The stored machine profile was invalid and the default was restored.",
8949
+ "permission-rules.cleanup-failed": "A deleted project's permission rules could not be removed.",
8950
+ "retired.turn-cleanup-pending": "Cleanup of a retired Looped Review turn did not finish and stays pending.",
8951
+ "handoffs.prune-failed": "Pruning agent handoffs that nothing references failed; a later prune retries.",
8952
+ "desktop-connections.malformed": "Stored desktop connection settings were malformed, so the local connection is used.",
8953
+ "legacy-json.moved": "JSON store files written after the SQLite migration were archived, not imported.",
8954
+ "legacy-json.archive-failed": "Imported JSON store files could not be archived."
8955
+ }
8956
+ }
8957
+ });
8958
+
8959
+ // ../protocol/src/log-vocabulary/build-pipeline.ts
8960
+ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
8961
+ "build-pipeline": {
8962
+ description: "Build pipelines: their supervision, stages, transcripts and sidebar state.",
8963
+ events: {
8964
+ "sidebar.reconcile-failed": "Sidebar activity for pipelines could not be reconciled.",
8965
+ "sidebar.update-failed": "The sidebar could not be updated for one pipeline.",
8966
+ "result.consume-deferred": "Consuming a stage's workflow result failed; it stays staged and is retried.",
8967
+ "consolidation.consume-deferred": "Consuming a review consolidation result failed; it stays pending and is retried.",
8968
+ "dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request does the same work and answers authoritatively.",
8969
+ "interaction.resolved": "A human interaction on a pipeline stage resolved. Metadata only.",
8970
+ "transcripts.migrated": "A transcript migration pass moved stage transcripts; counts only.",
8971
+ "transcripts.maintenance-failed": "Migrating or sweeping stage transcripts failed; the next start retries.",
8972
+ "restore.skipped": "A pipeline could not be restored at startup and was skipped.",
8973
+ "criteria.record-failed": "Acceptance criteria results could not be recorded on the ticket.",
8974
+ "workspace.waiting": "A pipeline is waiting for its workspace; written once per reason.",
8975
+ "rewind.pending": "A pipeline's code rewind has not finished; written once per reason.",
8976
+ "kanban.status-failed": "A restarted pipeline's Kanban status could not be set; it retries shortly.",
8977
+ "usage.read-failed": "Reading a stage session's token usage failed.",
8978
+ "checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
8979
+ "checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
8980
+ "legacy-transcript.deferred": "Moving a legacy inline transcript failed; the inline body stays readable."
8981
+ }
8982
+ }
8983
+ });
8984
+
8985
+ // ../protocol/src/log-vocabulary/agent-branch.ts
8986
+ var AGENT_BRANCH_LOG_AREAS = defineLogAreas({
8987
+ "agent-branch": {
8988
+ description: "Agent branches shared by review fan-outs, graph agents and goal verifiers; `owner` names which.",
8989
+ events: {
8990
+ "observation.checkpoint-failed": "Checkpointing reviewer observations failed; the next pass retries.",
8991
+ "transcript.mirror-failed": "Mirroring a reviewer transcript failed.",
8992
+ "usage.read-failed": "Reading a reviewer's token usage failed.",
8993
+ "result.nudge-failed": "An agent with an uncommitted result could not be nudged.",
8994
+ "dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request answers authoritatively.",
8995
+ "result.consume-deferred": "Consuming a branch's workflow result failed; it stays staged and is retried."
8996
+ }
8997
+ }
8998
+ });
8999
+
9000
+ // ../protocol/src/log-vocabulary/change-tracking.ts
9001
+ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
9002
+ "change-tracking": {
9003
+ description: "Change tracking: turn capture, evidence pulls and measurements.",
9004
+ events: {
9005
+ "journal-import.failed": "Importing surviving OpenCode command journals as legacy summaries failed.",
9006
+ "projection.failed": "Projecting a change event onto its environment failed.",
9007
+ "startup.reconcile-failed": "Reconciling change tracking at startup failed.",
9008
+ "turn-start.capture-failed": "Capturing a turn's start failed, so the turn is untracked.",
9009
+ "dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
9010
+ "turn.finalize-failed": "Finalizing a turn failed.",
9011
+ "turn.settle-failed": "Settling a late interrupted turn failed.",
9012
+ "evidence.pull-failed": "Pulling change evidence from a bridge failed; a later pull retries.",
9013
+ "measurement.failed": "Recomputing a tool's measurement failed."
9014
+ }
9015
+ },
9016
+ "diff-stats": {
9017
+ description: "Environment diff stats and the worktree signals that drive them.",
9018
+ events: {
9019
+ "baseline.update-failed": "An environment's diff baseline could not be updated.",
9020
+ "scan.watcher-failed": "An environment's diff watcher failed; its scans fall back to polling.",
9021
+ "scan.failed": "A diff scan failed; the last results stay, marked stale, and the scan is retried.",
9022
+ "scan.freshness-read-failed": "Reading whether an environment's remote is fresh failed.",
9023
+ "scan.listener-failed": "A change-tracking scan listener threw; the scan itself stands.",
9024
+ "emit.diff-stats-failed": "A diff stats change could not be emitted to its sink.",
9025
+ "emit.worktree-snapshot-failed": "A worktree snapshot could not be emitted to its sink.",
9026
+ "signal.demoted": "A worktree signal stopped being trusted, so scans fall back to timers until it is re-armed."
9027
+ }
9028
+ }
9029
+ });
9030
+
9031
+ // ../protocol/src/log-vocabulary/coordinator.ts
9032
+ var COORDINATOR_LOG_AREAS = defineLogAreas({
9033
+ coordinator: {
9034
+ description: "Coordinators: delegations, status wakes and their store.",
9035
+ events: {
9036
+ "delegation.open-failed": "A delegation could not be opened; `source` says for what.",
9037
+ "deliver-now.drain-failed": "The mail delivery pass after deliverNow failed; the next sweep delivers.",
9038
+ "mail.move-failed": "Mail could not move to the new main coordinator.",
9039
+ "work.move-failed": "Work could not move to the main coordinator.",
9040
+ "wake.observe-remote-workflow-failed": "A remote workflow could not be observed for status wakes.",
9041
+ "wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
9042
+ "wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
9043
+ "wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
9044
+ "wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
9045
+ "wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
9046
+ "wake.waiting-report-failed": "A waiting worker could not be reported.",
9047
+ "wake.worker-outcomes-failed": "Coordinator-owned workers' merges and deletions could not be checked; the next sweep retries.",
9048
+ "store.malformed": "The coordinator store was malformed and is treated as empty.",
9049
+ "store.unsupported-version": "The coordinator store has an unsupported version and is treated as empty.",
9050
+ "store.invalid-workspace": "An invalid coordinator workspace record was ignored.",
9051
+ "store.workflows-cleared": "The workflow store was full, so a batch of its oldest finished records was removed.",
9052
+ "store.workflows-in-use": "The workflow store was full and every record was still in use, so new work was refused.",
9053
+ "remote-worker.settle-failed": "A remote worker could not be settled."
9054
+ }
9055
+ }
9056
+ });
9057
+
9058
+ // ../protocol/src/log-vocabulary/review.ts
9059
+ var REVIEW_LOG_AREAS = defineLogAreas({
9060
+ review: {
9061
+ description: "Multi Review workflows: scheduling, graph runs and interactive fix sessions.",
9062
+ events: {
9063
+ "fix-tab.publish-failed": "A fix request was delivered but its tab could not be opened; the user is told.",
9064
+ "graph-run.not-started": "A workflow's graph run did not start.",
9065
+ "reconcile.scan-failed": "A reconciliation scan failed; the next scan retries.",
9066
+ "graph-engine.unavailable": "The graph engine is selected but unavailable, so the bespoke engine runs.",
9067
+ "graph-run.cancel-failed": "Cancelling a graph run failed; the next pass projects how it ended.",
9068
+ "delete.cleanup-failed": "A cleanup step after deleting a workflow failed; stale tabs reconcile away on hydration.",
9069
+ "fix-session.read-failed": "Reading an interactive fix session's state failed.",
9070
+ "fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
9071
+ "fix-usage.read-failed": "Reading a fix session's token usage failed.",
9072
+ "result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
9073
+ "failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
9074
+ }
9075
+ },
9076
+ "pull-request": {
9077
+ description: "Pull request monitoring, auto-merge and the `gh` reads behind them.",
9078
+ events: {
9079
+ "merged-state.persist-failed": "A merged pull request's state could not be saved; GitHub stays authoritative and cleanup goes on.",
9080
+ "refresh.failed": "A pull request could not be refreshed; the armed flag stands.",
9081
+ "arm.track-failed": "An armed environment could not be tracked; the monitor's next sync retries.",
9082
+ "gh.pr-list-unparseable": "`gh pr list` returned nothing that parses. Sizes only, never the output.",
9083
+ "monitor.start-failed": "Monitoring could not start for a newly opened pull request.",
9084
+ "cleanup-scheduler.missing": "A merged pull request was seen, but this runtime has no merge cleanup scheduler.",
9085
+ "auto-merge.evaluation-failed": "Evaluating an environment for auto-merge failed.",
9086
+ "auto-merge.merge-failed": "Auto-merge could not merge a pull request; the attempt is held and retried.",
9087
+ "auto-merge.resolve-failed": "Auto-merge could not launch Resolve for a pull request; the attempt is held and retried.",
9088
+ "monitor.detection-failed": "Checking an environment for its pull request failed.",
9089
+ "monitor.detection-admission-failed": "A pull request check could not be admitted to the work pool.",
9090
+ "monitor.terminal-repair-failed": "Repairing a merged or closed pull request's side effects failed.",
9091
+ "monitor.terminal-resume-failed": "Resuming a merged or closed pull request's side effects failed.",
9092
+ "monitor.stale-reading-ignored": "A non-merged reading (`state`) for a pull request already merged was ignored as stale.",
9093
+ "monitor.state-persist-failed": "A pull request's observed state could not be saved.",
9094
+ "monitor.state-clear-failed": "A pull request's saved state could not be cleared.",
9095
+ "monitor.task-reconcile-failed": "Updating the Kanban task of a merged or closed (`state`) pull request failed.",
9096
+ "monitor.task-store-failed": "A pull request could not be recorded on its Kanban task.",
9097
+ "monitor.emit-failed": "A pull request monitor event could not be emitted to its sink."
9098
+ }
9099
+ }
9100
+ });
9101
+
9102
+ // ../protocol/src/log-vocabulary/public-api.ts
9103
+ var PUBLIC_API_LOG_AREAS = defineLogAreas({
9104
+ "public-api": {
9105
+ description: "The public CLI's operations: their outcomes, reconciliation and exec workers.",
9106
+ events: {
9107
+ "outcome.record-failed": "A background operation's outcome could not be recorded; reconciliation settles it.",
9108
+ "goal-checks.stop-failed": "Goal checks could not be stopped.",
9109
+ "exec.list-failed": "Exec workers could not be listed.",
9110
+ "exec.cancel-failed": "An exec could not be cancelled.",
9111
+ "goal-workers.list-failed": "Goal check workers could not be listed.",
9112
+ "operation.reconcile-failed": "Reconciling one operation failed; the next pass retries.",
9113
+ "reconcile.pass-failed": "A reconciliation pass failed; the next one retries."
9114
+ }
9115
+ }
9116
+ });
9117
+
9118
+ // ../protocol/src/log-vocabulary/agent-accounts.ts
9119
+ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
9120
+ "agent-accounts": {
9121
+ description: "Agent accounts: automatic switching, staged logins and plan usage.",
9122
+ events: {
9123
+ "switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
9124
+ "auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
9125
+ "container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
9126
+ "last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
9127
+ "login-cleanup.failed": "A temporary login could not be cleaned up.",
9128
+ "login-refresh.deferred": "Containers were not told to refresh their login now; they reconcile from its durable generation."
9129
+ }
9130
+ }
9131
+ });
9132
+
9133
+ // ../protocol/src/log-vocabulary/docker.ts
9134
+ var DOCKER_LOG_AREAS = defineLogAreas({
9135
+ docker: {
9136
+ description: "Docker containers: lifecycle, starts, staged inputs and the login files they hold.",
9137
+ events: {
9138
+ "portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
9139
+ "project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
9140
+ "opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
9141
+ "login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
9142
+ "login-keeper.refresh-failed": "Refreshing the host Claude login failed. Fixed text: CLI output can hold credentials.",
9143
+ "login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
9144
+ "login-keeper.refresh-check-failed": "Checking the host Claude login after a refresh failed.",
9145
+ "login-watcher.pass-failed": "A container login file watcher pass failed; the next one retries.",
9146
+ "lifecycle.record-failure-failed": "A failed container operation could not be recorded.",
9147
+ "lifecycle.reconcile-failed": "Reconciling one environment's container operation failed; the next pass retries.",
9148
+ "replacement.clear-terminals-failed": "Terminal sessions could not be cleared after a container replacement.",
9149
+ "recovery.clear-terminals-failed": "Terminal sessions could not be cleared after a recovery restore.",
9150
+ "github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container, so its firewall fetches them.",
9151
+ "availability.probe-failed": "Docker is not available; written when the diagnostic changes. Fixed-shape metadata only: messages can hold daemon endpoints.",
9152
+ "start.port-collision-retrying": "An automatic host port collided on start, so it is retried once with fresh ports."
9153
+ }
9154
+ },
9155
+ "docker.reachability": {
9156
+ description: "Whether agents in containers can reach the backend's agent tools server.",
9157
+ events: {
9158
+ "check.crashed": "A reachability check crashed.",
9159
+ "check.started": "A reachability check started.",
9160
+ "check.finished": "A reachability check finished.",
9161
+ "check.probe": "One probe of a finished check.",
9162
+ "check.summary": "Content-free status and reason for a check that did not find the host reachable.",
9163
+ "check.remediation": "One command the user can run to unblock containers.",
9164
+ "shutdown.awaiting-network": "Shutdown is waiting for probe network preparation.",
9165
+ "shutdown.cleanup-deferred": "Probe network cleanup waits until its preparation settles.",
9166
+ "shutdown.removing-resources": "Shutdown is removing probe resources.",
9167
+ "shutdown.container-remove-failed": "A probe container could not be removed at shutdown.",
9168
+ "shutdown.network-remove-failed": "The probe network could not be removed at shutdown.",
9169
+ "probe.skipped": "A container probe was skipped because the agent tools server is not listening.",
9170
+ "preflight.refused": "A stage was refused because its container cannot reach the host.",
9171
+ "probe.prepare-failed": "A container could not be prepared for a probe.",
9172
+ "probe.result": "The outcome of probing one container.",
9173
+ "probe.contradicts-host": "A container probe disagrees with the host status, so the host is rechecked.",
9174
+ "topology.detected": "The Docker topology was read.",
9175
+ "firewall.detected": "The host firewall was read.",
9176
+ "probe-network.remove-failed": "The probe network could not be removed.",
9177
+ "probe-network.create-failed": "The probe network could not be created, so only the default bridge is checked.",
9178
+ "event.emit-failed": "A reachability event could not be emitted.",
9179
+ "host-addresses.list-failed": "Host addresses could not be listed.",
9180
+ "probe-image.present": "The probe image is already present.",
9181
+ "probe-image.pulling": "The probe image is being pulled.",
9182
+ "probe-image.pulled": "The probe image was pulled.",
9183
+ "probe-image.pull-failed": "The probe image could not be pulled.",
9184
+ "probe-image.fallback": "The environment image is used as the probe image.",
9185
+ "probe-image.missing": "No probe image is available.",
9186
+ "network.list-failed": "Docker networks could not be listed.",
9187
+ "network.inspect-failed": "A Docker network could not be inspected.",
9188
+ "stale-containers.removing": "Stale probe containers are being removed.",
9189
+ "stale-networks.removing": "Stale probe networks are being removed."
9190
+ }
9191
+ }
9192
+ });
9193
+
9194
+ // ../protocol/src/log-vocabulary/mcp.ts
9195
+ var MCP_LOG_AREAS = defineLogAreas({
9196
+ "control-mcp": {
9197
+ description: "The Control MCP server other agents and devices reach Orkestrator through.",
9198
+ events: {
9199
+ "listener.port-free": "The Control MCP's fixed port is free again, so it is listening.",
9200
+ "state-listener.failed": "A Control MCP state listener threw; the others still run.",
9201
+ "delegation.remote-open-failed": "A delegation could not be opened on another node.",
9202
+ "delegation.open-failed": "A coordinator delegation could not be opened."
9203
+ }
9204
+ },
9205
+ "mcp-management": {
9206
+ description: "Managed MCP configuration: its commands, overlays and apply loop.",
9207
+ events: {
9208
+ "command.failed": "An MCP management command failed; `ref` is the correlation id shown to the user.",
9209
+ "overlay.materialise-failed": "An MCP overlay could not be written.",
9210
+ "apply.tick-failed": "An MCP apply tick failed; the next one retries."
9211
+ }
9212
+ }
9213
+ });
9214
+
9215
+ // ../protocol/src/log-vocabulary/design.ts
9216
+ var DESIGN_LOG_AREAS = defineLogAreas({
9217
+ design: {
9218
+ description: "The design canvas: its library, renderer and session links.",
9219
+ events: {
9220
+ "change-signal.failed": "A design change signal failed.",
9221
+ "library.index-write-failed": "The design library index could not be written.",
9222
+ "library.refresh-failed": "The design library could not be refreshed.",
9223
+ "renderer.problem": "The renderer hit a limit or lost a browser; `problem` is a fixed name.",
9224
+ "task.failed": "A design background task failed.",
9225
+ "canvas.needs-recovery": "A design canvas is unreadable and marked for recovery.",
9226
+ "startup.step-failed": "One part of design startup failed; `step` says which.",
9227
+ "legacy.retire-failed": "A migrated legacy design could not be retired.",
9228
+ "profiles.swept": "Design startup removed stale browser profiles.",
9229
+ "session-link.record-failed": "A closing conversation could not be recorded on a design link."
9230
+ }
9231
+ }
9232
+ });
9233
+
9234
+ // ../protocol/src/log-vocabulary/graph.ts
9235
+ var GRAPH_LOG_AREAS = defineLogAreas({
9236
+ graph: {
9237
+ description: "Graph runs: launches, passes, rewinds, system actions and templates.",
9238
+ events: {
9239
+ "describe.pass-failed": "A graph describe pass failed. Content-free: never the description or draft.",
9240
+ "system.stop-failed": "A system action's work could not be stopped.",
9241
+ "system.action-failed": "A system action failed; `cause` is its fixed failure cause.",
9242
+ "attention.update-failed": "The sidebar could not be updated for a run.",
9243
+ "launch.ticket-link-failed": "A launched run's ticket could not be linked.",
9244
+ "launch.started": "A graph run was launched.",
9245
+ "launch.swept": "Runs that ended without an environment were removed.",
9246
+ "rewind.pending": "A run's code rewind has not finished.",
9247
+ "rewind.applied": "A run was restarted or rewound.",
9248
+ "rewind.waiting": "A run waits for its code rewind to finish.",
9249
+ "history.pruned": "Finished runs beyond an environment's history were removed.",
9250
+ "history.prune-failed": "Pruning an environment's run history failed.",
9251
+ "worktree.cleanup-failed": "A run's branch worktree cleanup failed.",
9252
+ "run.unreadable": "A run is unreadable, so it is not scheduled.",
9253
+ "run.pass-failed": "A pass over a run failed.",
9254
+ "transcript.capture-failed": "A run's transcript capture failed.",
9255
+ "ticket.link-failed": "A run's ticket could not be linked to its environment.",
9256
+ "template.skipped": "A built-in template was skipped as invalid or a duplicate."
9257
+ }
9258
+ }
9259
+ });
9260
+
9261
+ // ../protocol/src/log-vocabulary/nodes.ts
9262
+ var NODES_LOG_AREAS = defineLogAreas({
9263
+ nodes: {
9264
+ description: "Command nodes: links, handovers, leaf mail and project copies.",
9265
+ events: {
9266
+ "actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
9267
+ "project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
9268
+ "mail.delivery-deferred": "Leaf mail could not reach a coordinator yet.",
9269
+ "command.post-step-failed": "A step after a routed command failed.",
9270
+ "seed-files.incomplete": "Seed files for a leaf environment were not all copied.",
9271
+ "contact.record-failed": "The latest controller contact could not be recorded.",
9272
+ "settings.send-failed": "Settings could not be sent to a node.",
9273
+ "verification.record-failed": "A node verification could not be recorded.",
9274
+ "profile.record-failed": "A node profile could not be recorded.",
9275
+ "detach.unconfirmed": "A forgotten node has not confirmed the detach yet.",
9276
+ "handover.recovery-pending": "Command handover recovery is still pending."
9277
+ }
9278
+ }
9279
+ });
9280
+
9281
+ // ../protocol/src/log-vocabulary/linear.ts
9282
+ var LINEAR_LOG_AREAS = defineLogAreas({
9283
+ linear: {
9284
+ description: "Linear issues read for build actions.",
9285
+ events: {
9286
+ "comments.load-failed": "An issue's comments could not be loaded; the issue still renders without them."
9287
+ }
9288
+ }
9289
+ });
9290
+
9291
+ // ../protocol/src/log-vocabulary/usage-history.ts
9292
+ var USAGE_HISTORY_LOG_AREAS = defineLogAreas({
9293
+ "usage-history": {
9294
+ description: "Recorded agent token usage.",
9295
+ events: {
9296
+ "record.failed": "Agent usage could not be recorded; a later read counts it.",
9297
+ "prune.failed": "Pruning recorded usage failed; the next prune retries."
9298
+ }
9299
+ }
9300
+ });
9301
+
9302
+ // ../protocol/src/log-vocabulary/feature.ts
9303
+ var FEATURE_LOG_AREAS = defineLogAreas({
9304
+ feature: {
9305
+ description: "Pipeline environments started from a feature, and feature planning.",
9306
+ events: {
9307
+ "naming.fallback": "Automatic naming failed, so a local fallback name is used. Error kind only: the description stays out.",
9308
+ "planning.legacy-adopt-failed": "Legacy planning conversations could not be adopted.",
9309
+ "planning.tick-retrying": "A planning tick failed on a transient error; the next tick retries."
9310
+ }
9311
+ }
9312
+ });
9313
+
9314
+ // ../protocol/src/log-vocabulary/host.ts
9315
+ var HOST_LOG_AREAS = defineLogAreas({
9316
+ host: {
9317
+ description: "The host machine: its executables, load, suspends and maintenance.",
9318
+ events: {
9319
+ "path.discovered": "Executable discovery finished. Counts and booleans only: PATH entries can hold private directory names.",
9320
+ "tool.available": "A host tool's availability was read.",
9321
+ "tool.missing": "A host tool was not found.",
9322
+ "maintenance.listener-failed": "A host maintenance listener threw; the others still run.",
9323
+ "suspend.reconcile-failed": "Reconciling due work after a host suspension failed.",
9324
+ "load.sample-failed": "Sampling machine load failed; the next sample retries."
9325
+ }
9326
+ }
9327
+ });
9328
+
9329
+ // ../protocol/src/log-vocabulary/transcript-artifacts.ts
9330
+ var TRANSCRIPT_ARTIFACTS_LOG_AREAS = defineLogAreas({
9331
+ "transcript-artifacts": {
9332
+ description: "Transcript artifacts: previews, printing, grants and their ledger. Ids, kinds, sizes and reason codes only.",
9333
+ events: {
9334
+ "announce-failed": "An artifact change could not be announced.",
9335
+ "cleanup-failed": "An artifact cleanup failed.",
9336
+ "grant-revocation-failed": "A grant could not be revoked.",
9337
+ "ledger-listener-failed": "A ledger listener threw.",
9338
+ "ledger-read-failed": "The ledger could not be read.",
9339
+ "operation-executor-failed": "A preview operation's executor failed.",
9340
+ "operation-failed": "A preview operation failed.",
9341
+ "pdf-preview": "A PDF preview was served.",
9342
+ "pdf-preview-failed": "A PDF preview failed.",
9343
+ "pdf-print-failed": "Printing an artifact to PDF failed.",
9344
+ "pdf-printed": "An artifact was printed to PDF.",
9345
+ "runtime-unavailable": "The artifact runtime could not be created."
9346
+ }
9347
+ }
9348
+ });
9349
+
9350
+ // ../protocol/src/log-vocabulary/scheduler.ts
9351
+ var SCHEDULER_LOG_AREAS = defineLogAreas({
9352
+ scheduler: {
9353
+ description: "Scheduled jobs and the backend-owned timing that fires them.",
9354
+ events: {
9355
+ "tick.failed": "A scheduler tick failed; the next tick retries.",
9356
+ "job.claim-failed": "A due job could not be claimed.",
9357
+ "fire.heartbeat-failed": "A running fire's heartbeat could not be recorded.",
9358
+ "fire.outcome-record-failed": "A finished fire's outcome could not be recorded."
9359
+ }
9360
+ }
9361
+ });
9362
+
9363
+ // ../protocol/src/log-vocabulary/web-app.ts
9364
+ var WEB_APP_LOG_AREAS = defineLogAreas({
9365
+ "web.app": {
9366
+ description: "The application root: startup checks and restoring state.",
9367
+ events: {
9368
+ "config.load-failed": "The application config could not be loaded.",
9369
+ "docker.check-failed": "A Docker availability probe failed; the result stays unknown.",
9370
+ "docker.checked": "A Docker availability check finished.",
9371
+ "docker.orphans-cleared": "Reconciling with Docker cleared orphaned container references.",
9372
+ "docker.sync-failed": "Reconciling environments with Docker failed; non-fatal.",
9373
+ "prompt-queues.restore-failed": "An environment's prompt queues could not be restored.",
9374
+ "multi-reviews.restore-failed": "An environment's multi reviews could not be restored.",
9375
+ "build-pipelines.migrate-failed": "Migrating legacy build pipelines failed; the next launch retries.",
9376
+ "build-pipelines.restore-failed": "A project's build pipelines could not be restored.",
9377
+ "macos-permissions.check-failed": "Reading macOS file permission status failed.",
9378
+ "cli-check.failed": "One startup CLI check failed; its result stays unknown.",
9379
+ "cli-check.completed": "A startup CLI check finished; one line per tool.",
9380
+ "cli-check.retried": "A user-requested CLI recheck finished.",
9381
+ "cli-check.retry-failed": "A user-requested CLI recheck failed.",
9382
+ "exit.failed": "Exiting through the plugin failed; the window closes instead.",
9383
+ "zoom.native-failed": "Applying native zoom failed; the CSS fallback is used.",
9384
+ "github-cli.status-failed": "Reading the GitHub CLI setup status failed.",
9385
+ "attachments.restore-failed": "Saved prompt attachments could not be restored before startup.",
9386
+ "startup-launch.persist-failed": "Saving the startup agent launch failed; nothing started.",
9387
+ "environment.start-failed": "Starting an environment from the terminal overlay failed.",
9388
+ "project.delete-failed": "Deleting a project from its dialog failed."
9389
+ }
9390
+ },
9391
+ "web.session": {
9392
+ description: "The renderer's terminal and agent session store.",
9393
+ events: {
9394
+ "status.update-failed": "A session status change could not be saved.",
9395
+ "activity.update-failed": "A best-effort session activity update failed.",
9396
+ "environment-sessions.disconnect-failed": "Disconnecting an environment's sessions failed.",
9397
+ "container-sessions.sync-failed": "Syncing sessions with container state failed.",
9398
+ "reorder.failed": "Reordering sessions failed; the list reloads from the backend.",
9399
+ "refresh.manual-failed": "A manual refresh of an agent tab failed."
9400
+ }
9401
+ },
9402
+ "web.action-bar": {
9403
+ description: "The environment action bar.",
9404
+ events: {
9405
+ "editor.open-failed": "The external editor could not be opened.",
9406
+ "run-commands.read-failed": "Reading the project's run commands file failed.",
9407
+ "environment.delete-failed": "Deleting an environment from the action bar failed.",
9408
+ "merge.started": "A user-requested PR merge started.",
9409
+ "merge.completed": "A user-requested PR merge command returned.",
9410
+ "merge.failed": "A user-requested PR merge failed."
9411
+ }
9412
+ }
9413
+ });
9414
+
9415
+ // ../protocol/src/log-vocabulary/web-build-pipeline.ts
9416
+ var WEB_BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
9417
+ "web.build-pipeline": {
9418
+ description: "Build pipelines as the renderer starts, hydrates and shows them.",
9419
+ events: {
9420
+ "build.start-failed": "A build could not be started.",
9421
+ "pipeline.hydrate-failed": "A pipeline read failed; source says who asked for it.",
9422
+ "pipeline.project-mismatch": "A pending tab activation was dropped: wrong project.",
9423
+ "environment.not-found": "A build's environment read returned nothing after creation.",
9424
+ "environment.project-mismatch": "A build's environment was not added: wrong project.",
9425
+ "environment.hydrate-failed": "A build's environment read failed; live sync can recover.",
9426
+ "transcript.load-failed": "A stage transcript read failed and will retry with backoff.",
9427
+ "legacy.state-too-large": "Legacy pipeline state was over the limit and skipped.",
9428
+ "opencode-catalog.load-failed": "The cached OpenCode model list could not be loaded.",
9429
+ "opencode-preferences.load-failed": "OpenCode model preferences could not be loaded."
9430
+ }
9431
+ }
9432
+ });
9433
+
9434
+ // ../protocol/src/log-vocabulary/web-chat.ts
9435
+ var WEB_CHAT_LOG_AREAS = defineLogAreas({
9436
+ "web.chat": {
9437
+ description: "Rendering the agent transcript: messages, rich blocks and question cards.",
9438
+ events: {
9439
+ "message.copy-failed": "A message could not be copied to the clipboard.",
9440
+ "message.long-press-failed": "A user message's long-press action failed.",
9441
+ "message.link-open-failed": "A link in a message could not be opened.",
9442
+ "message.render-failed": "One transcript row failed to render; fields are the bounded diagnostic.",
9443
+ "image-preview.load-failed": "An image in a message could not be loaded for preview.",
9444
+ "session-list.load-failed": "The resume dialog could not fetch the resumable sessions.",
9445
+ "question.submit-failed": "An answer to an agent's question could not be submitted.",
9446
+ "question.dismiss-failed": "An agent's question could not be dismissed.",
9447
+ "rich-block.render-failed": "A rich block's renderer failed and its source is shown instead.",
9448
+ "rich-block.copy-failed": "A rich block's copy action could not write to the clipboard.",
9449
+ "scroll-viewport.not-found": "The scroll viewport was still missing when polling for it ended."
9450
+ }
9451
+ },
9452
+ "web.native-agent": {
9453
+ description: "The native agent tab and its composer.",
9454
+ events: {
9455
+ "model-catalogue.load-failed": "The native model catalogue could not be loaded.",
9456
+ "provider-lock.persist-failed": "The locked agent choice could not be saved.",
9457
+ "compose-draft.persist-failed": "A compose draft could not be saved.",
9458
+ "compose-draft.restore-failed": "A saved compose draft could not be restored.",
9459
+ "compose-draft.discard-failed": "A saved compose draft could not be discarded.",
9460
+ "paste.failed": "Pasting an image into a composer failed unexpectedly.",
9461
+ "agent-state.listen-failed": "Subscribing to a tab's agent state events failed.",
9462
+ "model-favorites.persist-failed": "The favorite model list could not be saved."
9463
+ }
9464
+ }
9465
+ });
9466
+
9467
+ // ../protocol/src/log-vocabulary/web-claude-tmux.ts
9468
+ var WEB_CLAUDE_TMUX_LOG_AREAS = defineLogAreas({
9469
+ "web.claude-tmux": {
9470
+ description: "The renderer's Claude tmux chat tab and interactive terminal.",
9471
+ events: {
9472
+ "sessions.list-failed": "The resume dialog could not list tmux sessions.",
9473
+ "tab.hydrate-failed": "Reading a tab's tmux session from the backend failed.",
9474
+ "models.catalog-unavailable": "The model catalogue failed; the bundled fallback stays.",
9475
+ "queue.promote-failed": "After an interrupt, the next queued prompt did not become the draft.",
9476
+ "files.load-failed": "The file list for @mentions could not be loaded.",
9477
+ "clipboard.image-failed": "An image pasted into the interactive terminal could not be saved.",
9478
+ "terminal.resize-failed": "Resizing the interactive terminal's session failed.",
9479
+ "terminal.recover-failed": "The interactive terminal could not reattach to its session."
9480
+ }
9481
+ }
9482
+ });
9483
+
9484
+ // ../protocol/src/log-vocabulary/web-design.ts
9485
+ var WEB_DESIGN_LOG_AREAS = defineLogAreas({
9486
+ "web.design": {
9487
+ description: "Opening design canvas tabs.",
9488
+ events: {
9489
+ "tab.duplicate-refused": "A design tab was not opened because its id is already in use."
9490
+ }
9491
+ }
9492
+ });
9493
+
9494
+ // ../protocol/src/log-vocabulary/web-environment.ts
9495
+ var WEB_ENVIRONMENT_LOG_AREAS = defineLogAreas({
9496
+ "web.environment": {
9497
+ description: "Environment lifecycle and dialogs as the renderer drives them.",
9498
+ events: {
9499
+ "start.called": "The renderer was asked to start an environment.",
9500
+ "start.unknown-environment": "A start was requested for an id the store does not hold.",
9501
+ "start.snapshot-read": "An environment's state as its start began.",
9502
+ "start.status-set": "The environment was marked as creating before the backend call.",
9503
+ "start.background-requested": "A start is being handed to the backend to run in background.",
9504
+ "start.backend-requested": "A foreground start call to the backend is being made.",
9505
+ "start.backend-completed": "The backend finished a foreground start.",
9506
+ "start.environment-refreshed": "An environment was read back after a foreground start.",
9507
+ "start.worktree-missing": "A local environment started with no worktree path.",
9508
+ "start.failed": "Starting an environment from the renderer failed.",
9509
+ "stop.called": "The renderer was asked to stop an environment.",
9510
+ "stop.status-set": "The environment's status was set while stopping it.",
9511
+ "stop.backend-requested": "A stop call to the backend is being made.",
9512
+ "stop.backend-completed": "The backend finished a stop.",
9513
+ "stop.sessions-disconnecting": "A stopped environment's sessions are being disconnected.",
9514
+ "stop.sessions-disconnected": "A stopped environment's sessions were disconnected.",
9515
+ "stop.failed": "Stopping an environment from the renderer failed.",
9516
+ "restart.failed": "Restarting an environment from the renderer failed.",
9517
+ "status-sync.failed": "An environment's status could not be synced from the backend.",
9518
+ "list.refresh-failed": "A background refresh of a project's environments failed.",
9519
+ "setup-snapshot.reconcile-failed": "An environment's setup state could not be reconciled.",
9520
+ "rename.received": "An environment-renamed event arrived.",
9521
+ "rename.pr-state-cleared": "A rename changed the branch, so stale PR state was cleared.",
9522
+ "unread.clear-failed": "An environment's unread work could not be cleared on the backend.",
9523
+ "create.failed": "Creating an environment from the dialog failed.",
9524
+ "create.port-mappings-invalid": "Creation was refused: a port is not between 1 and 65535.",
9525
+ "create.attachment-read-failed": "A file dropped on the create dialog could not be read.",
9526
+ "auto-start.failed": "A background start after creating an environment was rejected.",
9527
+ "models.pi-seed-failed": "The create dialog could not seed the Pi model catalogue.",
9528
+ "models.opencode-cache-load-failed": "The create dialog could not read cached OpenCode models.",
9529
+ "github-credential.check-failed": "The GitHub credential check before creating failed.",
9530
+ "feature-build.start-failed": "Starting a pipeline environment from the dialog failed.",
9531
+ "settings.extensions-load-failed": "The settings dialog could not load extensions.",
9532
+ "settings.container-reset-failed": "The settings dialog could not reset the container.",
9533
+ "settings.save-failed": "The settings dialog could not save.",
9534
+ "domains.test-failed": "Testing whether network whitelist domains resolve failed.",
9535
+ "network-whitelist.save-failed": "The network whitelist dialog could not save."
9536
+ }
9537
+ },
9538
+ "web.sidebar": {
9539
+ description: "The project and environment sidebar.",
9540
+ events: {
9541
+ "reorder.persist-failed": "A sidebar reorder could not be saved.",
9542
+ "fork.failed": "Forking an environment from the sidebar failed.",
9543
+ "auto-start.started": "Selecting an unstarted local environment is starting it.",
9544
+ "auto-start.failed": "Starting a local environment on selection failed.",
9545
+ "environment.stop-failed": "Stopping a selected environment failed.",
9546
+ "environment.restart-failed": "Restarting a selected environment failed.",
9547
+ "environment.delete-failed": "Deleting an environment from the sidebar failed.",
9548
+ "environments.load-failed": "A project's environments could not be loaded for the sidebar.",
9549
+ "project.add-failed": "Adding a project from the sidebar failed.",
9550
+ "project.create-failed": "Creating a project from scratch failed.",
9551
+ "project.delete-failed": "Deleting a project from the sidebar failed.",
9552
+ "folder.project-remove-failed": "A project could not be removed from its folder.",
9553
+ "folder.rename-failed": "A project folder could not be renamed.",
9554
+ "folder.ungroup-failed": "A project folder could not be removed.",
9555
+ "folder.sort-failed": "A project folder could not be sorted."
9556
+ }
9557
+ },
9558
+ "web.docker": {
9559
+ description: "The Docker settings view.",
9560
+ events: {
9561
+ "data.load-failed": "Container or image data could not be loaded.",
9562
+ "container.stop-failed": "Stopping a container from Docker settings failed.",
9563
+ "container.delete-failed": "Deleting a container from Docker settings failed.",
9564
+ "container.reattach-failed": "Reattaching a container to a project failed."
9565
+ }
9566
+ },
9567
+ "web.project": {
9568
+ description: "Adding a project from the renderer.",
9569
+ events: {
9570
+ "directory-picker.failed": "The directory picker could not be opened.",
9571
+ "git-remote.read-failed": "A chosen directory's git remote could not be read."
9572
+ }
9573
+ }
9574
+ });
9575
+
9576
+ // ../protocol/src/log-vocabulary/web-files.ts
9577
+ var WEB_FILES_LOG_AREAS = defineLogAreas({
9578
+ "web.files": {
9579
+ description: "The files panel, file viewer and file search.",
9580
+ events: {
9581
+ "file.save-failed": "A file could not be saved.",
9582
+ "git-changes.load-failed": "The files panel could not load the git changes.",
9583
+ "file-tree.load-failed": "The file tree could not be loaded.",
9584
+ "changes.refresh-failed": "Refreshing the files panel's changes failed.",
9585
+ "folder.load-failed": "An expanded folder's contents could not be loaded.",
9586
+ "path.copy-failed": "A file's path could not be copied to the clipboard.",
9587
+ "draft.persist-failed": "A file viewer tab's draft could not be saved.",
9588
+ "draft.restore-failed": "A file viewer tab's saved draft could not be restored.",
9589
+ "draft.discard-failed": "A file's saved draft could not be discarded before a reload."
9590
+ }
9591
+ }
9592
+ });
9593
+
9594
+ // ../protocol/src/log-vocabulary/web-github.ts
9595
+ var WEB_GITHUB_LOG_AREAS = defineLogAreas({
9596
+ "web.github": {
9597
+ description: "Pull request and GitHub issue views.",
9598
+ events: {
9599
+ "pull-request.url-failed": "A pull request's URL could not be read.",
9600
+ "pull-request.mode-request-failed": "The pull request monitor refused a watch mode request.",
9601
+ "pull-request.copy-failed": "A pull request value could not be copied to the clipboard.",
9602
+ "comment-edit-draft.clear-failed": "An edited comment's saved draft could not be cleared.",
9603
+ "issue-draft.clear-failed": "An edited issue's saved drafts could not be cleared.",
9604
+ "comment-draft.clear-failed": "A posted comment's draft could not be cleared."
9605
+ }
9606
+ },
9607
+ "web.linear": {
9608
+ description: "The Linear tickets view.",
9609
+ events: {
9610
+ "comment-draft.clear-failed": "A posted comment's draft could not be cleared."
9611
+ }
9612
+ }
9613
+ });
9614
+
9615
+ // ../protocol/src/log-vocabulary/web-kanban.ts
9616
+ var WEB_KANBAN_LOG_AREAS = defineLogAreas({
9617
+ "web.kanban": {
9618
+ description: "The Kanban board, its task dialog and project notes.",
9619
+ events: {
9620
+ "tasks.load-failed": "A project's tasks could not be loaded.",
9621
+ "task.add-failed": "A new task could not be added.",
9622
+ "task.update-failed": "A task's fields could not be updated.",
9623
+ "task.content-update-failed": "A task's content edit could not be saved.",
9624
+ "task.build-status-clear-failed": "A task's build status could not be cleared.",
9625
+ "task.delete-failed": "A task could not be deleted.",
9626
+ "task.move-failed": "A task move failed and its status was rolled back.",
9627
+ "comment.add-failed": "A comment could not be added to a task.",
9628
+ "comment.delete-failed": "A comment could not be deleted from a task.",
9629
+ "image.add-failed": "An image could not be added to a task.",
9630
+ "image.delete-failed": "An image could not be deleted from a task.",
9631
+ "notes.load-failed": "Project notes could not be loaded; the editor stays disabled.",
9632
+ "notes.save-failed": "Project notes could not be saved.",
9633
+ "notes.draft-retained": "A notes save failed; the edit stays in its durable draft.",
9634
+ "draft.restore-failed": "A saved create-task draft could not be restored.",
9635
+ "draft.persist-failed": "A create-task draft could not be saved; phase says when.",
9636
+ "draft.discard-failed": "A create-task draft could not be removed; phase says when.",
9637
+ "build.start-failed": "The task dialog could not start a build for a task.",
9638
+ "build.create-and-start-failed": "The task dialog could not create a task and build it."
9639
+ }
9640
+ },
9641
+ "web.feature-plan": {
9642
+ description: "Feature planning in the renderer.",
9643
+ events: {
9644
+ "features.load-failed": "A project's features could not be loaded.",
9645
+ "feature.create-failed": "A new feature could not be created.",
9646
+ "feature.update-failed": "A feature could not be updated.",
9647
+ "build.claim-failed": "A feature's build could not be claimed for a task.",
9648
+ "build.start-failed": "Starting a build from a feature failed.",
9649
+ "message.append-failed": "A message could not be added to a feature's chat.",
9650
+ "story-message.append-failed": "A message could not be added to a story's chat.",
9651
+ "planning.start-failed": "Feature planning could not be started.",
9652
+ "planning.retry-failed": "Feature planning could not be retried.",
9653
+ "planning.cancel-failed": "Feature planning could not be cancelled.",
9654
+ "drafts.persist-failed": "A project's feature chat drafts could not be saved.",
9655
+ "drafts.restore-failed": "A project's feature chat drafts could not be restored."
9656
+ }
9657
+ }
9658
+ });
9659
+
9660
+ // ../protocol/src/log-vocabulary/web-pane-layout.ts
9661
+ var WEB_PANE_LAYOUT_LOG_AREAS = defineLogAreas({
9662
+ "web.pane-layout": {
9663
+ description: "Panes and tabs in the renderer: moves, splits, teardown and saved layouts.",
9664
+ events: {
9665
+ "persist.failed": "A pane layout could not be written to the backend.",
9666
+ "persist.install-skipped": "A saved layout was not installed: its dependencies did not load.",
9667
+ "persist.settled-handler-failed": "A write-settled handler threw; later handlers still ran.",
9668
+ "environment.activated": "The active environment changed.",
9669
+ "environment.initialized": "An environment's pane state was initialized.",
9670
+ "environment.initialize-skipped": "Initialize was called with no active environment.",
9671
+ "environment.terminals-cleared": "A reset cleared the environment's terminal instances.",
9672
+ "terminal-session.cleanup-started": "A closed tab's terminal session is being cleaned up.",
9673
+ "teardown.pending": "A tab teardown was rejected; the backend keeps it pending and retries.",
9674
+ "browser-preview.destroy-failed": "Destroying a closed browser tab's preview failed.",
9675
+ "handoffs.prune-failed": "Pruning unreferenced agent handoffs failed.",
9676
+ "tab.reactivated": "A tab added twice was activated in its existing pane instead.",
9677
+ "tab.move-started": "A tab move passed its checks and is being applied.",
9678
+ "tab.move-failed": "A tab move was refused; `reason` says which lookup failed.",
9679
+ "tab.initial-prompt-cleared": "A tab's initial prompt was cleared.",
9680
+ "tab.initial-agent-options-cleared": "A tab's initial agent options were cleared.",
9681
+ "pane.split-depth-reached": "A split was refused at the maximum split depth.",
9682
+ "pane.edge-split-started": "An edge split passed its checks and is being applied.",
9683
+ "pane.edge-split-failed": "An edge split was refused; `reason` says which lookup failed.",
9684
+ "pane.close-refused": "Closing the only pane in a layout was refused.",
9685
+ "draft.discard-failed": "A closing tab's draft could not be discarded; the tab stayed open.",
9686
+ "draft.file-conflict-resolve-failed": "Discarding a newer saved file draft failed.",
9687
+ "draft.compose-conflict-resolve-failed": "Discarding a newer saved compose draft failed."
9688
+ }
9689
+ }
9690
+ });
9691
+
9692
+ // ../protocol/src/log-vocabulary/web-settings.ts
9693
+ var WEB_SETTINGS_LOG_AREAS = defineLogAreas({
9694
+ "web.settings": {
9695
+ description: "The settings screens.",
9696
+ events: {
9697
+ "config.save-failed": "Global settings could not be saved.",
9698
+ "config.load-failed": "The settings page could not load the config.",
9699
+ "config.reload-failed": "Re-reading the workspace config after a save failed.",
9700
+ "domains.test-failed": "The domain resolution test could not run.",
9701
+ "github-credentials.propagate-failed": "Propagating GitHub credentials to environments failed.",
9702
+ "credential.save-failed": "A credential could not be saved.",
9703
+ "credential.clear-failed": "A credential could not be cleared.",
9704
+ "gateway-token.save-failed": "The gateway token could not be saved.",
9705
+ "gateway-token.copy-failed": "Copying the gateway token to the clipboard failed.",
9706
+ "web-client-url.copy-failed": "Copying the web client address to the clipboard failed.",
9707
+ "backend-version.read-failed": "The debug tab could not read the backend version.",
9708
+ "messaging.flush-failed": "Saving pending messaging settings on unmount failed.",
9709
+ "directory-picker.failed": "The repository directory picker could not open.",
9710
+ "file-picker.failed": "The repository file picker could not open.",
9711
+ "repository.save-failed": "Repository settings could not be saved.",
9712
+ "model-catalogues.read-failed": "Reading the model catalogues for settings failed."
9713
+ }
9714
+ }
9715
+ });
9716
+
9717
+ // ../protocol/src/log-vocabulary/web-shell.ts
9718
+ var WEB_SHELL_LOG_AREAS = defineLogAreas({
9719
+ "web.startup": {
9720
+ description: "Loading the renderer, after the desktop connection check.",
9721
+ events: {
9722
+ "renderer.load-failed": "Importing or mounting the application failed.",
9723
+ "model-catalogue.restore-failed": "The cached model catalogue could not be restored; bundled fallbacks stay in use."
9724
+ }
9725
+ },
9726
+ "web.window": {
9727
+ description: "Errors nothing in the renderer caught. Bug reports classify these two lines.",
9728
+ events: {
9729
+ "error.unhandled": "A window error event reached the bootstrap handler.",
9730
+ "rejection.unhandled": "A promise rejected with no handler."
9731
+ }
9732
+ },
9733
+ "web.react": {
9734
+ description: "React's root error callbacks and the lazy view boundary.",
9735
+ events: {
9736
+ "root.caught-error": "An error boundary caught a render error.",
9737
+ "root.uncaught-error": "A render error reached the root with no boundary.",
9738
+ "root.recoverable-error": "React recovered from a render error by retrying.",
9739
+ "lazy-view.failed": "A lazily loaded view failed; fields are the bounded diagnostic."
9740
+ }
9741
+ }
9742
+ });
9743
+
9744
+ // ../protocol/src/log-vocabulary/web-sync.ts
9745
+ var WEB_SYNC_LOG_AREAS = defineLogAreas({
9746
+ "web.resource-sync": {
9747
+ description: "Keeping renderer stores current with backend resources.",
9748
+ events: {
9749
+ "handler.threw": "A resource change handler threw; other handlers still ran.",
9750
+ "resync-handler.threw": "A resync handler threw; the resync counts as failed.",
9751
+ "view-safety-check.threw": "A view safety check handler threw; the others still ran.",
9752
+ "snapshots.batch-failed": "A scoped snapshot batch failed; individual reads take over.",
9753
+ "manifest.scoped-check-failed": "The scoped manifest read failed; a full resync runs.",
9754
+ "manifest.check-failed": "The manifest read failed; a full resync runs.",
9755
+ "subscribe.failed": "Subscribing to a resource transport event failed.",
9756
+ "change.malformed": "A resource-changed payload had the wrong shape and was dropped.",
9757
+ "config.refresh-failed": "Refreshing the config store after a change failed.",
9758
+ "pane-layout.refresh-failed": "Refreshing an environment's pane layout failed.",
9759
+ "setup-completion.observe-failed": "Subscribing to setup completion events failed.",
9760
+ "resync.project-failed": "The authoritative project read failed during a store resync.",
9761
+ "resync.environment-failed": "The authoritative environment read failed during a resync.",
9762
+ "resync.read-failed": "One of a store resync's per-environment reads failed.",
9763
+ "resync.pane-failed": "A pane layout read failed during a store resync.",
9764
+ "agent-mail.summary-refresh-failed": "Refreshing the agent mail summary failed.",
9765
+ "agent-mail.mailbox-refresh-failed": "Refreshing one agent mailbox failed.",
9766
+ "prompt-queues.refresh-failed": "Refreshing an environment's prompt queues failed.",
9767
+ "build-pipeline.refresh-failed": "Refreshing one build pipeline failed.",
9768
+ "multi-review.refresh-failed": "Refreshing one multi review workflow failed.",
9769
+ "authoritative.resync-failed": "Re-reading a snapshot after a stream reconnect failed.",
9770
+ "observation.listener-threw": "A native observation invalidation listener threw.",
9771
+ "observation.subscribe-failed": "Subscribing to native observation events failed.",
9772
+ "hydration.status-listener-failed": "A bounded hydration status listener threw.",
9773
+ "hydration.notification-failed": "A bounded hydration change notification threw."
9774
+ }
9775
+ },
9776
+ "web.read-coordinator": {
9777
+ description: "The renderer's coalesced, bounded backend reads.",
9778
+ events: {
9779
+ "listener.threw": "A read state listener threw.",
9780
+ "read.settle-failed": "Applying a finished read's result threw."
9781
+ }
9782
+ },
9783
+ "web.gateway": {
9784
+ description: "The renderer's connection to the gateway: requests and event streams.",
9785
+ events: {
9786
+ "events.disconnected": "The main event stream dropped; it reconnects and replays.",
9787
+ "terminal-stream.disconnected": "A terminal event stream dropped; it reconnects.",
9788
+ "connection-listener.failed": "A main stream connection state listener threw.",
9789
+ "event-listener.failed": "A listener for a gateway event threw.",
9790
+ "stream-listener.failed": "A listener for the stream-connected notice threw."
9791
+ }
9792
+ },
9793
+ "web.federation": {
9794
+ description: "Events from federated nodes as the renderer receives them.",
9795
+ events: {
9796
+ "resync-handler.failed": "A node resync handler failed.",
9797
+ "event-handler.failed": "A handler for an event relayed from a node failed.",
9798
+ "environment.start-failed": "Starting an environment opened in a workspace window failed."
9799
+ }
9800
+ }
9801
+ });
9802
+
8342
9803
  // ../protocol/src/log-vocabulary/index.ts
8343
9804
  var LOG_VOCABULARY = {
8344
9805
  ...AGENT_MAIL_LOG_AREAS,
8345
9806
  ...BACKEND_LOG_AREAS,
9807
+ ...BRIDGE_LOG_AREAS,
8346
9808
  ...DESKTOP_LOG_AREAS,
8347
9809
  ...ENVIRONMENT_LOG_AREAS,
8348
9810
  ...GATEWAY_LOG_AREAS,
8349
9811
  ...LOCAL_SERVER_LOG_AREAS,
8350
9812
  ...GIT_LOG_AREAS,
8351
9813
  ...LOGGING_LOG_AREAS,
9814
+ ...MODEL_LOG_AREAS,
8352
9815
  ...NATIVE_AGENT_LOG_AREAS,
8353
9816
  ...PREVIEW_LOG_AREAS,
9817
+ ...RUNTIME_LOG_AREAS,
8354
9818
  ...TERMINAL_LOG_AREAS,
8355
9819
  ...TMUX_LOG_AREAS,
8356
9820
  ...UPDATER_LOG_AREAS,
8357
- ...WEB_ANNOTATIONS_LOG_AREAS
9821
+ ...WEB_ANNOTATIONS_LOG_AREAS,
9822
+ ...STORAGE_LOG_AREAS,
9823
+ ...BUILD_PIPELINE_LOG_AREAS,
9824
+ ...AGENT_BRANCH_LOG_AREAS,
9825
+ ...CHANGE_TRACKING_LOG_AREAS,
9826
+ ...COORDINATOR_LOG_AREAS,
9827
+ ...REVIEW_LOG_AREAS,
9828
+ ...PUBLIC_API_LOG_AREAS,
9829
+ ...AGENT_ACCOUNTS_LOG_AREAS,
9830
+ ...DOCKER_LOG_AREAS,
9831
+ ...MCP_LOG_AREAS,
9832
+ ...DESIGN_LOG_AREAS,
9833
+ ...GRAPH_LOG_AREAS,
9834
+ ...NODES_LOG_AREAS,
9835
+ ...LINEAR_LOG_AREAS,
9836
+ ...USAGE_HISTORY_LOG_AREAS,
9837
+ ...FEATURE_LOG_AREAS,
9838
+ ...HOST_LOG_AREAS,
9839
+ ...TRANSCRIPT_ARTIFACTS_LOG_AREAS,
9840
+ ...SCHEDULER_LOG_AREAS,
9841
+ ...WEB_APP_LOG_AREAS,
9842
+ ...WEB_BUILD_PIPELINE_LOG_AREAS,
9843
+ ...WEB_CHAT_LOG_AREAS,
9844
+ ...WEB_CLAUDE_TMUX_LOG_AREAS,
9845
+ ...WEB_DESIGN_LOG_AREAS,
9846
+ ...WEB_ENVIRONMENT_LOG_AREAS,
9847
+ ...WEB_FILES_LOG_AREAS,
9848
+ ...WEB_GITHUB_LOG_AREAS,
9849
+ ...WEB_KANBAN_LOG_AREAS,
9850
+ ...WEB_PANE_LAYOUT_LOG_AREAS,
9851
+ ...WEB_SETTINGS_LOG_AREAS,
9852
+ ...WEB_SHELL_LOG_AREAS,
9853
+ ...WEB_SYNC_LOG_AREAS
8358
9854
  };
9855
+
9856
+ // ../protocol/src/log-error.ts
9857
+ var safeErrors = new WeakSet;
9858
+
8359
9859
  // ../protocol/src/logger.ts
9860
+ var LOG_LEVELS = ["error", "warn", "info", "debug", "trace"];
8360
9861
  var FORBIDDEN_FIELD_NAMES = new Set([
8361
9862
  "stdout",
8362
9863
  "stderr",
@@ -8371,10 +9872,57 @@ var FORBIDDEN_FIELD_NAMES = new Set([
8371
9872
  "cookie",
8372
9873
  "credentials"
8373
9874
  ]);
9875
+ function isLogLevel(value) {
9876
+ return typeof value === "string" && LOG_LEVELS.includes(value);
9877
+ }
8374
9878
  var LOG_THROTTLE_WINDOW_MS = 60000;
8375
9879
  var LOG_THROTTLE_IDLE_MS = 5 * LOG_THROTTLE_WINDOW_MS;
8376
9880
  var throttledSites = new Map;
8377
9881
 
9882
+ // ../protocol/src/log-policy.ts
9883
+ var DEFAULT_LOG_LEVEL = "info";
9884
+ var BRIDGE_LOG_SCOPE = "bridge";
9885
+ var MAX_LOG_DETAIL_AREAS = 256;
9886
+ var MAX_LOG_AREA_NAME_CHARS = 64;
9887
+ var LOG_AREA_NAME = /^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*$/;
9888
+ function defaultLogDetail() {
9889
+ return { level: DEFAULT_LOG_LEVEL, areaLevels: {} };
9890
+ }
9891
+ function legacyDebugLogDetail() {
9892
+ return { level: DEFAULT_LOG_LEVEL, areaLevels: { [BRIDGE_LOG_SCOPE]: "debug" } };
9893
+ }
9894
+ function parseLogDetail(value) {
9895
+ if (typeof value !== "object" || value === null || Array.isArray(value))
9896
+ return null;
9897
+ const { level, areaLevels } = value;
9898
+ if (!isLogLevel(level))
9899
+ return null;
9900
+ if (areaLevels === undefined)
9901
+ return { level, areaLevels: {} };
9902
+ if (typeof areaLevels !== "object" || areaLevels === null || Array.isArray(areaLevels)) {
9903
+ return null;
9904
+ }
9905
+ const names = Object.keys(areaLevels).sort();
9906
+ if (names.length > MAX_LOG_DETAIL_AREAS)
9907
+ return null;
9908
+ const clean = {};
9909
+ for (const name of names) {
9910
+ const areaLevel = areaLevels[name];
9911
+ if (name.length > MAX_LOG_AREA_NAME_CHARS || !LOG_AREA_NAME.test(name))
9912
+ return null;
9913
+ if (!isLogLevel(areaLevel))
9914
+ return null;
9915
+ clean[name] = areaLevel;
9916
+ }
9917
+ return { level, areaLevels: clean };
9918
+ }
9919
+ function resolveLogDetail(source) {
9920
+ const stored = source.logDetail === undefined ? null : parseLogDetail(source.logDetail);
9921
+ if (stored)
9922
+ return stored;
9923
+ return source.debugLogging === true ? legacyDebugLogDetail() : defaultLogDetail();
9924
+ }
9925
+
8378
9926
  // ../protocol/src/node/application-logging.ts
8379
9927
  var LOG_CLEANUP_INTERVAL_MS = 6 * 60 * 60 * 1000;
8380
9928
  var MAX_PENDING_LOG_BYTES = 4 * 1024 * 1024;
@@ -8384,21 +9932,33 @@ var MAX_LOG_DIRECTORY_BYTES = 512 * 1024 * 1024;
8384
9932
  function isRecord2(value) {
8385
9933
  return Boolean(value) && typeof value === "object" && !Array.isArray(value);
8386
9934
  }
8387
- function readApplicationLogSettings(dataDir) {
9935
+ function readApplicationLogPolicy(dataDir) {
9936
+ return readStoredApplicationLogPolicy(dataDir) ?? {
9937
+ saving: {
9938
+ enabled: false,
9939
+ retentionDays: normalizeDebugLogRetentionDays(undefined)
9940
+ },
9941
+ detail: defaultLogDetail()
9942
+ };
9943
+ }
9944
+ function readStoredApplicationLogPolicy(dataDir) {
8388
9945
  try {
8389
9946
  const parsed = JSON.parse(readFileSync(path.join(dataDir, "config.json"), "utf8"));
8390
9947
  const global2 = isRecord2(parsed) && isRecord2(parsed.global) ? parsed.global : {};
8391
9948
  return {
8392
- enabled: global2.debugLogging === true,
8393
- retentionDays: normalizeDebugLogRetentionDays(global2.debugLogRetentionDays)
9949
+ saving: {
9950
+ enabled: global2.debugLogging === true,
9951
+ retentionDays: normalizeDebugLogRetentionDays(global2.debugLogRetentionDays)
9952
+ },
9953
+ detail: resolveLogDetail(global2)
8394
9954
  };
8395
9955
  } catch {
8396
- return {
8397
- enabled: false,
8398
- retentionDays: normalizeDebugLogRetentionDays(undefined)
8399
- };
9956
+ return null;
8400
9957
  }
8401
9958
  }
9959
+ function readApplicationLogSettings(dataDir) {
9960
+ return readApplicationLogPolicy(dataDir).saving;
9961
+ }
8402
9962
  var BENIGN_RMDIR_CODES = new Set(["ENOENT", "ENOTEMPTY", "EEXIST", "ERR_FS_EISDIR"]);
8403
9963
 
8404
9964
  // ../protocol/src/node/bug-report-facts.ts
@@ -8678,7 +10238,7 @@ import path5 from "path";
8678
10238
  // ../../apps/backend/package.json
8679
10239
  var package_default = {
8680
10240
  name: "@orkestrator/backend",
8681
- version: "2.35.3-beta",
10241
+ version: "2.35.5-beta",
8682
10242
  private: true,
8683
10243
  type: "module",
8684
10244
  exports: {
@@ -9058,6 +10618,7 @@ var AGENT_INTERACTION_LIMITS = Object.freeze({
9058
10618
  maxSerializedPayloadBytes: 256 * 1024,
9059
10619
  maxIdLength: 512,
9060
10620
  maxProviderValueLength: 4096,
10621
+ maxSourceNameLength: 256,
9061
10622
  maxJournalEntries: 512,
9062
10623
  maxWorkflowSummaries: 64
9063
10624
  });
@@ -9125,6 +10686,19 @@ var LIMITED_HOLD_REASONS = new Set([
9125
10686
  "provider-limit",
9126
10687
  "upstream-may-expire"
9127
10688
  ]);
10689
+ var AGENT_INTERACTION_SOURCE_KINDS = ["mcp-server"];
10690
+ var SOURCE_SCOPE_LABELS = Object.freeze({
10691
+ user: "user settings",
10692
+ project: "project settings",
10693
+ local: "local settings",
10694
+ dynamic: "session settings",
10695
+ plugin: "a plugin",
10696
+ managed: "managed settings",
10697
+ enterprise: "enterprise settings",
10698
+ claudeai: "a claude.ai connector",
10699
+ agent: "an agent definition",
10700
+ sdk: "the agent host"
10701
+ });
9128
10702
  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
10703
  var INTERACTIVE_AGENT_INTERACTION_POLICY = Object.freeze({
9130
10704
  version: AGENT_INTERACTION_POLICY_VERSION,
@@ -9200,8 +10774,11 @@ var REQUEST_KEYS = new Set([
9200
10774
  "createdAt",
9201
10775
  "updatedAt",
9202
10776
  "expiresAt",
9203
- "hold"
10777
+ "hold",
10778
+ "source"
9204
10779
  ]);
10780
+ var SOURCE_KEYS = new Set(["kind", "name", "scope"]);
10781
+ var SOURCE_KINDS = new Set(AGENT_INTERACTION_SOURCE_KINDS);
9205
10782
  var HOLD_KEYS = new Set(["available", "heldAt", "reason"]);
9206
10783
  var HOLD_REASONS = new Set(AGENT_INTERACTION_HOLD_REASONS);
9207
10784
  var PRESENTATION_KEYS = new Set([