@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/README.md +16 -11
- package/dist/index.d.ts +314 -206
- package/dist/index.js +689 -282
- package/dist/index.js.map +3 -3
- package/dist/protocol.d.ts +297 -357
- package/dist/protocol.js +328 -315
- package/dist/protocol.js.map +3 -3
- package/package.json +4 -9
- package/dist/node/service-host.d.ts +0 -1418
- package/dist/node/service-host.js +0 -1379
- package/dist/node/service-host.js.map +0 -6
package/dist/protocol.d.ts
CHANGED
|
@@ -85,6 +85,20 @@ interface AppWindowMaterialState {
|
|
|
85
85
|
shell: "solid" | "translucent" | "transparent";
|
|
86
86
|
unavailableReason: "unsupported-platform" | "unsupported-system" | "reduced-transparency" | "material-error" | null;
|
|
87
87
|
}
|
|
88
|
+
/** Host update facts for a custom title bar. Actions stay in the host's About window. */
|
|
89
|
+
type AppWindowUpdateState = {
|
|
90
|
+
status: "idle" | "checking" | "error";
|
|
91
|
+
} | {
|
|
92
|
+
status: "available" | "downloaded";
|
|
93
|
+
version: string;
|
|
94
|
+
} | {
|
|
95
|
+
status: "downloading";
|
|
96
|
+
version: string;
|
|
97
|
+
percent: number;
|
|
98
|
+
};
|
|
99
|
+
type AppWindowUpdateCheckResult = AppWindowUpdateState | {
|
|
100
|
+
status: "unsupported";
|
|
101
|
+
};
|
|
88
102
|
interface AppWindowState {
|
|
89
103
|
platform: "win32" | "darwin" | "linux";
|
|
90
104
|
maximized: boolean;
|
|
@@ -92,6 +106,7 @@ interface AppWindowState {
|
|
|
92
106
|
/** Horizontal space to reserve inside the application's title bar, in page coordinates. */
|
|
93
107
|
trafficLightInset: number;
|
|
94
108
|
material: AppWindowMaterialState;
|
|
109
|
+
update?: AppWindowUpdateState;
|
|
95
110
|
}
|
|
96
111
|
interface AppWindowOpenHostInput {
|
|
97
112
|
page: "manage" | "settings" | "about" | "recovery";
|
|
@@ -106,12 +121,16 @@ interface WindowStateChanged {
|
|
|
106
121
|
type: "window-state-changed";
|
|
107
122
|
state: AppWindowState;
|
|
108
123
|
}
|
|
109
|
-
declare const WINDOW_METHODS: readonly ["window.getState", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
|
|
124
|
+
declare const WINDOW_METHODS: readonly ["window.getState", "window.checkForUpdates", "window.minimize", "window.toggleMaximize", "window.requestClose", "window.openHost", "window.reportStartup"];
|
|
110
125
|
interface WindowMethodMap {
|
|
111
126
|
"window.getState": {
|
|
112
127
|
params: Record<string, never>;
|
|
113
128
|
result: AppWindowState;
|
|
114
129
|
};
|
|
130
|
+
"window.checkForUpdates": {
|
|
131
|
+
params: Record<string, never>;
|
|
132
|
+
result: AppWindowUpdateCheckResult;
|
|
133
|
+
};
|
|
115
134
|
"window.minimize": {
|
|
116
135
|
params: Record<string, never>;
|
|
117
136
|
result: void;
|
|
@@ -141,6 +160,7 @@ declare function validWindowResult(method: WindowMethod, value: unknown): boolea
|
|
|
141
160
|
declare function validWindowEvent(value: unknown): value is WindowStateChanged;
|
|
142
161
|
interface AppHostWindow {
|
|
143
162
|
getState(): Promise<AppWindowState>;
|
|
163
|
+
checkForUpdates(): Promise<AppWindowUpdateCheckResult>;
|
|
144
164
|
onStateChanged(listener: (state: AppWindowState) => void): () => void;
|
|
145
165
|
minimize(): Promise<void>;
|
|
146
166
|
toggleMaximize(): Promise<void>;
|
|
@@ -150,7 +170,7 @@ interface AppHostWindow {
|
|
|
150
170
|
reportStartup(input: AppWindowStartupResult): Promise<void>;
|
|
151
171
|
}
|
|
152
172
|
interface WindowRequester {
|
|
153
|
-
requireFeature(): void;
|
|
173
|
+
requireFeature(feature?: "window-update-check-v1"): void;
|
|
154
174
|
request<M extends WindowMethod>(method: M, params: WindowMethodMap[M]["params"]): Promise<WindowMethodMap[M]["result"]>;
|
|
155
175
|
onEvent(listener: (event: AppHostEvent) => void): () => void;
|
|
156
176
|
}
|
|
@@ -181,6 +201,8 @@ declare const APP_HOST_ERROR_RETRY: {
|
|
|
181
201
|
readonly resource_revision_conflict: "query";
|
|
182
202
|
readonly request_conflict: "never";
|
|
183
203
|
readonly cursor_stale: "query";
|
|
204
|
+
readonly model_provider_not_configured: "never";
|
|
205
|
+
readonly model_not_configured: "never";
|
|
184
206
|
};
|
|
185
207
|
type AppHostErrorCode = keyof typeof APP_HOST_ERROR_RETRY;
|
|
186
208
|
type AppHostRetry = "safe" | "never" | "query";
|
|
@@ -209,27 +231,8 @@ declare class AppHostError extends Error {
|
|
|
209
231
|
});
|
|
210
232
|
}
|
|
211
233
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
reason?: "dependency_missing" | "service_start_failed" | "service_unavailable" | "result_unknown" | "incompatible" | "revoked";
|
|
215
|
-
instanceId?: string;
|
|
216
|
-
apiVersion?: string;
|
|
217
|
-
}
|
|
218
|
-
interface ServiceWork {
|
|
219
|
-
requestId: string;
|
|
220
|
-
state: ServiceWorkState;
|
|
221
|
-
updatedAt: string;
|
|
222
|
-
result?: JsonValue;
|
|
223
|
-
error?: JsonValue;
|
|
224
|
-
}
|
|
225
|
-
interface ServiceConnectionDescriptor {
|
|
226
|
-
connectionId: string;
|
|
227
|
-
baseUrl: string;
|
|
228
|
-
apiVersion: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
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"];
|
|
232
|
-
type AppHostFeature = typeof APP_HOST_FEATURES[number];
|
|
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"];
|
|
235
|
+
type AppHostFeature = (typeof APP_HOST_FEATURES)[number];
|
|
233
236
|
declare const FETCH_CHUNK_BYTES: number;
|
|
234
237
|
declare const FETCH_INLINE_BODY_BYTES: number;
|
|
235
238
|
declare const FETCH_WINDOW_CHUNKS = 4;
|
|
@@ -295,167 +298,6 @@ declare function isPageFetchFrame(value: unknown): value is PageFetchFrame;
|
|
|
295
298
|
/** This URL is only an opaque document-local descriptor; it is never fetched over a network. */
|
|
296
299
|
declare function pageFetchPath(baseUrl: string, input: string): string;
|
|
297
300
|
|
|
298
|
-
interface ServiceContext {
|
|
299
|
-
protocolVersion: 1;
|
|
300
|
-
registrationId: string;
|
|
301
|
-
instanceId: string;
|
|
302
|
-
dataScopeId: string;
|
|
303
|
-
scope: {
|
|
304
|
-
appId: string;
|
|
305
|
-
installationId: string;
|
|
306
|
-
contentDigest: string;
|
|
307
|
-
};
|
|
308
|
-
installationRevision: number;
|
|
309
|
-
phase: "starting" | "ready";
|
|
310
|
-
}
|
|
311
|
-
interface ServiceInvocation {
|
|
312
|
-
invocationId: string;
|
|
313
|
-
dataScopeId: string;
|
|
314
|
-
sessionId: string;
|
|
315
|
-
runId: string;
|
|
316
|
-
inputId?: string;
|
|
317
|
-
workspaceId?: string;
|
|
318
|
-
executionRoot?: string;
|
|
319
|
-
privateSessionId?: string;
|
|
320
|
-
}
|
|
321
|
-
interface CreateWorktree {
|
|
322
|
-
requestId: string;
|
|
323
|
-
workspaceId: string;
|
|
324
|
-
expectedHead: string;
|
|
325
|
-
branch: string;
|
|
326
|
-
}
|
|
327
|
-
interface WorktreeQuery {
|
|
328
|
-
requestId: string;
|
|
329
|
-
original: Omit<CreateWorktree, "requestId">;
|
|
330
|
-
}
|
|
331
|
-
interface WorktreeReceipt {
|
|
332
|
-
requestId: string;
|
|
333
|
-
state: "accepted" | "completed" | "failed" | "unknown";
|
|
334
|
-
result?: {
|
|
335
|
-
executionRoot: string;
|
|
336
|
-
workspaceId: string;
|
|
337
|
-
branch: string;
|
|
338
|
-
sourceHead: string;
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
interface RootReleaseReceipt {
|
|
342
|
-
requestId: string;
|
|
343
|
-
executionRoot: string;
|
|
344
|
-
state: "released" | "retained-dirty" | "in-use" | "unknown";
|
|
345
|
-
}
|
|
346
|
-
interface GitStatus {
|
|
347
|
-
root: string;
|
|
348
|
-
commonDir: string;
|
|
349
|
-
head: string;
|
|
350
|
-
branch: string;
|
|
351
|
-
changes: string[];
|
|
352
|
-
}
|
|
353
|
-
type Entry$1<P, R> = {
|
|
354
|
-
params: P;
|
|
355
|
-
result: R;
|
|
356
|
-
};
|
|
357
|
-
interface ServiceHostMethodMap {
|
|
358
|
-
"secrets.get": Entry$1<{
|
|
359
|
-
key: string;
|
|
360
|
-
}, string | null>;
|
|
361
|
-
"secrets.set": Entry$1<{
|
|
362
|
-
key: string;
|
|
363
|
-
value: string;
|
|
364
|
-
}, {
|
|
365
|
-
stored: true;
|
|
366
|
-
}>;
|
|
367
|
-
"secrets.delete": Entry$1<{
|
|
368
|
-
key: string;
|
|
369
|
-
}, {
|
|
370
|
-
deleted: true;
|
|
371
|
-
}>;
|
|
372
|
-
"context.get": Entry$1<Record<string, never>, ServiceContext>;
|
|
373
|
-
"context.resolveInvocation": Entry$1<{
|
|
374
|
-
ticket: string;
|
|
375
|
-
}, ServiceInvocation>;
|
|
376
|
-
"agent.listModels": Entry$1<Record<string, never>, {
|
|
377
|
-
id: string;
|
|
378
|
-
name: string;
|
|
379
|
-
}[]>;
|
|
380
|
-
"agent.getConnection": Entry$1<{
|
|
381
|
-
workspaceId?: string;
|
|
382
|
-
executionRoot?: string;
|
|
383
|
-
privateSessionId?: string;
|
|
384
|
-
}, {
|
|
385
|
-
connectionId: string;
|
|
386
|
-
baseUrl: string;
|
|
387
|
-
}>;
|
|
388
|
-
"agent.resolveSkills": Entry$1<{
|
|
389
|
-
skillIds: string[];
|
|
390
|
-
}, {
|
|
391
|
-
type: "skill";
|
|
392
|
-
name: string;
|
|
393
|
-
path: string;
|
|
394
|
-
}[]>;
|
|
395
|
-
"sessions.getConnection": Entry$1<{
|
|
396
|
-
dataScopeId: string;
|
|
397
|
-
sessionId: string;
|
|
398
|
-
}, {
|
|
399
|
-
connectionId: string;
|
|
400
|
-
baseUrl: string;
|
|
401
|
-
}>;
|
|
402
|
-
"workspace.gitStatus": Entry$1<{
|
|
403
|
-
workspaceId: string;
|
|
404
|
-
}, GitStatus>;
|
|
405
|
-
"workspace.createTaskWorktree": Entry$1<CreateWorktree, WorktreeReceipt>;
|
|
406
|
-
"workspace.getWorktree": Entry$1<WorktreeQuery, WorktreeReceipt | null>;
|
|
407
|
-
"workspace.releaseExecutionRoot": Entry$1<{
|
|
408
|
-
requestId: string;
|
|
409
|
-
workspaceId: string;
|
|
410
|
-
executionRoot: string;
|
|
411
|
-
}, RootReleaseReceipt>;
|
|
412
|
-
"work.list": Entry$1<Record<string, never>, ServiceWork[]>;
|
|
413
|
-
"work.get": Entry$1<{
|
|
414
|
-
requestId: string;
|
|
415
|
-
}, ServiceWork | null>;
|
|
416
|
-
}
|
|
417
|
-
type ServiceHostMethod = keyof ServiceHostMethodMap;
|
|
418
|
-
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"];
|
|
419
|
-
declare const SERVICE_HOST_MAX_FRAME_BYTES: number;
|
|
420
|
-
declare const SERVICE_HOST_MAX_PENDING = 64;
|
|
421
|
-
declare const validServiceContext: (v: unknown) => v is ServiceContext;
|
|
422
|
-
declare function validServiceHostInput(method: ServiceHostMethod, v: unknown): boolean;
|
|
423
|
-
declare function validServiceHostResult(method: ServiceHostMethod, v: unknown): boolean;
|
|
424
|
-
type ServiceHostFrame = PageFetchFrame | {
|
|
425
|
-
protocol: 1;
|
|
426
|
-
type: "service-host-connect";
|
|
427
|
-
id: string;
|
|
428
|
-
} | {
|
|
429
|
-
protocol: 1;
|
|
430
|
-
type: "service-host-ready";
|
|
431
|
-
id: string;
|
|
432
|
-
context: ServiceContext;
|
|
433
|
-
} | {
|
|
434
|
-
protocol: 1;
|
|
435
|
-
type: "service-host-context";
|
|
436
|
-
context: ServiceContext;
|
|
437
|
-
} | {
|
|
438
|
-
protocol: 1;
|
|
439
|
-
type: "service-host-request";
|
|
440
|
-
id: string;
|
|
441
|
-
method: ServiceHostMethod;
|
|
442
|
-
params: ServiceHostMethodMap[ServiceHostMethod]["params"];
|
|
443
|
-
} | ({
|
|
444
|
-
protocol: 1;
|
|
445
|
-
type: "service-host-response";
|
|
446
|
-
id: string;
|
|
447
|
-
} & ({
|
|
448
|
-
ok: true;
|
|
449
|
-
value: unknown;
|
|
450
|
-
} | {
|
|
451
|
-
ok: false;
|
|
452
|
-
error: AppHostErrorInfo;
|
|
453
|
-
})) | {
|
|
454
|
-
protocol: 1;
|
|
455
|
-
type: "service-host-close";
|
|
456
|
-
};
|
|
457
|
-
declare function isServiceHostFrame(v: unknown): v is ServiceHostFrame;
|
|
458
|
-
|
|
459
301
|
interface AgentApiRoute {
|
|
460
302
|
readonly id: string;
|
|
461
303
|
}
|
|
@@ -492,7 +334,6 @@ interface SessionConfigurationInput {
|
|
|
492
334
|
pluginAutoSelectionEnabled?: boolean;
|
|
493
335
|
activePluginId?: string | null;
|
|
494
336
|
pluginIds?: string[];
|
|
495
|
-
serviceBindings?: string[];
|
|
496
337
|
memory?: {
|
|
497
338
|
enabled: boolean;
|
|
498
339
|
};
|
|
@@ -520,26 +361,6 @@ interface SessionCreationReceipt {
|
|
|
520
361
|
revision?: number;
|
|
521
362
|
configuration?: SessionConfigurationSnapshot;
|
|
522
363
|
}
|
|
523
|
-
interface SessionConfigurationBinding {
|
|
524
|
-
revision: number;
|
|
525
|
-
/** Explicit creation choices plus subsequent editor deltas; never accepted as public metadata. */
|
|
526
|
-
configurationInput?: SessionConfigurationInput;
|
|
527
|
-
/** Original non-role defaults for fields that role selection can replace. */
|
|
528
|
-
roleBaseConfiguration?: SessionConfigurationInput;
|
|
529
|
-
effectiveConfiguration: ResolvedSessionConfiguration;
|
|
530
|
-
resolvedResources: (ConfigurationResourceRef & {
|
|
531
|
-
revision: string;
|
|
532
|
-
})[];
|
|
533
|
-
defaultsRevision: string;
|
|
534
|
-
configurationRoot: {
|
|
535
|
-
cwd: string;
|
|
536
|
-
settingsRoot: string;
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
interface ConfigurationResourceRef {
|
|
540
|
-
kind: "model" | "role" | "tool" | "plugin" | "service" | "skill" | "mcp";
|
|
541
|
-
id: string;
|
|
542
|
-
}
|
|
543
364
|
|
|
544
365
|
/** A directory's actual filesystem identity, captured by trusted execution code. */
|
|
545
366
|
interface SessionExecutionRoot {
|
|
@@ -570,7 +391,7 @@ type SessionExecutionSource = {
|
|
|
570
391
|
readonly sessionId: string;
|
|
571
392
|
readonly requestId: string;
|
|
572
393
|
};
|
|
573
|
-
/**
|
|
394
|
+
/** Actual roots and business source captured when work is accepted, then copied to Input/Run. */
|
|
574
395
|
interface SessionExecutionBinding {
|
|
575
396
|
readonly version: 1;
|
|
576
397
|
readonly cwd: SessionExecutionRoot;
|
|
@@ -596,7 +417,8 @@ interface SessionRecord {
|
|
|
596
417
|
agent?: string;
|
|
597
418
|
status: SessionStatus;
|
|
598
419
|
metadata: Record<string, unknown> & {
|
|
599
|
-
|
|
420
|
+
configurationInput?: SessionConfigurationInput;
|
|
421
|
+
pluginIds?: string[];
|
|
600
422
|
executionBinding?: SessionExecutionBinding;
|
|
601
423
|
};
|
|
602
424
|
createdAt: number;
|
|
@@ -604,20 +426,25 @@ interface SessionRecord {
|
|
|
604
426
|
archivedAt?: number;
|
|
605
427
|
}
|
|
606
428
|
|
|
607
|
-
interface
|
|
429
|
+
interface ConversationCreationOptions {
|
|
608
430
|
dataScopeId: string;
|
|
609
431
|
requestId: string;
|
|
610
432
|
sessionId: string;
|
|
611
|
-
workspaceId?: string;
|
|
612
|
-
outsideProject?: boolean;
|
|
613
|
-
taskLocation: "current" | "worktree";
|
|
614
433
|
configuration: SessionConfigurationInput;
|
|
615
434
|
preparationRevision?: string;
|
|
616
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
|
+
});
|
|
617
445
|
interface WorkspaceConversationResult extends SessionCreationReceipt {
|
|
618
446
|
session?: SessionRecord;
|
|
619
447
|
operationState?: "prepared" | "running" | "completed" | "failed" | "unknown";
|
|
620
|
-
indexBindingPending?: true;
|
|
621
448
|
workspaceId?: string;
|
|
622
449
|
executionRoot?: string;
|
|
623
450
|
privateSessionId?: string;
|
|
@@ -668,7 +495,6 @@ interface SessionControls {
|
|
|
668
495
|
efforts: ControlOption[];
|
|
669
496
|
workModes: ControlOption[];
|
|
670
497
|
permissionModes?: ControlOption[];
|
|
671
|
-
appServiceBindings?: ControlOption[];
|
|
672
498
|
skills: (ControlOption & {
|
|
673
499
|
path: string;
|
|
674
500
|
source?: string;
|
|
@@ -714,13 +540,6 @@ interface SessionControlMethodMap {
|
|
|
714
540
|
params: WorkspaceConversationCreation;
|
|
715
541
|
result: WorkspaceConversationResult;
|
|
716
542
|
};
|
|
717
|
-
"sessions.bindConversationIndex": {
|
|
718
|
-
params: {
|
|
719
|
-
original: WorkspaceConversationCreation;
|
|
720
|
-
dataScopeId: string;
|
|
721
|
-
};
|
|
722
|
-
result: WorkspaceConversationResult;
|
|
723
|
-
};
|
|
724
543
|
"sessions.getConversationCreationResult": {
|
|
725
544
|
params: WorkspaceConversationCreation;
|
|
726
545
|
result: WorkspaceConversationResult | null;
|
|
@@ -743,6 +562,25 @@ interface SessionControlMethodMap {
|
|
|
743
562
|
};
|
|
744
563
|
}
|
|
745
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
|
+
|
|
746
584
|
interface WorkspaceRef {
|
|
747
585
|
id: string;
|
|
748
586
|
displayName: string;
|
|
@@ -809,7 +647,7 @@ declare function createResourceCatalogApi(rpc: {
|
|
|
809
647
|
}) => Promise<WorkspaceDirectoryPage>;
|
|
810
648
|
};
|
|
811
649
|
|
|
812
|
-
declare const CONVERSATION_PREPARATION_METHODS: readonly ["sessions.createConversation", "sessions.getConversationCreationResult"
|
|
650
|
+
declare const CONVERSATION_PREPARATION_METHODS: readonly ["sessions.createConversation", "sessions.getConversationCreationResult"];
|
|
813
651
|
type ConversationPreparationMethod = (typeof CONVERSATION_PREPARATION_METHODS)[number];
|
|
814
652
|
type ConversationPreparationMethodMap = Pick<SessionControlMethodMap, ConversationPreparationMethod>;
|
|
815
653
|
declare function isConversationPreparationMethod(method: string): method is ConversationPreparationMethod;
|
|
@@ -851,7 +689,7 @@ interface DesktopTarget {
|
|
|
851
689
|
root?: DesktopRoot;
|
|
852
690
|
sessionId?: string;
|
|
853
691
|
}
|
|
854
|
-
type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch"
|
|
692
|
+
type WorkspaceOperationKind = "files.writeText" | "git.switchBranch" | "git.createBranch";
|
|
855
693
|
interface WorkspaceOperation {
|
|
856
694
|
requestId: string;
|
|
857
695
|
kind: WorkspaceOperationKind;
|
|
@@ -867,6 +705,21 @@ interface WorkspaceOperationOriginal {
|
|
|
867
705
|
kind: WorkspaceOperationKind;
|
|
868
706
|
body: JsonValue;
|
|
869
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
|
+
}
|
|
870
723
|
interface BindDesktopTarget {
|
|
871
724
|
directory?: string;
|
|
872
725
|
workspaceId?: string;
|
|
@@ -1148,7 +1001,7 @@ interface PluginAppCatalog {
|
|
|
1148
1001
|
}[];
|
|
1149
1002
|
}[];
|
|
1150
1003
|
}
|
|
1151
|
-
type Entry<P, R> = {
|
|
1004
|
+
type Entry$1<P, R> = {
|
|
1152
1005
|
params: P;
|
|
1153
1006
|
result: R;
|
|
1154
1007
|
};
|
|
@@ -1158,17 +1011,21 @@ type Target = {
|
|
|
1158
1011
|
type Mount = Target & {
|
|
1159
1012
|
mountId: string;
|
|
1160
1013
|
};
|
|
1161
|
-
type Action = Mount & {
|
|
1014
|
+
type Action$1 = Mount & {
|
|
1162
1015
|
requestId: string;
|
|
1163
1016
|
expectedRevision: number;
|
|
1164
1017
|
source: PluginAppSource;
|
|
1165
1018
|
};
|
|
1019
|
+
type OperationQuery<Original> = Target & {
|
|
1020
|
+
requestId: string;
|
|
1021
|
+
original: Original;
|
|
1022
|
+
};
|
|
1166
1023
|
interface DesktopMethodMap {
|
|
1167
|
-
"desktop.bindTarget": Entry<Omit<BindDesktopTarget, "connection"> & {
|
|
1024
|
+
"desktop.bindTarget": Entry$1<Omit<BindDesktopTarget, "connection"> & {
|
|
1168
1025
|
connectionId?: string;
|
|
1169
1026
|
}, DesktopTarget>;
|
|
1170
|
-
"desktop.releaseTarget": Entry<Target, void>;
|
|
1171
|
-
"desktop.files.listFiles": Entry<Target & {
|
|
1027
|
+
"desktop.releaseTarget": Entry$1<Target, void>;
|
|
1028
|
+
"desktop.files.listFiles": Entry$1<Target & {
|
|
1172
1029
|
directory?: string;
|
|
1173
1030
|
recursive?: boolean;
|
|
1174
1031
|
}, {
|
|
@@ -1178,71 +1035,65 @@ interface DesktopMethodMap {
|
|
|
1178
1035
|
kind: "file" | "directory";
|
|
1179
1036
|
}[];
|
|
1180
1037
|
}>;
|
|
1181
|
-
"desktop.files.search": Entry<Target & {
|
|
1038
|
+
"desktop.files.search": Entry$1<Target & {
|
|
1182
1039
|
query: string;
|
|
1183
1040
|
directory?: string;
|
|
1184
1041
|
limit?: number;
|
|
1185
1042
|
}, DesktopSearch>;
|
|
1186
|
-
"desktop.files.openRead": Entry<Target & {
|
|
1043
|
+
"desktop.files.openRead": Entry$1<Target & {
|
|
1187
1044
|
path: string;
|
|
1188
1045
|
}, {
|
|
1189
1046
|
connectionId: string;
|
|
1190
1047
|
baseUrl: string;
|
|
1191
1048
|
}>;
|
|
1192
|
-
"desktop.files.readText": Entry<Target & {
|
|
1049
|
+
"desktop.files.readText": Entry$1<Target & {
|
|
1193
1050
|
path: string;
|
|
1194
1051
|
}, DesktopText>;
|
|
1195
|
-
"desktop.files.writeText": Entry<Target & {
|
|
1196
|
-
requestId: string;
|
|
1197
|
-
path: string;
|
|
1198
|
-
expectedSha256: string;
|
|
1199
|
-
text: string;
|
|
1200
|
-
}, WorkspaceOperation>;
|
|
1201
|
-
"desktop.files.getOperation": Entry<Target & {
|
|
1052
|
+
"desktop.files.writeText": Entry$1<Target & {
|
|
1202
1053
|
requestId: string;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
"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 & {
|
|
1206
1057
|
path: string;
|
|
1207
1058
|
}, void>;
|
|
1208
|
-
"desktop.files.listOpeners": Entry<Target, DesktopOpener[]>;
|
|
1209
|
-
"desktop.files.openWith": Entry<Target & {
|
|
1059
|
+
"desktop.files.listOpeners": Entry$1<Target, DesktopOpener[]>;
|
|
1060
|
+
"desktop.files.openWith": Entry$1<Target & {
|
|
1210
1061
|
path: string;
|
|
1211
1062
|
openerId: string;
|
|
1212
1063
|
}, void>;
|
|
1213
|
-
"desktop.clipboard.readText": Entry<Target, string>;
|
|
1214
|
-
"desktop.clipboard.writeText": Entry<Target & {
|
|
1064
|
+
"desktop.clipboard.readText": Entry$1<Target, string>;
|
|
1065
|
+
"desktop.clipboard.writeText": Entry$1<Target & {
|
|
1215
1066
|
text: string;
|
|
1216
1067
|
}, void>;
|
|
1217
|
-
"desktop.clipboard.showTextMenu": Entry<Target & {
|
|
1068
|
+
"desktop.clipboard.showTextMenu": Entry$1<Target & {
|
|
1218
1069
|
editable: boolean;
|
|
1219
1070
|
hasSelection: boolean;
|
|
1220
1071
|
}, "copy" | "select-all" | null>;
|
|
1221
|
-
"desktop.windows.openExternal": Entry<Target & {
|
|
1072
|
+
"desktop.windows.openExternal": Entry$1<Target & {
|
|
1222
1073
|
url: string;
|
|
1223
1074
|
}, void>;
|
|
1224
|
-
"desktop.windows.getZoom": Entry<Target, {
|
|
1075
|
+
"desktop.windows.getZoom": Entry$1<Target, {
|
|
1225
1076
|
factor: number;
|
|
1226
1077
|
}>;
|
|
1227
|
-
"desktop.windows.setZoom": Entry<Target & {
|
|
1078
|
+
"desktop.windows.setZoom": Entry$1<Target & {
|
|
1228
1079
|
factor: number;
|
|
1229
1080
|
}, {
|
|
1230
1081
|
factor: number;
|
|
1231
1082
|
}>;
|
|
1232
|
-
"desktop.windows.edit": Entry<Target & {
|
|
1083
|
+
"desktop.windows.edit": Entry$1<Target & {
|
|
1233
1084
|
action: "undo" | "redo" | "cut" | "copy" | "paste" | "selectAll";
|
|
1234
1085
|
}, void>;
|
|
1235
|
-
"desktop.git.status": Entry<Target, {
|
|
1086
|
+
"desktop.git.status": Entry$1<Target, {
|
|
1236
1087
|
root: string;
|
|
1237
1088
|
commonDir: string;
|
|
1238
1089
|
head: string;
|
|
1239
1090
|
branch: string;
|
|
1240
1091
|
changes: string[];
|
|
1241
1092
|
}>;
|
|
1242
|
-
"desktop.git.listBranches": Entry<Target, {
|
|
1093
|
+
"desktop.git.listBranches": Entry$1<Target, {
|
|
1243
1094
|
branches: string[];
|
|
1244
1095
|
}>;
|
|
1245
|
-
"desktop.git.changes": Entry<Target & {
|
|
1096
|
+
"desktop.git.changes": Entry$1<Target & {
|
|
1246
1097
|
range?: "uncommitted" | "working" | "staged";
|
|
1247
1098
|
ignoreWhitespace?: boolean;
|
|
1248
1099
|
}, {
|
|
@@ -1250,7 +1101,7 @@ interface DesktopMethodMap {
|
|
|
1250
1101
|
totalAdditions: number;
|
|
1251
1102
|
totalDeletions: number;
|
|
1252
1103
|
}>;
|
|
1253
|
-
"desktop.git.diff": Entry<Target & {
|
|
1104
|
+
"desktop.git.diff": Entry$1<Target & {
|
|
1254
1105
|
path?: string;
|
|
1255
1106
|
base?: string;
|
|
1256
1107
|
head?: string;
|
|
@@ -1260,130 +1111,121 @@ interface DesktopMethodMap {
|
|
|
1260
1111
|
text: string;
|
|
1261
1112
|
truncated: boolean;
|
|
1262
1113
|
}>;
|
|
1263
|
-
"desktop.git.switchBranch": Entry<Target & {
|
|
1114
|
+
"desktop.git.switchBranch": Entry$1<Target & {
|
|
1264
1115
|
requestId: string;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
}, WorkspaceOperation>;
|
|
1268
|
-
"desktop.git.createBranch": Entry<Target & {
|
|
1269
|
-
requestId: string;
|
|
1270
|
-
expectedHead: string;
|
|
1271
|
-
branch: string;
|
|
1272
|
-
}, WorkspaceOperation>;
|
|
1273
|
-
"desktop.git.createTaskWorktree": Entry<Target & {
|
|
1116
|
+
} & GitOperationOriginal["body"], WorkspaceOperation>;
|
|
1117
|
+
"desktop.git.createBranch": Entry$1<Target & {
|
|
1274
1118
|
requestId: string;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}, WorkspaceOperation>;
|
|
1278
|
-
"desktop.terminals.create": Entry<Target & {
|
|
1119
|
+
} & GitOperationOriginal["body"], WorkspaceOperation>;
|
|
1120
|
+
"desktop.terminals.create": Entry$1<Target & {
|
|
1279
1121
|
requestId: string;
|
|
1280
1122
|
cols: number;
|
|
1281
1123
|
rows: number;
|
|
1282
1124
|
name?: string;
|
|
1283
1125
|
}, DesktopTerminal>;
|
|
1284
|
-
"desktop.terminals.list": Entry<Target, DesktopTerminalInfo[]>;
|
|
1285
|
-
"desktop.terminals.restart": Entry<Target & {
|
|
1126
|
+
"desktop.terminals.list": Entry$1<Target, DesktopTerminalInfo[]>;
|
|
1127
|
+
"desktop.terminals.restart": Entry$1<Target & {
|
|
1286
1128
|
terminalId: string;
|
|
1287
1129
|
requestId: string;
|
|
1288
1130
|
}, DesktopTerminal>;
|
|
1289
|
-
"desktop.terminals.getRequest": Entry<Target & {
|
|
1131
|
+
"desktop.terminals.getRequest": Entry$1<Target & {
|
|
1290
1132
|
requestId: string;
|
|
1291
1133
|
original: DesktopTerminalRequestOriginal;
|
|
1292
1134
|
}, DesktopTerminalRequestReceipt>;
|
|
1293
|
-
"desktop.terminals.snapshot": Entry<Target & {
|
|
1135
|
+
"desktop.terminals.snapshot": Entry$1<Target & {
|
|
1294
1136
|
terminalId: string;
|
|
1295
1137
|
after?: number;
|
|
1296
1138
|
maxChars?: number;
|
|
1297
1139
|
}, DesktopTerminalSnapshot>;
|
|
1298
|
-
"desktop.terminals.subscribe": Entry<Target & {
|
|
1140
|
+
"desktop.terminals.subscribe": Entry$1<Target & {
|
|
1299
1141
|
terminalId: string;
|
|
1300
1142
|
}, void>;
|
|
1301
|
-
"desktop.terminals.write": Entry<Target & {
|
|
1143
|
+
"desktop.terminals.write": Entry$1<Target & {
|
|
1302
1144
|
terminalId: string;
|
|
1303
1145
|
data: string;
|
|
1304
1146
|
}, void>;
|
|
1305
|
-
"desktop.terminals.resize": Entry<Target & {
|
|
1147
|
+
"desktop.terminals.resize": Entry$1<Target & {
|
|
1306
1148
|
terminalId: string;
|
|
1307
1149
|
cols: number;
|
|
1308
1150
|
rows: number;
|
|
1309
1151
|
}, void>;
|
|
1310
|
-
"desktop.terminals.close": Entry<Target & {
|
|
1152
|
+
"desktop.terminals.close": Entry$1<Target & {
|
|
1311
1153
|
terminalId?: string;
|
|
1312
1154
|
requestId?: string;
|
|
1313
1155
|
}, void>;
|
|
1314
|
-
"desktop.windows.open": Entry<Target & {
|
|
1156
|
+
"desktop.windows.open": Entry$1<Target & {
|
|
1315
1157
|
requestId: string;
|
|
1316
1158
|
mode: "application" | "content";
|
|
1317
1159
|
url: string;
|
|
1318
1160
|
}, DesktopWindow>;
|
|
1319
|
-
"desktop.windows.adopt": Entry<Target & {
|
|
1161
|
+
"desktop.windows.adopt": Entry$1<Target & {
|
|
1320
1162
|
requestId: string;
|
|
1321
1163
|
windowId: number;
|
|
1322
1164
|
}, DesktopWindow>;
|
|
1323
|
-
"desktop.windows.get": Entry<Target & {
|
|
1165
|
+
"desktop.windows.get": Entry$1<Target & {
|
|
1324
1166
|
requestId: string;
|
|
1325
1167
|
}, DesktopWindow | null>;
|
|
1326
|
-
"desktop.windows.close": Entry<Target & {
|
|
1168
|
+
"desktop.windows.close": Entry$1<Target & {
|
|
1327
1169
|
requestId: string;
|
|
1328
1170
|
}, DesktopWindow>;
|
|
1329
|
-
"desktop.windows.setAlwaysOnTop": Entry<Target & {
|
|
1171
|
+
"desktop.windows.setAlwaysOnTop": Entry$1<Target & {
|
|
1330
1172
|
requestId?: string;
|
|
1331
1173
|
alwaysOnTop: boolean;
|
|
1332
1174
|
}, {
|
|
1333
1175
|
alwaysOnTop: boolean;
|
|
1334
1176
|
}>;
|
|
1335
|
-
"desktop.windows.focus": Entry<Target & {
|
|
1177
|
+
"desktop.windows.focus": Entry$1<Target & {
|
|
1336
1178
|
requestId?: string;
|
|
1337
1179
|
}, {
|
|
1338
1180
|
focused: boolean;
|
|
1339
1181
|
visible: boolean;
|
|
1340
1182
|
minimized: boolean;
|
|
1341
1183
|
}>;
|
|
1342
|
-
"desktop.browser.register": Entry<Target & {
|
|
1184
|
+
"desktop.browser.register": Entry$1<Target & {
|
|
1343
1185
|
tabId: string;
|
|
1344
1186
|
guestId: number;
|
|
1345
1187
|
}, BrowserAnnotationSnapshot>;
|
|
1346
|
-
"desktop.browser.openLocalFile": Entry<Target & {
|
|
1188
|
+
"desktop.browser.openLocalFile": Entry$1<Target & {
|
|
1347
1189
|
path: string;
|
|
1348
1190
|
}, {
|
|
1349
1191
|
url: string;
|
|
1350
1192
|
}>;
|
|
1351
|
-
"desktop.browser.unregister": Entry<Target & {
|
|
1193
|
+
"desktop.browser.unregister": Entry$1<Target & {
|
|
1352
1194
|
tabId: string;
|
|
1353
1195
|
}, void>;
|
|
1354
|
-
"desktop.browser.setActive": Entry<Target & {
|
|
1196
|
+
"desktop.browser.setActive": Entry$1<Target & {
|
|
1355
1197
|
tabId: string;
|
|
1356
1198
|
}, void>;
|
|
1357
|
-
"desktop.browser.readAnnotations": Entry<BrowserPage, BrowserAnnotationSnapshot>;
|
|
1358
|
-
"desktop.browser.setAnnotationMode": Entry<BrowserPage & {
|
|
1199
|
+
"desktop.browser.readAnnotations": Entry$1<BrowserPage, BrowserAnnotationSnapshot>;
|
|
1200
|
+
"desktop.browser.setAnnotationMode": Entry$1<BrowserPage & {
|
|
1359
1201
|
mode: AnnotationMode;
|
|
1360
1202
|
}, BrowserAnnotationSnapshot>;
|
|
1361
|
-
"desktop.browser.addAnnotation": Entry<BrowserPage & {
|
|
1203
|
+
"desktop.browser.addAnnotation": Entry$1<BrowserPage & {
|
|
1362
1204
|
selectionId: string;
|
|
1363
1205
|
comment: string;
|
|
1364
1206
|
}, BrowserAnnotationSnapshot>;
|
|
1365
|
-
"desktop.browser.focusAnnotation": Entry<BrowserPage & {
|
|
1207
|
+
"desktop.browser.focusAnnotation": Entry$1<BrowserPage & {
|
|
1366
1208
|
annotationId: string;
|
|
1367
1209
|
}, BrowserAnnotationSnapshot>;
|
|
1368
|
-
"desktop.browser.removeAnnotation": Entry<BrowserPage & {
|
|
1210
|
+
"desktop.browser.removeAnnotation": Entry$1<BrowserPage & {
|
|
1369
1211
|
annotationId: string;
|
|
1370
1212
|
}, BrowserAnnotationSnapshot>;
|
|
1371
|
-
"desktop.browser.capturePreview": Entry<BrowserPage, {
|
|
1213
|
+
"desktop.browser.capturePreview": Entry$1<BrowserPage, {
|
|
1372
1214
|
bytes: Uint8Array<ArrayBuffer>;
|
|
1373
1215
|
width: number;
|
|
1374
1216
|
height: number;
|
|
1375
1217
|
}>;
|
|
1376
|
-
"desktop.pluginApps.catalog": Entry<Target, PluginAppCatalog>;
|
|
1377
|
-
"desktop.pluginApps.composerContext": Entry<Target & {
|
|
1218
|
+
"desktop.pluginApps.catalog": Entry$1<Target, PluginAppCatalog>;
|
|
1219
|
+
"desktop.pluginApps.composerContext": Entry$1<Target & {
|
|
1378
1220
|
contextIds: string[];
|
|
1379
1221
|
}, PluginAppComposerContext[]>;
|
|
1380
|
-
"desktop.pluginApps.open": Entry<Target & {
|
|
1222
|
+
"desktop.pluginApps.open": Entry$1<Target & {
|
|
1381
1223
|
requestId: string;
|
|
1382
1224
|
pluginId: string;
|
|
1383
1225
|
surfaceId: string;
|
|
1384
1226
|
expectedRevision?: number;
|
|
1385
1227
|
}, PluginAppMount>;
|
|
1386
|
-
"desktop.pluginApps.openToolResult": Entry<Target & {
|
|
1228
|
+
"desktop.pluginApps.openToolResult": Entry$1<Target & {
|
|
1387
1229
|
sourcePartId: string;
|
|
1388
1230
|
}, {
|
|
1389
1231
|
mounted: PluginAppMount;
|
|
@@ -1394,29 +1236,29 @@ interface DesktopMethodMap {
|
|
|
1394
1236
|
dataError?: string;
|
|
1395
1237
|
};
|
|
1396
1238
|
}>;
|
|
1397
|
-
"desktop.pluginApps.mount": Entry<Target & {
|
|
1239
|
+
"desktop.pluginApps.mount": Entry$1<Target & {
|
|
1398
1240
|
source: PluginAppSource;
|
|
1399
1241
|
}, PluginAppMount>;
|
|
1400
|
-
"desktop.pluginApps.refresh": Entry<Mount, PluginAppHostState>;
|
|
1401
|
-
"desktop.pluginApps.rejectMenuOpen": Entry<Mount & {
|
|
1242
|
+
"desktop.pluginApps.refresh": Entry$1<Mount, PluginAppHostState>;
|
|
1243
|
+
"desktop.pluginApps.rejectMenuOpen": Entry$1<Mount & {
|
|
1402
1244
|
requestId: string;
|
|
1403
1245
|
menuOpeningRevision: number;
|
|
1404
1246
|
}, {
|
|
1405
1247
|
closed: boolean;
|
|
1406
1248
|
}>;
|
|
1407
|
-
"desktop.pluginApps.prepareTool": Entry<Mount & {
|
|
1249
|
+
"desktop.pluginApps.prepareTool": Entry$1<Mount & {
|
|
1408
1250
|
source: PluginAppSource;
|
|
1409
1251
|
requestId: string;
|
|
1410
1252
|
expectedRevision: number;
|
|
1411
1253
|
name: string;
|
|
1412
1254
|
arguments: Record<string, JsonValue>;
|
|
1413
1255
|
}, PluginAppPreparedTool>;
|
|
1414
|
-
"desktop.pluginApps.invokeTool": Entry<Action, PluginAppActionResponse | {
|
|
1256
|
+
"desktop.pluginApps.invokeTool": Entry$1<Action$1, PluginAppActionResponse | {
|
|
1415
1257
|
code: "plugin_app_busy";
|
|
1416
1258
|
notAccepted: true;
|
|
1417
1259
|
requestId: string;
|
|
1418
1260
|
}>;
|
|
1419
|
-
"desktop.pluginApps.getAction": Entry<Action | Target & {
|
|
1261
|
+
"desktop.pluginApps.getAction": Entry$1<Action$1 | Target & {
|
|
1420
1262
|
source: PluginAppSource;
|
|
1421
1263
|
requestId: string;
|
|
1422
1264
|
expectedRevision: number;
|
|
@@ -1425,70 +1267,82 @@ interface DesktopMethodMap {
|
|
|
1425
1267
|
args: Record<string, JsonValue>;
|
|
1426
1268
|
};
|
|
1427
1269
|
}, PluginAppActionResponse>;
|
|
1428
|
-
"desktop.pluginApps.cancelTool": Entry<Action, void>;
|
|
1429
|
-
"desktop.pluginApps.readResource": Entry<Mount & {
|
|
1270
|
+
"desktop.pluginApps.cancelTool": Entry$1<Action$1, void>;
|
|
1271
|
+
"desktop.pluginApps.readResource": Entry$1<Mount & {
|
|
1430
1272
|
source: PluginAppSource;
|
|
1431
1273
|
uri: string;
|
|
1432
1274
|
}, {
|
|
1433
1275
|
contents: JsonValue[];
|
|
1434
1276
|
}>;
|
|
1435
|
-
"desktop.pluginApps.listResources": Entry<Mount & {
|
|
1277
|
+
"desktop.pluginApps.listResources": Entry$1<Mount & {
|
|
1436
1278
|
source: PluginAppSource;
|
|
1437
1279
|
cursor?: string;
|
|
1438
1280
|
}, {
|
|
1439
1281
|
resources: JsonValue[];
|
|
1440
1282
|
nextCursor?: string;
|
|
1441
1283
|
}>;
|
|
1442
|
-
"desktop.pluginApps.listResourceTemplates": Entry<Mount & {
|
|
1284
|
+
"desktop.pluginApps.listResourceTemplates": Entry$1<Mount & {
|
|
1443
1285
|
source: PluginAppSource;
|
|
1444
1286
|
cursor?: string;
|
|
1445
1287
|
}, {
|
|
1446
1288
|
resourceTemplates: JsonValue[];
|
|
1447
1289
|
nextCursor?: string;
|
|
1448
1290
|
}>;
|
|
1449
|
-
"desktop.pluginApps.prepareMessage": Entry<Action & {
|
|
1291
|
+
"desktop.pluginApps.prepareMessage": Entry$1<Action$1 & {
|
|
1450
1292
|
content: JsonValue;
|
|
1451
1293
|
role: JsonValue;
|
|
1452
1294
|
}, PluginAppPreparedMessage>;
|
|
1453
|
-
"desktop.pluginApps.submitMessage": Entry<Action, PluginAppSubmissionReceipt>;
|
|
1454
|
-
"desktop.pluginApps.getMessageSubmission": Entry<Action, PluginAppSubmissionReceipt>;
|
|
1455
|
-
"desktop.pluginApps.cancelMessage": Entry<Action, void>;
|
|
1456
|
-
"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 & {
|
|
1457
1299
|
content?: JsonValue;
|
|
1458
1300
|
structuredContent?: JsonValue;
|
|
1459
1301
|
}, PluginAppModelContext>;
|
|
1460
|
-
"desktop.pluginApps.release": Entry<Mount, void>;
|
|
1461
|
-
"desktop.pluginApps.closePanel": Entry<Mount, void>;
|
|
1462
|
-
"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, {
|
|
1463
1305
|
app: PluginAppRecord;
|
|
1464
1306
|
}>;
|
|
1465
1307
|
}
|
|
1466
1308
|
type DesktopMethod = keyof DesktopMethodMap;
|
|
1309
|
+
declare const DESKTOP_ADAPTED_METHODS: readonly ["desktop.files.openRead", "desktop.files.getOperation"];
|
|
1467
1310
|
type ApiGroup<G extends string> = {
|
|
1468
|
-
[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"]>;
|
|
1469
1312
|
};
|
|
1470
1313
|
interface AppHostDesktop {
|
|
1471
1314
|
bindTarget(input: BindDesktopTarget): Promise<DesktopTarget>;
|
|
1472
1315
|
releaseTarget(input: Target): Promise<void>;
|
|
1473
|
-
files:
|
|
1474
|
-
readFile(input: {
|
|
1475
|
-
targetId: string;
|
|
1476
|
-
path: string;
|
|
1477
|
-
range?: {
|
|
1478
|
-
start: number;
|
|
1479
|
-
end?: number;
|
|
1480
|
-
};
|
|
1481
|
-
}, options?: {
|
|
1482
|
-
signal?: AbortSignal;
|
|
1483
|
-
}): Promise<Response>;
|
|
1484
|
-
};
|
|
1316
|
+
files: AppHostFileOperations;
|
|
1485
1317
|
clipboard: ApiGroup<"clipboard">;
|
|
1486
|
-
git:
|
|
1487
|
-
terminals:
|
|
1318
|
+
git: AppHostGitOperations;
|
|
1319
|
+
terminals: AppHostTerminalOperations;
|
|
1488
1320
|
windows: ApiGroup<"windows">;
|
|
1489
1321
|
browser: ApiGroup<"browser">;
|
|
1490
1322
|
pluginApps: ApiGroup<"pluginApps">;
|
|
1491
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
|
+
}
|
|
1492
1346
|
declare const validBrowserSnapshot: Check;
|
|
1493
1347
|
declare const validDesktopTarget: Check;
|
|
1494
1348
|
declare const validWorkspaceOperation: Check;
|
|
@@ -1641,18 +1495,18 @@ interface AuxiliaryMethodMap {
|
|
|
1641
1495
|
}
|
|
1642
1496
|
type AuxiliaryMethod = keyof AuxiliaryMethodMap;
|
|
1643
1497
|
declare const AUXILIARY_METHODS: readonly ["sessions.getAuxiliaryOptions", "sessions.openAuxiliary", "sessions.getAuxiliary", "sessions.closeAuxiliary"];
|
|
1644
|
-
interface
|
|
1645
|
-
|
|
1498
|
+
interface AuxiliarySessionsGroup {
|
|
1499
|
+
getOptions(input: {
|
|
1646
1500
|
connection: AgentConnection;
|
|
1647
1501
|
sessionId: string;
|
|
1648
1502
|
}): Promise<AuxiliaryOptions>;
|
|
1649
|
-
|
|
1503
|
+
open(input: AuxiliaryRequest): Promise<{
|
|
1650
1504
|
leaseId: string;
|
|
1651
1505
|
sessionId: string;
|
|
1652
1506
|
connection: AgentConnection;
|
|
1653
1507
|
}>;
|
|
1654
|
-
|
|
1655
|
-
|
|
1508
|
+
get(input: AuxiliaryRequest): Promise<AuxiliaryReceipt | null>;
|
|
1509
|
+
close(input: AuxiliaryRequest): Promise<AuxiliaryReceipt>;
|
|
1656
1510
|
}
|
|
1657
1511
|
declare function isAuxiliaryMethod(method: string): method is AuxiliaryMethod;
|
|
1658
1512
|
declare function validAuxiliaryInput(method: AuxiliaryMethod, v: unknown): boolean;
|
|
@@ -1660,9 +1514,9 @@ declare function validAuxiliaryResult(method: AuxiliaryMethod, v: unknown): bool
|
|
|
1660
1514
|
declare function createAppAuxiliarySessionsApi(rpc: {
|
|
1661
1515
|
requireFeature(): void;
|
|
1662
1516
|
request<M extends AuxiliaryMethod>(method: M, params: AuxiliaryMethodMap[M]["params"]): Promise<AuxiliaryMethodMap[M]["result"]>;
|
|
1663
|
-
}, streams: ConnectionStreams):
|
|
1517
|
+
}, streams: ConnectionStreams): AuxiliarySessionsGroup;
|
|
1664
1518
|
|
|
1665
|
-
/** The
|
|
1519
|
+
/** The extension manager's finite operations. */
|
|
1666
1520
|
declare const EXTENSION_INPUTS: {
|
|
1667
1521
|
context: Check;
|
|
1668
1522
|
"plugins.loadIcon": Check;
|
|
@@ -1687,6 +1541,8 @@ declare const EXTENSION_INPUTS: {
|
|
|
1687
1541
|
"plugins.marketplaceOperation": Check;
|
|
1688
1542
|
"skills.snapshot": Check;
|
|
1689
1543
|
"skills.remove": Check;
|
|
1544
|
+
"skills.marketplaceCatalog": Check;
|
|
1545
|
+
"skills.marketplaceInstall": (value: unknown) => boolean;
|
|
1690
1546
|
"mcp.snapshot": Check;
|
|
1691
1547
|
"mcp.exportConfig": Check;
|
|
1692
1548
|
"mcp.getConfig": Check;
|
|
@@ -1710,9 +1566,10 @@ declare const validExtensionResult: (value: unknown) => boolean;
|
|
|
1710
1566
|
/** Project records and filesystem locations have separate business identities. */
|
|
1711
1567
|
interface SystemProject {
|
|
1712
1568
|
workspaceId: string;
|
|
1713
|
-
projectId
|
|
1569
|
+
projectId: string;
|
|
1714
1570
|
name: string;
|
|
1715
1571
|
path: string;
|
|
1572
|
+
rootIdentity?: DesktopRoot["identity"];
|
|
1716
1573
|
available: boolean;
|
|
1717
1574
|
lastOpenedAt: number;
|
|
1718
1575
|
defaultShell?: string;
|
|
@@ -1720,6 +1577,7 @@ interface SystemProject {
|
|
|
1720
1577
|
interface ProjectSnapshot {
|
|
1721
1578
|
dataScopeId: string;
|
|
1722
1579
|
projects: SystemProject[];
|
|
1580
|
+
selectedWorkspaceId?: string;
|
|
1723
1581
|
}
|
|
1724
1582
|
type Scope = {
|
|
1725
1583
|
dataScopeId: string;
|
|
@@ -1738,16 +1596,97 @@ type ProjectRequest = {
|
|
|
1738
1596
|
shell: string | null;
|
|
1739
1597
|
} | Project & {
|
|
1740
1598
|
action: "archive";
|
|
1741
|
-
} |
|
|
1599
|
+
} | Project & {
|
|
1742
1600
|
action: "rebind";
|
|
1743
|
-
projectId?: string;
|
|
1744
|
-
workspaceId: string;
|
|
1745
1601
|
previousWorkspaceId: string;
|
|
1746
|
-
|
|
1602
|
+
expectedPath: string;
|
|
1747
1603
|
};
|
|
1748
1604
|
declare function validProjectRequest(value: unknown): value is ProjectRequest;
|
|
1749
1605
|
declare const validProjectSnapshot: (value: unknown) => value is ProjectSnapshot;
|
|
1750
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
|
+
|
|
1751
1690
|
interface CustomModelProviderInput {
|
|
1752
1691
|
id: string;
|
|
1753
1692
|
displayName: string;
|
|
@@ -1790,6 +1729,9 @@ type ModelProviderRequest = {
|
|
|
1790
1729
|
} | {
|
|
1791
1730
|
action: "createCustom";
|
|
1792
1731
|
value: CustomModelProviderInput;
|
|
1732
|
+
} | {
|
|
1733
|
+
action: "syncAccount";
|
|
1734
|
+
value: CustomModelProviderInput;
|
|
1793
1735
|
} | {
|
|
1794
1736
|
action: "updateCustom";
|
|
1795
1737
|
provider: string;
|
|
@@ -1845,6 +1787,8 @@ interface ProviderDefaultsSnapshot {
|
|
|
1845
1787
|
}>;
|
|
1846
1788
|
fastModeAvailable: false;
|
|
1847
1789
|
fastModeReason: string;
|
|
1790
|
+
/** Present when the caller supplied a proof for its current account gateway. */
|
|
1791
|
+
accountGatewayMatches?: boolean;
|
|
1848
1792
|
}
|
|
1849
1793
|
interface ProviderConnectionTestResult {
|
|
1850
1794
|
status: "verified" | "failed";
|
|
@@ -1854,6 +1798,7 @@ interface ProviderConnectionTestResult {
|
|
|
1854
1798
|
}
|
|
1855
1799
|
type ProviderDefaultsRequest = {
|
|
1856
1800
|
action: "snapshot";
|
|
1801
|
+
accountGatewayProof?: string;
|
|
1857
1802
|
} | {
|
|
1858
1803
|
action: "updateModel";
|
|
1859
1804
|
provider?: string;
|
|
@@ -1991,12 +1936,16 @@ type SystemEvent = {
|
|
|
1991
1936
|
type: "git-preferences-changed";
|
|
1992
1937
|
defaultTaskLocation: "current" | "worktree";
|
|
1993
1938
|
};
|
|
1994
|
-
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.
|
|
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"];
|
|
1995
1940
|
interface SystemMethodMap {
|
|
1996
1941
|
"system.projects": {
|
|
1997
1942
|
params: ProjectRequest;
|
|
1998
1943
|
result: ProjectSnapshot;
|
|
1999
1944
|
};
|
|
1945
|
+
"system.workspace": {
|
|
1946
|
+
params: LocalWorkspaceRequest;
|
|
1947
|
+
result: LocalWorkspaceResult;
|
|
1948
|
+
};
|
|
2000
1949
|
"system.extensions": {
|
|
2001
1950
|
params: ExtensionRequest;
|
|
2002
1951
|
result: unknown;
|
|
@@ -2043,14 +1992,6 @@ interface SystemMethodMap {
|
|
|
2043
1992
|
};
|
|
2044
1993
|
result: void;
|
|
2045
1994
|
};
|
|
2046
|
-
"system.markSessionRead": {
|
|
2047
|
-
params: {
|
|
2048
|
-
connectionId: string;
|
|
2049
|
-
sessionId: string;
|
|
2050
|
-
throughSeq: number;
|
|
2051
|
-
};
|
|
2052
|
-
result: void;
|
|
2053
|
-
};
|
|
2054
1995
|
"system.navigationReady": {
|
|
2055
1996
|
params: Record<string, never>;
|
|
2056
1997
|
result: {
|
|
@@ -2075,6 +2016,10 @@ declare function validSystemResult(method: SystemMethod, value: unknown): boolea
|
|
|
2075
2016
|
declare function validSystemEvent(value: unknown): value is SystemEvent;
|
|
2076
2017
|
interface AppHostSystem {
|
|
2077
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>>;
|
|
2078
2023
|
/** Requires the explicit extensions.manage installation capability. */
|
|
2079
2024
|
extensions(input: ExtensionRequest): Promise<unknown>;
|
|
2080
2025
|
/** Manages connections for the active built-in workbench. */
|
|
@@ -2097,11 +2042,6 @@ interface AppHostSystem {
|
|
|
2097
2042
|
copyText(text: string): Promise<void>;
|
|
2098
2043
|
/** Opens an HTTP(S) URL without credentials in the default browser. */
|
|
2099
2044
|
openExternal(url: string): Promise<void>;
|
|
2100
|
-
markSessionRead(input: {
|
|
2101
|
-
connection: AgentConnection;
|
|
2102
|
-
sessionId: string;
|
|
2103
|
-
throughSeq: number;
|
|
2104
|
-
}): Promise<void>;
|
|
2105
2045
|
navigationReady(): Promise<{
|
|
2106
2046
|
pending: DesktopNavigationTarget | null;
|
|
2107
2047
|
}>;
|
|
@@ -2153,7 +2093,7 @@ declare const APP_HOST_REQUEST_TIMEOUT_MS = 30000;
|
|
|
2153
2093
|
declare const APP_HOST_PORT_TIMEOUT_MS = 10000;
|
|
2154
2094
|
declare const APP_HOST_LOGIN_TIMEOUT_MS = 300000;
|
|
2155
2095
|
declare const APP_HOST_LOGIN_TRANSPORT_TIMEOUT_MS: number;
|
|
2156
|
-
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",
|
|
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"];
|
|
2157
2097
|
|
|
2158
2098
|
interface AppContext {
|
|
2159
2099
|
readonly appId: string;
|
|
@@ -2374,5 +2314,5 @@ interface AppHostPortMessage {
|
|
|
2374
2314
|
protocol: 1;
|
|
2375
2315
|
}
|
|
2376
2316
|
|
|
2377
|
-
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,
|
|
2378
|
-
export type { AgentApiRoute, AnnotationMode, AnnotationRect, AnnotationTarget, AppCommandRegistration, AppCommandSnapshot, AppContext, AppHostAttachments,
|
|
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 };
|