@overdeck/contracts 0.73.1 → 0.74.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
@@ -227,6 +227,7 @@ declare const AgentSnapshot: Schema.Struct<{
227
227
  readonly needsAnswer: Schema.Boolean;
228
228
  readonly model: Schema.String;
229
229
  }>>;
230
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
230
231
  }>;
231
232
  type AgentSnapshot = typeof AgentSnapshot.Type;
232
233
  /** PAN-3151: A recorded cycle in the review convergence tracking series */
@@ -369,6 +370,18 @@ declare const RestartGateOutcome: Schema.Struct<{
369
370
  readonly at: Schema.String;
370
371
  }>;
371
372
  type RestartGateOutcome = typeof RestartGateOutcome.Type;
373
+ /**
374
+ * The operator restart hold (PAN-5007), set by `pan restart hold` and lifted by
375
+ * `pan restart release` or its `until` time. While it is active every reload,
376
+ * restart and restart-gate approval refuses.
377
+ */
378
+ declare const RestartHold: Schema.Struct<{
379
+ readonly reason: Schema.String;
380
+ readonly who: Schema.String;
381
+ readonly setAt: Schema.String;
382
+ readonly until: Schema.optional<Schema.String>;
383
+ }>;
384
+ type RestartHold = typeof RestartHold.Type;
372
385
  /**
373
386
  * The operator-facing view of the restart gate — identical to the body of
374
387
  * `GET /api/restart-gate`, so the banner and the CLI read the same shape.
@@ -376,6 +389,7 @@ type RestartGateOutcome = typeof RestartGateOutcome.Type;
376
389
  * `idle` no live requests; `pending` requests are waiting for approval;
377
390
  * `approved` the operator approved an epoch that nobody has claimed yet;
378
391
  * `claimed` one requester holds the exclusive right to perform the restart.
392
+ * `restartHold` is present while an operator restart hold is active.
379
393
  */
380
394
  declare const RestartGateSnapshot: Schema.Struct<{
381
395
  readonly status: Schema.Literals<readonly ["idle", "pending", "approved", "claimed"]>;
@@ -390,6 +404,12 @@ declare const RestartGateSnapshot: Schema.Struct<{
390
404
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
391
405
  readonly at: Schema.String;
392
406
  }>>;
407
+ readonly restartHold: Schema.optional<Schema.Struct<{
408
+ readonly reason: Schema.String;
409
+ readonly who: Schema.String;
410
+ readonly setAt: Schema.String;
411
+ readonly until: Schema.optional<Schema.String>;
412
+ }>>;
393
413
  }>;
394
414
  type RestartGateSnapshot = typeof RestartGateSnapshot.Type;
395
415
  declare const DashboardSnapshot: Schema.Struct<{
@@ -462,6 +482,7 @@ declare const DashboardSnapshot: Schema.Struct<{
462
482
  readonly needsAnswer: Schema.Boolean;
463
483
  readonly model: Schema.String;
464
484
  }>>;
485
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
465
486
  }>>;
466
487
  readonly specialists: Schema.$Array<Schema.Unknown>; /** PAN-3917 FR-6: the derived pipeline state of every known issue. */
467
488
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
@@ -619,6 +640,12 @@ declare const DashboardSnapshot: Schema.Struct<{
619
640
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
620
641
  readonly at: Schema.String;
621
642
  }>>;
643
+ readonly restartHold: Schema.optional<Schema.Struct<{
644
+ readonly reason: Schema.String;
645
+ readonly who: Schema.String;
646
+ readonly setAt: Schema.String;
647
+ readonly until: Schema.optional<Schema.String>;
648
+ }>>;
622
649
  }>>; /** PAN-4264 — GitHub API quota use, samples and pauses; derived, never stored. */
623
650
  readonly githubQuota: Schema.optional<Schema.Struct<{
624
651
  readonly generatedAt: Schema.String;
@@ -1165,6 +1192,12 @@ declare const RestartGateChangedEvent: Schema.Struct<{
1165
1192
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
1166
1193
  readonly at: Schema.String;
1167
1194
  }>>;
1195
+ readonly restartHold: Schema.optional<Schema.Struct<{
1196
+ readonly reason: Schema.String;
1197
+ readonly who: Schema.String;
1198
+ readonly setAt: Schema.String;
1199
+ readonly until: Schema.optional<Schema.String>;
1200
+ }>>;
1168
1201
  }>;
1169
1202
  }>;
1170
1203
  type RestartGateChangedEvent = typeof RestartGateChangedEvent.Type;
@@ -1319,6 +1352,7 @@ declare const AgentStartedEvent: Schema.Struct<{
1319
1352
  readonly needsAnswer: Schema.Boolean;
1320
1353
  readonly model: Schema.String;
1321
1354
  }>>;
1355
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
1322
1356
  }>;
1323
1357
  }>;
1324
1358
  }>;
@@ -1503,6 +1537,7 @@ declare const AgentEnrichmentChangedEvent: Schema.Struct<{
1503
1537
  readonly needsAnswer: Schema.Boolean;
1504
1538
  readonly model: Schema.String;
1505
1539
  }>>;
1540
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
1506
1541
  }>;
1507
1542
  }>;
1508
1543
  type AgentEnrichmentChangedEvent = typeof AgentEnrichmentChangedEvent.Type;
@@ -1579,6 +1614,7 @@ declare const AgentCreatedEvent: Schema.Struct<{
1579
1614
  readonly needsAnswer: Schema.Boolean;
1580
1615
  readonly model: Schema.String;
1581
1616
  }>>;
1617
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
1582
1618
  }>;
1583
1619
  }>;
1584
1620
  }>;
@@ -3032,6 +3068,12 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3032
3068
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
3033
3069
  readonly at: Schema.String;
3034
3070
  }>>;
3071
+ readonly restartHold: Schema.optional<Schema.Struct<{
3072
+ readonly reason: Schema.String;
3073
+ readonly who: Schema.String;
3074
+ readonly setAt: Schema.String;
3075
+ readonly until: Schema.optional<Schema.String>;
3076
+ }>>;
3035
3077
  }>;
3036
3078
  }>, Schema.Struct<{
3037
3079
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -3163,6 +3205,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3163
3205
  readonly needsAnswer: Schema.Boolean;
3164
3206
  readonly model: Schema.String;
3165
3207
  }>>;
3208
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
3166
3209
  }>;
3167
3210
  }>;
3168
3211
  }>, Schema.Struct<{
@@ -3207,6 +3250,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3207
3250
  readonly needsAnswer: Schema.Boolean;
3208
3251
  readonly model: Schema.String;
3209
3252
  }>>;
3253
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
3210
3254
  }>;
3211
3255
  }>, Schema.Struct<{
3212
3256
  readonly type: Schema.Literal<"agent.started">;
@@ -3280,6 +3324,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3280
3324
  readonly needsAnswer: Schema.Boolean;
3281
3325
  readonly model: Schema.String;
3282
3326
  }>>;
3327
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
3283
3328
  }>;
3284
3329
  }>;
3285
3330
  }>, Schema.Struct<{
@@ -5063,6 +5108,12 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5063
5108
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
5064
5109
  readonly at: Schema.String;
5065
5110
  }>>;
5111
+ readonly restartHold: Schema.optional<Schema.Struct<{
5112
+ readonly reason: Schema.String;
5113
+ readonly who: Schema.String;
5114
+ readonly setAt: Schema.String;
5115
+ readonly until: Schema.optional<Schema.String>;
5116
+ }>>;
5066
5117
  }>;
5067
5118
  }>, Schema.Struct<{
5068
5119
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -5194,6 +5245,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5194
5245
  readonly needsAnswer: Schema.Boolean;
5195
5246
  readonly model: Schema.String;
5196
5247
  }>>;
5248
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
5197
5249
  }>;
5198
5250
  }>;
5199
5251
  }>, Schema.Struct<{
@@ -5238,6 +5290,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5238
5290
  readonly needsAnswer: Schema.Boolean;
5239
5291
  readonly model: Schema.String;
5240
5292
  }>>;
5293
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
5241
5294
  }>;
5242
5295
  }>, Schema.Struct<{
5243
5296
  readonly type: Schema.Literal<"agent.started">;
@@ -5311,6 +5364,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5311
5364
  readonly needsAnswer: Schema.Boolean;
5312
5365
  readonly model: Schema.String;
5313
5366
  }>>;
5367
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
5314
5368
  }>;
5315
5369
  }>;
5316
5370
  }>, Schema.Struct<{
@@ -6593,6 +6647,12 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6593
6647
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
6594
6648
  readonly at: Schema.String;
6595
6649
  }>>;
6650
+ readonly restartHold: Schema.optional<Schema.Struct<{
6651
+ readonly reason: Schema.String;
6652
+ readonly who: Schema.String;
6653
+ readonly setAt: Schema.String;
6654
+ readonly until: Schema.optional<Schema.String>;
6655
+ }>>;
6596
6656
  }>;
6597
6657
  }>, Schema.Struct<{
6598
6658
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -6724,6 +6784,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6724
6784
  readonly needsAnswer: Schema.Boolean;
6725
6785
  readonly model: Schema.String;
6726
6786
  }>>;
6787
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
6727
6788
  }>;
6728
6789
  }>;
6729
6790
  }>, Schema.Struct<{
@@ -6768,6 +6829,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6768
6829
  readonly needsAnswer: Schema.Boolean;
6769
6830
  readonly model: Schema.String;
6770
6831
  }>>;
6832
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
6771
6833
  }>;
6772
6834
  }>, Schema.Struct<{
6773
6835
  readonly type: Schema.Literal<"agent.started">;
@@ -6841,6 +6903,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6841
6903
  readonly needsAnswer: Schema.Boolean;
6842
6904
  readonly model: Schema.String;
6843
6905
  }>>;
6906
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
6844
6907
  }>;
6845
6908
  }>;
6846
6909
  }>, Schema.Struct<{
@@ -8138,6 +8201,7 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
8138
8201
  readonly needsAnswer: Schema.Boolean;
8139
8202
  readonly model: Schema.String;
8140
8203
  }>>;
8204
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
8141
8205
  }>>;
8142
8206
  readonly specialists: Schema.$Array<Schema.Unknown>;
8143
8207
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
@@ -8295,6 +8359,12 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
8295
8359
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
8296
8360
  readonly at: Schema.String;
8297
8361
  }>>;
8362
+ readonly restartHold: Schema.optional<Schema.Struct<{
8363
+ readonly reason: Schema.String;
8364
+ readonly who: Schema.String;
8365
+ readonly setAt: Schema.String;
8366
+ readonly until: Schema.optional<Schema.String>;
8367
+ }>>;
8298
8368
  }>>;
8299
8369
  readonly githubQuota: Schema.optional<Schema.Struct<{
8300
8370
  readonly generatedAt: Schema.String;
@@ -8420,6 +8490,12 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8420
8490
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
8421
8491
  readonly at: Schema.String;
8422
8492
  }>>;
8493
+ readonly restartHold: Schema.optional<Schema.Struct<{
8494
+ readonly reason: Schema.String;
8495
+ readonly who: Schema.String;
8496
+ readonly setAt: Schema.String;
8497
+ readonly until: Schema.optional<Schema.String>;
8498
+ }>>;
8423
8499
  }>;
8424
8500
  }>, Schema.Struct<{
8425
8501
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -8551,6 +8627,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8551
8627
  readonly needsAnswer: Schema.Boolean;
8552
8628
  readonly model: Schema.String;
8553
8629
  }>>;
8630
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
8554
8631
  }>;
8555
8632
  }>;
8556
8633
  }>, Schema.Struct<{
@@ -8595,6 +8672,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8595
8672
  readonly needsAnswer: Schema.Boolean;
8596
8673
  readonly model: Schema.String;
8597
8674
  }>>;
8675
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
8598
8676
  }>;
8599
8677
  }>, Schema.Struct<{
8600
8678
  readonly type: Schema.Literal<"agent.started">;
@@ -8668,6 +8746,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8668
8746
  readonly needsAnswer: Schema.Boolean;
8669
8747
  readonly model: Schema.String;
8670
8748
  }>>;
8749
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
8671
8750
  }>;
8672
8751
  }>;
8673
8752
  }>, Schema.Struct<{
@@ -9953,6 +10032,12 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
9953
10032
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
9954
10033
  readonly at: Schema.String;
9955
10034
  }>>;
10035
+ readonly restartHold: Schema.optional<Schema.Struct<{
10036
+ readonly reason: Schema.String;
10037
+ readonly who: Schema.String;
10038
+ readonly setAt: Schema.String;
10039
+ readonly until: Schema.optional<Schema.String>;
10040
+ }>>;
9956
10041
  }>;
9957
10042
  }>, Schema.Struct<{
9958
10043
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -10084,6 +10169,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10084
10169
  readonly needsAnswer: Schema.Boolean;
10085
10170
  readonly model: Schema.String;
10086
10171
  }>>;
10172
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
10087
10173
  }>;
10088
10174
  }>;
10089
10175
  }>, Schema.Struct<{
@@ -10128,6 +10214,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10128
10214
  readonly needsAnswer: Schema.Boolean;
10129
10215
  readonly model: Schema.String;
10130
10216
  }>>;
10217
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
10131
10218
  }>;
10132
10219
  }>, Schema.Struct<{
10133
10220
  readonly type: Schema.Literal<"agent.started">;
@@ -10201,6 +10288,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10201
10288
  readonly needsAnswer: Schema.Boolean;
10202
10289
  readonly model: Schema.String;
10203
10290
  }>>;
10291
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
10204
10292
  }>;
10205
10293
  }>;
10206
10294
  }>, Schema.Struct<{
@@ -12215,6 +12303,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12215
12303
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
12216
12304
  readonly at: Schema.String;
12217
12305
  }>>;
12306
+ readonly restartHold: Schema.optional<Schema.Struct<{
12307
+ readonly reason: Schema.String;
12308
+ readonly who: Schema.String;
12309
+ readonly setAt: Schema.String;
12310
+ readonly until: Schema.optional<Schema.String>;
12311
+ }>>;
12218
12312
  }>;
12219
12313
  }>, Schema.Struct<{
12220
12314
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -12346,6 +12440,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12346
12440
  readonly needsAnswer: Schema.Boolean;
12347
12441
  readonly model: Schema.String;
12348
12442
  }>>;
12443
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
12349
12444
  }>;
12350
12445
  }>;
12351
12446
  }>, Schema.Struct<{
@@ -12390,6 +12485,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12390
12485
  readonly needsAnswer: Schema.Boolean;
12391
12486
  readonly model: Schema.String;
12392
12487
  }>>;
12488
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
12393
12489
  }>;
12394
12490
  }>, Schema.Struct<{
12395
12491
  readonly type: Schema.Literal<"agent.started">;
@@ -12463,6 +12559,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12463
12559
  readonly needsAnswer: Schema.Boolean;
12464
12560
  readonly model: Schema.String;
12465
12561
  }>>;
12562
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
12466
12563
  }>;
12467
12564
  }>;
12468
12565
  }>, Schema.Struct<{
@@ -13743,6 +13840,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13743
13840
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
13744
13841
  readonly at: Schema.String;
13745
13842
  }>>;
13843
+ readonly restartHold: Schema.optional<Schema.Struct<{
13844
+ readonly reason: Schema.String;
13845
+ readonly who: Schema.String;
13846
+ readonly setAt: Schema.String;
13847
+ readonly until: Schema.optional<Schema.String>;
13848
+ }>>;
13746
13849
  }>;
13747
13850
  }>, Schema.Struct<{
13748
13851
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -13874,6 +13977,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13874
13977
  readonly needsAnswer: Schema.Boolean;
13875
13978
  readonly model: Schema.String;
13876
13979
  }>>;
13980
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
13877
13981
  }>;
13878
13982
  }>;
13879
13983
  }>, Schema.Struct<{
@@ -13918,6 +14022,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13918
14022
  readonly needsAnswer: Schema.Boolean;
13919
14023
  readonly model: Schema.String;
13920
14024
  }>>;
14025
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
13921
14026
  }>;
13922
14027
  }>, Schema.Struct<{
13923
14028
  readonly type: Schema.Literal<"agent.started">;
@@ -13991,6 +14096,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13991
14096
  readonly needsAnswer: Schema.Boolean;
13992
14097
  readonly model: Schema.String;
13993
14098
  }>>;
14099
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
13994
14100
  }>;
13995
14101
  }>;
13996
14102
  }>, Schema.Struct<{
@@ -15282,6 +15388,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15282
15388
  readonly needsAnswer: Schema.Boolean;
15283
15389
  readonly model: Schema.String;
15284
15390
  }>>;
15391
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
15285
15392
  }>>;
15286
15393
  readonly specialists: Schema.$Array<Schema.Unknown>;
15287
15394
  readonly derivedIssueStates: Schema.$Array<Schema.Struct<{
@@ -15439,6 +15546,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15439
15546
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
15440
15547
  readonly at: Schema.String;
15441
15548
  }>>;
15549
+ readonly restartHold: Schema.optional<Schema.Struct<{
15550
+ readonly reason: Schema.String;
15551
+ readonly who: Schema.String;
15552
+ readonly setAt: Schema.String;
15553
+ readonly until: Schema.optional<Schema.String>;
15554
+ }>>;
15442
15555
  }>>;
15443
15556
  readonly githubQuota: Schema.optional<Schema.Struct<{
15444
15557
  readonly generatedAt: Schema.String;
@@ -15556,6 +15669,12 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15556
15669
  readonly type: Schema.Literals<readonly ["pruned-unclaimed"]>;
15557
15670
  readonly at: Schema.String;
15558
15671
  }>>;
15672
+ readonly restartHold: Schema.optional<Schema.Struct<{
15673
+ readonly reason: Schema.String;
15674
+ readonly who: Schema.String;
15675
+ readonly setAt: Schema.String;
15676
+ readonly until: Schema.optional<Schema.String>;
15677
+ }>>;
15559
15678
  }>;
15560
15679
  }>, Schema.Struct<{
15561
15680
  readonly type: Schema.Literal<"github_quota.changed">;
@@ -15687,6 +15806,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15687
15806
  readonly needsAnswer: Schema.Boolean;
15688
15807
  readonly model: Schema.String;
15689
15808
  }>>;
15809
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
15690
15810
  }>;
15691
15811
  }>;
15692
15812
  }>, Schema.Struct<{
@@ -15731,6 +15851,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15731
15851
  readonly needsAnswer: Schema.Boolean;
15732
15852
  readonly model: Schema.String;
15733
15853
  }>>;
15854
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
15734
15855
  }>;
15735
15856
  }>, Schema.Struct<{
15736
15857
  readonly type: Schema.Literal<"agent.started">;
@@ -15804,6 +15925,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15804
15925
  readonly needsAnswer: Schema.Boolean;
15805
15926
  readonly model: Schema.String;
15806
15927
  }>>;
15928
+ readonly deftExternalEscalations: Schema.optional<Schema.Number>;
15807
15929
  }>;
15808
15930
  }>;
15809
15931
  }>, Schema.Struct<{
@@ -17854,6 +17976,12 @@ declare function paneAgentKey(pane: BackendPane): string;
17854
17976
  * agent beside its exited pane), a non-exited pane wins, never the reverse.
17855
17977
  */
17856
17978
  declare function indexPanesByAgentKey(panes: Iterable<BackendPane>): Map<string, BackendPane>;
17979
+ /**
17980
+ * Session presence a pane's own state implies (PAN-5011). Herdr `done` is a
17981
+ * finished turn with the harness pane still alive, never an exit, so it maps
17982
+ * to `idle`, not `ended`; only `exited` (no pane left) ends a session.
17983
+ */
17984
+ declare function presenceForPaneState(state: BackendPane["state"]): "active" | "idle" | "ended";
17857
17985
  //#endregion
17858
17986
  //#region src/event-reducers.d.ts
17859
17987
  interface ResolvedChannelPermissionDecision {
@@ -19709,8 +19837,8 @@ type HarnessContextChannel = "append-system-prompt-file" | "append-system-prompt
19709
19837
  type HarnessAttachmentDelivery = "native" | "inline-paths";
19710
19838
  type HarnessBinaryConfigKey = "acp.kimi.binaryPath" | "kimiCode.binaryPath";
19711
19839
  type HarnessLaunchPreflight = "claude-code-model-minimum";
19712
- /** message = an AskUserQuestion answer is sent as a conversation message; pi-ask-modal = keystrokes drive the open ask modal (a queued message would be swallowed). */
19713
- type HarnessAskAnswerDelivery = "message" | "pi-ask-modal";
19840
+ /** message = an AskUserQuestion answer is sent as a conversation message; pi-ask-modal = keystrokes drive the open ask modal (a queued message would be swallowed); codex-approval = answered as a numbered approval prompt (PAN-4944), not a question. */
19841
+ type HarnessAskAnswerDelivery = "message" | "pi-ask-modal" | "codex-approval";
19714
19842
  /** claude-project-hash = resolve via HashResolver; agent-dir = first-message cwd, else the agent dir; first-message-only = first-message cwd, else null. */
19715
19843
  type HarnessWorkspaceResolution = "claude-project-hash" | "agent-dir" | "first-message-only";
19716
19844
  interface HarnessCapabilities {
@@ -19761,8 +19889,10 @@ interface HarnessCapabilities {
19761
19889
  readonly askAnswerDelivery: HarnessAskAnswerDelivery;
19762
19890
  /** A conversation may be started on a Fly machine (pan machines add-fly): Claude Code (PAN-4652) and Codex (PAN-4296). */
19763
19891
  readonly runsOnFlyMachine: boolean;
19892
+ /** Launches get the `overdeck` MCP server with a per-agent token (PAN-4927 D-13): Claude Code (PAN-4932), Codex (PAN-4933 W-INJ2) and the ACP harnesses (PAN-4934). */
19893
+ readonly overdeckMcp: boolean;
19764
19894
  }
19765
- declare const HARNESS_CAPABILITY_KEYS: readonly ["contextChannel", "initialPromptMustLand", "stopRuntimeOnStartFailure", "resumeContractMustLand", "reapsPrivateDaemonOnStop", "attachmentDelivery", "nativeManualCompact", "paneInputGuard", "transcriptDeliveryReceipt", "hostEffortFlag", "binaryLabel", "installHint", "updateArgs", "npmPackage", "binaryConfigKey", "launchPreflight", "workspaceResolution", "correlatesBySessionId", "answersQuestionByMessage", "askAnswerDelivery", "runsOnFlyMachine"];
19895
+ declare const HARNESS_CAPABILITY_KEYS: readonly ["contextChannel", "initialPromptMustLand", "stopRuntimeOnStartFailure", "resumeContractMustLand", "reapsPrivateDaemonOnStop", "attachmentDelivery", "nativeManualCompact", "paneInputGuard", "transcriptDeliveryReceipt", "hostEffortFlag", "binaryLabel", "installHint", "updateArgs", "npmPackage", "binaryConfigKey", "launchPreflight", "workspaceResolution", "correlatesBySessionId", "answersQuestionByMessage", "askAnswerDelivery", "runsOnFlyMachine", "overdeckMcp"];
19766
19896
  declare const CLAUDE_CODE_CAPABILITIES: HarnessCapabilities;
19767
19897
  declare const OHMYPI_CAPABILITIES: HarnessCapabilities;
19768
19898
  declare const CODEX_CAPABILITIES: HarnessCapabilities;
@@ -20275,7 +20405,7 @@ declare function createIssueDelta(previous: readonly unknown[], next: readonly u
20275
20405
  declare function applyIssueDelta(previous: readonly unknown[], delta: IssueDelta): unknown[];
20276
20406
  //#endregion
20277
20407
  //#region src/telemetry.d.ts
20278
- 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"];
20408
+ 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", "machine_link_started", "machine_link_approved", "machine_link_failed", "phone_paired", "phone_removed", "anywhere_channel_opened", "relay_usage_sampled"];
20279
20409
  type TelemetryEventName = typeof TELEMETRY_EVENT_NAMES[number];
20280
20410
  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"];
20281
20411
  declare const TELEMETRY_PROPERTY_DOMAINS: {
@@ -20283,6 +20413,8 @@ declare const TELEMETRY_PROPERTY_DOMAINS: {
20283
20413
  readonly answer_type: readonly ["custom", "selection", "note", "selection+note"];
20284
20414
  readonly auto_merge_variant: readonly ["segmented", "badge"];
20285
20415
  readonly boolean: readonly [false, true];
20416
+ readonly channel_error_class: readonly ["none", "unreachable", "identity_refused", "unknown_peer", "unsupported", "no_relay_plan", "descriptor_failed", "wrong_machine", "heartbeat_failed", "revoked"];
20417
+ readonly channel_route: readonly ["lan", "tailnet", "ssh", "public", "direct", "relay", "stored"];
20286
20418
  readonly cli_verb: readonly ["abort", "approve", "backlog", "backup", "clean", "context", "destroy", "dev", "diff", "doctor", "done", "down", "edit", "finalize", "fork", "handoff", "health", "init", "issues", "kill", "list", "migrate", "mode", "open", "pause", "pending", "plan", "project", "projects", "recover", "reload", "reopen", "request", "reset", "restart", "restore", "resume", "review", "scope", "serve", "show", "skills", "spawn-reviewer", "staffing", "start", "status", "strike", "sync", "sync-main", "tell", "unarchive-conversation", "unpause", "untroubled", "up", "update", "validate", "wipe", "write-sequence", "other"];
20287
20419
  readonly close_out_variant: readonly ["card", "inspector"];
20288
20420
  readonly count_bucket: readonly ["0", "1-2", "3-5", "6-10", "11+"];
@@ -20293,13 +20425,18 @@ declare const TELEMETRY_PROPERTY_DOMAINS: {
20293
20425
  readonly fork_kind: readonly ["summary", "handoff", "plain"];
20294
20426
  readonly github_caller: readonly ["pipeline_membership", "pr_cache", "pr_sync", "ci_repair", "issue_poller", "close_out", "tracker_client", "app_rest", "quota_sampler", "agent", "pr_adoption", "other"];
20295
20427
  readonly harness: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"];
20428
+ readonly link_failure_reason: readonly ["bad_pairing_url", "unreachable", "pairing_refused", "unsupported", "identity_mismatch", "exchange_failed", "grant_refused", "offline", "approval_refused", "approval_failed", "other"];
20429
+ readonly link_method: readonly ["pairing_code", "ssh", "fly", "directory_approval", "other"];
20430
+ readonly link_side: readonly ["requester", "approver"];
20296
20431
  readonly merge_kind: readonly ["pipeline"];
20297
20432
  readonly model_family: readonly ["claude", "gpt", "gemini", "kimi", "minimax", "glm", "mimo", "other"];
20433
+ readonly phone_removed_by: readonly ["operator", "phone"];
20298
20434
  readonly pipeline_stage: readonly ["work_done", "review_passed", "verification_passed", "merged", "closed_out"];
20299
20435
  readonly project_mode: readonly ["clone", "existing", "new"];
20300
20436
  readonly quota_points_bucket: readonly ["0", "1-49", "50-199", "200-499", "500-999", "1000-2499", "2500+"];
20301
20437
  readonly quota_remaining_bucket: readonly ["0", "1-99", "100-499", "500-999", "1000-2499", "2500+", "unknown"];
20302
20438
  readonly rate_limit_kind: readonly ["primary", "secondary"];
20439
+ readonly relay_bytes_bucket: readonly ["under_1mb", "1mb-9mb", "10mb-99mb", "100mb-999mb", "1gb+"];
20303
20440
  };
20304
20441
  type TelemetryPropertyDomainName = keyof typeof TELEMETRY_PROPERTY_DOMAINS;
20305
20442
  declare const TELEMETRY_EVENT_CATALOG: {
@@ -20398,6 +20535,32 @@ declare const TELEMETRY_EVENT_CATALOG: {
20398
20535
  readonly active_agent_count: "count_bucket";
20399
20536
  readonly dashboard_running: "boolean";
20400
20537
  };
20538
+ readonly machine_link_started: {
20539
+ readonly method: "link_method";
20540
+ };
20541
+ readonly machine_link_approved: {
20542
+ readonly method: "link_method";
20543
+ readonly side: "link_side";
20544
+ };
20545
+ readonly machine_link_failed: {
20546
+ readonly method: "link_method";
20547
+ readonly side: "link_side";
20548
+ readonly reason: "link_failure_reason";
20549
+ };
20550
+ readonly phone_paired: {
20551
+ readonly replaced_previous: "boolean";
20552
+ };
20553
+ readonly phone_removed: {
20554
+ readonly by: "phone_removed_by";
20555
+ };
20556
+ readonly anywhere_channel_opened: {
20557
+ readonly route: "channel_route";
20558
+ readonly ok: "boolean";
20559
+ readonly error_class: "channel_error_class";
20560
+ };
20561
+ readonly relay_usage_sampled: {
20562
+ readonly bytes: "relay_bytes_bucket";
20563
+ };
20401
20564
  };
20402
20565
  type TelemetryPropertyValue<Domain extends TelemetryPropertyDomainName> = (typeof TELEMETRY_PROPERTY_DOMAINS)[Domain][number];
20403
20566
  type EventProperties<Event extends TelemetryEventName> = { readonly [Property in keyof (typeof TELEMETRY_EVENT_CATALOG)[Event]]: TelemetryPropertyValue<(typeof TELEMETRY_EVENT_CATALOG)[Event][Property] & TelemetryPropertyDomainName> };
@@ -20425,13 +20588,28 @@ type PipelineStageChangedProperties = EventProperties<"pipeline_stage_changed">;
20425
20588
  type GitHubQuotaSampleProperties = EventProperties<"github_quota_sample">;
20426
20589
  type GitHubRateLimitedProperties = EventProperties<"github_rate_limited">;
20427
20590
  type InstanceHeartbeatProperties = EventProperties<"instance_heartbeat">;
20591
+ type MachineLinkStartedProperties = EventProperties<"machine_link_started">;
20592
+ type MachineLinkApprovedProperties = EventProperties<"machine_link_approved">;
20593
+ type MachineLinkFailedProperties = EventProperties<"machine_link_failed">;
20594
+ type PhonePairedProperties = EventProperties<"phone_paired">;
20595
+ type PhoneRemovedProperties = EventProperties<"phone_removed">;
20596
+ type AnywhereChannelOpenedProperties = EventProperties<"anywhere_channel_opened">;
20597
+ type RelayUsageSampledProperties = EventProperties<"relay_usage_sampled">;
20428
20598
  type TelemetryQuotaPointsBucket = TelemetryPropertyValue<"quota_points_bucket">;
20429
20599
  type TelemetryQuotaRemainingBucket = TelemetryPropertyValue<"quota_remaining_bucket">;
20430
20600
  type TelemetryGitHubCaller = TelemetryPropertyValue<"github_caller">;
20601
+ type TelemetryLinkMethod = TelemetryPropertyValue<"link_method">;
20602
+ type TelemetryLinkSide = TelemetryPropertyValue<"link_side">;
20603
+ type TelemetryLinkFailureReason = TelemetryPropertyValue<"link_failure_reason">;
20604
+ type TelemetryChannelRoute = TelemetryPropertyValue<"channel_route">;
20605
+ type TelemetryChannelErrorClass = TelemetryPropertyValue<"channel_error_class">;
20606
+ type TelemetryRelayBytesBucket = TelemetryPropertyValue<"relay_bytes_bucket">;
20431
20607
  /** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
20432
20608
  declare function bucketQuotaPoints(points: number): TelemetryQuotaPointsBucket;
20433
20609
  /** PAN-4264: GitHub quota remaining as a coarse bucket; `unknown` without a sample. */
20434
20610
  declare function bucketQuotaRemaining(remaining: number | undefined): TelemetryQuotaRemainingBucket;
20611
+ /** PAN-5016: relayed bytes as a coarse bucket (raw byte counts are never sent). */
20612
+ declare function bucketRelayBytes(bytes: number): TelemetryRelayBytesBucket;
20435
20613
  type TelemetryEventProperties = { readonly [Event in TelemetryEventName]: EventProperties<Event> };
20436
20614
  type TelemetryPropertiesFor<Event extends TelemetryEventName> = TelemetryEventProperties[Event];
20437
20615
  //#endregion
@@ -21243,7 +21421,9 @@ declare const EnvironmentCapabilities: Schema.Struct<{
21243
21421
  /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
21244
21422
  readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
21245
21423
  readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
21246
- readonly machineLinks: Schema.optional<Schema.Boolean>;
21424
+ readonly machineLinks: Schema.optional<Schema.Boolean>; /** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
21425
+ readonly phoneApp: Schema.optional<Schema.Boolean>; /** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
21426
+ readonly connector: Schema.optional<Schema.Boolean>;
21247
21427
  }>;
21248
21428
  type EnvironmentCapabilities = typeof EnvironmentCapabilities.Type;
21249
21429
  declare const EnvironmentDescriptor: Schema.Struct<{
@@ -21260,7 +21440,9 @@ declare const EnvironmentDescriptor: Schema.Struct<{
21260
21440
  /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
21261
21441
  readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
21262
21442
  readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
21263
- readonly machineLinks: Schema.optional<Schema.Boolean>;
21443
+ readonly machineLinks: Schema.optional<Schema.Boolean>; /** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
21444
+ readonly phoneApp: Schema.optional<Schema.Boolean>; /** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
21445
+ readonly connector: Schema.optional<Schema.Boolean>;
21264
21446
  }>; /** Long-term X25519 machine public key, 64 lowercase hex (PAN-4645). */
21265
21447
  readonly machineKey: Schema.optional<Schema.String>; /** The server's `LINK_PROTOCOL_VERSION`; optional so older descriptors still decode (D-4645-11). */
21266
21448
  readonly linkProtocol: Schema.optional<Schema.Number>; /** Endpoints this machine advertises for secure channels. */
@@ -21520,7 +21702,9 @@ declare const MachinesResponse: Schema.Struct<{
21520
21702
  readonly sampledAt: Schema.String;
21521
21703
  }>>>;
21522
21704
  readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
21523
- readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>;
21705
+ readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>; /** PAN-4905: config.toml `[remote] enabled`; the Add a Fly machine dialog reads it before the click. */
21706
+ readonly remoteEnabled: Schema.optional<Schema.Boolean>; /** PAN-4905: config.toml as a display path (`~/.overdeck/config.toml`). */
21707
+ readonly remoteConfigFile: Schema.optional<Schema.String>;
21524
21708
  }>;
21525
21709
  readonly links: Schema.$Array<Schema.Struct<{
21526
21710
  readonly id: Schema.String;
@@ -21630,6 +21814,12 @@ interface SharedConversationRow {
21630
21814
  environmentId: string;
21631
21815
  nativeSessionId: string;
21632
21816
  } | null;
21817
+ /**
21818
+ * Why the owner's launch failed (its `spawn_error`), so the viewer shows the
21819
+ * failure instead of an empty composer (PAN-4903). Sent only when set; absent
21820
+ * from older owners.
21821
+ */
21822
+ spawnError?: string | null;
21633
21823
  }
21634
21824
  /** The owner's answer to `GET /api/machines/conversations`. */
21635
21825
  interface SharedConversationsResponse {
@@ -21784,6 +21974,266 @@ type ServiceToViewerFrame = {
21784
21974
  };
21785
21975
  /** WebSocket close codes the share service uses. */
21786
21976
  type ShareCloseCode = 1000 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4011 | 4013;
21977
+ /**
21978
+ * The host socket's state in this dashboard process. 'reconnecting': the socket dropped and the
21979
+ * manager retries on a backoff (PAN-4479). 'disconnected': a stale record that was not re-parked,
21980
+ * or a socket replaced by another host (close 4008).
21981
+ */
21982
+ type ShareConnection = 'connecting' | 'connected' | 'reconnecting' | 'disconnected';
21983
+ /** The host frames the data owner's browser may request. Slice 7 adds set-controller (handoff; the data owner's id = reclaim). */
21984
+ type ShareCommand = Extract<HostFrame, {
21985
+ readonly type: 'admit' | 'kick' | 'revoke' | 'unrevoke' | 'set-contributor' | 'set-controller';
21986
+ }>;
21987
+ /** The share commands a viewer-controller may send on `control` (slice 7). Un-revoke stays with the data owner (D-7). */
21988
+ type SharedControllerCommand = Exclude<ShareCommand, {
21989
+ readonly type: 'unrevoke';
21990
+ }>;
21991
+ /** Why the host refused a controller command or a controller send (slice 7). */
21992
+ type SharedCommandRefusal = 'not_controller' | 'unknown_participant' | 'invalid_target' | 'invalid_command' | 'not_connected' | 'invalid_prompt' | 'too_long' | 'queue_full';
21993
+ interface CreateShareRequest {
21994
+ readonly conversationName: string;
21995
+ }
21996
+ interface ShareLastError {
21997
+ readonly code: ShareErrorCode | 'replaced';
21998
+ readonly githubId?: number;
21999
+ readonly at: string;
22000
+ }
22001
+ interface ShareView {
22002
+ readonly shortCode: string;
22003
+ readonly joinUrl: string;
22004
+ readonly scope: ShareScope;
22005
+ readonly createdAt: string;
22006
+ readonly connection: ShareConnection;
22007
+ readonly snapshot: RoomSnapshot | null;
22008
+ readonly lastError: ShareLastError | null;
22009
+ /** Slice 5: the viewers' current drafts, oldest started first. Optional so older fixtures compile (D-13). */
22010
+ readonly drafts?: readonly ShareDraftView[];
22011
+ /** Slice 5: the share's prompt queue. Optional so older fixtures compile (D-13). */
22012
+ readonly queue?: ShareQueueView;
22013
+ /** Slice 7: the host's effective controller (D-2). Optional so older fixtures compile. */
22014
+ readonly controllerGithubId?: number;
22015
+ }
22016
+ /** One viewer's current draft, as the host browser sees it. */
22017
+ interface ShareDraftView {
22018
+ readonly githubId: number;
22019
+ readonly login: string;
22020
+ readonly avatarUrl: string;
22021
+ readonly text: string;
22022
+ readonly startedAt: string;
22023
+ readonly updatedAt: string;
22024
+ }
22025
+ /** One prompt waiting in (or being delivered from) the host's queue. */
22026
+ interface ShareQueueItemView {
22027
+ readonly id: string;
22028
+ readonly login: string;
22029
+ readonly avatarUrl: string;
22030
+ readonly source: 'contributor' | 'controller';
22031
+ readonly text: string;
22032
+ readonly enqueuedAt: string;
22033
+ }
22034
+ interface ShareQueueView {
22035
+ readonly agentWorking: boolean;
22036
+ readonly delivering: boolean;
22037
+ readonly items: readonly ShareQueueItemView[];
22038
+ }
22039
+ /** POST /api/shares/:code/prompts: a controller send; `draftGithubId` names the picked draft. */
22040
+ interface SendSharePromptRequest {
22041
+ readonly text: string;
22042
+ readonly draftGithubId?: number;
22043
+ }
22044
+ interface ListSharesResponse {
22045
+ readonly shares: readonly ShareView[];
22046
+ }
22047
+ /** The five data channel labels. Every peer connection carries all five, ordered and reliable. */
22048
+ type SharedChannel = 'control' | 'conversation' | 'drafts' | 'terminal' | 'presence';
22049
+ /** One data-channel message. `v` is 1 in this version; a later host may send more. */
22050
+ interface SharedEnvelope<P = unknown> {
22051
+ readonly v: number;
22052
+ readonly ch: SharedChannel;
22053
+ /** The member session; v0: always the shared conversation's name. */
22054
+ readonly streamId: string;
22055
+ /** Per peer connection, per channel, per stream: 1, 2, 3, … Fragments do not consume one. */
22056
+ readonly seq: number;
22057
+ /** Host epoch ms. */
22058
+ readonly t: number;
22059
+ readonly payload: P;
22060
+ }
22061
+ /** One piece of an encoded envelope longer than SHARE_MAX_MESSAGE_CHARS, sent in order on the same channel. */
22062
+ interface SharedChunk {
22063
+ readonly v: number;
22064
+ readonly chunk: {
22065
+ readonly id: number;
22066
+ readonly index: number;
22067
+ readonly count: number;
22068
+ };
22069
+ readonly data: string;
22070
+ }
22071
+ /** The first envelope each side sends on `control`. The viewer copies `scope` from the host's hello. */
22072
+ interface SharedHello {
22073
+ readonly v: number;
22074
+ readonly scopeKinds: readonly ShareScope['kind'][];
22075
+ readonly scope: ShareScope;
22076
+ }
22077
+ type SharedHelloError = 'invalid_hello' | 'version_unsupported' | 'scope_kind_unsupported';
22078
+ /** Why a shared prompt was not (or will not be) delivered. */
22079
+ type SharedSubmitReason = 'not_contributor' | 'invalid_prompt' | 'too_long' | 'queue_full' | 'grant_revoked' | 'delivery_refused' | 'delivery_unknown';
22080
+ /**
22081
+ * `control` payloads. Slice 5 adds submit (viewer → host), submit-ack and draft-sent (host → viewer);
22082
+ * slice 6 adds the viewer's terminal watch. Slice 7 adds identity and command-ack (host → viewer),
22083
+ * command and controller-send (viewer → host).
22084
+ */
22085
+ type ControlPayload = {
22086
+ readonly kind: 'hello';
22087
+ readonly hello: SharedHello;
22088
+ } | {
22089
+ readonly kind: 'error';
22090
+ readonly code: SharedHelloError;
22091
+ } | {
22092
+ readonly kind: 'submit';
22093
+ readonly clientId: string;
22094
+ readonly text: string;
22095
+ } | {
22096
+ readonly kind: 'submit-ack';
22097
+ readonly clientId: string;
22098
+ readonly status: 'queued' | 'sent' | 'rejected';
22099
+ readonly position?: number;
22100
+ readonly reason?: SharedSubmitReason;
22101
+ } | {
22102
+ readonly kind: 'draft-sent';
22103
+ } /** Viewer → host: start (`true`) or stop (`false`) the read-only terminal stream (slice 6). */ | {
22104
+ readonly kind: 'terminal-watch';
22105
+ readonly watch: boolean;
22106
+ } | {
22107
+ readonly kind: 'identity';
22108
+ readonly githubId: number;
22109
+ } | {
22110
+ readonly kind: 'command';
22111
+ readonly clientId: string;
22112
+ readonly command: SharedControllerCommand;
22113
+ } | {
22114
+ readonly kind: 'controller-send';
22115
+ readonly clientId: string;
22116
+ readonly text: string;
22117
+ readonly draftGithubId?: number;
22118
+ } | {
22119
+ readonly kind: 'command-ack';
22120
+ readonly clientId: string;
22121
+ readonly status: 'accepted' | 'rejected';
22122
+ readonly position?: number;
22123
+ readonly reason?: SharedCommandRefusal;
22124
+ };
22125
+ type TerminalUnavailableReason = 'terminal_not_found' | 'terminal_ended';
22126
+ /**
22127
+ * `terminal` payloads (slice 6), host → viewer only. A watch starts with `snapshot`; `data` is raw
22128
+ * terminal output (escape sequences included). The host reads nothing on this channel.
22129
+ */
22130
+ type TerminalPayload = {
22131
+ readonly kind: 'snapshot';
22132
+ readonly cols: number;
22133
+ readonly rows: number;
22134
+ readonly data: string;
22135
+ } | {
22136
+ readonly kind: 'output';
22137
+ readonly data: string;
22138
+ } | {
22139
+ readonly kind: 'size';
22140
+ readonly cols: number;
22141
+ readonly rows: number;
22142
+ } | {
22143
+ readonly kind: 'unavailable';
22144
+ readonly reason: TerminalUnavailableReason;
22145
+ };
22146
+ /** The allow-listed subset of the internal ChatMessage that may cross to a viewer. */
22147
+ interface SharedMessage {
22148
+ readonly id: string;
22149
+ readonly role: 'user' | 'assistant' | 'system';
22150
+ readonly text: string;
22151
+ readonly turnId?: string;
22152
+ /** Which human sent a user message (slice 5 sets it; never mapped from ChatMessage). */
22153
+ readonly author?: {
22154
+ readonly login: string;
22155
+ readonly avatarUrl: string;
22156
+ };
22157
+ readonly createdAt: string;
22158
+ readonly completedAt?: string;
22159
+ readonly streaming?: boolean;
22160
+ readonly sequence?: number;
22161
+ }
22162
+ /** `conversation` payloads. `history` replaces the stream's whole list. */
22163
+ type ConversationPayload = {
22164
+ readonly kind: 'history';
22165
+ readonly messages: readonly SharedMessage[];
22166
+ } | {
22167
+ readonly kind: 'append';
22168
+ readonly message: SharedMessage;
22169
+ } | {
22170
+ readonly kind: 'update';
22171
+ readonly message: SharedMessage;
22172
+ } | {
22173
+ readonly kind: 'unavailable';
22174
+ readonly reason: 'transcript_not_found' | 'history_too_large';
22175
+ };
22176
+ interface SharedStream {
22177
+ readonly streamId: string;
22178
+ readonly label: string;
22179
+ readonly kind: 'conversation';
22180
+ /** Slice 5: the stream's agent is mid-turn. Absent from older hosts. */
22181
+ readonly agentWorking?: boolean;
22182
+ /** Slice 5: shared prompts waiting in the host's queue. Absent from older hosts. */
22183
+ readonly queued?: number;
22184
+ }
22185
+ interface PresenceParticipant {
22186
+ readonly githubId: number;
22187
+ readonly login: string;
22188
+ readonly avatarUrl: string;
22189
+ readonly state: 'lobby' | 'admitted';
22190
+ readonly contributor: boolean;
22191
+ readonly isHost: boolean;
22192
+ }
22193
+ /** `presence` payload: the roster (data owner first), the controller and the stream roster. */
22194
+ interface PresencePayload {
22195
+ readonly controllerGithubId: number;
22196
+ readonly participants: readonly PresenceParticipant[];
22197
+ readonly streams: readonly SharedStream[];
22198
+ }
22199
+ /** Host → viewer on `drafts`: another participant's whole draft; an empty `text` deletes it. */
22200
+ interface DraftPayload {
22201
+ readonly authorGithubId: number;
22202
+ readonly authorLogin: string;
22203
+ readonly text: string;
22204
+ readonly updatedAt: number;
22205
+ }
22206
+ /** Viewer → host on `drafts`: the author's whole draft. The host ignores every other key. */
22207
+ interface DraftUpdate {
22208
+ readonly text: string;
22209
+ }
22210
+ /** A join's state on the viewer server. Live: connecting, lobby, admitted, host-disconnected, reconnecting. */
22211
+ type JoinState = 'connecting' | 'lobby' | 'admitted' | 'host-disconnected' | 'reconnecting' | 'away' | 'disconnected' | 'left' | 'kicked' | 'revoked' | 'ended' | 'is-host' | 'full' | 'replaced' | 'rejected';
22212
+ interface JoinView {
22213
+ readonly shortCode: string;
22214
+ readonly joinUrl: string;
22215
+ readonly state: JoinState;
22216
+ readonly contributor: boolean;
22217
+ readonly login: string | null;
22218
+ readonly closeCode: number | null;
22219
+ readonly error: string | null;
22220
+ }
22221
+ interface CreateJoinRequest {
22222
+ readonly code: string;
22223
+ }
22224
+ interface JoinIceServersResponse {
22225
+ readonly iceServers: readonly IceServer[];
22226
+ }
22227
+ /** Server-sent events on GET /api/joins/:code/events. The SSE `event:` name is `type`. */
22228
+ type JoinEvent = {
22229
+ readonly type: 'state';
22230
+ readonly view: JoinView;
22231
+ } | {
22232
+ readonly type: 'signal';
22233
+ readonly data: SignalData;
22234
+ } | {
22235
+ readonly type: 'replaced';
22236
+ };
21787
22237
  //#endregion
21788
22238
  //#region src/connect.d.ts
21789
22239
  declare const CONNECT_PROTOCOL_VERSION = 1;
@@ -21798,6 +22248,8 @@ declare const INBOX_HOLD_MS = 86400000;
21798
22248
  declare const APPROVAL_TTL_MS = 600000;
21799
22249
  /** Phones (directory clients) one account may register (PAN-4823 D-2, NFR-3). Clients never count as machines. */
21800
22250
  declare const CLIENT_LIMIT = 5;
22251
+ /** PAN-4927 D-18: connectors are counted apart from phones. */
22252
+ declare const CONNECTOR_LIMIT = 10;
21801
22253
  /** Pushes the directory forwards per account per minute (PAN-4823 D-9). */
21802
22254
  declare const PUSH_RATE_PER_MINUTE = 30;
21803
22255
  /**
@@ -21810,10 +22262,24 @@ declare const PUSH_SEALED_MAX_CHARS = 3072;
21810
22262
  * grows by 4/3, so 2,256 bytes seal to exactly `PUSH_SEALED_MAX_CHARS` characters.
21811
22263
  */
21812
22264
  declare const PUSH_PLAINTEXT_MAX_BYTES = 2256;
22265
+ /** Live Activity (PAN-4839, OD-1): the most either count may be. */
22266
+ declare const ACTIVITY_COUNT_MAX = 9999;
22267
+ /** A machine's report counts toward a phone's card this long; also the APNs `stale-date` offset. */
22268
+ declare const ACTIVITY_STALE_MS = 600000;
22269
+ /** The directory re-pushes unchanged counts at most this often, so the stale date moves ahead. */
22270
+ declare const ACTIVITY_REFRESH_MS = 240000;
22271
+ /** Live Activity pushes per account per minute, counted apart from alert pushes (NFR-1). */
22272
+ declare const ACTIVITY_PUSH_RATE_PER_MINUTE = 60;
22273
+ /** The whole content of the Live Activity (OD-1): two counts and nothing else. */
22274
+ interface LiveActivityCounts {
22275
+ readonly needsYou: number;
22276
+ readonly running: number;
22277
+ }
21813
22278
  declare const FREE_MACHINE_LIMIT_MESSAGE = "The free account includes 3 machines";
21814
22279
  declare const NO_DIRECT_PATH_MESSAGE = "No direct path; install Tailscale or use the relay plan";
21815
22280
  declare const RELAY_CAP_MESSAGE = "Relay allowance used; install Tailscale or add 50 GB";
21816
22281
  declare const CLIENT_LIMIT_MESSAGE = "This account already has 5 phones. Remove one in the app or on a machine.";
22282
+ declare const CONNECTOR_LIMIT_MESSAGE = "This account already has 10 Overdeck connectors. Remove one in Settings \u2192 Anywhere \u2192 Bots.";
21817
22283
  /** WebSocket close codes the directory uses. */
21818
22284
  declare const CONNECT_CLOSE_CODES: {
21819
22285
  readonly unauthorized: 4001;
@@ -21821,7 +22287,7 @@ declare const CONNECT_CLOSE_CODES: {
21821
22287
  readonly machineLimit: 4009;
21822
22288
  readonly unsupportedProtocol: 4010; /** Replaced by a newer socket for the same machine. */
21823
22289
  readonly replaced: 4011;
21824
- readonly forgotten: 4012; /** A sixth phone on one account (PAN-4823 D-2). */
22290
+ readonly forgotten: 4012; /** A sixth phone or an eleventh connector on one account (PAN-4823 D-2, PAN-4927 D-18). */
21825
22291
  readonly clientLimit: 4013;
21826
22292
  };
21827
22293
  type ConnectCloseCode = (typeof CONNECT_CLOSE_CODES)[keyof typeof CONNECT_CLOSE_CODES];
@@ -21855,13 +22321,32 @@ interface RelayStatus {
21855
22321
  readonly stopped: boolean;
21856
22322
  }
21857
22323
  type SignalPurpose = "link" | "approval";
21858
- /** The phone app's platform. */
21859
- type ClientPlatform = "ios" | "android";
22324
+ /** A phone's platform: the only platforms that can hold a push registration. */
22325
+ type PhonePlatform = "ios" | "android";
22326
+ /** A directory client's platform: a phone, or `node` for an Overdeck connector (PAN-4927 D-18). */
22327
+ type ClientPlatform = PhonePlatform | "node";
21860
22328
  /** Which APNs host a token belongs to: Debug builds register `sandbox`, Release builds `production`. */
21861
22329
  type ApsEnvironment = "production" | "sandbox";
21862
22330
  /** `high` for question, approval and failed; else `normal` (the Web Push rule). */
21863
22331
  type PushUrgency = "high" | "normal";
21864
22332
  type PushResultError = "no_registration" | "rate_limited" | "delivery_failed" | "unknown_client";
22333
+ /** The plaintext a machine seals into a `push` frame (PAN-4843). UTF-8 JSON, at most PUSH_PLAINTEXT_MAX_BYTES. */
22334
+ interface PhonePushPayload {
22335
+ readonly v: 1;
22336
+ /** The sending machine's environment id; the phone opens this machine when the notification is tapped. */
22337
+ readonly machine: string;
22338
+ readonly kind: "question" | "approval" | "finished" | "failed" | "summary" | "test";
22339
+ /** The full title (the Web Push `title`), never `publicTitle`: the payload is end-to-end encrypted. */
22340
+ readonly title: string;
22341
+ readonly body: string;
22342
+ /** Same-origin dashboard path, e.g. `/m?subject=my-conv`. */
22343
+ readonly url: string;
22344
+ /** Dedup and replace key; the phone uses it as the notification thread / tag. */
22345
+ readonly tag: string;
22346
+ readonly issueId: string | null;
22347
+ /** ISO 8601. */
22348
+ readonly ts: string;
22349
+ }
21865
22350
  /** Machine → directory. */
21866
22351
  type MachineToDirectoryFrame = {
21867
22352
  readonly type: "hello";
@@ -21919,6 +22404,11 @@ type MachineToDirectoryFrame = {
21919
22404
  readonly sealed: string;
21920
22405
  readonly urgency: PushUrgency; /** 32 lowercase hex: the first 32 hex characters of sha256(notification tag). */
21921
22406
  readonly collapseId: string;
22407
+ } /** One machine's counts for one phone's Live Activity (PAN-4839). Integers 0..ACTIVITY_COUNT_MAX; no answer frame. */ | {
22408
+ readonly type: "push-activity";
22409
+ readonly to: string;
22410
+ readonly needsYou: number;
22411
+ readonly running: number;
21922
22412
  };
21923
22413
  /** Directory → machine. */
21924
22414
  type DirectoryToMachineFrame = {
@@ -21989,7 +22479,12 @@ type ClientToDirectoryFrame = {
21989
22479
  readonly type: "hello-client";
21990
22480
  readonly protocol: ConnectProtocolVersion; /** uuid v4, generated once per app install. */
21991
22481
  readonly clientId: string; /** At most 64 characters. */
21992
- readonly label: string; /** X25519 link public key, 64 lowercase hex. */
22482
+ readonly label: string;
22483
+ /**
22484
+ * The phone's install-level X25519 public key: its push public key (PAN-4837 C-2), 64 lowercase
22485
+ * hex. Link keys are per machine. A `node` client (connector) sends its install key here, not a
22486
+ * push key.
22487
+ */
21993
22488
  readonly publicKeyHex: string; /** At most 32 characters. */
21994
22489
  readonly appVersion: string;
21995
22490
  readonly platform: ClientPlatform;
@@ -22004,11 +22499,17 @@ type ClientToDirectoryFrame = {
22004
22499
  type: "ice-servers" | "relay-usage";
22005
22500
  }> /** `token` is at most 4096 characters; `apsEnvironment` is sent by iOS only. */ | {
22006
22501
  readonly type: "push-register";
22007
- readonly platform: ClientPlatform;
22502
+ readonly platform: PhonePlatform;
22008
22503
  readonly token: string;
22009
22504
  readonly apsEnvironment?: ApsEnvironment;
22010
22505
  } | {
22011
22506
  readonly type: "push-unregister";
22507
+ } /** An activity push token (iOS only); same token rule as `push-register`. iOS without `apsEnvironment` is production. */ | {
22508
+ readonly type: "activity-register";
22509
+ readonly token: string;
22510
+ readonly apsEnvironment?: ApsEnvironment;
22511
+ } | {
22512
+ readonly type: "activity-unregister";
22012
22513
  } | {
22013
22514
  readonly type: "forget-client";
22014
22515
  };
@@ -22129,6 +22630,58 @@ declare const DirectoryResponse: Schema.Struct<{
22129
22630
  }>;
22130
22631
  type DirectoryResponse = typeof DirectoryResponse.Type;
22131
22632
  //#endregion
22633
+ //#region src/phone-pairing.d.ts
22634
+ /** The phone app's bundle id and private-use URI scheme (RFC 8252 §7.1). */
22635
+ declare const PHONE_APP_SCHEME = "ai.overdeck.app";
22636
+ declare const PHONE_PAIR_LINK_VERSION = 1;
22637
+ /** Everything before the fragment. Single slash after the colon. */
22638
+ declare const PHONE_PAIR_LINK_PREFIX = "ai.overdeck.app:/pair#";
22639
+ declare const PHONE_PAIR_ENVIRONMENT_ID_RE: RegExp;
22640
+ declare const PHONE_PAIR_MACHINE_KEY_RE: RegExp;
22641
+ declare const PHONE_PAIR_CODE_RE: RegExp;
22642
+ interface PhonePairLinkInput {
22643
+ environmentId: string;
22644
+ machineKeyHex: string;
22645
+ code: string;
22646
+ }
22647
+ /** `ai.overdeck.app:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
22648
+ declare function buildPhonePairLink(input: PhonePairLinkInput): string;
22649
+ /** The inverse of `buildPhonePairLink`: the link's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
22650
+ declare function parsePhonePairLink(text: string): PhonePairLinkInput | null;
22651
+ //#endregion
22652
+ //#region src/phone-notifications.d.ts
22653
+ type PhoneNotificationCategory = "question" | "plan" | "permission" | "finished" | "failed" | "stopped";
22654
+ declare const PHONE_NOTIFICATION_CATEGORIES: readonly PhoneNotificationCategory[];
22655
+ interface PhoneNotificationPreferences {
22656
+ readonly v: 1;
22657
+ /** null: not paused. `until: null`: paused until turned back on. `until`: ISO-8601 instant. */
22658
+ readonly pause: null | {
22659
+ readonly until: string | null;
22660
+ };
22661
+ /** Categories this phone does not want. Unlisted categories are on. */
22662
+ readonly muted: readonly PhoneNotificationCategory[];
22663
+ }
22664
+ declare const DEFAULT_PHONE_NOTIFICATION_PREFERENCES: PhoneNotificationPreferences;
22665
+ /** Null for anything that is not a v1 prefs object; drops unknown/duplicate `muted` entries; never throws. */
22666
+ declare function parsePhoneNotificationPreferences(value: unknown): PhoneNotificationPreferences | null;
22667
+ /** Whether a notification of `category` may go to a phone with `prefs` at `nowMs` (D-3). */
22668
+ declare function notificationAllowed(prefs: PhoneNotificationPreferences | null, category: PhoneNotificationCategory | "summary" | "test", nowMs: number): boolean;
22669
+ //#endregion
22670
+ //#region src/connector-pairing.d.ts
22671
+ declare const CONNECTOR_PAIR_SCHEME = "overdeck-connector";
22672
+ declare const CONNECTOR_PAIR_LINK_VERSION = 1;
22673
+ /** Everything before the fragment. Single slash after the colon. */
22674
+ declare const CONNECTOR_PAIR_LINK_PREFIX = "overdeck-connector:/pair#";
22675
+ interface ConnectorPairLinkInput {
22676
+ environmentId: string;
22677
+ machineKeyHex: string;
22678
+ code: string;
22679
+ }
22680
+ /** `overdeck-connector:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
22681
+ declare function buildConnectorPairLink(input: ConnectorPairLinkInput): string;
22682
+ /** The inverse of `buildConnectorPairLink`: the string's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
22683
+ declare function parseConnectorPairLink(text: string): ConnectorPairLinkInput | null;
22684
+ //#endregion
22132
22685
  //#region src/fleet-versions.d.ts
22133
22686
  declare const FleetInstallMode: Schema.Literals<readonly ["npm-global", "development", "desktop"]>;
22134
22687
  type FleetInstallMode = typeof FleetInstallMode.Type;
@@ -22286,6 +22839,77 @@ declare const MachineVersionsReportSchema: Schema.Struct<{
22286
22839
  }>>;
22287
22840
  }>;
22288
22841
  //#endregion
22842
+ //#region src/sharing-wire.d.ts
22843
+ declare const SHARED_WIRE_VERSION = 1;
22844
+ declare const SHARED_SCOPE_KINDS: readonly ShareScope["kind"][];
22845
+ declare const SHARED_CHANNELS: readonly SharedChannel[];
22846
+ /** The longest data-channel message: 32,768 UTF-16 code units, at most 96 KiB of UTF-8. Longer envelopes are fragmented. */
22847
+ declare const SHARE_MAX_MESSAGE_CHARS = 32768;
22848
+ /** The longest encoded envelope ever sent or reassembled. */
22849
+ declare const SHARE_MAX_ENVELOPE_CHARS: number;
22850
+ /** The longest envelope a host reassembles from a viewer on `control` or `drafts` (NFR-3). */
22851
+ declare const SHARE_MAX_INBOUND_ENVELOPE_CHARS = 65536;
22852
+ /** The longest shared prompt or draft, in UTF-16 code units (D-11). */
22853
+ declare const SHARED_PROMPT_MAX_CHARS = 8000;
22854
+ type SharedReadResult = {
22855
+ readonly kind: "envelope";
22856
+ readonly envelope: SharedEnvelope;
22857
+ } | {
22858
+ readonly kind: "pending";
22859
+ } | {
22860
+ readonly kind: "invalid";
22861
+ readonly reason: "not_json" | "not_envelope" | "chunk_out_of_order" | "too_large";
22862
+ };
22863
+ /** Copies only the allow-listed fields. Never spreads the input and never sets `author`. */
22864
+ declare function toSharedMessage(message: ChatMessage): SharedMessage;
22865
+ /**
22866
+ * `null` when a shared prompt may be delivered; the refusal reason otherwise (D-9). A leading `/`, `!`
22867
+ * or `#` would reach a composer command, a shell command or a memory note, so it is refused.
22868
+ */
22869
+ declare function sharedPromptRefusal(text: string): "invalid_prompt" | "too_long" | null;
22870
+ /** A host → viewer DraftPayload rebuilt from its known keys, or `null` when `value` is not one. */
22871
+ declare function readDraftPayload(value: unknown): DraftPayload | null;
22872
+ /** A new envelope with exactly the six envelope keys, or `null` when `value` is not one. */
22873
+ declare function decodeEnvelope(value: unknown): SharedEnvelope | null;
22874
+ /**
22875
+ * Encodes one envelope as the data-channel messages to send in order: one message, or `count`
22876
+ * fragments when the encoded envelope is longer than SHARE_MAX_MESSAGE_CHARS. Slicing can split a
22877
+ * UTF-16 surrogate pair across fragments; the reader joins the slices before parsing, so the pair is
22878
+ * whole again. Throws RangeError when the encoded envelope is longer than SHARE_MAX_ENVELOPE_CHARS.
22879
+ */
22880
+ declare function encodeSharedMessage(envelope: SharedEnvelope, chunkId: number): string[];
22881
+ /**
22882
+ * Reads one channel's messages in arrival order and reassembles fragmented envelopes. One reader per
22883
+ * channel. `maxEnvelopeChars` caps what one envelope may grow to; a host reading a viewer passes
22884
+ * SHARE_MAX_INBOUND_ENVELOPE_CHARS so one viewer cannot make it buffer megabytes.
22885
+ */
22886
+ declare class SharedChannelReader {
22887
+ private readonly maxEnvelopeChars;
22888
+ private partial;
22889
+ constructor(maxEnvelopeChars?: number);
22890
+ read(text: string): SharedReadResult;
22891
+ private readFragment;
22892
+ }
22893
+ /** Detects `seq` gaps per channel and stream. A gap is reported once; tracking resumes after it. */
22894
+ declare class SeqTracker {
22895
+ private readonly expected;
22896
+ observe(ch: SharedChannel, streamId: string, seq: number): {
22897
+ readonly ok: true;
22898
+ } | {
22899
+ readonly ok: false;
22900
+ readonly expected: number;
22901
+ readonly got: number;
22902
+ };
22903
+ }
22904
+ /** Agrees on `min(local.v, remote.v)` when the remote hello is well formed and both sides support the shared scope. */
22905
+ declare function negotiateHello(local: SharedHello, remote: unknown): {
22906
+ readonly ok: true;
22907
+ readonly v: number;
22908
+ } | {
22909
+ readonly ok: false;
22910
+ readonly code: SharedHelloError;
22911
+ };
22912
+ //#endregion
22289
22913
  //#region src/color-theme.d.ts
22290
22914
  type ColorThemeType = "light" | "dark";
22291
22915
  /** The 21 keys xterm.js needs: background/foreground/cursor state plus the 16 ANSI colors. */
@@ -22420,5 +23044,227 @@ type SchedulePreset = {
22420
23044
  declare const SCHEDULE_PRESET_DAYS: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
22421
23045
  declare function presetToCron(preset: SchedulePreset): string;
22422
23046
  //#endregion
22423
- export { ACP_BEHAVIOR, ACP_CAPABILITIES, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRole, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, AgentStartedEvent, AgentState, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ApsEnvironment, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, AutoMergeToggledProperties, BROWSERS, BUILTIN_COLOR_THEMES, BackendAgentSnapshot, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserEntry, BrowserId, BrowserIdSchema, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, ClientPlatform, ClientToDirectoryFrame, ColorTheme, ColorThemeFile, ColorThemeImportPreviewResponse, ColorThemeSource, ColorThemeSyntax, ColorThemeType, ColorThemeUi, ColorThemesListResponse, CompactBoundary, CompanionTerminalKind, CompanionTerminalOwnerShape, CompanionTerminalState, CompanionTerminalUnavailableReason, ComposerCommandArgument, ComposerCommandManifestEntry, ComposerCommandOption, ComposerCommandPolicy, ComposerCommandResult, ComposerExecutionMode, ComposerSafety, ConnectCloseCode, ConnectErrorCode, ConnectPlan, ConnectProtocolVersion, 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, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, CreateRoomRequest, CreateRoomResponse, 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, DerivedPrOutsidePipeline, DerivedPrState, DerivedProjectCi, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEndpoint, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachine, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryToClientFrame, DirectoryToMachineFrame, 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, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FleetComponent, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJob, FleetUpdateJobSchema, FleetUpdateMode, FleetUpdateResponse, FleetVersionRow, FleetVersionsResponse, 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, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSampleProperties, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GitHubRateLimitedProperties, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, Harness, HarnessAskAnswerDelivery, HarnessAttachmentDelivery, HarnessBehavior, HarnessBinaryConfigKey, HarnessCapabilities, HarnessContextChannel, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessLaunchPreflight, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessSteerKind, HarnessTranscriptKind, HarnessVersionView, HarnessWorkspaceResolution, HealthReason, HealthState, HookInventoryEntry, HookInventoryName, HostFrame, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, IceServer, InboundMachineView, InstanceHeartbeatProperties, IssueAttention, IssueClosedOutProperties, IssueDelta, IssueId, IssueMergedProperties, IssuePipelineMembership, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LaneActivity, LaneActivityInput, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, LinkedConversationFields, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkView, MachinePlacementMode, MachineProject, MachineToDirectoryFrame, MachineVersionsReport, MachineVersionsReportSchema, MachinesResponse, MembershipUnavailableReason, MemoryAgentRole, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PaneTokens, ParsedPullRequestRef, PendingTurn, PipelineBucket, PipelineMembershipLoadingBody, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, 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, PushResultError, PushUrgency, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatus, RelayStatusView, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, 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, RoomParticipant, RoomSnapshot, RouteKind, RouteSource, RuntimeName, SCHEDULE_PRESET_DAYS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, SchedulePreset, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SequenceNumber, ServerBootProperties, ServiceHealthSnapshot, ServiceHealthStatus, ServiceToHostFrame, ServiceToViewerFrame, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShareCloseCode, ShareErrorCode, ShareIdentity, ShareProtocolVersion, ShareScope, SharedConversationRow, SharedConversationsResponse, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, SignalData, SignalPurpose, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TelemetryCliVerb, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryGitHubCaller, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TelemetryQuotaPointsBucket, TelemetryQuotaRemainingBucket, TerminalBackendName, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalPalette, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TimelineKey, TokenColorEntry, TokenColorSettings, TrackerIssueProject, TrackerIssueUrlRef, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, UnwiredHookInventoryEntry, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, ViewerFrame, ViewerStatus, WINDOW_PINNED_OPEN_TOOLS_MAX, 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, builtinFor, canonicalPullRequestUrl, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isLegacyPiHarnessName, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseLinkedConversationName, parsePullRequestRef, parseTrackerIssueUrl, presetToCron, projectLegacySystemHealthSummary, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolveTrackerIssueId, slugifyThemeId, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
23047
+ //#region src/deft-state.d.ts
23048
+ /**
23049
+ * Deft Directive state for one issue, as the dashboard reads it (PAN-4849).
23050
+ *
23051
+ * The server builds `DeftIssueState` from the Directive files in the issue's
23052
+ * worktree (`src/lib/deft/state-reader.ts`); `DeftIssueSummary` is the
23053
+ * batched per-issue row the board and tree read.
23054
+ */
23055
+ type DeftScopeFolder = 'proposed' | 'pending' | 'active' | 'completed' | 'cancelled';
23056
+ interface DeftScopeItem {
23057
+ id: string;
23058
+ title: string;
23059
+ status: string;
23060
+ evidence?: {
23061
+ kind: string;
23062
+ pointer: string;
23063
+ recordedAt?: string;
23064
+ recordedBy?: string;
23065
+ };
23066
+ disposition?: {
23067
+ disposition: string;
23068
+ reason?: string;
23069
+ provenanceKind?: string;
23070
+ actor?: string;
23071
+ recordedAt?: string;
23072
+ };
23073
+ }
23074
+ interface DeftScope {
23075
+ /** Repo-relative, e.g. `xbrief/active/x.xbrief.json`. */
23076
+ path: string;
23077
+ folder: DeftScopeFolder;
23078
+ planId: string;
23079
+ title: string;
23080
+ status: string;
23081
+ items: DeftScopeItem[];
23082
+ swarm?: {
23083
+ dependsOn: string[];
23084
+ conflictGroup?: string;
23085
+ fileScope: string[];
23086
+ };
23087
+ handoffState?: string;
23088
+ deliveryDisposition?: string;
23089
+ prNumber?: number;
23090
+ }
23091
+ type DeftEscalationType = 'cmd_approval' | 'design_decision' | 'approval' | 'resource' | 'external' | 'question';
23092
+ interface DeftEscalation {
23093
+ id: string;
23094
+ agentId: string;
23095
+ type: DeftEscalationType;
23096
+ title: string;
23097
+ body: string;
23098
+ createdAt: string;
23099
+ slaHours: number;
23100
+ dueAt: string;
23101
+ overdue: boolean;
23102
+ status: 'open' | 'resolved';
23103
+ dangerous: boolean;
23104
+ resolution?: {
23105
+ decision: string;
23106
+ resolvedAt: string;
23107
+ resolvedBy: string;
23108
+ note?: string;
23109
+ answer?: string;
23110
+ };
23111
+ }
23112
+ interface DeftHeartbeat {
23113
+ agentId: string;
23114
+ parentId: string;
23115
+ lastHeartbeatAt: string;
23116
+ lastMessage: string;
23117
+ phase: string;
23118
+ terminalState?: string;
23119
+ prNumber?: number;
23120
+ waitKind?: string;
23121
+ }
23122
+ interface DeftDecisionRecord {
23123
+ id: string;
23124
+ decision: string;
23125
+ whyWinner: string;
23126
+ confidence: string;
23127
+ timestamp: string;
23128
+ activeScopeRefs: string[];
23129
+ }
23130
+ interface DeftApprovedScope {
23131
+ planId: string;
23132
+ xbriefRelPath: string;
23133
+ approvedAt: string;
23134
+ fileScope: string[];
23135
+ humanApproval?: {
23136
+ kind: string;
23137
+ actor: string;
23138
+ };
23139
+ }
23140
+ interface DeftPolicy {
23141
+ raw: Record<string, unknown>;
23142
+ requireHumanMerge: boolean | 'unknown';
23143
+ reviewers: string[] | null;
23144
+ minGreptileConfidence: number;
23145
+ }
23146
+ interface DeftSpecDrift {
23147
+ unresolved: Array<{
23148
+ scopeId: string;
23149
+ reason: string;
23150
+ specImpact: string;
23151
+ }>;
23152
+ }
23153
+ interface DeftFinishLoopEntry {
23154
+ ts: string;
23155
+ phase: string;
23156
+ iteration: number;
23157
+ haltReason: string | null;
23158
+ message: string;
23159
+ prNumber: number | null;
23160
+ }
23161
+ interface DeftGateRun {
23162
+ ts: string;
23163
+ target: string;
23164
+ exitCode: number;
23165
+ gates: Array<{
23166
+ id: string;
23167
+ status: 'run' | 'skipped' | 'failed';
23168
+ exitCode?: number;
23169
+ cause?: string;
23170
+ }>;
23171
+ }
23172
+ interface DeftCleanRecord {
23173
+ prNumber: number;
23174
+ headSha: string;
23175
+ cleanedAt: string;
23176
+ }
23177
+ interface DeftIssueState {
23178
+ issueId: string;
23179
+ pipeline: 'deft';
23180
+ mode: 'temporary-install' | 'directive-project' | 'not-installed';
23181
+ scopes: DeftScope[];
23182
+ escalations: DeftEscalation[];
23183
+ heartbeats: DeftHeartbeat[];
23184
+ decisions: DeftDecisionRecord[];
23185
+ approvedScopes: DeftApprovedScope[];
23186
+ policy: DeftPolicy;
23187
+ specDrift: DeftSpecDrift;
23188
+ installDrift: string[];
23189
+ liftConflicts: string[];
23190
+ /** Last 50 lines, file order. */
23191
+ finishLoop: DeftFinishLoopEntry[];
23192
+ /** Last 50 `check_invocation` events. */
23193
+ gateRuns: DeftGateRun[];
23194
+ /** `greptile.json` or `.greptile/config.json` exists at the worktree root. */
23195
+ reviewerConfigPresent: boolean;
23196
+ cleanRecords: DeftCleanRecord[];
23197
+ /** `<repo-relative path>: <message>` for every file the reader skipped. */
23198
+ errors: string[];
23199
+ }
23200
+ interface DeftIssueSummary {
23201
+ issueId: string;
23202
+ scopeCounts: Partial<Record<DeftScopeFolder, number>>;
23203
+ specDriftUnresolved: number;
23204
+ installDrift: number;
23205
+ handoffState: string | null;
23206
+ openEscalations: number;
23207
+ }
23208
+ /** One exit-predicate field of Deft's review cycle. */
23209
+ type DeftExitField = 'met' | 'unmet' | 'unknown';
23210
+ /** Deft's own verdict names (`pr-watch/constants.ts`). */
23211
+ type DeftReviewVerdict = 'CLEAN' | 'NEW_P0_P1' | 'PENDING' | 'NO_REVIEWER_INSTALLED';
23212
+ interface DeftSeverityCounts {
23213
+ p0: number;
23214
+ p1: number;
23215
+ p2: number;
23216
+ }
23217
+ interface DeftReviewRound {
23218
+ /** 1-based. */
23219
+ index: number;
23220
+ findings: DeftSeverityCounts;
23221
+ commentCount: number;
23222
+ fixCommit: {
23223
+ sha: string;
23224
+ subject: string;
23225
+ committedAt: string;
23226
+ } | null;
23227
+ startedAt: string | null;
23228
+ }
23229
+ /** Deft's review cycle for one PR, reconstructed from PR data (PAN-4849 WI-20). */
23230
+ interface DeftReviewCycle {
23231
+ issueId: string;
23232
+ prNumber: number | null;
23233
+ headSha: string | null;
23234
+ reviewer: {
23235
+ present: boolean;
23236
+ name: 'greptile' | null;
23237
+ source: 'policy' | 'comment' | 'check_run' | 'config' | 'none';
23238
+ unsupported: string[];
23239
+ };
23240
+ verdict: DeftReviewVerdict;
23241
+ exit: {
23242
+ checkRun: DeftExitField;
23243
+ headSha: DeftExitField;
23244
+ lastReviewedCommit: DeftExitField;
23245
+ confidence: DeftExitField;
23246
+ noBlocking: DeftExitField;
23247
+ confidenceScore: number | null;
23248
+ minConfidence: number;
23249
+ lastReviewedSha: string | null;
23250
+ p0p1Remaining: number | null;
23251
+ };
23252
+ rounds: DeftReviewRound[];
23253
+ roundsReconstructed: true;
23254
+ lease: {
23255
+ owner: string;
23256
+ monitorAgentId: string;
23257
+ headSha: string | null;
23258
+ startedAt: string;
23259
+ expiresAt: string;
23260
+ endedAt: string | null;
23261
+ active: boolean;
23262
+ } | null;
23263
+ /** `pr-watch-*` heartbeats and those in phase polling or fixing. */
23264
+ heartbeats: DeftHeartbeat[];
23265
+ cleanRecords: DeftCleanRecord[];
23266
+ errors: string[];
23267
+ }
23268
+ //#endregion
23269
+ export { ACP_BEHAVIOR, ACP_CAPABILITIES, ACTIVITY_COUNT_MAX, ACTIVITY_PUSH_RATE_PER_MINUTE, ACTIVITY_REFRESH_MS, ACTIVITY_STALE_MS, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRole, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, AgentStartedEvent, AgentState, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, AnywhereChannelOpenedProperties, ApsEnvironment, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, AutoMergeToggledProperties, BROWSERS, BUILTIN_COLOR_THEMES, BackendAgentSnapshot, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserEntry, BrowserId, BrowserIdSchema, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECTOR_LIMIT, CONNECTOR_LIMIT_MESSAGE, CONNECTOR_PAIR_LINK_PREFIX, CONNECTOR_PAIR_LINK_VERSION, CONNECTOR_PAIR_SCHEME, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, ClientPlatform, ClientToDirectoryFrame, ColorTheme, ColorThemeFile, ColorThemeImportPreviewResponse, ColorThemeSource, ColorThemeSyntax, ColorThemeType, ColorThemeUi, ColorThemesListResponse, CompactBoundary, CompanionTerminalKind, CompanionTerminalOwnerShape, CompanionTerminalState, CompanionTerminalUnavailableReason, ComposerCommandArgument, ComposerCommandManifestEntry, ComposerCommandOption, ComposerCommandPolicy, ComposerCommandResult, ComposerExecutionMode, ComposerSafety, ConnectCloseCode, ConnectErrorCode, ConnectPlan, ConnectProtocolVersion, ConnectorPairLinkInput, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ControlPayload, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationForkedProperties, ConversationMovedEvent, ConversationPayload, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, CreateJoinRequest, CreateRoomRequest, CreateRoomResponse, CreateShareRequest, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DEFAULT_PHONE_NOTIFICATION_PREFERENCES, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardLifecycleState, DashboardSnapshot, DashboardTabViewedProperties, DeepWipeRpc, DeftApprovedScope, DeftCleanRecord, DeftDecisionRecord, DeftEscalation, DeftEscalationType, DeftExitField, DeftFinishLoopEntry, DeftGateRun, DeftHeartbeat, DeftIssueState, DeftIssueSummary, DeftPolicy, DeftReviewCycle, DeftReviewRound, DeftReviewVerdict, DeftScope, DeftScopeFolder, DeftScopeItem, DeftSeverityCounts, DeftSpecDrift, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrOutsidePipeline, DerivedPrState, DerivedProjectCi, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEndpoint, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachine, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryToClientFrame, DirectoryToMachineFrame, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, DraftPayload, DraftUpdate, 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, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FleetComponent, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJob, FleetUpdateJobSchema, FleetUpdateMode, FleetUpdateResponse, FleetVersionRow, FleetVersionsResponse, 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, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSampleProperties, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GitHubRateLimitedProperties, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, Harness, HarnessAskAnswerDelivery, HarnessAttachmentDelivery, HarnessBehavior, HarnessBinaryConfigKey, HarnessCapabilities, HarnessContextChannel, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessLaunchPreflight, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessSteerKind, HarnessTranscriptKind, HarnessVersionView, HarnessWorkspaceResolution, HealthReason, HealthState, HookInventoryEntry, HookInventoryName, HostFrame, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, IceServer, InboundMachineView, InstanceHeartbeatProperties, IssueAttention, IssueClosedOutProperties, IssueDelta, IssueId, IssueMergedProperties, IssuePipelineMembership, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, JoinEvent, JoinIceServersResponse, JoinState, JoinView, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LaneActivity, LaneActivityInput, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, LinkedConversationFields, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, ListSharesResponse, LiveActivityCounts, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkApprovedProperties, MachineLinkFailedProperties, MachineLinkStartedProperties, MachineLinkView, MachinePlacementMode, MachineProject, MachineToDirectoryFrame, MachineVersionsReport, MachineVersionsReportSchema, MachinesResponse, MembershipUnavailableReason, MemoryAgentRole, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PHONE_APP_SCHEME, PHONE_NOTIFICATION_CATEGORIES, PHONE_PAIR_CODE_RE, PHONE_PAIR_ENVIRONMENT_ID_RE, PHONE_PAIR_LINK_PREFIX, PHONE_PAIR_LINK_VERSION, PHONE_PAIR_MACHINE_KEY_RE, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PaneTokens, ParsedPullRequestRef, PendingTurn, PhoneNotificationCategory, PhoneNotificationPreferences, PhonePairLinkInput, PhonePairedProperties, PhonePlatform, PhonePushPayload, PhoneRemovedProperties, PipelineBucket, PipelineMembershipLoadingBody, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, PlanApprovedProperties, PlanChangesRequestedProperties, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, PresenceParticipant, PresencePayload, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiState, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectCreatedProperties, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestForge, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestRepo, PullRequestSnapshot, PullRequestState, PushResultError, PushUrgency, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatus, RelayStatusView, RelayUsageSampledProperties, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResolvedChannelPermissionDecision, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, RestartHold, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RoomParticipant, RoomSnapshot, RouteKind, RouteSource, RuntimeName, SCHEDULE_PRESET_DAYS, SHARED_CHANNELS, SHARED_PROMPT_MAX_CHARS, SHARED_SCOPE_KINDS, SHARED_WIRE_VERSION, SHARE_MAX_ENVELOPE_CHARS, SHARE_MAX_INBOUND_ENVELOPE_CHARS, SHARE_MAX_MESSAGE_CHARS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, SchedulePreset, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendSharePromptRequest, SendTerminalInputRpc, SeqTracker, SequenceNumber, ServerBootProperties, ServiceHealthSnapshot, ServiceHealthStatus, ServiceToHostFrame, ServiceToViewerFrame, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShareCloseCode, ShareCommand, ShareConnection, ShareDraftView, ShareErrorCode, ShareIdentity, ShareLastError, ShareProtocolVersion, ShareQueueItemView, ShareQueueView, ShareScope, ShareView, SharedChannel, SharedChannelReader, SharedChunk, SharedCommandRefusal, SharedControllerCommand, SharedConversationRow, SharedConversationsResponse, SharedEnvelope, SharedHello, SharedHelloError, SharedMessage, SharedReadResult, SharedStream, SharedSubmitReason, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, SignalData, SignalPurpose, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TelemetryChannelErrorClass, TelemetryChannelRoute, TelemetryCliVerb, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryGitHubCaller, TelemetryLinkFailureReason, TelemetryLinkMethod, TelemetryLinkSide, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TelemetryQuotaPointsBucket, TelemetryQuotaRemainingBucket, TelemetryRelayBytesBucket, TerminalBackendName, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalPalette, TerminalPayload, TerminalResizeRpc, TerminalUnavailableReason, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TimelineKey, TokenColorEntry, TokenColorSettings, TrackerIssueProject, TrackerIssueUrlRef, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, UnwiredHookInventoryEntry, UpdateChannel, UpdateCompatibility, UpdateInstallMode, UpdatePhase, UpdateSnapshot, ViewerFrame, ViewerStatus, WINDOW_PINNED_OPEN_TOOLS_MAX, 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, bucketRelayBytes, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeEnvelope, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeSharedMessage, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isLegacyPiHarnessName, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, negotiateHello, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, notificationAllowed, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseConnectorPairLink, parseLinkedConversationName, parsePhoneNotificationPreferences, parsePhonePairLink, parsePullRequestRef, parseTrackerIssueUrl, presenceForPaneState, presetToCron, projectLegacySystemHealthSummary, readDraftPayload, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolveTrackerIssueId, sharedPromptRefusal, slugifyThemeId, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, toSharedMessage, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
22424
23270
  //# sourceMappingURL=index.d.ts.map