@overdeck/contracts 0.85.0 → 0.87.0

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/index.mjs CHANGED
@@ -148,6 +148,14 @@ const DerivedPrOutsidePipeline = Schema.Struct({
148
148
  /** The other worktree that has the branch checked out, when that is the reason. */
149
149
  worktreePath: Schema.optional(Schema.String)
150
150
  });
151
+ /**
152
+ * PAN-5279: a merged PR on an open epic's feature branch. An epic lands in
153
+ * slices, so a merged slice is progress, never the epic shipping.
154
+ */
155
+ const DerivedMergedSlice = Schema.Struct({
156
+ number: Schema.Number,
157
+ url: Schema.String
158
+ });
151
159
  /** Everything the dashboard needs to render an issue's pipeline position. */
152
160
  const DerivedIssueState = Schema.Struct({
153
161
  issueId: Schema.String,
@@ -164,7 +172,13 @@ const DerivedIssueState = Schema.Struct({
164
172
  /** A deferred or gave-up post-planning auto-start read from the workspace journal (PAN-4399). */
165
173
  workStart: Schema.optional(DerivedWorkStart),
166
174
  /** An outside PR the pipeline never picked up (PAN-4605). */
167
- prOutsidePipeline: Schema.optional(DerivedPrOutsidePipeline)
175
+ prOutsidePipeline: Schema.optional(DerivedPrOutsidePipeline),
176
+ /**
177
+ * PAN-5279: the issue is an open epic and this merged PR is one of its
178
+ * slices. Present instead of `pr`, so no reader takes slice 1's review,
179
+ * checks or merge for the epic's own.
180
+ */
181
+ mergedSlice: Schema.optional(DerivedMergedSlice)
168
182
  });
169
183
  const ISSUE_STATES = [
170
184
  "backlog",
@@ -474,6 +488,7 @@ const AgentRuntimeSnapshot = Schema.Struct({
474
488
  lastActivity: Schema.String,
475
489
  currentTool: Schema.optional(Schema.String),
476
490
  currentToolDescription: Schema.optional(Schema.String),
491
+ toolStartedAt: Schema.optional(Schema.String),
477
492
  thinking: Schema.optional(ThinkingState),
478
493
  waiting: Schema.optional(WaitingState),
479
494
  claudeSessionId: Schema.optional(Schema.String),
@@ -677,6 +692,54 @@ const ProjectDeploySnapshot = Schema.Struct({
677
692
  /** Last lines of `logPath`. */
678
693
  logTail: Schema.optional(Schema.Array(Schema.String))
679
694
  });
695
+ /**
696
+ * PAN-5342 — the safe-shutdown drain, derived each tick by the dashboard's
697
+ * drain service and emitted in-memory only (`system.shutdown_changed`).
698
+ * The only stored shutdown state is `<OVERDECK_HOME>/shutdown.json`.
699
+ */
700
+ const ShutdownPhase = Schema.Literals([
701
+ "draining",
702
+ "waiting-for-writers",
703
+ "verifying",
704
+ "complete"
705
+ ]);
706
+ const ShutdownPendingSession = Schema.Struct({
707
+ id: Schema.String,
708
+ kind: Schema.Literals(["agent", "conversation"]),
709
+ label: Schema.String,
710
+ issueId: Schema.optional(Schema.String),
711
+ conversationName: Schema.optional(Schema.String),
712
+ /** Runtime activity, or "unknown" when the session has no runtime snapshot. */
713
+ activity: Schema.String,
714
+ tool: Schema.optional(Schema.String),
715
+ toolDescription: Schema.optional(Schema.String),
716
+ toolStartedAt: Schema.optional(Schema.String)
717
+ });
718
+ const ShutdownWriter = Schema.Struct({
719
+ kind: Schema.Literals([
720
+ "auto-merge",
721
+ "post-merge",
722
+ "verification"
723
+ ]),
724
+ label: Schema.String,
725
+ startedAt: Schema.optional(Schema.String)
726
+ });
727
+ const ShutdownSnapshot = Schema.Struct({
728
+ phase: ShutdownPhase,
729
+ startedAt: Schema.String,
730
+ deadlineAt: Schema.String,
731
+ overdue: Schema.Boolean,
732
+ reboot: Schema.Boolean,
733
+ force: Schema.Literals([
734
+ "never",
735
+ "at-deadline",
736
+ "now"
737
+ ]),
738
+ pending: Schema.Array(ShutdownPendingSession),
739
+ writers: Schema.Array(ShutdownWriter),
740
+ stoppedCount: Schema.Number,
741
+ warnings: Schema.Array(Schema.String)
742
+ });
680
743
  /** What kind of process asked for the voluntary dashboard restart. */
681
744
  const RestartGateKind = Schema.Literals([
682
745
  "deploy",
@@ -763,6 +826,7 @@ const DashboardSnapshot = Schema.Struct({
763
826
  githubQuota: Schema.optional(GitHubQuotaSnapshot),
764
827
  /** PAN-3751 — in-flight deploys keyed by project key. */
765
828
  deployByProjectKey: Schema.optional(Schema.Record(Schema.String, ProjectDeploySnapshot)),
829
+ shutdown: Schema.optional(Schema.NullOr(ShutdownSnapshot)),
766
830
  timestamp: Schema.String
767
831
  });
768
832
  const ResourceStats = Schema.Struct({ containers: Schema.Array(Schema.Struct({
@@ -1202,7 +1266,8 @@ const RagDecisionSource = Schema.Struct({
1202
1266
  "summary",
1203
1267
  "status",
1204
1268
  "sibling",
1205
- "knowledge"
1269
+ "knowledge",
1270
+ "fact"
1206
1271
  ]),
1207
1272
  scope: Schema.String,
1208
1273
  score: Schema.Number,
@@ -1228,7 +1293,8 @@ const RagDecision = Schema.Struct({
1228
1293
  observations: Schema.Number,
1229
1294
  summaries: Schema.Number,
1230
1295
  sibling: Schema.Number,
1231
- knowledgeIndex: Schema.Number
1296
+ knowledgeIndex: Schema.Number,
1297
+ facts: Schema.optional(Schema.Number)
1232
1298
  }),
1233
1299
  sources: Schema.Array(RagDecisionSource),
1234
1300
  reason: Schema.NullOr(Schema.String)
@@ -1663,6 +1729,17 @@ const ProjectDeployChangedEvent = Schema.Struct({
1663
1729
  timestamp: Schema.String,
1664
1730
  payload: Schema.Struct({ deploys: Schema.Record(Schema.String, ProjectDeploySnapshot) })
1665
1731
  });
1732
+ /**
1733
+ * PAN-5342 — the safe-shutdown drain snapshot; `null` when no drain runs.
1734
+ * The dashboard's drain service emits it in-memory only (`emitOnly`), like
1735
+ * `project.deploy_changed`: never persisted, never replayed at boot.
1736
+ */
1737
+ const SystemShutdownChangedEvent = Schema.Struct({
1738
+ type: Schema.Literal("system.shutdown_changed"),
1739
+ sequence: SequenceNumber,
1740
+ timestamp: Schema.String,
1741
+ payload: Schema.Struct({ shutdown: Schema.NullOr(ShutdownSnapshot) })
1742
+ });
1666
1743
  /** Replaces socket.io `agents:changed` (event: 'started') */
1667
1744
  const AgentStartedEvent = Schema.Struct({
1668
1745
  type: Schema.Literal("agent.started"),
@@ -2982,6 +3059,7 @@ const DomainEvent = Schema.Union([
2982
3059
  RestartGateChangedEvent,
2983
3060
  GitHubQuotaChangedEvent,
2984
3061
  ProjectDeployChangedEvent,
3062
+ SystemShutdownChangedEvent,
2985
3063
  AgentCreatedEvent,
2986
3064
  AgentEnrichmentChangedEvent,
2987
3065
  AgentStartedEvent,
@@ -3332,6 +3410,38 @@ function compareEffort(a, b) {
3332
3410
  return EFFORT_LEVELS.indexOf(a) - EFFORT_LEVELS.indexOf(b);
3333
3411
  }
3334
3412
  //#endregion
3413
+ //#region src/ui-commands.ts
3414
+ /** The server's answer for a path: which deck, root and file or folder to show. */
3415
+ const UiOpenResolution = Schema.Struct({
3416
+ /** The registered project key (`projects.yaml`), as root ids use it. */
3417
+ projectKey: Schema.String,
3418
+ /** The deck the dashboard keys this project by: its name, or its key when it has none (PAN-5398). */
3419
+ deckKey: Schema.String,
3420
+ rootId: Schema.String,
3421
+ /** POSIX path relative to the root folder; `''` for the root itself. */
3422
+ relPath: Schema.String,
3423
+ kind: Schema.Literals(["file", "dir"]),
3424
+ line: Schema.optional(Schema.Number),
3425
+ column: Schema.optional(Schema.Number)
3426
+ });
3427
+ /** The deck key the project switcher selects for a registered project: its name, or its key (PAN-5398). */
3428
+ function projectDeckKey(project) {
3429
+ return project.name ?? project.key;
3430
+ }
3431
+ /** The sentence `pan open` prints and the dashboard toasts after an open (PAN-5398). */
3432
+ function uiOpenSummary(resolution) {
3433
+ const { deckKey, rootId, relPath } = resolution;
3434
+ if (relPath) return `Opened ${relPath} in ${deckKey}`;
3435
+ if (rootId.startsWith("issue:")) return `Opened the ${rootId.slice(6)} workspace in ${deckKey}`;
3436
+ return `Opened root folder in ${deckKey}`;
3437
+ }
3438
+ /** One UI command. `id` is a random UUID that tabs use to dedupe handling. */
3439
+ const UiCommand = Schema.Struct({
3440
+ id: Schema.String,
3441
+ type: Schema.Literal("open-path"),
3442
+ resolution: UiOpenResolution
3443
+ });
3444
+ //#endregion
3335
3445
  //#region src/explorer.ts
3336
3446
  /** "project:<key>", "issue:<id>" or "workspace:<id>". */
3337
3447
  const ExplorerRootId = Schema.String;
@@ -3542,6 +3652,7 @@ const WS_METHODS = {
3542
3652
  subscribeAgentOutput: "pan.subscribeAgentOutput",
3543
3653
  subscribeConversationMessages: "pan.subscribeConversationMessages",
3544
3654
  subscribeProjectSessionTree: "pan.subscribeProjectSessionTree",
3655
+ subscribeUiCommands: "pan.subscribeUiCommands",
3545
3656
  getSnapshot: "pan.getSnapshot",
3546
3657
  replayEvents: "pan.replayEvents",
3547
3658
  readWorkspaceFile: "pan.readWorkspaceFile",
@@ -3775,6 +3886,12 @@ const SubscribeDomainEventsRpc = Rpc.make(WS_METHODS.subscribeDomainEvents, {
3775
3886
  success: DomainEvent,
3776
3887
  stream: true
3777
3888
  });
3889
+ /** 1a. Subscribe to transient UI commands such as "open this path" (stream, PAN-5349) */
3890
+ const SubscribeUiCommandsRpc = Rpc.make(WS_METHODS.subscribeUiCommands, {
3891
+ payload: Schema.Struct({}),
3892
+ success: UiCommand,
3893
+ stream: true
3894
+ });
3778
3895
  /** 1b. Subscribe to the live domain event stream for one issue (stream) */
3779
3896
  const SubscribeIssueEventsRpc = Rpc.make(WS_METHODS.subscribeIssueEvents, {
3780
3897
  payload: Schema.Struct({ issueId: IssueId }),
@@ -4263,7 +4380,7 @@ const GetConversationStatsRpc = Rpc.make(WS_METHODS.getConversationStats, {
4263
4380
  error: PanRpcError
4264
4381
  });
4265
4382
  /** All Overdeck WebSocket RPC methods */
4266
- const PanRpcGroup = RpcGroup.make(SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeTerminalRpc, SubscribeAgentOutputRpc, GetSnapshotRpc, ReplayEventsRpc, ReadWorkspaceFileRpc, ReadFileAtPathRpc, WriteFileAtPathRpc, ResolveFilePathExistsRpc, ExplorerListDirRpc, ExplorerReadFileRpc, ExplorerWriteFileRpc, ExplorerCreateRpc, ExplorerRenameRpc, ExplorerCopyRpc, ExplorerDeleteRpc, ExplorerRestoreRpc, ExplorerGitStatusRpc, ExplorerGitStageRpc, ExplorerSearchFilesRpc, ExplorerSearchContentRpc, ExplorerWatchRpc, ExplorerBeginEditRpc, TerminalOpenRpc, TerminalWriteRpc, TerminalResizeRpc, TerminalCloseRpc, StartPlanningRpc, StartAgentRpc, DeepWipeRpc, SendTerminalInputRpc, ResizeTerminalRpc, SubscribeConversationMessagesRpc, SubscribeProjectSessionTreeRpc, ShellOpenInEditorRpc, GetAvailableEditorsRpc, ShellOpenInBrowserRpc, GetAvailableBrowsersRpc, ScanConversationsRpc, SearchConversationsRpc, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, GetSessionsFeedFacetsRpc, GetDiscoveredSessionRpc, EnrichSessionsRpc, EmbedSessionsRpc, GetConversationCostRpc, GetConversationCostByWorkspaceRpc, GetConversationStatsRpc);
4383
+ const PanRpcGroup = RpcGroup.make(SubscribeDomainEventsRpc, SubscribeUiCommandsRpc, SubscribeIssueEventsRpc, SubscribeTerminalRpc, SubscribeAgentOutputRpc, GetSnapshotRpc, ReplayEventsRpc, ReadWorkspaceFileRpc, ReadFileAtPathRpc, WriteFileAtPathRpc, ResolveFilePathExistsRpc, ExplorerListDirRpc, ExplorerReadFileRpc, ExplorerWriteFileRpc, ExplorerCreateRpc, ExplorerRenameRpc, ExplorerCopyRpc, ExplorerDeleteRpc, ExplorerRestoreRpc, ExplorerGitStatusRpc, ExplorerGitStageRpc, ExplorerSearchFilesRpc, ExplorerSearchContentRpc, ExplorerWatchRpc, ExplorerBeginEditRpc, TerminalOpenRpc, TerminalWriteRpc, TerminalResizeRpc, TerminalCloseRpc, StartPlanningRpc, StartAgentRpc, DeepWipeRpc, SendTerminalInputRpc, ResizeTerminalRpc, SubscribeConversationMessagesRpc, SubscribeProjectSessionTreeRpc, ShellOpenInEditorRpc, GetAvailableEditorsRpc, ShellOpenInBrowserRpc, GetAvailableBrowsersRpc, ScanConversationsRpc, SearchConversationsRpc, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, GetSessionsFeedFacetsRpc, GetDiscoveredSessionRpc, EnrichSessionsRpc, EmbedSessionsRpc, GetConversationCostRpc, GetConversationCostByWorkspaceRpc, GetConversationStatsRpc);
4267
4384
  //#endregion
4268
4385
  //#region src/agent-runtime-merge.ts
4269
4386
  function defaultRuntimeSnapshot(agentId, timestamp, sequence) {
@@ -4351,6 +4468,7 @@ const INITIAL_READ_MODEL_STATE = {
4351
4468
  restartGate: null,
4352
4469
  githubQuota: null,
4353
4470
  deployByProjectKey: {},
4471
+ shutdown: null,
4354
4472
  agentIdBySessionId: {},
4355
4473
  dashboardLifecycle: {
4356
4474
  active: false,
@@ -4459,6 +4577,7 @@ function syncSnapshot(state, snapshot) {
4459
4577
  restartGate: snapshot.restartGate ?? state.restartGate,
4460
4578
  githubQuota: snapshot.githubQuota ?? state.githubQuota,
4461
4579
  deployByProjectKey: snapshot.deployByProjectKey ?? state.deployByProjectKey,
4580
+ shutdown: snapshot.shutdown ?? null,
4462
4581
  agentIdBySessionId
4463
4582
  };
4464
4583
  }
@@ -4564,6 +4683,7 @@ function applyEvent(state, event) {
4564
4683
  ...prevRuntime,
4565
4684
  activity: "stopped",
4566
4685
  currentTool: void 0,
4686
+ toolStartedAt: void 0,
4567
4687
  currentToolDescription: void 0,
4568
4688
  thinking: void 0,
4569
4689
  waiting: void 0,
@@ -4710,6 +4830,7 @@ function applyEvent(state, event) {
4710
4830
  ...prevRuntime,
4711
4831
  activity: "stopped",
4712
4832
  currentTool: void 0,
4833
+ toolStartedAt: void 0,
4713
4834
  currentToolDescription: void 0,
4714
4835
  thinking: void 0,
4715
4836
  waiting: void 0,
@@ -4890,6 +5011,11 @@ function applyEvent(state, event) {
4890
5011
  sequence: Math.max(state.sequence, event.sequence),
4891
5012
  deployByProjectKey: event.payload.deploys
4892
5013
  };
5014
+ case "system.shutdown_changed": return {
5015
+ ...state,
5016
+ sequence: Math.max(state.sequence, event.sequence),
5017
+ shutdown: event.payload.shutdown
5018
+ };
4893
5019
  case "resources.updated": return {
4894
5020
  ...state,
4895
5021
  sequence: Math.max(state.sequence, event.sequence),
@@ -5138,13 +5264,14 @@ function applyEvent(state, event) {
5138
5264
  sequence: Math.max(state.sequence, event.sequence)
5139
5265
  };
5140
5266
  case "agent.activity_changed": {
5141
- const { agentId, activity, currentTool, toolDescription } = event.payload;
5267
+ const { agentId, activity, currentTool, toolDescription, hookName } = event.payload;
5142
5268
  const prev = state.agentRuntimeById[agentId] ?? defaultRuntimeSnapshot(agentId, event.timestamp, event.sequence);
5143
5269
  const next = {
5144
5270
  ...prev,
5145
5271
  activity,
5146
5272
  currentTool: activity === "working" ? currentTool : void 0,
5147
5273
  currentToolDescription: activity === "working" ? toolDescription : void 0,
5274
+ toolStartedAt: activity !== "working" ? void 0 : hookName === "PreToolUse" ? event.timestamp : hookName === "PostToolUse" ? void 0 : prev.toolStartedAt,
5148
5275
  thinking: activity === "thinking" ? prev.thinking : void 0,
5149
5276
  waiting: activity === "waiting" ? prev.waiting : void 0,
5150
5277
  channelReply: activity === "working" ? void 0 : prev.channelReply,
@@ -5166,6 +5293,7 @@ function applyEvent(state, event) {
5166
5293
  ...state.agentRuntimeById[agentId] ?? defaultRuntimeSnapshot(agentId, event.timestamp, event.sequence),
5167
5294
  activity: "thinking",
5168
5295
  currentTool: void 0,
5296
+ toolStartedAt: void 0,
5169
5297
  currentToolDescription: void 0,
5170
5298
  thinking: {
5171
5299
  since: event.timestamp,
@@ -5213,6 +5341,7 @@ function applyEvent(state, event) {
5213
5341
  ...state.agentRuntimeById[agentId] ?? defaultRuntimeSnapshot(agentId, event.timestamp, event.sequence),
5214
5342
  activity: "waiting",
5215
5343
  currentTool: void 0,
5344
+ toolStartedAt: void 0,
5216
5345
  currentToolDescription: void 0,
5217
5346
  thinking: void 0,
5218
5347
  waiting: {
@@ -6056,7 +6185,9 @@ const FlywheelNeedsYouItem = Schema.Struct({
6056
6185
  /** The first-raised tick message's `createdAt`. */
6057
6186
  firstRaisedAt: Schema.String,
6058
6187
  /** The first-raised tick message's id, when the harness records one. */
6059
- firstRaisedMessageId: Schema.optional(Schema.String)
6188
+ firstRaisedMessageId: Schema.optional(Schema.String),
6189
+ /** The first-raised message's prose without its tick line (PAN-5283 D18). */
6190
+ context: Schema.optional(Schema.String)
6060
6191
  });
6061
6192
  const NEEDS_YOU_TARGET_RE = /^(.*?)\s*<(https?:\/\/[^\s<>]+)>\s*$/i;
6062
6193
  /**
@@ -6123,6 +6254,82 @@ const FlywheelAgentSummary = Schema.Struct({
6123
6254
  state: Schema.String,
6124
6255
  agentId: Schema.optional(Schema.String)
6125
6256
  });
6257
+ /** The lane an in-flight card sits in (PAN-5283 D1). */
6258
+ const FlywheelStage = Schema.Literals([
6259
+ "plan",
6260
+ "build",
6261
+ "checks",
6262
+ "review",
6263
+ "merge"
6264
+ ]);
6265
+ /** Who drives an issue (PAN-5283 D3). */
6266
+ const FlywheelOwner = Schema.Union([
6267
+ Schema.Struct({ kind: Schema.Literal("flywheel") }),
6268
+ Schema.Struct({
6269
+ kind: Schema.Literal("conversation"),
6270
+ name: Schema.String,
6271
+ title: Schema.NullOr(Schema.String)
6272
+ }),
6273
+ Schema.Struct({ kind: Schema.Literal("operator") })
6274
+ ]);
6275
+ /** The agent a card shows (PAN-5283 D4): a live pane, or a handoff conversation. */
6276
+ const FlywheelCardAgent = Schema.Struct({
6277
+ /** The pane role, or `handoff` for a handoff conversation. */
6278
+ role: Schema.String,
6279
+ model: Schema.NullOr(Schema.String),
6280
+ harness: Schema.NullOr(Schema.String),
6281
+ state: Schema.Literals([
6282
+ "working",
6283
+ "blocked",
6284
+ "idle",
6285
+ "waiting",
6286
+ "unknown"
6287
+ ]),
6288
+ agentId: Schema.optional(Schema.String),
6289
+ conversationName: Schema.optional(Schema.String)
6290
+ });
6291
+ const FlywheelBlockerKind = Schema.Literals([
6292
+ "gate-queue",
6293
+ "agent-question",
6294
+ "agent-error",
6295
+ "start-failed",
6296
+ "pr-outside-pipeline",
6297
+ "agent-stuck",
6298
+ "test-removal-waiver",
6299
+ "verification-failed",
6300
+ "ci-failed",
6301
+ "feedback-undelivered",
6302
+ "merge-failed",
6303
+ "auto-merge-scheduled",
6304
+ "auto-merge-blocked",
6305
+ "train-batch",
6306
+ "train-paused",
6307
+ "ci-red",
6308
+ "merge-conflict",
6309
+ "declared-blocked",
6310
+ "review-stalled",
6311
+ "no-agent"
6312
+ ]);
6313
+ /** One plain-language sentence on why a card is not moving (PAN-5283 D11). */
6314
+ const FlywheelBlocker = Schema.Struct({
6315
+ kind: FlywheelBlockerKind,
6316
+ severity: Schema.Literals([
6317
+ "waiting",
6318
+ "stuck",
6319
+ "needs-you"
6320
+ ]),
6321
+ text: Schema.String,
6322
+ action: Schema.optional(Schema.Literals([
6323
+ "waive-test-removal",
6324
+ "start-issue",
6325
+ "answer-agent"
6326
+ ]))
6327
+ });
6328
+ /** The newest journal entry, as a plain-text label. */
6329
+ const FlywheelActivity = Schema.Struct({
6330
+ at: Schema.String,
6331
+ label: Schema.String
6332
+ });
6126
6333
  const FlywheelInFlightRow = Schema.Struct({
6127
6334
  issueId: Schema.String,
6128
6335
  /** The tracker's title, or `null` when no tracker answered for this issue. */
@@ -6138,7 +6345,15 @@ const FlywheelInFlightRow = Schema.Struct({
6138
6345
  liveAgents: Schema.Number,
6139
6346
  /** The loop named this id in its newest tick marker's in-flight list. */
6140
6347
  inTick: Schema.Boolean,
6141
- lastJournal: Schema.NullOr(FlywheelJournalSummary)
6348
+ lastJournal: Schema.NullOr(FlywheelJournalSummary),
6349
+ stage: Schema.optional(FlywheelStage),
6350
+ stageSince: Schema.optional(Schema.NullOr(Schema.String)),
6351
+ owner: Schema.optional(FlywheelOwner),
6352
+ agent: Schema.optional(Schema.NullOr(FlywheelCardAgent)),
6353
+ blocker: Schema.optional(Schema.NullOr(FlywheelBlocker)),
6354
+ /** USD spent on the issue, or `null` when unknown. */
6355
+ cost: Schema.optional(Schema.NullOr(Schema.Number)),
6356
+ lastActivity: Schema.optional(Schema.NullOr(FlywheelActivity))
6142
6357
  });
6143
6358
  const FlywheelOrderBookSummary = Schema.Struct({
6144
6359
  id: Schema.String,
@@ -6147,6 +6362,73 @@ const FlywheelOrderBookSummary = Schema.Struct({
6147
6362
  landed: Schema.Number,
6148
6363
  total: Schema.Number
6149
6364
  });
6365
+ /** One PR merge on the default branch since local midnight (PAN-5283 D12). */
6366
+ const FlywheelShippedMerge = Schema.Struct({
6367
+ sha: Schema.String,
6368
+ at: Schema.String,
6369
+ subject: Schema.String,
6370
+ prNumber: Schema.Number,
6371
+ prUrl: Schema.NullOr(Schema.String),
6372
+ issueId: Schema.NullOr(Schema.String),
6373
+ title: Schema.NullOr(Schema.String),
6374
+ /** `null` when deploy does not apply to this project (PAN-5283 D13). */
6375
+ deployed: Schema.NullOr(Schema.Boolean)
6376
+ });
6377
+ const FlywheelShippedEvent = Schema.Union([
6378
+ Schema.Struct({
6379
+ kind: Schema.Literal("merge"),
6380
+ at: Schema.String,
6381
+ merge: FlywheelShippedMerge
6382
+ }),
6383
+ Schema.Struct({
6384
+ kind: Schema.Literal("deploy"),
6385
+ at: Schema.String,
6386
+ trigger: Schema.String,
6387
+ issueId: Schema.NullOr(Schema.String),
6388
+ initiator: Schema.NullOr(Schema.String)
6389
+ }),
6390
+ Schema.Struct({
6391
+ kind: Schema.Literal("release"),
6392
+ at: Schema.String,
6393
+ tag: Schema.String,
6394
+ url: Schema.NullOr(Schema.String)
6395
+ })
6396
+ ]);
6397
+ const FlywheelShipped = Schema.Struct({
6398
+ merges: Schema.Array(FlywheelShippedMerge),
6399
+ events: Schema.Array(FlywheelShippedEvent)
6400
+ });
6401
+ /** Facts the global header does not show (PAN-5283 FR-9). Server route only. */
6402
+ const FlywheelHealth = Schema.Struct({
6403
+ mainCi: Schema.NullOr(Schema.Struct({
6404
+ conclusion: Schema.String,
6405
+ sha: Schema.String,
6406
+ url: Schema.NullOr(Schema.String),
6407
+ at: Schema.String
6408
+ })),
6409
+ deployed: Schema.NullOr(Schema.Struct({
6410
+ buildCommit: Schema.String,
6411
+ behindVerdict: Schema.NullOr(Schema.Number)
6412
+ })),
6413
+ gateQueue: Schema.Struct({
6414
+ running: Schema.Number,
6415
+ queued: Schema.Number,
6416
+ slots: Schema.Number,
6417
+ oldestWaitSince: Schema.NullOr(Schema.String)
6418
+ }),
6419
+ nextBatch: Schema.NullOr(Schema.Struct({
6420
+ name: Schema.String,
6421
+ status: Schema.String,
6422
+ members: Schema.Array(Schema.String),
6423
+ createdAt: Schema.String
6424
+ })),
6425
+ batchingPausedUntil: Schema.NullOr(Schema.String),
6426
+ lastRelease: Schema.NullOr(Schema.Struct({
6427
+ tag: Schema.String,
6428
+ at: Schema.String,
6429
+ url: Schema.NullOr(Schema.String)
6430
+ }))
6431
+ });
6150
6432
  const FlywheelDerivedStatus = Schema.Struct({
6151
6433
  run: FlywheelRunState,
6152
6434
  conversation: Schema.NullOr(FlywheelConversationSummary),
@@ -6163,8 +6445,15 @@ const FlywheelDerivedStatus = Schema.Struct({
6163
6445
  inFlightSource: Schema.Literals(["tick", "census"]),
6164
6446
  orderBook: Schema.NullOr(FlywheelOrderBookSummary),
6165
6447
  projectRoot: Schema.String,
6166
- generatedAt: Schema.String
6448
+ generatedAt: Schema.String,
6449
+ /** Added by the status route, never by `pan flywheel status` (PAN-5283 D7). */
6450
+ health: Schema.optional(FlywheelHealth),
6451
+ shipped: Schema.optional(FlywheelShipped)
6167
6452
  });
6453
+ /** Cards on the Deploy and Done-today lanes. */
6454
+ function shippedCardCount(status) {
6455
+ return status.shipped?.merges.length ?? 0;
6456
+ }
6168
6457
  const decodeFlywheelDerivedStatus = Schema.decodeUnknownSync(FlywheelDerivedStatus);
6169
6458
  //#endregion
6170
6459
  //#region src/orders.ts
@@ -6549,7 +6838,8 @@ const HARNESS_CAPABILITY_KEYS = [
6549
6838
  "answersQuestionByMessage",
6550
6839
  "askAnswerDelivery",
6551
6840
  "runsOnFlyMachine",
6552
- "overdeckMcp"
6841
+ "overdeckMcp",
6842
+ "skillSlashCommands"
6553
6843
  ];
6554
6844
  const CLAUDE_CODE_CAPABILITIES = {
6555
6845
  contextChannel: "append-system-prompt-file",
@@ -6573,7 +6863,8 @@ const CLAUDE_CODE_CAPABILITIES = {
6573
6863
  answersQuestionByMessage: true,
6574
6864
  askAnswerDelivery: "message",
6575
6865
  runsOnFlyMachine: true,
6576
- overdeckMcp: true
6866
+ overdeckMcp: true,
6867
+ skillSlashCommands: true
6577
6868
  };
6578
6869
  const OHMYPI_CAPABILITIES = {
6579
6870
  contextChannel: "append-system-prompt",
@@ -6597,7 +6888,8 @@ const OHMYPI_CAPABILITIES = {
6597
6888
  answersQuestionByMessage: false,
6598
6889
  askAnswerDelivery: "pi-ask-modal",
6599
6890
  runsOnFlyMachine: false,
6600
- overdeckMcp: false
6891
+ overdeckMcp: false,
6892
+ skillSlashCommands: false
6601
6893
  };
6602
6894
  /**
6603
6895
  * Pi Coding Agent (PAN-5212). Same launch channel and transcript handling as
@@ -6633,7 +6925,8 @@ const CODEX_CAPABILITIES = {
6633
6925
  answersQuestionByMessage: false,
6634
6926
  askAnswerDelivery: "codex-approval",
6635
6927
  runsOnFlyMachine: true,
6636
- overdeckMcp: true
6928
+ overdeckMcp: true,
6929
+ skillSlashCommands: false
6637
6930
  };
6638
6931
  const ACP_CAPABILITIES = {
6639
6932
  contextChannel: "acp-initial-context",
@@ -6657,7 +6950,8 @@ const ACP_CAPABILITIES = {
6657
6950
  answersQuestionByMessage: false,
6658
6951
  askAnswerDelivery: "message",
6659
6952
  runsOnFlyMachine: false,
6660
- overdeckMcp: true
6953
+ overdeckMcp: true,
6954
+ skillSlashCommands: false
6661
6955
  };
6662
6956
  const KIMI_CODE_CAPABILITIES = {
6663
6957
  contextChannel: "initial-message-envelope",
@@ -6681,7 +6975,8 @@ const KIMI_CODE_CAPABILITIES = {
6681
6975
  answersQuestionByMessage: false,
6682
6976
  askAnswerDelivery: "message",
6683
6977
  runsOnFlyMachine: false,
6684
- overdeckMcp: false
6978
+ overdeckMcp: false,
6979
+ skillSlashCommands: false
6685
6980
  };
6686
6981
  const OPENCODE_CAPABILITIES = {
6687
6982
  contextChannel: "acp-initial-context",
@@ -6705,7 +7000,8 @@ const OPENCODE_CAPABILITIES = {
6705
7000
  answersQuestionByMessage: false,
6706
7001
  askAnswerDelivery: "message",
6707
7002
  runsOnFlyMachine: false,
6708
- overdeckMcp: true
7003
+ overdeckMcp: true,
7004
+ skillSlashCommands: false
6709
7005
  };
6710
7006
  const GROK_CAPABILITIES = {
6711
7007
  ...OPENCODE_CAPABILITIES,
@@ -6736,7 +7032,8 @@ const MUSE_CAPABILITIES = {
6736
7032
  answersQuestionByMessage: false,
6737
7033
  askAnswerDelivery: "message",
6738
7034
  runsOnFlyMachine: false,
6739
- overdeckMcp: false
7035
+ overdeckMcp: false,
7036
+ skillSlashCommands: false
6740
7037
  };
6741
7038
  const PRIME_AGENT_CAPABILITIES = {
6742
7039
  contextChannel: "prime-agent-append-system-prompt",
@@ -6760,7 +7057,8 @@ const PRIME_AGENT_CAPABILITIES = {
6760
7057
  answersQuestionByMessage: false,
6761
7058
  askAnswerDelivery: "message",
6762
7059
  runsOnFlyMachine: false,
6763
- overdeckMcp: false
7060
+ overdeckMcp: false,
7061
+ skillSlashCommands: false
6764
7062
  };
6765
7063
  //#endregion
6766
7064
  //#region src/harness-behavior.ts
@@ -7343,6 +7641,7 @@ const TELEMETRY_CLIENT_ROUTES = [
7343
7641
  "/api/agents/:id/message",
7344
7642
  "/api/agents/:id/permissions/:requestId/respond",
7345
7643
  "/api/agents/:id/plan-action",
7644
+ "/api/agents/:id/send-now",
7346
7645
  "/api/agents/:id/tell",
7347
7646
  "/api/backend-restart-recovery",
7348
7647
  "/api/backend-restart-recovery/dismiss",
@@ -7358,6 +7657,8 @@ const TELEMETRY_CLIENT_ROUTES = [
7358
7657
  "/api/conversations/:name/about",
7359
7658
  "/api/conversations/:name/attachments/:file",
7360
7659
  "/api/conversations/:name/bookmarks",
7660
+ "/api/conversations/:name/changes",
7661
+ "/api/conversations/:name/changes/lines",
7361
7662
  "/api/conversations/:name/compact",
7362
7663
  "/api/conversations/:name/delete-image",
7363
7664
  "/api/conversations/:name/diffs",
@@ -7380,6 +7681,7 @@ const TELEMETRY_CLIENT_ROUTES = [
7380
7681
  "/api/conversations/:name/scheduled-messages/:id",
7381
7682
  "/api/conversations/:name/schedules",
7382
7683
  "/api/conversations/:name/schedules/:id",
7684
+ "/api/conversations/:name/send-now",
7383
7685
  "/api/conversations/:name/stop",
7384
7686
  "/api/conversations/:name/switch-model",
7385
7687
  "/api/conversations/:name/thinking-level",
@@ -7391,6 +7693,7 @@ const TELEMETRY_CLIENT_ROUTES = [
7391
7693
  "/api/disk-alert",
7392
7694
  "/api/explorer/download",
7393
7695
  "/api/explorer/edit-workspaces/:workspaceId",
7696
+ "/api/explorer/edit-workspaces/:workspaceId/changes",
7394
7697
  "/api/explorer/edit-workspaces/:workspaceId/discard",
7395
7698
  "/api/explorer/edit-workspaces/:workspaceId/merge",
7396
7699
  "/api/explorer/edit-workspaces/:workspaceId/pr",
@@ -7465,7 +7768,13 @@ const TELEMETRY_CLIENT_ROUTES = [
7465
7768
  "/api/self/workers/:id",
7466
7769
  "/api/self/workers/:id/wait",
7467
7770
  "/api/settings/resolved",
7771
+ "/api/shutdown",
7772
+ "/api/shutdown/cancel",
7773
+ "/api/shutdown/force-all",
7774
+ "/api/shutdown/force-stop",
7775
+ "/api/shutdown/preview",
7468
7776
  "/api/telemetry/client-config",
7777
+ "/api/ui/open",
7469
7778
  "/api/versions/self",
7470
7779
  "/api/versions/self/update",
7471
7780
  "/api/workers",
@@ -7577,6 +7886,7 @@ const TELEMETRY_CLIENT_ROUTE_AREAS = [
7577
7886
  "share-probe",
7578
7887
  "shares",
7579
7888
  "show",
7889
+ "shutdown",
7580
7890
  "skills",
7581
7891
  "specialists",
7582
7892
  "system",
@@ -7588,6 +7898,7 @@ const TELEMETRY_CLIENT_ROUTE_AREAS = [
7588
7898
  "trackers",
7589
7899
  "triggers",
7590
7900
  "tts",
7901
+ "ui",
7591
7902
  "update",
7592
7903
  "vault",
7593
7904
  "velocity",
@@ -10020,20 +10331,70 @@ const COMPOSER_COMMAND_MANIFEST = [
10020
10331
  "id": "pan-open",
10021
10332
  "path": ["open"],
10022
10333
  "display": "/pan open",
10023
- "description": "Open an issue workspace in your preferred editor",
10334
+ "description": "Open a file, folder or issue workspace in Overdeck",
10024
10335
  "args": [{
10025
- "name": "id",
10336
+ "name": "target",
10026
10337
  "required": true,
10027
10338
  "variadic": false
10028
10339
  }],
10340
+ "options": [
10341
+ {
10342
+ "flags": "-e, --editor [editor]",
10343
+ "description": "Open in an external editor instead (cursor, vscode, zed, file-manager, …)",
10344
+ "required": false,
10345
+ "valueHint": "editor"
10346
+ },
10347
+ {
10348
+ "flags": "--line <n>",
10349
+ "description": "Open a file at this line",
10350
+ "required": true,
10351
+ "valueHint": "n"
10352
+ },
10353
+ {
10354
+ "flags": "--column <n>",
10355
+ "description": "Open a file at this column",
10356
+ "required": true,
10357
+ "valueHint": "n"
10358
+ },
10359
+ {
10360
+ "flags": "--new-tab",
10361
+ "description": "Open in a new browser tab instead of the focused dashboard tab",
10362
+ "required": false,
10363
+ "valueHint": null
10364
+ }
10365
+ ],
10366
+ "aliases": [],
10367
+ "category": "Observation"
10368
+ },
10369
+ {
10370
+ "id": "pan-integrate",
10371
+ "path": ["integrate"],
10372
+ "display": "/pan integrate",
10373
+ "description": "Add Overdeck to other tools on this machine",
10374
+ "args": [],
10375
+ "options": [],
10376
+ "aliases": [],
10377
+ "category": "Core"
10378
+ },
10379
+ {
10380
+ "id": "pan-integrate-file-manager",
10381
+ "path": ["integrate", "file-manager"],
10382
+ "display": "/pan integrate file-manager",
10383
+ "description": "Add \"Open in Overdeck\" to the file manager's right-click menu",
10384
+ "args": [],
10029
10385
  "options": [{
10030
- "flags": "-e, --editor <editor>",
10031
- "description": "Editor to use (cursor, windsurf, vscode, zed, etc.)",
10032
- "required": true,
10033
- "valueHint": "editor"
10386
+ "flags": "--remove",
10387
+ "description": "Remove the entries this command added",
10388
+ "required": false,
10389
+ "valueHint": null
10390
+ }, {
10391
+ "flags": "--dry-run",
10392
+ "description": "Print what would be written, deleted or run, and change nothing",
10393
+ "required": false,
10394
+ "valueHint": null
10034
10395
  }],
10035
10396
  "aliases": [],
10036
- "category": "Observation"
10397
+ "category": "Core"
10037
10398
  },
10038
10399
  {
10039
10400
  "id": "pan-review",
@@ -13607,6 +13968,12 @@ const COMPOSER_COMMAND_MANIFEST = [
13607
13968
  "required": false,
13608
13969
  "valueHint": null
13609
13970
  },
13971
+ {
13972
+ "flags": "--all",
13973
+ "description": "List every fact, including superseded and retired ones",
13974
+ "required": false,
13975
+ "valueHint": null
13976
+ },
13610
13977
  {
13611
13978
  "flags": "--project <key>",
13612
13979
  "description": "Project key (defaults to the project owning the cwd)",
@@ -13688,6 +14055,24 @@ const COMPOSER_COMMAND_MANIFEST = [
13688
14055
  "required": true,
13689
14056
  "valueHint": "a,b"
13690
14057
  },
14058
+ {
14059
+ "flags": "--always",
14060
+ "description": "List this fact first in every launch index and leave it out of prompt-time retrieval",
14061
+ "required": false,
14062
+ "valueHint": null
14063
+ },
14064
+ {
14065
+ "flags": "--source <text>",
14066
+ "description": "Who or what made this rule, and when (for example \"twitch:alice 2026-11-10 14:20\")",
14067
+ "required": true,
14068
+ "valueHint": "text"
14069
+ },
14070
+ {
14071
+ "flags": "--supersedes <ids>",
14072
+ "description": "Comma-separated ids of facts this one replaces; marks them superseded (same store)",
14073
+ "required": true,
14074
+ "valueHint": "ids"
14075
+ },
13691
14076
  {
13692
14077
  "flags": "--project <key>",
13693
14078
  "description": "Project key (defaults to the project owning the cwd)",
@@ -13763,12 +14148,36 @@ const COMPOSER_COMMAND_MANIFEST = [
13763
14148
  "required": true,
13764
14149
  "valueHint": "a,b"
13765
14150
  },
14151
+ {
14152
+ "flags": "--source <text>",
14153
+ "description": "Replace who or what made this rule, and when",
14154
+ "required": true,
14155
+ "valueHint": "text"
14156
+ },
14157
+ {
14158
+ "flags": "--supersedes <ids>",
14159
+ "description": "Comma-separated ids of facts this one replaces; marks them superseded (same store)",
14160
+ "required": true,
14161
+ "valueHint": "ids"
14162
+ },
13766
14163
  {
13767
14164
  "flags": "--clear-review",
13768
14165
  "description": "Remove the review marker, re-activating the fact",
13769
14166
  "required": false,
13770
14167
  "valueHint": null
13771
14168
  },
14169
+ {
14170
+ "flags": "--always",
14171
+ "description": "List this fact first in every launch index and leave it out of prompt-time retrieval",
14172
+ "required": false,
14173
+ "valueHint": null
14174
+ },
14175
+ {
14176
+ "flags": "--no-always",
14177
+ "description": "Clear the always flag",
14178
+ "required": false,
14179
+ "valueHint": null
14180
+ },
13772
14181
  {
13773
14182
  "flags": "--project <key>",
13774
14183
  "description": "Project key (defaults to the project owning the cwd)",
@@ -13836,6 +14245,59 @@ const COMPOSER_COMMAND_MANIFEST = [
13836
14245
  "aliases": [],
13837
14246
  "category": "Observation"
13838
14247
  },
14248
+ {
14249
+ "id": "pan-memory-lint",
14250
+ "path": ["memory", "lint"],
14251
+ "display": "/pan memory lint",
14252
+ "description": "Report duplicate, contradicting and badly linked memory facts (advisory; never edits)",
14253
+ "args": [],
14254
+ "options": [
14255
+ {
14256
+ "flags": "--threshold <n>",
14257
+ "description": "Duplicate similarity threshold, 0-1 (default depends on the method)",
14258
+ "required": true,
14259
+ "valueHint": "n"
14260
+ },
14261
+ {
14262
+ "flags": "--no-llm",
14263
+ "description": "Skip the LLM contradiction pass",
14264
+ "required": false,
14265
+ "valueHint": null
14266
+ },
14267
+ {
14268
+ "flags": "--project <key>",
14269
+ "description": "Project key (defaults to the project owning the cwd)",
14270
+ "required": true,
14271
+ "valueHint": "key"
14272
+ },
14273
+ {
14274
+ "flags": "--user",
14275
+ "description": "Lint the operator store (travels with you; synced when set up)",
14276
+ "required": false,
14277
+ "valueHint": null
14278
+ },
14279
+ {
14280
+ "flags": "--machine",
14281
+ "description": "Lint the machine store (this machine only)",
14282
+ "required": false,
14283
+ "valueHint": null
14284
+ },
14285
+ {
14286
+ "flags": "--here",
14287
+ "description": "Lint the cwd checkout's store instead of the primary checkout",
14288
+ "required": false,
14289
+ "valueHint": null
14290
+ },
14291
+ {
14292
+ "flags": "--json",
14293
+ "description": "Output JSON",
14294
+ "required": false,
14295
+ "valueHint": null
14296
+ }
14297
+ ],
14298
+ "aliases": [],
14299
+ "category": "Observation"
14300
+ },
13839
14301
  {
13840
14302
  "id": "pan-memory-sync",
13841
14303
  "path": ["memory", "sync"],
@@ -13865,6 +14327,26 @@ const COMPOSER_COMMAND_MANIFEST = [
13865
14327
  "aliases": [],
13866
14328
  "category": "Observation"
13867
14329
  },
14330
+ {
14331
+ "id": "pan-memory-reindex",
14332
+ "path": ["memory", "reindex"],
14333
+ "display": "/pan memory reindex",
14334
+ "description": "Refresh the fact vector cache for the project, operator and machine stores",
14335
+ "args": [],
14336
+ "options": [{
14337
+ "flags": "--project <key>",
14338
+ "description": "Project key (defaults to the project owning the cwd)",
14339
+ "required": true,
14340
+ "valueHint": "key"
14341
+ }, {
14342
+ "flags": "--json",
14343
+ "description": "Output JSON",
14344
+ "required": false,
14345
+ "valueHint": null
14346
+ }],
14347
+ "aliases": [],
14348
+ "category": "Observation"
14349
+ },
13868
14350
  {
13869
14351
  "id": "pan-briefing",
13870
14352
  "path": ["briefing"],
@@ -16373,6 +16855,18 @@ const COMPOSER_COMMAND_MANIFEST = [
16373
16855
  "description": "Skip Ollama local-model detection and optional gemma4:12b pull",
16374
16856
  "required": false,
16375
16857
  "valueHint": null
16858
+ },
16859
+ {
16860
+ "flags": "--file-manager-integration",
16861
+ "description": "Add \"Open in Overdeck\" to the file manager's right-click menu without asking",
16862
+ "required": false,
16863
+ "valueHint": null
16864
+ },
16865
+ {
16866
+ "flags": "--skip-file-manager-integration",
16867
+ "description": "Neither ask about nor add the file-manager integration",
16868
+ "required": false,
16869
+ "valueHint": null
16376
16870
  }
16377
16871
  ],
16378
16872
  "aliases": [],
@@ -17966,6 +18460,53 @@ const COMPOSER_COMMAND_MANIFEST = [
17966
18460
  "aliases": [],
17967
18461
  "category": "Core"
17968
18462
  },
18463
+ {
18464
+ "id": "pan-shutdown",
18465
+ "path": ["shutdown"],
18466
+ "display": "/pan shutdown",
18467
+ "description": "Drain Overdeck safely: let each agent finish its current tool call, stop everything, then report safe to reboot",
18468
+ "args": [],
18469
+ "options": [
18470
+ {
18471
+ "flags": "--deadline <seconds>",
18472
+ "description": "Seconds before stragglers are listed (default 120, 10–3600)",
18473
+ "required": true,
18474
+ "valueHint": "seconds"
18475
+ },
18476
+ {
18477
+ "flags": "--reboot",
18478
+ "description": "Reboot the machine when the drain completes (Linux)",
18479
+ "required": false,
18480
+ "valueHint": null
18481
+ },
18482
+ {
18483
+ "flags": "--force",
18484
+ "description": "At the deadline, stop stragglers mid-tool (on a running drain: stop them now)",
18485
+ "required": false,
18486
+ "valueHint": null
18487
+ },
18488
+ {
18489
+ "flags": "--cancel",
18490
+ "description": "Cancel a running drain; stopped sessions are offered for resume",
18491
+ "required": false,
18492
+ "valueHint": null
18493
+ },
18494
+ {
18495
+ "flags": "--status",
18496
+ "description": "Print the current drain and exit",
18497
+ "required": false,
18498
+ "valueHint": null
18499
+ },
18500
+ {
18501
+ "flags": "--no-wait",
18502
+ "description": "Start the drain and exit without following it",
18503
+ "required": false,
18504
+ "valueHint": null
18505
+ }
18506
+ ],
18507
+ "aliases": [],
18508
+ "category": "Core"
18509
+ },
17969
18510
  {
17970
18511
  "id": "pan-project",
17971
18512
  "path": ["project"],
@@ -20621,6 +21162,76 @@ function presetToCron(preset) {
20621
21162
  }
20622
21163
  }
20623
21164
  //#endregion
20624
- export { ACP_BEHAVIOR, ACP_CAPABILITIES, ACTIVITY_COUNT_MAX, ACTIVITY_PUSH_RATE_PER_MINUTE, ACTIVITY_REFRESH_MS, ACTIVITY_STALE_MS, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentResolution, AgentResolutionChangedEvent, AgentRuntimeSnapshot, AgentSnapshot, AgentStartedEvent, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, BROWSERS, BUILTIN_COLOR_THEMES, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserIdSchema, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECTOR_LIMIT, CONNECTOR_LIMIT_MESSAGE, CONNECTOR_PAIR_LINK_PREFIX, CONNECTOR_PAIR_LINK_VERSION, CONNECTOR_PAIR_MACHINE_LABEL_MAX, CONNECTOR_PAIR_SCHEME, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CompactBoundary, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DEFAULT_PHONE_NOTIFICATION_PREFERENCES, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardSnapshot, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrOutsidePipeline, DerivedPrState, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EXPLORER_ERROR_CODES, EditorIdSchema, EffortLevelSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExplorerBeginEditInput, ExplorerBeginEditResult, ExplorerBeginEditRpc, ExplorerCopyInput, ExplorerCopyRpc, ExplorerCreateInput, ExplorerCreateRpc, ExplorerDeleteInput, ExplorerDeleteResult, ExplorerDeleteRpc, ExplorerEntry, ExplorerEntryKind, ExplorerEntryResult, ExplorerGitCommittedEntry, ExplorerGitCommittedStatus, ExplorerGitFileStatus, ExplorerGitStageInput, ExplorerGitStageResult, ExplorerGitStageRpc, ExplorerGitStatusEntry, ExplorerGitStatusInput, ExplorerGitStatusResult, ExplorerGitStatusRpc, ExplorerListDirInput, ExplorerListDirResult, ExplorerListDirRpc, ExplorerReadFileInput, ExplorerReadFileResult, ExplorerReadFileRpc, ExplorerRenameInput, ExplorerRenameRpc, ExplorerRestoreInput, ExplorerRestoreResult, ExplorerRestoreRpc, ExplorerRootId, ExplorerSearchContentInput, ExplorerSearchContentMatch, ExplorerSearchContentResult, ExplorerSearchContentRpc, ExplorerSearchFilesInput, ExplorerSearchFilesResult, ExplorerSearchFilesRpc, ExplorerWatchBatch, ExplorerWatchEvent, ExplorerWatchInput, ExplorerWatchRpc, ExplorerWriteFileInput, ExplorerWriteFileResult, ExplorerWriteFileRpc, ExtractionProviderConfig, ExtractionProviderTarget, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryStatus, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJobSchema, FleetUpdateMode, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelNeedsYouItem, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GROK_BEHAVIOR, GROK_CAPABILITIES, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, InboundMachineView, IssueAttention, IssueId, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkView, MachinePlacementMode, MachineProject, MachineVersionsReportSchema, MachinesResponse, MemoryAgentRole, MemoryHealthChangedEvent, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryResetMarkerCreatedEvent, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PHONE_APP_SCHEME, PHONE_ISSUE_EVENT_LABELS, PHONE_NOTIFICATION_CATEGORIES, PHONE_PAIR_CODE_RE, PHONE_PAIR_ENVIRONMENT_ID_RE, PHONE_PAIR_LINK_PREFIX, PHONE_PAIR_LINK_VERSION, PHONE_PAIR_MACHINE_KEY_RE, PIPELINE_MEMBERSHIP_LOADING_CODE, PI_BEHAVIOR, PI_CAPABILITIES, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PendingTurn, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestSnapshot, PullRequestState, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatusView, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, RestartHold, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RouteKind, RouteSource, SCHEDULE_PRESET_DAYS, SHARED_CHANNELS, SHARED_PROMPT_MAX_CHARS, SHARED_SCOPE_KINDS, SHARED_WIRE_VERSION, SHARE_MAX_ENVELOPE_CHARS, SHARE_MAX_INBOUND_ENVELOPE_CHARS, SHARE_MAX_MESSAGE_CHARS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SeqTracker, SequenceNumber, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, SharedChannelReader, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_INSTALL_KINDS, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, WINDOW_PINNED_OPEN_TOOLS_MAX, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, bucketQuotaPoints, bucketQuotaRemaining, bucketRecoveryMs, bucketRelayBytes, bucketRequestStatus, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, clientRouteOf, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeEnvelope, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeSharedMessage, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, needsYouItemKey, negotiateHello, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, notificationAllowed, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseConnectorPairLink, parseLinkedConversationName, parseNeedsYouTarget, parsePhoneIssueEvent, parsePhoneNotificationPreferences, parsePhonePairLink, parsePullRequestRef, parseTrackerIssueUrl, phoneIssueSheetPath, presenceForPaneState, presetToCron, projectLegacySystemHealthSummary, readDraftPayload, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolveTrackerIssueId, sharedPromptRefusal, slugifyThemeId, splitNeedsYouItems, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, toSharedMessage, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
21165
+ //#region src/path-root.ts
21166
+ function trimSlash(path) {
21167
+ return path.length > 1 ? path.replace(/\/+$/, "") : path;
21168
+ }
21169
+ function isAtOrUnder(path, base) {
21170
+ return path === base || path.startsWith(`${base}/`);
21171
+ }
21172
+ /** The longest project path at or above `path`, or null. */
21173
+ function owningProject(path, projects) {
21174
+ let best = null;
21175
+ for (const project of projects) {
21176
+ const base = trimSlash(project.path);
21177
+ if (isAtOrUnder(path, base) && (!best || base.length > best.length)) best = {
21178
+ project,
21179
+ length: base.length
21180
+ };
21181
+ }
21182
+ return best?.project ?? null;
21183
+ }
21184
+ /**
21185
+ * Map an absolute path to its explorer root, first match wins:
21186
+ * 1. a scratch workspace path containing it (longest first) → `workspace:<id>`;
21187
+ * 2. `<projectPath>/workspaces/feature-<x>/…` → `issue:<X>`;
21188
+ * 3. any other folder under `<projectPath>/workspaces/` → `no-root`;
21189
+ * 4. the longest project path containing it → `project:<key>`;
21190
+ * 5. otherwise `outside`.
21191
+ */
21192
+ function resolvePathRoot(absPath, projects, scratch) {
21193
+ const path = trimSlash(absPath);
21194
+ let bestScratch = null;
21195
+ for (const row of scratch) {
21196
+ const base = trimSlash(row.path);
21197
+ if (isAtOrUnder(path, base) && (!bestScratch || base.length > bestScratch.length)) bestScratch = {
21198
+ row,
21199
+ length: base.length
21200
+ };
21201
+ }
21202
+ if (bestScratch) return {
21203
+ kind: "root",
21204
+ projectKey: owningProject(path, projects)?.key ?? "",
21205
+ rootId: `workspace:${bestScratch.row.id}`
21206
+ };
21207
+ let bestWorkspaces = null;
21208
+ for (const project of projects) {
21209
+ const dir = `${trimSlash(project.path)}/workspaces`;
21210
+ if (path.startsWith(`${dir}/`) && (!bestWorkspaces || dir.length > bestWorkspaces.dir.length)) bestWorkspaces = {
21211
+ project,
21212
+ dir
21213
+ };
21214
+ }
21215
+ if (bestWorkspaces) {
21216
+ const first = path.slice(bestWorkspaces.dir.length + 1).split("/")[0] ?? "";
21217
+ const slug = first.startsWith("feature-") ? first.slice(8) : "";
21218
+ return slug ? {
21219
+ kind: "root",
21220
+ projectKey: bestWorkspaces.project.key,
21221
+ rootId: `issue:${slug.toUpperCase()}`
21222
+ } : {
21223
+ kind: "no-root",
21224
+ projectKey: bestWorkspaces.project.key
21225
+ };
21226
+ }
21227
+ const project = owningProject(path, projects);
21228
+ return project ? {
21229
+ kind: "root",
21230
+ projectKey: project.key,
21231
+ rootId: `project:${project.key}`
21232
+ } : { kind: "outside" };
21233
+ }
21234
+ //#endregion
21235
+ export { ACP_BEHAVIOR, ACP_CAPABILITIES, ACTIVITY_COUNT_MAX, ACTIVITY_PUSH_RATE_PER_MINUTE, ACTIVITY_REFRESH_MS, ACTIVITY_STALE_MS, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentResolution, AgentResolutionChangedEvent, AgentRuntimeSnapshot, AgentSnapshot, AgentStartedEvent, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, BROWSERS, BUILTIN_COLOR_THEMES, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserIdSchema, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECTOR_LIMIT, CONNECTOR_LIMIT_MESSAGE, CONNECTOR_PAIR_LINK_PREFIX, CONNECTOR_PAIR_LINK_VERSION, CONNECTOR_PAIR_MACHINE_LABEL_MAX, CONNECTOR_PAIR_SCHEME, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CompactBoundary, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DEFAULT_PHONE_NOTIFICATION_PREFERENCES, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardSnapshot, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedMergedSlice, DerivedPrOutsidePipeline, DerivedPrState, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EXPLORER_ERROR_CODES, EditorIdSchema, EffortLevelSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExplorerBeginEditInput, ExplorerBeginEditResult, ExplorerBeginEditRpc, ExplorerCopyInput, ExplorerCopyRpc, ExplorerCreateInput, ExplorerCreateRpc, ExplorerDeleteInput, ExplorerDeleteResult, ExplorerDeleteRpc, ExplorerEntry, ExplorerEntryKind, ExplorerEntryResult, ExplorerGitCommittedEntry, ExplorerGitCommittedStatus, ExplorerGitFileStatus, ExplorerGitStageInput, ExplorerGitStageResult, ExplorerGitStageRpc, ExplorerGitStatusEntry, ExplorerGitStatusInput, ExplorerGitStatusResult, ExplorerGitStatusRpc, ExplorerListDirInput, ExplorerListDirResult, ExplorerListDirRpc, ExplorerReadFileInput, ExplorerReadFileResult, ExplorerReadFileRpc, ExplorerRenameInput, ExplorerRenameRpc, ExplorerRestoreInput, ExplorerRestoreResult, ExplorerRestoreRpc, ExplorerRootId, ExplorerSearchContentInput, ExplorerSearchContentMatch, ExplorerSearchContentResult, ExplorerSearchContentRpc, ExplorerSearchFilesInput, ExplorerSearchFilesResult, ExplorerSearchFilesRpc, ExplorerWatchBatch, ExplorerWatchEvent, ExplorerWatchInput, ExplorerWatchRpc, ExplorerWriteFileInput, ExplorerWriteFileResult, ExplorerWriteFileRpc, ExtractionProviderConfig, ExtractionProviderTarget, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryStatus, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJobSchema, FleetUpdateMode, FlywheelActivity, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBlocker, FlywheelBlockerKind, FlywheelBugRateCriterion, FlywheelCardAgent, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHealth, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelNeedsYouItem, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelOwner, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelShipped, FlywheelShippedEvent, FlywheelShippedMerge, FlywheelStage, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GROK_BEHAVIOR, GROK_CAPABILITIES, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, InboundMachineView, IssueAttention, IssueId, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkView, MachinePlacementMode, MachineProject, MachineVersionsReportSchema, MachinesResponse, MemoryAgentRole, MemoryHealthChangedEvent, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryResetMarkerCreatedEvent, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PHONE_APP_SCHEME, PHONE_ISSUE_EVENT_LABELS, PHONE_NOTIFICATION_CATEGORIES, PHONE_PAIR_CODE_RE, PHONE_PAIR_ENVIRONMENT_ID_RE, PHONE_PAIR_LINK_PREFIX, PHONE_PAIR_LINK_VERSION, PHONE_PAIR_MACHINE_KEY_RE, PIPELINE_MEMBERSHIP_LOADING_CODE, PI_BEHAVIOR, PI_CAPABILITIES, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PendingTurn, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestSnapshot, PullRequestState, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatusView, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, RestartHold, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RouteKind, RouteSource, SCHEDULE_PRESET_DAYS, SHARED_CHANNELS, SHARED_PROMPT_MAX_CHARS, SHARED_SCOPE_KINDS, SHARED_WIRE_VERSION, SHARE_MAX_ENVELOPE_CHARS, SHARE_MAX_INBOUND_ENVELOPE_CHARS, SHARE_MAX_MESSAGE_CHARS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SeqTracker, SequenceNumber, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, SharedChannelReader, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, ShutdownPendingSession, ShutdownPhase, ShutdownSnapshot, ShutdownWriter, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubscribeUiCommandsRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, SystemShutdownChangedEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_INSTALL_KINDS, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, UiCommand, UiOpenResolution, WINDOW_PINNED_OPEN_TOOLS_MAX, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, bucketQuotaPoints, bucketQuotaRemaining, bucketRecoveryMs, bucketRelayBytes, bucketRequestStatus, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, clientRouteOf, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeEnvelope, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeSharedMessage, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, needsYouItemKey, negotiateHello, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, notificationAllowed, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseConnectorPairLink, parseLinkedConversationName, parseNeedsYouTarget, parsePhoneIssueEvent, parsePhoneNotificationPreferences, parsePhonePairLink, parsePullRequestRef, parseTrackerIssueUrl, phoneIssueSheetPath, presenceForPaneState, presetToCron, projectDeckKey, projectLegacySystemHealthSummary, readDraftPayload, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolvePathRoot, resolveTrackerIssueId, sharedPromptRefusal, shippedCardCount, slugifyThemeId, splitNeedsYouItems, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, toSharedMessage, trimMemoryObservations, trimTurnDiffSummaries, uiOpenSummary, withPaneLivenessAlias };
20625
21236
 
20626
21237
  //# sourceMappingURL=index.mjs.map