@overdeck/contracts 0.62.1 → 0.64.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
@@ -47,7 +47,7 @@ declare const Role: Schema.Literals<readonly ["plan", "work", "review", "test",
47
47
  type Role = typeof Role.Type;
48
48
  declare const AgentResolution: Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>;
49
49
  type AgentResolution = typeof AgentResolution.Type;
50
- type Harness = 'claude-code' | 'ohmypi' | 'codex' | 'acp' | 'kimi-code' | 'opencode' | 'muse';
50
+ type Harness = 'claude-code' | 'ohmypi' | 'codex' | 'acp' | 'kimi-code' | 'opencode' | 'muse' | 'prime-agent';
51
51
  declare const KNOWN_HARNESSES: ReadonlySet<string>;
52
52
  /**
53
53
  * Normalize a snapshot's runtime field to a known Harness value.
@@ -108,6 +108,7 @@ declare const AgentRuntimeSnapshot: Schema.Struct<{
108
108
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
109
109
  readonly lastActivity: Schema.String;
110
110
  readonly currentTool: Schema.optional<Schema.String>;
111
+ readonly currentToolDescription: Schema.optional<Schema.String>;
111
112
  readonly thinking: Schema.optional<Schema.Struct<{
112
113
  readonly since: Schema.String;
113
114
  readonly lastToolAt: Schema.String;
@@ -150,6 +151,14 @@ declare const ChannelPermissionRequestSnapshot: Schema.Struct<{
150
151
  readonly createdAt: Schema.String;
151
152
  }>;
152
153
  type ChannelPermissionRequestSnapshot = typeof ChannelPermissionRequestSnapshot.Type;
154
+ /** PAN-4371 — advisory Jev reading of why an idle agent ended its turn. kind is a string (append-only store). */
155
+ declare const TurnEndAssessment: Schema.Struct<{
156
+ readonly kind: Schema.String;
157
+ readonly confidence: Schema.Number;
158
+ readonly needsAnswer: Schema.Boolean;
159
+ readonly model: Schema.String;
160
+ }>;
161
+ type TurnEndAssessment = typeof TurnEndAssessment.Type;
153
162
  declare const AgentSnapshot: Schema.Struct<{
154
163
  readonly id: Schema.String;
155
164
  readonly issueId: Schema.String;
@@ -211,6 +220,12 @@ declare const AgentSnapshot: Schema.Struct<{
211
220
  }>>;
212
221
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
213
222
  readonly resolutionCount: Schema.optional<Schema.Number>;
223
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
224
+ readonly kind: Schema.String;
225
+ readonly confidence: Schema.Number;
226
+ readonly needsAnswer: Schema.Boolean;
227
+ readonly model: Schema.String;
228
+ }>>;
214
229
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
215
230
  }>;
216
231
  type AgentSnapshot = typeof AgentSnapshot.Type;
@@ -440,19 +455,26 @@ declare const DashboardSnapshot: Schema.Struct<{
440
455
  }>>;
441
456
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
442
457
  readonly resolutionCount: Schema.optional<Schema.Number>;
458
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
459
+ readonly kind: Schema.String;
460
+ readonly confidence: Schema.Number;
461
+ readonly needsAnswer: Schema.Boolean;
462
+ readonly model: Schema.String;
463
+ }>>;
443
464
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
444
465
  }>>;
445
466
  readonly specialists: Schema.$Array<Schema.Unknown>; /** PAN-3917 FR-6: the derived pipeline state of every known issue. */
446
467
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
447
468
  readonly issueId: Schema.String;
448
469
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
449
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
470
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
450
471
  readonly pr: Schema.optional<Schema.Struct<{
451
472
  readonly url: Schema.String;
452
473
  readonly number: Schema.Number;
453
474
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
454
475
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
455
476
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
477
+ readonly merged: Schema.optional<Schema.Boolean>;
456
478
  }>>;
457
479
  readonly branch: Schema.optional<Schema.Struct<{
458
480
  readonly name: Schema.String;
@@ -460,6 +482,13 @@ declare const DashboardSnapshot: Schema.Struct<{
460
482
  readonly pushed: Schema.Boolean;
461
483
  }>>;
462
484
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
485
+ readonly workStart: Schema.optional<Schema.Struct<{
486
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
487
+ readonly at: Schema.String;
488
+ readonly error: Schema.optional<Schema.String>;
489
+ readonly nextRetryAt: Schema.optional<Schema.String>;
490
+ readonly held: Schema.optional<Schema.Literal<true>>;
491
+ }>>;
463
492
  }>>; /** PAN-3917 FR-12: every live agent pane the terminal backend reports. */
464
493
  readonly backendPanes: Schema.$Array<Schema.Struct<{
465
494
  readonly id: Schema.String;
@@ -482,6 +511,7 @@ declare const DashboardSnapshot: Schema.Struct<{
482
511
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
483
512
  readonly lastActivity: Schema.String;
484
513
  readonly currentTool: Schema.optional<Schema.String>;
514
+ readonly currentToolDescription: Schema.optional<Schema.String>;
485
515
  readonly thinking: Schema.optional<Schema.Struct<{
486
516
  readonly since: Schema.String;
487
517
  readonly lastToolAt: Schema.String;
@@ -584,6 +614,44 @@ declare const DashboardSnapshot: Schema.Struct<{
584
614
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
585
615
  readonly at: Schema.String;
586
616
  }>>;
617
+ }>>; /** PAN-4264 — GitHub API quota use, samples and pauses; derived, never stored. */
618
+ readonly githubQuota: Schema.optional<Schema.Struct<{
619
+ readonly generatedAt: Schema.String;
620
+ readonly login: Schema.NullOr<Schema.String>;
621
+ readonly callers: Schema.$Array<Schema.Struct<{
622
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
623
+ readonly graphql: Schema.Struct<{
624
+ readonly points: Schema.Number;
625
+ readonly calls: Schema.Number;
626
+ }>;
627
+ readonly rest: Schema.Struct<{
628
+ readonly points: Schema.Number;
629
+ readonly calls: Schema.Number;
630
+ }>;
631
+ readonly estimated: Schema.Boolean;
632
+ }>>;
633
+ readonly samples: Schema.$Array<Schema.Struct<{
634
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
635
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
636
+ readonly ts: Schema.String;
637
+ readonly remaining: Schema.Number;
638
+ readonly limit: Schema.Number;
639
+ readonly resetAt: Schema.optional<Schema.String>;
640
+ }>>;
641
+ readonly pauses: Schema.$Array<Schema.Struct<{
642
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
643
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
644
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
645
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
646
+ readonly since: Schema.String;
647
+ readonly until: Schema.String;
648
+ }>>;
649
+ readonly ownUsageLow: Schema.Boolean;
650
+ readonly unattributed: Schema.Number;
651
+ readonly refusals: Schema.Struct<{
652
+ readonly primary: Schema.Number;
653
+ readonly secondary: Schema.Number;
654
+ }>;
587
655
  }>>; /** PAN-3751 — in-flight deploys keyed by project key. */
588
656
  readonly deployByProjectKey: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
589
657
  readonly projectKey: Schema.String;
@@ -1093,6 +1161,58 @@ declare const RestartGateChangedEvent: Schema.Struct<{
1093
1161
  }>;
1094
1162
  }>;
1095
1163
  type RestartGateChangedEvent = typeof RestartGateChangedEvent.Type;
1164
+ /**
1165
+ * The GitHub API quota view changed (PAN-4264).
1166
+ *
1167
+ * The payload is the complete snapshot, so the reducer is a plain replace.
1168
+ * The server derives it from the quota ledger and pause file under
1169
+ * `~/.overdeck/github-quota/` and emits it in-memory only, like
1170
+ * `restart_gate.changed`: it is never persisted and never replayed at boot.
1171
+ */
1172
+ declare const GitHubQuotaChangedEvent: Schema.Struct<{
1173
+ readonly type: Schema.Literal<"github_quota.changed">;
1174
+ readonly sequence: Schema.Number;
1175
+ readonly timestamp: Schema.String;
1176
+ readonly payload: Schema.Struct<{
1177
+ readonly generatedAt: Schema.String;
1178
+ readonly login: Schema.NullOr<Schema.String>;
1179
+ readonly callers: Schema.$Array<Schema.Struct<{
1180
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
1181
+ readonly graphql: Schema.Struct<{
1182
+ readonly points: Schema.Number;
1183
+ readonly calls: Schema.Number;
1184
+ }>;
1185
+ readonly rest: Schema.Struct<{
1186
+ readonly points: Schema.Number;
1187
+ readonly calls: Schema.Number;
1188
+ }>;
1189
+ readonly estimated: Schema.Boolean;
1190
+ }>>;
1191
+ readonly samples: Schema.$Array<Schema.Struct<{
1192
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
1193
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
1194
+ readonly ts: Schema.String;
1195
+ readonly remaining: Schema.Number;
1196
+ readonly limit: Schema.Number;
1197
+ readonly resetAt: Schema.optional<Schema.String>;
1198
+ }>>;
1199
+ readonly pauses: Schema.$Array<Schema.Struct<{
1200
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
1201
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
1202
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
1203
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
1204
+ readonly since: Schema.String;
1205
+ readonly until: Schema.String;
1206
+ }>>;
1207
+ readonly ownUsageLow: Schema.Boolean;
1208
+ readonly unattributed: Schema.Number;
1209
+ readonly refusals: Schema.Struct<{
1210
+ readonly primary: Schema.Number;
1211
+ readonly secondary: Schema.Number;
1212
+ }>;
1213
+ }>;
1214
+ }>;
1215
+ type GitHubQuotaChangedEvent = typeof GitHubQuotaChangedEvent.Type;
1096
1216
  /**
1097
1217
  * The set of in-flight project deploys changed (PAN-3751).
1098
1218
  *
@@ -1185,6 +1305,12 @@ declare const AgentStartedEvent: Schema.Struct<{
1185
1305
  }>>;
1186
1306
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
1187
1307
  readonly resolutionCount: Schema.optional<Schema.Number>;
1308
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
1309
+ readonly kind: Schema.String;
1310
+ readonly confidence: Schema.Number;
1311
+ readonly needsAnswer: Schema.Boolean;
1312
+ readonly model: Schema.String;
1313
+ }>>;
1188
1314
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
1189
1315
  }>;
1190
1316
  }>;
@@ -1363,6 +1489,12 @@ declare const AgentEnrichmentChangedEvent: Schema.Struct<{
1363
1489
  }>>;
1364
1490
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
1365
1491
  readonly resolutionCount: Schema.optional<Schema.Number>;
1492
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
1493
+ readonly kind: Schema.String;
1494
+ readonly confidence: Schema.Number;
1495
+ readonly needsAnswer: Schema.Boolean;
1496
+ readonly model: Schema.String;
1497
+ }>>;
1366
1498
  }>;
1367
1499
  }>;
1368
1500
  type AgentEnrichmentChangedEvent = typeof AgentEnrichmentChangedEvent.Type;
@@ -1432,6 +1564,12 @@ declare const AgentCreatedEvent: Schema.Struct<{
1432
1564
  }>>;
1433
1565
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
1434
1566
  readonly resolutionCount: Schema.optional<Schema.Number>;
1567
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
1568
+ readonly kind: Schema.String;
1569
+ readonly confidence: Schema.Number;
1570
+ readonly needsAnswer: Schema.Boolean;
1571
+ readonly model: Schema.String;
1572
+ }>>;
1435
1573
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
1436
1574
  }>;
1437
1575
  }>;
@@ -1445,6 +1583,7 @@ declare const AgentActivityChangedEvent: Schema.Struct<{
1445
1583
  readonly agentId: Schema.String;
1446
1584
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
1447
1585
  readonly currentTool: Schema.optional<Schema.String>;
1586
+ readonly toolDescription: Schema.optional<Schema.String>;
1448
1587
  readonly hookName: Schema.optional<Schema.String>;
1449
1588
  }>;
1450
1589
  }>;
@@ -1619,6 +1758,7 @@ declare const AgentStateRestoredEvent: Schema.Struct<{
1619
1758
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
1620
1759
  readonly lastActivity: Schema.String;
1621
1760
  readonly currentTool: Schema.optional<Schema.String>;
1761
+ readonly currentToolDescription: Schema.optional<Schema.String>;
1622
1762
  readonly thinking: Schema.optional<Schema.Struct<{
1623
1763
  readonly since: Schema.String;
1624
1764
  readonly lastToolAt: Schema.String;
@@ -1767,13 +1907,14 @@ declare const IssueStateChangedEvent: Schema.Struct<{
1767
1907
  readonly issueState: Schema.Struct<{
1768
1908
  readonly issueId: Schema.String;
1769
1909
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
1770
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
1910
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
1771
1911
  readonly pr: Schema.optional<Schema.Struct<{
1772
1912
  readonly url: Schema.String;
1773
1913
  readonly number: Schema.Number;
1774
1914
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
1775
1915
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
1776
1916
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
1917
+ readonly merged: Schema.optional<Schema.Boolean>;
1777
1918
  }>>;
1778
1919
  readonly branch: Schema.optional<Schema.Struct<{
1779
1920
  readonly name: Schema.String;
@@ -1781,6 +1922,13 @@ declare const IssueStateChangedEvent: Schema.Struct<{
1781
1922
  readonly pushed: Schema.Boolean;
1782
1923
  }>>;
1783
1924
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
1925
+ readonly workStart: Schema.optional<Schema.Struct<{
1926
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
1927
+ readonly at: Schema.String;
1928
+ readonly error: Schema.optional<Schema.String>;
1929
+ readonly nextRetryAt: Schema.optional<Schema.String>;
1930
+ readonly held: Schema.optional<Schema.Literal<true>>;
1931
+ }>>;
1784
1932
  }>;
1785
1933
  }>;
1786
1934
  }>;
@@ -2861,6 +3009,48 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2861
3009
  readonly at: Schema.String;
2862
3010
  }>>;
2863
3011
  }>;
3012
+ }>, Schema.Struct<{
3013
+ readonly type: Schema.Literal<"github_quota.changed">;
3014
+ readonly sequence: Schema.Number;
3015
+ readonly timestamp: Schema.String;
3016
+ readonly payload: Schema.Struct<{
3017
+ readonly generatedAt: Schema.String;
3018
+ readonly login: Schema.NullOr<Schema.String>;
3019
+ readonly callers: Schema.$Array<Schema.Struct<{
3020
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
3021
+ readonly graphql: Schema.Struct<{
3022
+ readonly points: Schema.Number;
3023
+ readonly calls: Schema.Number;
3024
+ }>;
3025
+ readonly rest: Schema.Struct<{
3026
+ readonly points: Schema.Number;
3027
+ readonly calls: Schema.Number;
3028
+ }>;
3029
+ readonly estimated: Schema.Boolean;
3030
+ }>>;
3031
+ readonly samples: Schema.$Array<Schema.Struct<{
3032
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
3033
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
3034
+ readonly ts: Schema.String;
3035
+ readonly remaining: Schema.Number;
3036
+ readonly limit: Schema.Number;
3037
+ readonly resetAt: Schema.optional<Schema.String>;
3038
+ }>>;
3039
+ readonly pauses: Schema.$Array<Schema.Struct<{
3040
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
3041
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
3042
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
3043
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
3044
+ readonly since: Schema.String;
3045
+ readonly until: Schema.String;
3046
+ }>>;
3047
+ readonly ownUsageLow: Schema.Boolean;
3048
+ readonly unattributed: Schema.Number;
3049
+ readonly refusals: Schema.Struct<{
3050
+ readonly primary: Schema.Number;
3051
+ readonly secondary: Schema.Number;
3052
+ }>;
3053
+ }>;
2864
3054
  }>, Schema.Struct<{
2865
3055
  readonly type: Schema.Literal<"project.deploy_changed">;
2866
3056
  readonly sequence: Schema.Number;
@@ -2942,6 +3132,12 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2942
3132
  }>>;
2943
3133
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
2944
3134
  readonly resolutionCount: Schema.optional<Schema.Number>;
3135
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
3136
+ readonly kind: Schema.String;
3137
+ readonly confidence: Schema.Number;
3138
+ readonly needsAnswer: Schema.Boolean;
3139
+ readonly model: Schema.String;
3140
+ }>>;
2945
3141
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
2946
3142
  }>;
2947
3143
  }>;
@@ -2980,6 +3176,12 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
2980
3176
  }>>;
2981
3177
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
2982
3178
  readonly resolutionCount: Schema.optional<Schema.Number>;
3179
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
3180
+ readonly kind: Schema.String;
3181
+ readonly confidence: Schema.Number;
3182
+ readonly needsAnswer: Schema.Boolean;
3183
+ readonly model: Schema.String;
3184
+ }>>;
2983
3185
  }>;
2984
3186
  }>, Schema.Struct<{
2985
3187
  readonly type: Schema.Literal<"agent.started">;
@@ -3046,6 +3248,12 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3046
3248
  }>>;
3047
3249
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
3048
3250
  readonly resolutionCount: Schema.optional<Schema.Number>;
3251
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
3252
+ readonly kind: Schema.String;
3253
+ readonly confidence: Schema.Number;
3254
+ readonly needsAnswer: Schema.Boolean;
3255
+ readonly model: Schema.String;
3256
+ }>>;
3049
3257
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
3050
3258
  }>;
3051
3259
  }>;
@@ -3171,6 +3379,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3171
3379
  readonly agentId: Schema.String;
3172
3380
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
3173
3381
  readonly currentTool: Schema.optional<Schema.String>;
3382
+ readonly toolDescription: Schema.optional<Schema.String>;
3174
3383
  readonly hookName: Schema.optional<Schema.String>;
3175
3384
  }>;
3176
3385
  }>, Schema.Struct<{
@@ -3311,6 +3520,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3311
3520
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
3312
3521
  readonly lastActivity: Schema.String;
3313
3522
  readonly currentTool: Schema.optional<Schema.String>;
3523
+ readonly currentToolDescription: Schema.optional<Schema.String>;
3314
3524
  readonly thinking: Schema.optional<Schema.Struct<{
3315
3525
  readonly since: Schema.String;
3316
3526
  readonly lastToolAt: Schema.String;
@@ -3429,13 +3639,14 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3429
3639
  readonly issueState: Schema.Struct<{
3430
3640
  readonly issueId: Schema.String;
3431
3641
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
3432
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
3642
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
3433
3643
  readonly pr: Schema.optional<Schema.Struct<{
3434
3644
  readonly url: Schema.String;
3435
3645
  readonly number: Schema.Number;
3436
3646
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
3437
3647
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
3438
3648
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
3649
+ readonly merged: Schema.optional<Schema.Boolean>;
3439
3650
  }>>;
3440
3651
  readonly branch: Schema.optional<Schema.Struct<{
3441
3652
  readonly name: Schema.String;
@@ -3443,6 +3654,13 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3443
3654
  readonly pushed: Schema.Boolean;
3444
3655
  }>>;
3445
3656
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
3657
+ readonly workStart: Schema.optional<Schema.Struct<{
3658
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
3659
+ readonly at: Schema.String;
3660
+ readonly error: Schema.optional<Schema.String>;
3661
+ readonly nextRetryAt: Schema.optional<Schema.String>;
3662
+ readonly held: Schema.optional<Schema.Literal<true>>;
3663
+ }>>;
3446
3664
  }>;
3447
3665
  }>;
3448
3666
  }>, Schema.Struct<{
@@ -4505,13 +4723,26 @@ declare const WorkLogEntry: Schema.Struct<{
4505
4723
  readonly sequence: Schema.optional<Schema.Number>;
4506
4724
  }>;
4507
4725
  type WorkLogEntry = typeof WorkLogEntry.Type;
4726
+ /** A human-origin message read from a subagent's own sidechain transcript (PAN-4247). */
4727
+ declare const SubagentHumanInput: Schema.Struct<{
4728
+ readonly id: Schema.String;
4729
+ readonly text: Schema.String;
4730
+ readonly createdAt: Schema.String;
4731
+ }>;
4732
+ type SubagentHumanInput = typeof SubagentHumanInput.Type;
4508
4733
  declare const SubagentSummary: Schema.Struct<{
4509
4734
  readonly agentId: Schema.String;
4510
4735
  readonly agentType: Schema.String;
4511
4736
  readonly description: Schema.String;
4512
4737
  readonly toolUseId: Schema.String;
4513
4738
  readonly spawnDepth: Schema.Number;
4514
- readonly status: Schema.Literals<readonly ["running", "done"]>;
4739
+ readonly status: Schema.Literals<readonly ["running", "done"]>; /** True for a background subagent, launched with `requestShape: "background"` (PAN-4247). */
4740
+ readonly background: Schema.optional<Schema.Boolean>; /** Recent human-origin sidechain inputs, most useful when a message routed into this subagent instead of the main conversation (PAN-4247). */
4741
+ readonly humanInputs: Schema.optional<Schema.$Array<Schema.Struct<{
4742
+ readonly id: Schema.String;
4743
+ readonly text: Schema.String;
4744
+ readonly createdAt: Schema.String;
4745
+ }>>>;
4515
4746
  }>;
4516
4747
  type SubagentSummary = typeof SubagentSummary.Type;
4517
4748
  /**
@@ -4584,7 +4815,13 @@ declare const ConversationResponse: Schema.Struct<{
4584
4815
  readonly description: Schema.String;
4585
4816
  readonly toolUseId: Schema.String;
4586
4817
  readonly spawnDepth: Schema.Number;
4587
- readonly status: Schema.Literals<readonly ["running", "done"]>;
4818
+ readonly status: Schema.Literals<readonly ["running", "done"]>; /** True for a background subagent, launched with `requestShape: "background"` (PAN-4247). */
4819
+ readonly background: Schema.optional<Schema.Boolean>; /** Recent human-origin sidechain inputs, most useful when a message routed into this subagent instead of the main conversation (PAN-4247). */
4820
+ readonly humanInputs: Schema.optional<Schema.$Array<Schema.Struct<{
4821
+ readonly id: Schema.String;
4822
+ readonly text: Schema.String;
4823
+ readonly createdAt: Schema.String;
4824
+ }>>>;
4588
4825
  }>>>;
4589
4826
  }>;
4590
4827
  type ConversationResponse = typeof ConversationResponse.Type;
@@ -4660,7 +4897,13 @@ declare const ConversationEvent: Schema.Union<readonly [Schema.Struct<{
4660
4897
  readonly description: Schema.String;
4661
4898
  readonly toolUseId: Schema.String;
4662
4899
  readonly spawnDepth: Schema.Number;
4663
- readonly status: Schema.Literals<readonly ["running", "done"]>;
4900
+ readonly status: Schema.Literals<readonly ["running", "done"]>; /** True for a background subagent, launched with `requestShape: "background"` (PAN-4247). */
4901
+ readonly background: Schema.optional<Schema.Boolean>; /** Recent human-origin sidechain inputs, most useful when a message routed into this subagent instead of the main conversation (PAN-4247). */
4902
+ readonly humanInputs: Schema.optional<Schema.$Array<Schema.Struct<{
4903
+ readonly id: Schema.String;
4904
+ readonly text: Schema.String;
4905
+ readonly createdAt: Schema.String;
4906
+ }>>>;
4664
4907
  }>>;
4665
4908
  }>]>;
4666
4909
  type ConversationEvent = typeof ConversationEvent.Type;
@@ -4744,6 +4987,48 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4744
4987
  readonly at: Schema.String;
4745
4988
  }>>;
4746
4989
  }>;
4990
+ }>, Schema.Struct<{
4991
+ readonly type: Schema.Literal<"github_quota.changed">;
4992
+ readonly sequence: Schema.Number;
4993
+ readonly timestamp: Schema.String;
4994
+ readonly payload: Schema.Struct<{
4995
+ readonly generatedAt: Schema.String;
4996
+ readonly login: Schema.NullOr<Schema.String>;
4997
+ readonly callers: Schema.$Array<Schema.Struct<{
4998
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
4999
+ readonly graphql: Schema.Struct<{
5000
+ readonly points: Schema.Number;
5001
+ readonly calls: Schema.Number;
5002
+ }>;
5003
+ readonly rest: Schema.Struct<{
5004
+ readonly points: Schema.Number;
5005
+ readonly calls: Schema.Number;
5006
+ }>;
5007
+ readonly estimated: Schema.Boolean;
5008
+ }>>;
5009
+ readonly samples: Schema.$Array<Schema.Struct<{
5010
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
5011
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
5012
+ readonly ts: Schema.String;
5013
+ readonly remaining: Schema.Number;
5014
+ readonly limit: Schema.Number;
5015
+ readonly resetAt: Schema.optional<Schema.String>;
5016
+ }>>;
5017
+ readonly pauses: Schema.$Array<Schema.Struct<{
5018
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
5019
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
5020
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
5021
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
5022
+ readonly since: Schema.String;
5023
+ readonly until: Schema.String;
5024
+ }>>;
5025
+ readonly ownUsageLow: Schema.Boolean;
5026
+ readonly unattributed: Schema.Number;
5027
+ readonly refusals: Schema.Struct<{
5028
+ readonly primary: Schema.Number;
5029
+ readonly secondary: Schema.Number;
5030
+ }>;
5031
+ }>;
4747
5032
  }>, Schema.Struct<{
4748
5033
  readonly type: Schema.Literal<"project.deploy_changed">;
4749
5034
  readonly sequence: Schema.Number;
@@ -4825,6 +5110,12 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4825
5110
  }>>;
4826
5111
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
4827
5112
  readonly resolutionCount: Schema.optional<Schema.Number>;
5113
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
5114
+ readonly kind: Schema.String;
5115
+ readonly confidence: Schema.Number;
5116
+ readonly needsAnswer: Schema.Boolean;
5117
+ readonly model: Schema.String;
5118
+ }>>;
4828
5119
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
4829
5120
  }>;
4830
5121
  }>;
@@ -4863,6 +5154,12 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4863
5154
  }>>;
4864
5155
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
4865
5156
  readonly resolutionCount: Schema.optional<Schema.Number>;
5157
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
5158
+ readonly kind: Schema.String;
5159
+ readonly confidence: Schema.Number;
5160
+ readonly needsAnswer: Schema.Boolean;
5161
+ readonly model: Schema.String;
5162
+ }>>;
4866
5163
  }>;
4867
5164
  }>, Schema.Struct<{
4868
5165
  readonly type: Schema.Literal<"agent.started">;
@@ -4929,6 +5226,12 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
4929
5226
  }>>;
4930
5227
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
4931
5228
  readonly resolutionCount: Schema.optional<Schema.Number>;
5229
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
5230
+ readonly kind: Schema.String;
5231
+ readonly confidence: Schema.Number;
5232
+ readonly needsAnswer: Schema.Boolean;
5233
+ readonly model: Schema.String;
5234
+ }>>;
4932
5235
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
4933
5236
  }>;
4934
5237
  }>;
@@ -5054,6 +5357,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5054
5357
  readonly agentId: Schema.String;
5055
5358
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
5056
5359
  readonly currentTool: Schema.optional<Schema.String>;
5360
+ readonly toolDescription: Schema.optional<Schema.String>;
5057
5361
  readonly hookName: Schema.optional<Schema.String>;
5058
5362
  }>;
5059
5363
  }>, Schema.Struct<{
@@ -5194,6 +5498,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5194
5498
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
5195
5499
  readonly lastActivity: Schema.String;
5196
5500
  readonly currentTool: Schema.optional<Schema.String>;
5501
+ readonly currentToolDescription: Schema.optional<Schema.String>;
5197
5502
  readonly thinking: Schema.optional<Schema.Struct<{
5198
5503
  readonly since: Schema.String;
5199
5504
  readonly lastToolAt: Schema.String;
@@ -5312,13 +5617,14 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5312
5617
  readonly issueState: Schema.Struct<{
5313
5618
  readonly issueId: Schema.String;
5314
5619
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
5315
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
5620
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
5316
5621
  readonly pr: Schema.optional<Schema.Struct<{
5317
5622
  readonly url: Schema.String;
5318
5623
  readonly number: Schema.Number;
5319
5624
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
5320
5625
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
5321
5626
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
5627
+ readonly merged: Schema.optional<Schema.Boolean>;
5322
5628
  }>>;
5323
5629
  readonly branch: Schema.optional<Schema.Struct<{
5324
5630
  readonly name: Schema.String;
@@ -5326,6 +5632,13 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5326
5632
  readonly pushed: Schema.Boolean;
5327
5633
  }>>;
5328
5634
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
5635
+ readonly workStart: Schema.optional<Schema.Struct<{
5636
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
5637
+ readonly at: Schema.String;
5638
+ readonly error: Schema.optional<Schema.String>;
5639
+ readonly nextRetryAt: Schema.optional<Schema.String>;
5640
+ readonly held: Schema.optional<Schema.Literal<true>>;
5641
+ }>>;
5329
5642
  }>;
5330
5643
  }>;
5331
5644
  }>, Schema.Struct<{
@@ -6191,6 +6504,48 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6191
6504
  readonly at: Schema.String;
6192
6505
  }>>;
6193
6506
  }>;
6507
+ }>, Schema.Struct<{
6508
+ readonly type: Schema.Literal<"github_quota.changed">;
6509
+ readonly sequence: Schema.Number;
6510
+ readonly timestamp: Schema.String;
6511
+ readonly payload: Schema.Struct<{
6512
+ readonly generatedAt: Schema.String;
6513
+ readonly login: Schema.NullOr<Schema.String>;
6514
+ readonly callers: Schema.$Array<Schema.Struct<{
6515
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
6516
+ readonly graphql: Schema.Struct<{
6517
+ readonly points: Schema.Number;
6518
+ readonly calls: Schema.Number;
6519
+ }>;
6520
+ readonly rest: Schema.Struct<{
6521
+ readonly points: Schema.Number;
6522
+ readonly calls: Schema.Number;
6523
+ }>;
6524
+ readonly estimated: Schema.Boolean;
6525
+ }>>;
6526
+ readonly samples: Schema.$Array<Schema.Struct<{
6527
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
6528
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
6529
+ readonly ts: Schema.String;
6530
+ readonly remaining: Schema.Number;
6531
+ readonly limit: Schema.Number;
6532
+ readonly resetAt: Schema.optional<Schema.String>;
6533
+ }>>;
6534
+ readonly pauses: Schema.$Array<Schema.Struct<{
6535
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
6536
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
6537
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
6538
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
6539
+ readonly since: Schema.String;
6540
+ readonly until: Schema.String;
6541
+ }>>;
6542
+ readonly ownUsageLow: Schema.Boolean;
6543
+ readonly unattributed: Schema.Number;
6544
+ readonly refusals: Schema.Struct<{
6545
+ readonly primary: Schema.Number;
6546
+ readonly secondary: Schema.Number;
6547
+ }>;
6548
+ }>;
6194
6549
  }>, Schema.Struct<{
6195
6550
  readonly type: Schema.Literal<"project.deploy_changed">;
6196
6551
  readonly sequence: Schema.Number;
@@ -6272,6 +6627,12 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6272
6627
  }>>;
6273
6628
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
6274
6629
  readonly resolutionCount: Schema.optional<Schema.Number>;
6630
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
6631
+ readonly kind: Schema.String;
6632
+ readonly confidence: Schema.Number;
6633
+ readonly needsAnswer: Schema.Boolean;
6634
+ readonly model: Schema.String;
6635
+ }>>;
6275
6636
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
6276
6637
  }>;
6277
6638
  }>;
@@ -6310,6 +6671,12 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6310
6671
  }>>;
6311
6672
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
6312
6673
  readonly resolutionCount: Schema.optional<Schema.Number>;
6674
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
6675
+ readonly kind: Schema.String;
6676
+ readonly confidence: Schema.Number;
6677
+ readonly needsAnswer: Schema.Boolean;
6678
+ readonly model: Schema.String;
6679
+ }>>;
6313
6680
  }>;
6314
6681
  }>, Schema.Struct<{
6315
6682
  readonly type: Schema.Literal<"agent.started">;
@@ -6376,6 +6743,12 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6376
6743
  }>>;
6377
6744
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
6378
6745
  readonly resolutionCount: Schema.optional<Schema.Number>;
6746
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
6747
+ readonly kind: Schema.String;
6748
+ readonly confidence: Schema.Number;
6749
+ readonly needsAnswer: Schema.Boolean;
6750
+ readonly model: Schema.String;
6751
+ }>>;
6379
6752
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
6380
6753
  }>;
6381
6754
  }>;
@@ -6501,6 +6874,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6501
6874
  readonly agentId: Schema.String;
6502
6875
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
6503
6876
  readonly currentTool: Schema.optional<Schema.String>;
6877
+ readonly toolDescription: Schema.optional<Schema.String>;
6504
6878
  readonly hookName: Schema.optional<Schema.String>;
6505
6879
  }>;
6506
6880
  }>, Schema.Struct<{
@@ -6641,6 +7015,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6641
7015
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
6642
7016
  readonly lastActivity: Schema.String;
6643
7017
  readonly currentTool: Schema.optional<Schema.String>;
7018
+ readonly currentToolDescription: Schema.optional<Schema.String>;
6644
7019
  readonly thinking: Schema.optional<Schema.Struct<{
6645
7020
  readonly since: Schema.String;
6646
7021
  readonly lastToolAt: Schema.String;
@@ -6759,13 +7134,14 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6759
7134
  readonly issueState: Schema.Struct<{
6760
7135
  readonly issueId: Schema.String;
6761
7136
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
6762
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
7137
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
6763
7138
  readonly pr: Schema.optional<Schema.Struct<{
6764
7139
  readonly url: Schema.String;
6765
7140
  readonly number: Schema.Number;
6766
7141
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
6767
7142
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
6768
7143
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
7144
+ readonly merged: Schema.optional<Schema.Boolean>;
6769
7145
  }>>;
6770
7146
  readonly branch: Schema.optional<Schema.Struct<{
6771
7147
  readonly name: Schema.String;
@@ -6773,6 +7149,13 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6773
7149
  readonly pushed: Schema.Boolean;
6774
7150
  }>>;
6775
7151
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
7152
+ readonly workStart: Schema.optional<Schema.Struct<{
7153
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
7154
+ readonly at: Schema.String;
7155
+ readonly error: Schema.optional<Schema.String>;
7156
+ readonly nextRetryAt: Schema.optional<Schema.String>;
7157
+ readonly held: Schema.optional<Schema.Literal<true>>;
7158
+ }>>;
6776
7159
  }>;
6777
7160
  }>;
6778
7161
  }>, Schema.Struct<{
@@ -7645,19 +8028,26 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
7645
8028
  }>>;
7646
8029
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
7647
8030
  readonly resolutionCount: Schema.optional<Schema.Number>;
8031
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
8032
+ readonly kind: Schema.String;
8033
+ readonly confidence: Schema.Number;
8034
+ readonly needsAnswer: Schema.Boolean;
8035
+ readonly model: Schema.String;
8036
+ }>>;
7648
8037
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
7649
8038
  }>>;
7650
8039
  readonly specialists: Schema.$Array<Schema.Unknown>;
7651
8040
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
7652
8041
  readonly issueId: Schema.String;
7653
8042
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
7654
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
8043
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
7655
8044
  readonly pr: Schema.optional<Schema.Struct<{
7656
8045
  readonly url: Schema.String;
7657
8046
  readonly number: Schema.Number;
7658
8047
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
7659
8048
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
7660
8049
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
8050
+ readonly merged: Schema.optional<Schema.Boolean>;
7661
8051
  }>>;
7662
8052
  readonly branch: Schema.optional<Schema.Struct<{
7663
8053
  readonly name: Schema.String;
@@ -7665,6 +8055,13 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
7665
8055
  readonly pushed: Schema.Boolean;
7666
8056
  }>>;
7667
8057
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
8058
+ readonly workStart: Schema.optional<Schema.Struct<{
8059
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
8060
+ readonly at: Schema.String;
8061
+ readonly error: Schema.optional<Schema.String>;
8062
+ readonly nextRetryAt: Schema.optional<Schema.String>;
8063
+ readonly held: Schema.optional<Schema.Literal<true>>;
8064
+ }>>;
7668
8065
  }>>;
7669
8066
  readonly backendPanes: Schema.$Array<Schema.Struct<{
7670
8067
  readonly id: Schema.String;
@@ -7687,6 +8084,7 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
7687
8084
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
7688
8085
  readonly lastActivity: Schema.String;
7689
8086
  readonly currentTool: Schema.optional<Schema.String>;
8087
+ readonly currentToolDescription: Schema.optional<Schema.String>;
7690
8088
  readonly thinking: Schema.optional<Schema.Struct<{
7691
8089
  readonly since: Schema.String;
7692
8090
  readonly lastToolAt: Schema.String;
@@ -7790,6 +8188,44 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
7790
8188
  readonly at: Schema.String;
7791
8189
  }>>;
7792
8190
  }>>;
8191
+ readonly githubQuota: Schema.optional<Schema.Struct<{
8192
+ readonly generatedAt: Schema.String;
8193
+ readonly login: Schema.NullOr<Schema.String>;
8194
+ readonly callers: Schema.$Array<Schema.Struct<{
8195
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
8196
+ readonly graphql: Schema.Struct<{
8197
+ readonly points: Schema.Number;
8198
+ readonly calls: Schema.Number;
8199
+ }>;
8200
+ readonly rest: Schema.Struct<{
8201
+ readonly points: Schema.Number;
8202
+ readonly calls: Schema.Number;
8203
+ }>;
8204
+ readonly estimated: Schema.Boolean;
8205
+ }>>;
8206
+ readonly samples: Schema.$Array<Schema.Struct<{
8207
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
8208
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
8209
+ readonly ts: Schema.String;
8210
+ readonly remaining: Schema.Number;
8211
+ readonly limit: Schema.Number;
8212
+ readonly resetAt: Schema.optional<Schema.String>;
8213
+ }>>;
8214
+ readonly pauses: Schema.$Array<Schema.Struct<{
8215
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
8216
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
8217
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
8218
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
8219
+ readonly since: Schema.String;
8220
+ readonly until: Schema.String;
8221
+ }>>;
8222
+ readonly ownUsageLow: Schema.Boolean;
8223
+ readonly unattributed: Schema.Number;
8224
+ readonly refusals: Schema.Struct<{
8225
+ readonly primary: Schema.Number;
8226
+ readonly secondary: Schema.Number;
8227
+ }>;
8228
+ }>>;
7793
8229
  readonly deployByProjectKey: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
7794
8230
  readonly projectKey: Schema.String;
7795
8231
  readonly trigger: Schema.String;
@@ -7871,6 +8307,48 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7871
8307
  readonly at: Schema.String;
7872
8308
  }>>;
7873
8309
  }>;
8310
+ }>, Schema.Struct<{
8311
+ readonly type: Schema.Literal<"github_quota.changed">;
8312
+ readonly sequence: Schema.Number;
8313
+ readonly timestamp: Schema.String;
8314
+ readonly payload: Schema.Struct<{
8315
+ readonly generatedAt: Schema.String;
8316
+ readonly login: Schema.NullOr<Schema.String>;
8317
+ readonly callers: Schema.$Array<Schema.Struct<{
8318
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
8319
+ readonly graphql: Schema.Struct<{
8320
+ readonly points: Schema.Number;
8321
+ readonly calls: Schema.Number;
8322
+ }>;
8323
+ readonly rest: Schema.Struct<{
8324
+ readonly points: Schema.Number;
8325
+ readonly calls: Schema.Number;
8326
+ }>;
8327
+ readonly estimated: Schema.Boolean;
8328
+ }>>;
8329
+ readonly samples: Schema.$Array<Schema.Struct<{
8330
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
8331
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
8332
+ readonly ts: Schema.String;
8333
+ readonly remaining: Schema.Number;
8334
+ readonly limit: Schema.Number;
8335
+ readonly resetAt: Schema.optional<Schema.String>;
8336
+ }>>;
8337
+ readonly pauses: Schema.$Array<Schema.Struct<{
8338
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
8339
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
8340
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
8341
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
8342
+ readonly since: Schema.String;
8343
+ readonly until: Schema.String;
8344
+ }>>;
8345
+ readonly ownUsageLow: Schema.Boolean;
8346
+ readonly unattributed: Schema.Number;
8347
+ readonly refusals: Schema.Struct<{
8348
+ readonly primary: Schema.Number;
8349
+ readonly secondary: Schema.Number;
8350
+ }>;
8351
+ }>;
7874
8352
  }>, Schema.Struct<{
7875
8353
  readonly type: Schema.Literal<"project.deploy_changed">;
7876
8354
  readonly sequence: Schema.Number;
@@ -7952,6 +8430,12 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7952
8430
  }>>;
7953
8431
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
7954
8432
  readonly resolutionCount: Schema.optional<Schema.Number>;
8433
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
8434
+ readonly kind: Schema.String;
8435
+ readonly confidence: Schema.Number;
8436
+ readonly needsAnswer: Schema.Boolean;
8437
+ readonly model: Schema.String;
8438
+ }>>;
7955
8439
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
7956
8440
  }>;
7957
8441
  }>;
@@ -7990,6 +8474,12 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
7990
8474
  }>>;
7991
8475
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
7992
8476
  readonly resolutionCount: Schema.optional<Schema.Number>;
8477
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
8478
+ readonly kind: Schema.String;
8479
+ readonly confidence: Schema.Number;
8480
+ readonly needsAnswer: Schema.Boolean;
8481
+ readonly model: Schema.String;
8482
+ }>>;
7993
8483
  }>;
7994
8484
  }>, Schema.Struct<{
7995
8485
  readonly type: Schema.Literal<"agent.started">;
@@ -8056,6 +8546,12 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
8056
8546
  }>>;
8057
8547
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
8058
8548
  readonly resolutionCount: Schema.optional<Schema.Number>;
8549
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
8550
+ readonly kind: Schema.String;
8551
+ readonly confidence: Schema.Number;
8552
+ readonly needsAnswer: Schema.Boolean;
8553
+ readonly model: Schema.String;
8554
+ }>>;
8059
8555
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
8060
8556
  }>;
8061
8557
  }>;
@@ -8181,6 +8677,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
8181
8677
  readonly agentId: Schema.String;
8182
8678
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
8183
8679
  readonly currentTool: Schema.optional<Schema.String>;
8680
+ readonly toolDescription: Schema.optional<Schema.String>;
8184
8681
  readonly hookName: Schema.optional<Schema.String>;
8185
8682
  }>;
8186
8683
  }>, Schema.Struct<{
@@ -8321,6 +8818,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
8321
8818
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
8322
8819
  readonly lastActivity: Schema.String;
8323
8820
  readonly currentTool: Schema.optional<Schema.String>;
8821
+ readonly currentToolDescription: Schema.optional<Schema.String>;
8324
8822
  readonly thinking: Schema.optional<Schema.Struct<{
8325
8823
  readonly since: Schema.String;
8326
8824
  readonly lastToolAt: Schema.String;
@@ -8439,13 +8937,14 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
8439
8937
  readonly issueState: Schema.Struct<{
8440
8938
  readonly issueId: Schema.String;
8441
8939
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
8442
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
8940
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
8443
8941
  readonly pr: Schema.optional<Schema.Struct<{
8444
8942
  readonly url: Schema.String;
8445
8943
  readonly number: Schema.Number;
8446
8944
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
8447
8945
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
8448
8946
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
8947
+ readonly merged: Schema.optional<Schema.Boolean>;
8449
8948
  }>>;
8450
8949
  readonly branch: Schema.optional<Schema.Struct<{
8451
8950
  readonly name: Schema.String;
@@ -8453,6 +8952,13 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
8453
8952
  readonly pushed: Schema.Boolean;
8454
8953
  }>>;
8455
8954
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
8955
+ readonly workStart: Schema.optional<Schema.Struct<{
8956
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
8957
+ readonly at: Schema.String;
8958
+ readonly error: Schema.optional<Schema.String>;
8959
+ readonly nextRetryAt: Schema.optional<Schema.String>;
8960
+ readonly held: Schema.optional<Schema.Literal<true>>;
8961
+ }>>;
8456
8962
  }>;
8457
8963
  }>;
8458
8964
  }>, Schema.Struct<{
@@ -9490,7 +9996,13 @@ declare const SubscribeConversationMessagesRpc: Rpc.Rpc<"pan.subscribeConversati
9490
9996
  readonly description: Schema.String;
9491
9997
  readonly toolUseId: Schema.String;
9492
9998
  readonly spawnDepth: Schema.Number;
9493
- readonly status: Schema.Literals<readonly ["running", "done"]>;
9999
+ readonly status: Schema.Literals<readonly ["running", "done"]>; /** True for a background subagent, launched with `requestShape: "background"` (PAN-4247). */
10000
+ readonly background: Schema.optional<Schema.Boolean>; /** Recent human-origin sidechain inputs, most useful when a message routed into this subagent instead of the main conversation (PAN-4247). */
10001
+ readonly humanInputs: Schema.optional<Schema.$Array<Schema.Struct<{
10002
+ readonly id: Schema.String;
10003
+ readonly text: Schema.String;
10004
+ readonly createdAt: Schema.String;
10005
+ }>>>;
9494
10006
  }>>;
9495
10007
  }>]>, typeof PanRpcError>, Schema.Never, never, never>;
9496
10008
  /** 17. Subscribe to live session tree deltas for a project (stream, PAN-821) */
@@ -10012,6 +10524,48 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10012
10524
  readonly at: Schema.String;
10013
10525
  }>>;
10014
10526
  }>;
10527
+ }>, Schema.Struct<{
10528
+ readonly type: Schema.Literal<"github_quota.changed">;
10529
+ readonly sequence: Schema.Number;
10530
+ readonly timestamp: Schema.String;
10531
+ readonly payload: Schema.Struct<{
10532
+ readonly generatedAt: Schema.String;
10533
+ readonly login: Schema.NullOr<Schema.String>;
10534
+ readonly callers: Schema.$Array<Schema.Struct<{
10535
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
10536
+ readonly graphql: Schema.Struct<{
10537
+ readonly points: Schema.Number;
10538
+ readonly calls: Schema.Number;
10539
+ }>;
10540
+ readonly rest: Schema.Struct<{
10541
+ readonly points: Schema.Number;
10542
+ readonly calls: Schema.Number;
10543
+ }>;
10544
+ readonly estimated: Schema.Boolean;
10545
+ }>>;
10546
+ readonly samples: Schema.$Array<Schema.Struct<{
10547
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
10548
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
10549
+ readonly ts: Schema.String;
10550
+ readonly remaining: Schema.Number;
10551
+ readonly limit: Schema.Number;
10552
+ readonly resetAt: Schema.optional<Schema.String>;
10553
+ }>>;
10554
+ readonly pauses: Schema.$Array<Schema.Struct<{
10555
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
10556
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
10557
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
10558
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
10559
+ readonly since: Schema.String;
10560
+ readonly until: Schema.String;
10561
+ }>>;
10562
+ readonly ownUsageLow: Schema.Boolean;
10563
+ readonly unattributed: Schema.Number;
10564
+ readonly refusals: Schema.Struct<{
10565
+ readonly primary: Schema.Number;
10566
+ readonly secondary: Schema.Number;
10567
+ }>;
10568
+ }>;
10015
10569
  }>, Schema.Struct<{
10016
10570
  readonly type: Schema.Literal<"project.deploy_changed">;
10017
10571
  readonly sequence: Schema.Number;
@@ -10093,6 +10647,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10093
10647
  }>>;
10094
10648
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
10095
10649
  readonly resolutionCount: Schema.optional<Schema.Number>;
10650
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
10651
+ readonly kind: Schema.String;
10652
+ readonly confidence: Schema.Number;
10653
+ readonly needsAnswer: Schema.Boolean;
10654
+ readonly model: Schema.String;
10655
+ }>>;
10096
10656
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
10097
10657
  }>;
10098
10658
  }>;
@@ -10131,6 +10691,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10131
10691
  }>>;
10132
10692
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
10133
10693
  readonly resolutionCount: Schema.optional<Schema.Number>;
10694
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
10695
+ readonly kind: Schema.String;
10696
+ readonly confidence: Schema.Number;
10697
+ readonly needsAnswer: Schema.Boolean;
10698
+ readonly model: Schema.String;
10699
+ }>>;
10134
10700
  }>;
10135
10701
  }>, Schema.Struct<{
10136
10702
  readonly type: Schema.Literal<"agent.started">;
@@ -10197,6 +10763,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10197
10763
  }>>;
10198
10764
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
10199
10765
  readonly resolutionCount: Schema.optional<Schema.Number>;
10766
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
10767
+ readonly kind: Schema.String;
10768
+ readonly confidence: Schema.Number;
10769
+ readonly needsAnswer: Schema.Boolean;
10770
+ readonly model: Schema.String;
10771
+ }>>;
10200
10772
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
10201
10773
  }>;
10202
10774
  }>;
@@ -10322,6 +10894,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10322
10894
  readonly agentId: Schema.String;
10323
10895
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
10324
10896
  readonly currentTool: Schema.optional<Schema.String>;
10897
+ readonly toolDescription: Schema.optional<Schema.String>;
10325
10898
  readonly hookName: Schema.optional<Schema.String>;
10326
10899
  }>;
10327
10900
  }>, Schema.Struct<{
@@ -10462,6 +11035,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10462
11035
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
10463
11036
  readonly lastActivity: Schema.String;
10464
11037
  readonly currentTool: Schema.optional<Schema.String>;
11038
+ readonly currentToolDescription: Schema.optional<Schema.String>;
10465
11039
  readonly thinking: Schema.optional<Schema.Struct<{
10466
11040
  readonly since: Schema.String;
10467
11041
  readonly lastToolAt: Schema.String;
@@ -10580,13 +11154,14 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10580
11154
  readonly issueState: Schema.Struct<{
10581
11155
  readonly issueId: Schema.String;
10582
11156
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
10583
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
11157
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
10584
11158
  readonly pr: Schema.optional<Schema.Struct<{
10585
11159
  readonly url: Schema.String;
10586
11160
  readonly number: Schema.Number;
10587
11161
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
10588
11162
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
10589
11163
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
11164
+ readonly merged: Schema.optional<Schema.Boolean>;
10590
11165
  }>>;
10591
11166
  readonly branch: Schema.optional<Schema.Struct<{
10592
11167
  readonly name: Schema.String;
@@ -10594,6 +11169,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
10594
11169
  readonly pushed: Schema.Boolean;
10595
11170
  }>>;
10596
11171
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
11172
+ readonly workStart: Schema.optional<Schema.Struct<{
11173
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
11174
+ readonly at: Schema.String;
11175
+ readonly error: Schema.optional<Schema.String>;
11176
+ readonly nextRetryAt: Schema.optional<Schema.String>;
11177
+ readonly held: Schema.optional<Schema.Literal<true>>;
11178
+ }>>;
10597
11179
  }>;
10598
11180
  }>;
10599
11181
  }>, Schema.Struct<{
@@ -11457,6 +12039,48 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11457
12039
  readonly at: Schema.String;
11458
12040
  }>>;
11459
12041
  }>;
12042
+ }>, Schema.Struct<{
12043
+ readonly type: Schema.Literal<"github_quota.changed">;
12044
+ readonly sequence: Schema.Number;
12045
+ readonly timestamp: Schema.String;
12046
+ readonly payload: Schema.Struct<{
12047
+ readonly generatedAt: Schema.String;
12048
+ readonly login: Schema.NullOr<Schema.String>;
12049
+ readonly callers: Schema.$Array<Schema.Struct<{
12050
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
12051
+ readonly graphql: Schema.Struct<{
12052
+ readonly points: Schema.Number;
12053
+ readonly calls: Schema.Number;
12054
+ }>;
12055
+ readonly rest: Schema.Struct<{
12056
+ readonly points: Schema.Number;
12057
+ readonly calls: Schema.Number;
12058
+ }>;
12059
+ readonly estimated: Schema.Boolean;
12060
+ }>>;
12061
+ readonly samples: Schema.$Array<Schema.Struct<{
12062
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
12063
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
12064
+ readonly ts: Schema.String;
12065
+ readonly remaining: Schema.Number;
12066
+ readonly limit: Schema.Number;
12067
+ readonly resetAt: Schema.optional<Schema.String>;
12068
+ }>>;
12069
+ readonly pauses: Schema.$Array<Schema.Struct<{
12070
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
12071
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
12072
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
12073
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
12074
+ readonly since: Schema.String;
12075
+ readonly until: Schema.String;
12076
+ }>>;
12077
+ readonly ownUsageLow: Schema.Boolean;
12078
+ readonly unattributed: Schema.Number;
12079
+ readonly refusals: Schema.Struct<{
12080
+ readonly primary: Schema.Number;
12081
+ readonly secondary: Schema.Number;
12082
+ }>;
12083
+ }>;
11460
12084
  }>, Schema.Struct<{
11461
12085
  readonly type: Schema.Literal<"project.deploy_changed">;
11462
12086
  readonly sequence: Schema.Number;
@@ -11538,6 +12162,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11538
12162
  }>>;
11539
12163
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
11540
12164
  readonly resolutionCount: Schema.optional<Schema.Number>;
12165
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
12166
+ readonly kind: Schema.String;
12167
+ readonly confidence: Schema.Number;
12168
+ readonly needsAnswer: Schema.Boolean;
12169
+ readonly model: Schema.String;
12170
+ }>>;
11541
12171
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
11542
12172
  }>;
11543
12173
  }>;
@@ -11576,6 +12206,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11576
12206
  }>>;
11577
12207
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
11578
12208
  readonly resolutionCount: Schema.optional<Schema.Number>;
12209
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
12210
+ readonly kind: Schema.String;
12211
+ readonly confidence: Schema.Number;
12212
+ readonly needsAnswer: Schema.Boolean;
12213
+ readonly model: Schema.String;
12214
+ }>>;
11579
12215
  }>;
11580
12216
  }>, Schema.Struct<{
11581
12217
  readonly type: Schema.Literal<"agent.started">;
@@ -11642,6 +12278,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11642
12278
  }>>;
11643
12279
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
11644
12280
  readonly resolutionCount: Schema.optional<Schema.Number>;
12281
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
12282
+ readonly kind: Schema.String;
12283
+ readonly confidence: Schema.Number;
12284
+ readonly needsAnswer: Schema.Boolean;
12285
+ readonly model: Schema.String;
12286
+ }>>;
11645
12287
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
11646
12288
  }>;
11647
12289
  }>;
@@ -11767,6 +12409,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11767
12409
  readonly agentId: Schema.String;
11768
12410
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
11769
12411
  readonly currentTool: Schema.optional<Schema.String>;
12412
+ readonly toolDescription: Schema.optional<Schema.String>;
11770
12413
  readonly hookName: Schema.optional<Schema.String>;
11771
12414
  }>;
11772
12415
  }>, Schema.Struct<{
@@ -11907,6 +12550,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
11907
12550
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
11908
12551
  readonly lastActivity: Schema.String;
11909
12552
  readonly currentTool: Schema.optional<Schema.String>;
12553
+ readonly currentToolDescription: Schema.optional<Schema.String>;
11910
12554
  readonly thinking: Schema.optional<Schema.Struct<{
11911
12555
  readonly since: Schema.String;
11912
12556
  readonly lastToolAt: Schema.String;
@@ -12025,13 +12669,14 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12025
12669
  readonly issueState: Schema.Struct<{
12026
12670
  readonly issueId: Schema.String;
12027
12671
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
12028
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
12672
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
12029
12673
  readonly pr: Schema.optional<Schema.Struct<{
12030
12674
  readonly url: Schema.String;
12031
12675
  readonly number: Schema.Number;
12032
12676
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
12033
12677
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
12034
12678
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
12679
+ readonly merged: Schema.optional<Schema.Boolean>;
12035
12680
  }>>;
12036
12681
  readonly branch: Schema.optional<Schema.Struct<{
12037
12682
  readonly name: Schema.String;
@@ -12039,6 +12684,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12039
12684
  readonly pushed: Schema.Boolean;
12040
12685
  }>>;
12041
12686
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
12687
+ readonly workStart: Schema.optional<Schema.Struct<{
12688
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
12689
+ readonly at: Schema.String;
12690
+ readonly error: Schema.optional<Schema.String>;
12691
+ readonly nextRetryAt: Schema.optional<Schema.String>;
12692
+ readonly held: Schema.optional<Schema.Literal<true>>;
12693
+ }>>;
12042
12694
  }>;
12043
12695
  }>;
12044
12696
  }>, Schema.Struct<{
@@ -12905,19 +13557,26 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12905
13557
  }>>;
12906
13558
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
12907
13559
  readonly resolutionCount: Schema.optional<Schema.Number>;
13560
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
13561
+ readonly kind: Schema.String;
13562
+ readonly confidence: Schema.Number;
13563
+ readonly needsAnswer: Schema.Boolean;
13564
+ readonly model: Schema.String;
13565
+ }>>;
12908
13566
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
12909
13567
  }>>;
12910
13568
  readonly specialists: Schema.$Array<Schema.Unknown>;
12911
13569
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
12912
13570
  readonly issueId: Schema.String;
12913
13571
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
12914
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
13572
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
12915
13573
  readonly pr: Schema.optional<Schema.Struct<{
12916
13574
  readonly url: Schema.String;
12917
13575
  readonly number: Schema.Number;
12918
13576
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
12919
13577
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
12920
13578
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
13579
+ readonly merged: Schema.optional<Schema.Boolean>;
12921
13580
  }>>;
12922
13581
  readonly branch: Schema.optional<Schema.Struct<{
12923
13582
  readonly name: Schema.String;
@@ -12925,6 +13584,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12925
13584
  readonly pushed: Schema.Boolean;
12926
13585
  }>>;
12927
13586
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
13587
+ readonly workStart: Schema.optional<Schema.Struct<{
13588
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
13589
+ readonly at: Schema.String;
13590
+ readonly error: Schema.optional<Schema.String>;
13591
+ readonly nextRetryAt: Schema.optional<Schema.String>;
13592
+ readonly held: Schema.optional<Schema.Literal<true>>;
13593
+ }>>;
12928
13594
  }>>;
12929
13595
  readonly backendPanes: Schema.$Array<Schema.Struct<{
12930
13596
  readonly id: Schema.String;
@@ -12947,6 +13613,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12947
13613
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
12948
13614
  readonly lastActivity: Schema.String;
12949
13615
  readonly currentTool: Schema.optional<Schema.String>;
13616
+ readonly currentToolDescription: Schema.optional<Schema.String>;
12950
13617
  readonly thinking: Schema.optional<Schema.Struct<{
12951
13618
  readonly since: Schema.String;
12952
13619
  readonly lastToolAt: Schema.String;
@@ -13050,6 +13717,44 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13050
13717
  readonly at: Schema.String;
13051
13718
  }>>;
13052
13719
  }>>;
13720
+ readonly githubQuota: Schema.optional<Schema.Struct<{
13721
+ readonly generatedAt: Schema.String;
13722
+ readonly login: Schema.NullOr<Schema.String>;
13723
+ readonly callers: Schema.$Array<Schema.Struct<{
13724
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
13725
+ readonly graphql: Schema.Struct<{
13726
+ readonly points: Schema.Number;
13727
+ readonly calls: Schema.Number;
13728
+ }>;
13729
+ readonly rest: Schema.Struct<{
13730
+ readonly points: Schema.Number;
13731
+ readonly calls: Schema.Number;
13732
+ }>;
13733
+ readonly estimated: Schema.Boolean;
13734
+ }>>;
13735
+ readonly samples: Schema.$Array<Schema.Struct<{
13736
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
13737
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
13738
+ readonly ts: Schema.String;
13739
+ readonly remaining: Schema.Number;
13740
+ readonly limit: Schema.Number;
13741
+ readonly resetAt: Schema.optional<Schema.String>;
13742
+ }>>;
13743
+ readonly pauses: Schema.$Array<Schema.Struct<{
13744
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
13745
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
13746
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
13747
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
13748
+ readonly since: Schema.String;
13749
+ readonly until: Schema.String;
13750
+ }>>;
13751
+ readonly ownUsageLow: Schema.Boolean;
13752
+ readonly unattributed: Schema.Number;
13753
+ readonly refusals: Schema.Struct<{
13754
+ readonly primary: Schema.Number;
13755
+ readonly secondary: Schema.Number;
13756
+ }>;
13757
+ }>>;
13053
13758
  readonly deployByProjectKey: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
13054
13759
  readonly projectKey: Schema.String;
13055
13760
  readonly trigger: Schema.String;
@@ -13129,6 +13834,48 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13129
13834
  readonly at: Schema.String;
13130
13835
  }>>;
13131
13836
  }>;
13837
+ }>, Schema.Struct<{
13838
+ readonly type: Schema.Literal<"github_quota.changed">;
13839
+ readonly sequence: Schema.Number;
13840
+ readonly timestamp: Schema.String;
13841
+ readonly payload: Schema.Struct<{
13842
+ readonly generatedAt: Schema.String;
13843
+ readonly login: Schema.NullOr<Schema.String>;
13844
+ readonly callers: Schema.$Array<Schema.Struct<{
13845
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
13846
+ readonly graphql: Schema.Struct<{
13847
+ readonly points: Schema.Number;
13848
+ readonly calls: Schema.Number;
13849
+ }>;
13850
+ readonly rest: Schema.Struct<{
13851
+ readonly points: Schema.Number;
13852
+ readonly calls: Schema.Number;
13853
+ }>;
13854
+ readonly estimated: Schema.Boolean;
13855
+ }>>;
13856
+ readonly samples: Schema.$Array<Schema.Struct<{
13857
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
13858
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
13859
+ readonly ts: Schema.String;
13860
+ readonly remaining: Schema.Number;
13861
+ readonly limit: Schema.Number;
13862
+ readonly resetAt: Schema.optional<Schema.String>;
13863
+ }>>;
13864
+ readonly pauses: Schema.$Array<Schema.Struct<{
13865
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
13866
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
13867
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>;
13868
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
13869
+ readonly since: Schema.String;
13870
+ readonly until: Schema.String;
13871
+ }>>;
13872
+ readonly ownUsageLow: Schema.Boolean;
13873
+ readonly unattributed: Schema.Number;
13874
+ readonly refusals: Schema.Struct<{
13875
+ readonly primary: Schema.Number;
13876
+ readonly secondary: Schema.Number;
13877
+ }>;
13878
+ }>;
13132
13879
  }>, Schema.Struct<{
13133
13880
  readonly type: Schema.Literal<"project.deploy_changed">;
13134
13881
  readonly sequence: Schema.Number;
@@ -13210,6 +13957,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13210
13957
  }>>;
13211
13958
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
13212
13959
  readonly resolutionCount: Schema.optional<Schema.Number>;
13960
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
13961
+ readonly kind: Schema.String;
13962
+ readonly confidence: Schema.Number;
13963
+ readonly needsAnswer: Schema.Boolean;
13964
+ readonly model: Schema.String;
13965
+ }>>;
13213
13966
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
13214
13967
  }>;
13215
13968
  }>;
@@ -13248,6 +14001,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13248
14001
  }>>;
13249
14002
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
13250
14003
  readonly resolutionCount: Schema.optional<Schema.Number>;
14004
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
14005
+ readonly kind: Schema.String;
14006
+ readonly confidence: Schema.Number;
14007
+ readonly needsAnswer: Schema.Boolean;
14008
+ readonly model: Schema.String;
14009
+ }>>;
13251
14010
  }>;
13252
14011
  }>, Schema.Struct<{
13253
14012
  readonly type: Schema.Literal<"agent.started">;
@@ -13314,6 +14073,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13314
14073
  }>>;
13315
14074
  readonly resolution: Schema.optional<Schema.Literals<readonly ["working", "done", "needs_input", "stuck", "completed", "unclear", "abandoned", "api_error"]>>;
13316
14075
  readonly resolutionCount: Schema.optional<Schema.Number>;
14076
+ readonly turnEndAssessment: Schema.optional<Schema.Struct<{
14077
+ readonly kind: Schema.String;
14078
+ readonly confidence: Schema.Number;
14079
+ readonly needsAnswer: Schema.Boolean;
14080
+ readonly model: Schema.String;
14081
+ }>>;
13317
14082
  readonly runtimeSnapshotSequence: Schema.optional<Schema.Number>;
13318
14083
  }>;
13319
14084
  }>;
@@ -13439,6 +14204,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13439
14204
  readonly agentId: Schema.String;
13440
14205
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
13441
14206
  readonly currentTool: Schema.optional<Schema.String>;
14207
+ readonly toolDescription: Schema.optional<Schema.String>;
13442
14208
  readonly hookName: Schema.optional<Schema.String>;
13443
14209
  }>;
13444
14210
  }>, Schema.Struct<{
@@ -13579,6 +14345,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13579
14345
  readonly activity: Schema.Literals<readonly ["working", "thinking", "waiting", "idle", "stopped"]>;
13580
14346
  readonly lastActivity: Schema.String;
13581
14347
  readonly currentTool: Schema.optional<Schema.String>;
14348
+ readonly currentToolDescription: Schema.optional<Schema.String>;
13582
14349
  readonly thinking: Schema.optional<Schema.Struct<{
13583
14350
  readonly since: Schema.String;
13584
14351
  readonly lastToolAt: Schema.String;
@@ -13697,13 +14464,14 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13697
14464
  readonly issueState: Schema.Struct<{
13698
14465
  readonly issueId: Schema.String;
13699
14466
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
13700
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
14467
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
13701
14468
  readonly pr: Schema.optional<Schema.Struct<{
13702
14469
  readonly url: Schema.String;
13703
14470
  readonly number: Schema.Number;
13704
14471
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
13705
14472
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
13706
14473
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
14474
+ readonly merged: Schema.optional<Schema.Boolean>;
13707
14475
  }>>;
13708
14476
  readonly branch: Schema.optional<Schema.Struct<{
13709
14477
  readonly name: Schema.String;
@@ -13711,6 +14479,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13711
14479
  readonly pushed: Schema.Boolean;
13712
14480
  }>>;
13713
14481
  readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
14482
+ readonly workStart: Schema.optional<Schema.Struct<{
14483
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>;
14484
+ readonly at: Schema.String;
14485
+ readonly error: Schema.optional<Schema.String>;
14486
+ readonly nextRetryAt: Schema.optional<Schema.String>;
14487
+ readonly held: Schema.optional<Schema.Literal<true>>;
14488
+ }>>;
13714
14489
  }>;
13715
14490
  }>;
13716
14491
  }>, Schema.Struct<{
@@ -14647,7 +15422,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
14647
15422
  readonly description: Schema.String;
14648
15423
  readonly toolUseId: Schema.String;
14649
15424
  readonly spawnDepth: Schema.Number;
14650
- readonly status: Schema.Literals<readonly ["running", "done"]>;
15425
+ readonly status: Schema.Literals<readonly ["running", "done"]>; /** True for a background subagent, launched with `requestShape: "background"` (PAN-4247). */
15426
+ readonly background: Schema.optional<Schema.Boolean>; /** Recent human-origin sidechain inputs, most useful when a message routed into this subagent instead of the main conversation (PAN-4247). */
15427
+ readonly humanInputs: Schema.optional<Schema.$Array<Schema.Struct<{
15428
+ readonly id: Schema.String;
15429
+ readonly text: Schema.String;
15430
+ readonly createdAt: Schema.String;
15431
+ }>>>;
14651
15432
  }>>;
14652
15433
  }>]>, typeof PanRpcError>, Schema.Never, never, never> | Rpc.Rpc<"pan.subscribeProjectSessionTree", Schema.Struct<{
14653
15434
  readonly projectKey: Schema.String;
@@ -15088,7 +15869,7 @@ type PanRpcGroup = typeof PanRpcGroup;
15088
15869
  declare const IssueState: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
15089
15870
  type IssueState = typeof IssueState.Type;
15090
15871
  /** Something the operator has to look at. Orthogonal to `IssueState`. */
15091
- declare const IssueAttention: Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>;
15872
+ declare const IssueAttention: Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>;
15092
15873
  type IssueAttention = typeof IssueAttention.Type;
15093
15874
  /** Latest review decision on the PR, as the forge reports it. */
15094
15875
  declare const PrReviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
@@ -15102,7 +15883,8 @@ declare const DerivedPrState: Schema.Struct<{
15102
15883
  readonly number: Schema.Number;
15103
15884
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
15104
15885
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>; /** Forge mergeability. `null` when the forge has not computed it yet. */
15105
- readonly mergeable: Schema.NullOr<Schema.Boolean>;
15886
+ readonly mergeable: Schema.NullOr<Schema.Boolean>; /** Present only when true; survives state: closed (PAN-4290). */
15887
+ readonly merged: Schema.optional<Schema.Boolean>;
15106
15888
  }>;
15107
15889
  type DerivedPrState = typeof DerivedPrState.Type;
15108
15890
  /** The issue's feature branch as git reports it. */
@@ -15112,17 +15894,27 @@ declare const DerivedBranchState: Schema.Struct<{
15112
15894
  readonly pushed: Schema.Boolean;
15113
15895
  }>;
15114
15896
  type DerivedBranchState = typeof DerivedBranchState.Type;
15897
+ /** The workspace journal's read on a post-planning auto-start (PAN-4399). */
15898
+ declare const DerivedWorkStart: Schema.Struct<{
15899
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>; /** ISO time of the journal entry the status was read from. */
15900
+ readonly at: Schema.String;
15901
+ readonly error: Schema.optional<Schema.String>;
15902
+ readonly nextRetryAt: Schema.optional<Schema.String>; /** The retry is journaled but not actually running because the Deacon is frozen (PAN-4210). Present only when true. */
15903
+ readonly held: Schema.optional<Schema.Literal<true>>;
15904
+ }>;
15905
+ type DerivedWorkStart = typeof DerivedWorkStart.Type;
15115
15906
  /** Everything the dashboard needs to render an issue's pipeline position. */
15116
15907
  declare const DerivedIssueState: Schema.Struct<{
15117
15908
  readonly issueId: Schema.String;
15118
15909
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
15119
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
15910
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
15120
15911
  readonly pr: Schema.optional<Schema.Struct<{
15121
15912
  readonly url: Schema.String;
15122
15913
  readonly number: Schema.Number;
15123
15914
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
15124
15915
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>; /** Forge mergeability. `null` when the forge has not computed it yet. */
15125
- readonly mergeable: Schema.NullOr<Schema.Boolean>;
15916
+ readonly mergeable: Schema.NullOr<Schema.Boolean>; /** Present only when true; survives state: closed (PAN-4290). */
15917
+ readonly merged: Schema.optional<Schema.Boolean>;
15126
15918
  }>>;
15127
15919
  readonly branch: Schema.optional<Schema.Struct<{
15128
15920
  readonly name: Schema.String;
@@ -15134,7 +15926,14 @@ declare const DerivedIssueState: Schema.Struct<{
15134
15926
  * precedence — could not be ruled in or out. Present only in that case; an
15135
15927
  * unresolved tracker read is never reported as an open issue.
15136
15928
  */
15137
- readonly trackerUnknown: Schema.optional<Schema.Literal<true>>;
15929
+ readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** A deferred or gave-up post-planning auto-start read from the workspace journal (PAN-4399). */
15930
+ readonly workStart: Schema.optional<Schema.Struct<{
15931
+ readonly status: Schema.Literals<readonly ["retrying", "not-started"]>; /** ISO time of the journal entry the status was read from. */
15932
+ readonly at: Schema.String;
15933
+ readonly error: Schema.optional<Schema.String>;
15934
+ readonly nextRetryAt: Schema.optional<Schema.String>; /** The retry is journaled but not actually running because the Deacon is frozen (PAN-4210). Present only when true. */
15935
+ readonly held: Schema.optional<Schema.Literal<true>>;
15936
+ }>>;
15138
15937
  }>;
15139
15938
  type DerivedIssueState = typeof DerivedIssueState.Type;
15140
15939
  declare const ISSUE_STATES: readonly IssueState[];
@@ -15144,6 +15943,122 @@ declare const ISSUE_ATTENTIONS: readonly IssueAttention[];
15144
15943
  declare function isIssueState(value: unknown): value is IssueState;
15145
15944
  declare function isIssueAttention(value: unknown): value is IssueAttention;
15146
15945
  //#endregion
15946
+ //#region src/github-quota.d.ts
15947
+ /**
15948
+ * The closed list of logical GitHub callers. A call made outside any
15949
+ * `withGitHubCaller` context is recorded as `other` (or `app-rest` when it
15950
+ * goes through the GitHub App REST door).
15951
+ */
15952
+ declare const GITHUB_QUOTA_CALLERS: readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"];
15953
+ declare const GitHubQuotaCaller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
15954
+ type GitHubQuotaCaller = typeof GitHubQuotaCaller.Type;
15955
+ /**
15956
+ * Read-model pollers whose data can be stale for minutes without harm. Only
15957
+ * these callers are skipped while a pause is active; every other caller
15958
+ * (merge, verdict recording, tracker writes, agents) is essential and never
15959
+ * paused.
15960
+ */
15961
+ declare const NON_ESSENTIAL_GITHUB_CALLERS: ReadonlySet<GitHubQuotaCaller>;
15962
+ /**
15963
+ * The GitHub identity whose limit a call spends: `user` is the `gh` CLI token,
15964
+ * `pat` is the `GITHUB_TOKEN` personal access token, `app` is a GitHub App
15965
+ * installation token.
15966
+ */
15967
+ declare const GITHUB_QUOTA_POOLS: readonly ["user", "pat", "app"];
15968
+ declare const GitHubQuotaPool: Schema.Literals<readonly ["user", "pat", "app"]>;
15969
+ type GitHubQuotaPool = typeof GitHubQuotaPool.Type;
15970
+ /** The limit counter inside a pool. `rest` is what GitHub calls `core`. */
15971
+ declare const GITHUB_QUOTA_BUCKETS: readonly ["graphql", "rest"];
15972
+ declare const GitHubQuotaBucket: Schema.Literals<readonly ["graphql", "rest"]>;
15973
+ type GitHubQuotaBucket = typeof GitHubQuotaBucket.Type;
15974
+ /** Primary = the hourly budget; secondary = GitHub's burst/abuse limit. */
15975
+ declare const GitHubRateLimitKind: Schema.Literals<readonly ["primary", "secondary"]>;
15976
+ type GitHubRateLimitKind = typeof GitHubRateLimitKind.Type;
15977
+ /** Points spent and calls made in one bucket. */
15978
+ declare const GitHubQuotaUsage: Schema.Struct<{
15979
+ readonly points: Schema.Number;
15980
+ readonly calls: Schema.Number;
15981
+ }>;
15982
+ type GitHubQuotaUsage = typeof GitHubQuotaUsage.Type;
15983
+ /** One caller's metered usage over the last hour. */
15984
+ declare const GitHubQuotaCallerUsage: Schema.Struct<{
15985
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
15986
+ readonly graphql: Schema.Struct<{
15987
+ readonly points: Schema.Number;
15988
+ readonly calls: Schema.Number;
15989
+ }>;
15990
+ readonly rest: Schema.Struct<{
15991
+ readonly points: Schema.Number;
15992
+ readonly calls: Schema.Number;
15993
+ }>; /** True when any counted call had an estimated (not GitHub-reported) cost. */
15994
+ readonly estimated: Schema.Boolean;
15995
+ }>;
15996
+ type GitHubQuotaCallerUsage = typeof GitHubQuotaCallerUsage.Type;
15997
+ /** The latest `/rate_limit` (or header) reading for one pool and bucket. */
15998
+ declare const GitHubQuotaSample: Schema.Struct<{
15999
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
16000
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>; /** ISO time the sample was taken. */
16001
+ readonly ts: Schema.String;
16002
+ readonly remaining: Schema.Number;
16003
+ readonly limit: Schema.Number; /** ISO time the bucket's hourly window resets. */
16004
+ readonly resetAt: Schema.optional<Schema.String>;
16005
+ }>;
16006
+ type GitHubQuotaSample = typeof GitHubQuotaSample.Type;
16007
+ /** An active pause on one pool and bucket (`~/.overdeck/github-quota/pause.json`). */
16008
+ declare const GitHubQuotaPause: Schema.Struct<{
16009
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
16010
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
16011
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>; /** The caller whose refused call started the pause. */
16012
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>; /** ISO time the pause started. */
16013
+ readonly since: Schema.String; /** ISO time the pause ends. */
16014
+ readonly until: Schema.String;
16015
+ }>;
16016
+ type GitHubQuotaPause = typeof GitHubQuotaPause.Type;
16017
+ /**
16018
+ * The operator-facing quota view — identical to the body of
16019
+ * `GET /api/github-quota`, so the pill, the banner and the CLI read one shape.
16020
+ * Derived runtime state: published with `emitOnly`, never persisted.
16021
+ */
16022
+ declare const GitHubQuotaSnapshot: Schema.Struct<{
16023
+ /** ISO time the snapshot was built. */readonly generatedAt: Schema.String; /** The `gh` account login. Local display only; never sent to telemetry. */
16024
+ readonly login: Schema.NullOr<Schema.String>; /** Per-caller usage in the last hour, highest total points first. */
16025
+ readonly callers: Schema.$Array<Schema.Struct<{
16026
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>;
16027
+ readonly graphql: Schema.Struct<{
16028
+ readonly points: Schema.Number;
16029
+ readonly calls: Schema.Number;
16030
+ }>;
16031
+ readonly rest: Schema.Struct<{
16032
+ readonly points: Schema.Number;
16033
+ readonly calls: Schema.Number;
16034
+ }>; /** True when any counted call had an estimated (not GitHub-reported) cost. */
16035
+ readonly estimated: Schema.Boolean;
16036
+ }>>; /** The latest sample per pool and bucket. */
16037
+ readonly samples: Schema.$Array<Schema.Struct<{
16038
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
16039
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>; /** ISO time the sample was taken. */
16040
+ readonly ts: Schema.String;
16041
+ readonly remaining: Schema.Number;
16042
+ readonly limit: Schema.Number; /** ISO time the bucket's hourly window resets. */
16043
+ readonly resetAt: Schema.optional<Schema.String>;
16044
+ }>>; /** Active pauses; empty when GitHub calls are not paused. */
16045
+ readonly pauses: Schema.$Array<Schema.Struct<{
16046
+ readonly pool: Schema.Literals<readonly ["user", "pat", "app"]>;
16047
+ readonly bucket: Schema.Literals<readonly ["graphql", "rest"]>;
16048
+ readonly kind: Schema.Literals<readonly ["primary", "secondary"]>; /** The caller whose refused call started the pause. */
16049
+ readonly caller: Schema.Literals<readonly ["pipeline-membership", "pr-cache", "pr-sync", "ci-repair", "issue-poller", "close-out", "tracker-client", "app-rest", "quota-sampler", "agent", "other"]>; /** ISO time the pause started. */
16050
+ readonly since: Schema.String; /** ISO time the pause ends. */
16051
+ readonly until: Schema.String;
16052
+ }>>; /** True when this machine's own metered usage cannot explain a primary limit. */
16053
+ readonly ownUsageLow: Schema.Boolean; /** User-pool GraphQL points the latest sample shows spent but no metered caller claims. */
16054
+ readonly unattributed: Schema.Number; /** Refusals observed in the last hour. */
16055
+ readonly refusals: Schema.Struct<{
16056
+ readonly primary: Schema.Number;
16057
+ readonly secondary: Schema.Number;
16058
+ }>;
16059
+ }>;
16060
+ type GitHubQuotaSnapshot = typeof GitHubQuotaSnapshot.Type;
16061
+ //#endregion
15147
16062
  //#region src/backend-pane.d.ts
15148
16063
  declare const BackendPane: Schema.Struct<{
15149
16064
  /** Stable pane identity: the backend-native pane handle. */readonly id: Schema.String; /** Overdeck agent id: Herdr `agentId` token or live agent name; tmux session name (PAN-3920). */
@@ -15158,6 +16073,17 @@ declare const BackendPane: Schema.Struct<{
15158
16073
  readonly workspace: Schema.optional<Schema.String>;
15159
16074
  }>;
15160
16075
  type BackendPane = typeof BackendPane.Type;
16076
+ /**
16077
+ * The agent id a pane answers for (PAN-4320). On Herdr `id` (`w1:p1`) and
16078
+ * `terminalId` (`term_…`) are backend handles, never agent ids, so the
16079
+ * `agentId` token decides; tmux panes carry `agentId` = session name.
16080
+ */
16081
+ declare function paneAgentKey(pane: BackendPane): string;
16082
+ /**
16083
+ * Panes by agent key. When two panes answer for one agent (a restarted Herdr
16084
+ * agent beside its exited pane), a non-exited pane wins, never the reverse.
16085
+ */
16086
+ declare function indexPanesByAgentKey(panes: Iterable<BackendPane>): Map<string, BackendPane>;
15161
16087
  //#endregion
15162
16088
  //#region src/event-reducers.d.ts
15163
16089
  interface ResolvedChannelPermissionDecision {
@@ -15242,6 +16168,8 @@ interface ReadModelState {
15242
16168
  ciByProjectKey: Record<string, ProjectCiSnapshot>;
15243
16169
  /** PAN-3729 — voluntary-restart approval gate; null until the gate first reports. */
15244
16170
  restartGate: RestartGateSnapshot | null;
16171
+ /** PAN-4264 — GitHub API quota view; null until the publisher first reports. */
16172
+ githubQuota: GitHubQuotaSnapshot | null;
15245
16173
  /** PAN-3751 — in-flight deploys keyed by project key; derived, never stored. */
15246
16174
  deployByProjectKey: Record<string, ProjectDeploySnapshot>;
15247
16175
  /** sessionId (from agent snapshot or runtime claudeSessionId) → agentId index */
@@ -15408,21 +16336,41 @@ declare const OpenInEditorInput: Schema.Struct<{
15408
16336
  }>;
15409
16337
  type OpenInEditorInput = typeof OpenInEditorInput.Type;
15410
16338
  //#endregion
16339
+ //#region src/effort.d.ts
16340
+ /**
16341
+ * Canonical reasoning-effort levels, end to end. `xhigh` was added in Opus 4.7
16342
+ * (between `high` and `max`); `max` predates it (Opus 4.6+/Sonnet 4.6). This is
16343
+ * the single source of truth for the enum — every other copy in the codebase
16344
+ * derives from it.
16345
+ */
16346
+ declare const EFFORT_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
16347
+ type EffortLevel = (typeof EFFORT_LEVELS)[number];
16348
+ declare const DEFAULT_EFFORT: EffortLevel;
16349
+ /**
16350
+ * Where a resolved effort value came from, in resolution-precedence order
16351
+ * (most to least specific).
16352
+ */
16353
+ type EffortSource = "explicit" | "item" | "plan" | "tier" | "sub-role" | "role" | "project" | "default";
16354
+ declare const EffortLevelSchema: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max"]>;
16355
+ declare function isEffortLevel(value: unknown): value is EffortLevel;
16356
+ /** Compares two effort levels by rank; negative when `a` is lower than `b`. */
16357
+ declare function compareEffort(a: EffortLevel, b: EffortLevel): number;
16358
+ //#endregion
15411
16359
  //#region src/flywheel.d.ts
15412
16360
  declare const FlywheelRunId: Schema.String;
15413
16361
  type FlywheelRunId = typeof FlywheelRunId.Type;
15414
16362
  declare const FlywheelHttpUrl: Schema.String;
15415
16363
  type FlywheelHttpUrl = typeof FlywheelHttpUrl.Type;
15416
- declare const FlywheelHarness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
16364
+ declare const FlywheelHarness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
15417
16365
  interface FlywheelOrchestrator {
15418
16366
  harness: typeof FlywheelHarness.Type;
15419
16367
  model: string;
15420
- effort: "low" | "medium" | "high" | "xhigh" | "max";
16368
+ effort: EffortLevel;
15421
16369
  ctxPercent: number;
15422
16370
  }
15423
16371
  declare const FlywheelEffort: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max"]>;
15424
16372
  declare const FlywheelOrchestrator: Schema.Struct<{
15425
- readonly harness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
16373
+ readonly harness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
15426
16374
  readonly model: Schema.String;
15427
16375
  readonly effort: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max"]>;
15428
16376
  readonly ctxPercent: Schema.Number;
@@ -15625,7 +16573,7 @@ declare const FlywheelStatus: Schema.Struct<{
15625
16573
  readonly startedAt: Schema.String;
15626
16574
  readonly elapsedMs: Schema.Number;
15627
16575
  readonly orchestrator: Schema.Struct<{
15628
- readonly harness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
16576
+ readonly harness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
15629
16577
  readonly model: Schema.String;
15630
16578
  readonly effort: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max"]>;
15631
16579
  readonly ctxPercent: Schema.Number;
@@ -15896,7 +16844,8 @@ declare const FlywheelConversationSummary: Schema.Struct<{
15896
16844
  readonly title: Schema.NullOr<Schema.String>;
15897
16845
  readonly model: Schema.NullOr<Schema.String>;
15898
16846
  readonly harness: Schema.NullOr<Schema.String>;
15899
- readonly cwd: Schema.String;
16847
+ readonly cwd: Schema.String; /** When the conversation row was created — the page's elapsed run time. */
16848
+ readonly createdAt: Schema.String;
15900
16849
  readonly sessionAlive: Schema.Boolean;
15901
16850
  }>;
15902
16851
  type FlywheelConversationSummary = typeof FlywheelConversationSummary.Type;
@@ -15921,17 +16870,32 @@ declare const FlywheelJournalSummary: Schema.Struct<{
15921
16870
  readonly source: Schema.optional<Schema.String>;
15922
16871
  }>;
15923
16872
  type FlywheelJournalSummary = typeof FlywheelJournalSummary.Type;
15924
- declare const FlywheelInFlightRow: Schema.Struct<{
16873
+ /** One live agent pane in the flywheel's project, as the backend inventory reports it. */
16874
+ declare const FlywheelAgentSummary: Schema.Struct<{
15925
16875
  readonly issueId: Schema.String;
16876
+ readonly role: Schema.String;
16877
+ readonly harness: Schema.String;
16878
+ readonly model: Schema.String;
16879
+ readonly state: Schema.String;
16880
+ readonly agentId: Schema.optional<Schema.String>;
16881
+ }>;
16882
+ type FlywheelAgentSummary = typeof FlywheelAgentSummary.Type;
16883
+ declare const FlywheelInFlightRow: Schema.Struct<{
16884
+ readonly issueId: Schema.String; /** The tracker's title, or `null` when no tracker answered for this issue. */
16885
+ readonly title: Schema.NullOr<Schema.String>;
15926
16886
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
15927
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
16887
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
15928
16888
  readonly pr: Schema.optional<Schema.Struct<{
15929
16889
  readonly url: Schema.String;
15930
16890
  readonly number: Schema.Number;
15931
16891
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
15932
16892
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
15933
16893
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
15934
- }>>;
16894
+ readonly merged: Schema.optional<Schema.Boolean>;
16895
+ }>>; /** Set when no configured tracker answered: the state is a guess, not a fact. */
16896
+ readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
16897
+ readonly liveAgents: Schema.Number; /** The loop named this id in its newest tick marker's in-flight list. */
16898
+ readonly inTick: Schema.Boolean;
15935
16899
  readonly lastJournal: Schema.NullOr<Schema.Struct<{
15936
16900
  readonly at: Schema.String;
15937
16901
  readonly type: Schema.String;
@@ -15955,7 +16919,8 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
15955
16919
  readonly title: Schema.NullOr<Schema.String>;
15956
16920
  readonly model: Schema.NullOr<Schema.String>;
15957
16921
  readonly harness: Schema.NullOr<Schema.String>;
15958
- readonly cwd: Schema.String;
16922
+ readonly cwd: Schema.String; /** When the conversation row was created — the page's elapsed run time. */
16923
+ readonly createdAt: Schema.String;
15959
16924
  readonly sessionAlive: Schema.Boolean;
15960
16925
  }>>;
15961
16926
  readonly lastTick: Schema.NullOr<Schema.Struct<{
@@ -15973,22 +16938,40 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
15973
16938
  readonly merge_train_enabled: Schema.Boolean;
15974
16939
  }>;
15975
16940
  readonly inFlight: Schema.$Array<Schema.Struct<{
15976
- readonly issueId: Schema.String;
16941
+ readonly issueId: Schema.String; /** The tracker's title, or `null` when no tracker answered for this issue. */
16942
+ readonly title: Schema.NullOr<Schema.String>;
15977
16943
  readonly state: Schema.Literals<readonly ["backlog", "parked", "planned", "working", "in-review", "changes-requested", "ready", "merged", "closed"]>;
15978
- readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error"]>>;
16944
+ readonly attention: Schema.optional<Schema.Literals<readonly ["needs-you", "stuck", "api-error", "work-not-started"]>>;
15979
16945
  readonly pr: Schema.optional<Schema.Struct<{
15980
16946
  readonly url: Schema.String;
15981
16947
  readonly number: Schema.Number;
15982
16948
  readonly reviewState: Schema.Literals<readonly ["approved", "changes-requested", "review-requested", "commented", "none"]>;
15983
16949
  readonly checks: Schema.Literals<readonly ["green", "red", "pending"]>;
15984
16950
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
15985
- }>>;
16951
+ readonly merged: Schema.optional<Schema.Boolean>;
16952
+ }>>; /** Set when no configured tracker answered: the state is a guess, not a fact. */
16953
+ readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
16954
+ readonly liveAgents: Schema.Number; /** The loop named this id in its newest tick marker's in-flight list. */
16955
+ readonly inTick: Schema.Boolean;
15986
16956
  readonly lastJournal: Schema.NullOr<Schema.Struct<{
15987
16957
  readonly at: Schema.String;
15988
16958
  readonly type: Schema.String;
15989
16959
  readonly source: Schema.optional<Schema.String>;
15990
16960
  }>>;
16961
+ }>>; /** Every live agent on an in-flight issue, by issue then role. */
16962
+ readonly agents: Schema.$Array<Schema.Struct<{
16963
+ readonly issueId: Schema.String;
16964
+ readonly role: Schema.String;
16965
+ readonly harness: Schema.String;
16966
+ readonly model: Schema.String;
16967
+ readonly state: Schema.String;
16968
+ readonly agentId: Schema.optional<Schema.String>;
15991
16969
  }>>;
16970
+ /**
16971
+ * Which list the header counts: `tick` when a running loop named its own
16972
+ * in-flight ids, `census` when the rows are just the feature workspaces.
16973
+ */
16974
+ readonly inFlightSource: Schema.Literals<readonly ["tick", "census"]>;
15992
16975
  readonly orderBook: Schema.NullOr<Schema.Struct<{
15993
16976
  readonly id: Schema.String;
15994
16977
  readonly name: Schema.String;
@@ -16001,7 +16984,7 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
16001
16984
  }>;
16002
16985
  type FlywheelDerivedStatus = typeof FlywheelDerivedStatus.Type;
16003
16986
  declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_SchemaAST0.ParseOptions) => {
16004
- readonly run: "running" | "idle" | "paused";
16987
+ readonly run: "idle" | "running" | "paused";
16005
16988
  readonly conversation: {
16006
16989
  readonly name: string;
16007
16990
  readonly id: number;
@@ -16009,12 +16992,13 @@ declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_S
16009
16992
  readonly model: string | null;
16010
16993
  readonly harness: string | null;
16011
16994
  readonly cwd: string;
16995
+ readonly createdAt: string;
16012
16996
  readonly sessionAlive: boolean;
16013
16997
  } | null;
16014
16998
  readonly lastTick: {
16015
16999
  readonly tick: number;
16016
17000
  readonly pick: string | null;
16017
- readonly phase: "idle" | "park" | "orient" | "pick" | "launch" | "watch" | "stopping";
17001
+ readonly phase: "idle" | "orient" | "pick" | "launch" | "watch" | "park" | "stopping";
16018
17002
  readonly inFlight: readonly string[];
16019
17003
  readonly needsYou: string | null;
16020
17004
  readonly at: string;
@@ -16027,21 +17011,35 @@ declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_S
16027
17011
  };
16028
17012
  readonly inFlight: readonly {
16029
17013
  readonly issueId: string;
17014
+ readonly title: string | null;
16030
17015
  readonly state: "working" | "backlog" | "parked" | "planned" | "in-review" | "changes-requested" | "ready" | "merged" | "closed";
17016
+ readonly liveAgents: number;
17017
+ readonly inTick: boolean;
16031
17018
  readonly lastJournal: {
16032
17019
  readonly at: string;
16033
17020
  readonly type: string;
16034
17021
  readonly source?: string | undefined;
16035
17022
  } | null;
16036
- readonly attention?: "stuck" | "needs-you" | "api-error" | undefined;
17023
+ readonly attention?: "stuck" | "needs-you" | "api-error" | "work-not-started" | undefined;
16037
17024
  readonly pr?: {
16038
17025
  readonly url: string;
16039
17026
  readonly number: number;
16040
17027
  readonly reviewState: "approved" | "changes-requested" | "review-requested" | "commented" | "none";
16041
17028
  readonly checks: "pending" | "green" | "red";
16042
17029
  readonly mergeable: boolean | null;
17030
+ readonly merged?: boolean | undefined;
16043
17031
  } | undefined;
17032
+ readonly trackerUnknown?: true | undefined;
17033
+ }[];
17034
+ readonly agents: readonly {
17035
+ readonly issueId: string;
17036
+ readonly role: string;
17037
+ readonly harness: string;
17038
+ readonly model: string;
17039
+ readonly state: string;
17040
+ readonly agentId?: string | undefined;
16044
17041
  }[];
17042
+ readonly inFlightSource: "tick" | "census";
16045
17043
  readonly orderBook: {
16046
17044
  readonly id: string;
16047
17045
  readonly name: string;
@@ -16149,10 +17147,10 @@ declare const OrderBookIndexEntry: Schema.Struct<{
16149
17147
  //#endregion
16150
17148
  //#region src/context-layers.d.ts
16151
17149
  declare const CONTEXT_LAYER_KINDS: readonly ["global", "project", "workspace"];
16152
- declare const CONTEXT_PREVIEW_HARNESSES: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"];
17150
+ declare const CONTEXT_PREVIEW_HARNESSES: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"];
16153
17151
  declare const ContextLayerKind: Schema.Literals<readonly ["global", "project", "workspace"]>;
16154
17152
  type ContextLayerKind = typeof ContextLayerKind.Type;
16155
- declare const ContextPreviewHarness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
17153
+ declare const ContextPreviewHarness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
16156
17154
  type ContextPreviewHarness = typeof ContextPreviewHarness.Type;
16157
17155
  declare const ContextProjectSummary: Schema.Struct<{
16158
17156
  readonly projectKey: Schema.String;
@@ -16265,7 +17263,7 @@ type ContextLayerDraft = typeof ContextLayerDraft.Type;
16265
17263
  * An Overdeck-owned rendered artifact delivered only to managed sessions.
16266
17264
  */
16267
17265
  declare const ContextSyncTarget: Schema.Struct<{
16268
- readonly harness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
17266
+ readonly harness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
16269
17267
  readonly layerKind: Schema.Literals<readonly ["global", "project"]>;
16270
17268
  readonly projectKey: Schema.optional<Schema.String>; /** Short human label, e.g. "Claude Code · global". */
16271
17269
  readonly label: Schema.String; /** Resolved absolute path of the target file. */
@@ -16316,7 +17314,7 @@ declare const ContextLayersResponse: Schema.Struct<{
16316
17314
  readonly workspacePath: Schema.String;
16317
17315
  }>]>>; /** Overdeck-owned artifacts delivered at managed-session launch. */
16318
17316
  readonly targets: Schema.$Array<Schema.Struct<{
16319
- readonly harness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"]>;
17317
+ readonly harness: Schema.Literals<readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"]>;
16320
17318
  readonly layerKind: Schema.Literals<readonly ["global", "project"]>;
16321
17319
  readonly projectKey: Schema.optional<Schema.String>; /** Short human label, e.g. "Claude Code · global". */
16322
17320
  readonly label: Schema.String; /** Resolved absolute path of the target file. */
@@ -16363,6 +17361,7 @@ declare const ContextHarnessPreviews: Schema.Struct<{
16363
17361
  readonly "kimi-code": Schema.String;
16364
17362
  readonly opencode: Schema.optional<Schema.String>;
16365
17363
  readonly muse: Schema.String;
17364
+ readonly "prime-agent": Schema.String;
16366
17365
  readonly fullPrompt: Schema.String;
16367
17366
  }>;
16368
17367
  type ContextHarnessPreviews = typeof ContextHarnessPreviews.Type;
@@ -16391,6 +17390,7 @@ declare const ContextPreviewResponse: Schema.Struct<{
16391
17390
  readonly "kimi-code": Schema.String;
16392
17391
  readonly opencode: Schema.optional<Schema.String>;
16393
17392
  readonly muse: Schema.String;
17393
+ readonly "prime-agent": Schema.String;
16394
17394
  readonly fullPrompt: Schema.String;
16395
17395
  }>;
16396
17396
  readonly diagnostics: Schema.$Array<Schema.Struct<{
@@ -16474,7 +17474,7 @@ declare const ArtifactHash: Schema.String;
16474
17474
  type ArtifactHash = typeof ArtifactHash.Type;
16475
17475
  declare const ArtifactAgentRole: Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>;
16476
17476
  type ArtifactAgentRole = typeof ArtifactAgentRole.Type;
16477
- declare const ArtifactAgentHarness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>;
17477
+ declare const ArtifactAgentHarness: Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>;
16478
17478
  type ArtifactAgentHarness = typeof ArtifactAgentHarness.Type;
16479
17479
  declare const ArtifactLifecycleState: Schema.Literals<readonly ["published", "pending_changes", "unshared"]>;
16480
17480
  type ArtifactLifecycleState = typeof ArtifactLifecycleState.Type;
@@ -16519,7 +17519,7 @@ declare const ArtifactMetadata: Schema.Struct<{
16519
17519
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16520
17520
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16521
17521
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16522
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17522
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16523
17523
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16524
17524
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16525
17525
  readonly filePath: Schema.String;
@@ -16545,7 +17545,7 @@ declare const ArtifactStatusResponse: Schema.Struct<{
16545
17545
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16546
17546
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16547
17547
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16548
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17548
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16549
17549
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16550
17550
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16551
17551
  readonly filePath: Schema.String;
@@ -16594,7 +17594,7 @@ declare const ArtifactCreateResponse: Schema.Struct<{
16594
17594
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16595
17595
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16596
17596
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16597
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17597
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16598
17598
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16599
17599
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16600
17600
  readonly filePath: Schema.String;
@@ -16644,7 +17644,7 @@ declare const ArtifactPublishResponse: Schema.Struct<{
16644
17644
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16645
17645
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16646
17646
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16647
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17647
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16648
17648
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16649
17649
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16650
17650
  readonly filePath: Schema.String;
@@ -16695,7 +17695,7 @@ declare const ArtifactUnshareResponse: Schema.Struct<{
16695
17695
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16696
17696
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16697
17697
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16698
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17698
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16699
17699
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16700
17700
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16701
17701
  readonly filePath: Schema.String;
@@ -16718,7 +17718,7 @@ declare const ArtifactListEntry: Schema.Struct<{
16718
17718
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16719
17719
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16720
17720
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16721
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17721
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16722
17722
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16723
17723
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16724
17724
  readonly filePath: Schema.String;
@@ -16748,7 +17748,7 @@ declare const ArtifactListResponse: Schema.Struct<{
16748
17748
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16749
17749
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16750
17750
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16751
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17751
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16752
17752
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16753
17753
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16754
17754
  readonly filePath: Schema.String;
@@ -16778,7 +17778,7 @@ declare const ArtifactDetailResponse: Schema.Struct<{
16778
17778
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16779
17779
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16780
17780
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16781
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17781
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16782
17782
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16783
17783
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16784
17784
  readonly filePath: Schema.String;
@@ -16809,7 +17809,7 @@ declare const WorkspaceArtifactsResponse: Schema.Struct<{
16809
17809
  readonly issueId: Schema.optional<Schema.NullOr<Schema.String>>;
16810
17810
  readonly workspaceId: Schema.optional<Schema.NullOr<Schema.String>>;
16811
17811
  readonly agentRole: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["plan", "work", "review", "test", "ship", "flywheel", "user"]>>>;
16812
- readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "user"]>>>;
17812
+ readonly agentHarness: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["claude-code", "pi", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent", "user"]>>>;
16813
17813
  readonly runId: Schema.optional<Schema.NullOr<Schema.String>>;
16814
17814
  readonly sessionId: Schema.optional<Schema.NullOr<Schema.String>>;
16815
17815
  readonly filePath: Schema.String;
@@ -16885,13 +17885,15 @@ interface FeatureRegistryOwnershipUpdate {
16885
17885
  //#region src/harness-behavior.d.ts
16886
17886
  type RuntimeName = Harness;
16887
17887
  type HarnessName = RuntimeName | "pi";
16888
- type HarnessLaunchCommandKind = "claude-code" | "ohmypi-rpc" | "codex-work-tui" | "codex-app-server" | "acp-host" | "kimi-code-tui" | "muse-tui";
16889
- type HarnessDeliveryKind = "pty-supervisor" | "rpc-fifo" | "codex-exec-resume" | "codex-app-server-rpc" | "acp-host-rpc" | "tmux-paste";
16890
- type HarnessReadinessKind = "claude-session-signal" | "ohmypi-ready-file" | "codex-tui-prompt" | "codex-app-server-ready" | "acp-host-ready" | "kimi-session-signal" | "muse-tui-prompt";
16891
- type HarnessTranscriptKind = "claude-jsonl" | "ohmypi-jsonl" | "codex-rollout-jsonl" | "acp-jsonl" | "kimi-wire-jsonl" | "muse-jsonl";
16892
- type HarnessSessionIdSource = "launcher-session-id" | "transcript-jsonl" | "codex-thread-id" | "acp-session-id" | "kimi-session-newest" | "muse-session-log";
16893
- type HarnessContextLayerKind = "claude" | "pi" | "codex" | "acp" | "kimi-code" | "opencode" | "muse";
16894
- type HarnessFeedKind = "claude_code" | "pi" | "codex" | "acp" | "kimi_code" | "muse";
17888
+ type HarnessLaunchCommandKind = "claude-code" | "ohmypi-rpc" | "codex-work-tui" | "codex-app-server" | "acp-host" | "kimi-code-tui" | "muse-tui" | "prime-agent-host";
17889
+ type HarnessDeliveryKind = "pty-supervisor" | "rpc-fifo" | "codex-exec-resume" | "codex-app-server-rpc" | "acp-host-rpc" | "prime-agent-host-rpc" | "tmux-paste";
17890
+ type HarnessReadinessKind = "claude-session-signal" | "ohmypi-ready-file" | "codex-tui-prompt" | "codex-app-server-ready" | "acp-host-ready" | "kimi-session-signal" | "muse-tui-prompt" | "prime-agent-host-ready";
17891
+ type HarnessTranscriptKind = "claude-jsonl" | "ohmypi-jsonl" | "codex-rollout-jsonl" | "acp-jsonl" | "kimi-wire-jsonl" | "muse-jsonl" | "prime-agent-jsonl";
17892
+ type HarnessSessionIdSource = "launcher-session-id" | "transcript-jsonl" | "codex-thread-id" | "acp-session-id" | "kimi-session-newest" | "muse-session-log" | "prime-agent-session-id";
17893
+ type HarnessContextLayerKind = "claude" | "pi" | "codex" | "acp" | "kimi-code" | "opencode" | "muse" | "prime-agent";
17894
+ /** How Overdeck can steer a running turn (PAN-4292): Claude Code send-now keys, the Pi control channel, or null = no steer. */
17895
+ type HarnessSteerKind = "send-now-keys" | "control-channel" | null;
17896
+ type HarnessFeedKind = "claude_code" | "pi" | "codex" | "acp" | "kimi_code" | "muse" | "prime_agent";
16895
17897
  /** Canonical synthetic agent-session identity shared by dashboard client/server. */
16896
17898
  declare function isAgentSessionName(name: string): boolean;
16897
17899
  interface HarnessNativeCommand {
@@ -16918,8 +17920,12 @@ interface HarnessBehavior {
16918
17920
  readonly usesRpcFifo: boolean;
16919
17921
  readonly usesCodexHome: boolean;
16920
17922
  readonly injectsPromptTimeMemory: boolean;
16921
- readonly workAgentMode: "claude-code" | "ohmypi-rpc" | "codex-work-tui" | "codex-app-server" | "acp-host" | "kimi-code-tui" | "muse-tui";
17923
+ readonly workAgentMode: "claude-code" | "ohmypi-rpc" | "codex-work-tui" | "codex-app-server" | "acp-host" | "kimi-code-tui" | "muse-tui" | "prime-agent-host";
16922
17924
  readonly readyTimeoutSeconds: number;
17925
+ /** How a running turn can be steered from Overdeck (PAN-4292). null = no steer. */
17926
+ readonly steerKind: HarnessSteerKind;
17927
+ /** Effort levels this harness accepts, when narrower than the full {@link EFFORT_LEVELS} set. Undefined = no known restriction. */
17928
+ readonly effortLevels?: readonly EffortLevel[];
16923
17929
  }
16924
17930
  declare const CLAUDE_CODE_BEHAVIOR: HarnessBehavior;
16925
17931
  declare const OHMYPI_BEHAVIOR: HarnessBehavior;
@@ -16928,6 +17934,7 @@ declare const ACP_BEHAVIOR: HarnessBehavior;
16928
17934
  declare const KIMI_CODE_BEHAVIOR: HarnessBehavior;
16929
17935
  declare const OPENCODE_BEHAVIOR: HarnessBehavior;
16930
17936
  declare const MUSE_BEHAVIOR: HarnessBehavior;
17937
+ declare const PRIME_AGENT_BEHAVIOR: HarnessBehavior;
16931
17938
  declare function getHarnessBehavior(harness: HarnessName | undefined | null): HarnessBehavior;
16932
17939
  declare function getRuntimeBehavior(runtime: RuntimeName): HarnessBehavior;
16933
17940
  //#endregion
@@ -17372,7 +18379,7 @@ declare function createIssueDelta(previous: readonly unknown[], next: readonly u
17372
18379
  declare function applyIssueDelta(previous: readonly unknown[], delta: IssueDelta): unknown[];
17373
18380
  //#endregion
17374
18381
  //#region src/telemetry.d.ts
17375
- 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"];
18382
+ 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", "github_quota_sample", "github_rate_limited", "instance_heartbeat"];
17376
18383
  type TelemetryEventName = typeof TELEMETRY_EVENT_NAMES[number];
17377
18384
  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"];
17378
18385
  declare const TELEMETRY_PROPERTY_DOMAINS: {
@@ -17388,11 +18395,15 @@ declare const TELEMETRY_PROPERTY_DOMAINS: {
17388
18395
  readonly duration_bucket: readonly ["under_100ms", "100ms-999ms", "1s-9s", "10s+"];
17389
18396
  readonly forge: readonly ["github", "gitlab"];
17390
18397
  readonly fork_kind: readonly ["summary", "handoff", "plain"];
17391
- readonly harness: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse"];
18398
+ readonly github_caller: readonly ["pipeline_membership", "pr_cache", "pr_sync", "ci_repair", "issue_poller", "close_out", "tracker_client", "app_rest", "quota_sampler", "agent", "other"];
18399
+ readonly harness: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"];
17392
18400
  readonly merge_kind: readonly ["pipeline"];
17393
18401
  readonly model_family: readonly ["claude", "gpt", "gemini", "kimi", "minimax", "glm", "mimo", "other"];
17394
18402
  readonly pipeline_stage: readonly ["work_done", "review_passed", "verification_passed", "merged", "closed_out"];
17395
18403
  readonly project_mode: readonly ["clone", "existing", "new"];
18404
+ readonly quota_points_bucket: readonly ["0", "1-49", "50-199", "200-499", "500-999", "1000-2499", "2500+"];
18405
+ readonly quota_remaining_bucket: readonly ["0", "1-99", "100-499", "500-999", "1000-2499", "2500+", "unknown"];
18406
+ readonly rate_limit_kind: readonly ["primary", "secondary"];
17396
18407
  };
17397
18408
  type TelemetryPropertyDomainName = keyof typeof TELEMETRY_PROPERTY_DOMAINS;
17398
18409
  declare const TELEMETRY_EVENT_CATALOG: {
@@ -17453,6 +18464,43 @@ declare const TELEMETRY_EVENT_CATALOG: {
17453
18464
  readonly harness: "harness";
17454
18465
  readonly model: "model_family";
17455
18466
  };
18467
+ readonly github_quota_sample: {
18468
+ readonly graphql_pipeline_membership: "quota_points_bucket";
18469
+ readonly rest_pipeline_membership: "quota_points_bucket";
18470
+ readonly graphql_pr_cache: "quota_points_bucket";
18471
+ readonly rest_pr_cache: "quota_points_bucket";
18472
+ readonly graphql_pr_sync: "quota_points_bucket";
18473
+ readonly rest_pr_sync: "quota_points_bucket";
18474
+ readonly graphql_ci_repair: "quota_points_bucket";
18475
+ readonly rest_ci_repair: "quota_points_bucket";
18476
+ readonly graphql_issue_poller: "quota_points_bucket";
18477
+ readonly rest_issue_poller: "quota_points_bucket";
18478
+ readonly graphql_close_out: "quota_points_bucket";
18479
+ readonly rest_close_out: "quota_points_bucket";
18480
+ readonly graphql_tracker_client: "quota_points_bucket";
18481
+ readonly rest_tracker_client: "quota_points_bucket";
18482
+ readonly graphql_app_rest: "quota_points_bucket";
18483
+ readonly rest_app_rest: "quota_points_bucket";
18484
+ readonly graphql_agent: "quota_points_bucket";
18485
+ readonly rest_agent: "quota_points_bucket";
18486
+ readonly graphql_other: "quota_points_bucket";
18487
+ readonly rest_other: "quota_points_bucket";
18488
+ readonly graphql_unattributed: "quota_points_bucket";
18489
+ readonly min_remaining_graphql: "quota_remaining_bucket";
18490
+ readonly min_remaining_rest: "quota_remaining_bucket";
18491
+ readonly primary_limit_errors: "count_bucket";
18492
+ readonly secondary_limit_errors: "count_bucket";
18493
+ };
18494
+ readonly github_rate_limited: {
18495
+ readonly caller: "github_caller";
18496
+ readonly kind: "rate_limit_kind";
18497
+ readonly own_usage_low: "boolean";
18498
+ };
18499
+ readonly instance_heartbeat: {
18500
+ readonly project_count: "count_bucket";
18501
+ readonly active_agent_count: "count_bucket";
18502
+ readonly dashboard_running: "boolean";
18503
+ };
17456
18504
  };
17457
18505
  type TelemetryPropertyValue<Domain extends TelemetryPropertyDomainName> = (typeof TELEMETRY_PROPERTY_DOMAINS)[Domain][number];
17458
18506
  type EventProperties<Event extends TelemetryEventName> = { readonly [Property in keyof (typeof TELEMETRY_EVENT_CATALOG)[Event]]: TelemetryPropertyValue<(typeof TELEMETRY_EVENT_CATALOG)[Event][Property] & TelemetryPropertyDomainName> };
@@ -17477,6 +18525,16 @@ type AgentQuestionAnsweredProperties = EventProperties<"agent_question_answered"
17477
18525
  type ServerBootProperties = EventProperties<"server_boot">;
17478
18526
  type CliCommandRunProperties = EventProperties<"cli_command_run">;
17479
18527
  type PipelineStageChangedProperties = EventProperties<"pipeline_stage_changed">;
18528
+ type GitHubQuotaSampleProperties = EventProperties<"github_quota_sample">;
18529
+ type GitHubRateLimitedProperties = EventProperties<"github_rate_limited">;
18530
+ type InstanceHeartbeatProperties = EventProperties<"instance_heartbeat">;
18531
+ type TelemetryQuotaPointsBucket = TelemetryPropertyValue<"quota_points_bucket">;
18532
+ type TelemetryQuotaRemainingBucket = TelemetryPropertyValue<"quota_remaining_bucket">;
18533
+ type TelemetryGitHubCaller = TelemetryPropertyValue<"github_caller">;
18534
+ /** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
18535
+ declare function bucketQuotaPoints(points: number): TelemetryQuotaPointsBucket;
18536
+ /** PAN-4264: GitHub quota remaining as a coarse bucket; `unknown` without a sample. */
18537
+ declare function bucketQuotaRemaining(remaining: number | undefined): TelemetryQuotaRemainingBucket;
17480
18538
  type TelemetryEventProperties = { readonly [Event in TelemetryEventName]: EventProperties<Event> };
17481
18539
  type TelemetryPropertiesFor<Event extends TelemetryEventName> = TelemetryEventProperties[Event];
17482
18540
  //#endregion
@@ -17811,6 +18869,12 @@ declare const DirectoryPause: Schema.Struct<{
17811
18869
  readonly since: Schema.NullOr<Schema.String>;
17812
18870
  }>;
17813
18871
  type DirectoryPause = typeof DirectoryPause.Type;
18872
+ /** A provider error (billing, usage limit, ...) detected at the end of a transcript (PAN-4222). */
18873
+ declare const DirectoryProviderError: Schema.Struct<{
18874
+ readonly message: Schema.String;
18875
+ readonly at: Schema.String;
18876
+ }>;
18877
+ type DirectoryProviderError = typeof DirectoryProviderError.Type;
17814
18878
  declare const DirectoryEntry: Schema.Struct<{
17815
18879
  readonly id: Schema.String;
17816
18880
  readonly kind: Schema.Literals<readonly ["agent", "conversation", "subagent", "external"]>;
@@ -17847,6 +18911,21 @@ declare const DirectoryEntry: Schema.Struct<{
17847
18911
  readonly by: Schema.Literals<readonly ["operator", "scheduler", "machine"]>;
17848
18912
  readonly reason: Schema.NullOr<Schema.String>;
17849
18913
  readonly since: Schema.NullOr<Schema.String>;
18914
+ }>>; /** PAN-4223: gauntlet lane facts; conversation entries that are lanes only. */
18915
+ readonly lane: Schema.optional<Schema.Struct<{
18916
+ readonly run: Schema.String;
18917
+ readonly key: Schema.String;
18918
+ readonly role: Schema.String;
18919
+ readonly iteration: Schema.Number;
18920
+ readonly reportStatus: Schema.NullOr<Schema.Literals<readonly ["done", "blocked", "failed"]>>; /** Critic/verifier: its verdict (or `pending`); builder: the newest critic verdict. */
18921
+ readonly verdict: Schema.optional<Schema.NullOr<Schema.String>>; /** Critic/verifier: the judged builder's legacy conversation id. */
18922
+ readonly criticOf: Schema.optional<Schema.Number>;
18923
+ }>>; /** PAN-4223: the predecessor's legacy conversation id; successors only (links to /conv/<id>). */
18924
+ readonly continuesFrom: Schema.optional<Schema.Number>; /** The id runtime events (agentRuntimeById) are keyed under, when it differs from `id` (PAN-4222). */
18925
+ readonly runtimeId: Schema.optional<Schema.String>; /** A provider error detected at the transcript's end, conversations only (PAN-4222). */
18926
+ readonly providerError: Schema.optional<Schema.Struct<{
18927
+ readonly message: Schema.String;
18928
+ readonly at: Schema.String;
17850
18929
  }>>;
17851
18930
  }>;
17852
18931
  type DirectoryEntry = typeof DirectoryEntry.Type;
@@ -17896,6 +18975,21 @@ declare const AgentDirectoryResponse: Schema.Struct<{
17896
18975
  readonly by: Schema.Literals<readonly ["operator", "scheduler", "machine"]>;
17897
18976
  readonly reason: Schema.NullOr<Schema.String>;
17898
18977
  readonly since: Schema.NullOr<Schema.String>;
18978
+ }>>; /** PAN-4223: gauntlet lane facts; conversation entries that are lanes only. */
18979
+ readonly lane: Schema.optional<Schema.Struct<{
18980
+ readonly run: Schema.String;
18981
+ readonly key: Schema.String;
18982
+ readonly role: Schema.String;
18983
+ readonly iteration: Schema.Number;
18984
+ readonly reportStatus: Schema.NullOr<Schema.Literals<readonly ["done", "blocked", "failed"]>>; /** Critic/verifier: its verdict (or `pending`); builder: the newest critic verdict. */
18985
+ readonly verdict: Schema.optional<Schema.NullOr<Schema.String>>; /** Critic/verifier: the judged builder's legacy conversation id. */
18986
+ readonly criticOf: Schema.optional<Schema.Number>;
18987
+ }>>; /** PAN-4223: the predecessor's legacy conversation id; successors only (links to /conv/<id>). */
18988
+ readonly continuesFrom: Schema.optional<Schema.Number>; /** The id runtime events (agentRuntimeById) are keyed under, when it differs from `id` (PAN-4222). */
18989
+ readonly runtimeId: Schema.optional<Schema.String>; /** A provider error detected at the transcript's end, conversations only (PAN-4222). */
18990
+ readonly providerError: Schema.optional<Schema.Struct<{
18991
+ readonly message: Schema.String;
18992
+ readonly at: Schema.String;
17899
18993
  }>>;
17900
18994
  }>>;
17901
18995
  }>;
@@ -18142,5 +19236,93 @@ declare function repoFromRemoteUrl(remote: string | null | undefined): PullReque
18142
19236
  /** True when the ref's host and repository match one of the configured repos. */
18143
19237
  declare function isConfiguredPullRequestRepo(ref: PullRequestKey, repos: readonly PullRequestRepo[]): boolean;
18144
19238
  //#endregion
18145
- export { ACP_BEHAVIOR, AGENT_ROLES, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRole, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, AgentStartedEvent, AgentState, 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, BackendAgentSnapshot, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CODEX_BEHAVIOR, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, CompactBoundary, CompanionTerminalKind, CompanionTerminalOwnerShape, CompanionTerminalState, CompanionTerminalUnavailableReason, 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, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationTitleChangedEvent, CostEventRecordedEvent, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardLifecycleState, DashboardSnapshot, DashboardTabViewedProperties, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrState, DerivedProjectCi, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryPause, DirectoryPauseBy, DirectoryScope, DirectoryTranscriptRef, 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, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelScopeValue, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, ForceMergeTriggeredProperties, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GlobalContextLayerRecord, GlobalContextLayerTarget, HOOK_INVENTORY, Harness, HarnessBehavior, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessTranscriptKind, HealthReason, HealthState, HookInventoryEntry, HookInventoryName, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, IssueAttention, IssueClosedOutProperties, IssueDelta, IssueId, IssueMergedProperties, IssuePipelineMembership, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KNOWN_HARNESSES, 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, MUSE_BEHAVIOR, MembershipUnavailableReason, MemoryAgentRole, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, OHMYPI_BEHAVIOR, OPENCODE_BEHAVIOR, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PIPELINE_MEMBERSHIP_LOADING_CODE, PanRpcError, PanRpcGroup, PaneTokens, ParsedPullRequestRef, PendingTurn, PipelineBucket, PipelineMembershipLoadingBody, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlanApprovedProperties, PlanChangesRequestedProperties, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiState, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectCreatedProperties, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestForge, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestRepo, PullRequestSnapshot, PullRequestState, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, ReplayEventsRpc, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResolvedChannelPermissionDecision, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, 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, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TelemetryCliVerb, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TerminalBackendName, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, UnwiredHookInventoryEntry, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WiredHookInventoryEntry, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, canonicalPullRequestUrl, companionTerminalKindFor, compareIssueIds, createIssueDelta, decodeFlywheelDerivedStatus, decodeFlywheelStats, deriveProjectCi, encodeFlywheelStats, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isIssueAttention, isIssueState, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, normalizeChannelReplyPayload, omitTurnDiffSummariesForAgent, parsePullRequestRef, projectLegacySystemHealthSummary, repoFromRemoteUrl, resolveEffectivePullRequest, syncSnapshot, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
19239
+ //#region src/conversation-rows.d.ts
19240
+ /**
19241
+ * Conversation-row classifiers shared by the dashboard server (`src/lib`) and
19242
+ * the frontend (PAN-4301). One rule per question: which rows are singleton
19243
+ * runners, and what a lane conversation is doing right now (D10).
19244
+ */
19245
+ /** Singleton runners spawn under their bare id (see src/lib/agents/identity.ts normalizeAgentId). */
19246
+ declare const SINGLETON_AGENT_IDS: ReadonlySet<string>;
19247
+ declare function isSingletonConversation(row: {
19248
+ name: string;
19249
+ issueId?: string | null;
19250
+ }): boolean;
19251
+ type LaneActivity = "failed-to-start" | "needs-you" | "working" | "idle" | "starting" | "stopped";
19252
+ /** D10 `starting`: not alive, not ended, created less than this long ago. */
19253
+ declare const LANE_STARTING_GRACE_MS: number;
19254
+ interface LaneActivityInput {
19255
+ archivedAt?: string | null;
19256
+ spawnError?: string | null;
19257
+ status?: "active" | "ended" | string | null;
19258
+ createdAt: string;
19259
+ sessionAlive?: boolean;
19260
+ isWorking?: boolean;
19261
+ pendingInputCount?: number;
19262
+ }
19263
+ /** D10, first match wins. */
19264
+ declare function laneActivityOf(row: LaneActivityInput, now: number): LaneActivity;
19265
+ //#endregion
19266
+ //#region src/environment.d.ts
19267
+ /** Wire protocol version a client and server must agree on. */
19268
+ declare const ENVIRONMENT_PROTOCOL_VERSION = 1;
19269
+ declare const EnvironmentId: Schema.brand<Schema.String, "EnvironmentId">;
19270
+ type EnvironmentId = typeof EnvironmentId.Type;
19271
+ declare const EnvironmentCapabilities: Schema.Struct<{
19272
+ /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
19273
+ readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
19274
+ readonly terminalAuth: Schema.Boolean;
19275
+ }>;
19276
+ type EnvironmentCapabilities = typeof EnvironmentCapabilities.Type;
19277
+ declare const EnvironmentDescriptor: Schema.Struct<{
19278
+ readonly descriptorVersion: Schema.Literal<1>;
19279
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19280
+ readonly label: Schema.String;
19281
+ readonly platform: Schema.Struct<{
19282
+ readonly os: Schema.String;
19283
+ readonly arch: Schema.String;
19284
+ }>; /** Exact package version of the serving Overdeck. */
19285
+ readonly serverVersion: Schema.String; /** The server's `ENVIRONMENT_PROTOCOL_VERSION`. */
19286
+ readonly protocolVersion: Schema.Number;
19287
+ readonly capabilities: Schema.Struct<{
19288
+ /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
19289
+ readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
19290
+ readonly terminalAuth: Schema.Boolean;
19291
+ }>;
19292
+ }>;
19293
+ type EnvironmentDescriptor = typeof EnvironmentDescriptor.Type;
19294
+ /** A server-local id qualified by the environment that owns it. */
19295
+ declare const ScopedRef: <A extends Schema.Top>(localId: A) => Schema.Struct<{
19296
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19297
+ readonly localId: A;
19298
+ }>;
19299
+ declare const ScopedProjectRef: Schema.Struct<{
19300
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19301
+ readonly localId: Schema.String;
19302
+ }>;
19303
+ type ScopedProjectRef = typeof ScopedProjectRef.Type;
19304
+ declare const ScopedIssueRef: Schema.Struct<{
19305
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19306
+ readonly localId: Schema.String;
19307
+ }>;
19308
+ type ScopedIssueRef = typeof ScopedIssueRef.Type;
19309
+ declare const ScopedAgentRef: Schema.Struct<{
19310
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19311
+ readonly localId: Schema.String;
19312
+ }>;
19313
+ type ScopedAgentRef = typeof ScopedAgentRef.Type;
19314
+ declare const ScopedConversationRef: Schema.Struct<{
19315
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19316
+ readonly localId: Schema.String;
19317
+ }>;
19318
+ type ScopedConversationRef = typeof ScopedConversationRef.Type;
19319
+ declare const ScopedTerminalRef: Schema.Struct<{
19320
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
19321
+ readonly localId: Schema.String;
19322
+ }>;
19323
+ type ScopedTerminalRef = typeof ScopedTerminalRef.Type;
19324
+ /** True only when the server speaks exactly the client's protocol version. */
19325
+ declare function isProtocolCompatible(descriptor: Pick<EnvironmentDescriptor, "protocolVersion">, clientProtocolVersion: number): boolean;
19326
+ //#endregion
19327
+ export { ACP_BEHAVIOR, AGENT_ROLES, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRole, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, AgentStartedEvent, AgentState, 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, BackendAgentSnapshot, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CODEX_BEHAVIOR, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, CompactBoundary, CompanionTerminalKind, CompanionTerminalOwnerShape, CompanionTerminalState, CompanionTerminalUnavailableReason, 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, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationTitleChangedEvent, CostEventRecordedEvent, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardLifecycleState, DashboardSnapshot, DashboardTabViewedProperties, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrState, DerivedProjectCi, DerivedWorkStart, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryPause, DirectoryPauseBy, DirectoryProviderError, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EditorEntry, EditorId, EditorIdSchema, EffortLevel, EffortLevelSchema, EffortSource, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExtractionProviderConfig, ExtractionProviderTarget, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelScopeValue, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, ForceMergeTriggeredProperties, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSampleProperties, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GitHubRateLimitedProperties, GlobalContextLayerRecord, GlobalContextLayerTarget, HOOK_INVENTORY, Harness, HarnessBehavior, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessSteerKind, HarnessTranscriptKind, HealthReason, HealthState, HookInventoryEntry, HookInventoryName, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, InstanceHeartbeatProperties, IssueAttention, IssueClosedOutProperties, IssueDelta, IssueId, IssueMergedProperties, IssuePipelineMembership, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LaneActivity, LaneActivityInput, 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, MUSE_BEHAVIOR, MembershipUnavailableReason, MemoryAgentRole, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, OHMYPI_BEHAVIOR, OPENCODE_BEHAVIOR, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PanRpcError, PanRpcGroup, PaneTokens, ParsedPullRequestRef, PendingTurn, PipelineBucket, PipelineMembershipLoadingBody, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlanApprovedProperties, PlanChangesRequestedProperties, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiState, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectCreatedProperties, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestForge, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestRepo, PullRequestSnapshot, PullRequestState, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, ReplayEventsRpc, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResolvedChannelPermissionDecision, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RuntimeName, SINGLETON_AGENT_IDS, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SequenceNumber, ServerBootProperties, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TelemetryCliVerb, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryGitHubCaller, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TelemetryQuotaPointsBucket, TelemetryQuotaRemainingBucket, TerminalBackendName, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, UnwiredHookInventoryEntry, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WiredHookInventoryEntry, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, bucketQuotaPoints, bucketQuotaRemaining, canonicalPullRequestUrl, companionTerminalKindFor, compareEffort, compareIssueIds, createIssueDelta, decodeFlywheelDerivedStatus, decodeFlywheelStats, deriveProjectCi, encodeFlywheelStats, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, normalizeChannelReplyPayload, omitTurnDiffSummariesForAgent, paneAgentKey, parsePullRequestRef, projectLegacySystemHealthSummary, repoFromRemoteUrl, resolveEffectivePullRequest, syncSnapshot, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
18146
19328
  //# sourceMappingURL=index.d.ts.map