@overdeck/contracts 0.73.1 → 0.75.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.cjs +1577 -44
- package/dist/index.d.ts +973 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1532 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,15 +20405,21 @@ 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", "mcp_session_seen", "mcp_tool_called", "client_request_failed", "phone_link_state"];
|
|
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"];
|
|
20411
|
+
/** PAN-5084: what kind of install reported an event — distinguishes real adoption from CI/test/VM churn. */
|
|
20412
|
+
declare const TELEMETRY_INSTALL_KINDS: readonly ["user", "remote_vm", "dev_checkout", "container"];
|
|
20281
20413
|
declare const TELEMETRY_PROPERTY_DOMAINS: {
|
|
20282
20414
|
readonly agent_spawn_mode: readonly ["spawn-and-send", "spawn-work-and-send"];
|
|
20283
20415
|
readonly answer_type: readonly ["custom", "selection", "note", "selection+note"];
|
|
20284
20416
|
readonly auto_merge_variant: readonly ["segmented", "badge"];
|
|
20285
20417
|
readonly boolean: readonly [false, true];
|
|
20418
|
+
readonly channel_error_class: readonly ["none", "unreachable", "identity_refused", "unknown_peer", "unsupported", "no_relay_plan", "descriptor_failed", "wrong_machine", "heartbeat_failed", "revoked"];
|
|
20419
|
+
readonly channel_route: readonly ["lan", "tailnet", "ssh", "public", "direct", "relay", "stored"];
|
|
20286
20420
|
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"];
|
|
20421
|
+
readonly client_route: readonly ["/api/activity", "/api/agent-directory", "/api/agent-requests", "/api/agents", "/api/agents/:id/answer-question", "/api/agents/:id/message", "/api/agents/:id/permissions/:requestId/respond", "/api/agents/:id/plan-action", "/api/agents/:id/tell", "/api/connectors/self", "/api/conversations", "/api/conversations/:id", "/api/conversations/:id/codex-approval", "/api/conversations/:id/pane-choice", "/api/conversations/:id/permission", "/api/conversations/:id/pi-ask-answer", "/api/conversations/:name/abort", "/api/conversations/:name/about", "/api/conversations/:name/attachments/:file", "/api/conversations/:name/bookmarks", "/api/conversations/:name/compact", "/api/conversations/:name/delete-image", "/api/conversations/:name/diffs", "/api/conversations/:name/diffs/:turnId", "/api/conversations/:name/kickoff", "/api/conversations/:name/message", "/api/conversations/:name/message-locator", "/api/conversations/:name/messages", "/api/conversations/:name/plan-action", "/api/conversations/:name/preview-ports", "/api/conversations/:name/pull-requests", "/api/conversations/:name/pull-requests/sync", "/api/conversations/:name/release", "/api/conversations/:name/release/complete", "/api/conversations/:name/release/transfer/:transferId", "/api/conversations/:name/release/undo", "/api/conversations/:name/resume", "/api/conversations/:name/scheduled-messages", "/api/conversations/:name/scheduled-messages/:id", "/api/conversations/:name/schedules", "/api/conversations/:name/schedules/:id", "/api/conversations/:name/stop", "/api/conversations/:name/switch-model", "/api/conversations/:name/thinking-level", "/api/conversations/:name/tool-body/:toolUseId", "/api/conversations/:name/upload-image", "/api/conversations/pending-input", "/api/costs/request-digest", "/api/costs/summary", "/api/disk-alert", "/api/fleet/conversations", "/api/fleet/issues/:id/activity", "/api/fleet/issues/:id/start", "/api/fleet/machines", "/api/fleet/needs-you", "/api/fleet/placement", "/api/fleet/search", "/api/fleet/workers", "/api/fleet/workers/:id/stop", "/api/flywheel/status", "/api/issues", "/api/lanes", "/api/lanes/:name", "/api/lanes/:name/stop", "/api/machines/conversations", "/api/machines/heartbeat", "/api/machines/issue-activity", "/api/machines/needs-you", "/api/machines/projects", "/api/machines/projects/:key/file", "/api/machines/projects/:key/source", "/api/machines/self", "/api/machines/work/conversations", "/api/machines/work/issues/:id/start", "/api/machines/work/lanes", "/api/machines/work/lanes/:name/reap", "/api/machines/work/lanes/:name/status", "/api/machines/work/projects", "/api/machines/work/projects/:jobId", "/api/machines/work/workers", "/api/needs-you", "/api/palette/search", "/api/phones/self", "/api/phones/self/notification-preferences", "/api/phones/self/push-key", "/api/pipeline/membership", "/api/pull-requests", "/api/pull-requests/conversations", "/api/registered-projects", "/api/self/done", "/api/self/handoff", "/api/self/jobs/:id", "/api/self/jobs/:id/wait", "/api/self/lanes", "/api/self/lanes/report", "/api/self/lanes/wait", "/api/self/machine-link-requests", "/api/self/machine-link-requests/:id/wait", "/api/self/memory/facts", "/api/self/memory/search", "/api/self/pull-request-watches", "/api/self/pull-request-watches/:id", "/api/self/pull-requests", "/api/self/secret-requests", "/api/self/secret-requests/:id/wait", "/api/self/tasks/block", "/api/self/tasks/claim", "/api/self/tasks/done", "/api/self/worker-report", "/api/self/workers", "/api/self/workers/:id", "/api/self/workers/:id/wait", "/api/settings/resolved", "/api/telemetry/client-config", "/api/versions/self", "/api/versions/self/update", "/api/workers", "/api/workers/:id/status", "/api/workers/:id/stop", "/events/stream", "/events/version", "other"];
|
|
20422
|
+
readonly client_route_area: readonly ["access-tokens", "account", "activity", "admin", "agent-directory", "agent-requests", "agents", "anywhere", "artifacts", "autopreso", "backlog", "boot-reconciliation", "cache", "cache-status", "claude-code", "cliproxy", "cloister", "color-themes", "command-deck", "commands", "confirmations", "connectors", "context", "conversations", "costs", "dashboard", "deacon", "deft", "deploy", "dev", "devices", "diffs", "directory", "discovered-sessions", "disk-alert", "effort", "environment", "events", "fleet", "flywheel", "fs", "git-activity", "github-quota", "godview", "health", "hooks", "internal", "issues", "jev", "joins", "knowledge-viewer", "lanes", "linear-mcp-auth", "linked-conversations", "machines", "mcp", "mcp-oauth", "memory", "merge-queue", "merge-train", "metrics", "model-presets", "models", "needs-you", "no-resume-mode", "orders", "pairing", "palette", "parked", "phones", "pipeline", "planning", "prereqs", "project-mappings", "projects", "pull-requests", "push", "rally", "registered-projects", "registry", "remote", "resources", "restart-gate", "resume-all", "review", "self", "session-trees", "settings", "shadow", "share-probe", "shares", "show", "skills", "specialists", "system", "tailscale", "telemetry", "terminals", "tiered", "tracker-status", "trackers", "triggers", "tts", "update", "vault", "velocity", "version", "versions", "voice", "webhooks", "workers", "workspace-registry", "workspace-stack-health", "workspaces", "other"];
|
|
20287
20423
|
readonly close_out_variant: readonly ["card", "inspector"];
|
|
20288
20424
|
readonly count_bucket: readonly ["0", "1-2", "3-5", "6-10", "11+"];
|
|
20289
20425
|
readonly dashboard_tab: readonly ["home", "pipeline", "kanban", "command-deck", "agents", "flywheel", "orders", "backlog", "resources", "knowledge", "skills", "context", "health", "activity", "metrics", "costs", "autopreso", "settings", "god-view", "deacon", "sessions", "awaiting-merge", "workspace-new", "project-new", "workspace"];
|
|
@@ -20293,13 +20429,31 @@ declare const TELEMETRY_PROPERTY_DOMAINS: {
|
|
|
20293
20429
|
readonly fork_kind: readonly ["summary", "handoff", "plain"];
|
|
20294
20430
|
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
20431
|
readonly harness: readonly ["claude-code", "ohmypi", "codex", "acp", "kimi-code", "opencode", "muse", "prime-agent"];
|
|
20432
|
+
readonly http_method: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "other"];
|
|
20433
|
+
readonly install_kind: readonly ["user", "remote_vm", "dev_checkout", "container"];
|
|
20434
|
+
readonly link_failure_reason: readonly ["bad_pairing_url", "unreachable", "pairing_refused", "unsupported", "identity_mismatch", "exchange_failed", "grant_refused", "offline", "approval_refused", "approval_failed", "other"];
|
|
20435
|
+
readonly link_method: readonly ["pairing_code", "ssh", "fly", "directory_approval", "other"];
|
|
20436
|
+
readonly link_reason: readonly ["none", "offline", "no_path", "unreachable", "removed", "pairing_refused", "identity_mismatch", "unsupported", "channel_failed", "delayed", "restarting", "unauthorized", "resume", "other"];
|
|
20437
|
+
readonly link_route: readonly ["direct", "relay", "unknown"];
|
|
20438
|
+
readonly link_side: readonly ["requester", "approver"];
|
|
20439
|
+
readonly link_state: readonly ["failed", "dropped", "recovered", "route_changed"];
|
|
20440
|
+
readonly mcp_auth: readonly ["agent_token", "oauth", "access_token", "connector"];
|
|
20441
|
+
readonly mcp_client: readonly ["claude_code", "codex", "cursor", "vscode", "chatgpt", "grok", "hermes", "openclaw", "gemini", "opencode", "kimi", "overdeck_connector", "other"];
|
|
20442
|
+
readonly mcp_protocol: readonly ["2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07", "other"];
|
|
20443
|
+
readonly mcp_surface: readonly ["dashboard_http", "public_http", "stdio", "connector_http", "connector_stdio"];
|
|
20444
|
+
readonly mcp_tool: readonly ["answer_agent_permission", "answer_agent_plan", "answer_codex_approval", "answer_pane_choice", "answer_permission", "answer_pi_ask", "answer_plan", "answer_question", "delegate_task", "delete_scheduled", "done", "handoff", "interrupt_conversation", "lane_report", "lane_start", "lane_status", "lane_stop", "lane_wait", "link_machine", "link_machine_wait", "link_pull_request", "list_conversations", "list_machines", "list_pending_input", "list_pull_request_watches", "list_scheduled", "list_workers", "memory_add", "memory_search", "read_conversation", "request_secret", "schedule_message", "schedule_recurring", "search_conversations", "secret_wait", "send_message", "start_conversation", "start_issue", "start_worker", "stop_conversation", "task_block", "task_cancel", "task_claim", "task_done", "task_status", "task_wait", "unwatch_pull_request", "update_scheduled", "wait_job", "watch_pull_request", "worker_report"];
|
|
20296
20445
|
readonly merge_kind: readonly ["pipeline"];
|
|
20297
20446
|
readonly model_family: readonly ["claude", "gpt", "gemini", "kimi", "minimax", "glm", "mimo", "other"];
|
|
20447
|
+
readonly phone_removed_by: readonly ["operator", "phone"];
|
|
20298
20448
|
readonly pipeline_stage: readonly ["work_done", "review_passed", "verification_passed", "merged", "closed_out"];
|
|
20299
20449
|
readonly project_mode: readonly ["clone", "existing", "new"];
|
|
20300
20450
|
readonly quota_points_bucket: readonly ["0", "1-49", "50-199", "200-499", "500-999", "1000-2499", "2500+"];
|
|
20301
20451
|
readonly quota_remaining_bucket: readonly ["0", "1-99", "100-499", "500-999", "1000-2499", "2500+", "unknown"];
|
|
20302
20452
|
readonly rate_limit_kind: readonly ["primary", "secondary"];
|
|
20453
|
+
readonly recovery_bucket: readonly ["none", "under_1s", "1s-4s", "5s-14s", "15s-59s", "60s+"];
|
|
20454
|
+
readonly relay_bytes_bucket: readonly ["under_1mb", "1mb-9mb", "10mb-99mb", "100mb-999mb", "1gb+"];
|
|
20455
|
+
readonly request_status: readonly ["400", "401", "403", "404", "408", "409", "413", "422", "429", "other_4xx", "500", "502", "503", "504", "other_5xx", "network", "timeout", "aborted"];
|
|
20456
|
+
readonly telemetry_client: readonly ["phone", "desktop"];
|
|
20303
20457
|
};
|
|
20304
20458
|
type TelemetryPropertyDomainName = keyof typeof TELEMETRY_PROPERTY_DOMAINS;
|
|
20305
20459
|
declare const TELEMETRY_EVENT_CATALOG: {
|
|
@@ -20398,6 +20552,56 @@ declare const TELEMETRY_EVENT_CATALOG: {
|
|
|
20398
20552
|
readonly active_agent_count: "count_bucket";
|
|
20399
20553
|
readonly dashboard_running: "boolean";
|
|
20400
20554
|
};
|
|
20555
|
+
readonly machine_link_started: {
|
|
20556
|
+
readonly method: "link_method";
|
|
20557
|
+
};
|
|
20558
|
+
readonly machine_link_approved: {
|
|
20559
|
+
readonly method: "link_method";
|
|
20560
|
+
readonly side: "link_side";
|
|
20561
|
+
};
|
|
20562
|
+
readonly machine_link_failed: {
|
|
20563
|
+
readonly method: "link_method";
|
|
20564
|
+
readonly side: "link_side";
|
|
20565
|
+
readonly reason: "link_failure_reason";
|
|
20566
|
+
};
|
|
20567
|
+
readonly phone_paired: {
|
|
20568
|
+
readonly replaced_previous: "boolean";
|
|
20569
|
+
};
|
|
20570
|
+
readonly phone_removed: {
|
|
20571
|
+
readonly by: "phone_removed_by";
|
|
20572
|
+
};
|
|
20573
|
+
readonly anywhere_channel_opened: {
|
|
20574
|
+
readonly route: "channel_route";
|
|
20575
|
+
readonly ok: "boolean";
|
|
20576
|
+
readonly error_class: "channel_error_class";
|
|
20577
|
+
};
|
|
20578
|
+
readonly relay_usage_sampled: {
|
|
20579
|
+
readonly bytes: "relay_bytes_bucket";
|
|
20580
|
+
};
|
|
20581
|
+
readonly mcp_session_seen: {
|
|
20582
|
+
readonly mcp_surface: "mcp_surface";
|
|
20583
|
+
readonly mcp_protocol: "mcp_protocol";
|
|
20584
|
+
readonly mcp_client: "mcp_client";
|
|
20585
|
+
readonly mcp_auth: "mcp_auth";
|
|
20586
|
+
};
|
|
20587
|
+
readonly mcp_tool_called: {
|
|
20588
|
+
readonly mcp_surface: "mcp_surface";
|
|
20589
|
+
readonly mcp_client: "mcp_client";
|
|
20590
|
+
readonly mcp_tool: "mcp_tool";
|
|
20591
|
+
};
|
|
20592
|
+
readonly client_request_failed: {
|
|
20593
|
+
readonly client: "telemetry_client";
|
|
20594
|
+
readonly route: "client_route";
|
|
20595
|
+
readonly route_area: "client_route_area";
|
|
20596
|
+
readonly method: "http_method";
|
|
20597
|
+
readonly status: "request_status";
|
|
20598
|
+
};
|
|
20599
|
+
readonly phone_link_state: {
|
|
20600
|
+
readonly state: "link_state";
|
|
20601
|
+
readonly reason: "link_reason";
|
|
20602
|
+
readonly route: "link_route";
|
|
20603
|
+
readonly recover_time: "recovery_bucket";
|
|
20604
|
+
};
|
|
20401
20605
|
};
|
|
20402
20606
|
type TelemetryPropertyValue<Domain extends TelemetryPropertyDomainName> = (typeof TELEMETRY_PROPERTY_DOMAINS)[Domain][number];
|
|
20403
20607
|
type EventProperties<Event extends TelemetryEventName> = { readonly [Property in keyof (typeof TELEMETRY_EVENT_CATALOG)[Event]]: TelemetryPropertyValue<(typeof TELEMETRY_EVENT_CATALOG)[Event][Property] & TelemetryPropertyDomainName> };
|
|
@@ -20425,13 +20629,66 @@ type PipelineStageChangedProperties = EventProperties<"pipeline_stage_changed">;
|
|
|
20425
20629
|
type GitHubQuotaSampleProperties = EventProperties<"github_quota_sample">;
|
|
20426
20630
|
type GitHubRateLimitedProperties = EventProperties<"github_rate_limited">;
|
|
20427
20631
|
type InstanceHeartbeatProperties = EventProperties<"instance_heartbeat">;
|
|
20632
|
+
type MachineLinkStartedProperties = EventProperties<"machine_link_started">;
|
|
20633
|
+
type MachineLinkApprovedProperties = EventProperties<"machine_link_approved">;
|
|
20634
|
+
type MachineLinkFailedProperties = EventProperties<"machine_link_failed">;
|
|
20635
|
+
type PhonePairedProperties = EventProperties<"phone_paired">;
|
|
20636
|
+
type PhoneRemovedProperties = EventProperties<"phone_removed">;
|
|
20637
|
+
type AnywhereChannelOpenedProperties = EventProperties<"anywhere_channel_opened">;
|
|
20638
|
+
type RelayUsageSampledProperties = EventProperties<"relay_usage_sampled">;
|
|
20639
|
+
type McpSessionSeenProperties = EventProperties<"mcp_session_seen">;
|
|
20640
|
+
type McpToolCalledProperties = EventProperties<"mcp_tool_called">;
|
|
20641
|
+
type TelemetryClient = TelemetryPropertyValue<"telemetry_client">;
|
|
20642
|
+
type TelemetryClientRoute = TelemetryPropertyValue<"client_route">;
|
|
20643
|
+
type TelemetryClientRouteArea = TelemetryPropertyValue<"client_route_area">;
|
|
20644
|
+
type TelemetryHttpMethod = TelemetryPropertyValue<"http_method">;
|
|
20645
|
+
type TelemetryRequestStatus = TelemetryPropertyValue<"request_status">;
|
|
20646
|
+
type TelemetryLinkState = TelemetryPropertyValue<"link_state">;
|
|
20647
|
+
type TelemetryLinkReason = TelemetryPropertyValue<"link_reason">;
|
|
20648
|
+
type TelemetryLinkRoute = TelemetryPropertyValue<"link_route">;
|
|
20649
|
+
type TelemetryRecoveryBucket = TelemetryPropertyValue<"recovery_bucket">;
|
|
20650
|
+
type ClientRequestFailedProperties = EventProperties<"client_request_failed">;
|
|
20651
|
+
type PhoneLinkStateProperties = EventProperties<"phone_link_state">;
|
|
20652
|
+
/** PAN-5100: what `GET /api/telemetry/client-config` returns (D-10..D-12). */
|
|
20653
|
+
interface TelemetryClientConfig {
|
|
20654
|
+
readonly effectiveEnabled: boolean;
|
|
20655
|
+
readonly installId?: string;
|
|
20656
|
+
readonly installKind?: TelemetryInstallKind;
|
|
20657
|
+
readonly buildCommit?: string;
|
|
20658
|
+
readonly operatorHash?: string;
|
|
20659
|
+
readonly posthogKey?: string;
|
|
20660
|
+
readonly posthogHost?: string;
|
|
20661
|
+
}
|
|
20428
20662
|
type TelemetryQuotaPointsBucket = TelemetryPropertyValue<"quota_points_bucket">;
|
|
20429
20663
|
type TelemetryQuotaRemainingBucket = TelemetryPropertyValue<"quota_remaining_bucket">;
|
|
20430
20664
|
type TelemetryGitHubCaller = TelemetryPropertyValue<"github_caller">;
|
|
20665
|
+
type TelemetryLinkMethod = TelemetryPropertyValue<"link_method">;
|
|
20666
|
+
type TelemetryLinkSide = TelemetryPropertyValue<"link_side">;
|
|
20667
|
+
type TelemetryLinkFailureReason = TelemetryPropertyValue<"link_failure_reason">;
|
|
20668
|
+
type TelemetryChannelRoute = TelemetryPropertyValue<"channel_route">;
|
|
20669
|
+
type TelemetryChannelErrorClass = TelemetryPropertyValue<"channel_error_class">;
|
|
20670
|
+
type TelemetryRelayBytesBucket = TelemetryPropertyValue<"relay_bytes_bucket">;
|
|
20671
|
+
type TelemetryInstallKind = TelemetryPropertyValue<"install_kind">;
|
|
20672
|
+
type TelemetryMcpSurface = TelemetryPropertyValue<"mcp_surface">;
|
|
20673
|
+
type TelemetryMcpProtocol = TelemetryPropertyValue<"mcp_protocol">;
|
|
20674
|
+
type TelemetryMcpClient = TelemetryPropertyValue<"mcp_client">;
|
|
20675
|
+
type TelemetryMcpAuth = TelemetryPropertyValue<"mcp_auth">;
|
|
20676
|
+
type TelemetryMcpTool = TelemetryPropertyValue<"mcp_tool">;
|
|
20431
20677
|
/** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
|
|
20432
20678
|
declare function bucketQuotaPoints(points: number): TelemetryQuotaPointsBucket;
|
|
20433
20679
|
/** PAN-4264: GitHub quota remaining as a coarse bucket; `unknown` without a sample. */
|
|
20434
20680
|
declare function bucketQuotaRemaining(remaining: number | undefined): TelemetryQuotaRemainingBucket;
|
|
20681
|
+
/** PAN-5016: relayed bytes as a coarse bucket (raw byte counts are never sent). */
|
|
20682
|
+
declare function bucketRelayBytes(bytes: number): TelemetryRelayBytesBucket;
|
|
20683
|
+
/** PAN-5100: the closed route template and area for a same-origin path (query and hash ignored). */
|
|
20684
|
+
declare function clientRouteOf(pathname: string): {
|
|
20685
|
+
route: TelemetryClientRoute;
|
|
20686
|
+
route_area: TelemetryClientRouteArea;
|
|
20687
|
+
};
|
|
20688
|
+
/** PAN-5100: an HTTP status (≥ 400) as a closed bucket. */
|
|
20689
|
+
declare function bucketRequestStatus(status: number): TelemetryRequestStatus;
|
|
20690
|
+
/** PAN-5100: milliseconds to recover as a coarse bucket. */
|
|
20691
|
+
declare function bucketRecoveryMs(ms: number | null): TelemetryRecoveryBucket;
|
|
20435
20692
|
type TelemetryEventProperties = { readonly [Event in TelemetryEventName]: EventProperties<Event> };
|
|
20436
20693
|
type TelemetryPropertiesFor<Event extends TelemetryEventName> = TelemetryEventProperties[Event];
|
|
20437
20694
|
//#endregion
|
|
@@ -21243,7 +21500,9 @@ declare const EnvironmentCapabilities: Schema.Struct<{
|
|
|
21243
21500
|
/** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
|
|
21244
21501
|
readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
|
|
21245
21502
|
readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
|
|
21246
|
-
readonly machineLinks: Schema.optional<Schema.Boolean>;
|
|
21503
|
+
readonly machineLinks: Schema.optional<Schema.Boolean>; /** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
|
|
21504
|
+
readonly phoneApp: Schema.optional<Schema.Boolean>; /** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
|
|
21505
|
+
readonly connector: Schema.optional<Schema.Boolean>;
|
|
21247
21506
|
}>;
|
|
21248
21507
|
type EnvironmentCapabilities = typeof EnvironmentCapabilities.Type;
|
|
21249
21508
|
declare const EnvironmentDescriptor: Schema.Struct<{
|
|
@@ -21260,7 +21519,9 @@ declare const EnvironmentDescriptor: Schema.Struct<{
|
|
|
21260
21519
|
/** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
|
|
21261
21520
|
readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
|
|
21262
21521
|
readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
|
|
21263
|
-
readonly machineLinks: Schema.optional<Schema.Boolean>;
|
|
21522
|
+
readonly machineLinks: Schema.optional<Schema.Boolean>; /** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
|
|
21523
|
+
readonly phoneApp: Schema.optional<Schema.Boolean>; /** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
|
|
21524
|
+
readonly connector: Schema.optional<Schema.Boolean>;
|
|
21264
21525
|
}>; /** Long-term X25519 machine public key, 64 lowercase hex (PAN-4645). */
|
|
21265
21526
|
readonly machineKey: Schema.optional<Schema.String>; /** The server's `LINK_PROTOCOL_VERSION`; optional so older descriptors still decode (D-4645-11). */
|
|
21266
21527
|
readonly linkProtocol: Schema.optional<Schema.Number>; /** Endpoints this machine advertises for secure channels. */
|
|
@@ -21520,7 +21781,9 @@ declare const MachinesResponse: Schema.Struct<{
|
|
|
21520
21781
|
readonly sampledAt: Schema.String;
|
|
21521
21782
|
}>>>;
|
|
21522
21783
|
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
21523
|
-
readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>;
|
|
21784
|
+
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. */
|
|
21785
|
+
readonly remoteEnabled: Schema.optional<Schema.Boolean>; /** PAN-4905: config.toml as a display path (`~/.overdeck/config.toml`). */
|
|
21786
|
+
readonly remoteConfigFile: Schema.optional<Schema.String>;
|
|
21524
21787
|
}>;
|
|
21525
21788
|
readonly links: Schema.$Array<Schema.Struct<{
|
|
21526
21789
|
readonly id: Schema.String;
|
|
@@ -21630,6 +21893,12 @@ interface SharedConversationRow {
|
|
|
21630
21893
|
environmentId: string;
|
|
21631
21894
|
nativeSessionId: string;
|
|
21632
21895
|
} | null;
|
|
21896
|
+
/**
|
|
21897
|
+
* Why the owner's launch failed (its `spawn_error`), so the viewer shows the
|
|
21898
|
+
* failure instead of an empty composer (PAN-4903). Sent only when set; absent
|
|
21899
|
+
* from older owners.
|
|
21900
|
+
*/
|
|
21901
|
+
spawnError?: string | null;
|
|
21633
21902
|
}
|
|
21634
21903
|
/** The owner's answer to `GET /api/machines/conversations`. */
|
|
21635
21904
|
interface SharedConversationsResponse {
|
|
@@ -21784,6 +22053,266 @@ type ServiceToViewerFrame = {
|
|
|
21784
22053
|
};
|
|
21785
22054
|
/** WebSocket close codes the share service uses. */
|
|
21786
22055
|
type ShareCloseCode = 1000 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4011 | 4013;
|
|
22056
|
+
/**
|
|
22057
|
+
* The host socket's state in this dashboard process. 'reconnecting': the socket dropped and the
|
|
22058
|
+
* manager retries on a backoff (PAN-4479). 'disconnected': a stale record that was not re-parked,
|
|
22059
|
+
* or a socket replaced by another host (close 4008).
|
|
22060
|
+
*/
|
|
22061
|
+
type ShareConnection = 'connecting' | 'connected' | 'reconnecting' | 'disconnected';
|
|
22062
|
+
/** The host frames the data owner's browser may request. Slice 7 adds set-controller (handoff; the data owner's id = reclaim). */
|
|
22063
|
+
type ShareCommand = Extract<HostFrame, {
|
|
22064
|
+
readonly type: 'admit' | 'kick' | 'revoke' | 'unrevoke' | 'set-contributor' | 'set-controller';
|
|
22065
|
+
}>;
|
|
22066
|
+
/** The share commands a viewer-controller may send on `control` (slice 7). Un-revoke stays with the data owner (D-7). */
|
|
22067
|
+
type SharedControllerCommand = Exclude<ShareCommand, {
|
|
22068
|
+
readonly type: 'unrevoke';
|
|
22069
|
+
}>;
|
|
22070
|
+
/** Why the host refused a controller command or a controller send (slice 7). */
|
|
22071
|
+
type SharedCommandRefusal = 'not_controller' | 'unknown_participant' | 'invalid_target' | 'invalid_command' | 'not_connected' | 'invalid_prompt' | 'too_long' | 'queue_full';
|
|
22072
|
+
interface CreateShareRequest {
|
|
22073
|
+
readonly conversationName: string;
|
|
22074
|
+
}
|
|
22075
|
+
interface ShareLastError {
|
|
22076
|
+
readonly code: ShareErrorCode | 'replaced';
|
|
22077
|
+
readonly githubId?: number;
|
|
22078
|
+
readonly at: string;
|
|
22079
|
+
}
|
|
22080
|
+
interface ShareView {
|
|
22081
|
+
readonly shortCode: string;
|
|
22082
|
+
readonly joinUrl: string;
|
|
22083
|
+
readonly scope: ShareScope;
|
|
22084
|
+
readonly createdAt: string;
|
|
22085
|
+
readonly connection: ShareConnection;
|
|
22086
|
+
readonly snapshot: RoomSnapshot | null;
|
|
22087
|
+
readonly lastError: ShareLastError | null;
|
|
22088
|
+
/** Slice 5: the viewers' current drafts, oldest started first. Optional so older fixtures compile (D-13). */
|
|
22089
|
+
readonly drafts?: readonly ShareDraftView[];
|
|
22090
|
+
/** Slice 5: the share's prompt queue. Optional so older fixtures compile (D-13). */
|
|
22091
|
+
readonly queue?: ShareQueueView;
|
|
22092
|
+
/** Slice 7: the host's effective controller (D-2). Optional so older fixtures compile. */
|
|
22093
|
+
readonly controllerGithubId?: number;
|
|
22094
|
+
}
|
|
22095
|
+
/** One viewer's current draft, as the host browser sees it. */
|
|
22096
|
+
interface ShareDraftView {
|
|
22097
|
+
readonly githubId: number;
|
|
22098
|
+
readonly login: string;
|
|
22099
|
+
readonly avatarUrl: string;
|
|
22100
|
+
readonly text: string;
|
|
22101
|
+
readonly startedAt: string;
|
|
22102
|
+
readonly updatedAt: string;
|
|
22103
|
+
}
|
|
22104
|
+
/** One prompt waiting in (or being delivered from) the host's queue. */
|
|
22105
|
+
interface ShareQueueItemView {
|
|
22106
|
+
readonly id: string;
|
|
22107
|
+
readonly login: string;
|
|
22108
|
+
readonly avatarUrl: string;
|
|
22109
|
+
readonly source: 'contributor' | 'controller';
|
|
22110
|
+
readonly text: string;
|
|
22111
|
+
readonly enqueuedAt: string;
|
|
22112
|
+
}
|
|
22113
|
+
interface ShareQueueView {
|
|
22114
|
+
readonly agentWorking: boolean;
|
|
22115
|
+
readonly delivering: boolean;
|
|
22116
|
+
readonly items: readonly ShareQueueItemView[];
|
|
22117
|
+
}
|
|
22118
|
+
/** POST /api/shares/:code/prompts: a controller send; `draftGithubId` names the picked draft. */
|
|
22119
|
+
interface SendSharePromptRequest {
|
|
22120
|
+
readonly text: string;
|
|
22121
|
+
readonly draftGithubId?: number;
|
|
22122
|
+
}
|
|
22123
|
+
interface ListSharesResponse {
|
|
22124
|
+
readonly shares: readonly ShareView[];
|
|
22125
|
+
}
|
|
22126
|
+
/** The five data channel labels. Every peer connection carries all five, ordered and reliable. */
|
|
22127
|
+
type SharedChannel = 'control' | 'conversation' | 'drafts' | 'terminal' | 'presence';
|
|
22128
|
+
/** One data-channel message. `v` is 1 in this version; a later host may send more. */
|
|
22129
|
+
interface SharedEnvelope<P = unknown> {
|
|
22130
|
+
readonly v: number;
|
|
22131
|
+
readonly ch: SharedChannel;
|
|
22132
|
+
/** The member session; v0: always the shared conversation's name. */
|
|
22133
|
+
readonly streamId: string;
|
|
22134
|
+
/** Per peer connection, per channel, per stream: 1, 2, 3, … Fragments do not consume one. */
|
|
22135
|
+
readonly seq: number;
|
|
22136
|
+
/** Host epoch ms. */
|
|
22137
|
+
readonly t: number;
|
|
22138
|
+
readonly payload: P;
|
|
22139
|
+
}
|
|
22140
|
+
/** One piece of an encoded envelope longer than SHARE_MAX_MESSAGE_CHARS, sent in order on the same channel. */
|
|
22141
|
+
interface SharedChunk {
|
|
22142
|
+
readonly v: number;
|
|
22143
|
+
readonly chunk: {
|
|
22144
|
+
readonly id: number;
|
|
22145
|
+
readonly index: number;
|
|
22146
|
+
readonly count: number;
|
|
22147
|
+
};
|
|
22148
|
+
readonly data: string;
|
|
22149
|
+
}
|
|
22150
|
+
/** The first envelope each side sends on `control`. The viewer copies `scope` from the host's hello. */
|
|
22151
|
+
interface SharedHello {
|
|
22152
|
+
readonly v: number;
|
|
22153
|
+
readonly scopeKinds: readonly ShareScope['kind'][];
|
|
22154
|
+
readonly scope: ShareScope;
|
|
22155
|
+
}
|
|
22156
|
+
type SharedHelloError = 'invalid_hello' | 'version_unsupported' | 'scope_kind_unsupported';
|
|
22157
|
+
/** Why a shared prompt was not (or will not be) delivered. */
|
|
22158
|
+
type SharedSubmitReason = 'not_contributor' | 'invalid_prompt' | 'too_long' | 'queue_full' | 'grant_revoked' | 'delivery_refused' | 'delivery_unknown';
|
|
22159
|
+
/**
|
|
22160
|
+
* `control` payloads. Slice 5 adds submit (viewer → host), submit-ack and draft-sent (host → viewer);
|
|
22161
|
+
* slice 6 adds the viewer's terminal watch. Slice 7 adds identity and command-ack (host → viewer),
|
|
22162
|
+
* command and controller-send (viewer → host).
|
|
22163
|
+
*/
|
|
22164
|
+
type ControlPayload = {
|
|
22165
|
+
readonly kind: 'hello';
|
|
22166
|
+
readonly hello: SharedHello;
|
|
22167
|
+
} | {
|
|
22168
|
+
readonly kind: 'error';
|
|
22169
|
+
readonly code: SharedHelloError;
|
|
22170
|
+
} | {
|
|
22171
|
+
readonly kind: 'submit';
|
|
22172
|
+
readonly clientId: string;
|
|
22173
|
+
readonly text: string;
|
|
22174
|
+
} | {
|
|
22175
|
+
readonly kind: 'submit-ack';
|
|
22176
|
+
readonly clientId: string;
|
|
22177
|
+
readonly status: 'queued' | 'sent' | 'rejected';
|
|
22178
|
+
readonly position?: number;
|
|
22179
|
+
readonly reason?: SharedSubmitReason;
|
|
22180
|
+
} | {
|
|
22181
|
+
readonly kind: 'draft-sent';
|
|
22182
|
+
} /** Viewer → host: start (`true`) or stop (`false`) the read-only terminal stream (slice 6). */ | {
|
|
22183
|
+
readonly kind: 'terminal-watch';
|
|
22184
|
+
readonly watch: boolean;
|
|
22185
|
+
} | {
|
|
22186
|
+
readonly kind: 'identity';
|
|
22187
|
+
readonly githubId: number;
|
|
22188
|
+
} | {
|
|
22189
|
+
readonly kind: 'command';
|
|
22190
|
+
readonly clientId: string;
|
|
22191
|
+
readonly command: SharedControllerCommand;
|
|
22192
|
+
} | {
|
|
22193
|
+
readonly kind: 'controller-send';
|
|
22194
|
+
readonly clientId: string;
|
|
22195
|
+
readonly text: string;
|
|
22196
|
+
readonly draftGithubId?: number;
|
|
22197
|
+
} | {
|
|
22198
|
+
readonly kind: 'command-ack';
|
|
22199
|
+
readonly clientId: string;
|
|
22200
|
+
readonly status: 'accepted' | 'rejected';
|
|
22201
|
+
readonly position?: number;
|
|
22202
|
+
readonly reason?: SharedCommandRefusal;
|
|
22203
|
+
};
|
|
22204
|
+
type TerminalUnavailableReason = 'terminal_not_found' | 'terminal_ended';
|
|
22205
|
+
/**
|
|
22206
|
+
* `terminal` payloads (slice 6), host → viewer only. A watch starts with `snapshot`; `data` is raw
|
|
22207
|
+
* terminal output (escape sequences included). The host reads nothing on this channel.
|
|
22208
|
+
*/
|
|
22209
|
+
type TerminalPayload = {
|
|
22210
|
+
readonly kind: 'snapshot';
|
|
22211
|
+
readonly cols: number;
|
|
22212
|
+
readonly rows: number;
|
|
22213
|
+
readonly data: string;
|
|
22214
|
+
} | {
|
|
22215
|
+
readonly kind: 'output';
|
|
22216
|
+
readonly data: string;
|
|
22217
|
+
} | {
|
|
22218
|
+
readonly kind: 'size';
|
|
22219
|
+
readonly cols: number;
|
|
22220
|
+
readonly rows: number;
|
|
22221
|
+
} | {
|
|
22222
|
+
readonly kind: 'unavailable';
|
|
22223
|
+
readonly reason: TerminalUnavailableReason;
|
|
22224
|
+
};
|
|
22225
|
+
/** The allow-listed subset of the internal ChatMessage that may cross to a viewer. */
|
|
22226
|
+
interface SharedMessage {
|
|
22227
|
+
readonly id: string;
|
|
22228
|
+
readonly role: 'user' | 'assistant' | 'system';
|
|
22229
|
+
readonly text: string;
|
|
22230
|
+
readonly turnId?: string;
|
|
22231
|
+
/** Which human sent a user message (slice 5 sets it; never mapped from ChatMessage). */
|
|
22232
|
+
readonly author?: {
|
|
22233
|
+
readonly login: string;
|
|
22234
|
+
readonly avatarUrl: string;
|
|
22235
|
+
};
|
|
22236
|
+
readonly createdAt: string;
|
|
22237
|
+
readonly completedAt?: string;
|
|
22238
|
+
readonly streaming?: boolean;
|
|
22239
|
+
readonly sequence?: number;
|
|
22240
|
+
}
|
|
22241
|
+
/** `conversation` payloads. `history` replaces the stream's whole list. */
|
|
22242
|
+
type ConversationPayload = {
|
|
22243
|
+
readonly kind: 'history';
|
|
22244
|
+
readonly messages: readonly SharedMessage[];
|
|
22245
|
+
} | {
|
|
22246
|
+
readonly kind: 'append';
|
|
22247
|
+
readonly message: SharedMessage;
|
|
22248
|
+
} | {
|
|
22249
|
+
readonly kind: 'update';
|
|
22250
|
+
readonly message: SharedMessage;
|
|
22251
|
+
} | {
|
|
22252
|
+
readonly kind: 'unavailable';
|
|
22253
|
+
readonly reason: 'transcript_not_found' | 'history_too_large';
|
|
22254
|
+
};
|
|
22255
|
+
interface SharedStream {
|
|
22256
|
+
readonly streamId: string;
|
|
22257
|
+
readonly label: string;
|
|
22258
|
+
readonly kind: 'conversation';
|
|
22259
|
+
/** Slice 5: the stream's agent is mid-turn. Absent from older hosts. */
|
|
22260
|
+
readonly agentWorking?: boolean;
|
|
22261
|
+
/** Slice 5: shared prompts waiting in the host's queue. Absent from older hosts. */
|
|
22262
|
+
readonly queued?: number;
|
|
22263
|
+
}
|
|
22264
|
+
interface PresenceParticipant {
|
|
22265
|
+
readonly githubId: number;
|
|
22266
|
+
readonly login: string;
|
|
22267
|
+
readonly avatarUrl: string;
|
|
22268
|
+
readonly state: 'lobby' | 'admitted';
|
|
22269
|
+
readonly contributor: boolean;
|
|
22270
|
+
readonly isHost: boolean;
|
|
22271
|
+
}
|
|
22272
|
+
/** `presence` payload: the roster (data owner first), the controller and the stream roster. */
|
|
22273
|
+
interface PresencePayload {
|
|
22274
|
+
readonly controllerGithubId: number;
|
|
22275
|
+
readonly participants: readonly PresenceParticipant[];
|
|
22276
|
+
readonly streams: readonly SharedStream[];
|
|
22277
|
+
}
|
|
22278
|
+
/** Host → viewer on `drafts`: another participant's whole draft; an empty `text` deletes it. */
|
|
22279
|
+
interface DraftPayload {
|
|
22280
|
+
readonly authorGithubId: number;
|
|
22281
|
+
readonly authorLogin: string;
|
|
22282
|
+
readonly text: string;
|
|
22283
|
+
readonly updatedAt: number;
|
|
22284
|
+
}
|
|
22285
|
+
/** Viewer → host on `drafts`: the author's whole draft. The host ignores every other key. */
|
|
22286
|
+
interface DraftUpdate {
|
|
22287
|
+
readonly text: string;
|
|
22288
|
+
}
|
|
22289
|
+
/** A join's state on the viewer server. Live: connecting, lobby, admitted, host-disconnected, reconnecting. */
|
|
22290
|
+
type JoinState = 'connecting' | 'lobby' | 'admitted' | 'host-disconnected' | 'reconnecting' | 'away' | 'disconnected' | 'left' | 'kicked' | 'revoked' | 'ended' | 'is-host' | 'full' | 'replaced' | 'rejected';
|
|
22291
|
+
interface JoinView {
|
|
22292
|
+
readonly shortCode: string;
|
|
22293
|
+
readonly joinUrl: string;
|
|
22294
|
+
readonly state: JoinState;
|
|
22295
|
+
readonly contributor: boolean;
|
|
22296
|
+
readonly login: string | null;
|
|
22297
|
+
readonly closeCode: number | null;
|
|
22298
|
+
readonly error: string | null;
|
|
22299
|
+
}
|
|
22300
|
+
interface CreateJoinRequest {
|
|
22301
|
+
readonly code: string;
|
|
22302
|
+
}
|
|
22303
|
+
interface JoinIceServersResponse {
|
|
22304
|
+
readonly iceServers: readonly IceServer[];
|
|
22305
|
+
}
|
|
22306
|
+
/** Server-sent events on GET /api/joins/:code/events. The SSE `event:` name is `type`. */
|
|
22307
|
+
type JoinEvent = {
|
|
22308
|
+
readonly type: 'state';
|
|
22309
|
+
readonly view: JoinView;
|
|
22310
|
+
} | {
|
|
22311
|
+
readonly type: 'signal';
|
|
22312
|
+
readonly data: SignalData;
|
|
22313
|
+
} | {
|
|
22314
|
+
readonly type: 'replaced';
|
|
22315
|
+
};
|
|
21787
22316
|
//#endregion
|
|
21788
22317
|
//#region src/connect.d.ts
|
|
21789
22318
|
declare const CONNECT_PROTOCOL_VERSION = 1;
|
|
@@ -21798,6 +22327,8 @@ declare const INBOX_HOLD_MS = 86400000;
|
|
|
21798
22327
|
declare const APPROVAL_TTL_MS = 600000;
|
|
21799
22328
|
/** Phones (directory clients) one account may register (PAN-4823 D-2, NFR-3). Clients never count as machines. */
|
|
21800
22329
|
declare const CLIENT_LIMIT = 5;
|
|
22330
|
+
/** PAN-4927 D-18: connectors are counted apart from phones. */
|
|
22331
|
+
declare const CONNECTOR_LIMIT = 10;
|
|
21801
22332
|
/** Pushes the directory forwards per account per minute (PAN-4823 D-9). */
|
|
21802
22333
|
declare const PUSH_RATE_PER_MINUTE = 30;
|
|
21803
22334
|
/**
|
|
@@ -21810,10 +22341,24 @@ declare const PUSH_SEALED_MAX_CHARS = 3072;
|
|
|
21810
22341
|
* grows by 4/3, so 2,256 bytes seal to exactly `PUSH_SEALED_MAX_CHARS` characters.
|
|
21811
22342
|
*/
|
|
21812
22343
|
declare const PUSH_PLAINTEXT_MAX_BYTES = 2256;
|
|
22344
|
+
/** Live Activity (PAN-4839, OD-1): the most either count may be. */
|
|
22345
|
+
declare const ACTIVITY_COUNT_MAX = 9999;
|
|
22346
|
+
/** A machine's report counts toward a phone's card this long; also the APNs `stale-date` offset. */
|
|
22347
|
+
declare const ACTIVITY_STALE_MS = 600000;
|
|
22348
|
+
/** The directory re-pushes unchanged counts at most this often, so the stale date moves ahead. */
|
|
22349
|
+
declare const ACTIVITY_REFRESH_MS = 240000;
|
|
22350
|
+
/** Live Activity pushes per account per minute, counted apart from alert pushes (NFR-1). */
|
|
22351
|
+
declare const ACTIVITY_PUSH_RATE_PER_MINUTE = 60;
|
|
22352
|
+
/** The whole content of the Live Activity (OD-1): two counts and nothing else. */
|
|
22353
|
+
interface LiveActivityCounts {
|
|
22354
|
+
readonly needsYou: number;
|
|
22355
|
+
readonly running: number;
|
|
22356
|
+
}
|
|
21813
22357
|
declare const FREE_MACHINE_LIMIT_MESSAGE = "The free account includes 3 machines";
|
|
21814
22358
|
declare const NO_DIRECT_PATH_MESSAGE = "No direct path; install Tailscale or use the relay plan";
|
|
21815
22359
|
declare const RELAY_CAP_MESSAGE = "Relay allowance used; install Tailscale or add 50 GB";
|
|
21816
22360
|
declare const CLIENT_LIMIT_MESSAGE = "This account already has 5 phones. Remove one in the app or on a machine.";
|
|
22361
|
+
declare const CONNECTOR_LIMIT_MESSAGE = "This account already has 10 Overdeck connectors. Remove one in Settings \u2192 Anywhere \u2192 Bots.";
|
|
21817
22362
|
/** WebSocket close codes the directory uses. */
|
|
21818
22363
|
declare const CONNECT_CLOSE_CODES: {
|
|
21819
22364
|
readonly unauthorized: 4001;
|
|
@@ -21821,7 +22366,7 @@ declare const CONNECT_CLOSE_CODES: {
|
|
|
21821
22366
|
readonly machineLimit: 4009;
|
|
21822
22367
|
readonly unsupportedProtocol: 4010; /** Replaced by a newer socket for the same machine. */
|
|
21823
22368
|
readonly replaced: 4011;
|
|
21824
|
-
readonly forgotten: 4012; /** A sixth phone on one account (PAN-4823 D-2). */
|
|
22369
|
+
readonly forgotten: 4012; /** A sixth phone or an eleventh connector on one account (PAN-4823 D-2, PAN-4927 D-18). */
|
|
21825
22370
|
readonly clientLimit: 4013;
|
|
21826
22371
|
};
|
|
21827
22372
|
type ConnectCloseCode = (typeof CONNECT_CLOSE_CODES)[keyof typeof CONNECT_CLOSE_CODES];
|
|
@@ -21855,13 +22400,32 @@ interface RelayStatus {
|
|
|
21855
22400
|
readonly stopped: boolean;
|
|
21856
22401
|
}
|
|
21857
22402
|
type SignalPurpose = "link" | "approval";
|
|
21858
|
-
/**
|
|
21859
|
-
type
|
|
22403
|
+
/** A phone's platform: the only platforms that can hold a push registration. */
|
|
22404
|
+
type PhonePlatform = "ios" | "android";
|
|
22405
|
+
/** A directory client's platform: a phone, or `node` for an Overdeck connector (PAN-4927 D-18). */
|
|
22406
|
+
type ClientPlatform = PhonePlatform | "node";
|
|
21860
22407
|
/** Which APNs host a token belongs to: Debug builds register `sandbox`, Release builds `production`. */
|
|
21861
22408
|
type ApsEnvironment = "production" | "sandbox";
|
|
21862
22409
|
/** `high` for question, approval and failed; else `normal` (the Web Push rule). */
|
|
21863
22410
|
type PushUrgency = "high" | "normal";
|
|
21864
22411
|
type PushResultError = "no_registration" | "rate_limited" | "delivery_failed" | "unknown_client";
|
|
22412
|
+
/** The plaintext a machine seals into a `push` frame (PAN-4843). UTF-8 JSON, at most PUSH_PLAINTEXT_MAX_BYTES. */
|
|
22413
|
+
interface PhonePushPayload {
|
|
22414
|
+
readonly v: 1;
|
|
22415
|
+
/** The sending machine's environment id; the phone opens this machine when the notification is tapped. */
|
|
22416
|
+
readonly machine: string;
|
|
22417
|
+
readonly kind: "question" | "approval" | "finished" | "failed" | "summary" | "test";
|
|
22418
|
+
/** The full title (the Web Push `title`), never `publicTitle`: the payload is end-to-end encrypted. */
|
|
22419
|
+
readonly title: string;
|
|
22420
|
+
readonly body: string;
|
|
22421
|
+
/** Same-origin dashboard path, e.g. `/m?subject=my-conv`. */
|
|
22422
|
+
readonly url: string;
|
|
22423
|
+
/** Dedup and replace key; the phone uses it as the notification thread / tag. */
|
|
22424
|
+
readonly tag: string;
|
|
22425
|
+
readonly issueId: string | null;
|
|
22426
|
+
/** ISO 8601. */
|
|
22427
|
+
readonly ts: string;
|
|
22428
|
+
}
|
|
21865
22429
|
/** Machine → directory. */
|
|
21866
22430
|
type MachineToDirectoryFrame = {
|
|
21867
22431
|
readonly type: "hello";
|
|
@@ -21919,6 +22483,11 @@ type MachineToDirectoryFrame = {
|
|
|
21919
22483
|
readonly sealed: string;
|
|
21920
22484
|
readonly urgency: PushUrgency; /** 32 lowercase hex: the first 32 hex characters of sha256(notification tag). */
|
|
21921
22485
|
readonly collapseId: string;
|
|
22486
|
+
} /** One machine's counts for one phone's Live Activity (PAN-4839). Integers 0..ACTIVITY_COUNT_MAX; no answer frame. */ | {
|
|
22487
|
+
readonly type: "push-activity";
|
|
22488
|
+
readonly to: string;
|
|
22489
|
+
readonly needsYou: number;
|
|
22490
|
+
readonly running: number;
|
|
21922
22491
|
};
|
|
21923
22492
|
/** Directory → machine. */
|
|
21924
22493
|
type DirectoryToMachineFrame = {
|
|
@@ -21989,7 +22558,12 @@ type ClientToDirectoryFrame = {
|
|
|
21989
22558
|
readonly type: "hello-client";
|
|
21990
22559
|
readonly protocol: ConnectProtocolVersion; /** uuid v4, generated once per app install. */
|
|
21991
22560
|
readonly clientId: string; /** At most 64 characters. */
|
|
21992
|
-
readonly label: string;
|
|
22561
|
+
readonly label: string;
|
|
22562
|
+
/**
|
|
22563
|
+
* The phone's install-level X25519 public key: its push public key (PAN-4837 C-2), 64 lowercase
|
|
22564
|
+
* hex. Link keys are per machine. A `node` client (connector) sends its install key here, not a
|
|
22565
|
+
* push key.
|
|
22566
|
+
*/
|
|
21993
22567
|
readonly publicKeyHex: string; /** At most 32 characters. */
|
|
21994
22568
|
readonly appVersion: string;
|
|
21995
22569
|
readonly platform: ClientPlatform;
|
|
@@ -22004,11 +22578,17 @@ type ClientToDirectoryFrame = {
|
|
|
22004
22578
|
type: "ice-servers" | "relay-usage";
|
|
22005
22579
|
}> /** `token` is at most 4096 characters; `apsEnvironment` is sent by iOS only. */ | {
|
|
22006
22580
|
readonly type: "push-register";
|
|
22007
|
-
readonly platform:
|
|
22581
|
+
readonly platform: PhonePlatform;
|
|
22008
22582
|
readonly token: string;
|
|
22009
22583
|
readonly apsEnvironment?: ApsEnvironment;
|
|
22010
22584
|
} | {
|
|
22011
22585
|
readonly type: "push-unregister";
|
|
22586
|
+
} /** An activity push token (iOS only); same token rule as `push-register`. iOS without `apsEnvironment` is production. */ | {
|
|
22587
|
+
readonly type: "activity-register";
|
|
22588
|
+
readonly token: string;
|
|
22589
|
+
readonly apsEnvironment?: ApsEnvironment;
|
|
22590
|
+
} | {
|
|
22591
|
+
readonly type: "activity-unregister";
|
|
22012
22592
|
} | {
|
|
22013
22593
|
readonly type: "forget-client";
|
|
22014
22594
|
};
|
|
@@ -22129,6 +22709,68 @@ declare const DirectoryResponse: Schema.Struct<{
|
|
|
22129
22709
|
}>;
|
|
22130
22710
|
type DirectoryResponse = typeof DirectoryResponse.Type;
|
|
22131
22711
|
//#endregion
|
|
22712
|
+
//#region src/phone-pairing.d.ts
|
|
22713
|
+
/** The phone app's bundle id and private-use URI scheme (RFC 8252 §7.1). */
|
|
22714
|
+
declare const PHONE_APP_SCHEME = "ai.overdeck.app";
|
|
22715
|
+
declare const PHONE_PAIR_LINK_VERSION = 1;
|
|
22716
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
22717
|
+
declare const PHONE_PAIR_LINK_PREFIX = "ai.overdeck.app:/pair#";
|
|
22718
|
+
declare const PHONE_PAIR_ENVIRONMENT_ID_RE: RegExp;
|
|
22719
|
+
declare const PHONE_PAIR_MACHINE_KEY_RE: RegExp;
|
|
22720
|
+
declare const PHONE_PAIR_CODE_RE: RegExp;
|
|
22721
|
+
interface PhonePairLinkInput {
|
|
22722
|
+
environmentId: string;
|
|
22723
|
+
machineKeyHex: string;
|
|
22724
|
+
code: string;
|
|
22725
|
+
}
|
|
22726
|
+
/** `ai.overdeck.app:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
|
|
22727
|
+
declare function buildPhonePairLink(input: PhonePairLinkInput): string;
|
|
22728
|
+
/** The inverse of `buildPhonePairLink`: the link's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
|
|
22729
|
+
declare function parsePhonePairLink(text: string): PhonePairLinkInput | null;
|
|
22730
|
+
//#endregion
|
|
22731
|
+
//#region src/phone-notifications.d.ts
|
|
22732
|
+
type PhoneNotificationCategory = "question" | "plan" | "permission" | "finished" | "failed" | "stopped";
|
|
22733
|
+
declare const PHONE_NOTIFICATION_CATEGORIES: readonly PhoneNotificationCategory[];
|
|
22734
|
+
interface PhoneNotificationPreferences {
|
|
22735
|
+
readonly v: 1;
|
|
22736
|
+
/** null: not paused. `until: null`: paused until turned back on. `until`: ISO-8601 instant. */
|
|
22737
|
+
readonly pause: null | {
|
|
22738
|
+
readonly until: string | null;
|
|
22739
|
+
};
|
|
22740
|
+
/** Categories this phone does not want. Unlisted categories are on. */
|
|
22741
|
+
readonly muted: readonly PhoneNotificationCategory[];
|
|
22742
|
+
}
|
|
22743
|
+
declare const DEFAULT_PHONE_NOTIFICATION_PREFERENCES: PhoneNotificationPreferences;
|
|
22744
|
+
/** Null for anything that is not a v1 prefs object; drops unknown/duplicate `muted` entries; never throws. */
|
|
22745
|
+
declare function parsePhoneNotificationPreferences(value: unknown): PhoneNotificationPreferences | null;
|
|
22746
|
+
/** Whether a notification of `category` may go to a phone with `prefs` at `nowMs` (D-3). */
|
|
22747
|
+
declare function notificationAllowed(prefs: PhoneNotificationPreferences | null, category: PhoneNotificationCategory | "summary" | "test", nowMs: number): boolean;
|
|
22748
|
+
//#endregion
|
|
22749
|
+
//#region src/connector-pairing.d.ts
|
|
22750
|
+
declare const CONNECTOR_PAIR_SCHEME = "overdeck-connector";
|
|
22751
|
+
declare const CONNECTOR_PAIR_LINK_VERSION = 1;
|
|
22752
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
22753
|
+
declare const CONNECTOR_PAIR_LINK_PREFIX = "overdeck-connector:/pair#";
|
|
22754
|
+
/** Longest machine name (after trim) the string carries in `n=` (PAN-5069 FR-8). */
|
|
22755
|
+
declare const CONNECTOR_PAIR_MACHINE_LABEL_MAX = 64;
|
|
22756
|
+
interface ConnectorPairLinkInput {
|
|
22757
|
+
environmentId: string;
|
|
22758
|
+
machineKeyHex: string;
|
|
22759
|
+
code: string;
|
|
22760
|
+
/** FR-8: the machine's name, for display only. Optional; never an authority. */
|
|
22761
|
+
machineLabel?: string;
|
|
22762
|
+
}
|
|
22763
|
+
/**
|
|
22764
|
+
* `overdeck-connector:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>[&n=<machineLabel>]`; throws on a malformed input.
|
|
22765
|
+
* The label is trimmed, cut to 64 characters and percent-encoded with `'` as `%27`, so the string is safe inside single shell quotes.
|
|
22766
|
+
*/
|
|
22767
|
+
declare function buildConnectorPairLink(input: ConnectorPairLinkInput): string;
|
|
22768
|
+
/**
|
|
22769
|
+
* The inverse of `buildConnectorPairLink`: the string's fields, or null unless every required part is well formed.
|
|
22770
|
+
* Surrounding whitespace is ignored. A missing, empty or over-long `n` only leaves `machineLabel` out; it never makes the parse fail.
|
|
22771
|
+
*/
|
|
22772
|
+
declare function parseConnectorPairLink(text: string): ConnectorPairLinkInput | null;
|
|
22773
|
+
//#endregion
|
|
22132
22774
|
//#region src/fleet-versions.d.ts
|
|
22133
22775
|
declare const FleetInstallMode: Schema.Literals<readonly ["npm-global", "development", "desktop"]>;
|
|
22134
22776
|
type FleetInstallMode = typeof FleetInstallMode.Type;
|
|
@@ -22286,6 +22928,77 @@ declare const MachineVersionsReportSchema: Schema.Struct<{
|
|
|
22286
22928
|
}>>;
|
|
22287
22929
|
}>;
|
|
22288
22930
|
//#endregion
|
|
22931
|
+
//#region src/sharing-wire.d.ts
|
|
22932
|
+
declare const SHARED_WIRE_VERSION = 1;
|
|
22933
|
+
declare const SHARED_SCOPE_KINDS: readonly ShareScope["kind"][];
|
|
22934
|
+
declare const SHARED_CHANNELS: readonly SharedChannel[];
|
|
22935
|
+
/** The longest data-channel message: 32,768 UTF-16 code units, at most 96 KiB of UTF-8. Longer envelopes are fragmented. */
|
|
22936
|
+
declare const SHARE_MAX_MESSAGE_CHARS = 32768;
|
|
22937
|
+
/** The longest encoded envelope ever sent or reassembled. */
|
|
22938
|
+
declare const SHARE_MAX_ENVELOPE_CHARS: number;
|
|
22939
|
+
/** The longest envelope a host reassembles from a viewer on `control` or `drafts` (NFR-3). */
|
|
22940
|
+
declare const SHARE_MAX_INBOUND_ENVELOPE_CHARS = 65536;
|
|
22941
|
+
/** The longest shared prompt or draft, in UTF-16 code units (D-11). */
|
|
22942
|
+
declare const SHARED_PROMPT_MAX_CHARS = 8000;
|
|
22943
|
+
type SharedReadResult = {
|
|
22944
|
+
readonly kind: "envelope";
|
|
22945
|
+
readonly envelope: SharedEnvelope;
|
|
22946
|
+
} | {
|
|
22947
|
+
readonly kind: "pending";
|
|
22948
|
+
} | {
|
|
22949
|
+
readonly kind: "invalid";
|
|
22950
|
+
readonly reason: "not_json" | "not_envelope" | "chunk_out_of_order" | "too_large";
|
|
22951
|
+
};
|
|
22952
|
+
/** Copies only the allow-listed fields. Never spreads the input and never sets `author`. */
|
|
22953
|
+
declare function toSharedMessage(message: ChatMessage): SharedMessage;
|
|
22954
|
+
/**
|
|
22955
|
+
* `null` when a shared prompt may be delivered; the refusal reason otherwise (D-9). A leading `/`, `!`
|
|
22956
|
+
* or `#` would reach a composer command, a shell command or a memory note, so it is refused.
|
|
22957
|
+
*/
|
|
22958
|
+
declare function sharedPromptRefusal(text: string): "invalid_prompt" | "too_long" | null;
|
|
22959
|
+
/** A host → viewer DraftPayload rebuilt from its known keys, or `null` when `value` is not one. */
|
|
22960
|
+
declare function readDraftPayload(value: unknown): DraftPayload | null;
|
|
22961
|
+
/** A new envelope with exactly the six envelope keys, or `null` when `value` is not one. */
|
|
22962
|
+
declare function decodeEnvelope(value: unknown): SharedEnvelope | null;
|
|
22963
|
+
/**
|
|
22964
|
+
* Encodes one envelope as the data-channel messages to send in order: one message, or `count`
|
|
22965
|
+
* fragments when the encoded envelope is longer than SHARE_MAX_MESSAGE_CHARS. Slicing can split a
|
|
22966
|
+
* UTF-16 surrogate pair across fragments; the reader joins the slices before parsing, so the pair is
|
|
22967
|
+
* whole again. Throws RangeError when the encoded envelope is longer than SHARE_MAX_ENVELOPE_CHARS.
|
|
22968
|
+
*/
|
|
22969
|
+
declare function encodeSharedMessage(envelope: SharedEnvelope, chunkId: number): string[];
|
|
22970
|
+
/**
|
|
22971
|
+
* Reads one channel's messages in arrival order and reassembles fragmented envelopes. One reader per
|
|
22972
|
+
* channel. `maxEnvelopeChars` caps what one envelope may grow to; a host reading a viewer passes
|
|
22973
|
+
* SHARE_MAX_INBOUND_ENVELOPE_CHARS so one viewer cannot make it buffer megabytes.
|
|
22974
|
+
*/
|
|
22975
|
+
declare class SharedChannelReader {
|
|
22976
|
+
private readonly maxEnvelopeChars;
|
|
22977
|
+
private partial;
|
|
22978
|
+
constructor(maxEnvelopeChars?: number);
|
|
22979
|
+
read(text: string): SharedReadResult;
|
|
22980
|
+
private readFragment;
|
|
22981
|
+
}
|
|
22982
|
+
/** Detects `seq` gaps per channel and stream. A gap is reported once; tracking resumes after it. */
|
|
22983
|
+
declare class SeqTracker {
|
|
22984
|
+
private readonly expected;
|
|
22985
|
+
observe(ch: SharedChannel, streamId: string, seq: number): {
|
|
22986
|
+
readonly ok: true;
|
|
22987
|
+
} | {
|
|
22988
|
+
readonly ok: false;
|
|
22989
|
+
readonly expected: number;
|
|
22990
|
+
readonly got: number;
|
|
22991
|
+
};
|
|
22992
|
+
}
|
|
22993
|
+
/** Agrees on `min(local.v, remote.v)` when the remote hello is well formed and both sides support the shared scope. */
|
|
22994
|
+
declare function negotiateHello(local: SharedHello, remote: unknown): {
|
|
22995
|
+
readonly ok: true;
|
|
22996
|
+
readonly v: number;
|
|
22997
|
+
} | {
|
|
22998
|
+
readonly ok: false;
|
|
22999
|
+
readonly code: SharedHelloError;
|
|
23000
|
+
};
|
|
23001
|
+
//#endregion
|
|
22289
23002
|
//#region src/color-theme.d.ts
|
|
22290
23003
|
type ColorThemeType = "light" | "dark";
|
|
22291
23004
|
/** The 21 keys xterm.js needs: background/foreground/cursor state plus the 16 ANSI colors. */
|
|
@@ -22420,5 +23133,252 @@ type SchedulePreset = {
|
|
|
22420
23133
|
declare const SCHEDULE_PRESET_DAYS: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
|
|
22421
23134
|
declare function presetToCron(preset: SchedulePreset): string;
|
|
22422
23135
|
//#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 };
|
|
23136
|
+
//#region src/deft-state.d.ts
|
|
23137
|
+
/**
|
|
23138
|
+
* Deft Directive state for one issue, as the dashboard reads it (PAN-4849).
|
|
23139
|
+
*
|
|
23140
|
+
* The server builds `DeftIssueState` from the Directive files in the issue's
|
|
23141
|
+
* worktree (`src/lib/deft/state-reader.ts`); `DeftIssueSummary` is the
|
|
23142
|
+
* batched per-issue row the board and tree read.
|
|
23143
|
+
*/
|
|
23144
|
+
type DeftScopeFolder = 'proposed' | 'pending' | 'active' | 'completed' | 'cancelled';
|
|
23145
|
+
interface DeftScopeItem {
|
|
23146
|
+
id: string;
|
|
23147
|
+
title: string;
|
|
23148
|
+
status: string;
|
|
23149
|
+
evidence?: {
|
|
23150
|
+
kind: string;
|
|
23151
|
+
pointer: string;
|
|
23152
|
+
recordedAt?: string;
|
|
23153
|
+
recordedBy?: string;
|
|
23154
|
+
};
|
|
23155
|
+
disposition?: {
|
|
23156
|
+
disposition: string;
|
|
23157
|
+
reason?: string;
|
|
23158
|
+
provenanceKind?: string;
|
|
23159
|
+
actor?: string;
|
|
23160
|
+
recordedAt?: string;
|
|
23161
|
+
};
|
|
23162
|
+
}
|
|
23163
|
+
interface DeftScope {
|
|
23164
|
+
/** Repo-relative, e.g. `xbrief/active/x.xbrief.json`. */
|
|
23165
|
+
path: string;
|
|
23166
|
+
folder: DeftScopeFolder;
|
|
23167
|
+
planId: string;
|
|
23168
|
+
title: string;
|
|
23169
|
+
status: string;
|
|
23170
|
+
items: DeftScopeItem[];
|
|
23171
|
+
swarm?: {
|
|
23172
|
+
dependsOn: string[];
|
|
23173
|
+
conflictGroup?: string;
|
|
23174
|
+
fileScope: string[];
|
|
23175
|
+
};
|
|
23176
|
+
handoffState?: string;
|
|
23177
|
+
deliveryDisposition?: string;
|
|
23178
|
+
prNumber?: number;
|
|
23179
|
+
}
|
|
23180
|
+
type DeftEscalationType = 'cmd_approval' | 'design_decision' | 'approval' | 'resource' | 'external' | 'question';
|
|
23181
|
+
interface DeftEscalation {
|
|
23182
|
+
id: string;
|
|
23183
|
+
agentId: string;
|
|
23184
|
+
type: DeftEscalationType;
|
|
23185
|
+
title: string;
|
|
23186
|
+
body: string;
|
|
23187
|
+
createdAt: string;
|
|
23188
|
+
slaHours: number;
|
|
23189
|
+
dueAt: string;
|
|
23190
|
+
overdue: boolean;
|
|
23191
|
+
status: 'open' | 'resolved';
|
|
23192
|
+
dangerous: boolean;
|
|
23193
|
+
resolution?: {
|
|
23194
|
+
decision: string;
|
|
23195
|
+
resolvedAt: string;
|
|
23196
|
+
resolvedBy: string;
|
|
23197
|
+
note?: string;
|
|
23198
|
+
answer?: string;
|
|
23199
|
+
};
|
|
23200
|
+
}
|
|
23201
|
+
interface DeftHeartbeat {
|
|
23202
|
+
agentId: string;
|
|
23203
|
+
parentId: string;
|
|
23204
|
+
lastHeartbeatAt: string;
|
|
23205
|
+
lastMessage: string;
|
|
23206
|
+
phase: string;
|
|
23207
|
+
terminalState?: string;
|
|
23208
|
+
prNumber?: number;
|
|
23209
|
+
waitKind?: string;
|
|
23210
|
+
}
|
|
23211
|
+
interface DeftDecisionRecord {
|
|
23212
|
+
id: string;
|
|
23213
|
+
decision: string;
|
|
23214
|
+
whyWinner: string;
|
|
23215
|
+
confidence: string;
|
|
23216
|
+
timestamp: string;
|
|
23217
|
+
activeScopeRefs: string[];
|
|
23218
|
+
}
|
|
23219
|
+
interface DeftApprovedScope {
|
|
23220
|
+
planId: string;
|
|
23221
|
+
xbriefRelPath: string;
|
|
23222
|
+
approvedAt: string;
|
|
23223
|
+
fileScope: string[];
|
|
23224
|
+
humanApproval?: {
|
|
23225
|
+
kind: string;
|
|
23226
|
+
actor: string;
|
|
23227
|
+
};
|
|
23228
|
+
}
|
|
23229
|
+
interface DeftPolicy {
|
|
23230
|
+
raw: Record<string, unknown>;
|
|
23231
|
+
requireHumanMerge: boolean | 'unknown';
|
|
23232
|
+
reviewers: string[] | null;
|
|
23233
|
+
minGreptileConfidence: number;
|
|
23234
|
+
}
|
|
23235
|
+
interface DeftSpecDrift {
|
|
23236
|
+
unresolved: Array<{
|
|
23237
|
+
scopeId: string;
|
|
23238
|
+
reason: string;
|
|
23239
|
+
specImpact: string;
|
|
23240
|
+
}>;
|
|
23241
|
+
}
|
|
23242
|
+
interface DeftFinishLoopEntry {
|
|
23243
|
+
ts: string;
|
|
23244
|
+
phase: string;
|
|
23245
|
+
iteration: number;
|
|
23246
|
+
haltReason: string | null;
|
|
23247
|
+
message: string;
|
|
23248
|
+
prNumber: number | null;
|
|
23249
|
+
}
|
|
23250
|
+
interface DeftGateRun {
|
|
23251
|
+
ts: string;
|
|
23252
|
+
target: string;
|
|
23253
|
+
exitCode: number;
|
|
23254
|
+
gates: Array<{
|
|
23255
|
+
id: string;
|
|
23256
|
+
status: 'run' | 'skipped' | 'failed';
|
|
23257
|
+
exitCode?: number;
|
|
23258
|
+
cause?: string;
|
|
23259
|
+
}>;
|
|
23260
|
+
}
|
|
23261
|
+
interface DeftCleanRecord {
|
|
23262
|
+
prNumber: number;
|
|
23263
|
+
headSha: string;
|
|
23264
|
+
cleanedAt: string;
|
|
23265
|
+
}
|
|
23266
|
+
interface DeftIssueState {
|
|
23267
|
+
issueId: string;
|
|
23268
|
+
pipeline: 'deft';
|
|
23269
|
+
mode: 'temporary-install' | 'directive-project' | 'not-installed';
|
|
23270
|
+
scopes: DeftScope[];
|
|
23271
|
+
escalations: DeftEscalation[];
|
|
23272
|
+
heartbeats: DeftHeartbeat[];
|
|
23273
|
+
decisions: DeftDecisionRecord[];
|
|
23274
|
+
approvedScopes: DeftApprovedScope[];
|
|
23275
|
+
policy: DeftPolicy;
|
|
23276
|
+
specDrift: DeftSpecDrift;
|
|
23277
|
+
installDrift: string[];
|
|
23278
|
+
liftConflicts: string[];
|
|
23279
|
+
/** Last 50 lines, file order. */
|
|
23280
|
+
finishLoop: DeftFinishLoopEntry[];
|
|
23281
|
+
/** Last 50 `check_invocation` events. */
|
|
23282
|
+
gateRuns: DeftGateRun[];
|
|
23283
|
+
/** `greptile.json` or `.greptile/config.json` exists at the worktree root. */
|
|
23284
|
+
reviewerConfigPresent: boolean;
|
|
23285
|
+
cleanRecords: DeftCleanRecord[];
|
|
23286
|
+
/** `<repo-relative path>: <message>` for every file the reader skipped. */
|
|
23287
|
+
errors: string[];
|
|
23288
|
+
}
|
|
23289
|
+
interface DeftIssueSummary {
|
|
23290
|
+
issueId: string;
|
|
23291
|
+
scopeCounts: Partial<Record<DeftScopeFolder, number>>;
|
|
23292
|
+
specDriftUnresolved: number;
|
|
23293
|
+
installDrift: number;
|
|
23294
|
+
handoffState: string | null;
|
|
23295
|
+
openEscalations: number;
|
|
23296
|
+
}
|
|
23297
|
+
/** One exit-predicate field of Deft's review cycle. */
|
|
23298
|
+
type DeftExitField = 'met' | 'unmet' | 'unknown';
|
|
23299
|
+
/** Deft's own verdict names (`pr-watch/constants.ts`). */
|
|
23300
|
+
type DeftReviewVerdict = 'CLEAN' | 'NEW_P0_P1' | 'PENDING' | 'NO_REVIEWER_INSTALLED';
|
|
23301
|
+
interface DeftSeverityCounts {
|
|
23302
|
+
p0: number;
|
|
23303
|
+
p1: number;
|
|
23304
|
+
p2: number;
|
|
23305
|
+
}
|
|
23306
|
+
interface DeftReviewRound {
|
|
23307
|
+
/** 1-based. */
|
|
23308
|
+
index: number;
|
|
23309
|
+
findings: DeftSeverityCounts;
|
|
23310
|
+
commentCount: number;
|
|
23311
|
+
fixCommit: {
|
|
23312
|
+
sha: string;
|
|
23313
|
+
subject: string;
|
|
23314
|
+
committedAt: string;
|
|
23315
|
+
} | null;
|
|
23316
|
+
startedAt: string | null;
|
|
23317
|
+
}
|
|
23318
|
+
/** Deft's review cycle for one PR, reconstructed from PR data (PAN-4849 WI-20). */
|
|
23319
|
+
interface DeftReviewCycle {
|
|
23320
|
+
issueId: string;
|
|
23321
|
+
prNumber: number | null;
|
|
23322
|
+
headSha: string | null;
|
|
23323
|
+
reviewer: {
|
|
23324
|
+
present: boolean;
|
|
23325
|
+
name: 'greptile' | null;
|
|
23326
|
+
source: 'policy' | 'comment' | 'check_run' | 'config' | 'none';
|
|
23327
|
+
unsupported: string[];
|
|
23328
|
+
};
|
|
23329
|
+
verdict: DeftReviewVerdict;
|
|
23330
|
+
exit: {
|
|
23331
|
+
checkRun: DeftExitField;
|
|
23332
|
+
headSha: DeftExitField;
|
|
23333
|
+
lastReviewedCommit: DeftExitField;
|
|
23334
|
+
confidence: DeftExitField;
|
|
23335
|
+
noBlocking: DeftExitField;
|
|
23336
|
+
confidenceScore: number | null;
|
|
23337
|
+
minConfidence: number;
|
|
23338
|
+
lastReviewedSha: string | null;
|
|
23339
|
+
p0p1Remaining: number | null;
|
|
23340
|
+
};
|
|
23341
|
+
rounds: DeftReviewRound[];
|
|
23342
|
+
roundsReconstructed: true;
|
|
23343
|
+
lease: {
|
|
23344
|
+
owner: string;
|
|
23345
|
+
monitorAgentId: string;
|
|
23346
|
+
headSha: string | null;
|
|
23347
|
+
startedAt: string;
|
|
23348
|
+
expiresAt: string;
|
|
23349
|
+
endedAt: string | null;
|
|
23350
|
+
active: boolean;
|
|
23351
|
+
} | null;
|
|
23352
|
+
/** `pr-watch-*` heartbeats and those in phase polling or fixing. */
|
|
23353
|
+
heartbeats: DeftHeartbeat[];
|
|
23354
|
+
cleanRecords: DeftCleanRecord[];
|
|
23355
|
+
errors: string[];
|
|
23356
|
+
}
|
|
23357
|
+
//#endregion
|
|
23358
|
+
//#region src/disk-alert.d.ts
|
|
23359
|
+
type DiskAlertLevel = "ok" | "warning" | "critical";
|
|
23360
|
+
interface DiskSpaceHolder {
|
|
23361
|
+
readonly label: string;
|
|
23362
|
+
readonly path: string | null;
|
|
23363
|
+
readonly bytes: number;
|
|
23364
|
+
}
|
|
23365
|
+
interface DiskAlertHolders {
|
|
23366
|
+
readonly measuredAt: string;
|
|
23367
|
+
readonly incomplete: boolean;
|
|
23368
|
+
readonly holders: readonly DiskSpaceHolder[];
|
|
23369
|
+
}
|
|
23370
|
+
interface DiskAlertSnapshot {
|
|
23371
|
+
readonly level: DiskAlertLevel;
|
|
23372
|
+
readonly path: string;
|
|
23373
|
+
readonly availableBytes: number | null;
|
|
23374
|
+
readonly totalBytes: number | null;
|
|
23375
|
+
readonly warningBytes: number;
|
|
23376
|
+
readonly criticalBytes: number;
|
|
23377
|
+
readonly since: string | null;
|
|
23378
|
+
readonly checkedAt: string | null;
|
|
23379
|
+
readonly measuring: boolean;
|
|
23380
|
+
readonly holders: DiskAlertHolders | null;
|
|
23381
|
+
}
|
|
23382
|
+
//#endregion
|
|
23383
|
+
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_MACHINE_LABEL_MAX, CONNECTOR_PAIR_SCHEME, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CliCommandRunProperties, ClientPlatform, ClientRequestFailedProperties, 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, DiskAlertHolders, DiskAlertLevel, DiskAlertSnapshot, DiskSpaceHolder, 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, McpSessionSeenProperties, McpToolCalledProperties, 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, PhoneLinkStateProperties, 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_INSTALL_KINDS, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TelemetryChannelErrorClass, TelemetryChannelRoute, TelemetryCliVerb, TelemetryClient, TelemetryClientConfig, TelemetryClientRoute, TelemetryClientRouteArea, TelemetryCountBucket, TelemetryDashboardTab, TelemetryDecisionSubjectKind, TelemetryDurationBucket, TelemetryEventName, TelemetryEventProperties, TelemetryGitHubCaller, TelemetryHttpMethod, TelemetryInstallKind, TelemetryLinkFailureReason, TelemetryLinkMethod, TelemetryLinkReason, TelemetryLinkRoute, TelemetryLinkSide, TelemetryLinkState, TelemetryMcpAuth, TelemetryMcpClient, TelemetryMcpProtocol, TelemetryMcpSurface, TelemetryMcpTool, TelemetryModelFamily, TelemetryPropertiesFor, TelemetryPropertyDomainName, TelemetryQuotaPointsBucket, TelemetryQuotaRemainingBucket, TelemetryRecoveryBucket, TelemetryRelayBytesBucket, TelemetryRequestStatus, 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, bucketRecoveryMs, bucketRelayBytes, bucketRequestStatus, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, clientRouteOf, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeEnvelope, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeSharedMessage, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, 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
23384
|
//# sourceMappingURL=index.d.ts.map
|