@overdeck/contracts 0.45.24 → 0.47.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.d.ts CHANGED
@@ -9,6 +9,14 @@ import * as _$effect_SchemaAST0 from "effect/SchemaAST";
9
9
  declare const IssueId: Schema.String;
10
10
  type IssueId = typeof IssueId.Type;
11
11
  type PipelineBucket = "in_flight" | "zombie_pr" | "post_merge_limbo" | "planned_backlog" | "clean_terminal";
12
+ declare const MEMBERSHIP_UNAVAILABLE_REASONS: readonly ["missing_issue_prefix", "repo_unavailable", "default_branch_unresolved", "forge_unavailable", "tracker_unconfigured", "gather_failed"];
13
+ type MembershipUnavailableReason = typeof MEMBERSHIP_UNAVAILABLE_REASONS[number];
14
+ interface PipelineMembershipUnavailableBody {
15
+ status: "unavailable";
16
+ reason: MembershipUnavailableReason;
17
+ message: string;
18
+ projectKey: string;
19
+ }
12
20
  /** Server-computed pipeline membership attached to dashboard issue DTOs. */
13
21
  interface IssuePipelineMembership {
14
22
  available?: boolean;
@@ -152,6 +160,7 @@ declare const AgentSnapshot: Schema.Struct<{
152
160
  readonly branch: Schema.optional<Schema.String>;
153
161
  readonly costSoFar: Schema.optional<Schema.Number>;
154
162
  readonly sessionId: Schema.optional<Schema.String>;
163
+ readonly startedBy: Schema.optional<Schema.String>;
155
164
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
156
165
  readonly phase: Schema.optional<Schema.String>;
157
166
  readonly workType: Schema.optional<Schema.String>;
@@ -198,6 +207,15 @@ declare const AgentSnapshot: Schema.Struct<{
198
207
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
199
208
  }>;
200
209
  type AgentSnapshot = typeof AgentSnapshot.Type;
210
+ /** PAN-3151: A recorded cycle in the review convergence tracking series */
211
+ declare const ReviewCycleEntry: Schema.Struct<{
212
+ readonly cycle: Schema.Number;
213
+ readonly runId: Schema.String;
214
+ readonly atCommit: Schema.optional<Schema.String>;
215
+ readonly blockingCount: Schema.Number;
216
+ readonly recordedAt: Schema.String;
217
+ }>;
218
+ type ReviewCycleEntry = typeof ReviewCycleEntry.Type;
201
219
  declare const ReviewStatusSnapshot: Schema.Struct<{
202
220
  readonly issueId: Schema.String;
203
221
  readonly reviewStatus: Schema.optional<Schema.Literals<readonly ["pending", "reviewing", "passed", "failed", "blocked", "skipped"]>>;
@@ -216,7 +234,14 @@ declare const ReviewStatusSnapshot: Schema.Struct<{
216
234
  readonly stuck: Schema.optional<Schema.Boolean>;
217
235
  readonly stuckReason: Schema.optional<Schema.String>;
218
236
  readonly stuckAt: Schema.optional<Schema.String>;
219
- readonly stuckDetails: Schema.optional<Schema.String>; /** Commit SHA at which review passed; deacon uses this to detect new pushes after review */
237
+ readonly stuckDetails: Schema.optional<Schema.String>; /** PAN-3151: review cycle history for convergence detection */
238
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
239
+ readonly cycle: Schema.Number;
240
+ readonly runId: Schema.String;
241
+ readonly atCommit: Schema.optional<Schema.String>;
242
+ readonly blockingCount: Schema.Number;
243
+ readonly recordedAt: Schema.String;
244
+ }>>>; /** Commit SHA at which review passed; deacon uses this to detect new pushes after review */
220
245
  readonly reviewedAtCommit: Schema.optional<Schema.String>; /** Commit SHA at which the pre-review verification gate last passed */
221
246
  readonly lastVerifiedCommit: Schema.optional<Schema.String>; /** Current merge pipeline step (granular visibility for the merge step tracker) */
222
247
  readonly mergeStep: Schema.optional<Schema.String>; /** PAN-699: timestamp when review agents were dispatched */
@@ -235,9 +260,9 @@ declare const ReviewStatusSnapshot: Schema.Struct<{
235
260
  readonly queuePosition: Schema.optional<Schema.Number>; /** PAN-905: currently active specialist (e.g. 'merge-agent') */
236
261
  readonly activeSpecialist: Schema.optional<Schema.String>; /** PAN-905: number of merge retries attempted */
237
262
  readonly mergeRetryCount: Schema.optional<Schema.Number>; /** PAN-905: free-form notes about the merge attempt */
238
- readonly mergeNotes: Schema.optional<Schema.String>; /** PAN-905: GitHub-native merge blocker reasons */
263
+ readonly mergeNotes: Schema.optional<Schema.String>; /** Merge blocker reasons surfaced to operators. */
239
264
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
240
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
265
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
241
266
  readonly summary: Schema.String;
242
267
  readonly details: Schema.optional<Schema.String>;
243
268
  readonly detectedAt: Schema.String;
@@ -320,6 +345,7 @@ declare const DashboardSnapshot: Schema.Struct<{
320
345
  readonly branch: Schema.optional<Schema.String>;
321
346
  readonly costSoFar: Schema.optional<Schema.Number>;
322
347
  readonly sessionId: Schema.optional<Schema.String>;
348
+ readonly startedBy: Schema.optional<Schema.String>;
323
349
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
324
350
  readonly phase: Schema.optional<Schema.String>;
325
351
  readonly workType: Schema.optional<Schema.String>;
@@ -384,7 +410,14 @@ declare const DashboardSnapshot: Schema.Struct<{
384
410
  readonly stuck: Schema.optional<Schema.Boolean>;
385
411
  readonly stuckReason: Schema.optional<Schema.String>;
386
412
  readonly stuckAt: Schema.optional<Schema.String>;
387
- readonly stuckDetails: Schema.optional<Schema.String>; /** Commit SHA at which review passed; deacon uses this to detect new pushes after review */
413
+ readonly stuckDetails: Schema.optional<Schema.String>; /** PAN-3151: review cycle history for convergence detection */
414
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
415
+ readonly cycle: Schema.Number;
416
+ readonly runId: Schema.String;
417
+ readonly atCommit: Schema.optional<Schema.String>;
418
+ readonly blockingCount: Schema.Number;
419
+ readonly recordedAt: Schema.String;
420
+ }>>>; /** Commit SHA at which review passed; deacon uses this to detect new pushes after review */
388
421
  readonly reviewedAtCommit: Schema.optional<Schema.String>; /** Commit SHA at which the pre-review verification gate last passed */
389
422
  readonly lastVerifiedCommit: Schema.optional<Schema.String>; /** Current merge pipeline step (granular visibility for the merge step tracker) */
390
423
  readonly mergeStep: Schema.optional<Schema.String>; /** PAN-699: timestamp when review agents were dispatched */
@@ -403,9 +436,9 @@ declare const DashboardSnapshot: Schema.Struct<{
403
436
  readonly queuePosition: Schema.optional<Schema.Number>; /** PAN-905: currently active specialist (e.g. 'merge-agent') */
404
437
  readonly activeSpecialist: Schema.optional<Schema.String>; /** PAN-905: number of merge retries attempted */
405
438
  readonly mergeRetryCount: Schema.optional<Schema.Number>; /** PAN-905: free-form notes about the merge attempt */
406
- readonly mergeNotes: Schema.optional<Schema.String>; /** PAN-905: GitHub-native merge blocker reasons */
439
+ readonly mergeNotes: Schema.optional<Schema.String>; /** Merge blocker reasons surfaced to operators. */
407
440
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
408
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
441
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
409
442
  readonly summary: Schema.String;
410
443
  readonly details: Schema.optional<Schema.String>;
411
444
  readonly detectedAt: Schema.String;
@@ -608,7 +641,7 @@ declare const SessionNode: Schema.Struct<{
608
641
  readonly summary: Schema.optional<Schema.String>;
609
642
  }>>;
610
643
  }>>;
611
- readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux"]>>;
644
+ readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux", "supervisor"]>>;
612
645
  readonly paused: Schema.optional<Schema.Boolean>;
613
646
  readonly pausedReason: Schema.optional<Schema.String>;
614
647
  readonly pausedAt: Schema.optional<Schema.String>;
@@ -671,7 +704,7 @@ declare const FeatureNode: Schema.Struct<{
671
704
  readonly summary: Schema.optional<Schema.String>;
672
705
  }>>;
673
706
  }>>;
674
- readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux"]>>;
707
+ readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux", "supervisor"]>>;
675
708
  readonly paused: Schema.optional<Schema.Boolean>;
676
709
  readonly pausedReason: Schema.optional<Schema.String>;
677
710
  readonly pausedAt: Schema.optional<Schema.String>;
@@ -737,7 +770,7 @@ declare const ProjectSessionTree: Schema.Struct<{
737
770
  readonly summary: Schema.optional<Schema.String>;
738
771
  }>>;
739
772
  }>>;
740
- readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux"]>>;
773
+ readonly deliveryMethod: Schema.optional<Schema.Literals<readonly ["auto", "channels", "tmux", "supervisor"]>>;
741
774
  readonly paused: Schema.optional<Schema.Boolean>;
742
775
  readonly pausedReason: Schema.optional<Schema.String>;
743
776
  readonly pausedAt: Schema.optional<Schema.String>;
@@ -956,6 +989,7 @@ declare const AgentStartedEvent: Schema.Struct<{
956
989
  readonly branch: Schema.optional<Schema.String>;
957
990
  readonly costSoFar: Schema.optional<Schema.Number>;
958
991
  readonly sessionId: Schema.optional<Schema.String>;
992
+ readonly startedBy: Schema.optional<Schema.String>;
959
993
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
960
994
  readonly phase: Schema.optional<Schema.String>;
961
995
  readonly workType: Schema.optional<Schema.String>;
@@ -1190,6 +1224,7 @@ declare const AgentCreatedEvent: Schema.Struct<{
1190
1224
  readonly branch: Schema.optional<Schema.String>;
1191
1225
  readonly costSoFar: Schema.optional<Schema.Number>;
1192
1226
  readonly sessionId: Schema.optional<Schema.String>;
1227
+ readonly startedBy: Schema.optional<Schema.String>;
1193
1228
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
1194
1229
  readonly phase: Schema.optional<Schema.String>;
1195
1230
  readonly workType: Schema.optional<Schema.String>;
@@ -1559,6 +1594,13 @@ declare const PipelineStatusChangedEvent: Schema.Struct<{
1559
1594
  readonly stuckReason: Schema.optional<Schema.String>;
1560
1595
  readonly stuckAt: Schema.optional<Schema.String>;
1561
1596
  readonly stuckDetails: Schema.optional<Schema.String>;
1597
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
1598
+ readonly cycle: Schema.Number;
1599
+ readonly runId: Schema.String;
1600
+ readonly atCommit: Schema.optional<Schema.String>;
1601
+ readonly blockingCount: Schema.Number;
1602
+ readonly recordedAt: Schema.String;
1603
+ }>>>;
1562
1604
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
1563
1605
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
1564
1606
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -1579,7 +1621,7 @@ declare const PipelineStatusChangedEvent: Schema.Struct<{
1579
1621
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
1580
1622
  readonly mergeNotes: Schema.optional<Schema.String>;
1581
1623
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
1582
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
1624
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
1583
1625
  readonly summary: Schema.String;
1584
1626
  readonly details: Schema.optional<Schema.String>;
1585
1627
  readonly detectedAt: Schema.String;
@@ -1624,6 +1666,13 @@ declare const ReviewStatusChangedEvent: Schema.Struct<{
1624
1666
  readonly stuckReason: Schema.optional<Schema.String>;
1625
1667
  readonly stuckAt: Schema.optional<Schema.String>;
1626
1668
  readonly stuckDetails: Schema.optional<Schema.String>;
1669
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
1670
+ readonly cycle: Schema.Number;
1671
+ readonly runId: Schema.String;
1672
+ readonly atCommit: Schema.optional<Schema.String>;
1673
+ readonly blockingCount: Schema.Number;
1674
+ readonly recordedAt: Schema.String;
1675
+ }>>>;
1627
1676
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
1628
1677
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
1629
1678
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -1644,7 +1693,7 @@ declare const ReviewStatusChangedEvent: Schema.Struct<{
1644
1693
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
1645
1694
  readonly mergeNotes: Schema.optional<Schema.String>;
1646
1695
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
1647
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
1696
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
1648
1697
  readonly summary: Schema.String;
1649
1698
  readonly details: Schema.optional<Schema.String>;
1650
1699
  readonly detectedAt: Schema.String;
@@ -1741,6 +1790,51 @@ declare const OperatorInterventionEvent: Schema.Struct<{
1741
1790
  }>;
1742
1791
  }>;
1743
1792
  type OperatorInterventionEvent = typeof OperatorInterventionEvent.Type;
1793
+ declare const LinearMcpAuthRequiredEvent: Schema.Struct<{
1794
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
1795
+ readonly sequence: Schema.Number;
1796
+ readonly timestamp: Schema.String;
1797
+ readonly payload: Schema.Struct<{
1798
+ readonly agentId: Schema.String;
1799
+ readonly issueId: Schema.NullOr<Schema.String>;
1800
+ readonly authUrl: Schema.NullOr<Schema.String>;
1801
+ readonly expiresAt: Schema.NullOr<Schema.String>;
1802
+ }>;
1803
+ }>;
1804
+ type LinearMcpAuthRequiredEvent = typeof LinearMcpAuthRequiredEvent.Type;
1805
+ declare const LinearMcpAuthHealthyEvent: Schema.Struct<{
1806
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
1807
+ readonly sequence: Schema.Number;
1808
+ readonly timestamp: Schema.String;
1809
+ readonly payload: Schema.Struct<{
1810
+ readonly agentId: Schema.String;
1811
+ readonly issueId: Schema.NullOr<Schema.String>;
1812
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
1813
+ }>;
1814
+ }>;
1815
+ type LinearMcpAuthHealthyEvent = typeof LinearMcpAuthHealthyEvent.Type;
1816
+ declare const LinearMcpAuthNotifiedEvent: Schema.Struct<{
1817
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
1818
+ readonly sequence: Schema.Number;
1819
+ readonly timestamp: Schema.String;
1820
+ readonly payload: Schema.Struct<{
1821
+ readonly agentId: Schema.String;
1822
+ readonly issueId: Schema.NullOr<Schema.String>;
1823
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
1824
+ readonly lifecycleId: Schema.optional<Schema.String>;
1825
+ }>;
1826
+ }>;
1827
+ type LinearMcpAuthNotifiedEvent = typeof LinearMcpAuthNotifiedEvent.Type;
1828
+ declare const LinearMcpAuthCallbackRelayedEvent: Schema.Struct<{
1829
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
1830
+ readonly sequence: Schema.Number;
1831
+ readonly timestamp: Schema.String;
1832
+ readonly payload: Schema.Struct<{
1833
+ readonly agentId: Schema.String;
1834
+ readonly issueId: Schema.NullOr<Schema.String>;
1835
+ }>;
1836
+ }>;
1837
+ type LinearMcpAuthCallbackRelayedEvent = typeof LinearMcpAuthCallbackRelayedEvent.Type;
1744
1838
  declare const SubstrateBugFiledEvent: Schema.Struct<{
1745
1839
  readonly type: Schema.Literal<"substrate.bug_filed">;
1746
1840
  readonly sequence: Schema.Number;
@@ -1954,8 +2048,11 @@ declare const ActivityEntryEvent: Schema.Struct<{
1954
2048
  readonly id: Schema.String;
1955
2049
  readonly source: Schema.String;
1956
2050
  readonly level: Schema.String;
2051
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
2052
+ readonly command: Schema.optional<Schema.String>;
1957
2053
  readonly message: Schema.String;
1958
2054
  readonly details: Schema.optional<Schema.String>;
2055
+ readonly output: Schema.optional<Schema.String>;
1959
2056
  readonly issueId: Schema.optional<Schema.String>; /** Dashboard route the feed navigates to on click (e.g. /conv/<name>, /flywheel). */
1960
2057
  readonly link: Schema.optional<Schema.String>; /** PAN-1862 (FR-12): fire a desktop notification for this entry (operator-facing warnings). */
1961
2058
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -2415,6 +2512,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2415
2512
  readonly branch: Schema.optional<Schema.String>;
2416
2513
  readonly costSoFar: Schema.optional<Schema.Number>;
2417
2514
  readonly sessionId: Schema.optional<Schema.String>;
2515
+ readonly startedBy: Schema.optional<Schema.String>;
2418
2516
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
2419
2517
  readonly phase: Schema.optional<Schema.String>;
2420
2518
  readonly workType: Schema.optional<Schema.String>;
@@ -2514,6 +2612,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2514
2612
  readonly branch: Schema.optional<Schema.String>;
2515
2613
  readonly costSoFar: Schema.optional<Schema.Number>;
2516
2614
  readonly sessionId: Schema.optional<Schema.String>;
2615
+ readonly startedBy: Schema.optional<Schema.String>;
2517
2616
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
2518
2617
  readonly phase: Schema.optional<Schema.String>;
2519
2618
  readonly workType: Schema.optional<Schema.String>;
@@ -2932,6 +3031,13 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2932
3031
  readonly stuckReason: Schema.optional<Schema.String>;
2933
3032
  readonly stuckAt: Schema.optional<Schema.String>;
2934
3033
  readonly stuckDetails: Schema.optional<Schema.String>;
3034
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
3035
+ readonly cycle: Schema.Number;
3036
+ readonly runId: Schema.String;
3037
+ readonly atCommit: Schema.optional<Schema.String>;
3038
+ readonly blockingCount: Schema.Number;
3039
+ readonly recordedAt: Schema.String;
3040
+ }>>>;
2935
3041
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
2936
3042
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
2937
3043
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -2952,7 +3058,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2952
3058
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
2953
3059
  readonly mergeNotes: Schema.optional<Schema.String>;
2954
3060
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
2955
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
3061
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
2956
3062
  readonly summary: Schema.String;
2957
3063
  readonly details: Schema.optional<Schema.String>;
2958
3064
  readonly detectedAt: Schema.String;
@@ -2991,6 +3097,13 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2991
3097
  readonly stuckReason: Schema.optional<Schema.String>;
2992
3098
  readonly stuckAt: Schema.optional<Schema.String>;
2993
3099
  readonly stuckDetails: Schema.optional<Schema.String>;
3100
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
3101
+ readonly cycle: Schema.Number;
3102
+ readonly runId: Schema.String;
3103
+ readonly atCommit: Schema.optional<Schema.String>;
3104
+ readonly blockingCount: Schema.Number;
3105
+ readonly recordedAt: Schema.String;
3106
+ }>>>;
2994
3107
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
2995
3108
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
2996
3109
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -3011,7 +3124,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3011
3124
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
3012
3125
  readonly mergeNotes: Schema.optional<Schema.String>;
3013
3126
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
3014
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
3127
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
3015
3128
  readonly summary: Schema.String;
3016
3129
  readonly details: Schema.optional<Schema.String>;
3017
3130
  readonly detectedAt: Schema.String;
@@ -3081,6 +3194,43 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3081
3194
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
3082
3195
  readonly source: Schema.String;
3083
3196
  }>;
3197
+ }>, Schema.Struct<{
3198
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
3199
+ readonly sequence: Schema.Number;
3200
+ readonly timestamp: Schema.String;
3201
+ readonly payload: Schema.Struct<{
3202
+ readonly agentId: Schema.String;
3203
+ readonly issueId: Schema.NullOr<Schema.String>;
3204
+ readonly authUrl: Schema.NullOr<Schema.String>;
3205
+ readonly expiresAt: Schema.NullOr<Schema.String>;
3206
+ }>;
3207
+ }>, Schema.Struct<{
3208
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
3209
+ readonly sequence: Schema.Number;
3210
+ readonly timestamp: Schema.String;
3211
+ readonly payload: Schema.Struct<{
3212
+ readonly agentId: Schema.String;
3213
+ readonly issueId: Schema.NullOr<Schema.String>;
3214
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
3215
+ }>;
3216
+ }>, Schema.Struct<{
3217
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
3218
+ readonly sequence: Schema.Number;
3219
+ readonly timestamp: Schema.String;
3220
+ readonly payload: Schema.Struct<{
3221
+ readonly agentId: Schema.String;
3222
+ readonly issueId: Schema.NullOr<Schema.String>;
3223
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
3224
+ readonly lifecycleId: Schema.optional<Schema.String>;
3225
+ }>;
3226
+ }>, Schema.Struct<{
3227
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
3228
+ readonly sequence: Schema.Number;
3229
+ readonly timestamp: Schema.String;
3230
+ readonly payload: Schema.Struct<{
3231
+ readonly agentId: Schema.String;
3232
+ readonly issueId: Schema.NullOr<Schema.String>;
3233
+ }>;
3084
3234
  }>, Schema.Struct<{
3085
3235
  readonly type: Schema.Literal<"substrate.bug_filed">;
3086
3236
  readonly sequence: Schema.Number;
@@ -3235,8 +3385,11 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3235
3385
  readonly id: Schema.String;
3236
3386
  readonly source: Schema.String;
3237
3387
  readonly level: Schema.String;
3388
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
3389
+ readonly command: Schema.optional<Schema.String>;
3238
3390
  readonly message: Schema.String;
3239
3391
  readonly details: Schema.optional<Schema.String>;
3392
+ readonly output: Schema.optional<Schema.String>;
3240
3393
  readonly issueId: Schema.optional<Schema.String>; /** Dashboard route the feed navigates to on click (e.g. /conv/<name>, /flywheel). */
3241
3394
  readonly link: Schema.optional<Schema.String>; /** PAN-1862 (FR-12): fire a desktop notification for this entry (operator-facing warnings). */
3242
3395
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -3846,22 +3999,89 @@ declare const WorkLogEntry: Schema.Struct<{
3846
3999
  readonly sequence: Schema.optional<Schema.Number>;
3847
4000
  }>;
3848
4001
  type WorkLogEntry = typeof WorkLogEntry.Type;
4002
+ declare const SubagentSummary: Schema.Struct<{
4003
+ readonly agentId: Schema.String;
4004
+ readonly agentType: Schema.String;
4005
+ readonly description: Schema.String;
4006
+ readonly toolUseId: Schema.String;
4007
+ readonly spawnDepth: Schema.Number;
4008
+ readonly status: Schema.Literals<readonly ["running", "done"]>;
4009
+ }>;
4010
+ type SubagentSummary = typeof SubagentSummary.Type;
3849
4011
  /**
3850
4012
  * Response shape for GET /api/agents/:id/conversation.
3851
4013
  * Shared between the dashboard server route and the frontend TerminalPanel.
3852
4014
  */
3853
- interface ConversationResponse {
3854
- messages: ChatMessage[];
3855
- workLog: WorkLogEntry[];
3856
- streaming: boolean;
3857
- totalCost: number;
3858
- /** Total token throughput (input + output + cache read + cache write). */
3859
- totalTokens?: number;
3860
- byteOffset: number;
3861
- proposedPlan?: ProposedPlan;
3862
- compactBoundaries?: CompactBoundary[];
3863
- contextUsage?: ContextUsage | null;
3864
- }
4015
+ declare const ConversationResponse: Schema.Struct<{
4016
+ readonly messages: Schema.$Array<Schema.Struct<{
4017
+ readonly id: Schema.String;
4018
+ readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
4019
+ readonly text: Schema.String;
4020
+ readonly turnId: Schema.optional<Schema.String>;
4021
+ readonly createdAt: Schema.String;
4022
+ readonly completedAt: Schema.optional<Schema.String>;
4023
+ readonly streaming: Schema.optional<Schema.Boolean>;
4024
+ readonly sequence: Schema.optional<Schema.Number>;
4025
+ }>>;
4026
+ readonly workLog: Schema.$Array<Schema.Struct<{
4027
+ readonly id: Schema.String;
4028
+ readonly createdAt: Schema.String;
4029
+ readonly label: Schema.String;
4030
+ readonly detail: Schema.optional<Schema.String>; /** Tool result output (populated when tool_result is received). */
4031
+ readonly result: Schema.optional<Schema.String>;
4032
+ readonly command: Schema.optional<Schema.String>;
4033
+ readonly changedFiles: Schema.optional<Schema.$Array<Schema.String>>;
4034
+ readonly tone: Schema.Literals<readonly ["thinking", "tool", "info", "error"]>;
4035
+ readonly toolTitle: Schema.optional<Schema.String>; /** Raw tool_use input dict — drives per-tool expanded rendering (PAN-1459). */
4036
+ readonly toolInput: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
4037
+ readonly sequence: Schema.optional<Schema.Number>;
4038
+ }>>;
4039
+ readonly streaming: Schema.Boolean;
4040
+ readonly totalCost: Schema.Number; /** Total token throughput (input + output + cache read + cache write). */
4041
+ readonly totalTokens: Schema.optional<Schema.Number>;
4042
+ readonly byteOffset: Schema.Number;
4043
+ readonly proposedPlan: Schema.optional<Schema.Struct<{
4044
+ readonly id: Schema.String;
4045
+ readonly plan: Schema.String;
4046
+ readonly planFilePath: Schema.optional<Schema.String>;
4047
+ readonly status: Schema.Literals<readonly ["pending", "approved", "rejected"]>;
4048
+ readonly createdAt: Schema.String;
4049
+ readonly resolvedAt: Schema.optional<Schema.String>;
4050
+ }>>;
4051
+ readonly compactBoundaries: Schema.optional<Schema.$Array<Schema.Struct<{
4052
+ readonly id: Schema.String;
4053
+ readonly timestamp: Schema.String;
4054
+ readonly trigger: Schema.optional<Schema.String>;
4055
+ readonly preTokens: Schema.optional<Schema.Number>;
4056
+ readonly model: Schema.optional<Schema.String>;
4057
+ }>>>;
4058
+ readonly contextUsage: Schema.optional<Schema.NullOr<Schema.Struct<{
4059
+ readonly activeBytes: Schema.Number;
4060
+ readonly estimatedTokens: Schema.Number;
4061
+ readonly contextWindow: Schema.Number;
4062
+ readonly percentUsed: Schema.Number;
4063
+ /**
4064
+ * Optional breakdown of the last assistant turn — surfaced by the click
4065
+ * popover on the ContextWindowMeter so users can see WHY the meter says
4066
+ * what it does. Computed by `computeContextUsage()` from JSONL `usage`.
4067
+ */
4068
+ readonly lastInputTokens: Schema.optional<Schema.Number>;
4069
+ readonly lastCacheReadTokens: Schema.optional<Schema.Number>;
4070
+ readonly lastCacheCreationTokens: Schema.optional<Schema.Number>; /** Highest input_tokens ever observed in this window — triggers 1M detection. */
4071
+ readonly maxObservedInputTokens: Schema.optional<Schema.Number>; /** Model the most recent assistant turn ran under (from JSONL). */
4072
+ readonly lastModel: Schema.optional<Schema.NullOr<Schema.String>>; /** ISO timestamp of the most recent assistant turn. */
4073
+ readonly lastTurnAt: Schema.optional<Schema.NullOr<Schema.String>>;
4074
+ }>>>;
4075
+ readonly subagents: Schema.optional<Schema.$Array<Schema.Struct<{
4076
+ readonly agentId: Schema.String;
4077
+ readonly agentType: Schema.String;
4078
+ readonly description: Schema.String;
4079
+ readonly toolUseId: Schema.String;
4080
+ readonly spawnDepth: Schema.Number;
4081
+ readonly status: Schema.Literals<readonly ["running", "done"]>;
4082
+ }>>>;
4083
+ }>;
4084
+ type ConversationResponse = typeof ConversationResponse.Type;
3865
4085
  declare const ConversationEvent: Schema.Union<readonly [Schema.Struct<{
3866
4086
  readonly kind: Schema.Literal<"messages">;
3867
4087
  readonly messages: Schema.$Array<Schema.Struct<{
@@ -3923,6 +4143,16 @@ declare const ConversationEvent: Schema.Union<readonly [Schema.Struct<{
3923
4143
  }>>>;
3924
4144
  }>, Schema.Struct<{
3925
4145
  readonly kind: Schema.Literal<"discovering">;
4146
+ }>, Schema.Struct<{
4147
+ readonly kind: Schema.Literal<"subagents">;
4148
+ readonly subagents: Schema.$Array<Schema.Struct<{
4149
+ readonly agentId: Schema.String;
4150
+ readonly agentType: Schema.String;
4151
+ readonly description: Schema.String;
4152
+ readonly toolUseId: Schema.String;
4153
+ readonly spawnDepth: Schema.Number;
4154
+ readonly status: Schema.Literals<readonly ["running", "done"]>;
4155
+ }>>;
3926
4156
  }>]>;
3927
4157
  type ConversationEvent = typeof ConversationEvent.Type;
3928
4158
  declare const SessionTreeDelta: Schema.Struct<{
@@ -3969,6 +4199,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
3969
4199
  readonly branch: Schema.optional<Schema.String>;
3970
4200
  readonly costSoFar: Schema.optional<Schema.Number>;
3971
4201
  readonly sessionId: Schema.optional<Schema.String>;
4202
+ readonly startedBy: Schema.optional<Schema.String>;
3972
4203
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
3973
4204
  readonly phase: Schema.optional<Schema.String>;
3974
4205
  readonly workType: Schema.optional<Schema.String>;
@@ -4068,6 +4299,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4068
4299
  readonly branch: Schema.optional<Schema.String>;
4069
4300
  readonly costSoFar: Schema.optional<Schema.Number>;
4070
4301
  readonly sessionId: Schema.optional<Schema.String>;
4302
+ readonly startedBy: Schema.optional<Schema.String>;
4071
4303
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
4072
4304
  readonly phase: Schema.optional<Schema.String>;
4073
4305
  readonly workType: Schema.optional<Schema.String>;
@@ -4486,6 +4718,13 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4486
4718
  readonly stuckReason: Schema.optional<Schema.String>;
4487
4719
  readonly stuckAt: Schema.optional<Schema.String>;
4488
4720
  readonly stuckDetails: Schema.optional<Schema.String>;
4721
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
4722
+ readonly cycle: Schema.Number;
4723
+ readonly runId: Schema.String;
4724
+ readonly atCommit: Schema.optional<Schema.String>;
4725
+ readonly blockingCount: Schema.Number;
4726
+ readonly recordedAt: Schema.String;
4727
+ }>>>;
4489
4728
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
4490
4729
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
4491
4730
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -4506,7 +4745,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4506
4745
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
4507
4746
  readonly mergeNotes: Schema.optional<Schema.String>;
4508
4747
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
4509
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
4748
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
4510
4749
  readonly summary: Schema.String;
4511
4750
  readonly details: Schema.optional<Schema.String>;
4512
4751
  readonly detectedAt: Schema.String;
@@ -4545,6 +4784,13 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4545
4784
  readonly stuckReason: Schema.optional<Schema.String>;
4546
4785
  readonly stuckAt: Schema.optional<Schema.String>;
4547
4786
  readonly stuckDetails: Schema.optional<Schema.String>;
4787
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
4788
+ readonly cycle: Schema.Number;
4789
+ readonly runId: Schema.String;
4790
+ readonly atCommit: Schema.optional<Schema.String>;
4791
+ readonly blockingCount: Schema.Number;
4792
+ readonly recordedAt: Schema.String;
4793
+ }>>>;
4548
4794
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
4549
4795
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
4550
4796
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -4565,7 +4811,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4565
4811
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
4566
4812
  readonly mergeNotes: Schema.optional<Schema.String>;
4567
4813
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
4568
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
4814
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
4569
4815
  readonly summary: Schema.String;
4570
4816
  readonly details: Schema.optional<Schema.String>;
4571
4817
  readonly detectedAt: Schema.String;
@@ -4635,6 +4881,43 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4635
4881
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
4636
4882
  readonly source: Schema.String;
4637
4883
  }>;
4884
+ }>, Schema.Struct<{
4885
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
4886
+ readonly sequence: Schema.Number;
4887
+ readonly timestamp: Schema.String;
4888
+ readonly payload: Schema.Struct<{
4889
+ readonly agentId: Schema.String;
4890
+ readonly issueId: Schema.NullOr<Schema.String>;
4891
+ readonly authUrl: Schema.NullOr<Schema.String>;
4892
+ readonly expiresAt: Schema.NullOr<Schema.String>;
4893
+ }>;
4894
+ }>, Schema.Struct<{
4895
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
4896
+ readonly sequence: Schema.Number;
4897
+ readonly timestamp: Schema.String;
4898
+ readonly payload: Schema.Struct<{
4899
+ readonly agentId: Schema.String;
4900
+ readonly issueId: Schema.NullOr<Schema.String>;
4901
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
4902
+ }>;
4903
+ }>, Schema.Struct<{
4904
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
4905
+ readonly sequence: Schema.Number;
4906
+ readonly timestamp: Schema.String;
4907
+ readonly payload: Schema.Struct<{
4908
+ readonly agentId: Schema.String;
4909
+ readonly issueId: Schema.NullOr<Schema.String>;
4910
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
4911
+ readonly lifecycleId: Schema.optional<Schema.String>;
4912
+ }>;
4913
+ }>, Schema.Struct<{
4914
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
4915
+ readonly sequence: Schema.Number;
4916
+ readonly timestamp: Schema.String;
4917
+ readonly payload: Schema.Struct<{
4918
+ readonly agentId: Schema.String;
4919
+ readonly issueId: Schema.NullOr<Schema.String>;
4920
+ }>;
4638
4921
  }>, Schema.Struct<{
4639
4922
  readonly type: Schema.Literal<"substrate.bug_filed">;
4640
4923
  readonly sequence: Schema.Number;
@@ -4789,8 +5072,11 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4789
5072
  readonly id: Schema.String;
4790
5073
  readonly source: Schema.String;
4791
5074
  readonly level: Schema.String;
5075
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
5076
+ readonly command: Schema.optional<Schema.String>;
4792
5077
  readonly message: Schema.String;
4793
5078
  readonly details: Schema.optional<Schema.String>;
5079
+ readonly output: Schema.optional<Schema.String>;
4794
5080
  readonly issueId: Schema.optional<Schema.String>;
4795
5081
  readonly link: Schema.optional<Schema.String>;
4796
5082
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -5173,6 +5459,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5173
5459
  readonly branch: Schema.optional<Schema.String>;
5174
5460
  readonly costSoFar: Schema.optional<Schema.Number>;
5175
5461
  readonly sessionId: Schema.optional<Schema.String>;
5462
+ readonly startedBy: Schema.optional<Schema.String>;
5176
5463
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
5177
5464
  readonly phase: Schema.optional<Schema.String>;
5178
5465
  readonly workType: Schema.optional<Schema.String>;
@@ -5272,6 +5559,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5272
5559
  readonly branch: Schema.optional<Schema.String>;
5273
5560
  readonly costSoFar: Schema.optional<Schema.Number>;
5274
5561
  readonly sessionId: Schema.optional<Schema.String>;
5562
+ readonly startedBy: Schema.optional<Schema.String>;
5275
5563
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
5276
5564
  readonly phase: Schema.optional<Schema.String>;
5277
5565
  readonly workType: Schema.optional<Schema.String>;
@@ -5690,6 +5978,13 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5690
5978
  readonly stuckReason: Schema.optional<Schema.String>;
5691
5979
  readonly stuckAt: Schema.optional<Schema.String>;
5692
5980
  readonly stuckDetails: Schema.optional<Schema.String>;
5981
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
5982
+ readonly cycle: Schema.Number;
5983
+ readonly runId: Schema.String;
5984
+ readonly atCommit: Schema.optional<Schema.String>;
5985
+ readonly blockingCount: Schema.Number;
5986
+ readonly recordedAt: Schema.String;
5987
+ }>>>;
5693
5988
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
5694
5989
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
5695
5990
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -5710,7 +6005,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5710
6005
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
5711
6006
  readonly mergeNotes: Schema.optional<Schema.String>;
5712
6007
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
5713
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
6008
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
5714
6009
  readonly summary: Schema.String;
5715
6010
  readonly details: Schema.optional<Schema.String>;
5716
6011
  readonly detectedAt: Schema.String;
@@ -5749,6 +6044,13 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5749
6044
  readonly stuckReason: Schema.optional<Schema.String>;
5750
6045
  readonly stuckAt: Schema.optional<Schema.String>;
5751
6046
  readonly stuckDetails: Schema.optional<Schema.String>;
6047
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
6048
+ readonly cycle: Schema.Number;
6049
+ readonly runId: Schema.String;
6050
+ readonly atCommit: Schema.optional<Schema.String>;
6051
+ readonly blockingCount: Schema.Number;
6052
+ readonly recordedAt: Schema.String;
6053
+ }>>>;
5752
6054
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
5753
6055
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
5754
6056
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -5769,7 +6071,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5769
6071
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
5770
6072
  readonly mergeNotes: Schema.optional<Schema.String>;
5771
6073
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
5772
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
6074
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
5773
6075
  readonly summary: Schema.String;
5774
6076
  readonly details: Schema.optional<Schema.String>;
5775
6077
  readonly detectedAt: Schema.String;
@@ -5839,6 +6141,43 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5839
6141
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
5840
6142
  readonly source: Schema.String;
5841
6143
  }>;
6144
+ }>, Schema.Struct<{
6145
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
6146
+ readonly sequence: Schema.Number;
6147
+ readonly timestamp: Schema.String;
6148
+ readonly payload: Schema.Struct<{
6149
+ readonly agentId: Schema.String;
6150
+ readonly issueId: Schema.NullOr<Schema.String>;
6151
+ readonly authUrl: Schema.NullOr<Schema.String>;
6152
+ readonly expiresAt: Schema.NullOr<Schema.String>;
6153
+ }>;
6154
+ }>, Schema.Struct<{
6155
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
6156
+ readonly sequence: Schema.Number;
6157
+ readonly timestamp: Schema.String;
6158
+ readonly payload: Schema.Struct<{
6159
+ readonly agentId: Schema.String;
6160
+ readonly issueId: Schema.NullOr<Schema.String>;
6161
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
6162
+ }>;
6163
+ }>, Schema.Struct<{
6164
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
6165
+ readonly sequence: Schema.Number;
6166
+ readonly timestamp: Schema.String;
6167
+ readonly payload: Schema.Struct<{
6168
+ readonly agentId: Schema.String;
6169
+ readonly issueId: Schema.NullOr<Schema.String>;
6170
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
6171
+ readonly lifecycleId: Schema.optional<Schema.String>;
6172
+ }>;
6173
+ }>, Schema.Struct<{
6174
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
6175
+ readonly sequence: Schema.Number;
6176
+ readonly timestamp: Schema.String;
6177
+ readonly payload: Schema.Struct<{
6178
+ readonly agentId: Schema.String;
6179
+ readonly issueId: Schema.NullOr<Schema.String>;
6180
+ }>;
5842
6181
  }>, Schema.Struct<{
5843
6182
  readonly type: Schema.Literal<"substrate.bug_filed">;
5844
6183
  readonly sequence: Schema.Number;
@@ -5993,8 +6332,11 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
5993
6332
  readonly id: Schema.String;
5994
6333
  readonly source: Schema.String;
5995
6334
  readonly level: Schema.String;
6335
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
6336
+ readonly command: Schema.optional<Schema.String>;
5996
6337
  readonly message: Schema.String;
5997
6338
  readonly details: Schema.optional<Schema.String>;
6339
+ readonly output: Schema.optional<Schema.String>;
5998
6340
  readonly issueId: Schema.optional<Schema.String>;
5999
6341
  readonly link: Schema.optional<Schema.String>;
6000
6342
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -6371,6 +6713,7 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
6371
6713
  readonly branch: Schema.optional<Schema.String>;
6372
6714
  readonly costSoFar: Schema.optional<Schema.Number>;
6373
6715
  readonly sessionId: Schema.optional<Schema.String>;
6716
+ readonly startedBy: Schema.optional<Schema.String>;
6374
6717
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
6375
6718
  readonly phase: Schema.optional<Schema.String>;
6376
6719
  readonly workType: Schema.optional<Schema.String>;
@@ -6436,6 +6779,13 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
6436
6779
  readonly stuckReason: Schema.optional<Schema.String>;
6437
6780
  readonly stuckAt: Schema.optional<Schema.String>;
6438
6781
  readonly stuckDetails: Schema.optional<Schema.String>;
6782
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
6783
+ readonly cycle: Schema.Number;
6784
+ readonly runId: Schema.String;
6785
+ readonly atCommit: Schema.optional<Schema.String>;
6786
+ readonly blockingCount: Schema.Number;
6787
+ readonly recordedAt: Schema.String;
6788
+ }>>>;
6439
6789
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
6440
6790
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
6441
6791
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -6456,7 +6806,7 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
6456
6806
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
6457
6807
  readonly mergeNotes: Schema.optional<Schema.String>;
6458
6808
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
6459
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
6809
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
6460
6810
  readonly summary: Schema.String;
6461
6811
  readonly details: Schema.optional<Schema.String>;
6462
6812
  readonly detectedAt: Schema.String;
@@ -6586,6 +6936,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
6586
6936
  readonly branch: Schema.optional<Schema.String>;
6587
6937
  readonly costSoFar: Schema.optional<Schema.Number>;
6588
6938
  readonly sessionId: Schema.optional<Schema.String>;
6939
+ readonly startedBy: Schema.optional<Schema.String>;
6589
6940
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
6590
6941
  readonly phase: Schema.optional<Schema.String>;
6591
6942
  readonly workType: Schema.optional<Schema.String>;
@@ -6685,6 +7036,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
6685
7036
  readonly branch: Schema.optional<Schema.String>;
6686
7037
  readonly costSoFar: Schema.optional<Schema.Number>;
6687
7038
  readonly sessionId: Schema.optional<Schema.String>;
7039
+ readonly startedBy: Schema.optional<Schema.String>;
6688
7040
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
6689
7041
  readonly phase: Schema.optional<Schema.String>;
6690
7042
  readonly workType: Schema.optional<Schema.String>;
@@ -7103,6 +7455,13 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7103
7455
  readonly stuckReason: Schema.optional<Schema.String>;
7104
7456
  readonly stuckAt: Schema.optional<Schema.String>;
7105
7457
  readonly stuckDetails: Schema.optional<Schema.String>;
7458
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
7459
+ readonly cycle: Schema.Number;
7460
+ readonly runId: Schema.String;
7461
+ readonly atCommit: Schema.optional<Schema.String>;
7462
+ readonly blockingCount: Schema.Number;
7463
+ readonly recordedAt: Schema.String;
7464
+ }>>>;
7106
7465
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
7107
7466
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
7108
7467
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -7123,7 +7482,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7123
7482
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
7124
7483
  readonly mergeNotes: Schema.optional<Schema.String>;
7125
7484
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
7126
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
7485
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
7127
7486
  readonly summary: Schema.String;
7128
7487
  readonly details: Schema.optional<Schema.String>;
7129
7488
  readonly detectedAt: Schema.String;
@@ -7162,6 +7521,13 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7162
7521
  readonly stuckReason: Schema.optional<Schema.String>;
7163
7522
  readonly stuckAt: Schema.optional<Schema.String>;
7164
7523
  readonly stuckDetails: Schema.optional<Schema.String>;
7524
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
7525
+ readonly cycle: Schema.Number;
7526
+ readonly runId: Schema.String;
7527
+ readonly atCommit: Schema.optional<Schema.String>;
7528
+ readonly blockingCount: Schema.Number;
7529
+ readonly recordedAt: Schema.String;
7530
+ }>>>;
7165
7531
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
7166
7532
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
7167
7533
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -7182,7 +7548,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7182
7548
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
7183
7549
  readonly mergeNotes: Schema.optional<Schema.String>;
7184
7550
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
7185
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
7551
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
7186
7552
  readonly summary: Schema.String;
7187
7553
  readonly details: Schema.optional<Schema.String>;
7188
7554
  readonly detectedAt: Schema.String;
@@ -7252,6 +7618,43 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7252
7618
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
7253
7619
  readonly source: Schema.String;
7254
7620
  }>;
7621
+ }>, Schema.Struct<{
7622
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
7623
+ readonly sequence: Schema.Number;
7624
+ readonly timestamp: Schema.String;
7625
+ readonly payload: Schema.Struct<{
7626
+ readonly agentId: Schema.String;
7627
+ readonly issueId: Schema.NullOr<Schema.String>;
7628
+ readonly authUrl: Schema.NullOr<Schema.String>;
7629
+ readonly expiresAt: Schema.NullOr<Schema.String>;
7630
+ }>;
7631
+ }>, Schema.Struct<{
7632
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
7633
+ readonly sequence: Schema.Number;
7634
+ readonly timestamp: Schema.String;
7635
+ readonly payload: Schema.Struct<{
7636
+ readonly agentId: Schema.String;
7637
+ readonly issueId: Schema.NullOr<Schema.String>;
7638
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
7639
+ }>;
7640
+ }>, Schema.Struct<{
7641
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
7642
+ readonly sequence: Schema.Number;
7643
+ readonly timestamp: Schema.String;
7644
+ readonly payload: Schema.Struct<{
7645
+ readonly agentId: Schema.String;
7646
+ readonly issueId: Schema.NullOr<Schema.String>;
7647
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
7648
+ readonly lifecycleId: Schema.optional<Schema.String>;
7649
+ }>;
7650
+ }>, Schema.Struct<{
7651
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
7652
+ readonly sequence: Schema.Number;
7653
+ readonly timestamp: Schema.String;
7654
+ readonly payload: Schema.Struct<{
7655
+ readonly agentId: Schema.String;
7656
+ readonly issueId: Schema.NullOr<Schema.String>;
7657
+ }>;
7255
7658
  }>, Schema.Struct<{
7256
7659
  readonly type: Schema.Literal<"substrate.bug_filed">;
7257
7660
  readonly sequence: Schema.Number;
@@ -7406,8 +7809,11 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7406
7809
  readonly id: Schema.String;
7407
7810
  readonly source: Schema.String;
7408
7811
  readonly level: Schema.String;
7812
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
7813
+ readonly command: Schema.optional<Schema.String>;
7409
7814
  readonly message: Schema.String;
7410
7815
  readonly details: Schema.optional<Schema.String>;
7816
+ readonly output: Schema.optional<Schema.String>;
7411
7817
  readonly issueId: Schema.optional<Schema.String>;
7412
7818
  readonly link: Schema.optional<Schema.String>;
7413
7819
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -7880,6 +8286,7 @@ declare const ResizeTerminalRpc: Rpc.Rpc<"pan.resizeTerminal", Schema.Struct<{
7880
8286
  /** 16. Subscribe to structured conversation messages from a JSONL session file (stream, PAN-451) */
7881
8287
  declare const SubscribeConversationMessagesRpc: Rpc.Rpc<"pan.subscribeConversationMessages", Schema.Struct<{
7882
8288
  readonly conversationName: Schema.String;
8289
+ readonly agentId: Schema.optional<Schema.String>;
7883
8290
  }>, _$effect_unstable_rpc_RpcSchema0.Stream<Schema.Union<readonly [Schema.Struct<{
7884
8291
  readonly kind: Schema.Literal<"messages">;
7885
8292
  readonly messages: Schema.$Array<Schema.Struct<{
@@ -7941,6 +8348,16 @@ declare const SubscribeConversationMessagesRpc: Rpc.Rpc<"pan.subscribeConversati
7941
8348
  }>>>;
7942
8349
  }>, Schema.Struct<{
7943
8350
  readonly kind: Schema.Literal<"discovering">;
8351
+ }>, Schema.Struct<{
8352
+ readonly kind: Schema.Literal<"subagents">;
8353
+ readonly subagents: Schema.$Array<Schema.Struct<{
8354
+ readonly agentId: Schema.String;
8355
+ readonly agentType: Schema.String;
8356
+ readonly description: Schema.String;
8357
+ readonly toolUseId: Schema.String;
8358
+ readonly spawnDepth: Schema.Number;
8359
+ readonly status: Schema.Literals<readonly ["running", "done"]>;
8360
+ }>>;
7944
8361
  }>]>, typeof PanRpcError>, Schema.Never, never, never>;
7945
8362
  /** 17. Subscribe to live session tree deltas for a project (stream, PAN-821) */
7946
8363
  declare const SubscribeProjectSessionTreeRpc: Rpc.Rpc<"pan.subscribeProjectSessionTree", Schema.Struct<{
@@ -8033,6 +8450,7 @@ declare const SubscribeFlywheelStatusRpc: Rpc.Rpc<"pan.subscribeFlywheelStatus",
8033
8450
  readonly laneBInFlight: Schema.optional<Schema.String>;
8034
8451
  readonly drained: Schema.Boolean;
8035
8452
  }>>;
8453
+ readonly scope: Schema.optional<Schema.Literals<readonly ["pan-only", "all-tracked-projects"]>>;
8036
8454
  readonly ticks: Schema.Number;
8037
8455
  readonly lastTickAt: Schema.String;
8038
8456
  }>>, typeof PanRpcError>, Schema.Never, never, never>;
@@ -8508,6 +8926,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
8508
8926
  readonly branch: Schema.optional<Schema.String>;
8509
8927
  readonly costSoFar: Schema.optional<Schema.Number>;
8510
8928
  readonly sessionId: Schema.optional<Schema.String>;
8929
+ readonly startedBy: Schema.optional<Schema.String>;
8511
8930
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
8512
8931
  readonly phase: Schema.optional<Schema.String>;
8513
8932
  readonly workType: Schema.optional<Schema.String>;
@@ -8607,6 +9026,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
8607
9026
  readonly branch: Schema.optional<Schema.String>;
8608
9027
  readonly costSoFar: Schema.optional<Schema.Number>;
8609
9028
  readonly sessionId: Schema.optional<Schema.String>;
9029
+ readonly startedBy: Schema.optional<Schema.String>;
8610
9030
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
8611
9031
  readonly phase: Schema.optional<Schema.String>;
8612
9032
  readonly workType: Schema.optional<Schema.String>;
@@ -9025,6 +9445,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9025
9445
  readonly stuckReason: Schema.optional<Schema.String>;
9026
9446
  readonly stuckAt: Schema.optional<Schema.String>;
9027
9447
  readonly stuckDetails: Schema.optional<Schema.String>;
9448
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
9449
+ readonly cycle: Schema.Number;
9450
+ readonly runId: Schema.String;
9451
+ readonly atCommit: Schema.optional<Schema.String>;
9452
+ readonly blockingCount: Schema.Number;
9453
+ readonly recordedAt: Schema.String;
9454
+ }>>>;
9028
9455
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
9029
9456
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
9030
9457
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -9045,7 +9472,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9045
9472
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
9046
9473
  readonly mergeNotes: Schema.optional<Schema.String>;
9047
9474
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
9048
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
9475
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
9049
9476
  readonly summary: Schema.String;
9050
9477
  readonly details: Schema.optional<Schema.String>;
9051
9478
  readonly detectedAt: Schema.String;
@@ -9084,6 +9511,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9084
9511
  readonly stuckReason: Schema.optional<Schema.String>;
9085
9512
  readonly stuckAt: Schema.optional<Schema.String>;
9086
9513
  readonly stuckDetails: Schema.optional<Schema.String>;
9514
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
9515
+ readonly cycle: Schema.Number;
9516
+ readonly runId: Schema.String;
9517
+ readonly atCommit: Schema.optional<Schema.String>;
9518
+ readonly blockingCount: Schema.Number;
9519
+ readonly recordedAt: Schema.String;
9520
+ }>>>;
9087
9521
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
9088
9522
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
9089
9523
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -9104,7 +9538,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9104
9538
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
9105
9539
  readonly mergeNotes: Schema.optional<Schema.String>;
9106
9540
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
9107
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
9541
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
9108
9542
  readonly summary: Schema.String;
9109
9543
  readonly details: Schema.optional<Schema.String>;
9110
9544
  readonly detectedAt: Schema.String;
@@ -9174,6 +9608,43 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9174
9608
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
9175
9609
  readonly source: Schema.String;
9176
9610
  }>;
9611
+ }>, Schema.Struct<{
9612
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
9613
+ readonly sequence: Schema.Number;
9614
+ readonly timestamp: Schema.String;
9615
+ readonly payload: Schema.Struct<{
9616
+ readonly agentId: Schema.String;
9617
+ readonly issueId: Schema.NullOr<Schema.String>;
9618
+ readonly authUrl: Schema.NullOr<Schema.String>;
9619
+ readonly expiresAt: Schema.NullOr<Schema.String>;
9620
+ }>;
9621
+ }>, Schema.Struct<{
9622
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
9623
+ readonly sequence: Schema.Number;
9624
+ readonly timestamp: Schema.String;
9625
+ readonly payload: Schema.Struct<{
9626
+ readonly agentId: Schema.String;
9627
+ readonly issueId: Schema.NullOr<Schema.String>;
9628
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
9629
+ }>;
9630
+ }>, Schema.Struct<{
9631
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
9632
+ readonly sequence: Schema.Number;
9633
+ readonly timestamp: Schema.String;
9634
+ readonly payload: Schema.Struct<{
9635
+ readonly agentId: Schema.String;
9636
+ readonly issueId: Schema.NullOr<Schema.String>;
9637
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
9638
+ readonly lifecycleId: Schema.optional<Schema.String>;
9639
+ }>;
9640
+ }>, Schema.Struct<{
9641
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
9642
+ readonly sequence: Schema.Number;
9643
+ readonly timestamp: Schema.String;
9644
+ readonly payload: Schema.Struct<{
9645
+ readonly agentId: Schema.String;
9646
+ readonly issueId: Schema.NullOr<Schema.String>;
9647
+ }>;
9177
9648
  }>, Schema.Struct<{
9178
9649
  readonly type: Schema.Literal<"substrate.bug_filed">;
9179
9650
  readonly sequence: Schema.Number;
@@ -9328,8 +9799,11 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9328
9799
  readonly id: Schema.String;
9329
9800
  readonly source: Schema.String;
9330
9801
  readonly level: Schema.String;
9802
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
9803
+ readonly command: Schema.optional<Schema.String>;
9331
9804
  readonly message: Schema.String;
9332
9805
  readonly details: Schema.optional<Schema.String>;
9806
+ readonly output: Schema.optional<Schema.String>;
9333
9807
  readonly issueId: Schema.optional<Schema.String>;
9334
9808
  readonly link: Schema.optional<Schema.String>;
9335
9809
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -9710,6 +10184,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9710
10184
  readonly branch: Schema.optional<Schema.String>;
9711
10185
  readonly costSoFar: Schema.optional<Schema.Number>;
9712
10186
  readonly sessionId: Schema.optional<Schema.String>;
10187
+ readonly startedBy: Schema.optional<Schema.String>;
9713
10188
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
9714
10189
  readonly phase: Schema.optional<Schema.String>;
9715
10190
  readonly workType: Schema.optional<Schema.String>;
@@ -9809,6 +10284,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
9809
10284
  readonly branch: Schema.optional<Schema.String>;
9810
10285
  readonly costSoFar: Schema.optional<Schema.Number>;
9811
10286
  readonly sessionId: Schema.optional<Schema.String>;
10287
+ readonly startedBy: Schema.optional<Schema.String>;
9812
10288
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
9813
10289
  readonly phase: Schema.optional<Schema.String>;
9814
10290
  readonly workType: Schema.optional<Schema.String>;
@@ -10227,6 +10703,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10227
10703
  readonly stuckReason: Schema.optional<Schema.String>;
10228
10704
  readonly stuckAt: Schema.optional<Schema.String>;
10229
10705
  readonly stuckDetails: Schema.optional<Schema.String>;
10706
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
10707
+ readonly cycle: Schema.Number;
10708
+ readonly runId: Schema.String;
10709
+ readonly atCommit: Schema.optional<Schema.String>;
10710
+ readonly blockingCount: Schema.Number;
10711
+ readonly recordedAt: Schema.String;
10712
+ }>>>;
10230
10713
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
10231
10714
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
10232
10715
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -10247,7 +10730,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10247
10730
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
10248
10731
  readonly mergeNotes: Schema.optional<Schema.String>;
10249
10732
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
10250
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
10733
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
10251
10734
  readonly summary: Schema.String;
10252
10735
  readonly details: Schema.optional<Schema.String>;
10253
10736
  readonly detectedAt: Schema.String;
@@ -10286,6 +10769,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10286
10769
  readonly stuckReason: Schema.optional<Schema.String>;
10287
10770
  readonly stuckAt: Schema.optional<Schema.String>;
10288
10771
  readonly stuckDetails: Schema.optional<Schema.String>;
10772
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
10773
+ readonly cycle: Schema.Number;
10774
+ readonly runId: Schema.String;
10775
+ readonly atCommit: Schema.optional<Schema.String>;
10776
+ readonly blockingCount: Schema.Number;
10777
+ readonly recordedAt: Schema.String;
10778
+ }>>>;
10289
10779
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
10290
10780
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
10291
10781
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -10306,7 +10796,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10306
10796
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
10307
10797
  readonly mergeNotes: Schema.optional<Schema.String>;
10308
10798
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
10309
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
10799
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
10310
10800
  readonly summary: Schema.String;
10311
10801
  readonly details: Schema.optional<Schema.String>;
10312
10802
  readonly detectedAt: Schema.String;
@@ -10376,6 +10866,43 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10376
10866
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
10377
10867
  readonly source: Schema.String;
10378
10868
  }>;
10869
+ }>, Schema.Struct<{
10870
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
10871
+ readonly sequence: Schema.Number;
10872
+ readonly timestamp: Schema.String;
10873
+ readonly payload: Schema.Struct<{
10874
+ readonly agentId: Schema.String;
10875
+ readonly issueId: Schema.NullOr<Schema.String>;
10876
+ readonly authUrl: Schema.NullOr<Schema.String>;
10877
+ readonly expiresAt: Schema.NullOr<Schema.String>;
10878
+ }>;
10879
+ }>, Schema.Struct<{
10880
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
10881
+ readonly sequence: Schema.Number;
10882
+ readonly timestamp: Schema.String;
10883
+ readonly payload: Schema.Struct<{
10884
+ readonly agentId: Schema.String;
10885
+ readonly issueId: Schema.NullOr<Schema.String>;
10886
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
10887
+ }>;
10888
+ }>, Schema.Struct<{
10889
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
10890
+ readonly sequence: Schema.Number;
10891
+ readonly timestamp: Schema.String;
10892
+ readonly payload: Schema.Struct<{
10893
+ readonly agentId: Schema.String;
10894
+ readonly issueId: Schema.NullOr<Schema.String>;
10895
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
10896
+ readonly lifecycleId: Schema.optional<Schema.String>;
10897
+ }>;
10898
+ }>, Schema.Struct<{
10899
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
10900
+ readonly sequence: Schema.Number;
10901
+ readonly timestamp: Schema.String;
10902
+ readonly payload: Schema.Struct<{
10903
+ readonly agentId: Schema.String;
10904
+ readonly issueId: Schema.NullOr<Schema.String>;
10905
+ }>;
10379
10906
  }>, Schema.Struct<{
10380
10907
  readonly type: Schema.Literal<"substrate.bug_filed">;
10381
10908
  readonly sequence: Schema.Number;
@@ -10530,8 +11057,11 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10530
11057
  readonly id: Schema.String;
10531
11058
  readonly source: Schema.String;
10532
11059
  readonly level: Schema.String;
11060
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
11061
+ readonly command: Schema.optional<Schema.String>;
10533
11062
  readonly message: Schema.String;
10534
11063
  readonly details: Schema.optional<Schema.String>;
11064
+ readonly output: Schema.optional<Schema.String>;
10535
11065
  readonly issueId: Schema.optional<Schema.String>;
10536
11066
  readonly link: Schema.optional<Schema.String>;
10537
11067
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -10902,6 +11432,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10902
11432
  readonly branch: Schema.optional<Schema.String>;
10903
11433
  readonly costSoFar: Schema.optional<Schema.Number>;
10904
11434
  readonly sessionId: Schema.optional<Schema.String>;
11435
+ readonly startedBy: Schema.optional<Schema.String>;
10905
11436
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
10906
11437
  readonly phase: Schema.optional<Schema.String>;
10907
11438
  readonly workType: Schema.optional<Schema.String>;
@@ -10967,6 +11498,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10967
11498
  readonly stuckReason: Schema.optional<Schema.String>;
10968
11499
  readonly stuckAt: Schema.optional<Schema.String>;
10969
11500
  readonly stuckDetails: Schema.optional<Schema.String>;
11501
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
11502
+ readonly cycle: Schema.Number;
11503
+ readonly runId: Schema.String;
11504
+ readonly atCommit: Schema.optional<Schema.String>;
11505
+ readonly blockingCount: Schema.Number;
11506
+ readonly recordedAt: Schema.String;
11507
+ }>>>;
10970
11508
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
10971
11509
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
10972
11510
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -10987,7 +11525,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10987
11525
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
10988
11526
  readonly mergeNotes: Schema.optional<Schema.String>;
10989
11527
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
10990
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
11528
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
10991
11529
  readonly summary: Schema.String;
10992
11530
  readonly details: Schema.optional<Schema.String>;
10993
11531
  readonly detectedAt: Schema.String;
@@ -11115,6 +11653,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11115
11653
  readonly branch: Schema.optional<Schema.String>;
11116
11654
  readonly costSoFar: Schema.optional<Schema.Number>;
11117
11655
  readonly sessionId: Schema.optional<Schema.String>;
11656
+ readonly startedBy: Schema.optional<Schema.String>;
11118
11657
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
11119
11658
  readonly phase: Schema.optional<Schema.String>;
11120
11659
  readonly workType: Schema.optional<Schema.String>;
@@ -11214,6 +11753,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11214
11753
  readonly branch: Schema.optional<Schema.String>;
11215
11754
  readonly costSoFar: Schema.optional<Schema.Number>;
11216
11755
  readonly sessionId: Schema.optional<Schema.String>;
11756
+ readonly startedBy: Schema.optional<Schema.String>;
11217
11757
  readonly role: Schema.optional<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "strike", "sequencer", "knowledge"]>>;
11218
11758
  readonly phase: Schema.optional<Schema.String>;
11219
11759
  readonly workType: Schema.optional<Schema.String>;
@@ -11632,6 +12172,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11632
12172
  readonly stuckReason: Schema.optional<Schema.String>;
11633
12173
  readonly stuckAt: Schema.optional<Schema.String>;
11634
12174
  readonly stuckDetails: Schema.optional<Schema.String>;
12175
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
12176
+ readonly cycle: Schema.Number;
12177
+ readonly runId: Schema.String;
12178
+ readonly atCommit: Schema.optional<Schema.String>;
12179
+ readonly blockingCount: Schema.Number;
12180
+ readonly recordedAt: Schema.String;
12181
+ }>>>;
11635
12182
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
11636
12183
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
11637
12184
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -11652,7 +12199,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11652
12199
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
11653
12200
  readonly mergeNotes: Schema.optional<Schema.String>;
11654
12201
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
11655
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
12202
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
11656
12203
  readonly summary: Schema.String;
11657
12204
  readonly details: Schema.optional<Schema.String>;
11658
12205
  readonly detectedAt: Schema.String;
@@ -11691,6 +12238,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11691
12238
  readonly stuckReason: Schema.optional<Schema.String>;
11692
12239
  readonly stuckAt: Schema.optional<Schema.String>;
11693
12240
  readonly stuckDetails: Schema.optional<Schema.String>;
12241
+ readonly reviewCycleHistory: Schema.optional<Schema.$Array<Schema.Struct<{
12242
+ readonly cycle: Schema.Number;
12243
+ readonly runId: Schema.String;
12244
+ readonly atCommit: Schema.optional<Schema.String>;
12245
+ readonly blockingCount: Schema.Number;
12246
+ readonly recordedAt: Schema.String;
12247
+ }>>>;
11694
12248
  readonly reviewedAtCommit: Schema.optional<Schema.String>;
11695
12249
  readonly lastVerifiedCommit: Schema.optional<Schema.String>;
11696
12250
  readonly mergeStep: Schema.optional<Schema.String>;
@@ -11711,7 +12265,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11711
12265
  readonly mergeRetryCount: Schema.optional<Schema.Number>;
11712
12266
  readonly mergeNotes: Schema.optional<Schema.String>;
11713
12267
  readonly blockerReasons: Schema.optional<Schema.$Array<Schema.Struct<{
11714
- readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable"]>;
12268
+ readonly type: Schema.Literals<readonly ["failing_checks", "merge_conflict", "unresolved_conversations", "changes_requested", "draft_pr", "not_mergeable", "unmerged_sibling_repo"]>;
11715
12269
  readonly summary: Schema.String;
11716
12270
  readonly details: Schema.optional<Schema.String>;
11717
12271
  readonly detectedAt: Schema.String;
@@ -11781,6 +12335,43 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11781
12335
  readonly kind: Schema.Literals<readonly ["tell", "pause", "restart", "manual_edit", "deep_wipe", "unpause", "untroubled"]>;
11782
12336
  readonly source: Schema.String;
11783
12337
  }>;
12338
+ }>, Schema.Struct<{
12339
+ readonly type: Schema.Literal<"linear_mcp_auth.required">;
12340
+ readonly sequence: Schema.Number;
12341
+ readonly timestamp: Schema.String;
12342
+ readonly payload: Schema.Struct<{
12343
+ readonly agentId: Schema.String;
12344
+ readonly issueId: Schema.NullOr<Schema.String>;
12345
+ readonly authUrl: Schema.NullOr<Schema.String>;
12346
+ readonly expiresAt: Schema.NullOr<Schema.String>;
12347
+ }>;
12348
+ }>, Schema.Struct<{
12349
+ readonly type: Schema.Literal<"linear_mcp_auth.healthy">;
12350
+ readonly sequence: Schema.Number;
12351
+ readonly timestamp: Schema.String;
12352
+ readonly payload: Schema.Struct<{
12353
+ readonly agentId: Schema.String;
12354
+ readonly issueId: Schema.NullOr<Schema.String>;
12355
+ readonly source: Schema.Literals<readonly ["hook", "operator"]>;
12356
+ }>;
12357
+ }>, Schema.Struct<{
12358
+ readonly type: Schema.Literal<"linear_mcp_auth.notified">;
12359
+ readonly sequence: Schema.Number;
12360
+ readonly timestamp: Schema.String;
12361
+ readonly payload: Schema.Struct<{
12362
+ readonly agentId: Schema.String;
12363
+ readonly issueId: Schema.NullOr<Schema.String>;
12364
+ readonly outcome: Schema.Literals<readonly ["delivering", "delivered", "queued", "failed"]>;
12365
+ readonly lifecycleId: Schema.optional<Schema.String>;
12366
+ }>;
12367
+ }>, Schema.Struct<{
12368
+ readonly type: Schema.Literal<"linear_mcp_auth.callback_relayed">;
12369
+ readonly sequence: Schema.Number;
12370
+ readonly timestamp: Schema.String;
12371
+ readonly payload: Schema.Struct<{
12372
+ readonly agentId: Schema.String;
12373
+ readonly issueId: Schema.NullOr<Schema.String>;
12374
+ }>;
11784
12375
  }>, Schema.Struct<{
11785
12376
  readonly type: Schema.Literal<"substrate.bug_filed">;
11786
12377
  readonly sequence: Schema.Number;
@@ -11935,8 +12526,11 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11935
12526
  readonly id: Schema.String;
11936
12527
  readonly source: Schema.String;
11937
12528
  readonly level: Schema.String;
12529
+ readonly status: Schema.optional<Schema.Literals<readonly ["accepted", "running", "completed", "failed"]>>;
12530
+ readonly command: Schema.optional<Schema.String>;
11938
12531
  readonly message: Schema.String;
11939
12532
  readonly details: Schema.optional<Schema.String>;
12533
+ readonly output: Schema.optional<Schema.String>;
11940
12534
  readonly issueId: Schema.optional<Schema.String>;
11941
12535
  readonly link: Schema.optional<Schema.String>;
11942
12536
  readonly desktop: Schema.optional<Schema.Boolean>;
@@ -12344,6 +12938,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12344
12938
  readonly rows: Schema.Number;
12345
12939
  }>, Schema.Void, typeof PanRpcError, never, never> | Rpc.Rpc<"pan.subscribeConversationMessages", Schema.Struct<{
12346
12940
  readonly conversationName: Schema.String;
12941
+ readonly agentId: Schema.optional<Schema.String>;
12347
12942
  }>, _$effect_unstable_rpc_RpcSchema0.Stream<Schema.Union<readonly [Schema.Struct<{
12348
12943
  readonly kind: Schema.Literal<"messages">;
12349
12944
  readonly messages: Schema.$Array<Schema.Struct<{
@@ -12405,6 +13000,16 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12405
13000
  }>>>;
12406
13001
  }>, Schema.Struct<{
12407
13002
  readonly kind: Schema.Literal<"discovering">;
13003
+ }>, Schema.Struct<{
13004
+ readonly kind: Schema.Literal<"subagents">;
13005
+ readonly subagents: Schema.$Array<Schema.Struct<{
13006
+ readonly agentId: Schema.String;
13007
+ readonly agentType: Schema.String;
13008
+ readonly description: Schema.String;
13009
+ readonly toolUseId: Schema.String;
13010
+ readonly spawnDepth: Schema.Number;
13011
+ readonly status: Schema.Literals<readonly ["running", "done"]>;
13012
+ }>>;
12408
13013
  }>]>, typeof PanRpcError>, Schema.Never, never, never> | Rpc.Rpc<"pan.subscribeProjectSessionTree", Schema.Struct<{
12409
13014
  readonly projectKey: Schema.String;
12410
13015
  }>, _$effect_unstable_rpc_RpcSchema0.Stream<Schema.Struct<{
@@ -12493,6 +13098,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12493
13098
  readonly laneBInFlight: Schema.optional<Schema.String>;
12494
13099
  readonly drained: Schema.Boolean;
12495
13100
  }>>;
13101
+ readonly scope: Schema.optional<Schema.Literals<readonly ["pan-only", "all-tracked-projects"]>>;
12496
13102
  readonly ticks: Schema.Number;
12497
13103
  readonly lastTickAt: Schema.String;
12498
13104
  }>>, typeof PanRpcError>, Schema.Never, never, never> | Rpc.Rpc<"pan.shellOpenInEditor", Schema.Struct<{
@@ -13151,6 +13757,13 @@ declare const FlywheelOrchestrator: Schema.Struct<{
13151
13757
  readonly effort: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max"]>;
13152
13758
  readonly ctxPercent: Schema.Number;
13153
13759
  }>;
13760
+ /**
13761
+ * Which projects the Flywheel orchestrator inventories. PAN-1696: this is the
13762
+ * ORCHESTRATOR's scope, not the merge/UAT trains' — those assemble per project
13763
+ * independent of it. Mirrors FlywheelScope in src/lib/config-yaml/schema.ts.
13764
+ */
13765
+ type FlywheelScopeValue = 'pan-only' | 'all-tracked-projects';
13766
+ declare const FlywheelScope: Schema.Literals<readonly ["pan-only", "all-tracked-projects"]>;
13154
13767
  interface FlywheelHeadline {
13155
13768
  bugsFixed: number;
13156
13769
  swarmItemsMerged: number;
@@ -13166,17 +13779,21 @@ declare const FlywheelHeadline: Schema.Struct<{
13166
13779
  readonly awaitingUat: Schema.Number;
13167
13780
  }>;
13168
13781
  /**
13169
- * Pipeline verbs and the merge-queue contract (PAN-1736):
13782
+ * Pipeline verbs — display state only. They no longer gate the merge queue.
13170
13783
  *
13171
- * `computeMergeQueue` treats an item as AT THE MERGE GATE when its verb is
13172
- * "shipping" OR "merging" — both are natural emissions for a merge-ready
13173
- * issue, and orchestrators have used each. Emitting any OTHER verb for an
13174
- * issue that is ready_for_merge in the review DB silently drops it from the
13175
- * merge queue and from UAT batch assembly (PAN-1737). RUN-18 shipped an
13176
- * empty queue with five ready issues exactly this way.
13784
+ * History worth keeping (PAN-1736 / PAN-1759): the merge queue used to be
13785
+ * derived by filtering these verbs, treating only "shipping" or "merging" as
13786
+ * "at the merge gate". Any other verb on an issue that was ready_for_merge in
13787
+ * the review DB silently dropped it from the queue and from UAT batch
13788
+ * assembly — RUN-18 shipped an empty queue with five ready issues exactly that
13789
+ * way — and the queue existed only while a run was emitting a pipeline at all.
13177
13790
  *
13178
- * If you add a verb that can describe a merge-ready issue, extend
13179
- * MERGE_GATE_VERBS in src/lib/flywheel-merge-order.ts in the same change.
13791
+ * PAN-1696 removed that coupling. The ready set is now sourced from the
13792
+ * review-status records per project (`listEligibleCandidatesByProject` +
13793
+ * `computeMergeQueueFromCandidates` in src/lib/flywheel-merge-order.ts), which
13794
+ * needs no flywheel run and cannot be affected by which verb an orchestrator
13795
+ * chose to report. Adding a verb here therefore has no merge-queue consequence;
13796
+ * it only changes what the dashboard displays.
13180
13797
  */
13181
13798
  declare const FlywheelPipelineVerb: Schema.Literals<readonly ["planning", "working", "reviewing", "testing", "shipping", "merging", "blocked", "parked"]>;
13182
13799
  declare const FlywheelPipelineStatus: Schema.Literals<readonly ["queued", "running", "blocked", "passed", "failed", "merged", "parked"]>;
@@ -13322,6 +13939,14 @@ interface FlywheelStatus {
13322
13939
  system: FlywheelSystemStatus;
13323
13940
  openQuestions: ReadonlyArray<string>;
13324
13941
  orders?: FlywheelOrders | undefined;
13942
+ /**
13943
+ * PAN-1696: the orchestrator scope this run was actually STARTED or RESUMED
13944
+ * with, stamped server-side from the run's launch metadata. It is deliberately
13945
+ * not the live settings value: scope is baked into the run prompt at spawn, so
13946
+ * a settings change does not reach a running orchestrator until the next start
13947
+ * or resume. Optional because runs recorded before PAN-1696 have none.
13948
+ */
13949
+ scope?: FlywheelScopeValue | undefined;
13325
13950
  ticks: number;
13326
13951
  lastTickAt: string;
13327
13952
  }
@@ -13404,6 +14029,7 @@ declare const FlywheelStatus: Schema.Struct<{
13404
14029
  readonly laneBInFlight: Schema.optional<Schema.String>;
13405
14030
  readonly drained: Schema.Boolean;
13406
14031
  }>>;
14032
+ readonly scope: Schema.optional<Schema.Literals<readonly ["pan-only", "all-tracked-projects"]>>;
13407
14033
  readonly ticks: Schema.Number;
13408
14034
  readonly lastTickAt: Schema.String;
13409
14035
  }>;
@@ -14709,8 +15335,14 @@ type HarnessTranscriptKind = "claude-jsonl" | "ohmypi-jsonl" | "codex-rollout-js
14709
15335
  type HarnessSessionIdSource = "launcher-session-id" | "transcript-jsonl" | "codex-thread-id" | "acp-session-id";
14710
15336
  type HarnessContextLayerKind = "claude" | "pi" | "codex" | "acp";
14711
15337
  type HarnessFeedKind = "claude_code" | "pi" | "codex" | "acp";
15338
+ interface HarnessNativeCommand {
15339
+ readonly name: string;
15340
+ readonly description: string;
15341
+ readonly insert: string;
15342
+ }
14712
15343
  interface HarnessBehavior {
14713
15344
  readonly displayName: string;
15345
+ readonly nativeCommands?: readonly HarnessNativeCommand[];
14714
15346
  readonly executableName: string;
14715
15347
  readonly processNames: readonly string[];
14716
15348
  readonly launchCommandKind: HarnessLaunchCommandKind;
@@ -14870,6 +15502,9 @@ declare const HostHealthMetrics: Schema.Struct<{
14870
15502
  readonly committedMemoryBytes: Schema.NullOr<Schema.Number>;
14871
15503
  readonly commitLimitBytes: Schema.NullOr<Schema.Number>;
14872
15504
  readonly virtualCommitmentPercent: Schema.NullOr<Schema.Number>;
15505
+ readonly inotifyWatchesUsed: Schema.optional<Schema.NullOr<Schema.Number>>;
15506
+ readonly inotifyWatchesMax: Schema.optional<Schema.NullOr<Schema.Number>>;
15507
+ readonly inotifyWatchesUsedPercent: Schema.optional<Schema.NullOr<Schema.Number>>;
14873
15508
  }>;
14874
15509
  type HostHealthMetrics = typeof HostHealthMetrics.Type;
14875
15510
  declare const AdmissionState: Schema.decodeTo<Schema.Literals<readonly ["open", "soft", "blocked", "unavailable"]>, Schema.String, never, never>;
@@ -15020,6 +15655,9 @@ declare const SystemHealthSnapshot: Schema.Struct<{
15020
15655
  readonly committedMemoryBytes: Schema.NullOr<Schema.Number>;
15021
15656
  readonly commitLimitBytes: Schema.NullOr<Schema.Number>;
15022
15657
  readonly virtualCommitmentPercent: Schema.NullOr<Schema.Number>;
15658
+ readonly inotifyWatchesUsed: Schema.optional<Schema.NullOr<Schema.Number>>;
15659
+ readonly inotifyWatchesMax: Schema.optional<Schema.NullOr<Schema.Number>>;
15660
+ readonly inotifyWatchesUsedPercent: Schema.optional<Schema.NullOr<Schema.Number>>;
15023
15661
  }>;
15024
15662
  }>;
15025
15663
  readonly admission: Schema.Struct<{
@@ -15157,5 +15795,242 @@ type DeployStalenessSnapshot = typeof DeployStalenessSnapshot.Type;
15157
15795
  */
15158
15796
  declare function compareIssueIds(a: string, b: string): number;
15159
15797
  //#endregion
15160
- export { ACP_BEHAVIOR, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, 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, BeadsFreshnessChangedEvent, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CODEX_BEHAVIOR, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, 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, ConversationPermissionChangedEvent, ConversationResponse, ConversationTitleChangedEvent, CostEventRecordedEvent, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardLifecycleState, DashboardSnapshot, DeepWipeRpc, DeployStalenessSnapshot, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EditorEntry, EditorId, EditorIdSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, ExtractionProviderConfig, ExtractionProviderTarget, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FlywheelAgent, FlywheelAgentStatus, FlywheelEffort, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelOrchestrator, FlywheelOrders, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelRunId, FlywheelStats, FlywheelStatsCriteria, FlywheelStatsCriterion, FlywheelStatsCriterionStatus, FlywheelStatsCriterionValue, FlywheelStatsCriterionValueObject, FlywheelStatsTrend, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugStatus, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GetWorkspaceDetailRpc, GlobalContextLayerRecord, GlobalContextLayerTarget, Harness, HarnessBehavior, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessName, HarnessReadinessKind, HarnessSessionIdSource, HarnessTranscriptKind, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INITIAL_READ_MODEL_STATE, IssueId, IssuePipelineMembership, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, LegacySystemHealthSummary, LegacyWebhookRelaySummary, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, MergeStatusValue, ModelOrigin, ModelOriginEntry, OHMYPI_BEHAVIOR, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PanRpcError, PanRpcGroup, PendingTurn, PipelineBucket, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStatusChangedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectSessionTree, ProposedPlan, RagDecision, RagDecisionSource, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, ReleaseStatusValue, ReplayEventsRpc, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResolvedChannelPermissionDecision, ResourceStats, ResourcesUpdatedEvent, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewStatusChangedEvent, ReviewStatusSnapshot, ReviewStatusValue, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RuntimeName, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, SearchConversationsRpc, SendTerminalInputRpc, SequenceNumber, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, StartAgentRpc, StartPlanningRpc, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeFlywheelStatusRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, TestStatusValue, ThinkingState, TurnDiffFileChange, TurnDiffSummary, UatStatusValue, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, VerificationStatusValue, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceDetail, WorkspaceWipeStartedEvent, applyEvent, applyEvents, compareIssueIds, decodeFlywheelStats, encodeFlywheelStats, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, isChannelReplyKind, isTerminalTurnDiffSummaryStatus, normalizeChannelReplyPayload, omitTurnDiffSummariesForAgent, projectLegacySystemHealthSummary, syncSnapshot, trimMemoryObservations, trimTurnDiffSummaries };
15798
+ //#region src/telemetry.d.ts
15799
+ declare const TELEMETRY_EVENT_NAMES: readonly ["dashboard_tab_viewed", "agent_spawned", "project_created", "issue_merged", "force_merge_triggered", "issue_closed_out", "bulk_close_out_initiated", "auto_merge_toggled", "conversation_forked", "plan_approved", "plan_changes_requested", "agent_question_answered", "server_boot", "cli_command_run", "pipeline_stage_changed"];
15800
+ type TelemetryEventName = typeof TELEMETRY_EVENT_NAMES[number];
15801
+ declare const TELEMETRY_CLI_VERBS: readonly ["abort", "approve", "backlog", "backup", "clean", "context", "destroy", "dev", "diff", "doctor", "done", "down", "edit", "finalize", "fork", "handoff", "health", "init", "issues", "kill", "list", "migrate", "mode", "open", "pause", "pending", "plan", "project", "projects", "recover", "reload", "reopen", "request", "reset", "restart", "restore", "resume", "review", "scope", "serve", "show", "skills", "spawn-reviewer", "staffing", "start", "status", "strike", "sync", "sync-main", "tell", "unarchive-conversation", "unpause", "untroubled", "up", "update", "validate", "wipe", "write-sequence", "other"];
15802
+ declare const TELEMETRY_PROPERTY_DOMAINS: {
15803
+ readonly agent_spawn_mode: readonly ["spawn-and-send", "spawn-work-and-send"];
15804
+ readonly answer_type: readonly ["custom", "selection"];
15805
+ readonly auto_merge_variant: readonly ["segmented", "badge"];
15806
+ readonly boolean: readonly [false, true];
15807
+ readonly cli_verb: readonly ["abort", "approve", "backlog", "backup", "clean", "context", "destroy", "dev", "diff", "doctor", "done", "down", "edit", "finalize", "fork", "handoff", "health", "init", "issues", "kill", "list", "migrate", "mode", "open", "pause", "pending", "plan", "project", "projects", "recover", "reload", "reopen", "request", "reset", "restart", "restore", "resume", "review", "scope", "serve", "show", "skills", "spawn-reviewer", "staffing", "start", "status", "strike", "sync", "sync-main", "tell", "unarchive-conversation", "unpause", "untroubled", "up", "update", "validate", "wipe", "write-sequence", "other"];
15808
+ readonly close_out_variant: readonly ["card", "inspector"];
15809
+ readonly count_bucket: readonly ["0", "1-2", "3-5", "6-10", "11+"];
15810
+ readonly dashboard_tab: readonly ["home", "pipeline", "kanban", "command-deck", "agents", "flywheel", "orders", "backlog", "resources", "knowledge", "skills", "context", "health", "activity", "metrics", "costs", "autopreso", "settings", "god-view", "deacon", "sessions", "awaiting-merge"];
15811
+ readonly decision_subject: readonly ["agent", "conversation"];
15812
+ readonly duration_bucket: readonly ["under_100ms", "100ms-999ms", "1s-9s", "10s+"];
15813
+ readonly forge: readonly ["github", "gitlab"];
15814
+ readonly fork_kind: readonly ["summary", "handoff", "plain"];
15815
+ readonly harness: readonly ["claude-code", "ohmypi", "codex", "acp"];
15816
+ readonly merge_kind: readonly ["pipeline"];
15817
+ readonly model_family: readonly ["claude", "gpt", "gemini", "kimi", "minimax", "glm", "mimo", "other"];
15818
+ readonly pipeline_stage: readonly ["work_done", "review_passed", "verification_passed", "merged", "closed_out"];
15819
+ readonly project_mode: readonly ["existing", "new"];
15820
+ };
15821
+ type TelemetryPropertyDomainName = keyof typeof TELEMETRY_PROPERTY_DOMAINS;
15822
+ declare const TELEMETRY_EVENT_CATALOG: {
15823
+ readonly dashboard_tab_viewed: {
15824
+ readonly tab: "dashboard_tab";
15825
+ };
15826
+ readonly agent_spawned: {
15827
+ readonly spawn_mode: "agent_spawn_mode";
15828
+ readonly has_message: "boolean";
15829
+ };
15830
+ readonly project_created: {
15831
+ readonly mode: "project_mode";
15832
+ };
15833
+ readonly issue_merged: {
15834
+ readonly merge_kind: "merge_kind";
15835
+ };
15836
+ readonly force_merge_triggered: {
15837
+ readonly forge: "forge";
15838
+ };
15839
+ readonly issue_closed_out: {
15840
+ readonly variant: "close_out_variant";
15841
+ };
15842
+ readonly bulk_close_out_initiated: {
15843
+ readonly issue_count: "count_bucket";
15844
+ };
15845
+ readonly auto_merge_toggled: {
15846
+ readonly auto_merge: "boolean";
15847
+ readonly variant: "auto_merge_variant";
15848
+ };
15849
+ readonly conversation_forked: {
15850
+ readonly fork_intent: "fork_kind";
15851
+ readonly fork_mode: "fork_kind";
15852
+ readonly fast_summary: "boolean";
15853
+ readonly launch_harness: "harness";
15854
+ };
15855
+ readonly plan_approved: {
15856
+ readonly subject_kind: "decision_subject";
15857
+ };
15858
+ readonly plan_changes_requested: {
15859
+ readonly subject_kind: "decision_subject";
15860
+ };
15861
+ readonly agent_question_answered: {
15862
+ readonly subject_kind: "decision_subject";
15863
+ readonly answer_type: "answer_type";
15864
+ readonly question_count: "count_bucket";
15865
+ };
15866
+ readonly server_boot: {
15867
+ readonly project_count: "count_bucket";
15868
+ readonly active_agent_count: "count_bucket";
15869
+ };
15870
+ readonly cli_command_run: {
15871
+ readonly verb: "cli_verb";
15872
+ readonly ok: "boolean";
15873
+ readonly duration_ms: "duration_bucket";
15874
+ };
15875
+ readonly pipeline_stage_changed: {
15876
+ readonly stage: "pipeline_stage";
15877
+ readonly harness: "harness";
15878
+ readonly model: "model_family";
15879
+ };
15880
+ };
15881
+ type TelemetryPropertyValue<Domain extends TelemetryPropertyDomainName> = (typeof TELEMETRY_PROPERTY_DOMAINS)[Domain][number];
15882
+ type EventProperties<Event extends TelemetryEventName> = { readonly [Property in keyof (typeof TELEMETRY_EVENT_CATALOG)[Event]]: TelemetryPropertyValue<(typeof TELEMETRY_EVENT_CATALOG)[Event][Property] & TelemetryPropertyDomainName> };
15883
+ type TelemetryCountBucket = TelemetryPropertyValue<"count_bucket">;
15884
+ type TelemetryDurationBucket = TelemetryPropertyValue<"duration_bucket">;
15885
+ type TelemetryDecisionSubjectKind = TelemetryPropertyValue<"decision_subject">;
15886
+ type TelemetryModelFamily = TelemetryPropertyValue<"model_family">;
15887
+ type TelemetryCliVerb = TelemetryPropertyValue<"cli_verb">;
15888
+ type TelemetryDashboardTab = TelemetryPropertyValue<"dashboard_tab">;
15889
+ type DashboardTabViewedProperties = EventProperties<"dashboard_tab_viewed">;
15890
+ type AgentSpawnedProperties = EventProperties<"agent_spawned">;
15891
+ type ProjectCreatedProperties = EventProperties<"project_created">;
15892
+ type IssueMergedProperties = EventProperties<"issue_merged">;
15893
+ type ForceMergeTriggeredProperties = EventProperties<"force_merge_triggered">;
15894
+ type IssueClosedOutProperties = EventProperties<"issue_closed_out">;
15895
+ type BulkCloseOutInitiatedProperties = EventProperties<"bulk_close_out_initiated">;
15896
+ type AutoMergeToggledProperties = EventProperties<"auto_merge_toggled">;
15897
+ type ConversationForkedProperties = EventProperties<"conversation_forked">;
15898
+ type PlanApprovedProperties = EventProperties<"plan_approved">;
15899
+ type PlanChangesRequestedProperties = EventProperties<"plan_changes_requested">;
15900
+ type AgentQuestionAnsweredProperties = EventProperties<"agent_question_answered">;
15901
+ type ServerBootProperties = EventProperties<"server_boot">;
15902
+ type CliCommandRunProperties = EventProperties<"cli_command_run">;
15903
+ type PipelineStageChangedProperties = EventProperties<"pipeline_stage_changed">;
15904
+ type TelemetryEventProperties = { readonly [Event in TelemetryEventName]: EventProperties<Event> };
15905
+ type TelemetryPropertiesFor<Event extends TelemetryEventName> = TelemetryEventProperties[Event];
15906
+ //#endregion
15907
+ //#region src/composer-commands.generated.d.ts
15908
+ declare const COMPOSER_COMMAND_MANIFEST: ComposerCommandManifestEntry[];
15909
+ declare const COMPOSER_COMMAND_INSERT_OVERRIDES: Readonly<Record<string, string>>;
15910
+ declare const COMPOSER_COMMAND_VARIANTS: readonly [{
15911
+ readonly id: "pan-show-cv";
15912
+ readonly path: readonly ["show"];
15913
+ readonly display: "/pan show --cv";
15914
+ readonly description: "Show agent work history (CV)";
15915
+ readonly insert: "/pan show --cv";
15916
+ readonly category: "Observation";
15917
+ }, {
15918
+ readonly id: "pan-show-context";
15919
+ readonly path: readonly ["show"];
15920
+ readonly display: "/pan show --context";
15921
+ readonly description: "Show context engineering state";
15922
+ readonly insert: "/pan show --context";
15923
+ readonly category: "Observation";
15924
+ }, {
15925
+ readonly id: "pan-show-health";
15926
+ readonly path: readonly ["show"];
15927
+ readonly display: "/pan show --health";
15928
+ readonly description: "Show health + heartbeat status";
15929
+ readonly insert: "/pan show --health";
15930
+ readonly category: "Observation";
15931
+ }, {
15932
+ readonly id: "pan-plan-auto-start";
15933
+ readonly path: readonly ["plan"];
15934
+ readonly display: "/pan plan --auto --auto-start";
15935
+ readonly description: "Auto-plan the issue, then auto-start the work agent";
15936
+ readonly insert: "/pan plan --auto --auto-start ";
15937
+ readonly category: "Lifecycle";
15938
+ }, {
15939
+ readonly id: "pan-review-reset-session";
15940
+ readonly path: readonly ["review", "reset"];
15941
+ readonly display: "/pan review reset --session";
15942
+ readonly description: "Reset review and clear saved Claude session";
15943
+ readonly insert: "/pan review reset --session";
15944
+ readonly category: "Review";
15945
+ }, {
15946
+ readonly id: "pan-fork-plain";
15947
+ readonly path: readonly ["fork"];
15948
+ readonly display: "/pan fork --plain";
15949
+ readonly description: "Plain fork — copy raw history, skip summary";
15950
+ readonly insert: "/pan fork --plain";
15951
+ readonly category: "Conversation";
15952
+ }, {
15953
+ readonly id: "pan-handoff-model";
15954
+ readonly path: readonly ["handoff"];
15955
+ readonly display: "/pan handoff --model";
15956
+ readonly description: "Model for the new conversation";
15957
+ readonly insert: "/pan handoff --model ";
15958
+ readonly category: "Conversation";
15959
+ }, {
15960
+ readonly id: "pan-handoff-harness";
15961
+ readonly path: readonly ["handoff"];
15962
+ readonly display: "/pan handoff --harness";
15963
+ readonly description: "Harness for the new conversation (claude-code|pi)";
15964
+ readonly insert: "/pan handoff --harness ";
15965
+ readonly category: "Conversation";
15966
+ }, {
15967
+ readonly id: "pan-handoff-cwd";
15968
+ readonly path: readonly ["handoff"];
15969
+ readonly display: "/pan handoff --cwd";
15970
+ readonly description: "Working directory for the new conversation";
15971
+ readonly insert: "/pan handoff --cwd ";
15972
+ readonly category: "Conversation";
15973
+ }];
15974
+ //#endregion
15975
+ //#region src/composer-commands.d.ts
15976
+ interface ComposerCommandArgument {
15977
+ readonly name: string;
15978
+ readonly required: boolean;
15979
+ readonly variadic: boolean;
15980
+ }
15981
+ interface ComposerCommandOption {
15982
+ readonly flags: string;
15983
+ readonly description: string;
15984
+ readonly required: boolean;
15985
+ readonly valueHint: string | null;
15986
+ }
15987
+ interface ComposerCommandManifestEntry {
15988
+ readonly id: string;
15989
+ readonly path: readonly string[];
15990
+ readonly display: string;
15991
+ readonly description: string;
15992
+ readonly args: readonly ComposerCommandArgument[];
15993
+ readonly options: readonly ComposerCommandOption[];
15994
+ readonly aliases: readonly string[];
15995
+ readonly category: string;
15996
+ }
15997
+ type ComposerExecutionMode = "captured" | "detached" | "ui" | "terminal-only";
15998
+ type ComposerSafety = "safe" | "dialog" | "destructive";
15999
+ interface ComposerCommandPolicy {
16000
+ readonly mode: ComposerExecutionMode;
16001
+ readonly safety: ComposerSafety;
16002
+ readonly confirmationText?: string;
16003
+ readonly typedConfirmation?: string;
16004
+ readonly uiAction?: "handoff" | "fork";
16005
+ }
16006
+ type ComposerCommandResult = {
16007
+ readonly kind: "captured";
16008
+ readonly status: "completed" | "failed";
16009
+ readonly command: string;
16010
+ readonly output: string;
16011
+ readonly truncated: boolean;
16012
+ } | {
16013
+ readonly kind: "activity";
16014
+ readonly status: "accepted";
16015
+ readonly command: string;
16016
+ readonly activityId: string;
16017
+ readonly message: string;
16018
+ } | {
16019
+ readonly kind: "ui";
16020
+ readonly status: "requires_ui";
16021
+ readonly action: "handoff" | "fork";
16022
+ readonly args: Readonly<Record<string, string>>;
16023
+ } | {
16024
+ readonly kind: "confirmation";
16025
+ readonly status: "confirmation_required";
16026
+ readonly nonce: string;
16027
+ readonly consequence: string;
16028
+ readonly typedText?: string;
16029
+ } | {
16030
+ readonly kind: "terminal-only";
16031
+ readonly status: "rejected";
16032
+ readonly message: string;
16033
+ };
16034
+ //#endregion
16035
+ export { ACP_BEHAVIOR, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, 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, AutoMergeToggledProperties, BeadsFreshnessChangedEvent, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CODEX_BEHAVIOR, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, CompactBoundary, ComposerCommandArgument, ComposerCommandManifestEntry, ComposerCommandOption, ComposerCommandPolicy, ComposerCommandResult, ComposerExecutionMode, ComposerSafety, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationForkedProperties, ConversationPermissionChangedEvent, ConversationResponse, ConversationTitleChangedEvent, CostEventRecordedEvent, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardLifecycleState, DashboardSnapshot, DashboardTabViewedProperties, DeepWipeRpc, DeployStalenessSnapshot, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EditorEntry, EditorId, EditorIdSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, ExtractionProviderConfig, ExtractionProviderTarget, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FlywheelAgent, FlywheelAgentStatus, FlywheelEffort, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelOrchestrator, FlywheelOrders, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelRunId, FlywheelScope, FlywheelScopeValue, FlywheelStats, FlywheelStatsCriteria, FlywheelStatsCriterion, FlywheelStatsCriterionStatus, FlywheelStatsCriterionValue, FlywheelStatsCriterionValueObject, FlywheelStatsTrend, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugStatus, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, ForceMergeTriggeredProperties, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GetWorkspaceDetailRpc, GlobalContextLayerRecord, GlobalContextLayerTarget, Harness, HarnessBehavior, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessTranscriptKind, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INITIAL_READ_MODEL_STATE, IssueClosedOutProperties, IssueId, IssueMergedProperties, IssuePipelineMembership, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, 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, MembershipUnavailableReason, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, MergeStatusValue, ModelOrigin, ModelOriginEntry, OHMYPI_BEHAVIOR, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PanRpcError, PanRpcGroup, PendingTurn, PipelineBucket, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineStatusChangedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlanApprovedProperties, PlanChangesRequestedProperties, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectCreatedProperties, ProjectSessionTree, ProposedPlan, RagDecision, RagDecisionSource, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, ReleaseStatusValue, ReplayEventsRpc, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResolvedChannelPermissionDecision, ResourceStats, ResourcesUpdatedEvent, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewCycleEntry, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewStatusChangedEvent, ReviewStatusSnapshot, ReviewStatusValue, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RuntimeName, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, SearchConversationsRpc, SendTerminalInputRpc, SequenceNumber, ServerBootProperties, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, StartAgentRpc, StartPlanningRpc, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeFlywheelStatusRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TelemetryCliVerb, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, TestStatusValue, ThinkingState, TurnDiffFileChange, TurnDiffSummary, UatStatusValue, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, VerificationStatusValue, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceDetail, WorkspaceWipeStartedEvent, applyEvent, applyEvents, compareIssueIds, decodeFlywheelStats, encodeFlywheelStats, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, isChannelReplyKind, isTerminalTurnDiffSummaryStatus, normalizeChannelReplyPayload, omitTurnDiffSummariesForAgent, projectLegacySystemHealthSummary, syncSnapshot, trimMemoryObservations, trimTurnDiffSummaries };
15161
16036
  //# sourceMappingURL=index.d.ts.map