@bobannomi/app-host 0.1.0 → 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.
package/dist/index.d.ts CHANGED
@@ -23,6 +23,8 @@ declare const APP_HOST_ERROR_RETRY: {
23
23
  readonly resource_revision_conflict: "query";
24
24
  readonly request_conflict: "never";
25
25
  readonly cursor_stale: "query";
26
+ readonly model_provider_not_configured: "never";
27
+ readonly model_not_configured: "never";
26
28
  };
27
29
  type AppHostErrorCode = keyof typeof APP_HOST_ERROR_RETRY;
28
30
  type AppHostRetry = "safe" | "never" | "query";
@@ -45,27 +47,8 @@ declare class AppHostError extends Error {
45
47
  });
46
48
  }
47
49
 
48
- interface ServiceStatus {
49
- state: "absent" | "unauthorized" | "stopped" | "starting" | "recovering" | "ready" | "failed";
50
- reason?: "dependency_missing" | "service_start_failed" | "service_unavailable" | "result_unknown" | "incompatible" | "revoked";
51
- instanceId?: string;
52
- apiVersion?: string;
53
- }
54
- interface ServiceWork {
55
- requestId: string;
56
- state: ServiceWorkState;
57
- updatedAt: string;
58
- result?: JsonValue$1;
59
- error?: JsonValue$1;
60
- }
61
- interface ServiceConnectionDescriptor {
62
- connectionId: string;
63
- baseUrl: string;
64
- apiVersion: string;
65
- }
66
-
67
- declare const APP_HOST_FEATURES: readonly ["fetch-v2", "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", "embedded-browser-v1", "browser-binding-invalidation-v1", "browser-capture-preview-v1"];
68
- type AppHostFeature = typeof APP_HOST_FEATURES[number];
50
+ 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"];
51
+ type AppHostFeature = (typeof APP_HOST_FEATURES)[number];
69
52
  type FetchDirection = "upload" | "download";
70
53
  type PageFetchFrame = {
71
54
  protocol: 2;
@@ -149,7 +132,6 @@ interface SessionConfigurationInput {
149
132
  pluginAutoSelectionEnabled?: boolean;
150
133
  activePluginId?: string | null;
151
134
  pluginIds?: string[];
152
- serviceBindings?: string[];
153
135
  memory?: {
154
136
  enabled: boolean;
155
137
  };
@@ -177,26 +159,6 @@ interface SessionCreationReceipt {
177
159
  revision?: number;
178
160
  configuration?: SessionConfigurationSnapshot;
179
161
  }
180
- interface SessionConfigurationBinding {
181
- revision: number;
182
- /** Explicit creation choices plus subsequent editor deltas; never accepted as public metadata. */
183
- configurationInput?: SessionConfigurationInput;
184
- /** Original non-role defaults for fields that role selection can replace. */
185
- roleBaseConfiguration?: SessionConfigurationInput;
186
- effectiveConfiguration: ResolvedSessionConfiguration;
187
- resolvedResources: (ConfigurationResourceRef & {
188
- revision: string;
189
- })[];
190
- defaultsRevision: string;
191
- configurationRoot: {
192
- cwd: string;
193
- settingsRoot: string;
194
- };
195
- }
196
- interface ConfigurationResourceRef {
197
- kind: "model" | "role" | "tool" | "plugin" | "service" | "skill" | "mcp";
198
- id: string;
199
- }
200
162
 
201
163
  /** A directory's actual filesystem identity, captured by trusted execution code. */
202
164
  interface SessionExecutionRoot {
@@ -227,7 +189,7 @@ type SessionExecutionSource = {
227
189
  readonly sessionId: string;
228
190
  readonly requestId: string;
229
191
  };
230
- /** Frozen alongside configuration when work is accepted, then copied to Input/Run. */
192
+ /** Actual roots and business source captured when work is accepted, then copied to Input/Run. */
231
193
  interface SessionExecutionBinding {
232
194
  readonly version: 1;
233
195
  readonly cwd: SessionExecutionRoot;
@@ -253,7 +215,8 @@ interface SessionRecord {
253
215
  agent?: string;
254
216
  status: SessionStatus;
255
217
  metadata: Record<string, unknown> & {
256
- configurationBinding?: SessionConfigurationBinding;
218
+ configurationInput?: SessionConfigurationInput;
219
+ pluginIds?: string[];
257
220
  executionBinding?: SessionExecutionBinding;
258
221
  };
259
222
  createdAt: number;
@@ -267,20 +230,25 @@ declare function validConnection(v: unknown): v is {
267
230
  baseUrl: string;
268
231
  };
269
232
 
270
- interface WorkspaceConversationCreation {
233
+ interface ConversationCreationOptions {
271
234
  dataScopeId: string;
272
235
  requestId: string;
273
236
  sessionId: string;
274
- workspaceId?: string;
275
- outsideProject?: boolean;
276
- taskLocation: "current" | "worktree";
277
237
  configuration: SessionConfigurationInput;
278
238
  preparationRevision?: string;
279
239
  }
240
+ type WorkspaceConversationCreation = ConversationCreationOptions & ({
241
+ workspaceId: string;
242
+ outsideProject?: never;
243
+ taskLocation: "current" | "worktree";
244
+ } | {
245
+ workspaceId?: never;
246
+ outsideProject: true;
247
+ taskLocation: "current";
248
+ });
280
249
  interface WorkspaceConversationResult extends SessionCreationReceipt {
281
250
  session?: SessionRecord;
282
251
  operationState?: "prepared" | "running" | "completed" | "failed" | "unknown";
283
- indexBindingPending?: true;
284
252
  workspaceId?: string;
285
253
  executionRoot?: string;
286
254
  privateSessionId?: string;
@@ -315,6 +283,25 @@ type SessionControlOriginal = {
315
283
  };
316
284
  };
317
285
 
286
+ interface ServiceStatus {
287
+ state: "absent" | "unauthorized" | "stopped" | "starting" | "recovering" | "ready" | "failed";
288
+ reason?: "dependency_missing" | "service_start_failed" | "service_unavailable" | "result_unknown" | "incompatible" | "revoked";
289
+ instanceId?: string;
290
+ apiVersion?: string;
291
+ }
292
+ interface ServiceWork {
293
+ requestId: string;
294
+ state: ServiceWorkState;
295
+ updatedAt: string;
296
+ result?: JsonValue$1;
297
+ error?: JsonValue$1;
298
+ }
299
+ interface ServiceConnectionDescriptor {
300
+ connectionId: string;
301
+ baseUrl: string;
302
+ apiVersion: string;
303
+ }
304
+
318
305
  interface WorkspaceRef {
319
306
  id: string;
320
307
  displayName: string;
@@ -345,13 +332,9 @@ interface WorkspaceText {
345
332
  revision: string;
346
333
  }
347
334
 
348
- interface ConversationPreparation {
349
- createConversation(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult>;
350
- bindConversationIndex(input: {
351
- original: WorkspaceConversationCreation;
352
- dataScopeId: string;
353
- }): Promise<WorkspaceConversationResult>;
354
- getConversationCreationResult(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult | null>;
335
+ interface ConversationPreparationGroup {
336
+ create(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult>;
337
+ getResult(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult | null>;
355
338
  }
356
339
 
357
340
  interface AppCommandSnapshot {
@@ -464,7 +447,7 @@ interface DesktopTarget {
464
447
  root?: DesktopRoot;
465
448
  sessionId?: string;
466
449
  }
467
- type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch" | "git.createTaskWorktree";
450
+ type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch";
468
451
  interface WorkspaceOperation {
469
452
  requestId: string;
470
453
  kind: WorkspaceOperationKind;
@@ -480,6 +463,21 @@ interface WorkspaceOperationOriginal {
480
463
  kind: WorkspaceOperationKind;
481
464
  body: JsonValue$1;
482
465
  }
466
+ interface FileOperationOriginal {
467
+ kind: "files.writeText";
468
+ body: {
469
+ path: string;
470
+ expectedSha256: string;
471
+ text: string;
472
+ };
473
+ }
474
+ interface GitOperationOriginal {
475
+ kind: "git.switchBranch" | "git.createBranch";
476
+ body: {
477
+ expectedHead: string;
478
+ branch: string;
479
+ };
480
+ }
483
481
  interface BindDesktopTarget {
484
482
  directory?: string;
485
483
  workspaceId?: string;
@@ -761,7 +759,7 @@ interface PluginAppCatalog {
761
759
  }[];
762
760
  }[];
763
761
  }
764
- type Entry<P, R> = {
762
+ type Entry$1<P, R> = {
765
763
  params: P;
766
764
  result: R;
767
765
  };
@@ -771,17 +769,21 @@ type Target = {
771
769
  type Mount = Target & {
772
770
  mountId: string;
773
771
  };
774
- type Action = Mount & {
772
+ type Action$1 = Mount & {
775
773
  requestId: string;
776
774
  expectedRevision: number;
777
775
  source: PluginAppSource$1;
778
776
  };
777
+ type OperationQuery<Original> = Target & {
778
+ requestId: string;
779
+ original: Original;
780
+ };
779
781
  interface DesktopMethodMap {
780
- "desktop.bindTarget": Entry<Omit<BindDesktopTarget, "connection"> & {
782
+ "desktop.bindTarget": Entry$1<Omit<BindDesktopTarget, "connection"> & {
781
783
  connectionId?: string;
782
784
  }, DesktopTarget>;
783
- "desktop.releaseTarget": Entry<Target, void>;
784
- "desktop.files.listFiles": Entry<Target & {
785
+ "desktop.releaseTarget": Entry$1<Target, void>;
786
+ "desktop.files.listFiles": Entry$1<Target & {
785
787
  directory?: string;
786
788
  recursive?: boolean;
787
789
  }, {
@@ -791,71 +793,65 @@ interface DesktopMethodMap {
791
793
  kind: "file" | "directory";
792
794
  }[];
793
795
  }>;
794
- "desktop.files.search": Entry<Target & {
796
+ "desktop.files.search": Entry$1<Target & {
795
797
  query: string;
796
798
  directory?: string;
797
799
  limit?: number;
798
800
  }, DesktopSearch>;
799
- "desktop.files.openRead": Entry<Target & {
801
+ "desktop.files.openRead": Entry$1<Target & {
800
802
  path: string;
801
803
  }, {
802
804
  connectionId: string;
803
805
  baseUrl: string;
804
806
  }>;
805
- "desktop.files.readText": Entry<Target & {
807
+ "desktop.files.readText": Entry$1<Target & {
806
808
  path: string;
807
809
  }, DesktopText>;
808
- "desktop.files.writeText": Entry<Target & {
810
+ "desktop.files.writeText": Entry$1<Target & {
809
811
  requestId: string;
810
- path: string;
811
- expectedSha256: string;
812
- text: string;
813
- }, WorkspaceOperation>;
814
- "desktop.files.getOperation": Entry<Target & {
815
- requestId: string;
816
- original: WorkspaceOperationOriginal;
817
- }, WorkspaceOperation | null>;
818
- "desktop.files.revealPath": Entry<Target & {
812
+ } & FileOperationOriginal["body"], WorkspaceOperation>;
813
+ "desktop.files.getOperation": Entry$1<OperationQuery<WorkspaceOperationOriginal>, WorkspaceOperation | null>;
814
+ "desktop.files.revealPath": Entry$1<Target & {
819
815
  path: string;
820
816
  }, void>;
821
- "desktop.files.listOpeners": Entry<Target, DesktopOpener[]>;
822
- "desktop.files.openWith": Entry<Target & {
817
+ "desktop.files.listOpeners": Entry$1<Target, DesktopOpener[]>;
818
+ "desktop.files.openWith": Entry$1<Target & {
823
819
  path: string;
824
820
  openerId: string;
825
821
  }, void>;
826
- "desktop.clipboard.readText": Entry<Target, string>;
827
- "desktop.clipboard.writeText": Entry<Target & {
822
+ "desktop.clipboard.readText": Entry$1<Target, string>;
823
+ "desktop.clipboard.writeText": Entry$1<Target & {
828
824
  text: string;
829
825
  }, void>;
830
- "desktop.clipboard.showTextMenu": Entry<Target & {
826
+ "desktop.clipboard.showTextMenu": Entry$1<Target & {
831
827
  editable: boolean;
832
828
  hasSelection: boolean;
833
829
  }, "copy" | "select-all" | null>;
834
- "desktop.windows.openExternal": Entry<Target & {
830
+ "desktop.windows.openExternal": Entry$1<Target & {
835
831
  url: string;
836
832
  }, void>;
837
- "desktop.windows.getZoom": Entry<Target, {
833
+ "desktop.windows.getZoom": Entry$1<Target, {
838
834
  factor: number;
839
835
  }>;
840
- "desktop.windows.setZoom": Entry<Target & {
836
+ "desktop.windows.setZoom": Entry$1<Target & {
841
837
  factor: number;
842
838
  }, {
843
839
  factor: number;
844
840
  }>;
845
- "desktop.windows.edit": Entry<Target & {
841
+ "desktop.windows.edit": Entry$1<Target & {
846
842
  action: "undo" | "redo" | "cut" | "copy" | "paste" | "selectAll";
847
843
  }, void>;
848
- "desktop.git.status": Entry<Target, {
844
+ "desktop.git.status": Entry$1<Target, {
849
845
  root: string;
850
846
  commonDir: string;
851
847
  head: string;
852
848
  branch: string;
853
849
  changes: string[];
854
850
  }>;
855
- "desktop.git.listBranches": Entry<Target, {
851
+ "desktop.git.listBranches": Entry$1<Target, {
856
852
  branches: string[];
857
853
  }>;
858
- "desktop.git.changes": Entry<Target & {
854
+ "desktop.git.changes": Entry$1<Target & {
859
855
  range?: "uncommitted" | "working" | "staged";
860
856
  ignoreWhitespace?: boolean;
861
857
  }, {
@@ -863,7 +859,7 @@ interface DesktopMethodMap {
863
859
  totalAdditions: number;
864
860
  totalDeletions: number;
865
861
  }>;
866
- "desktop.git.diff": Entry<Target & {
862
+ "desktop.git.diff": Entry$1<Target & {
867
863
  path?: string;
868
864
  base?: string;
869
865
  head?: string;
@@ -873,130 +869,121 @@ interface DesktopMethodMap {
873
869
  text: string;
874
870
  truncated: boolean;
875
871
  }>;
876
- "desktop.git.switchBranch": Entry<Target & {
872
+ "desktop.git.switchBranch": Entry$1<Target & {
877
873
  requestId: string;
878
- expectedHead: string;
879
- branch: string;
880
- }, WorkspaceOperation>;
881
- "desktop.git.createBranch": Entry<Target & {
874
+ } & GitOperationOriginal["body"], WorkspaceOperation>;
875
+ "desktop.git.createBranch": Entry$1<Target & {
882
876
  requestId: string;
883
- expectedHead: string;
884
- branch: string;
885
- }, WorkspaceOperation>;
886
- "desktop.git.createTaskWorktree": Entry<Target & {
887
- requestId: string;
888
- expectedHead: string;
889
- branch: string;
890
- }, WorkspaceOperation>;
891
- "desktop.terminals.create": Entry<Target & {
877
+ } & GitOperationOriginal["body"], WorkspaceOperation>;
878
+ "desktop.terminals.create": Entry$1<Target & {
892
879
  requestId: string;
893
880
  cols: number;
894
881
  rows: number;
895
882
  name?: string;
896
883
  }, DesktopTerminal>;
897
- "desktop.terminals.list": Entry<Target, DesktopTerminalInfo[]>;
898
- "desktop.terminals.restart": Entry<Target & {
884
+ "desktop.terminals.list": Entry$1<Target, DesktopTerminalInfo[]>;
885
+ "desktop.terminals.restart": Entry$1<Target & {
899
886
  terminalId: string;
900
887
  requestId: string;
901
888
  }, DesktopTerminal>;
902
- "desktop.terminals.getRequest": Entry<Target & {
889
+ "desktop.terminals.getRequest": Entry$1<Target & {
903
890
  requestId: string;
904
891
  original: DesktopTerminalRequestOriginal;
905
892
  }, DesktopTerminalRequestReceipt>;
906
- "desktop.terminals.snapshot": Entry<Target & {
893
+ "desktop.terminals.snapshot": Entry$1<Target & {
907
894
  terminalId: string;
908
895
  after?: number;
909
896
  maxChars?: number;
910
897
  }, DesktopTerminalSnapshot>;
911
- "desktop.terminals.subscribe": Entry<Target & {
898
+ "desktop.terminals.subscribe": Entry$1<Target & {
912
899
  terminalId: string;
913
900
  }, void>;
914
- "desktop.terminals.write": Entry<Target & {
901
+ "desktop.terminals.write": Entry$1<Target & {
915
902
  terminalId: string;
916
903
  data: string;
917
904
  }, void>;
918
- "desktop.terminals.resize": Entry<Target & {
905
+ "desktop.terminals.resize": Entry$1<Target & {
919
906
  terminalId: string;
920
907
  cols: number;
921
908
  rows: number;
922
909
  }, void>;
923
- "desktop.terminals.close": Entry<Target & {
910
+ "desktop.terminals.close": Entry$1<Target & {
924
911
  terminalId?: string;
925
912
  requestId?: string;
926
913
  }, void>;
927
- "desktop.windows.open": Entry<Target & {
914
+ "desktop.windows.open": Entry$1<Target & {
928
915
  requestId: string;
929
916
  mode: "application" | "content";
930
917
  url: string;
931
918
  }, DesktopWindow>;
932
- "desktop.windows.adopt": Entry<Target & {
919
+ "desktop.windows.adopt": Entry$1<Target & {
933
920
  requestId: string;
934
921
  windowId: number;
935
922
  }, DesktopWindow>;
936
- "desktop.windows.get": Entry<Target & {
923
+ "desktop.windows.get": Entry$1<Target & {
937
924
  requestId: string;
938
925
  }, DesktopWindow | null>;
939
- "desktop.windows.close": Entry<Target & {
926
+ "desktop.windows.close": Entry$1<Target & {
940
927
  requestId: string;
941
928
  }, DesktopWindow>;
942
- "desktop.windows.setAlwaysOnTop": Entry<Target & {
929
+ "desktop.windows.setAlwaysOnTop": Entry$1<Target & {
943
930
  requestId?: string;
944
931
  alwaysOnTop: boolean;
945
932
  }, {
946
933
  alwaysOnTop: boolean;
947
934
  }>;
948
- "desktop.windows.focus": Entry<Target & {
935
+ "desktop.windows.focus": Entry$1<Target & {
949
936
  requestId?: string;
950
937
  }, {
951
938
  focused: boolean;
952
939
  visible: boolean;
953
940
  minimized: boolean;
954
941
  }>;
955
- "desktop.browser.register": Entry<Target & {
942
+ "desktop.browser.register": Entry$1<Target & {
956
943
  tabId: string;
957
944
  guestId: number;
958
945
  }, BrowserAnnotationSnapshot>;
959
- "desktop.browser.openLocalFile": Entry<Target & {
946
+ "desktop.browser.openLocalFile": Entry$1<Target & {
960
947
  path: string;
961
948
  }, {
962
949
  url: string;
963
950
  }>;
964
- "desktop.browser.unregister": Entry<Target & {
951
+ "desktop.browser.unregister": Entry$1<Target & {
965
952
  tabId: string;
966
953
  }, void>;
967
- "desktop.browser.setActive": Entry<Target & {
954
+ "desktop.browser.setActive": Entry$1<Target & {
968
955
  tabId: string;
969
956
  }, void>;
970
- "desktop.browser.readAnnotations": Entry<BrowserPage, BrowserAnnotationSnapshot>;
971
- "desktop.browser.setAnnotationMode": Entry<BrowserPage & {
957
+ "desktop.browser.readAnnotations": Entry$1<BrowserPage, BrowserAnnotationSnapshot>;
958
+ "desktop.browser.setAnnotationMode": Entry$1<BrowserPage & {
972
959
  mode: AnnotationMode;
973
960
  }, BrowserAnnotationSnapshot>;
974
- "desktop.browser.addAnnotation": Entry<BrowserPage & {
961
+ "desktop.browser.addAnnotation": Entry$1<BrowserPage & {
975
962
  selectionId: string;
976
963
  comment: string;
977
964
  }, BrowserAnnotationSnapshot>;
978
- "desktop.browser.focusAnnotation": Entry<BrowserPage & {
965
+ "desktop.browser.focusAnnotation": Entry$1<BrowserPage & {
979
966
  annotationId: string;
980
967
  }, BrowserAnnotationSnapshot>;
981
- "desktop.browser.removeAnnotation": Entry<BrowserPage & {
968
+ "desktop.browser.removeAnnotation": Entry$1<BrowserPage & {
982
969
  annotationId: string;
983
970
  }, BrowserAnnotationSnapshot>;
984
- "desktop.browser.capturePreview": Entry<BrowserPage, {
971
+ "desktop.browser.capturePreview": Entry$1<BrowserPage, {
985
972
  bytes: Uint8Array<ArrayBuffer>;
986
973
  width: number;
987
974
  height: number;
988
975
  }>;
989
- "desktop.pluginApps.catalog": Entry<Target, PluginAppCatalog>;
990
- "desktop.pluginApps.composerContext": Entry<Target & {
976
+ "desktop.pluginApps.catalog": Entry$1<Target, PluginAppCatalog>;
977
+ "desktop.pluginApps.composerContext": Entry$1<Target & {
991
978
  contextIds: string[];
992
979
  }, PluginAppComposerContext[]>;
993
- "desktop.pluginApps.open": Entry<Target & {
980
+ "desktop.pluginApps.open": Entry$1<Target & {
994
981
  requestId: string;
995
982
  pluginId: string;
996
983
  surfaceId: string;
997
984
  expectedRevision?: number;
998
985
  }, PluginAppMount>;
999
- "desktop.pluginApps.openToolResult": Entry<Target & {
986
+ "desktop.pluginApps.openToolResult": Entry$1<Target & {
1000
987
  sourcePartId: string;
1001
988
  }, {
1002
989
  mounted: PluginAppMount;
@@ -1007,29 +994,29 @@ interface DesktopMethodMap {
1007
994
  dataError?: string;
1008
995
  };
1009
996
  }>;
1010
- "desktop.pluginApps.mount": Entry<Target & {
997
+ "desktop.pluginApps.mount": Entry$1<Target & {
1011
998
  source: PluginAppSource$1;
1012
999
  }, PluginAppMount>;
1013
- "desktop.pluginApps.refresh": Entry<Mount, PluginAppHostState>;
1014
- "desktop.pluginApps.rejectMenuOpen": Entry<Mount & {
1000
+ "desktop.pluginApps.refresh": Entry$1<Mount, PluginAppHostState>;
1001
+ "desktop.pluginApps.rejectMenuOpen": Entry$1<Mount & {
1015
1002
  requestId: string;
1016
1003
  menuOpeningRevision: number;
1017
1004
  }, {
1018
1005
  closed: boolean;
1019
1006
  }>;
1020
- "desktop.pluginApps.prepareTool": Entry<Mount & {
1007
+ "desktop.pluginApps.prepareTool": Entry$1<Mount & {
1021
1008
  source: PluginAppSource$1;
1022
1009
  requestId: string;
1023
1010
  expectedRevision: number;
1024
1011
  name: string;
1025
1012
  arguments: Record<string, JsonValue$1>;
1026
1013
  }, PluginAppPreparedTool>;
1027
- "desktop.pluginApps.invokeTool": Entry<Action, PluginAppActionResponse | {
1014
+ "desktop.pluginApps.invokeTool": Entry$1<Action$1, PluginAppActionResponse | {
1028
1015
  code: "plugin_app_busy";
1029
1016
  notAccepted: true;
1030
1017
  requestId: string;
1031
1018
  }>;
1032
- "desktop.pluginApps.getAction": Entry<Action | Target & {
1019
+ "desktop.pluginApps.getAction": Entry$1<Action$1 | Target & {
1033
1020
  source: PluginAppSource$1;
1034
1021
  requestId: string;
1035
1022
  expectedRevision: number;
@@ -1038,70 +1025,82 @@ interface DesktopMethodMap {
1038
1025
  args: Record<string, JsonValue$1>;
1039
1026
  };
1040
1027
  }, PluginAppActionResponse>;
1041
- "desktop.pluginApps.cancelTool": Entry<Action, void>;
1042
- "desktop.pluginApps.readResource": Entry<Mount & {
1028
+ "desktop.pluginApps.cancelTool": Entry$1<Action$1, void>;
1029
+ "desktop.pluginApps.readResource": Entry$1<Mount & {
1043
1030
  source: PluginAppSource$1;
1044
1031
  uri: string;
1045
1032
  }, {
1046
1033
  contents: JsonValue$1[];
1047
1034
  }>;
1048
- "desktop.pluginApps.listResources": Entry<Mount & {
1035
+ "desktop.pluginApps.listResources": Entry$1<Mount & {
1049
1036
  source: PluginAppSource$1;
1050
1037
  cursor?: string;
1051
1038
  }, {
1052
1039
  resources: JsonValue$1[];
1053
1040
  nextCursor?: string;
1054
1041
  }>;
1055
- "desktop.pluginApps.listResourceTemplates": Entry<Mount & {
1042
+ "desktop.pluginApps.listResourceTemplates": Entry$1<Mount & {
1056
1043
  source: PluginAppSource$1;
1057
1044
  cursor?: string;
1058
1045
  }, {
1059
1046
  resourceTemplates: JsonValue$1[];
1060
1047
  nextCursor?: string;
1061
1048
  }>;
1062
- "desktop.pluginApps.prepareMessage": Entry<Action & {
1049
+ "desktop.pluginApps.prepareMessage": Entry$1<Action$1 & {
1063
1050
  content: JsonValue$1;
1064
1051
  role: JsonValue$1;
1065
1052
  }, PluginAppPreparedMessage>;
1066
- "desktop.pluginApps.submitMessage": Entry<Action, PluginAppSubmissionReceipt>;
1067
- "desktop.pluginApps.getMessageSubmission": Entry<Action, PluginAppSubmissionReceipt>;
1068
- "desktop.pluginApps.cancelMessage": Entry<Action, void>;
1069
- "desktop.pluginApps.updateModelContext": Entry<Action & {
1053
+ "desktop.pluginApps.submitMessage": Entry$1<Action$1, PluginAppSubmissionReceipt>;
1054
+ "desktop.pluginApps.getMessageSubmission": Entry$1<Action$1, PluginAppSubmissionReceipt>;
1055
+ "desktop.pluginApps.cancelMessage": Entry$1<Action$1, void>;
1056
+ "desktop.pluginApps.updateModelContext": Entry$1<Action$1 & {
1070
1057
  content?: JsonValue$1;
1071
1058
  structuredContent?: JsonValue$1;
1072
1059
  }, PluginAppModelContext>;
1073
- "desktop.pluginApps.release": Entry<Mount, void>;
1074
- "desktop.pluginApps.closePanel": Entry<Mount, void>;
1075
- "desktop.pluginApps.closeApp": Entry<Action, {
1060
+ "desktop.pluginApps.release": Entry$1<Mount, void>;
1061
+ "desktop.pluginApps.closePanel": Entry$1<Mount, void>;
1062
+ "desktop.pluginApps.closeApp": Entry$1<Action$1, {
1076
1063
  app: PluginAppRecord;
1077
1064
  }>;
1078
1065
  }
1079
1066
  type DesktopMethod = keyof DesktopMethodMap;
1067
+ declare const DESKTOP_ADAPTED_METHODS: readonly ["desktop.files.openRead", "desktop.files.getOperation"];
1080
1068
  type ApiGroup<G extends string> = {
1081
- [M in DesktopMethod as M extends `desktop.${G}.${infer N}` ? N : never]: (input: DesktopMethodMap[M]["params"]) => Promise<DesktopMethodMap[M]["result"]>;
1069
+ [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"]>;
1082
1070
  };
1083
1071
  interface AppHostDesktop {
1084
1072
  bindTarget(input: BindDesktopTarget): Promise<DesktopTarget>;
1085
1073
  releaseTarget(input: Target): Promise<void>;
1086
- files: Omit<ApiGroup<"files">, "openRead"> & {
1087
- readFile(input: {
1088
- targetId: string;
1089
- path: string;
1090
- range?: {
1091
- start: number;
1092
- end?: number;
1093
- };
1094
- }, options?: {
1095
- signal?: AbortSignal;
1096
- }): Promise<Response>;
1097
- };
1074
+ files: AppHostFileOperations;
1098
1075
  clipboard: ApiGroup<"clipboard">;
1099
- git: ApiGroup<"git">;
1100
- terminals: ApiGroup<"terminals">;
1076
+ git: AppHostGitOperations;
1077
+ terminals: AppHostTerminalOperations;
1101
1078
  windows: ApiGroup<"windows">;
1102
1079
  browser: ApiGroup<"browser">;
1103
1080
  pluginApps: ApiGroup<"pluginApps">;
1104
1081
  }
1082
+ interface AppHostFileOperations extends ApiGroup<"files"> {
1083
+ /** Read bytes from a file in the bound desktop target, optionally using a byte range. */
1084
+ readFile(input: {
1085
+ targetId: string;
1086
+ path: string;
1087
+ range?: {
1088
+ start: number;
1089
+ end?: number;
1090
+ };
1091
+ }, options?: {
1092
+ signal?: AbortSignal;
1093
+ }): Promise<Response>;
1094
+ /** Query the original write using the same request ID and original file contents. */
1095
+ getOperation(input: OperationQuery<FileOperationOriginal>): Promise<WorkspaceOperation | null>;
1096
+ }
1097
+ interface AppHostGitOperations extends ApiGroup<"git"> {
1098
+ /** Query the receipt using the original branch operation and request ID. */
1099
+ getOperation(input: OperationQuery<GitOperationOriginal>): Promise<WorkspaceOperation | null>;
1100
+ }
1101
+ /** Interactive terminal operations for an authorized desktop target. */
1102
+ interface AppHostTerminalOperations extends ApiGroup<"terminals"> {
1103
+ }
1105
1104
  declare const validBrowserSnapshot: Check;
1106
1105
  declare const validDesktopTarget: Check;
1107
1106
  declare const validWorkspaceOperation: Check;
@@ -1159,7 +1158,7 @@ declare function createAppDesktopApi(rpc: {
1159
1158
  /** Persist this normalized original alongside a request ID; recovery sends exactly that request. */
1160
1159
  declare function canonicalDesktopRequest(value: unknown): string;
1161
1160
 
1162
- /** The original extension manager's finite operations; never an IPC channel or arbitrary service method. */
1161
+ /** The extension manager's finite operations. */
1163
1162
  declare const EXTENSION_INPUTS: {
1164
1163
  context: Check;
1165
1164
  "plugins.loadIcon": Check;
@@ -1184,6 +1183,8 @@ declare const EXTENSION_INPUTS: {
1184
1183
  "plugins.marketplaceOperation": Check;
1185
1184
  "skills.snapshot": Check;
1186
1185
  "skills.remove": Check;
1186
+ "skills.marketplaceCatalog": Check;
1187
+ "skills.marketplaceInstall": (value: unknown) => boolean;
1187
1188
  "mcp.snapshot": Check;
1188
1189
  "mcp.exportConfig": Check;
1189
1190
  "mcp.getConfig": Check;
@@ -1207,9 +1208,10 @@ declare const validExtensionResult: (value: unknown) => boolean;
1207
1208
  /** Project records and filesystem locations have separate business identities. */
1208
1209
  interface SystemProject {
1209
1210
  workspaceId: string;
1210
- projectId?: string;
1211
+ projectId: string;
1211
1212
  name: string;
1212
1213
  path: string;
1214
+ rootIdentity?: DesktopRoot["identity"];
1213
1215
  available: boolean;
1214
1216
  lastOpenedAt: number;
1215
1217
  defaultShell?: string;
@@ -1217,6 +1219,7 @@ interface SystemProject {
1217
1219
  interface ProjectSnapshot {
1218
1220
  dataScopeId: string;
1219
1221
  projects: SystemProject[];
1222
+ selectedWorkspaceId?: string;
1220
1223
  }
1221
1224
  type Scope = {
1222
1225
  dataScopeId: string;
@@ -1235,16 +1238,97 @@ type ProjectRequest = {
1235
1238
  shell: string | null;
1236
1239
  } | Project & {
1237
1240
  action: "archive";
1238
- } | Scope & {
1241
+ } | Project & {
1239
1242
  action: "rebind";
1240
- projectId?: string;
1241
- workspaceId: string;
1242
1243
  previousWorkspaceId: string;
1243
- previousPath?: string;
1244
+ expectedPath: string;
1244
1245
  };
1245
1246
  declare function validProjectRequest(value: unknown): value is ProjectRequest;
1246
1247
  declare const validProjectSnapshot: (value: unknown) => value is ProjectSnapshot;
1247
1248
 
1249
+ type Root = {
1250
+ rootPath: string;
1251
+ identity?: {
1252
+ dev: string;
1253
+ ino: string;
1254
+ };
1255
+ };
1256
+ type File = Root & {
1257
+ path: string;
1258
+ };
1259
+ type Write = File & {
1260
+ requestId: string;
1261
+ content: string;
1262
+ originalContent: string;
1263
+ };
1264
+ type Preview = {
1265
+ path: string;
1266
+ name: string;
1267
+ language: string;
1268
+ size: number;
1269
+ binary: boolean;
1270
+ content: string | null;
1271
+ scope: "project" | "extra-root";
1272
+ relativePath: string;
1273
+ rootLabel: string;
1274
+ previewBytes: ArrayBuffer | null;
1275
+ mediaType: "image/avif" | "image/bmp" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | null;
1276
+ imagePreviewError: "image_too_large" | "image_unsupported" | null;
1277
+ rootIdentity?: Root["identity"];
1278
+ documentPreview?: {
1279
+ format: "pdf" | "epub" | "docx" | "xlsx" | "pptx";
1280
+ bytes: ArrayBuffer;
1281
+ };
1282
+ };
1283
+ type Tree = {
1284
+ rootPath: string;
1285
+ entries: {
1286
+ path: string;
1287
+ type: "file" | "directory";
1288
+ size?: number;
1289
+ }[];
1290
+ truncated?: boolean;
1291
+ };
1292
+ type Entry<Input, Result> = {
1293
+ input: Input;
1294
+ result: Result;
1295
+ };
1296
+ type LocalWorkspaceActions = {
1297
+ pick: Entry<{}, Required<Root> & {
1298
+ workspaceId: string;
1299
+ } | null>;
1300
+ list: Entry<Root & {
1301
+ path?: string;
1302
+ }, Tree>;
1303
+ find: Entry<Root & {
1304
+ query: string;
1305
+ }, {
1306
+ files: string[];
1307
+ truncated: boolean;
1308
+ }>;
1309
+ read: Entry<File, Preview>;
1310
+ write: Entry<Write, Preview>;
1311
+ getWrite: Entry<Write, Preview | null>;
1312
+ reveal: Entry<File, void>;
1313
+ openWith: Entry<File & {
1314
+ openerId: string;
1315
+ }, void>;
1316
+ copyPath: Entry<File & {
1317
+ absolute?: boolean;
1318
+ }, void>;
1319
+ listOpeners: Entry<{}, DesktopOpener[]>;
1320
+ webPreview: Entry<File, {
1321
+ url: string;
1322
+ }>;
1323
+ };
1324
+ type Action = keyof LocalWorkspaceActions;
1325
+ type LocalWorkspaceRequest = {
1326
+ [A in Action]: {
1327
+ action: A;
1328
+ } & LocalWorkspaceActions[A]["input"];
1329
+ }[Action];
1330
+ type LocalWorkspaceResult<A extends Action = Action> = LocalWorkspaceActions[A]["result"];
1331
+
1248
1332
  interface CustomModelProviderInput {
1249
1333
  id: string;
1250
1334
  displayName: string;
@@ -1287,6 +1371,9 @@ type ModelProviderRequest = {
1287
1371
  } | {
1288
1372
  action: "createCustom";
1289
1373
  value: CustomModelProviderInput;
1374
+ } | {
1375
+ action: "syncAccount";
1376
+ value: CustomModelProviderInput;
1290
1377
  } | {
1291
1378
  action: "updateCustom";
1292
1379
  provider: string;
@@ -1342,6 +1429,8 @@ interface ProviderDefaultsSnapshot {
1342
1429
  }>;
1343
1430
  fastModeAvailable: false;
1344
1431
  fastModeReason: string;
1432
+ /** Present when the caller supplied a proof for its current account gateway. */
1433
+ accountGatewayMatches?: boolean;
1345
1434
  }
1346
1435
  interface ProviderConnectionTestResult {
1347
1436
  status: "verified" | "failed";
@@ -1351,6 +1440,7 @@ interface ProviderConnectionTestResult {
1351
1440
  }
1352
1441
  type ProviderDefaultsRequest = {
1353
1442
  action: "snapshot";
1443
+ accountGatewayProof?: string;
1354
1444
  } | {
1355
1445
  action: "updateModel";
1356
1446
  provider?: string;
@@ -1488,12 +1578,16 @@ type SystemEvent = {
1488
1578
  type: "git-preferences-changed";
1489
1579
  defaultTaskLocation: "current" | "worktree";
1490
1580
  };
1491
- 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.markSessionRead", "system.navigationReady", "system.completeNavigation"];
1581
+ 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"];
1492
1582
  interface SystemMethodMap {
1493
1583
  "system.projects": {
1494
1584
  params: ProjectRequest;
1495
1585
  result: ProjectSnapshot;
1496
1586
  };
1587
+ "system.workspace": {
1588
+ params: LocalWorkspaceRequest;
1589
+ result: LocalWorkspaceResult;
1590
+ };
1497
1591
  "system.extensions": {
1498
1592
  params: ExtensionRequest;
1499
1593
  result: unknown;
@@ -1540,14 +1634,6 @@ interface SystemMethodMap {
1540
1634
  };
1541
1635
  result: void;
1542
1636
  };
1543
- "system.markSessionRead": {
1544
- params: {
1545
- connectionId: string;
1546
- sessionId: string;
1547
- throughSeq: number;
1548
- };
1549
- result: void;
1550
- };
1551
1637
  "system.navigationReady": {
1552
1638
  params: Record<string, never>;
1553
1639
  result: {
@@ -1572,6 +1658,10 @@ declare function validSystemResult(method: SystemMethod, value: unknown): boolea
1572
1658
  declare function validSystemEvent(value: unknown): value is SystemEvent;
1573
1659
  interface AppHostSystem {
1574
1660
  projects(input: ProjectRequest): Promise<ProjectSnapshot>;
1661
+ /** Local files for the trusted, built-in workbench. */
1662
+ workspace<A extends LocalWorkspaceRequest["action"]>(input: Extract<LocalWorkspaceRequest, {
1663
+ action: A;
1664
+ }>): Promise<LocalWorkspaceResult<A>>;
1575
1665
  /** Requires the explicit extensions.manage installation capability. */
1576
1666
  extensions(input: ExtensionRequest): Promise<unknown>;
1577
1667
  /** Manages connections for the active built-in workbench. */
@@ -1594,11 +1684,6 @@ interface AppHostSystem {
1594
1684
  copyText(text: string): Promise<void>;
1595
1685
  /** Opens an HTTP(S) URL without credentials in the default browser. */
1596
1686
  openExternal(url: string): Promise<void>;
1597
- markSessionRead(input: {
1598
- connection: AgentConnection;
1599
- sessionId: string;
1600
- throughSeq: number;
1601
- }): Promise<void>;
1602
1687
  navigationReady(): Promise<{
1603
1688
  pending: DesktopNavigationTarget | null;
1604
1689
  }>;
@@ -1613,26 +1698,27 @@ interface SystemRequester {
1613
1698
  }
1614
1699
  declare function createAppSystemApi(requester: SystemRequester, connectionOwner: object): AppHostSystem;
1615
1700
 
1701
+ interface WorkspaceDirectory {
1702
+ readonly id: string;
1703
+ readonly displayName: string;
1704
+ listFiles(options?: {
1705
+ directory?: string;
1706
+ cursor?: string;
1707
+ }): Promise<WorkspaceFilePage>;
1708
+ readText(path: string): Promise<WorkspaceText>;
1709
+ }
1616
1710
  interface AppHostWorkspace {
1617
1711
  list(input?: {
1618
1712
  cursor?: string;
1619
1713
  }): Promise<WorkspaceDirectoryPage>;
1620
- select(input: {
1621
- requestId: string;
1622
- }): Promise<WorkspaceRef | null>;
1714
+ /** Supply and save requestId before opening the picker if its result needs to be recovered. */
1715
+ pick(input?: {
1716
+ requestId?: string;
1717
+ }): Promise<WorkspaceDirectory | null>;
1718
+ open(id: string): Promise<WorkspaceDirectory>;
1623
1719
  getSelection(input: {
1624
1720
  requestId: string;
1625
1721
  }): Promise<WorkspaceSelection>;
1626
- get(id: string): Promise<WorkspaceRef>;
1627
- listFiles(input: {
1628
- workspaceId: string;
1629
- directory: string;
1630
- cursor?: string;
1631
- }): Promise<WorkspaceFilePage>;
1632
- readText(input: {
1633
- workspaceId: string;
1634
- path: string;
1635
- }): Promise<WorkspaceText>;
1636
1722
  }
1637
1723
 
1638
1724
  interface WorkspaceDirectoryPage {
@@ -1763,18 +1849,18 @@ interface AuxiliaryMethodMap {
1763
1849
  }
1764
1850
  type AuxiliaryMethod = keyof AuxiliaryMethodMap;
1765
1851
  declare const AUXILIARY_METHODS: readonly ["sessions.getAuxiliaryOptions", "sessions.openAuxiliary", "sessions.getAuxiliary", "sessions.closeAuxiliary"];
1766
- interface AppHostAuxiliarySessions {
1767
- getAuxiliaryOptions(input: {
1852
+ interface AuxiliarySessionsGroup {
1853
+ getOptions(input: {
1768
1854
  connection: AgentConnection;
1769
1855
  sessionId: string;
1770
1856
  }): Promise<AuxiliaryOptions>;
1771
- openAuxiliary(input: AuxiliaryRequest): Promise<{
1857
+ open(input: AuxiliaryRequest): Promise<{
1772
1858
  leaseId: string;
1773
1859
  sessionId: string;
1774
1860
  connection: AgentConnection;
1775
1861
  }>;
1776
- getAuxiliary(input: AuxiliaryRequest): Promise<AuxiliaryReceipt | null>;
1777
- closeAuxiliary(input: AuxiliaryRequest): Promise<AuxiliaryReceipt>;
1862
+ get(input: AuxiliaryRequest): Promise<AuxiliaryReceipt | null>;
1863
+ close(input: AuxiliaryRequest): Promise<AuxiliaryReceipt>;
1778
1864
  }
1779
1865
  declare function isAuxiliaryMethod(method: string): method is AuxiliaryMethod;
1780
1866
  declare function validAuxiliaryInput(method: AuxiliaryMethod, v: unknown): boolean;
@@ -1782,12 +1868,14 @@ declare function validAuxiliaryResult(method: AuxiliaryMethod, v: unknown): bool
1782
1868
  declare function createAppAuxiliarySessionsApi(rpc: {
1783
1869
  requireFeature(): void;
1784
1870
  request<M extends AuxiliaryMethod>(method: M, params: AuxiliaryMethodMap[M]["params"]): Promise<AuxiliaryMethodMap[M]["result"]>;
1785
- }, streams: ConnectionStreams): AppHostAuxiliarySessions;
1871
+ }, streams: ConnectionStreams): AuxiliarySessionsGroup;
1786
1872
 
1787
1873
  interface AppHostSessions {
1788
1874
  /** Handles share the page's connection. Closing any handle ends the
1789
1875
  * connection and all its in-flight requests. */
1790
1876
  getConnection(): Promise<AgentConnection>;
1877
+ preparation: ConversationPreparationGroup;
1878
+ auxiliary: AuxiliarySessionsGroup;
1791
1879
  }
1792
1880
 
1793
1881
  interface ServiceConnection {
@@ -1880,6 +1968,20 @@ interface AppWindowMaterialState {
1880
1968
  shell: "solid" | "translucent" | "transparent";
1881
1969
  unavailableReason: "unsupported-platform" | "unsupported-system" | "reduced-transparency" | "material-error" | null;
1882
1970
  }
1971
+ /** Host update facts for a custom title bar. Actions stay in the host's About window. */
1972
+ type AppWindowUpdateState = {
1973
+ status: "idle" | "checking" | "error";
1974
+ } | {
1975
+ status: "available" | "downloaded";
1976
+ version: string;
1977
+ } | {
1978
+ status: "downloading";
1979
+ version: string;
1980
+ percent: number;
1981
+ };
1982
+ type AppWindowUpdateCheckResult = AppWindowUpdateState | {
1983
+ status: "unsupported";
1984
+ };
1883
1985
  interface AppWindowState {
1884
1986
  platform: "win32" | "darwin" | "linux";
1885
1987
  maximized: boolean;
@@ -1887,6 +1989,7 @@ interface AppWindowState {
1887
1989
  /** Horizontal space to reserve inside the application's title bar, in page coordinates. */
1888
1990
  trafficLightInset: number;
1889
1991
  material: AppWindowMaterialState;
1992
+ update?: AppWindowUpdateState;
1890
1993
  }
1891
1994
  interface AppWindowOpenHostInput {
1892
1995
  page: "manage" | "settings" | "about" | "recovery";
@@ -1901,12 +2004,16 @@ interface WindowStateChanged {
1901
2004
  type: "window-state-changed";
1902
2005
  state: AppWindowState;
1903
2006
  }
1904
- declare const WINDOW_METHODS: readonly ["window.getState", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
2007
+ declare const WINDOW_METHODS: readonly ["window.getState", "window.checkForUpdates", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
1905
2008
  interface WindowMethodMap {
1906
2009
  "window.getState": {
1907
2010
  params: Record<string, never>;
1908
2011
  result: AppWindowState;
1909
2012
  };
2013
+ "window.checkForUpdates": {
2014
+ params: Record<string, never>;
2015
+ result: AppWindowUpdateCheckResult;
2016
+ };
1910
2017
  "window.minimize": {
1911
2018
  params: Record<string, never>;
1912
2019
  result: void;
@@ -1936,6 +2043,7 @@ declare function validWindowResult(method: WindowMethod, value: unknown): boolea
1936
2043
  declare function validWindowEvent(value: unknown): value is WindowStateChanged;
1937
2044
  interface AppHostWindow {
1938
2045
  getState(): Promise<AppWindowState>;
2046
+ checkForUpdates(): Promise<AppWindowUpdateCheckResult>;
1939
2047
  onStateChanged(listener: (state: AppWindowState) => void): () => void;
1940
2048
  minimize(): Promise<void>;
1941
2049
  toggleMaximize(): Promise<void>;
@@ -1945,7 +2053,7 @@ interface AppHostWindow {
1945
2053
  reportStartup(input: AppWindowStartupResult): Promise<void>;
1946
2054
  }
1947
2055
  interface WindowRequester {
1948
- requireFeature(): void;
2056
+ requireFeature(feature?: "window-update-check-v1"): void;
1949
2057
  request<M extends WindowMethod>(method: M, params: WindowMethodMap[M]["params"]): Promise<WindowMethodMap[M]["result"]>;
1950
2058
  onEvent(listener: (event: AppHostEvent) => void): () => void;
1951
2059
  }
@@ -1965,7 +2073,7 @@ interface AppHost {
1965
2073
  lifecycle: AppHostLifecycle;
1966
2074
  system: AppHostSystem;
1967
2075
  window: AppHostWindow;
1968
- sessions: AppHostSessions & AppHostAuxiliarySessions & ConversationPreparation;
2076
+ sessions: AppHostSessions;
1969
2077
  desktop: AppHostDesktop;
1970
2078
  attachments: AppHostAttachments;
1971
2079
  workspace: AppHostWorkspace;
@@ -2025,4 +2133,4 @@ interface PluginAppConversationInput {
2025
2133
  declare function parsePluginAppComposerContexts(value: unknown): PluginAppConversationInput[];
2026
2134
 
2027
2135
  export { ATTACHMENTS_METHODS, AUXILIARY_METHODS, AppHostError, BROWSER_CAPTURE_PREVIEW_MAX_BYTES, COMMANDS_METHODS, DESKTOP_METHODS, EXTENSION_INPUTS, RESOURCE_CATALOG_METHODS, SYSTEM_METHODS, SYSTEM_SETTINGS_SECTIONS, SYSTEM_SHORTCUT_IDS, WINDOW_METHODS, canonicalDesktopRequest, connectAppHost, createAppAttachmentsApi, createAppAuxiliarySessionsApi, createAppCommandsApi, createAppDesktopApi, createAppSystemApi, createAppWindowApi, createPageFetchClient, createResourceCatalogApi, isAuxiliaryMethod, isCommandsMethod, isDesktopMethod, isResourceCatalogMethod, isSystemMethod, isWindowMethod, parsePluginAppComposerContexts, validAppCommandSnapshot, validAppWindowState, validAttachmentsInput, validAttachmentsResult, validAuxiliaryInput, validAuxiliaryResult, validBrowserSnapshot, validCommandInvocation, validCommandReceipt, validCommandsInput, validDesktopEvent, validDesktopInput, validDesktopNavigationTarget, validDesktopResult, validDesktopResultForInput, validDesktopTarget, validExtensionRequest, validExtensionResult, validPresentationSnapshot, validProjectRequest, validProjectSnapshot, validResourceCatalogInput, validResourceCatalogResult, validResourceChanged, validSessionSettingsTarget, validSystemEvent, validSystemInput, validSystemResult, validWindowEvent, validWindowInput, validWindowResult, validWorkspaceOperation };
2028
- export type { AgentConnection, AnnotationMode, AnnotationRect, AnnotationTarget, AppCommandRegistration, AppCommandSnapshot, AppContext, AppHost, AppHostAttachments, AppHostAuxiliarySessions, AppHostCommands, AppHostDesktop, AppHostErrorCode, AppHostErrorInfo, AppHostEvent, AppHostLifecycle, AppHostRetry, AppHostService, AppHostSessions, AppHostStorage, AppHostSystem, AppHostWindow, AppHostWorkspace, AppUnloadHandler, AppUnloadReason, AppUnloadRequest, AppWindowMaterialState, AppWindowOpenHostInput, AppWindowStartupResult, AppWindowState, AppearancePreferences, AttachmentsMethod, AttachmentsMethodMap, AuxiliaryMethod, AuxiliaryMethodMap, AuxiliaryOptions, AuxiliaryReceipt, AuxiliaryRequest, AuxiliarySelection, AuxiliaryWireRequest, BindDesktopTarget, BrowserAnnotationRecord, BrowserAnnotationSnapshot, BrowserPage, ClientConnection, CommandInvocation, CommandReceipt, CommandsMethod, CommandsMethodMap, ConnectParams, ConversationPreparation, DesktopGitChange, DesktopMethod, DesktopMethodMap, DesktopNavigationTarget, DesktopOpener, DesktopRoot, DesktopSearch, DesktopTarget, DesktopTerminal, DesktopTerminalInfo, DesktopTerminalRequestOriginal, DesktopTerminalRequestReceipt, DesktopTerminalSnapshot, DesktopText, DesktopToolEvent, DesktopWindow, ExtensionOperation, ExtensionRequest, JsonValue$1 as JsonValue, LoginResult, ModelProviderConnection, ModelProviderRequest, NavigationCompletionStatus, PluginAppActionReceipt, PluginAppActionResponse, PluginAppCatalog, PluginAppComposerContext, PluginAppHostState, PluginAppModelContext, PluginAppMount, PluginAppPreparedMessage, PluginAppPreparedTool, PluginAppRecord, PluginAppSource$1 as PluginAppSource, PluginAppSubmissionReceipt, PluginAppToolPolicy, PresentationSnapshot, ProjectRequest, ProjectSnapshot, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ResourceCatalogMethod, ResourceCatalogMethodMap, ResourceChanged, ServiceConnection, ServiceConnectionDescriptor, ServiceStatus, ServiceWork, ServiceWorkState, SessionSettingsTarget, SessionSettingsWireTarget, StorageGetResult, StoredFile, SystemEvent, SystemMethod, SystemMethodMap, SystemOpenInput, SystemOpenWireInput, SystemProject, SystemRequester, SystemShortcutId, WindowMethod, WindowMethodMap, WindowRequester, WindowStateChanged, WorkspaceConversationCreation, WorkspaceConversationResult, WorkspaceDirectoryPage, WorkspaceFilePage, WorkspaceOperation, WorkspaceOperationKind, WorkspaceOperationOriginal, WorkspaceRef, WorkspaceSelection, WorkspaceText };
2136
+ export type { AgentConnection, AnnotationMode, AnnotationRect, AnnotationTarget, AppCommandRegistration, AppCommandSnapshot, AppContext, AppHost, AppHostAttachments, AppHostCommands, AppHostDesktop, AppHostErrorCode, AppHostErrorInfo, AppHostEvent, AppHostFileOperations, AppHostGitOperations, AppHostLifecycle, AppHostRetry, AppHostService, AppHostSessions, AppHostStorage, AppHostSystem, AppHostTerminalOperations, AppHostWindow, AppHostWorkspace, AppUnloadHandler, AppUnloadReason, AppUnloadRequest, AppWindowMaterialState, AppWindowOpenHostInput, AppWindowStartupResult, AppWindowState, AppWindowUpdateCheckResult, AppWindowUpdateState, AppearancePreferences, AttachmentsMethod, AttachmentsMethodMap, AuxiliaryMethod, AuxiliaryMethodMap, AuxiliaryOptions, AuxiliaryReceipt, AuxiliaryRequest, AuxiliarySelection, AuxiliarySessionsGroup, AuxiliaryWireRequest, BindDesktopTarget, BrowserAnnotationRecord, BrowserAnnotationSnapshot, BrowserPage, ClientConnection, CommandInvocation, CommandReceipt, CommandsMethod, CommandsMethodMap, ConnectParams, ConversationPreparationGroup, DesktopGitChange, DesktopMethod, DesktopMethodMap, DesktopNavigationTarget, DesktopOpener, DesktopRoot, DesktopSearch, DesktopTarget, DesktopTerminal, DesktopTerminalInfo, DesktopTerminalRequestOriginal, DesktopTerminalRequestReceipt, DesktopTerminalSnapshot, DesktopText, DesktopToolEvent, DesktopWindow, ExtensionOperation, ExtensionRequest, FileOperationOriginal, GitOperationOriginal, JsonValue$1 as JsonValue, LocalWorkspaceRequest, LocalWorkspaceResult, LoginResult, ModelProviderConnection, ModelProviderRequest, NavigationCompletionStatus, PluginAppActionReceipt, PluginAppActionResponse, PluginAppCatalog, PluginAppComposerContext, PluginAppHostState, PluginAppModelContext, PluginAppMount, PluginAppPreparedMessage, PluginAppPreparedTool, PluginAppRecord, PluginAppSource$1 as PluginAppSource, PluginAppSubmissionReceipt, PluginAppToolPolicy, PresentationSnapshot, ProjectRequest, ProjectSnapshot, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ResourceCatalogMethod, ResourceCatalogMethodMap, ResourceChanged, ServiceConnection, ServiceConnectionDescriptor, ServiceStatus, ServiceWork, ServiceWorkState, SessionSettingsTarget, SessionSettingsWireTarget, StorageGetResult, StoredFile, SystemEvent, SystemMethod, SystemMethodMap, SystemOpenInput, SystemOpenWireInput, SystemProject, SystemRequester, SystemShortcutId, WindowMethod, WindowMethodMap, WindowRequester, WindowStateChanged, WorkspaceConversationCreation, WorkspaceConversationResult, WorkspaceDirectory, WorkspaceDirectoryPage, WorkspaceFilePage, WorkspaceOperation, WorkspaceOperationKind, WorkspaceOperationOriginal, WorkspaceRef, WorkspaceSelection, WorkspaceText };