@overdeck/contracts 0.71.0 → 0.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -205,6 +205,7 @@ declare const AgentSnapshot: Schema.Struct<{
205
205
  readonly askedAt: Schema.String;
206
206
  readonly questions: Schema.$Array<Schema.Struct<{
207
207
  readonly question: Schema.String;
208
+ readonly context: Schema.optional<Schema.String>;
208
209
  readonly header: Schema.optional<Schema.String>;
209
210
  readonly multiSelect: Schema.optional<Schema.Boolean>;
210
211
  readonly options: Schema.$Array<Schema.Struct<{
@@ -439,6 +440,7 @@ declare const DashboardSnapshot: Schema.Struct<{
439
440
  readonly askedAt: Schema.String;
440
441
  readonly questions: Schema.$Array<Schema.Struct<{
441
442
  readonly question: Schema.String;
443
+ readonly context: Schema.optional<Schema.String>;
442
444
  readonly header: Schema.optional<Schema.String>;
443
445
  readonly multiSelect: Schema.optional<Schema.Boolean>;
444
446
  readonly options: Schema.$Array<Schema.Struct<{
@@ -1295,6 +1297,7 @@ declare const AgentStartedEvent: Schema.Struct<{
1295
1297
  readonly askedAt: Schema.String;
1296
1298
  readonly questions: Schema.$Array<Schema.Struct<{
1297
1299
  readonly question: Schema.String;
1300
+ readonly context: Schema.optional<Schema.String>;
1298
1301
  readonly header: Schema.optional<Schema.String>;
1299
1302
  readonly multiSelect: Schema.optional<Schema.Boolean>;
1300
1303
  readonly options: Schema.$Array<Schema.Struct<{
@@ -1478,6 +1481,7 @@ declare const AgentEnrichmentChangedEvent: Schema.Struct<{
1478
1481
  readonly askedAt: Schema.String;
1479
1482
  readonly questions: Schema.$Array<Schema.Struct<{
1480
1483
  readonly question: Schema.String;
1484
+ readonly context: Schema.optional<Schema.String>;
1481
1485
  readonly header: Schema.optional<Schema.String>;
1482
1486
  readonly multiSelect: Schema.optional<Schema.Boolean>;
1483
1487
  readonly options: Schema.$Array<Schema.Struct<{
@@ -1553,6 +1557,7 @@ declare const AgentCreatedEvent: Schema.Struct<{
1553
1557
  readonly askedAt: Schema.String;
1554
1558
  readonly questions: Schema.$Array<Schema.Struct<{
1555
1559
  readonly question: Schema.String;
1560
+ readonly context: Schema.optional<Schema.String>;
1556
1561
  readonly header: Schema.optional<Schema.String>;
1557
1562
  readonly multiSelect: Schema.optional<Schema.Boolean>;
1558
1563
  readonly options: Schema.$Array<Schema.Struct<{
@@ -2817,6 +2822,17 @@ declare const ConversationPullRequestsChangedEvent: Schema.Struct<{
2817
2822
  }>;
2818
2823
  }>;
2819
2824
  type ConversationPullRequestsChangedEvent = typeof ConversationPullRequestsChangedEvent.Type;
2825
+ /** Emitted (in-memory only) when a conversation's schedules change (PAN-4657), so the
2826
+ * list and the schedule dialog refresh the next-run badge. */
2827
+ declare const ConversationSchedulesChangedEvent: Schema.Struct<{
2828
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
2829
+ readonly sequence: Schema.Number;
2830
+ readonly timestamp: Schema.String;
2831
+ readonly payload: Schema.Struct<{
2832
+ readonly conversationName: Schema.String;
2833
+ }>;
2834
+ }>;
2835
+ type ConversationSchedulesChangedEvent = typeof ConversationSchedulesChangedEvent.Type;
2820
2836
  /** Emitted (in-memory only) when a PermissionRequest hook fires or resolves for a conversation. */
2821
2837
  declare const ConversationPermissionChangedEvent: Schema.Struct<{
2822
2838
  readonly type: Schema.Literal<"conversation.permission_changed">;
@@ -3125,6 +3141,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3125
3141
  readonly askedAt: Schema.String;
3126
3142
  readonly questions: Schema.$Array<Schema.Struct<{
3127
3143
  readonly question: Schema.String;
3144
+ readonly context: Schema.optional<Schema.String>;
3128
3145
  readonly header: Schema.optional<Schema.String>;
3129
3146
  readonly multiSelect: Schema.optional<Schema.Boolean>;
3130
3147
  readonly options: Schema.$Array<Schema.Struct<{
@@ -3168,6 +3185,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3168
3185
  readonly askedAt: Schema.String;
3169
3186
  readonly questions: Schema.$Array<Schema.Struct<{
3170
3187
  readonly question: Schema.String;
3188
+ readonly context: Schema.optional<Schema.String>;
3171
3189
  readonly header: Schema.optional<Schema.String>;
3172
3190
  readonly multiSelect: Schema.optional<Schema.Boolean>;
3173
3191
  readonly options: Schema.$Array<Schema.Struct<{
@@ -3240,6 +3258,7 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
3240
3258
  readonly askedAt: Schema.String;
3241
3259
  readonly questions: Schema.$Array<Schema.Struct<{
3242
3260
  readonly question: Schema.String;
3261
+ readonly context: Schema.optional<Schema.String>;
3243
3262
  readonly header: Schema.optional<Schema.String>;
3244
3263
  readonly multiSelect: Schema.optional<Schema.Boolean>;
3245
3264
  readonly options: Schema.$Array<Schema.Struct<{
@@ -4364,6 +4383,13 @@ declare const DomainEvent: Schema.Union<readonly [Schema.Struct<{
4364
4383
  readonly number: Schema.Number;
4365
4384
  }>>;
4366
4385
  }>;
4386
+ }>, Schema.Struct<{
4387
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
4388
+ readonly sequence: Schema.Number;
4389
+ readonly timestamp: Schema.String;
4390
+ readonly payload: Schema.Struct<{
4391
+ readonly conversationName: Schema.String;
4392
+ }>;
4367
4393
  }>, Schema.Struct<{
4368
4394
  readonly type: Schema.Literal<"conversation.permission_changed">;
4369
4395
  readonly sequence: Schema.Number;
@@ -4658,6 +4684,8 @@ declare const WS_METHODS: {
4658
4684
  readonly resizeTerminal: "pan.resizeTerminal";
4659
4685
  readonly shellOpenInEditor: "pan.shellOpenInEditor";
4660
4686
  readonly getAvailableEditors: "pan.getAvailableEditors";
4687
+ readonly shellOpenInBrowser: "pan.shellOpenInBrowser";
4688
+ readonly getAvailableBrowsers: "pan.getAvailableBrowsers";
4661
4689
  };
4662
4690
  declare const PanRpcError_base: Schema.Class<PanRpcError, Schema.TaggedStruct<"PanRpcError", {
4663
4691
  readonly message: Schema.String;
@@ -5144,6 +5172,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5144
5172
  readonly askedAt: Schema.String;
5145
5173
  readonly questions: Schema.$Array<Schema.Struct<{
5146
5174
  readonly question: Schema.String;
5175
+ readonly context: Schema.optional<Schema.String>;
5147
5176
  readonly header: Schema.optional<Schema.String>;
5148
5177
  readonly multiSelect: Schema.optional<Schema.Boolean>;
5149
5178
  readonly options: Schema.$Array<Schema.Struct<{
@@ -5187,6 +5216,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5187
5216
  readonly askedAt: Schema.String;
5188
5217
  readonly questions: Schema.$Array<Schema.Struct<{
5189
5218
  readonly question: Schema.String;
5219
+ readonly context: Schema.optional<Schema.String>;
5190
5220
  readonly header: Schema.optional<Schema.String>;
5191
5221
  readonly multiSelect: Schema.optional<Schema.Boolean>;
5192
5222
  readonly options: Schema.$Array<Schema.Struct<{
@@ -5259,6 +5289,7 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
5259
5289
  readonly askedAt: Schema.String;
5260
5290
  readonly questions: Schema.$Array<Schema.Struct<{
5261
5291
  readonly question: Schema.String;
5292
+ readonly context: Schema.optional<Schema.String>;
5262
5293
  readonly header: Schema.optional<Schema.String>;
5263
5294
  readonly multiSelect: Schema.optional<Schema.Boolean>;
5264
5295
  readonly options: Schema.$Array<Schema.Struct<{
@@ -6383,6 +6414,13 @@ declare const SubscribeDomainEventsRpc: Rpc.Rpc<"pan.subscribeDomainEvents", Sch
6383
6414
  readonly number: Schema.Number;
6384
6415
  }>>;
6385
6416
  }>;
6417
+ }>, Schema.Struct<{
6418
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
6419
+ readonly sequence: Schema.Number;
6420
+ readonly timestamp: Schema.String;
6421
+ readonly payload: Schema.Struct<{
6422
+ readonly conversationName: Schema.String;
6423
+ }>;
6386
6424
  }>, Schema.Struct<{
6387
6425
  readonly type: Schema.Literal<"conversation.permission_changed">;
6388
6426
  readonly sequence: Schema.Number;
@@ -6664,6 +6702,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6664
6702
  readonly askedAt: Schema.String;
6665
6703
  readonly questions: Schema.$Array<Schema.Struct<{
6666
6704
  readonly question: Schema.String;
6705
+ readonly context: Schema.optional<Schema.String>;
6667
6706
  readonly header: Schema.optional<Schema.String>;
6668
6707
  readonly multiSelect: Schema.optional<Schema.Boolean>;
6669
6708
  readonly options: Schema.$Array<Schema.Struct<{
@@ -6707,6 +6746,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6707
6746
  readonly askedAt: Schema.String;
6708
6747
  readonly questions: Schema.$Array<Schema.Struct<{
6709
6748
  readonly question: Schema.String;
6749
+ readonly context: Schema.optional<Schema.String>;
6710
6750
  readonly header: Schema.optional<Schema.String>;
6711
6751
  readonly multiSelect: Schema.optional<Schema.Boolean>;
6712
6752
  readonly options: Schema.$Array<Schema.Struct<{
@@ -6779,6 +6819,7 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
6779
6819
  readonly askedAt: Schema.String;
6780
6820
  readonly questions: Schema.$Array<Schema.Struct<{
6781
6821
  readonly question: Schema.String;
6822
+ readonly context: Schema.optional<Schema.String>;
6782
6823
  readonly header: Schema.optional<Schema.String>;
6783
6824
  readonly multiSelect: Schema.optional<Schema.Boolean>;
6784
6825
  readonly options: Schema.$Array<Schema.Struct<{
@@ -7903,6 +7944,13 @@ declare const SubscribeIssueEventsRpc: Rpc.Rpc<"pan.subscribeIssueEvents", Schem
7903
7944
  readonly number: Schema.Number;
7904
7945
  }>>;
7905
7946
  }>;
7947
+ }>, Schema.Struct<{
7948
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
7949
+ readonly sequence: Schema.Number;
7950
+ readonly timestamp: Schema.String;
7951
+ readonly payload: Schema.Struct<{
7952
+ readonly conversationName: Schema.String;
7953
+ }>;
7906
7954
  }>, Schema.Struct<{
7907
7955
  readonly type: Schema.Literal<"conversation.permission_changed">;
7908
7956
  readonly sequence: Schema.Number;
@@ -8068,6 +8116,7 @@ declare const GetSnapshotRpc: Rpc.Rpc<"pan.getSnapshot", Schema.Struct<{}>, Sche
8068
8116
  readonly askedAt: Schema.String;
8069
8117
  readonly questions: Schema.$Array<Schema.Struct<{
8070
8118
  readonly question: Schema.String;
8119
+ readonly context: Schema.optional<Schema.String>;
8071
8120
  readonly header: Schema.optional<Schema.String>;
8072
8121
  readonly multiSelect: Schema.optional<Schema.Boolean>;
8073
8122
  readonly options: Schema.$Array<Schema.Struct<{
@@ -8480,6 +8529,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8480
8529
  readonly askedAt: Schema.String;
8481
8530
  readonly questions: Schema.$Array<Schema.Struct<{
8482
8531
  readonly question: Schema.String;
8532
+ readonly context: Schema.optional<Schema.String>;
8483
8533
  readonly header: Schema.optional<Schema.String>;
8484
8534
  readonly multiSelect: Schema.optional<Schema.Boolean>;
8485
8535
  readonly options: Schema.$Array<Schema.Struct<{
@@ -8523,6 +8573,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8523
8573
  readonly askedAt: Schema.String;
8524
8574
  readonly questions: Schema.$Array<Schema.Struct<{
8525
8575
  readonly question: Schema.String;
8576
+ readonly context: Schema.optional<Schema.String>;
8526
8577
  readonly header: Schema.optional<Schema.String>;
8527
8578
  readonly multiSelect: Schema.optional<Schema.Boolean>;
8528
8579
  readonly options: Schema.$Array<Schema.Struct<{
@@ -8595,6 +8646,7 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
8595
8646
  readonly askedAt: Schema.String;
8596
8647
  readonly questions: Schema.$Array<Schema.Struct<{
8597
8648
  readonly question: Schema.String;
8649
+ readonly context: Schema.optional<Schema.String>;
8598
8650
  readonly header: Schema.optional<Schema.String>;
8599
8651
  readonly multiSelect: Schema.optional<Schema.Boolean>;
8600
8652
  readonly options: Schema.$Array<Schema.Struct<{
@@ -9719,6 +9771,13 @@ declare const ReplayEventsResult: Schema.Union<readonly [Schema.$Array<Schema.Un
9719
9771
  readonly number: Schema.Number;
9720
9772
  }>>;
9721
9773
  }>;
9774
+ }>, Schema.Struct<{
9775
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
9776
+ readonly sequence: Schema.Number;
9777
+ readonly timestamp: Schema.String;
9778
+ readonly payload: Schema.Struct<{
9779
+ readonly conversationName: Schema.String;
9780
+ }>;
9722
9781
  }>, Schema.Struct<{
9723
9782
  readonly type: Schema.Literal<"conversation.permission_changed">;
9724
9783
  readonly sequence: Schema.Number;
@@ -10003,6 +10062,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10003
10062
  readonly askedAt: Schema.String;
10004
10063
  readonly questions: Schema.$Array<Schema.Struct<{
10005
10064
  readonly question: Schema.String;
10065
+ readonly context: Schema.optional<Schema.String>;
10006
10066
  readonly header: Schema.optional<Schema.String>;
10007
10067
  readonly multiSelect: Schema.optional<Schema.Boolean>;
10008
10068
  readonly options: Schema.$Array<Schema.Struct<{
@@ -10046,6 +10106,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10046
10106
  readonly askedAt: Schema.String;
10047
10107
  readonly questions: Schema.$Array<Schema.Struct<{
10048
10108
  readonly question: Schema.String;
10109
+ readonly context: Schema.optional<Schema.String>;
10049
10110
  readonly header: Schema.optional<Schema.String>;
10050
10111
  readonly multiSelect: Schema.optional<Schema.Boolean>;
10051
10112
  readonly options: Schema.$Array<Schema.Struct<{
@@ -10118,6 +10179,7 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
10118
10179
  readonly askedAt: Schema.String;
10119
10180
  readonly questions: Schema.$Array<Schema.Struct<{
10120
10181
  readonly question: Schema.String;
10182
+ readonly context: Schema.optional<Schema.String>;
10121
10183
  readonly header: Schema.optional<Schema.String>;
10122
10184
  readonly multiSelect: Schema.optional<Schema.Boolean>;
10123
10185
  readonly options: Schema.$Array<Schema.Struct<{
@@ -11242,6 +11304,13 @@ declare const ReplayEventsRpc: Rpc.Rpc<"pan.replayEvents", Schema.Struct<{
11242
11304
  readonly number: Schema.Number;
11243
11305
  }>>;
11244
11306
  }>;
11307
+ }>, Schema.Struct<{
11308
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
11309
+ readonly sequence: Schema.Number;
11310
+ readonly timestamp: Schema.String;
11311
+ readonly payload: Schema.Struct<{
11312
+ readonly conversationName: Schema.String;
11313
+ }>;
11245
11314
  }>, Schema.Struct<{
11246
11315
  readonly type: Schema.Literal<"conversation.permission_changed">;
11247
11316
  readonly sequence: Schema.Number;
@@ -11648,6 +11717,15 @@ declare const GetAvailableEditorsRpc: Rpc.Rpc<"pan.getAvailableEditors", Schema.
11648
11717
  */
11649
11718
  readonly defaultCwd: Schema.String;
11650
11719
  }>, typeof PanRpcError, never, never>;
11720
+ /** Open a local file in a browser (PAN-4762) */
11721
+ declare const ShellOpenInBrowserRpc: Rpc.Rpc<"pan.shellOpenInBrowser", Schema.Struct<{
11722
+ readonly path: Schema.String;
11723
+ readonly browser: Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>;
11724
+ }>, Schema.Void, typeof PanRpcError, never, never>;
11725
+ /** Get available (installed) browsers (PAN-4762) */
11726
+ declare const GetAvailableBrowsersRpc: Rpc.Rpc<"pan.getAvailableBrowsers", Schema.Void, Schema.Struct<{
11727
+ readonly browsers: Schema.$Array<Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>>;
11728
+ }>, typeof PanRpcError, never, never>;
11651
11729
  /** Scan conversations (trigger discovery) */
11652
11730
  declare const ScanConversationsRpc: Rpc.Rpc<"pan.scanConversations", Schema.Struct<{
11653
11731
  readonly mode: Schema.Literals<readonly ["targeted", "watched", "system"]>;
@@ -12246,6 +12324,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12246
12324
  readonly askedAt: Schema.String;
12247
12325
  readonly questions: Schema.$Array<Schema.Struct<{
12248
12326
  readonly question: Schema.String;
12327
+ readonly context: Schema.optional<Schema.String>;
12249
12328
  readonly header: Schema.optional<Schema.String>;
12250
12329
  readonly multiSelect: Schema.optional<Schema.Boolean>;
12251
12330
  readonly options: Schema.$Array<Schema.Struct<{
@@ -12289,6 +12368,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12289
12368
  readonly askedAt: Schema.String;
12290
12369
  readonly questions: Schema.$Array<Schema.Struct<{
12291
12370
  readonly question: Schema.String;
12371
+ readonly context: Schema.optional<Schema.String>;
12292
12372
  readonly header: Schema.optional<Schema.String>;
12293
12373
  readonly multiSelect: Schema.optional<Schema.Boolean>;
12294
12374
  readonly options: Schema.$Array<Schema.Struct<{
@@ -12361,6 +12441,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
12361
12441
  readonly askedAt: Schema.String;
12362
12442
  readonly questions: Schema.$Array<Schema.Struct<{
12363
12443
  readonly question: Schema.String;
12444
+ readonly context: Schema.optional<Schema.String>;
12364
12445
  readonly header: Schema.optional<Schema.String>;
12365
12446
  readonly multiSelect: Schema.optional<Schema.Boolean>;
12366
12447
  readonly options: Schema.$Array<Schema.Struct<{
@@ -13485,6 +13566,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13485
13566
  readonly number: Schema.Number;
13486
13567
  }>>;
13487
13568
  }>;
13569
+ }>, Schema.Struct<{
13570
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
13571
+ readonly sequence: Schema.Number;
13572
+ readonly timestamp: Schema.String;
13573
+ readonly payload: Schema.Struct<{
13574
+ readonly conversationName: Schema.String;
13575
+ }>;
13488
13576
  }>, Schema.Struct<{
13489
13577
  readonly type: Schema.Literal<"conversation.permission_changed">;
13490
13578
  readonly sequence: Schema.Number;
@@ -13764,6 +13852,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13764
13852
  readonly askedAt: Schema.String;
13765
13853
  readonly questions: Schema.$Array<Schema.Struct<{
13766
13854
  readonly question: Schema.String;
13855
+ readonly context: Schema.optional<Schema.String>;
13767
13856
  readonly header: Schema.optional<Schema.String>;
13768
13857
  readonly multiSelect: Schema.optional<Schema.Boolean>;
13769
13858
  readonly options: Schema.$Array<Schema.Struct<{
@@ -13807,6 +13896,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13807
13896
  readonly askedAt: Schema.String;
13808
13897
  readonly questions: Schema.$Array<Schema.Struct<{
13809
13898
  readonly question: Schema.String;
13899
+ readonly context: Schema.optional<Schema.String>;
13810
13900
  readonly header: Schema.optional<Schema.String>;
13811
13901
  readonly multiSelect: Schema.optional<Schema.Boolean>;
13812
13902
  readonly options: Schema.$Array<Schema.Struct<{
@@ -13879,6 +13969,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
13879
13969
  readonly askedAt: Schema.String;
13880
13970
  readonly questions: Schema.$Array<Schema.Struct<{
13881
13971
  readonly question: Schema.String;
13972
+ readonly context: Schema.optional<Schema.String>;
13882
13973
  readonly header: Schema.optional<Schema.String>;
13883
13974
  readonly multiSelect: Schema.optional<Schema.Boolean>;
13884
13975
  readonly options: Schema.$Array<Schema.Struct<{
@@ -15003,6 +15094,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15003
15094
  readonly number: Schema.Number;
15004
15095
  }>>;
15005
15096
  }>;
15097
+ }>, Schema.Struct<{
15098
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
15099
+ readonly sequence: Schema.Number;
15100
+ readonly timestamp: Schema.String;
15101
+ readonly payload: Schema.Struct<{
15102
+ readonly conversationName: Schema.String;
15103
+ }>;
15006
15104
  }>, Schema.Struct<{
15007
15105
  readonly type: Schema.Literal<"conversation.permission_changed">;
15008
15106
  readonly sequence: Schema.Number;
@@ -15162,6 +15260,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15162
15260
  readonly askedAt: Schema.String;
15163
15261
  readonly questions: Schema.$Array<Schema.Struct<{
15164
15262
  readonly question: Schema.String;
15263
+ readonly context: Schema.optional<Schema.String>;
15165
15264
  readonly header: Schema.optional<Schema.String>;
15166
15265
  readonly multiSelect: Schema.optional<Schema.Boolean>;
15167
15266
  readonly options: Schema.$Array<Schema.Struct<{
@@ -15566,6 +15665,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15566
15665
  readonly askedAt: Schema.String;
15567
15666
  readonly questions: Schema.$Array<Schema.Struct<{
15568
15667
  readonly question: Schema.String;
15668
+ readonly context: Schema.optional<Schema.String>;
15569
15669
  readonly header: Schema.optional<Schema.String>;
15570
15670
  readonly multiSelect: Schema.optional<Schema.Boolean>;
15571
15671
  readonly options: Schema.$Array<Schema.Struct<{
@@ -15609,6 +15709,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15609
15709
  readonly askedAt: Schema.String;
15610
15710
  readonly questions: Schema.$Array<Schema.Struct<{
15611
15711
  readonly question: Schema.String;
15712
+ readonly context: Schema.optional<Schema.String>;
15612
15713
  readonly header: Schema.optional<Schema.String>;
15613
15714
  readonly multiSelect: Schema.optional<Schema.Boolean>;
15614
15715
  readonly options: Schema.$Array<Schema.Struct<{
@@ -15681,6 +15782,7 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
15681
15782
  readonly askedAt: Schema.String;
15682
15783
  readonly questions: Schema.$Array<Schema.Struct<{
15683
15784
  readonly question: Schema.String;
15785
+ readonly context: Schema.optional<Schema.String>;
15684
15786
  readonly header: Schema.optional<Schema.String>;
15685
15787
  readonly multiSelect: Schema.optional<Schema.Boolean>;
15686
15788
  readonly options: Schema.$Array<Schema.Struct<{
@@ -16805,6 +16907,13 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
16805
16907
  readonly number: Schema.Number;
16806
16908
  }>>;
16807
16909
  }>;
16910
+ }>, Schema.Struct<{
16911
+ readonly type: Schema.Literal<"conversation.schedules_changed">;
16912
+ readonly sequence: Schema.Number;
16913
+ readonly timestamp: Schema.String;
16914
+ readonly payload: Schema.Struct<{
16915
+ readonly conversationName: Schema.String;
16916
+ }>;
16808
16917
  }>, Schema.Struct<{
16809
16918
  readonly type: Schema.Literal<"conversation.permission_changed">;
16810
16919
  readonly sequence: Schema.Number;
@@ -17097,6 +17206,11 @@ declare const PanRpcGroup: RpcGroup.RpcGroup<Rpc.Rpc<"pan.subscribeDomainEvents"
17097
17206
  * "devroot" fallback. `~/Projects` if it exists, else `$HOME`.
17098
17207
  */
17099
17208
  readonly defaultCwd: Schema.String;
17209
+ }>, typeof PanRpcError, never, never> | Rpc.Rpc<"pan.shellOpenInBrowser", Schema.Struct<{
17210
+ readonly path: Schema.String;
17211
+ readonly browser: Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>;
17212
+ }>, Schema.Void, typeof PanRpcError, never, never> | Rpc.Rpc<"pan.getAvailableBrowsers", Schema.Void, Schema.Struct<{
17213
+ readonly browsers: Schema.$Array<Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>>;
17100
17214
  }>, typeof PanRpcError, never, never> | Rpc.Rpc<"pan.scanConversations", Schema.Struct<{
17101
17215
  readonly mode: Schema.Literals<readonly ["targeted", "watched", "system"]>;
17102
17216
  readonly dirs: Schema.optional<Schema.$Array<Schema.String>>;
@@ -17992,6 +18106,50 @@ declare const OpenInEditorInput: Schema.Struct<{
17992
18106
  readonly reveal: Schema.optional<Schema.Boolean>;
17993
18107
  }>;
17994
18108
  type OpenInEditorInput = typeof OpenInEditorInput.Type;
18109
+ declare const BROWSERS: readonly [{
18110
+ readonly id: "default-browser";
18111
+ readonly label: "browser";
18112
+ readonly linuxCommands: readonly [];
18113
+ readonly macApp: null;
18114
+ }, {
18115
+ readonly id: "chrome";
18116
+ readonly label: "Google Chrome";
18117
+ readonly linuxCommands: readonly ["google-chrome"];
18118
+ readonly macApp: "Google Chrome";
18119
+ }, {
18120
+ readonly id: "chromium";
18121
+ readonly label: "Chromium";
18122
+ readonly linuxCommands: readonly ["chromium", "chromium-browser"];
18123
+ readonly macApp: "Chromium";
18124
+ }, {
18125
+ readonly id: "firefox";
18126
+ readonly label: "Firefox";
18127
+ readonly linuxCommands: readonly ["firefox"];
18128
+ readonly macApp: "Firefox";
18129
+ }, {
18130
+ readonly id: "brave";
18131
+ readonly label: "Brave";
18132
+ readonly linuxCommands: readonly ["brave-browser"];
18133
+ readonly macApp: "Brave Browser";
18134
+ }, {
18135
+ readonly id: "edge";
18136
+ readonly label: "Microsoft Edge";
18137
+ readonly linuxCommands: readonly ["microsoft-edge"];
18138
+ readonly macApp: "Microsoft Edge";
18139
+ }, {
18140
+ readonly id: "vivaldi";
18141
+ readonly label: "Vivaldi";
18142
+ readonly linuxCommands: readonly ["vivaldi"];
18143
+ readonly macApp: "Vivaldi";
18144
+ }];
18145
+ type BrowserEntry = (typeof BROWSERS)[number];
18146
+ type BrowserId = BrowserEntry["id"];
18147
+ declare const BrowserIdSchema: Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>;
18148
+ declare const OpenInBrowserInput: Schema.Struct<{
18149
+ readonly path: Schema.String;
18150
+ readonly browser: Schema.Literals<["default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi", ...("default-browser" | "chrome" | "chromium" | "firefox" | "brave" | "edge" | "vivaldi")[]]>;
18151
+ }>;
18152
+ type OpenInBrowserInput = typeof OpenInBrowserInput.Type;
17995
18153
  //#endregion
17996
18154
  //#region src/effort.d.ts
17997
18155
  /**
@@ -18512,7 +18670,8 @@ declare const FlywheelLastTick: Schema.Struct<{
18512
18670
  readonly phase: Schema.Literals<readonly ["orient", "pick", "launch", "watch", "park", "idle", "stopping"]>;
18513
18671
  readonly inFlight: Schema.$Array<Schema.String>;
18514
18672
  readonly needsYou: Schema.NullOr<Schema.String>; /** The assistant message's `createdAt`. */
18515
- readonly at: Schema.String;
18673
+ readonly at: Schema.String; /** The assistant message's id, when the harness records one. */
18674
+ readonly messageId: Schema.optional<Schema.String>;
18516
18675
  }>;
18517
18676
  type FlywheelLastTick = typeof FlywheelLastTick.Type;
18518
18677
  declare const FlywheelPolicies: Schema.Struct<{
@@ -18550,7 +18709,8 @@ declare const FlywheelInFlightRow: Schema.Struct<{
18550
18709
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
18551
18710
  readonly merged: Schema.optional<Schema.Boolean>;
18552
18711
  }>>; /** Set when no configured tracker answered: the state is a guess, not a fact. */
18553
- readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
18712
+ readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** The row folds a feature-<id>-strike workspace onto its base issue (PAN-4752). */
18713
+ readonly strike: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
18554
18714
  readonly liveAgents: Schema.Number; /** The loop named this id in its newest tick marker's in-flight list. */
18555
18715
  readonly inTick: Schema.Boolean;
18556
18716
  readonly lastJournal: Schema.NullOr<Schema.Struct<{
@@ -18586,7 +18746,8 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
18586
18746
  readonly phase: Schema.Literals<readonly ["orient", "pick", "launch", "watch", "park", "idle", "stopping"]>;
18587
18747
  readonly inFlight: Schema.$Array<Schema.String>;
18588
18748
  readonly needsYou: Schema.NullOr<Schema.String>; /** The assistant message's `createdAt`. */
18589
- readonly at: Schema.String;
18749
+ readonly at: Schema.String; /** The assistant message's id, when the harness records one. */
18750
+ readonly messageId: Schema.optional<Schema.String>;
18590
18751
  }>>;
18591
18752
  readonly freshness: Schema.NullOr<Schema.Literals<readonly ["live", "breathing", "stalled"]>>;
18592
18753
  readonly policies: Schema.Struct<{
@@ -18607,7 +18768,8 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
18607
18768
  readonly mergeable: Schema.NullOr<Schema.Boolean>;
18608
18769
  readonly merged: Schema.optional<Schema.Boolean>;
18609
18770
  }>>; /** Set when no configured tracker answered: the state is a guess, not a fact. */
18610
- readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
18771
+ readonly trackerUnknown: Schema.optional<Schema.Literal<true>>; /** The row folds a feature-<id>-strike workspace onto its base issue (PAN-4752). */
18772
+ readonly strike: Schema.optional<Schema.Literal<true>>; /** Live agent panes on this issue. `working` with 0 means nobody is driving it. */
18611
18773
  readonly liveAgents: Schema.Number; /** The loop named this id in its newest tick marker's in-flight list. */
18612
18774
  readonly inTick: Schema.Boolean;
18613
18775
  readonly lastJournal: Schema.NullOr<Schema.Struct<{
@@ -18641,7 +18803,7 @@ declare const FlywheelDerivedStatus: Schema.Struct<{
18641
18803
  }>;
18642
18804
  type FlywheelDerivedStatus = typeof FlywheelDerivedStatus.Type;
18643
18805
  declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_SchemaAST0.ParseOptions) => {
18644
- readonly run: "idle" | "running" | "paused";
18806
+ readonly run: "running" | "idle" | "paused";
18645
18807
  readonly conversation: {
18646
18808
  readonly name: string;
18647
18809
  readonly id: number;
@@ -18659,6 +18821,7 @@ declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_S
18659
18821
  readonly inFlight: readonly string[];
18660
18822
  readonly needsYou: string | null;
18661
18823
  readonly at: string;
18824
+ readonly messageId?: string | undefined;
18662
18825
  } | null;
18663
18826
  readonly freshness: "live" | "breathing" | "stalled" | null;
18664
18827
  readonly policies: {
@@ -18687,6 +18850,7 @@ declare const decodeFlywheelDerivedStatus: (input: unknown, options?: _$effect_S
18687
18850
  readonly merged?: boolean | undefined;
18688
18851
  } | undefined;
18689
18852
  readonly trackerUnknown?: true | undefined;
18853
+ readonly strike?: true | undefined;
18690
18854
  }[];
18691
18855
  readonly agents: readonly {
18692
18856
  readonly issueId: string;
@@ -19545,6 +19709,8 @@ type HarnessContextChannel = "append-system-prompt-file" | "append-system-prompt
19545
19709
  type HarnessAttachmentDelivery = "native" | "inline-paths";
19546
19710
  type HarnessBinaryConfigKey = "acp.kimi.binaryPath" | "kimiCode.binaryPath";
19547
19711
  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";
19548
19714
  /** claude-project-hash = resolve via HashResolver; agent-dir = first-message cwd, else the agent dir; first-message-only = first-message cwd, else null. */
19549
19715
  type HarnessWorkspaceResolution = "claude-project-hash" | "agent-dir" | "first-message-only";
19550
19716
  interface HarnessCapabilities {
@@ -19572,6 +19738,10 @@ interface HarnessCapabilities {
19572
19738
  readonly binaryLabel: string;
19573
19739
  /** Install command shown when the binary is missing, or null for none. */
19574
19740
  readonly installHint: string | null;
19741
+ /** Argv after the binary that updates the CLI in place, or null when Overdeck must not update it (PAN-4654). */
19742
+ readonly updateArgs: readonly string[] | null;
19743
+ /** npm package of the CLI; a binary installed under <prefix>/lib/node_modules/<package>/ is updated with npm (PAN-4654). */
19744
+ readonly npmPackage: string | null;
19575
19745
  /** Config key holding an operator-configured binary path, or null for none. */
19576
19746
  readonly binaryConfigKey: HarnessBinaryConfigKey | null;
19577
19747
  /** Preflight check run before a launch, or null for none. */
@@ -19580,8 +19750,19 @@ interface HarnessCapabilities {
19580
19750
  readonly workspaceResolution: HarnessWorkspaceResolution;
19581
19751
  /** The conversation scanner correlates transcripts to agents by session id. */
19582
19752
  readonly correlatesBySessionId: boolean;
19753
+ /**
19754
+ * The MCP `answer_question` tool may answer this harness's pending question with a composed
19755
+ * message (PAN-4649). Narrower than `askAnswerDelivery`: the tool carries no toolUseId, so it
19756
+ * cannot tell a Codex approval from a question and serves only harnesses where a message is
19757
+ * always the answer.
19758
+ */
19759
+ readonly answersQuestionByMessage: boolean;
19760
+ /** How the dashboard delivers an operator's answer to a pending AskUserQuestion in a conversation. */
19761
+ readonly askAnswerDelivery: HarnessAskAnswerDelivery;
19762
+ /** A conversation may be started on a Fly machine (pan machines add-fly): Claude Code (PAN-4652) and Codex (PAN-4296). */
19763
+ readonly runsOnFlyMachine: boolean;
19583
19764
  }
19584
- declare const HARNESS_CAPABILITY_KEYS: readonly ["contextChannel", "initialPromptMustLand", "stopRuntimeOnStartFailure", "resumeContractMustLand", "reapsPrivateDaemonOnStop", "attachmentDelivery", "nativeManualCompact", "paneInputGuard", "transcriptDeliveryReceipt", "hostEffortFlag", "binaryLabel", "installHint", "binaryConfigKey", "launchPreflight", "workspaceResolution", "correlatesBySessionId"];
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"];
19585
19766
  declare const CLAUDE_CODE_CAPABILITIES: HarnessCapabilities;
19586
19767
  declare const OHMYPI_CAPABILITIES: HarnessCapabilities;
19587
19768
  declare const CODEX_CAPABILITIES: HarnessCapabilities;
@@ -20099,7 +20280,7 @@ type TelemetryEventName = typeof TELEMETRY_EVENT_NAMES[number];
20099
20280
  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"];
20100
20281
  declare const TELEMETRY_PROPERTY_DOMAINS: {
20101
20282
  readonly agent_spawn_mode: readonly ["spawn-and-send", "spawn-work-and-send"];
20102
- readonly answer_type: readonly ["custom", "selection"];
20283
+ readonly answer_type: readonly ["custom", "selection", "note", "selection+note"];
20103
20284
  readonly auto_merge_variant: readonly ["segmented", "badge"];
20104
20285
  readonly boolean: readonly [false, true];
20105
20286
  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"];
@@ -20956,6 +21137,31 @@ declare function repoFromRemoteUrl(remote: string | null | undefined): PullReque
20956
21137
  /** True when the ref's host and repository match one of the configured repos. */
20957
21138
  declare function isConfiguredPullRequestRepo(ref: PullRequestKey, repos: readonly PullRequestRepo[]): boolean;
20958
21139
  //#endregion
21140
+ //#region src/tracker-issue-ref.d.ts
21141
+ /**
21142
+ * Tracker issue references (PAN-4714): parse a tracker issue URL found in a
21143
+ * conversation (GitHub `/issues/<n>`, Linear `/issue/<KEY-n>`) and resolve it to
21144
+ * the Overdeck issue ID of a registered project, so the dashboard can open that
21145
+ * issue's drawer instead of the tracker. Resolution reads the project registry
21146
+ * (`/api/registered-projects`); there is no prefix table here.
21147
+ */
21148
+ type TrackerIssueUrlRef = {
21149
+ readonly tracker: 'github';
21150
+ readonly repository: string;
21151
+ readonly number: number;
21152
+ } | {
21153
+ readonly tracker: 'linear';
21154
+ readonly identifier: string;
21155
+ };
21156
+ /** The `/api/registered-projects` fields resolution reads. `linearTeam` is the issue prefix. */
21157
+ interface TrackerIssueProject {
21158
+ readonly linearTeam?: string | null;
21159
+ readonly githubRepo?: string | null;
21160
+ readonly tracker?: string | null;
21161
+ }
21162
+ declare function parseTrackerIssueUrl(input: string): TrackerIssueUrlRef | null;
21163
+ declare function resolveTrackerIssueId(ref: TrackerIssueUrlRef, projects: readonly TrackerIssueProject[]): string | null;
21164
+ //#endregion
20959
21165
  //#region src/conversation-rows.d.ts
20960
21166
  /**
20961
21167
  * Conversation-row classifiers shared by the dashboard server (`src/lib`) and
@@ -21036,7 +21242,8 @@ type EnvironmentId = typeof EnvironmentId.Type;
21036
21242
  declare const EnvironmentCapabilities: Schema.Struct<{
21037
21243
  /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
21038
21244
  readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
21039
- readonly terminalAuth: Schema.Boolean;
21245
+ readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
21246
+ readonly machineLinks: Schema.optional<Schema.Boolean>;
21040
21247
  }>;
21041
21248
  type EnvironmentCapabilities = typeof EnvironmentCapabilities.Type;
21042
21249
  declare const EnvironmentDescriptor: Schema.Struct<{
@@ -21052,8 +21259,15 @@ declare const EnvironmentDescriptor: Schema.Struct<{
21052
21259
  readonly capabilities: Schema.Struct<{
21053
21260
  /** `POST /api/pairing/*` is available. */readonly pairing: Schema.Boolean; /** `GET/DELETE /api/devices` is available. */
21054
21261
  readonly deviceSessions: Schema.Boolean; /** `/ws/*` upgrades require a credential (PAN-1166). */
21055
- readonly terminalAuth: Schema.Boolean;
21056
- }>;
21262
+ readonly terminalAuth: Schema.Boolean; /** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
21263
+ readonly machineLinks: Schema.optional<Schema.Boolean>;
21264
+ }>; /** Long-term X25519 machine public key, 64 lowercase hex (PAN-4645). */
21265
+ readonly machineKey: Schema.optional<Schema.String>; /** The server's `LINK_PROTOCOL_VERSION`; optional so older descriptors still decode (D-4645-11). */
21266
+ readonly linkProtocol: Schema.optional<Schema.Number>; /** Endpoints this machine advertises for secure channels. */
21267
+ readonly endpoints: Schema.optional<Schema.$Array<Schema.Struct<{
21268
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet"]>;
21269
+ readonly url: Schema.String;
21270
+ }>>>;
21057
21271
  }>;
21058
21272
  type EnvironmentDescriptor = typeof EnvironmentDescriptor.Type;
21059
21273
  /** A server-local id qualified by the environment that owns it. */
@@ -21089,6 +21303,363 @@ type ScopedTerminalRef = typeof ScopedTerminalRef.Type;
21089
21303
  /** True only when the server speaks exactly the client's protocol version. */
21090
21304
  declare function isProtocolCompatible(descriptor: Pick<EnvironmentDescriptor, "protocolVersion">, clientProtocolVersion: number): boolean;
21091
21305
  //#endregion
21306
+ //#region src/machines.d.ts
21307
+ /**
21308
+ * Secure-channel link protocol version (D-4645-11). Independent of
21309
+ * `ENVIRONMENT_PROTOCOL_VERSION`: a peer whose descriptor reports another value,
21310
+ * or no `capabilities.machineLinks`, is `unsupported`.
21311
+ */
21312
+ declare const LINK_PROTOCOL_VERSION = 1;
21313
+ /** The exact command that installs one Overdeck version (PAN-4654 FR-1, D-2). */
21314
+ declare function overdeckInstallCommand(version: string): string;
21315
+ /** Route kinds, ranked best to worst (D-10 of the Anywhere PRD). */
21316
+ declare const ROUTE_KINDS: readonly ["lan", "tailnet", "ssh", "public", "direct", "relay"];
21317
+ declare const RouteKind: Schema.Literals<readonly ["lan", "tailnet", "ssh", "public", "direct", "relay"]>;
21318
+ type RouteKind = typeof RouteKind.Type;
21319
+ /**
21320
+ * Where a route on a link came from. `directory` routes (PAN-2356) are dynamic: offered while the
21321
+ * overdeck.ai directory lists the peer, never stored in machine-links.json.
21322
+ */
21323
+ declare const RouteSource: Schema.Literals<readonly ["pairing", "manual", "advertised", "directory"]>;
21324
+ type RouteSource = typeof RouteSource.Type;
21325
+ /** An endpoint a machine advertises in its descriptor (`lan` and `tailnet` only in this issue). */
21326
+ declare const AdvertisedEndpoint: Schema.Struct<{
21327
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet"]>; /** `tcp://host:port` or `wss://host[:port]/ws/link`. */
21328
+ readonly url: Schema.String;
21329
+ }>;
21330
+ type AdvertisedEndpoint = typeof AdvertisedEndpoint.Type;
21331
+ /** Link supervisor state (FR-3). */
21332
+ declare const LinkState: Schema.Literals<readonly ["online", "connecting", "offline", "unsupported", "revoked"]>;
21333
+ type LinkState = typeof LinkState.Type;
21334
+ /** Access level of a link (FR-4). */
21335
+ declare const LinkAccess: Schema.Literals<readonly ["operator", "agent-fenced"]>;
21336
+ type LinkAccess = typeof LinkAccess.Type;
21337
+ /** Last known result of probing one route. */
21338
+ declare const LinkRouteStatus: Schema.Literals<readonly ["untried", "current", "reachable", "unreachable"]>;
21339
+ type LinkRouteStatus = typeof LinkRouteStatus.Type;
21340
+ declare const LinkRouteView: Schema.Struct<{
21341
+ readonly url: Schema.String;
21342
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet", "ssh", "public", "direct", "relay"]>;
21343
+ readonly source: Schema.Literals<readonly ["pairing", "manual", "advertised", "directory"]>;
21344
+ readonly status: Schema.Literals<readonly ["untried", "current", "reachable", "unreachable"]>;
21345
+ }>;
21346
+ type LinkRouteView = typeof LinkRouteView.Type;
21347
+ /** A heartbeat gap, diagnosed as a peer freeze or a network failure (FR-9). */
21348
+ declare const LinkIncident: Schema.Struct<{
21349
+ readonly kind: Schema.Literals<readonly ["froze", "network"]>;
21350
+ readonly durationMs: Schema.Number; /** ISO-8601 UTC time the gap ended, in the linking machine's clock. */
21351
+ readonly at: Schema.String;
21352
+ }>;
21353
+ type LinkIncident = typeof LinkIncident.Type;
21354
+ /** Whether the linking server started the SSH host's Overdeck or adopted one already running (PAN-4404). */
21355
+ declare const SshLaunch: Schema.Literals<readonly ["managed", "external"]>;
21356
+ type SshLaunch = typeof SshLaunch.Type;
21357
+ /** State of the local SSH port forward that carries an SSH machine's link (PAN-4404 D-4404-10). */
21358
+ declare const SshForwardState: Schema.Literals<readonly ["starting", "up", "down", "attention"]>;
21359
+ type SshForwardState = typeof SshForwardState.Type;
21360
+ /** The SSH side of a link that this server set up over SSH. */
21361
+ declare const SshLinkInfo: Schema.Struct<{
21362
+ readonly destination: Schema.String;
21363
+ readonly launch: Schema.Literals<readonly ["managed", "external"]>;
21364
+ readonly forward: Schema.Literals<readonly ["starting", "up", "down", "attention"]>;
21365
+ readonly forwardDetail: Schema.NullOr<Schema.String>;
21366
+ readonly localPort: Schema.Number;
21367
+ readonly remotePort: Schema.Number;
21368
+ }>;
21369
+ type SshLinkInfo = typeof SshLinkInfo.Type;
21370
+ /** PAN-4651 D-4651-8: a machine's load, sampled every 15 s and carried in the link heartbeat. */
21371
+ declare const LoadSample: Schema.Struct<{
21372
+ /** CPU PSI `some avg10` (percent); null off Linux. */readonly cpuPsiSomeAvg10: Schema.NullOr<Schema.Number>;
21373
+ readonly cpuSaturated: Schema.Boolean;
21374
+ readonly memAvailableBytes: Schema.NullOr<Schema.Number>;
21375
+ readonly workingAgents: Schema.Number;
21376
+ readonly sampledAt: Schema.String;
21377
+ }>;
21378
+ type LoadSample = typeof LoadSample.Type;
21379
+ /** PAN-4651 FR-7: `on-request` reserves a machine — Auto skips it unless only it has a needed tag. */
21380
+ declare const MachinePlacementMode: Schema.Literals<readonly ["auto", "on-request"]>;
21381
+ type MachinePlacementMode = typeof MachinePlacementMode.Type;
21382
+ /** PAN-4651 FR-6: `CPU 3% · 41 GB · 2 agents` (unknown parts `n/a`); null without a sample. */
21383
+ declare function formatMachineLoad(load: LoadSample | null | undefined): string | null;
21384
+ /** PAN-4651 FR-7: `tags: docker, linux · reserved`; null when there is neither. */
21385
+ declare function formatMachineProfile(tags: readonly string[] | undefined, placement: MachinePlacementMode | undefined): string | null;
21386
+ /** PAN-4651 D-4651-9: why Auto placement skipped one machine. */
21387
+ declare const PlacementRejection: Schema.Struct<{
21388
+ readonly environmentId: Schema.String;
21389
+ readonly label: Schema.String; /** `offline`, `unsupported`, `no project`, `no <tag>`, `CPU saturated` or `reserved`. */
21390
+ readonly reason: Schema.String;
21391
+ }>;
21392
+ type PlacementRejection = typeof PlacementRejection.Type;
21393
+ /** PAN-4651 D-4651-9: the machine Auto chose (with the one-line reason), or why none fits. */
21394
+ declare const PlacementAnswer: Schema.Union<readonly [Schema.Struct<{
21395
+ readonly ok: Schema.Literal<true>;
21396
+ readonly environmentId: Schema.String;
21397
+ readonly label: Schema.String;
21398
+ readonly self: Schema.Boolean;
21399
+ readonly reason: Schema.String;
21400
+ readonly rejections: Schema.$Array<Schema.Struct<{
21401
+ readonly environmentId: Schema.String;
21402
+ readonly label: Schema.String; /** `offline`, `unsupported`, `no project`, `no <tag>`, `CPU saturated` or `reserved`. */
21403
+ readonly reason: Schema.String;
21404
+ }>>;
21405
+ }>, Schema.Struct<{
21406
+ readonly ok: Schema.Literal<false>;
21407
+ readonly rejections: Schema.$Array<Schema.Struct<{
21408
+ readonly environmentId: Schema.String;
21409
+ readonly label: Schema.String; /** `offline`, `unsupported`, `no project`, `no <tag>`, `CPU saturated` or `reserved`. */
21410
+ readonly reason: Schema.String;
21411
+ }>>;
21412
+ }>]>;
21413
+ type PlacementAnswer = typeof PlacementAnswer.Type;
21414
+ /** PAN-4651 D-4651-11: one project a machine has registered, as linked machines see it (never a path). */
21415
+ declare const MachineProject: Schema.Struct<{
21416
+ readonly key: Schema.String;
21417
+ readonly name: Schema.String; /** `github.com/<owner>/<repo>` or `gitlab.com/<path>`; null when the project has no remote repo. */
21418
+ readonly gitOrigin: Schema.NullOr<Schema.String>;
21419
+ }>;
21420
+ type MachineProject = typeof MachineProject.Type;
21421
+ /** PAN-4651 D-4651-13: one repository across machines, as `GET /api/fleet/projects` lists it. */
21422
+ declare const FleetProjectRow: Schema.Struct<{
21423
+ /** The git origin slug; null for a local project without one (its own row). */readonly gitOrigin: Schema.NullOr<Schema.String>;
21424
+ readonly name: Schema.String; /** This machine's project for the slug, or null when only other machines have it. */
21425
+ readonly local: Schema.NullOr<Schema.Struct<{
21426
+ readonly key: Schema.String;
21427
+ }>>;
21428
+ readonly machines: Schema.$Array<Schema.Struct<{
21429
+ readonly environmentId: Schema.String;
21430
+ readonly label: Schema.String;
21431
+ readonly key: Schema.String;
21432
+ readonly state: Schema.Literals<readonly ["online", "connecting", "offline", "unsupported", "revoked"]>;
21433
+ }>>;
21434
+ }>;
21435
+ type FleetProjectRow = typeof FleetProjectRow.Type;
21436
+ declare const FleetProjectsResponse: Schema.Struct<{
21437
+ readonly combine: Schema.Boolean;
21438
+ readonly projects: Schema.$Array<Schema.Struct<{
21439
+ /** The git origin slug; null for a local project without one (its own row). */readonly gitOrigin: Schema.NullOr<Schema.String>;
21440
+ readonly name: Schema.String; /** This machine's project for the slug, or null when only other machines have it. */
21441
+ readonly local: Schema.NullOr<Schema.Struct<{
21442
+ readonly key: Schema.String;
21443
+ }>>;
21444
+ readonly machines: Schema.$Array<Schema.Struct<{
21445
+ readonly environmentId: Schema.String;
21446
+ readonly label: Schema.String;
21447
+ readonly key: Schema.String;
21448
+ readonly state: Schema.Literals<readonly ["online", "connecting", "offline", "unsupported", "revoked"]>;
21449
+ }>>;
21450
+ }>>;
21451
+ }>;
21452
+ type FleetProjectsResponse = typeof FleetProjectsResponse.Type;
21453
+ /** One outbound link as shown by `GET /api/machines` and `pan machines list`. */
21454
+ declare const MachineLinkView: Schema.Struct<{
21455
+ readonly id: Schema.String;
21456
+ readonly environmentId: Schema.String;
21457
+ readonly label: Schema.String; /** Fingerprint of the pinned machine key: five dash-separated groups of four hex. */
21458
+ readonly fingerprint: Schema.String;
21459
+ readonly access: Schema.Literals<readonly ["operator", "agent-fenced"]>;
21460
+ readonly state: Schema.Literals<readonly ["online", "connecting", "offline", "unsupported", "revoked"]>;
21461
+ readonly stateDetail: Schema.NullOr<Schema.String>;
21462
+ readonly currentRoute: Schema.NullOr<Schema.String>;
21463
+ readonly routes: Schema.$Array<Schema.Struct<{
21464
+ readonly url: Schema.String;
21465
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet", "ssh", "public", "direct", "relay"]>;
21466
+ readonly source: Schema.Literals<readonly ["pairing", "manual", "advertised", "directory"]>;
21467
+ readonly status: Schema.Literals<readonly ["untried", "current", "reachable", "unreachable"]>;
21468
+ }>>;
21469
+ readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
21470
+ readonly incident: Schema.NullOr<Schema.Struct<{
21471
+ readonly kind: Schema.Literals<readonly ["froze", "network"]>;
21472
+ readonly durationMs: Schema.Number; /** ISO-8601 UTC time the gap ended, in the linking machine's clock. */
21473
+ readonly at: Schema.String;
21474
+ }>>;
21475
+ readonly peerVersion: Schema.NullOr<Schema.String>;
21476
+ readonly createdAt: Schema.String; /** PAN-4650: Hide this machine — its conversations are left out of the conversation list. */
21477
+ readonly hidden: Schema.optional<Schema.Boolean>; /** Present only on links this server set up over SSH. */
21478
+ readonly ssh: Schema.optional<Schema.Struct<{
21479
+ readonly destination: Schema.String;
21480
+ readonly launch: Schema.Literals<readonly ["managed", "external"]>;
21481
+ readonly forward: Schema.Literals<readonly ["starting", "up", "down", "attention"]>;
21482
+ readonly forwardDetail: Schema.NullOr<Schema.String>;
21483
+ readonly localPort: Schema.Number;
21484
+ readonly remotePort: Schema.Number;
21485
+ }>>; /** PAN-4651: the peer's last heartbeat load sample; null before one arrives or from a peer that predates it. */
21486
+ readonly load: Schema.optional<Schema.NullOr<Schema.Struct<{
21487
+ /** CPU PSI `some avg10` (percent); null off Linux. */readonly cpuPsiSomeAvg10: Schema.NullOr<Schema.Number>;
21488
+ readonly cpuSaturated: Schema.Boolean;
21489
+ readonly memAvailableBytes: Schema.NullOr<Schema.Number>;
21490
+ readonly workingAgents: Schema.Number;
21491
+ readonly sampledAt: Schema.String;
21492
+ }>>>; /** PAN-4651: the peer's capability tags (detected plus `anywhere.machine.tags`). */
21493
+ readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
21494
+ readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>;
21495
+ }>;
21496
+ type MachineLinkView = typeof MachineLinkView.Type;
21497
+ /** One `machine` token this machine issued to another machine (inbound access). */
21498
+ declare const InboundMachineView: Schema.Struct<{
21499
+ readonly tokenId: Schema.String;
21500
+ readonly environmentId: Schema.String;
21501
+ readonly label: Schema.String;
21502
+ readonly fingerprint: Schema.String;
21503
+ readonly access: Schema.Literals<readonly ["operator", "agent-fenced"]>;
21504
+ readonly createdAt: Schema.String;
21505
+ readonly lastUsedAt: Schema.NullOr<Schema.String>;
21506
+ }>;
21507
+ type InboundMachineView = typeof InboundMachineView.Type;
21508
+ declare const MachinesResponse: Schema.Struct<{
21509
+ readonly self: Schema.Struct<{
21510
+ readonly environmentId: Schema.String;
21511
+ readonly label: Schema.String;
21512
+ readonly fingerprint: Schema.String; /** PAN-4650 D-4: linked machines list this machine's conversations (anywhere.json, default on). */
21513
+ readonly shareConversations: Schema.Boolean; /** PAN-4651 D-4651-13: one project per git origin across machines (anywhere.json, default on). */
21514
+ readonly combineRepositories: Schema.optional<Schema.Boolean>; /** PAN-4651: this machine's own load sample, tags and placement mode. */
21515
+ readonly load: Schema.optional<Schema.NullOr<Schema.Struct<{
21516
+ /** CPU PSI `some avg10` (percent); null off Linux. */readonly cpuPsiSomeAvg10: Schema.NullOr<Schema.Number>;
21517
+ readonly cpuSaturated: Schema.Boolean;
21518
+ readonly memAvailableBytes: Schema.NullOr<Schema.Number>;
21519
+ readonly workingAgents: Schema.Number;
21520
+ readonly sampledAt: Schema.String;
21521
+ }>>>;
21522
+ readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
21523
+ readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>;
21524
+ }>;
21525
+ readonly links: Schema.$Array<Schema.Struct<{
21526
+ readonly id: Schema.String;
21527
+ readonly environmentId: Schema.String;
21528
+ readonly label: Schema.String; /** Fingerprint of the pinned machine key: five dash-separated groups of four hex. */
21529
+ readonly fingerprint: Schema.String;
21530
+ readonly access: Schema.Literals<readonly ["operator", "agent-fenced"]>;
21531
+ readonly state: Schema.Literals<readonly ["online", "connecting", "offline", "unsupported", "revoked"]>;
21532
+ readonly stateDetail: Schema.NullOr<Schema.String>;
21533
+ readonly currentRoute: Schema.NullOr<Schema.String>;
21534
+ readonly routes: Schema.$Array<Schema.Struct<{
21535
+ readonly url: Schema.String;
21536
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet", "ssh", "public", "direct", "relay"]>;
21537
+ readonly source: Schema.Literals<readonly ["pairing", "manual", "advertised", "directory"]>;
21538
+ readonly status: Schema.Literals<readonly ["untried", "current", "reachable", "unreachable"]>;
21539
+ }>>;
21540
+ readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
21541
+ readonly incident: Schema.NullOr<Schema.Struct<{
21542
+ readonly kind: Schema.Literals<readonly ["froze", "network"]>;
21543
+ readonly durationMs: Schema.Number; /** ISO-8601 UTC time the gap ended, in the linking machine's clock. */
21544
+ readonly at: Schema.String;
21545
+ }>>;
21546
+ readonly peerVersion: Schema.NullOr<Schema.String>;
21547
+ readonly createdAt: Schema.String; /** PAN-4650: Hide this machine — its conversations are left out of the conversation list. */
21548
+ readonly hidden: Schema.optional<Schema.Boolean>; /** Present only on links this server set up over SSH. */
21549
+ readonly ssh: Schema.optional<Schema.Struct<{
21550
+ readonly destination: Schema.String;
21551
+ readonly launch: Schema.Literals<readonly ["managed", "external"]>;
21552
+ readonly forward: Schema.Literals<readonly ["starting", "up", "down", "attention"]>;
21553
+ readonly forwardDetail: Schema.NullOr<Schema.String>;
21554
+ readonly localPort: Schema.Number;
21555
+ readonly remotePort: Schema.Number;
21556
+ }>>; /** PAN-4651: the peer's last heartbeat load sample; null before one arrives or from a peer that predates it. */
21557
+ readonly load: Schema.optional<Schema.NullOr<Schema.Struct<{
21558
+ /** CPU PSI `some avg10` (percent); null off Linux. */readonly cpuPsiSomeAvg10: Schema.NullOr<Schema.Number>;
21559
+ readonly cpuSaturated: Schema.Boolean;
21560
+ readonly memAvailableBytes: Schema.NullOr<Schema.Number>;
21561
+ readonly workingAgents: Schema.Number;
21562
+ readonly sampledAt: Schema.String;
21563
+ }>>>; /** PAN-4651: the peer's capability tags (detected plus `anywhere.machine.tags`). */
21564
+ readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
21565
+ readonly placement: Schema.optional<Schema.Literals<readonly ["auto", "on-request"]>>;
21566
+ }>>;
21567
+ readonly inbound: Schema.$Array<Schema.Struct<{
21568
+ readonly tokenId: Schema.String;
21569
+ readonly environmentId: Schema.String;
21570
+ readonly label: Schema.String;
21571
+ readonly fingerprint: Schema.String;
21572
+ readonly access: Schema.Literals<readonly ["operator", "agent-fenced"]>;
21573
+ readonly createdAt: Schema.String;
21574
+ readonly lastUsedAt: Schema.NullOr<Schema.String>;
21575
+ }>>;
21576
+ }>;
21577
+ type MachinesResponse = typeof MachinesResponse.Type;
21578
+ /**
21579
+ * Version of the `OVERDECK_SSH_HELPER` result line that `pan machines ssh-helper`
21580
+ * prints on the SSH host (PAN-4404).
21581
+ */
21582
+ declare const SSH_HELPER_PROTOCOL = 1;
21583
+ /** Error codes of the SSH machine flow (PAN-4404 D-4404-9). */
21584
+ declare const SSH_MACHINE_ERROR_CODES: readonly ["bad-destination", "busy", "unresolvable", "unreachable", "host-key", "auth-failed", "pan-missing", "version-mismatch", "helper-failed", "start-failed", "forward-failed", "self-link", "not-found"];
21585
+ declare const SshMachineErrorCode: Schema.Literals<readonly ["bad-destination", "busy", "unresolvable", "unreachable", "host-key", "auth-failed", "pan-missing", "version-mismatch", "helper-failed", "start-failed", "forward-failed", "self-link", "not-found"]>;
21586
+ type SshMachineErrorCode = typeof SshMachineErrorCode.Type;
21587
+ /** Answer of `POST /api/machines/ssh/test` and `pan machines test-ssh`. */
21588
+ declare const SshTestResult: Schema.Struct<{
21589
+ readonly reachable: Schema.Boolean;
21590
+ readonly panVersion: Schema.NullOr<Schema.String>;
21591
+ readonly localVersion: Schema.String;
21592
+ readonly versionMatches: Schema.Boolean;
21593
+ readonly error: Schema.NullOr<Schema.Literals<readonly ["bad-destination", "busy", "unresolvable", "unreachable", "host-key", "auth-failed", "pan-missing", "version-mismatch", "helper-failed", "start-failed", "forward-failed", "self-link", "not-found"]>>;
21594
+ readonly message: Schema.NullOr<Schema.String>;
21595
+ }>;
21596
+ type SshTestResult = typeof SshTestResult.Type;
21597
+ //#endregion
21598
+ //#region src/linked-conversations.d.ts
21599
+ /** One conversation in an owner's shared list (FR-1 fields only, ≈300 bytes). */
21600
+ interface SharedConversationRow {
21601
+ name: string;
21602
+ title: string | null;
21603
+ nativeSessionId: string | null;
21604
+ harness: string | null;
21605
+ model: string | null;
21606
+ status: "active" | "ended";
21607
+ sessionAlive: boolean;
21608
+ isWorking: boolean;
21609
+ lastActivityAt: string | null;
21610
+ projectKey: string | null;
21611
+ gitOrigin: string | null;
21612
+ cwd: string | null;
21613
+ issueId: string | null;
21614
+ tmuxSession: string | null;
21615
+ releasedTo: string | null;
21616
+ createdAt: string;
21617
+ /** The owner's `isResumableHarness(harness)`; the UI never compares harness names. */
21618
+ pullable: boolean;
21619
+ /**
21620
+ * The Session Vault record the owner settles this conversation into, or null.
21621
+ * The viewer's saved copy of it is the browse row `vault-<vaultId>` (FR-2).
21622
+ */
21623
+ vaultId: string | null;
21624
+ /**
21625
+ * Where the owner pulled this conversation from (adoption mints a new
21626
+ * session id, so this is how the old owner recognises it); absent from
21627
+ * owners older than PAN-4650 WI-11.
21628
+ */
21629
+ pulledFrom?: {
21630
+ environmentId: string;
21631
+ nativeSessionId: string;
21632
+ } | null;
21633
+ }
21634
+ /** The owner's answer to `GET /api/machines/conversations`. */
21635
+ interface SharedConversationsResponse {
21636
+ environmentId: string;
21637
+ sharing: boolean;
21638
+ hash: string;
21639
+ rows: SharedConversationRow[];
21640
+ }
21641
+ /** Fields a linked row carries in the viewing machine's merged list (D-4650-3). */
21642
+ interface LinkedConversationFields {
21643
+ origin: "linked";
21644
+ environmentId: string;
21645
+ remoteName: string;
21646
+ machineLabel: string;
21647
+ machineState: LinkState;
21648
+ machineLastSeenAt: string | null;
21649
+ savedCopyName: string | null;
21650
+ releasedTo: string | null;
21651
+ }
21652
+ /** The viewing machine's name for a linked conversation: `@<environmentId>/<name>`. */
21653
+ declare function linkedConversationName(environmentId: string, name: string): string;
21654
+ /**
21655
+ * Parse `@<target>/<name>`, where target is an environment id or a machine
21656
+ * label. Returns null for a local name or a malformed value.
21657
+ */
21658
+ declare function parseLinkedConversationName(value: string): {
21659
+ target: string;
21660
+ name: string;
21661
+ } | null;
21662
+ //#endregion
21092
21663
  //#region src/sharing.d.ts
21093
21664
  type ShareProtocolVersion = 1;
21094
21665
  type ShareScope = {
@@ -21214,5 +21785,563 @@ type ServiceToViewerFrame = {
21214
21785
  /** WebSocket close codes the share service uses. */
21215
21786
  type ShareCloseCode = 1000 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4011 | 4013;
21216
21787
  //#endregion
21217
- export { ACP_BEHAVIOR, ACP_CAPABILITIES, AGENT_ROLES, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentQuestionAnsweredProperties, AgentResolution, AgentResolutionChangedEvent, AgentRole, AgentRuntimeSnapshot, AgentSnapshot, AgentSpawnedProperties, AgentStartedEvent, AgentState, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, AutoMergeToggledProperties, BackendAgentSnapshot, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BulkCloseOutInitiatedProperties, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, 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, CompactBoundary, CompanionTerminalKind, CompanionTerminalOwnerShape, CompanionTerminalState, CompanionTerminalUnavailableReason, ComposerCommandArgument, ComposerCommandManifestEntry, ComposerCommandOption, ComposerCommandPolicy, ComposerCommandResult, ComposerExecutionMode, ComposerSafety, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationForkedProperties, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, 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, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryPause, DirectoryPauseBy, DirectoryProviderError, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EditorEntry, EditorId, EditorIdSchema, EffortLevel, EffortLevelSchema, EffortSource, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExtractionProviderConfig, ExtractionProviderTarget, FeatureNode, FeatureRegistryEntry, FeatureRegistryListFilter, FeatureRegistryOwnershipUpdate, FeatureRegistryStatus, FeatureRegistryTagInput, FeatureRegistryUntagInput, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelScopeValue, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, ForceMergeTriggeredProperties, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSampleProperties, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GitHubRateLimitedProperties, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, Harness, HarnessAttachmentDelivery, HarnessBehavior, HarnessBinaryConfigKey, HarnessCapabilities, HarnessContextChannel, HarnessContextLayerKind, HarnessDeliveryKind, HarnessFeedKind, HarnessLaunchCommandKind, HarnessLaunchPreflight, HarnessName, HarnessNativeCommand, HarnessReadinessKind, HarnessSessionIdSource, HarnessSteerKind, HarnessTranscriptKind, HarnessWorkspaceResolution, HealthReason, HealthState, HookInventoryEntry, HookInventoryName, HostFrame, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, IceServer, 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, LaneActivity, LaneActivityInput, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MembershipUnavailableReason, MemoryAgentRole, MemoryHealthChangedEvent, MemoryHealthSnapshot, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryReadModelState, MemoryResetMarkerCreatedEvent, MemoryRollupTriggerSnapshot, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PanRpcError, PanRpcGroup, PaneTokens, ParsedPullRequestRef, PendingTurn, PipelineBucket, PipelineMembershipLoadingBody, PipelineMembershipUnavailableBody, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineStageChangedProperties, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlanApprovedProperties, PlanChangesRequestedProperties, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiState, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectCreatedProperties, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestForge, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestRepo, PullRequestSnapshot, PullRequestState, RESUME_OPEN_IDS_MAX, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadModelState, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, 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, RuntimeName, SINGLETON_AGENT_IDS, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, 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, ShellOpenInEditorRpc, SignalData, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, 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, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TimelineKey, 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, canonicalPullRequestUrl, companionTerminalKindFor, compareEffort, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, encodeFlywheelStats, encodeTimelineCursor, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isLegacyPiHarnessName, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, normalizeChannelReplyPayload, normalizeHarnessName, omitTurnDiffSummariesForAgent, paneAgentKey, parsePullRequestRef, projectLegacySystemHealthSummary, repoFromRemoteUrl, resolveEffectivePullRequest, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
21788
+ //#region src/connect.d.ts
21789
+ declare const CONNECT_PROTOCOL_VERSION = 1;
21790
+ type ConnectProtocolVersion = typeof CONNECT_PROTOCOL_VERSION;
21791
+ /** Relay allowance per account per UTC calendar month (OD-3): 50 GB. */
21792
+ declare const RELAY_MONTHLY_CAP_BYTES = 50000000000;
21793
+ /** Largest webhook body the directory inbox accepts (D-2356-14). */
21794
+ declare const INBOX_BODY_MAX_BYTES = 262144;
21795
+ /** How long the inbox holds a sealed event before it expires (D-2356-18). */
21796
+ declare const INBOX_HOLD_MS = 86400000;
21797
+ /** How long an approval request stays live (D-2356-9). */
21798
+ declare const APPROVAL_TTL_MS = 600000;
21799
+ declare const FREE_MACHINE_LIMIT_MESSAGE = "The free account includes 3 machines";
21800
+ declare const NO_DIRECT_PATH_MESSAGE = "No direct path; install Tailscale or use the relay plan";
21801
+ declare const RELAY_CAP_MESSAGE = "Relay allowance used; install Tailscale or add 50 GB";
21802
+ /** WebSocket close codes the directory uses. */
21803
+ declare const CONNECT_CLOSE_CODES: {
21804
+ readonly unauthorized: 4001;
21805
+ readonly grantExpired: 4003;
21806
+ readonly machineLimit: 4009;
21807
+ readonly unsupportedProtocol: 4010; /** Replaced by a newer socket for the same machine. */
21808
+ readonly replaced: 4011;
21809
+ readonly forgotten: 4012;
21810
+ };
21811
+ type ConnectCloseCode = (typeof CONNECT_CLOSE_CODES)[keyof typeof CONNECT_CLOSE_CODES];
21812
+ /** Account plan as the directory sees it (`Entitlement.plan` of the account service). */
21813
+ type ConnectPlan = "free" | "tester";
21814
+ type ConnectErrorCode = "unauthorized" | "unsupported" | "machine_limit" | "peer_offline" | "approval_limit" | "approval_unknown" | "relay_not_allowed" | "relay_cap_reached" | "turn_unavailable" | "plan_required" | "bad_frame";
21815
+ /** An endpoint a machine advertises; structurally `AdvertisedEndpoint` of machines.ts. */
21816
+ interface DirectoryEndpoint {
21817
+ readonly kind: "lan" | "tailnet";
21818
+ readonly url: string;
21819
+ }
21820
+ /** What the directory knows about one of the account's machines. */
21821
+ interface DirectoryMachine {
21822
+ readonly environmentId: string;
21823
+ readonly label: string;
21824
+ /** X25519 machine public key, 64 lowercase hex. */
21825
+ readonly publicKeyHex: string;
21826
+ /** Five dash-separated groups of four hex characters. */
21827
+ readonly fingerprint: string;
21828
+ readonly online: boolean;
21829
+ /** ISO-8601 UTC time the machine last had a directory socket open. */
21830
+ readonly lastSeenAt: string;
21831
+ readonly serverVersion: string;
21832
+ readonly endpoints: readonly DirectoryEndpoint[];
21833
+ }
21834
+ interface RelayStatus {
21835
+ /** UTC calendar month, `YYYY-MM`. */
21836
+ readonly month: string;
21837
+ readonly bytesUsed: number;
21838
+ readonly capBytes: number;
21839
+ readonly stopped: boolean;
21840
+ }
21841
+ type SignalPurpose = "link" | "approval";
21842
+ /** Machine → directory. */
21843
+ type MachineToDirectoryFrame = {
21844
+ readonly type: "hello";
21845
+ readonly protocol: ConnectProtocolVersion;
21846
+ readonly environmentId: string; /** At most 64 characters. */
21847
+ readonly label: string;
21848
+ readonly publicKeyHex: string;
21849
+ readonly serverVersion: string;
21850
+ readonly linkProtocol: number; /** At most 16. */
21851
+ readonly endpoints: readonly DirectoryEndpoint[];
21852
+ } | {
21853
+ readonly type: "endpoints";
21854
+ readonly endpoints: readonly DirectoryEndpoint[];
21855
+ } | {
21856
+ readonly type: "forget";
21857
+ readonly environmentId: string;
21858
+ } /** `requestId` is 32 lowercase hex; `to: null` asks every other machine of the account. */ | {
21859
+ readonly type: "approval-request";
21860
+ readonly requestId: string;
21861
+ readonly to: string | null;
21862
+ } | {
21863
+ readonly type: "approval-cancel";
21864
+ readonly requestId: string;
21865
+ } | {
21866
+ readonly type: "signal";
21867
+ readonly to: string; /** 32 lowercase hex. */
21868
+ readonly session: string;
21869
+ readonly purpose: SignalPurpose;
21870
+ readonly relay: boolean;
21871
+ readonly data: SignalData;
21872
+ } | {
21873
+ readonly type: "ice-servers";
21874
+ readonly requestId: string;
21875
+ readonly relay: boolean;
21876
+ } /** Ciphertext bytes since the last report, integer, 0 ≤ bytes ≤ 1e9. */ | {
21877
+ readonly type: "relay-usage";
21878
+ readonly bytes: number;
21879
+ } | {
21880
+ readonly type: "inbox-create";
21881
+ readonly requestId: string;
21882
+ } | {
21883
+ readonly type: "inbox-delete";
21884
+ readonly inboxId: string;
21885
+ } | {
21886
+ readonly type: "inbox-ack";
21887
+ readonly eventId: string;
21888
+ } /** `retryAfterSeconds` is 60–3600. */ | {
21889
+ readonly type: "inbox-nack";
21890
+ readonly eventId: string;
21891
+ readonly retryAfterSeconds: number;
21892
+ };
21893
+ /** Directory → machine. */
21894
+ type DirectoryToMachineFrame = {
21895
+ readonly type: "welcome";
21896
+ readonly protocol: ConnectProtocolVersion;
21897
+ readonly plan: ConnectPlan;
21898
+ readonly maxMachines: number | null;
21899
+ readonly relayAllowed: boolean;
21900
+ readonly inboxAllowed: boolean;
21901
+ readonly relay: RelayStatus;
21902
+ readonly machines: readonly DirectoryMachine[];
21903
+ } /** Sent to every socket on any change. */ | {
21904
+ readonly type: "directory";
21905
+ readonly machines: readonly DirectoryMachine[];
21906
+ } | {
21907
+ readonly type: "approval-request";
21908
+ readonly requestId: string;
21909
+ readonly from: string;
21910
+ readonly label: string;
21911
+ readonly fingerprint: string;
21912
+ readonly publicKeyHex: string; /** Unix milliseconds. */
21913
+ readonly expiresAt: number;
21914
+ } | {
21915
+ readonly type: "approval-cancel";
21916
+ readonly requestId: string;
21917
+ } | {
21918
+ readonly type: "signal"; /** Stamped by the directory from the sender's socket, never taken from the frame. */
21919
+ readonly from: string;
21920
+ readonly session: string;
21921
+ readonly purpose: SignalPurpose;
21922
+ readonly relay: boolean;
21923
+ readonly data: SignalData;
21924
+ } | {
21925
+ readonly type: "ice-servers";
21926
+ readonly requestId: string;
21927
+ readonly iceServers: readonly IceServer[];
21928
+ } | ({
21929
+ readonly type: "relay-status";
21930
+ } & RelayStatus) | {
21931
+ readonly type: "inbox-created";
21932
+ readonly requestId: string;
21933
+ readonly inboxId: string;
21934
+ readonly url: string;
21935
+ } | {
21936
+ readonly type: "inbox-event";
21937
+ readonly eventId: string;
21938
+ readonly inboxId: string; /** Unix milliseconds. */
21939
+ readonly receivedAt: number; /** Sealed box (`crypto_box_seal`) to the machine key, base64. */
21940
+ readonly sealed: string;
21941
+ } | {
21942
+ readonly type: "error";
21943
+ readonly code: ConnectErrorCode;
21944
+ readonly message: string;
21945
+ readonly requestId?: string;
21946
+ readonly session?: string;
21947
+ };
21948
+ //#endregion
21949
+ //#region src/connect-view.d.ts
21950
+ declare const DirectoryClientState: Schema.Literals<readonly ["off", "connecting", "online", "refused"]>;
21951
+ type DirectoryClientState = typeof DirectoryClientState.Type;
21952
+ declare const DirectoryPlan: Schema.Literals<readonly ["free", "tester"]>;
21953
+ type DirectoryPlan = typeof DirectoryPlan.Type;
21954
+ /** One machine of the account, as the directory lists it. */
21955
+ declare const DirectoryMachineView: Schema.Struct<{
21956
+ readonly environmentId: Schema.String;
21957
+ readonly label: Schema.String;
21958
+ readonly publicKeyHex: Schema.String;
21959
+ readonly fingerprint: Schema.String;
21960
+ readonly online: Schema.Boolean; /** ISO-8601 UTC. */
21961
+ readonly lastSeenAt: Schema.String;
21962
+ readonly serverVersion: Schema.String;
21963
+ readonly endpoints: Schema.$Array<Schema.Struct<{
21964
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet"]>;
21965
+ readonly url: Schema.String;
21966
+ }>>; /** This machine holds a link to it. */
21967
+ readonly linked: Schema.Boolean;
21968
+ }>;
21969
+ type DirectoryMachineView = typeof DirectoryMachineView.Type;
21970
+ /**
21971
+ * Approver side: `pending` (request arrived), `open` (approval channel open, SAS known),
21972
+ * `approving` (this operator approved; waiting for the other machine to accept), `failed`.
21973
+ */
21974
+ declare const DirectoryApprovalState: Schema.Literals<readonly ["pending", "open", "approving", "failed"]>;
21975
+ type DirectoryApprovalState = typeof DirectoryApprovalState.Type;
21976
+ /** Requester side: `waiting` (no approver yet), `open` (SAS known), `accepted`, `rejected`. */
21977
+ declare const DirectoryJoinState: Schema.Literals<readonly ["waiting", "open", "accepted", "rejected"]>;
21978
+ type DirectoryJoinState = typeof DirectoryJoinState.Type;
21979
+ /** An incoming approval request: another machine asks to link with this one. */
21980
+ declare const DirectoryApprovalView: Schema.Struct<{
21981
+ readonly requestId: Schema.String; /** Environment id of the requesting machine. */
21982
+ readonly from: Schema.String;
21983
+ readonly label: Schema.String;
21984
+ readonly fingerprint: Schema.String; /** Unix milliseconds. */
21985
+ readonly expiresAt: Schema.Number; /** Six-digit code, set once the approval channel is open. */
21986
+ readonly sas: Schema.NullOr<Schema.String>;
21987
+ readonly state: Schema.Literals<readonly ["pending", "open", "approving", "failed"]>; /** Why the approval failed, when `state` is `failed`. */
21988
+ readonly error: Schema.NullOr<Schema.String>;
21989
+ }>;
21990
+ type DirectoryApprovalView = typeof DirectoryApprovalView.Type;
21991
+ /** An outgoing join request this machine made. */
21992
+ declare const DirectoryJoinView: Schema.Struct<{
21993
+ readonly requestId: Schema.String; /** Target environment id, or null for every machine of the account. */
21994
+ readonly to: Schema.NullOr<Schema.String>; /** Unix milliseconds. */
21995
+ readonly expiresAt: Schema.Number; /** Six-digit code, set once an approver opened the approval channel. */
21996
+ readonly sas: Schema.NullOr<Schema.String>; /** The approver's fingerprint, from the handshake key (never from the directory). */
21997
+ readonly fingerprint: Schema.NullOr<Schema.String>;
21998
+ readonly state: Schema.Literals<readonly ["waiting", "open", "accepted", "rejected"]>;
21999
+ }>;
22000
+ type DirectoryJoinView = typeof DirectoryJoinView.Type;
22001
+ declare const RelayStatusView: Schema.Struct<{
22002
+ /** UTC calendar month, `YYYY-MM`. */readonly month: Schema.String;
22003
+ readonly bytesUsed: Schema.Number;
22004
+ readonly capBytes: Schema.Number;
22005
+ readonly stopped: Schema.Boolean;
22006
+ }>;
22007
+ type RelayStatusView = typeof RelayStatusView.Type;
22008
+ declare const DirectoryResponse: Schema.Struct<{
22009
+ readonly signedIn: Schema.Boolean;
22010
+ readonly state: Schema.Literals<readonly ["off", "connecting", "online", "refused"]>; /** The configured directory URL, or null when it is invalid. */
22011
+ readonly url: Schema.NullOr<Schema.String>;
22012
+ readonly plan: Schema.NullOr<Schema.Literals<readonly ["free", "tester"]>>;
22013
+ readonly refusal: Schema.NullOr<Schema.String>;
22014
+ readonly machines: Schema.$Array<Schema.Struct<{
22015
+ readonly environmentId: Schema.String;
22016
+ readonly label: Schema.String;
22017
+ readonly publicKeyHex: Schema.String;
22018
+ readonly fingerprint: Schema.String;
22019
+ readonly online: Schema.Boolean; /** ISO-8601 UTC. */
22020
+ readonly lastSeenAt: Schema.String;
22021
+ readonly serverVersion: Schema.String;
22022
+ readonly endpoints: Schema.$Array<Schema.Struct<{
22023
+ readonly kind: Schema.Literals<readonly ["lan", "tailnet"]>;
22024
+ readonly url: Schema.String;
22025
+ }>>; /** This machine holds a link to it. */
22026
+ readonly linked: Schema.Boolean;
22027
+ }>>;
22028
+ readonly approvals: Schema.$Array<Schema.Struct<{
22029
+ readonly requestId: Schema.String; /** Environment id of the requesting machine. */
22030
+ readonly from: Schema.String;
22031
+ readonly label: Schema.String;
22032
+ readonly fingerprint: Schema.String; /** Unix milliseconds. */
22033
+ readonly expiresAt: Schema.Number; /** Six-digit code, set once the approval channel is open. */
22034
+ readonly sas: Schema.NullOr<Schema.String>;
22035
+ readonly state: Schema.Literals<readonly ["pending", "open", "approving", "failed"]>; /** Why the approval failed, when `state` is `failed`. */
22036
+ readonly error: Schema.NullOr<Schema.String>;
22037
+ }>>;
22038
+ readonly joins: Schema.$Array<Schema.Struct<{
22039
+ readonly requestId: Schema.String; /** Target environment id, or null for every machine of the account. */
22040
+ readonly to: Schema.NullOr<Schema.String>; /** Unix milliseconds. */
22041
+ readonly expiresAt: Schema.Number; /** Six-digit code, set once an approver opened the approval channel. */
22042
+ readonly sas: Schema.NullOr<Schema.String>; /** The approver's fingerprint, from the handshake key (never from the directory). */
22043
+ readonly fingerprint: Schema.NullOr<Schema.String>;
22044
+ readonly state: Schema.Literals<readonly ["waiting", "open", "accepted", "rejected"]>;
22045
+ }>>;
22046
+ readonly relay: Schema.NullOr<Schema.Struct<{
22047
+ /** UTC calendar month, `YYYY-MM`. */readonly month: Schema.String;
22048
+ readonly bytesUsed: Schema.Number;
22049
+ readonly capBytes: Schema.Number;
22050
+ readonly stopped: Schema.Boolean;
22051
+ }>>;
22052
+ }>;
22053
+ type DirectoryResponse = typeof DirectoryResponse.Type;
22054
+ //#endregion
22055
+ //#region src/fleet-versions.d.ts
22056
+ declare const FleetInstallMode: Schema.Literals<readonly ["npm-global", "development", "desktop"]>;
22057
+ type FleetInstallMode = typeof FleetInstallMode.Type;
22058
+ declare const FleetComponentStatus: Schema.Literals<readonly ["pending", "running", "updated", "current", "skipped", "failed"]>;
22059
+ type FleetComponentStatus = typeof FleetComponentStatus.Type;
22060
+ declare const FleetJobPhase: Schema.Literals<readonly ["waiting", "updating", "restarting", "done", "failed", "cancelled"]>;
22061
+ type FleetJobPhase = typeof FleetJobPhase.Type;
22062
+ declare const FleetUpdateMode: Schema.Literals<readonly ["when-idle", "now"]>;
22063
+ type FleetUpdateMode = typeof FleetUpdateMode.Type;
22064
+ /** One installed harness CLI, deduplicated by binary. */
22065
+ interface HarnessVersionView {
22066
+ /** "claude", "codex", "kimi", … */
22067
+ binary: string;
22068
+ /** `HarnessCapabilities.binaryLabel` of the first harness using the binary. */
22069
+ label: string;
22070
+ /** Runtime names that use this binary, e.g. ["acp", "kimi-code"]. */
22071
+ harnesses: string[];
22072
+ version: string | null;
22073
+ /** True when Overdeck may run the update plan's argv. */
22074
+ updatable: boolean;
22075
+ /** Copyable command (the plan's display). */
22076
+ command: string;
22077
+ /** Why the CLI is not updatable, or null. */
22078
+ reason: string | null;
22079
+ }
22080
+ /** One thing an update job updates: `overdeck` or one harness CLI binary. */
22081
+ interface FleetComponent {
22082
+ /** "overdeck" or a binary name. */
22083
+ name: string;
22084
+ /** "Overdeck", "Claude Code", … */
22085
+ label: string;
22086
+ before: string | null;
22087
+ after: string | null;
22088
+ status: FleetComponentStatus;
22089
+ /** The reason, or the output tail on failure. */
22090
+ detail: string | null;
22091
+ }
22092
+ interface FleetUpdateJob {
22093
+ id: string;
22094
+ mode: FleetUpdateMode;
22095
+ phase: FleetJobPhase;
22096
+ /** "operator" or "machine:<label>". */
22097
+ requestedBy: string;
22098
+ /** ISO-8601 UTC. */
22099
+ startedAt: string;
22100
+ /** Working turns at the last check (0 once updating). */
22101
+ waitingTurns: number;
22102
+ waitingSince: string | null;
22103
+ finishedAt: string | null;
22104
+ components: FleetComponent[];
22105
+ }
22106
+ interface MachineVersionsReport {
22107
+ environmentId: string;
22108
+ label: string;
22109
+ overdeck: {
22110
+ version: string;
22111
+ installMode: FleetInstallMode;
22112
+ linkProtocol: number;
22113
+ };
22114
+ harnesses: HarnessVersionView[];
22115
+ job: FleetUpdateJob | null;
22116
+ }
22117
+ /** One row of the fleet table: this machine first, then each outbound link. */
22118
+ interface FleetVersionRow {
22119
+ environmentId: string;
22120
+ label: string;
22121
+ self: boolean;
22122
+ state: LinkState | "self";
22123
+ stateDetail: string | null;
22124
+ peerVersion: string | null;
22125
+ report: MachineVersionsReport | null;
22126
+ updateSupported: boolean;
22127
+ install: {
22128
+ version: string;
22129
+ on: "this-machine" | "peer";
22130
+ command: string;
22131
+ } | null;
22132
+ error: string | null;
22133
+ }
22134
+ interface FleetVersionsResponse {
22135
+ rows: FleetVersionRow[];
22136
+ }
22137
+ interface FleetUpdateResponse {
22138
+ started: {
22139
+ environmentId: string;
22140
+ label: string;
22141
+ job: FleetUpdateJob;
22142
+ }[];
22143
+ skipped: {
22144
+ environmentId: string;
22145
+ label: string;
22146
+ reason: string;
22147
+ }[];
22148
+ }
22149
+ /** Fleet-table column order (D-16): these binaries first, then any other binary alphabetically. */
22150
+ declare const FLEET_BINARY_ORDER: readonly string[];
22151
+ /** Sort comparator for harness binary names in D-16 order. */
22152
+ declare function compareFleetBinaries(a: string, b: string): number;
22153
+ /** After this long waiting for turns, the row says it is still waiting and points at Update now (FR-8). */
22154
+ declare const FLEET_UPDATE_STILL_WAITING_MS: number;
22155
+ /** Decodes a persisted job file. */
22156
+ declare const FleetUpdateJobSchema: Schema.Struct<{
22157
+ readonly id: Schema.String;
22158
+ readonly mode: Schema.Literals<readonly ["when-idle", "now"]>;
22159
+ readonly phase: Schema.Literals<readonly ["waiting", "updating", "restarting", "done", "failed", "cancelled"]>;
22160
+ readonly requestedBy: Schema.String;
22161
+ readonly startedAt: Schema.String;
22162
+ readonly waitingTurns: Schema.Number;
22163
+ readonly waitingSince: Schema.NullOr<Schema.String>;
22164
+ readonly finishedAt: Schema.NullOr<Schema.String>;
22165
+ readonly components: Schema.$Array<Schema.Struct<{
22166
+ readonly name: Schema.String;
22167
+ readonly label: Schema.String;
22168
+ readonly before: Schema.NullOr<Schema.String>;
22169
+ readonly after: Schema.NullOr<Schema.String>;
22170
+ readonly status: Schema.Literals<readonly ["pending", "running", "updated", "current", "skipped", "failed"]>;
22171
+ readonly detail: Schema.NullOr<Schema.String>;
22172
+ }>>;
22173
+ }>;
22174
+ /** Decodes a peer's `GET /api/versions/self` body. */
22175
+ declare const MachineVersionsReportSchema: Schema.Struct<{
22176
+ readonly environmentId: Schema.String;
22177
+ readonly label: Schema.String;
22178
+ readonly overdeck: Schema.Struct<{
22179
+ readonly version: Schema.String;
22180
+ readonly installMode: Schema.Literals<readonly ["npm-global", "development", "desktop"]>;
22181
+ readonly linkProtocol: Schema.Number;
22182
+ }>;
22183
+ readonly harnesses: Schema.$Array<Schema.Struct<{
22184
+ readonly binary: Schema.String;
22185
+ readonly label: Schema.String;
22186
+ readonly harnesses: Schema.$Array<Schema.String>;
22187
+ readonly version: Schema.NullOr<Schema.String>;
22188
+ readonly updatable: Schema.Boolean;
22189
+ readonly command: Schema.String;
22190
+ readonly reason: Schema.NullOr<Schema.String>;
22191
+ }>>;
22192
+ readonly job: Schema.NullOr<Schema.Struct<{
22193
+ readonly id: Schema.String;
22194
+ readonly mode: Schema.Literals<readonly ["when-idle", "now"]>;
22195
+ readonly phase: Schema.Literals<readonly ["waiting", "updating", "restarting", "done", "failed", "cancelled"]>;
22196
+ readonly requestedBy: Schema.String;
22197
+ readonly startedAt: Schema.String;
22198
+ readonly waitingTurns: Schema.Number;
22199
+ readonly waitingSince: Schema.NullOr<Schema.String>;
22200
+ readonly finishedAt: Schema.NullOr<Schema.String>;
22201
+ readonly components: Schema.$Array<Schema.Struct<{
22202
+ readonly name: Schema.String;
22203
+ readonly label: Schema.String;
22204
+ readonly before: Schema.NullOr<Schema.String>;
22205
+ readonly after: Schema.NullOr<Schema.String>;
22206
+ readonly status: Schema.Literals<readonly ["pending", "running", "updated", "current", "skipped", "failed"]>;
22207
+ readonly detail: Schema.NullOr<Schema.String>;
22208
+ }>>;
22209
+ }>>;
22210
+ }>;
22211
+ //#endregion
22212
+ //#region src/color-theme.d.ts
22213
+ type ColorThemeType = "light" | "dark";
22214
+ /** The 21 keys xterm.js needs: background/foreground/cursor state plus the 16 ANSI colors. */
22215
+ interface TerminalPalette {
22216
+ background: string;
22217
+ foreground: string;
22218
+ cursor: string;
22219
+ cursorAccent: string;
22220
+ selectionBackground: string;
22221
+ black: string;
22222
+ red: string;
22223
+ green: string;
22224
+ yellow: string;
22225
+ blue: string;
22226
+ magenta: string;
22227
+ cyan: string;
22228
+ white: string;
22229
+ brightBlack: string;
22230
+ brightRed: string;
22231
+ brightGreen: string;
22232
+ brightYellow: string;
22233
+ brightBlue: string;
22234
+ brightMagenta: string;
22235
+ brightCyan: string;
22236
+ brightWhite: string;
22237
+ }
22238
+ /** The documented subset of dashboard UI tokens a theme may override. Signal/state tokens are never in this list. */
22239
+ interface ColorThemeUi {
22240
+ background?: string;
22241
+ surface?: string;
22242
+ /** Modal/dialog surface (PAN-4755). */
22243
+ overlay?: string;
22244
+ border?: string;
22245
+ foreground?: string;
22246
+ muted?: string;
22247
+ accent?: string;
22248
+ }
22249
+ interface TokenColorSettings {
22250
+ foreground?: string;
22251
+ background?: string;
22252
+ fontStyle?: string;
22253
+ }
22254
+ interface TokenColorEntry {
22255
+ scope?: string | string[];
22256
+ settings: TokenColorSettings;
22257
+ }
22258
+ interface ColorThemeSyntax {
22259
+ colors?: {
22260
+ "editor.background"?: string;
22261
+ "editor.foreground"?: string;
22262
+ };
22263
+ tokenColors: TokenColorEntry[];
22264
+ }
22265
+ interface ColorThemeSource {
22266
+ kind: "vscode-import";
22267
+ fileName: string;
22268
+ importedAt: string;
22269
+ }
22270
+ /** The theme as it lives on disk / is sent in a save request: no id, no builtin flag. */
22271
+ interface ColorThemeFile {
22272
+ name: string;
22273
+ type: ColorThemeType;
22274
+ terminal?: Partial<TerminalPalette>;
22275
+ syntax?: ColorThemeSyntax;
22276
+ ui?: ColorThemeUi;
22277
+ source?: ColorThemeSource;
22278
+ }
22279
+ /** The theme as the wire and the store hand it back: the file fields plus id and builtin. */
22280
+ interface ColorTheme extends ColorThemeFile {
22281
+ id: string;
22282
+ builtin: boolean;
22283
+ }
22284
+ interface ColorThemesListResponse {
22285
+ themes: ColorTheme[];
22286
+ selection: {
22287
+ light: string;
22288
+ dark: string;
22289
+ };
22290
+ warnings: string[];
22291
+ }
22292
+ interface ColorThemeImportPreviewResponse {
22293
+ themes: ColorTheme[];
22294
+ warnings: string[];
22295
+ }
22296
+ declare const COLOR_THEME_ID_RE: RegExp;
22297
+ declare const RESERVED_COLOR_THEME_IDS: readonly string[];
22298
+ declare const BUILTIN_COLOR_THEMES: Readonly<Record<"overdeck-dark" | "overdeck-light", ColorTheme>>;
22299
+ declare function builtinFor(type: ColorThemeType): ColorTheme;
22300
+ /** Expands "#rgb" to "#rrggbb" and drops an alpha channel, lowercased, so xterm and tmux render the same opaque color. */
22301
+ declare function toOpaqueHex(hex: string): string;
22302
+ /** WCAG-contrast-based readable text color for a background hex: whichever of black/white has the higher contrast ratio. */
22303
+ declare function readableForeground(hex: string): string;
22304
+ /** Lowercase slug: runs of non-[a-z0-9] become "-", trimmed, capped at 64 chars, "theme" if empty. */
22305
+ declare function slugifyThemeId(name: string): string;
22306
+ /** The built-in palette for the theme's type, overlaid with the theme's own terminal colors. */
22307
+ declare function effectiveTerminalPalette(theme: {
22308
+ type: ColorThemeType;
22309
+ terminal?: Partial<TerminalPalette>;
22310
+ }): TerminalPalette;
22311
+ /**
22312
+ * Validates and sanitizes a raw theme. An invalid color or unknown key is
22313
+ * dropped with a warning naming it — never an error. A missing/invalid
22314
+ * `name` or `type` is an error: there is no sensible default for either.
22315
+ */
22316
+ declare function normalizeColorTheme(raw: unknown, id: string): {
22317
+ theme: ColorTheme;
22318
+ warnings: string[];
22319
+ } | {
22320
+ errors: string[];
22321
+ };
22322
+ //#endregion
22323
+ //#region src/conversation-schedule-presets.d.ts
22324
+ /**
22325
+ * PAN-4657: schedule preset compiler shared with the dashboard, moved out of
22326
+ * `src/lib/overdeck/conversation-schedule-recurrence.ts` (PAN-4640) so the
22327
+ * frontend can compile a preset to a cron expression without importing
22328
+ * server-side recurrence validation.
22329
+ */
22330
+ type SchedulePreset = {
22331
+ kind: 'hourly';
22332
+ } | {
22333
+ kind: 'daily';
22334
+ time: string;
22335
+ } | {
22336
+ kind: 'weekdays';
22337
+ time: string;
22338
+ } | {
22339
+ kind: 'weekly';
22340
+ day: string;
22341
+ time: string;
22342
+ };
22343
+ declare const SCHEDULE_PRESET_DAYS: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
22344
+ declare function presetToCron(preset: SchedulePreset): string;
22345
+ //#endregion
22346
+ 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, 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, 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, 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, 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, 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, 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 };
21218
22347
  //# sourceMappingURL=index.d.ts.map