@bobannomi/app-host 0.2.0 → 0.3.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 +78 -6
- package/dist/index.js +179 -63
- package/dist/index.js.map +3 -3
- package/dist/protocol.d.ts +252 -8
- package/dist/protocol.js +159 -29
- package/dist/protocol.js.map +3 -3
- package/package.json +2 -2
package/dist/protocol.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ declare class AppHostError extends Error {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
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"];
|
|
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", "workbench-computer-v1"];
|
|
235
235
|
type AppHostFeature = (typeof APP_HOST_FEATURES)[number];
|
|
236
236
|
declare const FETCH_CHUNK_BYTES: number;
|
|
237
237
|
declare const FETCH_INLINE_BODY_BYTES: number;
|
|
@@ -614,6 +614,29 @@ type WorkspaceMethod = "workspace.select" | "workspace.getSelection" | "workspac
|
|
|
614
614
|
declare function validWorkspaceInput(method: WorkspaceMethod, v: unknown): boolean;
|
|
615
615
|
declare function validWorkspaceResult(method: WorkspaceMethod, v: unknown): boolean;
|
|
616
616
|
|
|
617
|
+
interface WorkspaceDirectory {
|
|
618
|
+
readonly id: string;
|
|
619
|
+
readonly displayName: string;
|
|
620
|
+
listFiles(options?: {
|
|
621
|
+
directory?: string;
|
|
622
|
+
cursor?: string;
|
|
623
|
+
}): Promise<WorkspaceFilePage>;
|
|
624
|
+
readText(path: string): Promise<WorkspaceText>;
|
|
625
|
+
}
|
|
626
|
+
interface AppHostWorkspace {
|
|
627
|
+
list(input?: {
|
|
628
|
+
cursor?: string;
|
|
629
|
+
}): Promise<WorkspaceDirectoryPage>;
|
|
630
|
+
/** Supply and save requestId before opening the picker if its result needs to be recovered. */
|
|
631
|
+
pick(input?: {
|
|
632
|
+
requestId?: string;
|
|
633
|
+
}): Promise<WorkspaceDirectory | null>;
|
|
634
|
+
open(id: string): Promise<WorkspaceDirectory>;
|
|
635
|
+
getSelection(input: {
|
|
636
|
+
requestId: string;
|
|
637
|
+
}): Promise<WorkspaceSelection>;
|
|
638
|
+
}
|
|
639
|
+
|
|
617
640
|
interface WorkspaceDirectoryPage {
|
|
618
641
|
entries: WorkspaceRef[];
|
|
619
642
|
nextCursor?: string;
|
|
@@ -647,6 +670,10 @@ declare function createResourceCatalogApi(rpc: {
|
|
|
647
670
|
}) => Promise<WorkspaceDirectoryPage>;
|
|
648
671
|
};
|
|
649
672
|
|
|
673
|
+
interface ConversationPreparationGroup {
|
|
674
|
+
create(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult>;
|
|
675
|
+
getResult(input: WorkspaceConversationCreation): Promise<WorkspaceConversationResult | null>;
|
|
676
|
+
}
|
|
650
677
|
declare const CONVERSATION_PREPARATION_METHODS: readonly ["sessions.createConversation", "sessions.getConversationCreationResult"];
|
|
651
678
|
type ConversationPreparationMethod = (typeof CONVERSATION_PREPARATION_METHODS)[number];
|
|
652
679
|
type ConversationPreparationMethodMap = Pick<SessionControlMethodMap, ConversationPreparationMethod>;
|
|
@@ -1815,7 +1842,7 @@ type ProviderDefaultsRequest = {
|
|
|
1815
1842
|
model: string;
|
|
1816
1843
|
};
|
|
1817
1844
|
|
|
1818
|
-
declare const SYSTEM_SETTINGS_SECTIONS: readonly ["general", "notifications", "profile", "appearance", "keyboard", "providers", "permissions", "personalization", "billing", "
|
|
1845
|
+
declare const SYSTEM_SETTINGS_SECTIONS: readonly ["general", "notifications", "profile", "appearance", "keyboard", "providers", "permissions", "personalization", "billing", "terminal", "git", "runtime", "storage", "diagnostics"];
|
|
1819
1846
|
type SessionSettingsOriginal = Extract<SessionControlOriginal, {
|
|
1820
1847
|
action: "fork";
|
|
1821
1848
|
}>;
|
|
@@ -1936,7 +1963,21 @@ type SystemEvent = {
|
|
|
1936
1963
|
type: "git-preferences-changed";
|
|
1937
1964
|
defaultTaskLocation: "current" | "worktree";
|
|
1938
1965
|
};
|
|
1939
|
-
declare const
|
|
1966
|
+
declare const CHANNEL_SETTINGS_ACTIONS: readonly ["snapshot", "runtimeStatus", "connect", "patch", "remove", "allowAdd", "allowRemove", "startRegistration", "registrationStatus", "cancelRegistration", "startRuntime", "stopRuntime"];
|
|
1967
|
+
type ChannelSettingsAction = typeof CHANNEL_SETTINGS_ACTIONS[number];
|
|
1968
|
+
type ChannelSettingsRequest = {
|
|
1969
|
+
action: ChannelSettingsAction;
|
|
1970
|
+
input?: unknown;
|
|
1971
|
+
};
|
|
1972
|
+
type ChannelSettingsResult = {
|
|
1973
|
+
value: object;
|
|
1974
|
+
} | {
|
|
1975
|
+
error: "invalid_configuration" | "conflict";
|
|
1976
|
+
};
|
|
1977
|
+
type RequestChannelSettings = (request: ChannelSettingsRequest) => Promise<ChannelSettingsResult>;
|
|
1978
|
+
/** Internal bridge used by the bundled workbench settings page. */
|
|
1979
|
+
declare function workbenchChannelSettings(system: object): RequestChannelSettings;
|
|
1980
|
+
declare const SYSTEM_METHODS: readonly ["system.projects", "system.workspace", "system.extensions", "system.modelProviders", "system.channelSettings", "system.providerDefaults", "system.open", "system.getPresentationPreferences", "system.setTheme", "system.setWindowMaterial", "system.copyText", "system.openExternal", "system.navigationReady", "system.completeNavigation"];
|
|
1940
1981
|
interface SystemMethodMap {
|
|
1941
1982
|
"system.projects": {
|
|
1942
1983
|
params: ProjectRequest;
|
|
@@ -1954,6 +1995,10 @@ interface SystemMethodMap {
|
|
|
1954
1995
|
params: ModelProviderRequest;
|
|
1955
1996
|
result: ModelProviderConnection[];
|
|
1956
1997
|
};
|
|
1998
|
+
"system.channelSettings": {
|
|
1999
|
+
params: ChannelSettingsRequest;
|
|
2000
|
+
result: ChannelSettingsResult;
|
|
2001
|
+
};
|
|
1957
2002
|
"system.providerDefaults": {
|
|
1958
2003
|
params: ProviderDefaultsRequest;
|
|
1959
2004
|
result: ProviderDefaultsSnapshot | ProviderConnectionTestResult;
|
|
@@ -2056,6 +2101,13 @@ interface SystemRequester {
|
|
|
2056
2101
|
}
|
|
2057
2102
|
declare function createAppSystemApi(requester: SystemRequester, connectionOwner: object): AppHostSystem;
|
|
2058
2103
|
|
|
2104
|
+
interface AppHostSessions {
|
|
2105
|
+
/** Handles share the page's connection. Closing any handle ends the
|
|
2106
|
+
* connection and all its in-flight requests. */
|
|
2107
|
+
getConnection(): Promise<AgentConnection>;
|
|
2108
|
+
preparation: ConversationPreparationGroup;
|
|
2109
|
+
auxiliary: AuxiliarySessionsGroup;
|
|
2110
|
+
}
|
|
2059
2111
|
type SessionResourceMethod = "sessions.getConnection";
|
|
2060
2112
|
declare function validSessionResourceInput(method: SessionResourceMethod, v: unknown): boolean;
|
|
2061
2113
|
declare function validSessionResourceResult(_method: SessionResourceMethod, v: unknown): v is {
|
|
@@ -2064,6 +2116,25 @@ declare function validSessionResourceResult(_method: SessionResourceMethod, v: u
|
|
|
2064
2116
|
defaultTaskLocation?: "current" | "worktree";
|
|
2065
2117
|
};
|
|
2066
2118
|
|
|
2119
|
+
interface ServiceConnection {
|
|
2120
|
+
readonly baseUrl: string;
|
|
2121
|
+
readonly apiVersion: string;
|
|
2122
|
+
fetch: typeof fetch;
|
|
2123
|
+
isClosed(): boolean;
|
|
2124
|
+
close(): void;
|
|
2125
|
+
}
|
|
2126
|
+
interface AppHostService {
|
|
2127
|
+
getStatus(): Promise<ServiceStatus>;
|
|
2128
|
+
getConnection(input: {
|
|
2129
|
+
apiRange: string;
|
|
2130
|
+
}): Promise<ServiceConnection>;
|
|
2131
|
+
listWork(): Promise<ServiceWork[]>;
|
|
2132
|
+
getWork(requestId: string): Promise<ServiceWork>;
|
|
2133
|
+
interruptWork(requestId: string): Promise<{
|
|
2134
|
+
requested: boolean;
|
|
2135
|
+
}>;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2067
2138
|
type AppUnloadReason = "switch" | "reload" | "disable" | "quit";
|
|
2068
2139
|
type AppLifecycleFrame = {
|
|
2069
2140
|
protocol: 1;
|
|
@@ -2082,6 +2153,179 @@ type AppLifecycleFrame = {
|
|
|
2082
2153
|
};
|
|
2083
2154
|
/** Only finite plain-data frames cross the document port. */
|
|
2084
2155
|
declare function isAppLifecycleFrame(value: unknown): value is AppLifecycleFrame;
|
|
2156
|
+
interface AppUnloadRequest {
|
|
2157
|
+
id: string;
|
|
2158
|
+
reason: AppUnloadReason;
|
|
2159
|
+
signal: AbortSignal;
|
|
2160
|
+
}
|
|
2161
|
+
type AppUnloadHandler = (request: AppUnloadRequest) => Promise<boolean> | boolean;
|
|
2162
|
+
interface AppHostLifecycle {
|
|
2163
|
+
/** Freeze editing and save/read back current work. Abort restores editing after cancellation. */
|
|
2164
|
+
onPrepareUnload(handler: AppUnloadHandler): () => void;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
interface AppHostStorage {
|
|
2168
|
+
get(key: string): Promise<StorageGetResult>;
|
|
2169
|
+
set(key: string, value: JsonValue): Promise<void>;
|
|
2170
|
+
delete(key: string): Promise<void>;
|
|
2171
|
+
putFile(name: string, data: Blob): Promise<StoredFile>;
|
|
2172
|
+
readFile(id: string): Promise<Response>;
|
|
2173
|
+
deleteFile(id: string): Promise<void>;
|
|
2174
|
+
}
|
|
2175
|
+
interface AppHost {
|
|
2176
|
+
hasFeature(feature: AppHostFeature): boolean;
|
|
2177
|
+
commands: AppHostCommands;
|
|
2178
|
+
lifecycle: AppHostLifecycle;
|
|
2179
|
+
system: AppHostSystem;
|
|
2180
|
+
window: AppHostWindow;
|
|
2181
|
+
sessions: AppHostSessions;
|
|
2182
|
+
desktop: AppHostDesktop;
|
|
2183
|
+
attachments: AppHostAttachments;
|
|
2184
|
+
workspace: AppHostWorkspace;
|
|
2185
|
+
service: AppHostService;
|
|
2186
|
+
getContext(): Promise<AppContext>;
|
|
2187
|
+
onEvent(listener: (event: AppHostEvent) => void): () => void;
|
|
2188
|
+
storage: AppHostStorage;
|
|
2189
|
+
auth: {
|
|
2190
|
+
openLogin(input: {
|
|
2191
|
+
url: string;
|
|
2192
|
+
}): Promise<LoginResult>;
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
type DesktopComputerAvailability = "unsupported" | "disabled" | "missing_driver" | "ready";
|
|
2197
|
+
interface DesktopComputerCandidate {
|
|
2198
|
+
id: string;
|
|
2199
|
+
label: string;
|
|
2200
|
+
detail?: string;
|
|
2201
|
+
}
|
|
2202
|
+
type DesktopComputerPrompt = {
|
|
2203
|
+
id: string;
|
|
2204
|
+
} & ({
|
|
2205
|
+
kind: "authorize";
|
|
2206
|
+
sessionId: string;
|
|
2207
|
+
appName: string;
|
|
2208
|
+
} | {
|
|
2209
|
+
kind: "choose";
|
|
2210
|
+
sessionId: string;
|
|
2211
|
+
candidates: readonly DesktopComputerCandidate[];
|
|
2212
|
+
confirmChange?: true;
|
|
2213
|
+
});
|
|
2214
|
+
type DesktopComputerInteractionEvent = {
|
|
2215
|
+
type: "prompt";
|
|
2216
|
+
prompt: DesktopComputerPrompt;
|
|
2217
|
+
} | {
|
|
2218
|
+
type: "dismissed";
|
|
2219
|
+
id: string;
|
|
2220
|
+
};
|
|
2221
|
+
interface DesktopComputerInteractionReply {
|
|
2222
|
+
id: string;
|
|
2223
|
+
choice: string | null;
|
|
2224
|
+
}
|
|
2225
|
+
interface DesktopComputerActivity {
|
|
2226
|
+
sessionId: string;
|
|
2227
|
+
runId: string;
|
|
2228
|
+
phase: "ready" | "observing" | "foreground" | "paused" | "stopped";
|
|
2229
|
+
app?: string;
|
|
2230
|
+
title?: string;
|
|
2231
|
+
action?: string;
|
|
2232
|
+
evidence?: string;
|
|
2233
|
+
reason?: string;
|
|
2234
|
+
captureEnabled?: boolean;
|
|
2235
|
+
captureRevocation?: "pending" | "failed";
|
|
2236
|
+
inputRelease?: "pending" | "failed";
|
|
2237
|
+
preview?: {
|
|
2238
|
+
dataUrl: string;
|
|
2239
|
+
width: number;
|
|
2240
|
+
height: number;
|
|
2241
|
+
};
|
|
2242
|
+
}
|
|
2243
|
+
interface DesktopComputerActivityUpdate {
|
|
2244
|
+
sessionId: string;
|
|
2245
|
+
activity: DesktopComputerActivity | null;
|
|
2246
|
+
}
|
|
2247
|
+
interface DesktopComputerControl {
|
|
2248
|
+
sessionId: string;
|
|
2249
|
+
runId: string;
|
|
2250
|
+
action: "pause" | "resume" | "disable_capture" | "enable_capture";
|
|
2251
|
+
}
|
|
2252
|
+
declare const WORKBENCH_COMPUTER_FEATURE: "workbench-computer-v1";
|
|
2253
|
+
declare const workbenchComputerKey: unique symbol;
|
|
2254
|
+
interface WorkbenchComputer {
|
|
2255
|
+
availability(): Promise<DesktopComputerAvailability>;
|
|
2256
|
+
setConversation(sessionId: string | null): Promise<void>;
|
|
2257
|
+
preparePrompt(sessionId: string, inputId: string): Promise<boolean>;
|
|
2258
|
+
stopLocal(sessionId: string, runId: string): Promise<void>;
|
|
2259
|
+
getActivity(sessionId: string): Promise<DesktopComputerActivity | null>;
|
|
2260
|
+
reply(input: DesktopComputerInteractionReply): Promise<boolean>;
|
|
2261
|
+
control(input: DesktopComputerControl): Promise<boolean>;
|
|
2262
|
+
shareWindow(): Promise<{
|
|
2263
|
+
bytes: Uint8Array;
|
|
2264
|
+
} | null>;
|
|
2265
|
+
onActivity(listener: (event: DesktopComputerActivityUpdate) => void): () => void;
|
|
2266
|
+
onPrompt(listener: (event: DesktopComputerInteractionEvent) => void): () => void;
|
|
2267
|
+
}
|
|
2268
|
+
/** @internal Only for the bundled workbench. Main checks the document on every call. */
|
|
2269
|
+
declare function workbenchComputer(host: AppHost): WorkbenchComputer | undefined;
|
|
2270
|
+
declare const WORKBENCH_COMPUTER_METHODS: readonly ["workbench.computer.availability", "workbench.computer.setConversation", "workbench.computer.preparePrompt", "workbench.computer.getActivity", "workbench.computer.reply", "workbench.computer.control", "workbench.computer.shareWindow", "workbench.computer.stopLocal"];
|
|
2271
|
+
type WorkbenchComputerMethod = typeof WORKBENCH_COMPUTER_METHODS[number];
|
|
2272
|
+
interface WorkbenchComputerMethodMap {
|
|
2273
|
+
"workbench.computer.availability": {
|
|
2274
|
+
params: Record<string, never>;
|
|
2275
|
+
result: DesktopComputerAvailability;
|
|
2276
|
+
};
|
|
2277
|
+
"workbench.computer.setConversation": {
|
|
2278
|
+
params: {
|
|
2279
|
+
sessionId: string | null;
|
|
2280
|
+
};
|
|
2281
|
+
result: void;
|
|
2282
|
+
};
|
|
2283
|
+
"workbench.computer.preparePrompt": {
|
|
2284
|
+
params: {
|
|
2285
|
+
sessionId: string;
|
|
2286
|
+
inputId: string;
|
|
2287
|
+
};
|
|
2288
|
+
result: boolean;
|
|
2289
|
+
};
|
|
2290
|
+
"workbench.computer.stopLocal": {
|
|
2291
|
+
params: {
|
|
2292
|
+
sessionId: string;
|
|
2293
|
+
runId: string;
|
|
2294
|
+
};
|
|
2295
|
+
result: void;
|
|
2296
|
+
};
|
|
2297
|
+
"workbench.computer.getActivity": {
|
|
2298
|
+
params: {
|
|
2299
|
+
sessionId: string;
|
|
2300
|
+
};
|
|
2301
|
+
result: DesktopComputerActivity | null;
|
|
2302
|
+
};
|
|
2303
|
+
"workbench.computer.reply": {
|
|
2304
|
+
params: DesktopComputerInteractionReply;
|
|
2305
|
+
result: boolean;
|
|
2306
|
+
};
|
|
2307
|
+
"workbench.computer.control": {
|
|
2308
|
+
params: DesktopComputerControl;
|
|
2309
|
+
result: boolean;
|
|
2310
|
+
};
|
|
2311
|
+
"workbench.computer.shareWindow": {
|
|
2312
|
+
params: Record<string, never>;
|
|
2313
|
+
result: {
|
|
2314
|
+
bytes: Uint8Array;
|
|
2315
|
+
} | null;
|
|
2316
|
+
};
|
|
2317
|
+
}
|
|
2318
|
+
type WorkbenchComputerEvent = {
|
|
2319
|
+
type: "workbench-computer-activity";
|
|
2320
|
+
update: DesktopComputerActivityUpdate;
|
|
2321
|
+
} | {
|
|
2322
|
+
type: "workbench-computer-prompt";
|
|
2323
|
+
interaction: DesktopComputerInteractionEvent;
|
|
2324
|
+
};
|
|
2325
|
+
declare function isWorkbenchComputerMethod(method: string): method is WorkbenchComputerMethod;
|
|
2326
|
+
declare function validWorkbenchComputerInput(method: WorkbenchComputerMethod, value: unknown): boolean;
|
|
2327
|
+
declare function validWorkbenchComputerResult(method: WorkbenchComputerMethod, value: unknown): boolean;
|
|
2328
|
+
declare function validWorkbenchComputerEvent(value: unknown): value is WorkbenchComputerEvent;
|
|
2085
2329
|
|
|
2086
2330
|
/** Shared data contract. This module has no browser, Node or Electron side effects. */
|
|
2087
2331
|
declare const APP_HOST_PROTOCOL: 1;
|
|
@@ -2093,7 +2337,7 @@ declare const APP_HOST_REQUEST_TIMEOUT_MS = 30000;
|
|
|
2093
2337
|
declare const APP_HOST_PORT_TIMEOUT_MS = 10000;
|
|
2094
2338
|
declare const APP_HOST_LOGIN_TIMEOUT_MS = 300000;
|
|
2095
2339
|
declare const APP_HOST_LOGIN_TRANSPORT_TIMEOUT_MS: number;
|
|
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"];
|
|
2340
|
+
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.channelSettings", "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", "workbench.computer.availability", "workbench.computer.setConversation", "workbench.computer.preparePrompt", "workbench.computer.getActivity", "workbench.computer.reply", "workbench.computer.control", "workbench.computer.shareWindow", "workbench.computer.stopLocal"];
|
|
2097
2341
|
|
|
2098
2342
|
interface AppContext {
|
|
2099
2343
|
readonly appId: string;
|
|
@@ -2110,7 +2354,7 @@ interface AppContext {
|
|
|
2110
2354
|
}>>;
|
|
2111
2355
|
readonly storageQuotaBytes: number;
|
|
2112
2356
|
}
|
|
2113
|
-
type AppHostEvent = DesktopToolEvent | SystemEvent | CommandInvocation | ResourceChanged | WindowStateChanged | {
|
|
2357
|
+
type AppHostEvent = DesktopToolEvent | SystemEvent | CommandInvocation | ResourceChanged | WindowStateChanged | WorkbenchComputerEvent | {
|
|
2114
2358
|
type: "service-changed";
|
|
2115
2359
|
service: ServiceStatus;
|
|
2116
2360
|
} | {
|
|
@@ -2146,7 +2390,7 @@ type LoginResult = {
|
|
|
2146
2390
|
interface ConnectParams {
|
|
2147
2391
|
hostApi: string;
|
|
2148
2392
|
}
|
|
2149
|
-
interface AppHostMethodMap extends CommandsMethodMap, ResourceCatalogMethodMap, ConversationPreparationMethodMap, DesktopMethodMap, AttachmentsMethodMap, AuxiliaryMethodMap, SystemMethodMap, WindowMethodMap {
|
|
2393
|
+
interface AppHostMethodMap extends CommandsMethodMap, ResourceCatalogMethodMap, ConversationPreparationMethodMap, DesktopMethodMap, AttachmentsMethodMap, AuxiliaryMethodMap, SystemMethodMap, WindowMethodMap, WorkbenchComputerMethodMap {
|
|
2150
2394
|
"sessions.getConnection": {
|
|
2151
2395
|
params: Record<string, never>;
|
|
2152
2396
|
result: {
|
|
@@ -2314,5 +2558,5 @@ interface AppHostPortMessage {
|
|
|
2314
2558
|
protocol: 1;
|
|
2315
2559
|
}
|
|
2316
2560
|
|
|
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 };
|
|
2561
|
+
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, WORKBENCH_COMPUTER_FEATURE, WORKBENCH_COMPUTER_METHODS, appHostErrorMessage, canonicalDesktopRequest, createAppAttachmentsApi, createAppAuxiliarySessionsApi, createAppCommandsApi, createAppDesktopApi, createAppSystemApi, createAppWindowApi, createResourceCatalogApi, isAppHostErrorInfo, isAppLifecycleFrame, isAuxiliaryMethod, isCommandsMethod, isConversationPreparationMethod, isDesktopMethod, isPageFetchFrame, isResourceCatalogMethod, isSafeErrorDetails, isSystemMethod, isWindowMethod, isWorkbenchComputerMethod, 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, validWorkbenchComputerEvent, validWorkbenchComputerInput, validWorkbenchComputerResult, validWorkspaceInput, validWorkspaceOperation, validWorkspaceResult, workbenchChannelSettings, workbenchComputer, workbenchComputerKey };
|
|
2562
|
+
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, ChannelSettingsAction, CommandInvocation, CommandReceipt, CommandsMethod, CommandsMethodMap, ConnectParams, ConversationPreparationMethod, ConversationPreparationMethodMap, DesktopComputerActivity, DesktopComputerActivityUpdate, DesktopComputerAvailability, DesktopComputerCandidate, DesktopComputerControl, DesktopComputerInteractionEvent, DesktopComputerInteractionReply, DesktopComputerPrompt, 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, WorkbenchComputer, WorkbenchComputerEvent, WorkbenchComputerMethod, WorkbenchComputerMethodMap, WorkspaceDirectoryPage, WorkspaceFilePage, WorkspaceMethod, WorkspaceOperation, WorkspaceOperationKind, WorkspaceOperationOriginal, WorkspaceRef, WorkspaceSelection, WorkspaceText };
|