@bobannomi/app-host 0.1.1 → 0.2.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.
@@ -201,6 +201,8 @@ declare const APP_HOST_ERROR_RETRY: {
201
201
  readonly resource_revision_conflict: "query";
202
202
  readonly request_conflict: "never";
203
203
  readonly cursor_stale: "query";
204
+ readonly model_provider_not_configured: "never";
205
+ readonly model_not_configured: "never";
204
206
  };
205
207
  type AppHostErrorCode = keyof typeof APP_HOST_ERROR_RETRY;
206
208
  type AppHostRetry = "safe" | "never" | "query";
@@ -229,25 +231,6 @@ declare class AppHostError extends Error {
229
231
  });
230
232
  }
231
233
 
232
- interface ServiceStatus {
233
- state: "absent" | "unauthorized" | "stopped" | "starting" | "recovering" | "ready" | "failed";
234
- reason?: "dependency_missing" | "service_start_failed" | "service_unavailable" | "result_unknown" | "incompatible" | "revoked";
235
- instanceId?: string;
236
- apiVersion?: string;
237
- }
238
- interface ServiceWork {
239
- requestId: string;
240
- state: ServiceWorkState;
241
- updatedAt: string;
242
- result?: JsonValue;
243
- error?: JsonValue;
244
- }
245
- interface ServiceConnectionDescriptor {
246
- connectionId: string;
247
- baseUrl: string;
248
- apiVersion: string;
249
- }
250
-
251
234
  declare const APP_HOST_FEATURES: readonly ["fetch-v1", "fetch-inline-body-v1", "fetch-target-close-v1", "service-v1", "extended-errors-v1", "workspace-v1", "session-resources-v1", "session-controls-v1", "conversation-creation-session-v1", "trusted-desktop-v1", "attachments-v1", "auxiliary-sessions-v1", "system-ui-v1", "lifecycle-v1", "commands-v1", "resource-catalog-v1", "file-content-v1", "window-chrome-v1", "window-updates-v1", "window-update-check-v1", "embedded-browser-v1", "browser-binding-invalidation-v1", "browser-capture-preview-v1"];
252
235
  type AppHostFeature = (typeof APP_HOST_FEATURES)[number];
253
236
  declare const FETCH_CHUNK_BYTES: number;
@@ -315,167 +298,6 @@ declare function isPageFetchFrame(value: unknown): value is PageFetchFrame;
315
298
  /** This URL is only an opaque document-local descriptor; it is never fetched over a network. */
316
299
  declare function pageFetchPath(baseUrl: string, input: string): string;
317
300
 
318
- interface ServiceContext {
319
- protocolVersion: 1;
320
- registrationId: string;
321
- instanceId: string;
322
- dataScopeId: string;
323
- scope: {
324
- appId: string;
325
- installationId: string;
326
- contentDigest: string;
327
- };
328
- installationRevision: number;
329
- phase: "starting" | "ready";
330
- }
331
- interface ServiceInvocation {
332
- invocationId: string;
333
- dataScopeId: string;
334
- sessionId: string;
335
- runId: string;
336
- inputId?: string;
337
- workspaceId?: string;
338
- executionRoot?: string;
339
- privateSessionId?: string;
340
- }
341
- interface CreateWorktree {
342
- requestId: string;
343
- workspaceId: string;
344
- expectedHead: string;
345
- branch: string;
346
- }
347
- interface WorktreeQuery {
348
- requestId: string;
349
- original: Omit<CreateWorktree, "requestId">;
350
- }
351
- interface WorktreeReceipt {
352
- requestId: string;
353
- state: "accepted" | "completed" | "failed" | "unknown";
354
- result?: {
355
- executionRoot: string;
356
- workspaceId: string;
357
- branch: string;
358
- sourceHead: string;
359
- };
360
- }
361
- interface RootReleaseReceipt {
362
- requestId: string;
363
- executionRoot: string;
364
- state: "released" | "retained-dirty" | "in-use" | "unknown";
365
- }
366
- interface GitStatus {
367
- root: string;
368
- commonDir: string;
369
- head: string;
370
- branch: string;
371
- changes: string[];
372
- }
373
- type Entry$1<P, R> = {
374
- params: P;
375
- result: R;
376
- };
377
- interface ServiceHostMethodMap {
378
- "secrets.get": Entry$1<{
379
- key: string;
380
- }, string | null>;
381
- "secrets.set": Entry$1<{
382
- key: string;
383
- value: string;
384
- }, {
385
- stored: true;
386
- }>;
387
- "secrets.delete": Entry$1<{
388
- key: string;
389
- }, {
390
- deleted: true;
391
- }>;
392
- "context.get": Entry$1<Record<string, never>, ServiceContext>;
393
- "context.resolveInvocation": Entry$1<{
394
- ticket: string;
395
- }, ServiceInvocation>;
396
- "agent.listModels": Entry$1<Record<string, never>, {
397
- id: string;
398
- name: string;
399
- }[]>;
400
- "agent.getConnection": Entry$1<{
401
- workspaceId?: string;
402
- executionRoot?: string;
403
- privateSessionId?: string;
404
- }, {
405
- connectionId: string;
406
- baseUrl: string;
407
- }>;
408
- "agent.resolveSkills": Entry$1<{
409
- skillIds: string[];
410
- }, {
411
- type: "skill";
412
- name: string;
413
- path: string;
414
- }[]>;
415
- "sessions.getConnection": Entry$1<{
416
- dataScopeId: string;
417
- sessionId: string;
418
- }, {
419
- connectionId: string;
420
- baseUrl: string;
421
- }>;
422
- "workspace.gitStatus": Entry$1<{
423
- workspaceId: string;
424
- }, GitStatus>;
425
- "workspace.createTaskWorktree": Entry$1<CreateWorktree, WorktreeReceipt>;
426
- "workspace.getWorktree": Entry$1<WorktreeQuery, WorktreeReceipt | null>;
427
- "workspace.releaseExecutionRoot": Entry$1<{
428
- requestId: string;
429
- workspaceId: string;
430
- executionRoot: string;
431
- }, RootReleaseReceipt>;
432
- "work.list": Entry$1<Record<string, never>, ServiceWork[]>;
433
- "work.get": Entry$1<{
434
- requestId: string;
435
- }, ServiceWork | null>;
436
- }
437
- type ServiceHostMethod = keyof ServiceHostMethodMap;
438
- declare const SERVICE_HOST_METHODS: readonly ["secrets.get", "secrets.set", "secrets.delete", "context.get", "context.resolveInvocation", "agent.listModels", "agent.getConnection", "agent.resolveSkills", "sessions.getConnection", "workspace.gitStatus", "workspace.createTaskWorktree", "workspace.getWorktree", "workspace.releaseExecutionRoot", "work.list", "work.get"];
439
- declare const SERVICE_HOST_MAX_FRAME_BYTES: number;
440
- declare const SERVICE_HOST_MAX_PENDING = 64;
441
- declare const validServiceContext: (v: unknown) => v is ServiceContext;
442
- declare function validServiceHostInput(method: ServiceHostMethod, v: unknown): boolean;
443
- declare function validServiceHostResult(method: ServiceHostMethod, v: unknown): boolean;
444
- type ServiceHostFrame = PageFetchFrame | {
445
- protocol: 1;
446
- type: "service-host-connect";
447
- id: string;
448
- } | {
449
- protocol: 1;
450
- type: "service-host-ready";
451
- id: string;
452
- context: ServiceContext;
453
- } | {
454
- protocol: 1;
455
- type: "service-host-context";
456
- context: ServiceContext;
457
- } | {
458
- protocol: 1;
459
- type: "service-host-request";
460
- id: string;
461
- method: ServiceHostMethod;
462
- params: ServiceHostMethodMap[ServiceHostMethod]["params"];
463
- } | ({
464
- protocol: 1;
465
- type: "service-host-response";
466
- id: string;
467
- } & ({
468
- ok: true;
469
- value: unknown;
470
- } | {
471
- ok: false;
472
- error: AppHostErrorInfo;
473
- })) | {
474
- protocol: 1;
475
- type: "service-host-close";
476
- };
477
- declare function isServiceHostFrame(v: unknown): v is ServiceHostFrame;
478
-
479
301
  interface AgentApiRoute {
480
302
  readonly id: string;
481
303
  }
@@ -512,7 +334,6 @@ interface SessionConfigurationInput {
512
334
  pluginAutoSelectionEnabled?: boolean;
513
335
  activePluginId?: string | null;
514
336
  pluginIds?: string[];
515
- serviceBindings?: string[];
516
337
  memory?: {
517
338
  enabled: boolean;
518
339
  };
@@ -605,20 +426,25 @@ interface SessionRecord {
605
426
  archivedAt?: number;
606
427
  }
607
428
 
608
- interface WorkspaceConversationCreation {
429
+ interface ConversationCreationOptions {
609
430
  dataScopeId: string;
610
431
  requestId: string;
611
432
  sessionId: string;
612
- workspaceId?: string;
613
- outsideProject?: boolean;
614
- taskLocation: "current" | "worktree";
615
433
  configuration: SessionConfigurationInput;
616
434
  preparationRevision?: string;
617
435
  }
436
+ type WorkspaceConversationCreation = ConversationCreationOptions & ({
437
+ workspaceId: string;
438
+ outsideProject?: never;
439
+ taskLocation: "current" | "worktree";
440
+ } | {
441
+ workspaceId?: never;
442
+ outsideProject: true;
443
+ taskLocation: "current";
444
+ });
618
445
  interface WorkspaceConversationResult extends SessionCreationReceipt {
619
446
  session?: SessionRecord;
620
447
  operationState?: "prepared" | "running" | "completed" | "failed" | "unknown";
621
- indexBindingPending?: true;
622
448
  workspaceId?: string;
623
449
  executionRoot?: string;
624
450
  privateSessionId?: string;
@@ -669,7 +495,6 @@ interface SessionControls {
669
495
  efforts: ControlOption[];
670
496
  workModes: ControlOption[];
671
497
  permissionModes?: ControlOption[];
672
- appServiceBindings?: ControlOption[];
673
498
  skills: (ControlOption & {
674
499
  path: string;
675
500
  source?: string;
@@ -715,13 +540,6 @@ interface SessionControlMethodMap {
715
540
  params: WorkspaceConversationCreation;
716
541
  result: WorkspaceConversationResult;
717
542
  };
718
- "sessions.bindConversationIndex": {
719
- params: {
720
- original: WorkspaceConversationCreation;
721
- dataScopeId: string;
722
- };
723
- result: WorkspaceConversationResult;
724
- };
725
543
  "sessions.getConversationCreationResult": {
726
544
  params: WorkspaceConversationCreation;
727
545
  result: WorkspaceConversationResult | null;
@@ -744,6 +562,25 @@ interface SessionControlMethodMap {
744
562
  };
745
563
  }
746
564
 
565
+ interface ServiceStatus {
566
+ state: "absent" | "unauthorized" | "stopped" | "starting" | "recovering" | "ready" | "failed";
567
+ reason?: "dependency_missing" | "service_start_failed" | "service_unavailable" | "result_unknown" | "incompatible" | "revoked";
568
+ instanceId?: string;
569
+ apiVersion?: string;
570
+ }
571
+ interface ServiceWork {
572
+ requestId: string;
573
+ state: ServiceWorkState;
574
+ updatedAt: string;
575
+ result?: JsonValue;
576
+ error?: JsonValue;
577
+ }
578
+ interface ServiceConnectionDescriptor {
579
+ connectionId: string;
580
+ baseUrl: string;
581
+ apiVersion: string;
582
+ }
583
+
747
584
  interface WorkspaceRef {
748
585
  id: string;
749
586
  displayName: string;
@@ -810,7 +647,7 @@ declare function createResourceCatalogApi(rpc: {
810
647
  }) => Promise<WorkspaceDirectoryPage>;
811
648
  };
812
649
 
813
- declare const CONVERSATION_PREPARATION_METHODS: readonly ["sessions.createConversation", "sessions.getConversationCreationResult", "sessions.bindConversationIndex"];
650
+ declare const CONVERSATION_PREPARATION_METHODS: readonly ["sessions.createConversation", "sessions.getConversationCreationResult"];
814
651
  type ConversationPreparationMethod = (typeof CONVERSATION_PREPARATION_METHODS)[number];
815
652
  type ConversationPreparationMethodMap = Pick<SessionControlMethodMap, ConversationPreparationMethod>;
816
653
  declare function isConversationPreparationMethod(method: string): method is ConversationPreparationMethod;
@@ -852,7 +689,7 @@ interface DesktopTarget {
852
689
  root?: DesktopRoot;
853
690
  sessionId?: string;
854
691
  }
855
- type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch" | "git.createTaskWorktree";
692
+ type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch";
856
693
  interface WorkspaceOperation {
857
694
  requestId: string;
858
695
  kind: WorkspaceOperationKind;
@@ -868,6 +705,21 @@ interface WorkspaceOperationOriginal {
868
705
  kind: WorkspaceOperationKind;
869
706
  body: JsonValue;
870
707
  }
708
+ interface FileOperationOriginal {
709
+ kind: "files.writeText";
710
+ body: {
711
+ path: string;
712
+ expectedSha256: string;
713
+ text: string;
714
+ };
715
+ }
716
+ interface GitOperationOriginal {
717
+ kind: "git.switchBranch" | "git.createBranch";
718
+ body: {
719
+ expectedHead: string;
720
+ branch: string;
721
+ };
722
+ }
871
723
  interface BindDesktopTarget {
872
724
  directory?: string;
873
725
  workspaceId?: string;
@@ -1149,7 +1001,7 @@ interface PluginAppCatalog {
1149
1001
  }[];
1150
1002
  }[];
1151
1003
  }
1152
- type Entry<P, R> = {
1004
+ type Entry$1<P, R> = {
1153
1005
  params: P;
1154
1006
  result: R;
1155
1007
  };
@@ -1159,17 +1011,21 @@ type Target = {
1159
1011
  type Mount = Target & {
1160
1012
  mountId: string;
1161
1013
  };
1162
- type Action = Mount & {
1014
+ type Action$1 = Mount & {
1163
1015
  requestId: string;
1164
1016
  expectedRevision: number;
1165
1017
  source: PluginAppSource;
1166
1018
  };
1019
+ type OperationQuery<Original> = Target & {
1020
+ requestId: string;
1021
+ original: Original;
1022
+ };
1167
1023
  interface DesktopMethodMap {
1168
- "desktop.bindTarget": Entry<Omit<BindDesktopTarget, "connection"> & {
1024
+ "desktop.bindTarget": Entry$1<Omit<BindDesktopTarget, "connection"> & {
1169
1025
  connectionId?: string;
1170
1026
  }, DesktopTarget>;
1171
- "desktop.releaseTarget": Entry<Target, void>;
1172
- "desktop.files.listFiles": Entry<Target & {
1027
+ "desktop.releaseTarget": Entry$1<Target, void>;
1028
+ "desktop.files.listFiles": Entry$1<Target & {
1173
1029
  directory?: string;
1174
1030
  recursive?: boolean;
1175
1031
  }, {
@@ -1179,71 +1035,65 @@ interface DesktopMethodMap {
1179
1035
  kind: "file" | "directory";
1180
1036
  }[];
1181
1037
  }>;
1182
- "desktop.files.search": Entry<Target & {
1038
+ "desktop.files.search": Entry$1<Target & {
1183
1039
  query: string;
1184
1040
  directory?: string;
1185
1041
  limit?: number;
1186
1042
  }, DesktopSearch>;
1187
- "desktop.files.openRead": Entry<Target & {
1043
+ "desktop.files.openRead": Entry$1<Target & {
1188
1044
  path: string;
1189
1045
  }, {
1190
1046
  connectionId: string;
1191
1047
  baseUrl: string;
1192
1048
  }>;
1193
- "desktop.files.readText": Entry<Target & {
1049
+ "desktop.files.readText": Entry$1<Target & {
1194
1050
  path: string;
1195
1051
  }, DesktopText>;
1196
- "desktop.files.writeText": Entry<Target & {
1197
- requestId: string;
1198
- path: string;
1199
- expectedSha256: string;
1200
- text: string;
1201
- }, WorkspaceOperation>;
1202
- "desktop.files.getOperation": Entry<Target & {
1052
+ "desktop.files.writeText": Entry$1<Target & {
1203
1053
  requestId: string;
1204
- original: WorkspaceOperationOriginal;
1205
- }, WorkspaceOperation | null>;
1206
- "desktop.files.revealPath": Entry<Target & {
1054
+ } & FileOperationOriginal["body"], WorkspaceOperation>;
1055
+ "desktop.files.getOperation": Entry$1<OperationQuery<WorkspaceOperationOriginal>, WorkspaceOperation | null>;
1056
+ "desktop.files.revealPath": Entry$1<Target & {
1207
1057
  path: string;
1208
1058
  }, void>;
1209
- "desktop.files.listOpeners": Entry<Target, DesktopOpener[]>;
1210
- "desktop.files.openWith": Entry<Target & {
1059
+ "desktop.files.listOpeners": Entry$1<Target, DesktopOpener[]>;
1060
+ "desktop.files.openWith": Entry$1<Target & {
1211
1061
  path: string;
1212
1062
  openerId: string;
1213
1063
  }, void>;
1214
- "desktop.clipboard.readText": Entry<Target, string>;
1215
- "desktop.clipboard.writeText": Entry<Target & {
1064
+ "desktop.clipboard.readText": Entry$1<Target, string>;
1065
+ "desktop.clipboard.writeText": Entry$1<Target & {
1216
1066
  text: string;
1217
1067
  }, void>;
1218
- "desktop.clipboard.showTextMenu": Entry<Target & {
1068
+ "desktop.clipboard.showTextMenu": Entry$1<Target & {
1219
1069
  editable: boolean;
1220
1070
  hasSelection: boolean;
1221
1071
  }, "copy" | "select-all" | null>;
1222
- "desktop.windows.openExternal": Entry<Target & {
1072
+ "desktop.windows.openExternal": Entry$1<Target & {
1223
1073
  url: string;
1224
1074
  }, void>;
1225
- "desktop.windows.getZoom": Entry<Target, {
1075
+ "desktop.windows.getZoom": Entry$1<Target, {
1226
1076
  factor: number;
1227
1077
  }>;
1228
- "desktop.windows.setZoom": Entry<Target & {
1078
+ "desktop.windows.setZoom": Entry$1<Target & {
1229
1079
  factor: number;
1230
1080
  }, {
1231
1081
  factor: number;
1232
1082
  }>;
1233
- "desktop.windows.edit": Entry<Target & {
1083
+ "desktop.windows.edit": Entry$1<Target & {
1234
1084
  action: "undo" | "redo" | "cut" | "copy" | "paste" | "selectAll";
1235
1085
  }, void>;
1236
- "desktop.git.status": Entry<Target, {
1086
+ "desktop.git.status": Entry$1<Target, {
1237
1087
  root: string;
1238
1088
  commonDir: string;
1239
1089
  head: string;
1240
1090
  branch: string;
1241
1091
  changes: string[];
1242
1092
  }>;
1243
- "desktop.git.listBranches": Entry<Target, {
1093
+ "desktop.git.listBranches": Entry$1<Target, {
1244
1094
  branches: string[];
1245
1095
  }>;
1246
- "desktop.git.changes": Entry<Target & {
1096
+ "desktop.git.changes": Entry$1<Target & {
1247
1097
  range?: "uncommitted" | "working" | "staged";
1248
1098
  ignoreWhitespace?: boolean;
1249
1099
  }, {
@@ -1251,7 +1101,7 @@ interface DesktopMethodMap {
1251
1101
  totalAdditions: number;
1252
1102
  totalDeletions: number;
1253
1103
  }>;
1254
- "desktop.git.diff": Entry<Target & {
1104
+ "desktop.git.diff": Entry$1<Target & {
1255
1105
  path?: string;
1256
1106
  base?: string;
1257
1107
  head?: string;
@@ -1261,130 +1111,121 @@ interface DesktopMethodMap {
1261
1111
  text: string;
1262
1112
  truncated: boolean;
1263
1113
  }>;
1264
- "desktop.git.switchBranch": Entry<Target & {
1114
+ "desktop.git.switchBranch": Entry$1<Target & {
1265
1115
  requestId: string;
1266
- expectedHead: string;
1267
- branch: string;
1268
- }, WorkspaceOperation>;
1269
- "desktop.git.createBranch": Entry<Target & {
1270
- requestId: string;
1271
- expectedHead: string;
1272
- branch: string;
1273
- }, WorkspaceOperation>;
1274
- "desktop.git.createTaskWorktree": Entry<Target & {
1116
+ } & GitOperationOriginal["body"], WorkspaceOperation>;
1117
+ "desktop.git.createBranch": Entry$1<Target & {
1275
1118
  requestId: string;
1276
- expectedHead: string;
1277
- branch: string;
1278
- }, WorkspaceOperation>;
1279
- "desktop.terminals.create": Entry<Target & {
1119
+ } & GitOperationOriginal["body"], WorkspaceOperation>;
1120
+ "desktop.terminals.create": Entry$1<Target & {
1280
1121
  requestId: string;
1281
1122
  cols: number;
1282
1123
  rows: number;
1283
1124
  name?: string;
1284
1125
  }, DesktopTerminal>;
1285
- "desktop.terminals.list": Entry<Target, DesktopTerminalInfo[]>;
1286
- "desktop.terminals.restart": Entry<Target & {
1126
+ "desktop.terminals.list": Entry$1<Target, DesktopTerminalInfo[]>;
1127
+ "desktop.terminals.restart": Entry$1<Target & {
1287
1128
  terminalId: string;
1288
1129
  requestId: string;
1289
1130
  }, DesktopTerminal>;
1290
- "desktop.terminals.getRequest": Entry<Target & {
1131
+ "desktop.terminals.getRequest": Entry$1<Target & {
1291
1132
  requestId: string;
1292
1133
  original: DesktopTerminalRequestOriginal;
1293
1134
  }, DesktopTerminalRequestReceipt>;
1294
- "desktop.terminals.snapshot": Entry<Target & {
1135
+ "desktop.terminals.snapshot": Entry$1<Target & {
1295
1136
  terminalId: string;
1296
1137
  after?: number;
1297
1138
  maxChars?: number;
1298
1139
  }, DesktopTerminalSnapshot>;
1299
- "desktop.terminals.subscribe": Entry<Target & {
1140
+ "desktop.terminals.subscribe": Entry$1<Target & {
1300
1141
  terminalId: string;
1301
1142
  }, void>;
1302
- "desktop.terminals.write": Entry<Target & {
1143
+ "desktop.terminals.write": Entry$1<Target & {
1303
1144
  terminalId: string;
1304
1145
  data: string;
1305
1146
  }, void>;
1306
- "desktop.terminals.resize": Entry<Target & {
1147
+ "desktop.terminals.resize": Entry$1<Target & {
1307
1148
  terminalId: string;
1308
1149
  cols: number;
1309
1150
  rows: number;
1310
1151
  }, void>;
1311
- "desktop.terminals.close": Entry<Target & {
1152
+ "desktop.terminals.close": Entry$1<Target & {
1312
1153
  terminalId?: string;
1313
1154
  requestId?: string;
1314
1155
  }, void>;
1315
- "desktop.windows.open": Entry<Target & {
1156
+ "desktop.windows.open": Entry$1<Target & {
1316
1157
  requestId: string;
1317
1158
  mode: "application" | "content";
1318
1159
  url: string;
1319
1160
  }, DesktopWindow>;
1320
- "desktop.windows.adopt": Entry<Target & {
1161
+ "desktop.windows.adopt": Entry$1<Target & {
1321
1162
  requestId: string;
1322
1163
  windowId: number;
1323
1164
  }, DesktopWindow>;
1324
- "desktop.windows.get": Entry<Target & {
1165
+ "desktop.windows.get": Entry$1<Target & {
1325
1166
  requestId: string;
1326
1167
  }, DesktopWindow | null>;
1327
- "desktop.windows.close": Entry<Target & {
1168
+ "desktop.windows.close": Entry$1<Target & {
1328
1169
  requestId: string;
1329
1170
  }, DesktopWindow>;
1330
- "desktop.windows.setAlwaysOnTop": Entry<Target & {
1171
+ "desktop.windows.setAlwaysOnTop": Entry$1<Target & {
1331
1172
  requestId?: string;
1332
1173
  alwaysOnTop: boolean;
1333
1174
  }, {
1334
1175
  alwaysOnTop: boolean;
1335
1176
  }>;
1336
- "desktop.windows.focus": Entry<Target & {
1177
+ "desktop.windows.focus": Entry$1<Target & {
1337
1178
  requestId?: string;
1338
1179
  }, {
1339
1180
  focused: boolean;
1340
1181
  visible: boolean;
1341
1182
  minimized: boolean;
1342
1183
  }>;
1343
- "desktop.browser.register": Entry<Target & {
1184
+ "desktop.browser.register": Entry$1<Target & {
1344
1185
  tabId: string;
1345
1186
  guestId: number;
1346
1187
  }, BrowserAnnotationSnapshot>;
1347
- "desktop.browser.openLocalFile": Entry<Target & {
1188
+ "desktop.browser.openLocalFile": Entry$1<Target & {
1348
1189
  path: string;
1349
1190
  }, {
1350
1191
  url: string;
1351
1192
  }>;
1352
- "desktop.browser.unregister": Entry<Target & {
1193
+ "desktop.browser.unregister": Entry$1<Target & {
1353
1194
  tabId: string;
1354
1195
  }, void>;
1355
- "desktop.browser.setActive": Entry<Target & {
1196
+ "desktop.browser.setActive": Entry$1<Target & {
1356
1197
  tabId: string;
1357
1198
  }, void>;
1358
- "desktop.browser.readAnnotations": Entry<BrowserPage, BrowserAnnotationSnapshot>;
1359
- "desktop.browser.setAnnotationMode": Entry<BrowserPage & {
1199
+ "desktop.browser.readAnnotations": Entry$1<BrowserPage, BrowserAnnotationSnapshot>;
1200
+ "desktop.browser.setAnnotationMode": Entry$1<BrowserPage & {
1360
1201
  mode: AnnotationMode;
1361
1202
  }, BrowserAnnotationSnapshot>;
1362
- "desktop.browser.addAnnotation": Entry<BrowserPage & {
1203
+ "desktop.browser.addAnnotation": Entry$1<BrowserPage & {
1363
1204
  selectionId: string;
1364
1205
  comment: string;
1365
1206
  }, BrowserAnnotationSnapshot>;
1366
- "desktop.browser.focusAnnotation": Entry<BrowserPage & {
1207
+ "desktop.browser.focusAnnotation": Entry$1<BrowserPage & {
1367
1208
  annotationId: string;
1368
1209
  }, BrowserAnnotationSnapshot>;
1369
- "desktop.browser.removeAnnotation": Entry<BrowserPage & {
1210
+ "desktop.browser.removeAnnotation": Entry$1<BrowserPage & {
1370
1211
  annotationId: string;
1371
1212
  }, BrowserAnnotationSnapshot>;
1372
- "desktop.browser.capturePreview": Entry<BrowserPage, {
1213
+ "desktop.browser.capturePreview": Entry$1<BrowserPage, {
1373
1214
  bytes: Uint8Array<ArrayBuffer>;
1374
1215
  width: number;
1375
1216
  height: number;
1376
1217
  }>;
1377
- "desktop.pluginApps.catalog": Entry<Target, PluginAppCatalog>;
1378
- "desktop.pluginApps.composerContext": Entry<Target & {
1218
+ "desktop.pluginApps.catalog": Entry$1<Target, PluginAppCatalog>;
1219
+ "desktop.pluginApps.composerContext": Entry$1<Target & {
1379
1220
  contextIds: string[];
1380
1221
  }, PluginAppComposerContext[]>;
1381
- "desktop.pluginApps.open": Entry<Target & {
1222
+ "desktop.pluginApps.open": Entry$1<Target & {
1382
1223
  requestId: string;
1383
1224
  pluginId: string;
1384
1225
  surfaceId: string;
1385
1226
  expectedRevision?: number;
1386
1227
  }, PluginAppMount>;
1387
- "desktop.pluginApps.openToolResult": Entry<Target & {
1228
+ "desktop.pluginApps.openToolResult": Entry$1<Target & {
1388
1229
  sourcePartId: string;
1389
1230
  }, {
1390
1231
  mounted: PluginAppMount;
@@ -1395,29 +1236,29 @@ interface DesktopMethodMap {
1395
1236
  dataError?: string;
1396
1237
  };
1397
1238
  }>;
1398
- "desktop.pluginApps.mount": Entry<Target & {
1239
+ "desktop.pluginApps.mount": Entry$1<Target & {
1399
1240
  source: PluginAppSource;
1400
1241
  }, PluginAppMount>;
1401
- "desktop.pluginApps.refresh": Entry<Mount, PluginAppHostState>;
1402
- "desktop.pluginApps.rejectMenuOpen": Entry<Mount & {
1242
+ "desktop.pluginApps.refresh": Entry$1<Mount, PluginAppHostState>;
1243
+ "desktop.pluginApps.rejectMenuOpen": Entry$1<Mount & {
1403
1244
  requestId: string;
1404
1245
  menuOpeningRevision: number;
1405
1246
  }, {
1406
1247
  closed: boolean;
1407
1248
  }>;
1408
- "desktop.pluginApps.prepareTool": Entry<Mount & {
1249
+ "desktop.pluginApps.prepareTool": Entry$1<Mount & {
1409
1250
  source: PluginAppSource;
1410
1251
  requestId: string;
1411
1252
  expectedRevision: number;
1412
1253
  name: string;
1413
1254
  arguments: Record<string, JsonValue>;
1414
1255
  }, PluginAppPreparedTool>;
1415
- "desktop.pluginApps.invokeTool": Entry<Action, PluginAppActionResponse | {
1256
+ "desktop.pluginApps.invokeTool": Entry$1<Action$1, PluginAppActionResponse | {
1416
1257
  code: "plugin_app_busy";
1417
1258
  notAccepted: true;
1418
1259
  requestId: string;
1419
1260
  }>;
1420
- "desktop.pluginApps.getAction": Entry<Action | Target & {
1261
+ "desktop.pluginApps.getAction": Entry$1<Action$1 | Target & {
1421
1262
  source: PluginAppSource;
1422
1263
  requestId: string;
1423
1264
  expectedRevision: number;
@@ -1426,70 +1267,82 @@ interface DesktopMethodMap {
1426
1267
  args: Record<string, JsonValue>;
1427
1268
  };
1428
1269
  }, PluginAppActionResponse>;
1429
- "desktop.pluginApps.cancelTool": Entry<Action, void>;
1430
- "desktop.pluginApps.readResource": Entry<Mount & {
1270
+ "desktop.pluginApps.cancelTool": Entry$1<Action$1, void>;
1271
+ "desktop.pluginApps.readResource": Entry$1<Mount & {
1431
1272
  source: PluginAppSource;
1432
1273
  uri: string;
1433
1274
  }, {
1434
1275
  contents: JsonValue[];
1435
1276
  }>;
1436
- "desktop.pluginApps.listResources": Entry<Mount & {
1277
+ "desktop.pluginApps.listResources": Entry$1<Mount & {
1437
1278
  source: PluginAppSource;
1438
1279
  cursor?: string;
1439
1280
  }, {
1440
1281
  resources: JsonValue[];
1441
1282
  nextCursor?: string;
1442
1283
  }>;
1443
- "desktop.pluginApps.listResourceTemplates": Entry<Mount & {
1284
+ "desktop.pluginApps.listResourceTemplates": Entry$1<Mount & {
1444
1285
  source: PluginAppSource;
1445
1286
  cursor?: string;
1446
1287
  }, {
1447
1288
  resourceTemplates: JsonValue[];
1448
1289
  nextCursor?: string;
1449
1290
  }>;
1450
- "desktop.pluginApps.prepareMessage": Entry<Action & {
1291
+ "desktop.pluginApps.prepareMessage": Entry$1<Action$1 & {
1451
1292
  content: JsonValue;
1452
1293
  role: JsonValue;
1453
1294
  }, PluginAppPreparedMessage>;
1454
- "desktop.pluginApps.submitMessage": Entry<Action, PluginAppSubmissionReceipt>;
1455
- "desktop.pluginApps.getMessageSubmission": Entry<Action, PluginAppSubmissionReceipt>;
1456
- "desktop.pluginApps.cancelMessage": Entry<Action, void>;
1457
- "desktop.pluginApps.updateModelContext": Entry<Action & {
1295
+ "desktop.pluginApps.submitMessage": Entry$1<Action$1, PluginAppSubmissionReceipt>;
1296
+ "desktop.pluginApps.getMessageSubmission": Entry$1<Action$1, PluginAppSubmissionReceipt>;
1297
+ "desktop.pluginApps.cancelMessage": Entry$1<Action$1, void>;
1298
+ "desktop.pluginApps.updateModelContext": Entry$1<Action$1 & {
1458
1299
  content?: JsonValue;
1459
1300
  structuredContent?: JsonValue;
1460
1301
  }, PluginAppModelContext>;
1461
- "desktop.pluginApps.release": Entry<Mount, void>;
1462
- "desktop.pluginApps.closePanel": Entry<Mount, void>;
1463
- "desktop.pluginApps.closeApp": Entry<Action, {
1302
+ "desktop.pluginApps.release": Entry$1<Mount, void>;
1303
+ "desktop.pluginApps.closePanel": Entry$1<Mount, void>;
1304
+ "desktop.pluginApps.closeApp": Entry$1<Action$1, {
1464
1305
  app: PluginAppRecord;
1465
1306
  }>;
1466
1307
  }
1467
1308
  type DesktopMethod = keyof DesktopMethodMap;
1309
+ declare const DESKTOP_ADAPTED_METHODS: readonly ["desktop.files.openRead", "desktop.files.getOperation"];
1468
1310
  type ApiGroup<G extends string> = {
1469
- [M in DesktopMethod as M extends `desktop.${G}.${infer N}` ? N : never]: (input: DesktopMethodMap[M]["params"]) => Promise<DesktopMethodMap[M]["result"]>;
1311
+ [M in Exclude<DesktopMethod, (typeof DESKTOP_ADAPTED_METHODS)[number]> as M extends `desktop.${G}.${infer N}` ? N : never]: (input: DesktopMethodMap[M]["params"]) => Promise<DesktopMethodMap[M]["result"]>;
1470
1312
  };
1471
1313
  interface AppHostDesktop {
1472
1314
  bindTarget(input: BindDesktopTarget): Promise<DesktopTarget>;
1473
1315
  releaseTarget(input: Target): Promise<void>;
1474
- files: Omit<ApiGroup<"files">, "openRead"> & {
1475
- readFile(input: {
1476
- targetId: string;
1477
- path: string;
1478
- range?: {
1479
- start: number;
1480
- end?: number;
1481
- };
1482
- }, options?: {
1483
- signal?: AbortSignal;
1484
- }): Promise<Response>;
1485
- };
1316
+ files: AppHostFileOperations;
1486
1317
  clipboard: ApiGroup<"clipboard">;
1487
- git: ApiGroup<"git">;
1488
- terminals: ApiGroup<"terminals">;
1318
+ git: AppHostGitOperations;
1319
+ terminals: AppHostTerminalOperations;
1489
1320
  windows: ApiGroup<"windows">;
1490
1321
  browser: ApiGroup<"browser">;
1491
1322
  pluginApps: ApiGroup<"pluginApps">;
1492
1323
  }
1324
+ interface AppHostFileOperations extends ApiGroup<"files"> {
1325
+ /** Read bytes from a file in the bound desktop target, optionally using a byte range. */
1326
+ readFile(input: {
1327
+ targetId: string;
1328
+ path: string;
1329
+ range?: {
1330
+ start: number;
1331
+ end?: number;
1332
+ };
1333
+ }, options?: {
1334
+ signal?: AbortSignal;
1335
+ }): Promise<Response>;
1336
+ /** Query the original write using the same request ID and original file contents. */
1337
+ getOperation(input: OperationQuery<FileOperationOriginal>): Promise<WorkspaceOperation | null>;
1338
+ }
1339
+ interface AppHostGitOperations extends ApiGroup<"git"> {
1340
+ /** Query the receipt using the original branch operation and request ID. */
1341
+ getOperation(input: OperationQuery<GitOperationOriginal>): Promise<WorkspaceOperation | null>;
1342
+ }
1343
+ /** Interactive terminal operations for an authorized desktop target. */
1344
+ interface AppHostTerminalOperations extends ApiGroup<"terminals"> {
1345
+ }
1493
1346
  declare const validBrowserSnapshot: Check;
1494
1347
  declare const validDesktopTarget: Check;
1495
1348
  declare const validWorkspaceOperation: Check;
@@ -1642,18 +1495,18 @@ interface AuxiliaryMethodMap {
1642
1495
  }
1643
1496
  type AuxiliaryMethod = keyof AuxiliaryMethodMap;
1644
1497
  declare const AUXILIARY_METHODS: readonly ["sessions.getAuxiliaryOptions", "sessions.openAuxiliary", "sessions.getAuxiliary", "sessions.closeAuxiliary"];
1645
- interface AppHostAuxiliarySessions {
1646
- getAuxiliaryOptions(input: {
1498
+ interface AuxiliarySessionsGroup {
1499
+ getOptions(input: {
1647
1500
  connection: AgentConnection;
1648
1501
  sessionId: string;
1649
1502
  }): Promise<AuxiliaryOptions>;
1650
- openAuxiliary(input: AuxiliaryRequest): Promise<{
1503
+ open(input: AuxiliaryRequest): Promise<{
1651
1504
  leaseId: string;
1652
1505
  sessionId: string;
1653
1506
  connection: AgentConnection;
1654
1507
  }>;
1655
- getAuxiliary(input: AuxiliaryRequest): Promise<AuxiliaryReceipt | null>;
1656
- closeAuxiliary(input: AuxiliaryRequest): Promise<AuxiliaryReceipt>;
1508
+ get(input: AuxiliaryRequest): Promise<AuxiliaryReceipt | null>;
1509
+ close(input: AuxiliaryRequest): Promise<AuxiliaryReceipt>;
1657
1510
  }
1658
1511
  declare function isAuxiliaryMethod(method: string): method is AuxiliaryMethod;
1659
1512
  declare function validAuxiliaryInput(method: AuxiliaryMethod, v: unknown): boolean;
@@ -1661,7 +1514,7 @@ declare function validAuxiliaryResult(method: AuxiliaryMethod, v: unknown): bool
1661
1514
  declare function createAppAuxiliarySessionsApi(rpc: {
1662
1515
  requireFeature(): void;
1663
1516
  request<M extends AuxiliaryMethod>(method: M, params: AuxiliaryMethodMap[M]["params"]): Promise<AuxiliaryMethodMap[M]["result"]>;
1664
- }, streams: ConnectionStreams): AppHostAuxiliarySessions;
1517
+ }, streams: ConnectionStreams): AuxiliarySessionsGroup;
1665
1518
 
1666
1519
  /** The extension manager's finite operations. */
1667
1520
  declare const EXTENSION_INPUTS: {
@@ -1713,9 +1566,10 @@ declare const validExtensionResult: (value: unknown) => boolean;
1713
1566
  /** Project records and filesystem locations have separate business identities. */
1714
1567
  interface SystemProject {
1715
1568
  workspaceId: string;
1716
- projectId?: string;
1569
+ projectId: string;
1717
1570
  name: string;
1718
1571
  path: string;
1572
+ rootIdentity?: DesktopRoot["identity"];
1719
1573
  available: boolean;
1720
1574
  lastOpenedAt: number;
1721
1575
  defaultShell?: string;
@@ -1723,6 +1577,7 @@ interface SystemProject {
1723
1577
  interface ProjectSnapshot {
1724
1578
  dataScopeId: string;
1725
1579
  projects: SystemProject[];
1580
+ selectedWorkspaceId?: string;
1726
1581
  }
1727
1582
  type Scope = {
1728
1583
  dataScopeId: string;
@@ -1741,16 +1596,97 @@ type ProjectRequest = {
1741
1596
  shell: string | null;
1742
1597
  } | Project & {
1743
1598
  action: "archive";
1744
- } | Scope & {
1599
+ } | Project & {
1745
1600
  action: "rebind";
1746
- projectId?: string;
1747
- workspaceId: string;
1748
1601
  previousWorkspaceId: string;
1749
- previousPath?: string;
1602
+ expectedPath: string;
1750
1603
  };
1751
1604
  declare function validProjectRequest(value: unknown): value is ProjectRequest;
1752
1605
  declare const validProjectSnapshot: (value: unknown) => value is ProjectSnapshot;
1753
1606
 
1607
+ type Root = {
1608
+ rootPath: string;
1609
+ identity?: {
1610
+ dev: string;
1611
+ ino: string;
1612
+ };
1613
+ };
1614
+ type File = Root & {
1615
+ path: string;
1616
+ };
1617
+ type Write = File & {
1618
+ requestId: string;
1619
+ content: string;
1620
+ originalContent: string;
1621
+ };
1622
+ type Preview = {
1623
+ path: string;
1624
+ name: string;
1625
+ language: string;
1626
+ size: number;
1627
+ binary: boolean;
1628
+ content: string | null;
1629
+ scope: "project" | "extra-root";
1630
+ relativePath: string;
1631
+ rootLabel: string;
1632
+ previewBytes: ArrayBuffer | null;
1633
+ mediaType: "image/avif" | "image/bmp" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | null;
1634
+ imagePreviewError: "image_too_large" | "image_unsupported" | null;
1635
+ rootIdentity?: Root["identity"];
1636
+ documentPreview?: {
1637
+ format: "pdf" | "epub" | "docx" | "xlsx" | "pptx";
1638
+ bytes: ArrayBuffer;
1639
+ };
1640
+ };
1641
+ type Tree = {
1642
+ rootPath: string;
1643
+ entries: {
1644
+ path: string;
1645
+ type: "file" | "directory";
1646
+ size?: number;
1647
+ }[];
1648
+ truncated?: boolean;
1649
+ };
1650
+ type Entry<Input, Result> = {
1651
+ input: Input;
1652
+ result: Result;
1653
+ };
1654
+ type LocalWorkspaceActions = {
1655
+ pick: Entry<{}, Required<Root> & {
1656
+ workspaceId: string;
1657
+ } | null>;
1658
+ list: Entry<Root & {
1659
+ path?: string;
1660
+ }, Tree>;
1661
+ find: Entry<Root & {
1662
+ query: string;
1663
+ }, {
1664
+ files: string[];
1665
+ truncated: boolean;
1666
+ }>;
1667
+ read: Entry<File, Preview>;
1668
+ write: Entry<Write, Preview>;
1669
+ getWrite: Entry<Write, Preview | null>;
1670
+ reveal: Entry<File, void>;
1671
+ openWith: Entry<File & {
1672
+ openerId: string;
1673
+ }, void>;
1674
+ copyPath: Entry<File & {
1675
+ absolute?: boolean;
1676
+ }, void>;
1677
+ listOpeners: Entry<{}, DesktopOpener[]>;
1678
+ webPreview: Entry<File, {
1679
+ url: string;
1680
+ }>;
1681
+ };
1682
+ type Action = keyof LocalWorkspaceActions;
1683
+ type LocalWorkspaceRequest = {
1684
+ [A in Action]: {
1685
+ action: A;
1686
+ } & LocalWorkspaceActions[A]["input"];
1687
+ }[Action];
1688
+ type LocalWorkspaceResult<A extends Action = Action> = LocalWorkspaceActions[A]["result"];
1689
+
1754
1690
  interface CustomModelProviderInput {
1755
1691
  id: string;
1756
1692
  displayName: string;
@@ -1851,6 +1787,8 @@ interface ProviderDefaultsSnapshot {
1851
1787
  }>;
1852
1788
  fastModeAvailable: false;
1853
1789
  fastModeReason: string;
1790
+ /** Present when the caller supplied a proof for its current account gateway. */
1791
+ accountGatewayMatches?: boolean;
1854
1792
  }
1855
1793
  interface ProviderConnectionTestResult {
1856
1794
  status: "verified" | "failed";
@@ -1860,6 +1798,7 @@ interface ProviderConnectionTestResult {
1860
1798
  }
1861
1799
  type ProviderDefaultsRequest = {
1862
1800
  action: "snapshot";
1801
+ accountGatewayProof?: string;
1863
1802
  } | {
1864
1803
  action: "updateModel";
1865
1804
  provider?: string;
@@ -1997,12 +1936,16 @@ type SystemEvent = {
1997
1936
  type: "git-preferences-changed";
1998
1937
  defaultTaskLocation: "current" | "worktree";
1999
1938
  };
2000
- declare const SYSTEM_METHODS: readonly ["system.projects", "system.extensions", "system.modelProviders", "system.providerDefaults", "system.open", "system.getPresentationPreferences", "system.setTheme", "system.setWindowMaterial", "system.copyText", "system.openExternal", "system.navigationReady", "system.completeNavigation"];
1939
+ declare const SYSTEM_METHODS: readonly ["system.projects", "system.workspace", "system.extensions", "system.modelProviders", "system.providerDefaults", "system.open", "system.getPresentationPreferences", "system.setTheme", "system.setWindowMaterial", "system.copyText", "system.openExternal", "system.navigationReady", "system.completeNavigation"];
2001
1940
  interface SystemMethodMap {
2002
1941
  "system.projects": {
2003
1942
  params: ProjectRequest;
2004
1943
  result: ProjectSnapshot;
2005
1944
  };
1945
+ "system.workspace": {
1946
+ params: LocalWorkspaceRequest;
1947
+ result: LocalWorkspaceResult;
1948
+ };
2006
1949
  "system.extensions": {
2007
1950
  params: ExtensionRequest;
2008
1951
  result: unknown;
@@ -2073,6 +2016,10 @@ declare function validSystemResult(method: SystemMethod, value: unknown): boolea
2073
2016
  declare function validSystemEvent(value: unknown): value is SystemEvent;
2074
2017
  interface AppHostSystem {
2075
2018
  projects(input: ProjectRequest): Promise<ProjectSnapshot>;
2019
+ /** Local files for the trusted, built-in workbench. */
2020
+ workspace<A extends LocalWorkspaceRequest["action"]>(input: Extract<LocalWorkspaceRequest, {
2021
+ action: A;
2022
+ }>): Promise<LocalWorkspaceResult<A>>;
2076
2023
  /** Requires the explicit extensions.manage installation capability. */
2077
2024
  extensions(input: ExtensionRequest): Promise<unknown>;
2078
2025
  /** Manages connections for the active built-in workbench. */
@@ -2146,7 +2093,7 @@ declare const APP_HOST_REQUEST_TIMEOUT_MS = 30000;
2146
2093
  declare const APP_HOST_PORT_TIMEOUT_MS = 10000;
2147
2094
  declare const APP_HOST_LOGIN_TIMEOUT_MS = 300000;
2148
2095
  declare const APP_HOST_LOGIN_TRANSPORT_TIMEOUT_MS: number;
2149
- declare const APP_HOST_METHODS: readonly ["connect", "negotiate", "getContext", "storage.get", "storage.set", "storage.delete", "sessions.getConnection", "service.getStatus", "service.getConnection", "service.listWork", "service.getWork", "service.interruptWork", "storage.putFile", "storage.readFile", "storage.deleteFile", "auth.openLogin", "workspace.select", "workspace.getSelection", "workspace.get", "workspace.listFiles", "workspace.readText", "commands.register", "commands.update", "commands.dispose", "workspace.list", "sessions.createConversation", "sessions.getConversationCreationResult", "sessions.bindConversationIndex", ...(keyof DesktopMethodMap)[], "attachments.getConnection", "sessions.getAuxiliaryOptions", "sessions.openAuxiliary", "sessions.getAuxiliary", "sessions.closeAuxiliary", "system.projects", "system.extensions", "system.modelProviders", "system.providerDefaults", "system.open", "system.getPresentationPreferences", "system.setTheme", "system.setWindowMaterial", "system.copyText", "system.openExternal", "system.navigationReady", "system.completeNavigation", "window.getState", "window.checkForUpdates", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
2096
+ declare const APP_HOST_METHODS: readonly ["connect", "negotiate", "getContext", "storage.get", "storage.set", "storage.delete", "sessions.getConnection", "service.getStatus", "service.getConnection", "service.listWork", "service.getWork", "service.interruptWork", "storage.putFile", "storage.readFile", "storage.deleteFile", "auth.openLogin", "workspace.select", "workspace.getSelection", "workspace.get", "workspace.listFiles", "workspace.readText", "commands.register", "commands.update", "commands.dispose", "workspace.list", "sessions.createConversation", "sessions.getConversationCreationResult", ...(keyof DesktopMethodMap)[], "attachments.getConnection", "sessions.getAuxiliaryOptions", "sessions.openAuxiliary", "sessions.getAuxiliary", "sessions.closeAuxiliary", "system.projects", "system.workspace", "system.extensions", "system.modelProviders", "system.providerDefaults", "system.open", "system.getPresentationPreferences", "system.setTheme", "system.setWindowMaterial", "system.copyText", "system.openExternal", "system.navigationReady", "system.completeNavigation", "window.getState", "window.checkForUpdates", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
2150
2097
 
2151
2098
  interface AppContext {
2152
2099
  readonly appId: string;
@@ -2367,5 +2314,5 @@ interface AppHostPortMessage {
2367
2314
  protocol: 1;
2368
2315
  }
2369
2316
 
2370
- export { APP_HOST_ERROR_RETRY, APP_HOST_FEATURES, APP_HOST_LOGIN_TIMEOUT_MS, APP_HOST_LOGIN_TRANSPORT_TIMEOUT_MS, APP_HOST_MAX_PAYLOAD_BYTES, APP_HOST_MAX_PENDING, APP_HOST_METHODS, APP_HOST_PORT, APP_HOST_PORT_TIMEOUT_MS, APP_HOST_PROTOCOL, APP_HOST_READY, APP_HOST_REQUEST_TIMEOUT_MS, ATTACHMENTS_METHODS, AUXILIARY_METHODS, AppHostError, BROWSER_CAPTURE_PREVIEW_MAX_BYTES, COMMANDS_METHODS, DESKTOP_METHODS, EXTENSION_INPUTS, FETCH_CHUNK_BYTES, FETCH_HEADERS_TIMEOUT_MS, FETCH_IDLE_TIMEOUT_MS, FETCH_INLINE_BODY_BYTES, FETCH_MAX_STREAMS, FETCH_METADATA_BYTES, FETCH_WINDOW_CHUNKS, HOST_REQUEST_ID, RESOURCE_CATALOG_METHODS, SERVICE_HOST_MAX_FRAME_BYTES, SERVICE_HOST_MAX_PENDING, SERVICE_HOST_METHODS, SYSTEM_METHODS, SYSTEM_SETTINGS_SECTIONS, SYSTEM_SHORTCUT_IDS, WINDOW_METHODS, appHostErrorMessage, canonicalDesktopRequest, createAppAttachmentsApi, createAppAuxiliarySessionsApi, createAppCommandsApi, createAppDesktopApi, createAppSystemApi, createAppWindowApi, createResourceCatalogApi, isAppHostErrorInfo, isAppLifecycleFrame, isAuxiliaryMethod, isCommandsMethod, isConversationPreparationMethod, isDesktopMethod, isPageFetchFrame, isResourceCatalogMethod, isSafeErrorDetails, isServiceHostFrame, isSystemMethod, isWindowMethod, matchAgentApiRoute, normalizeAgentApiPath, pageFetchPath, validAppCommandSnapshot, validAppWindowState, validAttachmentsInput, validAttachmentsResult, validAuxiliaryInput, validAuxiliaryResult, validBrowserSnapshot, validCommandInvocation, validCommandReceipt, validCommandsInput, validConversationPreparationInput, validConversationPreparationResult, validDesktopEvent, validDesktopInput, validDesktopNavigationTarget, validDesktopResult, validDesktopResultForInput, validDesktopTarget, validExtensionRequest, validExtensionResult, validPresentationSnapshot, validProjectRequest, validProjectSnapshot, validResourceCatalogInput, validResourceCatalogResult, validResourceChanged, validServiceContext, validServiceHostInput, validServiceHostResult, validSessionResourceInput, validSessionResourceResult, validSessionSettingsTarget, validSystemEvent, validSystemInput, validSystemResult, validWindowEvent, validWindowInput, validWindowResult, validWorkspaceInput, validWorkspaceOperation, validWorkspaceResult };
2371
- export type { AgentApiRoute, AnnotationMode, AnnotationRect, AnnotationTarget, AppCommandRegistration, AppCommandSnapshot, AppContext, AppHostAttachments, AppHostAuxiliarySessions, AppHostCommands, AppHostDesktop, AppHostErrorCode, AppHostErrorInfo, AppHostEvent, AppHostEventMessage, AppHostFeature, AppHostMethod, AppHostMethodMap, AppHostPortMessage, AppHostReadyMessage, AppHostRequest, AppHostResponse, AppHostRetry, AppHostSystem, AppHostWindow, AppLifecycleFrame, AppUnloadReason, AppWindowMaterialState, AppWindowOpenHostInput, AppWindowStartupResult, AppWindowState, AppWindowUpdateCheckResult, AppWindowUpdateState, AppearancePreferences, AttachmentsMethod, AttachmentsMethodMap, AuxiliaryMethod, AuxiliaryMethodMap, AuxiliaryOptions, AuxiliaryReceipt, AuxiliaryRequest, AuxiliarySelection, AuxiliaryWireRequest, BindDesktopTarget, BrowserAnnotationRecord, BrowserAnnotationSnapshot, BrowserPage, CommandInvocation, CommandReceipt, CommandsMethod, CommandsMethodMap, ConnectParams, ConversationPreparationMethod, ConversationPreparationMethodMap, CreateWorktree, DesktopGitChange, DesktopMethod, DesktopMethodMap, DesktopNavigationTarget, DesktopOpener, DesktopRoot, DesktopSearch, DesktopTarget, DesktopTerminal, DesktopTerminalInfo, DesktopTerminalRequestOriginal, DesktopTerminalRequestReceipt, DesktopTerminalSnapshot, DesktopText, DesktopToolEvent, DesktopWindow, ExtensionOperation, ExtensionRequest, FetchDirection, GitStatus, JsonValue, LoginResult, ModelProviderConnection, ModelProviderRequest, NavigationCompletionStatus, PageFetchFrame, PluginAppActionReceipt, PluginAppActionResponse, PluginAppCatalog, PluginAppComposerContext, PluginAppHostState, PluginAppModelContext, PluginAppMount, PluginAppPreparedMessage, PluginAppPreparedTool, PluginAppRecord, PluginAppSource, PluginAppSubmissionReceipt, PluginAppToolPolicy, PresentationSnapshot, ProjectRequest, ProjectSnapshot, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ResourceCatalogMethod, ResourceCatalogMethodMap, ResourceChanged, RootReleaseReceipt, ServiceConnectionDescriptor, ServiceContext, ServiceHostFrame, ServiceHostMethod, ServiceHostMethodMap, ServiceInvocation, ServiceStatus, ServiceWork, ServiceWorkState, SessionResourceMethod, SessionSettingsTarget, SessionSettingsWireTarget, StorageGetResult, StoredFile, SystemEvent, SystemMethod, SystemMethodMap, SystemOpenInput, SystemOpenWireInput, SystemProject, SystemRequester, SystemShortcutId, WindowMethod, WindowMethodMap, WindowRequester, WindowStateChanged, WorkspaceDirectoryPage, WorkspaceFilePage, WorkspaceMethod, WorkspaceOperation, WorkspaceOperationKind, WorkspaceOperationOriginal, WorkspaceRef, WorkspaceSelection, WorkspaceText, WorktreeQuery, WorktreeReceipt };
2317
+ export { APP_HOST_ERROR_RETRY, APP_HOST_FEATURES, APP_HOST_LOGIN_TIMEOUT_MS, APP_HOST_LOGIN_TRANSPORT_TIMEOUT_MS, APP_HOST_MAX_PAYLOAD_BYTES, APP_HOST_MAX_PENDING, APP_HOST_METHODS, APP_HOST_PORT, APP_HOST_PORT_TIMEOUT_MS, APP_HOST_PROTOCOL, APP_HOST_READY, APP_HOST_REQUEST_TIMEOUT_MS, ATTACHMENTS_METHODS, AUXILIARY_METHODS, AppHostError, BROWSER_CAPTURE_PREVIEW_MAX_BYTES, COMMANDS_METHODS, DESKTOP_METHODS, EXTENSION_INPUTS, FETCH_CHUNK_BYTES, FETCH_HEADERS_TIMEOUT_MS, FETCH_IDLE_TIMEOUT_MS, FETCH_INLINE_BODY_BYTES, FETCH_MAX_STREAMS, FETCH_METADATA_BYTES, FETCH_WINDOW_CHUNKS, HOST_REQUEST_ID, RESOURCE_CATALOG_METHODS, SYSTEM_METHODS, SYSTEM_SETTINGS_SECTIONS, SYSTEM_SHORTCUT_IDS, WINDOW_METHODS, appHostErrorMessage, canonicalDesktopRequest, createAppAttachmentsApi, createAppAuxiliarySessionsApi, createAppCommandsApi, createAppDesktopApi, createAppSystemApi, createAppWindowApi, createResourceCatalogApi, isAppHostErrorInfo, isAppLifecycleFrame, isAuxiliaryMethod, isCommandsMethod, isConversationPreparationMethod, isDesktopMethod, isPageFetchFrame, isResourceCatalogMethod, isSafeErrorDetails, isSystemMethod, isWindowMethod, matchAgentApiRoute, normalizeAgentApiPath, pageFetchPath, validAppCommandSnapshot, validAppWindowState, validAttachmentsInput, validAttachmentsResult, validAuxiliaryInput, validAuxiliaryResult, validBrowserSnapshot, validCommandInvocation, validCommandReceipt, validCommandsInput, validConversationPreparationInput, validConversationPreparationResult, validDesktopEvent, validDesktopInput, validDesktopNavigationTarget, validDesktopResult, validDesktopResultForInput, validDesktopTarget, validExtensionRequest, validExtensionResult, validPresentationSnapshot, validProjectRequest, validProjectSnapshot, validResourceCatalogInput, validResourceCatalogResult, validResourceChanged, validSessionResourceInput, validSessionResourceResult, validSessionSettingsTarget, validSystemEvent, validSystemInput, validSystemResult, validWindowEvent, validWindowInput, validWindowResult, validWorkspaceInput, validWorkspaceOperation, validWorkspaceResult };
2318
+ export type { AgentApiRoute, AnnotationMode, AnnotationRect, AnnotationTarget, AppCommandRegistration, AppCommandSnapshot, AppContext, AppHostAttachments, AppHostCommands, AppHostDesktop, AppHostErrorCode, AppHostErrorInfo, AppHostEvent, AppHostEventMessage, AppHostFeature, AppHostFileOperations, AppHostGitOperations, AppHostMethod, AppHostMethodMap, AppHostPortMessage, AppHostReadyMessage, AppHostRequest, AppHostResponse, AppHostRetry, AppHostSystem, AppHostTerminalOperations, AppHostWindow, AppLifecycleFrame, AppUnloadReason, AppWindowMaterialState, AppWindowOpenHostInput, AppWindowStartupResult, AppWindowState, AppWindowUpdateCheckResult, AppWindowUpdateState, AppearancePreferences, AttachmentsMethod, AttachmentsMethodMap, AuxiliaryMethod, AuxiliaryMethodMap, AuxiliaryOptions, AuxiliaryReceipt, AuxiliaryRequest, AuxiliarySelection, AuxiliarySessionsGroup, AuxiliaryWireRequest, BindDesktopTarget, BrowserAnnotationRecord, BrowserAnnotationSnapshot, BrowserPage, CommandInvocation, CommandReceipt, CommandsMethod, CommandsMethodMap, ConnectParams, ConversationPreparationMethod, ConversationPreparationMethodMap, DesktopGitChange, DesktopMethod, DesktopMethodMap, DesktopNavigationTarget, DesktopOpener, DesktopRoot, DesktopSearch, DesktopTarget, DesktopTerminal, DesktopTerminalInfo, DesktopTerminalRequestOriginal, DesktopTerminalRequestReceipt, DesktopTerminalSnapshot, DesktopText, DesktopToolEvent, DesktopWindow, ExtensionOperation, ExtensionRequest, FetchDirection, FileOperationOriginal, GitOperationOriginal, JsonValue, LocalWorkspaceRequest, LocalWorkspaceResult, LoginResult, ModelProviderConnection, ModelProviderRequest, NavigationCompletionStatus, PageFetchFrame, PluginAppActionReceipt, PluginAppActionResponse, PluginAppCatalog, PluginAppComposerContext, PluginAppHostState, PluginAppModelContext, PluginAppMount, PluginAppPreparedMessage, PluginAppPreparedTool, PluginAppRecord, PluginAppSource, PluginAppSubmissionReceipt, PluginAppToolPolicy, PresentationSnapshot, ProjectRequest, ProjectSnapshot, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ResourceCatalogMethod, ResourceCatalogMethodMap, ResourceChanged, ServiceConnectionDescriptor, ServiceStatus, ServiceWork, ServiceWorkState, SessionResourceMethod, SessionSettingsTarget, SessionSettingsWireTarget, StorageGetResult, StoredFile, SystemEvent, SystemMethod, SystemMethodMap, SystemOpenInput, SystemOpenWireInput, SystemProject, SystemRequester, SystemShortcutId, WindowMethod, WindowMethodMap, WindowRequester, WindowStateChanged, WorkspaceDirectoryPage, WorkspaceFilePage, WorkspaceMethod, WorkspaceOperation, WorkspaceOperationKind, WorkspaceOperationOriginal, WorkspaceRef, WorkspaceSelection, WorkspaceText };