@seed-app-studio/sdk 0.1.1-canary.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.
@@ -0,0 +1,2672 @@
1
+ import { JsonRpcReactNativeWebViewPort, SEED_AGUI_STREAM_EVENT_TYPE, SeedAguiBaseEvent, SeedAguiCustomEvent, SeedAguiEvent, SeedAguiEventType, SeedAguiFormField, SeedAguiFormSchema, SeedAguiJsonPatchOperation, SeedAguiMetadata, SeedAguiRunErrorEvent, SeedAguiRunFinishedEvent, SeedAguiRunStartedEvent, SeedAguiSource, SeedAguiStateDeltaEvent, SeedAguiTextMessageContentEvent, SeedAguiTextMessageEndEvent, SeedAguiTextMessageStartEvent, SeedAguiToolCallArgsEvent, SeedAguiToolCallEndEvent, SeedAguiToolCallResultEvent, SeedAguiToolCallStartEvent, SeedAppAgentRunAndWatchHandlers as SeedAppAgentRunAndWatchHandlers$1, SeedAppAgentRunAndWatchOptions, SeedAppAgentStreamChannel, SeedAppAgentStreamConsumptionGuard, SeedAppAgentStreamConsumptionGuardConsumeOptions, SeedAppAgentStreamConsumptionGuardIssue, SeedAppAgentStreamConsumptionGuardIssueCode, SeedAppAgentStreamConsumptionGuardMode, SeedAppAgentStreamConsumptionGuardOptions, SeedAppAgentStreamEvent, SeedAppAgentStreamEventType, SeedAppAgentStreamHandler, SeedAppAgentStreamScopedSubscribeOptions, SeedAppAgentStreamScopedUnsubscribe, SeedAppAgentStreamStatus, SeedAppAgentStreamSubscribeConversationInput, SeedAppAgentStreamSubscribeOptions, SeedAppAgentStreamSubscribeRequest, SeedAppAgentStreamSubscribeResult, SeedAppAgentStreamSubscribeRunInput, SeedAppAgentStreamUnsubscribeRequest, SeedAppAguiStreamChannel, SeedAppAguiStreamHandler, SeedAppAguiStreamScopedSubscribeOptions, SeedAppAguiStreamScopedUnsubscribe, SeedAppAguiStreamSubscribeConversationInput, SeedAppAguiStreamSubscribeOptions, SeedAppAguiStreamSubscribeRequest, SeedAppAguiStreamSubscribeResult, SeedAppAguiStreamSubscribeRunInput, SeedAppAguiStreamUnsubscribeRequest, SeedBridgeMethodRuntimeRoute, SeedBridgeRouteCommandTransport, SeedBridgeRouteImplementation, SeedConversationAuthorityDescriptor, createSeedAppAgentStreamConsumptionGuard, createSeedAppAgentStreamEvent, isSeedAguiEvent, isSeedAppAgentStreamEvent, matchesSeedAguiStreamScope, resolveSeedAguiEventIdentity, resolveSeedAppAgentStreamEventIdentity, resolveSeedAppAgentStreamSemanticKey, seedAppAgentStreamEventTypes, seedAppAguiStreamEventTypes } from "@seed-app-studio/protocol";
2
+ //#region src/contracts.d.ts
3
+ type SeedAppGrantPolicy = "enabled" | "ask" | "disabled";
4
+ type SeedAppGrantResolution = {
5
+ capability: string;
6
+ policy: SeedAppGrantPolicy;
7
+ source: "host" | "tenant" | "user" | "manifest" | "default";
8
+ };
9
+ type SeedAppErrorCode = "host_unavailable" | "app_not_installed" | "app_disabled" | "handshake_timeout" | "unsupported_runtime" | "unauthenticated" | "capability_denied" | "approval_required" | "approval_denied" | "tenant_policy_denied" | "origin_denied" | "grant_required" | "nonce_invalid" | "csrf_required" | "bridge_policy_denied" | "provider_unavailable" | "provider_failed" | "payload_too_large" | "rate_limited" | "invalid_payload_schema" | "reserved_bridge_key" | "mcp_unavailable" | "memory_scope_denied" | "resource_scope_denied" | "skill_scope_denied" | "bundle_integrity_failed" | "sdk_version_incompatible" | "invalid_request" | "invalid_target" | "not_found" | "already_exists" | "not_a_file" | "not_a_directory" | "parent_not_found" | "directory_not_empty" | "protected_path" | "permission_denied" | "mount_not_found" | "resource_not_found" | "resource_disabled" | "resource_unavailable" | "mode_not_allowed" | "unsupported_operation" | "unsupported_option_combination" | "execute_preflight_unknown" | "cross_mount_move_unsupported" | "version_conflict" | "edit_conflict" | "idempotency_conflict" | "stale_writer" | "write_fence_expired" | "write_fence_scope_denied" | "file_too_large" | "cursor_invalid" | "timeout" | "cancelled" | "provider_error" | "internal_error";
10
+ type SeedAppError = {
11
+ code: SeedAppErrorCode;
12
+ message: string;
13
+ capability?: string;
14
+ action?: string;
15
+ operationId?: string;
16
+ details?: unknown;
17
+ retryable: boolean;
18
+ requestId: string;
19
+ };
20
+ declare function createSeedAppError(input: Omit<SeedAppError, "retryable"> & {
21
+ retryable?: boolean;
22
+ }): SeedAppError;
23
+ type SeedAppTraceContext = {
24
+ readonly traceId: string;
25
+ readonly spanId: string;
26
+ readonly traceparent: string;
27
+ readonly sampled: boolean;
28
+ };
29
+ declare function isSeedAppTraceEnabled(env?: Readonly<Record<string, string | undefined>>): boolean;
30
+ declare function createSeedAppRootTraceContext(input?: {
31
+ traceId?: string;
32
+ sampled?: boolean;
33
+ }): SeedAppTraceContext;
34
+ declare function extractSeedAppTraceContext(carrier: unknown): SeedAppTraceContext | undefined;
35
+ declare function ensureSeedAppTraceCarrier<TValue>(value: TValue, env?: Readonly<Record<string, string | undefined>>): TValue;
36
+ declare function injectSeedAppTraceContext<TRecord extends Readonly<Record<string, unknown>>>(record: TRecord, context: SeedAppTraceContext): TRecord & {
37
+ readonly traceId: string;
38
+ readonly traceparent: string;
39
+ readonly metadata: Record<string, unknown>;
40
+ };
41
+ declare const seedBridgeGoldenCaseReportSchemaVersion: "seed.bridge.golden-case.report.v1";
42
+ type SeedBridgeGoldenCaseRuntime = "electron" | "local-webui" | "web-saas" | "react-native" | "app-host";
43
+ type SeedBridgeGoldenCaseTransport = "electron-ipc" | "local-websocket" | "web-saas-bridge-ws" | "react-native-webview" | "app-host-postmessage" | (string & {});
44
+ declare const seedBridgeGoldenCasePrimaryTransportByRuntime: {
45
+ readonly electron: "electron-ipc";
46
+ readonly "local-webui": "local-websocket";
47
+ readonly "web-saas": "web-saas-bridge-ws";
48
+ readonly "react-native": "react-native-webview";
49
+ readonly "app-host": "app-host-postmessage";
50
+ };
51
+ type SeedBridgeGoldenCaseMethodResult = {
52
+ method: string;
53
+ ok: boolean;
54
+ capability?: string;
55
+ status?: string;
56
+ traceId?: string;
57
+ errorCode?: string;
58
+ durationMs?: number;
59
+ };
60
+ type SeedBridgeGoldenCaseNegativeCase = {
61
+ id: string;
62
+ status: "passed" | "failed";
63
+ expectedErrorCode?: string;
64
+ actualErrorCode?: string;
65
+ notes?: string;
66
+ };
67
+ type SeedBridgeGoldenCaseArtifact = {
68
+ kind: "trace" | "report" | "log" | "screenshot" | "replay" | (string & {});
69
+ path?: string;
70
+ url?: string;
71
+ sha256?: string;
72
+ };
73
+ type SeedBridgeGoldenCaseReport = {
74
+ schemaVersion: typeof seedBridgeGoldenCaseReportSchemaVersion;
75
+ runtime: SeedBridgeGoldenCaseRuntime;
76
+ transport: SeedBridgeGoldenCaseTransport;
77
+ bridgeEndpoint?: string;
78
+ previewUrl?: string;
79
+ appId: string;
80
+ appSessionId: string;
81
+ methodResults: SeedBridgeGoldenCaseMethodResult[];
82
+ eventTypes: string[];
83
+ terminalTypes: string[];
84
+ conversationId?: string;
85
+ runId?: string;
86
+ negativeCases: SeedBridgeGoldenCaseNegativeCase[];
87
+ artifacts: SeedBridgeGoldenCaseArtifact[];
88
+ generatedAt: string;
89
+ };
90
+ type SeedBridgeGoldenCaseReportInput = Omit<SeedBridgeGoldenCaseReport, "schemaVersion">;
91
+ type SeedBridgeGoldenCaseReportValidation = {
92
+ ok: boolean;
93
+ errors: string[];
94
+ };
95
+ declare function createSeedBridgeGoldenCaseReport(input: SeedBridgeGoldenCaseReportInput): SeedBridgeGoldenCaseReport;
96
+ declare function validateSeedBridgeGoldenCaseReport(report: unknown): SeedBridgeGoldenCaseReportValidation;
97
+ declare function isSeedBridgeGoldenCaseReport(value: unknown): value is SeedBridgeGoldenCaseReport;
98
+ //#endregion
99
+ //#region src/agentStream.d.ts
100
+ type SeedAppAgentRunAndWatchHandlers = SeedAppAgentRunAndWatchHandlers$1 & {
101
+ /**
102
+ * Runs exactly once after `seed.agent.run` is accepted and before any buffered
103
+ * stream event is delivered. `runAndWatch` awaits this callback; throwing or
104
+ * rejecting aborts the watch and closes its scoped subscription.
105
+ */
106
+ onAccepted?: (run: SeedAppAgentRunResult) => void | Promise<void>;
107
+ };
108
+ //#endregion
109
+ //#region src/workspace.d.ts
110
+ type SeedAppWorkspacePath = `/${string}`;
111
+ type SeedAppWorkspaceUri = `workspace-fs://${string}/${string}`;
112
+ type SeedAppWorkspaceLocation = {
113
+ path: SeedAppWorkspacePath;
114
+ workspaceId?: string;
115
+ uri?: never;
116
+ } | {
117
+ uri: SeedAppWorkspaceUri;
118
+ path?: never;
119
+ workspaceId?: never;
120
+ };
121
+ type SeedAppWorkspaceEntry = {
122
+ name: string;
123
+ path: string;
124
+ relativePath?: string;
125
+ uri?: string;
126
+ kind?: "file" | "directory" | "unknown" | string;
127
+ isDir?: boolean;
128
+ isFile?: boolean;
129
+ size?: number;
130
+ mimeType?: string;
131
+ etag?: string;
132
+ version?: string;
133
+ updatedAt?: number | string;
134
+ children?: SeedAppWorkspaceEntry[];
135
+ };
136
+ type SeedAppWorkspaceListRequest = SeedAppWorkspaceLocation & {
137
+ recursive?: boolean;
138
+ maxDepth?: number;
139
+ maxResults?: number;
140
+ cursor?: string;
141
+ };
142
+ type SeedAppWorkspaceListResult = {
143
+ root: SeedAppWorkspaceEntry;
144
+ truncated?: boolean;
145
+ truncationReason?: string;
146
+ appliedMaxDepth?: number;
147
+ appliedMaxResults?: number;
148
+ nextCursor?: string;
149
+ uri?: string;
150
+ };
151
+ type SeedAppWorkspaceReadRequest = SeedAppWorkspaceLocation & {
152
+ encoding?: "utf8" | "base64";
153
+ maxBytes?: number;
154
+ };
155
+ type SeedAppWorkspaceReadResult = {
156
+ path: string;
157
+ content: string | {
158
+ kind: "text";
159
+ text: string;
160
+ mimeType?: string;
161
+ encoding: "utf8";
162
+ } | {
163
+ kind: "binary";
164
+ bytesBase64: string;
165
+ mimeType?: string;
166
+ };
167
+ size?: number;
168
+ etag?: string;
169
+ version?: string;
170
+ uri?: string;
171
+ lastModified?: number | string;
172
+ };
173
+ type SeedAppWorkspaceSearchRequest = Partial<SeedAppWorkspaceLocation> & {
174
+ path?: SeedAppWorkspacePath;
175
+ query?: string;
176
+ pattern?: string;
177
+ maxDepth?: number;
178
+ maxResults?: number;
179
+ includeDirectories?: boolean;
180
+ };
181
+ type SeedAppWorkspaceSearchResult = {
182
+ matches: SeedAppWorkspaceEntry[];
183
+ truncated?: boolean;
184
+ truncationReason?: string;
185
+ appliedMaxDepth?: number;
186
+ appliedMaxResults?: number;
187
+ };
188
+ type SeedAppWorkspaceCapabilitiesRequest = Partial<SeedAppWorkspaceLocation> & {
189
+ path?: SeedAppWorkspacePath;
190
+ };
191
+ type SeedAppWorkspaceCapabilitiesResult = Partial<Record<"listDir" | "stat" | "readFile" | "readFileBytes" | "writeFile" | "editFile" | "patchFile" | "createDir" | "deleteEntry" | "renameEntry" | "moveEntry" | "copyEntry" | "glob" | "search" | "importLocalFile" | "upload" | "download", boolean>>;
192
+ type SeedAppWorkspaceMutationMetadata = {
193
+ expectedEtag?: string;
194
+ expectedVersion?: string;
195
+ idempotencyKey: string;
196
+ };
197
+ type SeedAppWorkspaceWriteRequest = SeedAppWorkspaceLocation & SeedAppWorkspaceMutationMetadata & {
198
+ content: string | Uint8Array;
199
+ encoding?: "utf8" | "base64";
200
+ createParents?: boolean;
201
+ overwrite?: boolean;
202
+ };
203
+ type SeedAppWorkspaceWritePayload = Omit<SeedAppWorkspaceWriteRequest, "content"> & {
204
+ content: string;
205
+ encoding: "utf8" | "base64";
206
+ };
207
+ type SeedAppWorkspaceOperationMetadata = Record<string, unknown> & {
208
+ operationId?: string;
209
+ idempotencyKey?: string;
210
+ status?: string;
211
+ };
212
+ type SeedAppWorkspaceMutationResultMetadata = {
213
+ version?: string;
214
+ uri?: string;
215
+ sourceUri?: string;
216
+ operation?: SeedAppWorkspaceOperationMetadata;
217
+ effect?: string;
218
+ };
219
+ type SeedAppWorkspaceWriteResult = SeedAppWorkspaceMutationResultMetadata & {
220
+ path: string;
221
+ size?: number;
222
+ etag?: string;
223
+ updatedAt?: number | string;
224
+ };
225
+ type SeedAppWorkspaceUploadStageRequest = {
226
+ fileName: string;
227
+ content: Uint8Array;
228
+ mimeType?: string;
229
+ conversationId?: string;
230
+ };
231
+ type SeedAppWorkspaceUploadStagePayload = Omit<SeedAppWorkspaceUploadStageRequest, "content"> & {
232
+ content: string;
233
+ encoding: "base64";
234
+ };
235
+ type SeedAppWorkspaceUploadStageResult = {
236
+ path: string;
237
+ fullPath?: string;
238
+ size?: number;
239
+ updatedAt?: number | string;
240
+ };
241
+ type SeedAppWorkspaceDeleteRequest = SeedAppWorkspaceLocation & SeedAppWorkspaceMutationMetadata;
242
+ type SeedAppWorkspaceDeleteResult = SeedAppWorkspaceMutationResultMetadata & {
243
+ ok: true;
244
+ path?: string;
245
+ etag?: string;
246
+ updatedAt?: number | string;
247
+ };
248
+ type SeedAppWorkspaceRenameRequest = SeedAppWorkspaceLocation & {
249
+ newName: string;
250
+ } & SeedAppWorkspaceMutationMetadata;
251
+ type SeedAppWorkspaceRenameResult = SeedAppWorkspaceMutationResultMetadata & {
252
+ path: string;
253
+ size?: number;
254
+ etag?: string;
255
+ updatedAt?: number | string;
256
+ };
257
+ type SeedAppWorkspaceCopyRequest = SeedAppWorkspaceLocation & {
258
+ targetWorkspaceId?: string;
259
+ name?: string;
260
+ };
261
+ type SeedAppWorkspaceCopyResult = {
262
+ path: string;
263
+ workspaceId?: string;
264
+ size?: number;
265
+ etag?: string;
266
+ updatedAt?: number | string;
267
+ };
268
+ type SeedAppWorkspaceImportLocalFilesRequest = {
269
+ sourcePaths: string[];
270
+ targetDirectory: SeedAppWorkspacePath;
271
+ sourceRoot?: string;
272
+ };
273
+ type SeedAppWorkspaceImportLocalFilesResult = {
274
+ copiedFiles: string[];
275
+ failedFiles?: Array<{
276
+ path: string;
277
+ error: string;
278
+ }>;
279
+ };
280
+ type SeedAppWorkspaceChangedOperation = "created" | "updated" | "deleted" | "moved" | "patched";
281
+ type SeedAppWorkspaceChangedEvent = {
282
+ workspaceId: string;
283
+ uri: string;
284
+ operation: SeedAppWorkspaceChangedOperation;
285
+ eventId?: string;
286
+ previousUri?: string;
287
+ affectedUris?: string[];
288
+ sessionId?: string;
289
+ paths?: string[];
290
+ parentDirs?: string[];
291
+ source?: string;
292
+ updatedAt?: string;
293
+ occurredAt?: string;
294
+ providerKind?: string;
295
+ providerInstanceId?: string;
296
+ providerRef?: string;
297
+ operationId?: string;
298
+ origin?: string;
299
+ seq?: string;
300
+ version?: string;
301
+ previousVersion?: string;
302
+ pathCount?: number;
303
+ };
304
+ type SeedAppWorkspaceChangedSubscribeRequest = {
305
+ workspaceId?: string;
306
+ cursor?: string;
307
+ };
308
+ type SeedAppWorkspaceMemberRole = "owner" | "editor" | "viewer" | string;
309
+ type SeedAppWorkspaceOwner = {
310
+ type: "user";
311
+ userId: string;
312
+ displayName?: string;
313
+ } | {
314
+ type: "tenant";
315
+ tenantId: string;
316
+ displayName?: string;
317
+ } | {
318
+ type: "service";
319
+ serviceName: string;
320
+ displayName?: string;
321
+ };
322
+ type SeedAppWorkspaceMountAccess = {
323
+ mountId: string;
324
+ mountPath: string;
325
+ allowRead: boolean;
326
+ allowWrite: boolean;
327
+ allowDelete: boolean;
328
+ };
329
+ type SeedAppWorkspaceSummary = {
330
+ id: string;
331
+ workspaceId: string;
332
+ name: string;
333
+ version: string;
334
+ owner: SeedAppWorkspaceOwner;
335
+ ownerUserId?: string;
336
+ ownerTenantId?: string;
337
+ status: "active" | "archived";
338
+ accessSource: "owner" | "user" | "tenant";
339
+ currentUserRole: "owner" | "admin" | "editor" | "commenter" | "viewer";
340
+ personalAccessCount: number;
341
+ tenantAccessCount: number;
342
+ memberCount: number;
343
+ canManage: boolean;
344
+ rootRef: string;
345
+ selectedDirectory: string;
346
+ persistenceMode: "object-store";
347
+ mountAccess: SeedAppWorkspaceMountAccess[];
348
+ createdAt: number;
349
+ updatedAt: number;
350
+ };
351
+ type SeedAppWorkspacePage = {
352
+ items: SeedAppWorkspaceSummary[];
353
+ nextCursor?: string;
354
+ };
355
+ type SeedAppWorkspaceCreateRequest = {
356
+ name: string;
357
+ selectedDirectory?: string;
358
+ ownershipScope: "personal" | "tenant";
359
+ tenantId?: string;
360
+ idempotencyKey: string;
361
+ };
362
+ type SeedAppWorkspaceAdminUpdateRequest = {
363
+ workspaceId: string;
364
+ expectedVersion: string;
365
+ name?: string;
366
+ selectedDirectory?: string;
367
+ status?: "active" | "archived";
368
+ };
369
+ type SeedAppWorkspaceAdminDeleteRequest = {
370
+ workspaceId: string;
371
+ expectedVersion: string;
372
+ idempotencyKey: string;
373
+ };
374
+ type SeedAppWorkspaceAssignableUsersRequest = {
375
+ workspaceId: string;
376
+ };
377
+ type SeedAppWorkspaceAssignableUser = {
378
+ id: string;
379
+ username?: string;
380
+ displayName?: string;
381
+ email?: string;
382
+ role?: string;
383
+ };
384
+ type SeedAppWorkspaceMemberListRequest = {
385
+ workspaceId: string;
386
+ };
387
+ type SeedAppWorkspaceMemberSummary = {
388
+ workspaceId: string;
389
+ userId: string;
390
+ role: SeedAppWorkspaceMemberRole;
391
+ createdAt?: string;
392
+ updatedAt?: string;
393
+ };
394
+ type SeedAppWorkspaceMemberAddRequest = {
395
+ workspaceId: string;
396
+ userId: string;
397
+ role: SeedAppWorkspaceMemberRole;
398
+ };
399
+ type SeedAppWorkspaceMemberUpdateRequest = {
400
+ workspaceId: string;
401
+ userId: string;
402
+ role: SeedAppWorkspaceMemberRole;
403
+ };
404
+ type SeedAppWorkspaceMemberRemoveRequest = {
405
+ workspaceId: string;
406
+ userId: string;
407
+ };
408
+ type SeedAppWorkspaceClient = {
409
+ list(input: SeedAppWorkspaceListRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceListResult>;
410
+ read(input: SeedAppWorkspaceReadRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceReadResult>;
411
+ search(input: SeedAppWorkspaceSearchRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceSearchResult>;
412
+ capabilities(input?: SeedAppWorkspaceCapabilitiesRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceCapabilitiesResult>;
413
+ write(input: SeedAppWorkspaceWriteRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceWriteResult>;
414
+ stageUpload(input: SeedAppWorkspaceUploadStageRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceUploadStageResult>;
415
+ delete(input: SeedAppWorkspaceDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceDeleteResult>;
416
+ rename(input: SeedAppWorkspaceRenameRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceRenameResult>;
417
+ copy(input: SeedAppWorkspaceCopyRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceCopyResult>;
418
+ importLocalFiles(input: SeedAppWorkspaceImportLocalFilesRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceImportLocalFilesResult>;
419
+ subscribeChanged(input: SeedAppWorkspaceChangedSubscribeRequest, handler: (event: SeedAppWorkspaceChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
420
+ admin: {
421
+ list(options?: SeedAppRequestOptions): Promise<SeedAppWorkspacePage>;
422
+ create(input: SeedAppWorkspaceCreateRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceSummary>;
423
+ update(input: SeedAppWorkspaceAdminUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceSummary>;
424
+ delete(input: SeedAppWorkspaceAdminDeleteRequest, options?: SeedAppRequestOptions): Promise<void>;
425
+ };
426
+ member: {
427
+ assignableUsers(input: SeedAppWorkspaceAssignableUsersRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceAssignableUser[]>;
428
+ list(input: SeedAppWorkspaceMemberListRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceMemberSummary[]>;
429
+ add(input: SeedAppWorkspaceMemberAddRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceMemberSummary>;
430
+ update(input: SeedAppWorkspaceMemberUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppWorkspaceMemberSummary>;
431
+ remove(input: SeedAppWorkspaceMemberRemoveRequest, options?: SeedAppRequestOptions): Promise<void>;
432
+ };
433
+ };
434
+ type SeedAppWorkspaceRequest = <TResponse>(method: string, params?: unknown, options?: SeedAppRequestOptions) => Promise<TResponse>;
435
+ type SeedAppWorkspaceEventSource = {
436
+ subscribe?: (handler: SeedAppEventHandler) => () => void;
437
+ subscribeBridgeEvent?: (event: string, handler: SeedAppEventHandler, options?: SeedAppRequestOptions, params?: SeedAppBridgeEventSubscriptionParams) => Promise<() => void>;
438
+ };
439
+ declare function createSeedAppWorkspaceClient(request: SeedAppWorkspaceRequest, eventSource?: SeedAppWorkspaceEventSource): SeedAppWorkspaceClient;
440
+ //#endregion
441
+ //#region src/types.d.ts
442
+ type SeedAppRequestOptions = {
443
+ timeoutMs?: number;
444
+ };
445
+ type SeedAppBridgeEventSubscriptionParams = Record<string, unknown>;
446
+ type SeedAppTransport = {
447
+ request<TResponse>(method: string, params?: unknown, options?: SeedAppRequestOptions): Promise<TResponse>;
448
+ subscribe?(handler: SeedAppEventHandler): () => void;
449
+ subscribeBridgeEvent?(event: string, handler: SeedAppEventHandler, options?: SeedAppRequestOptions, params?: SeedAppBridgeEventSubscriptionParams): Promise<() => void>;
450
+ subscribeRealtimeChannel?(channel: string, cursor?: string): Promise<() => void> | (() => void);
451
+ close?(): void;
452
+ };
453
+ type SeedAppEvent = {
454
+ type: string;
455
+ payload?: unknown;
456
+ status?: string;
457
+ timestamp?: number;
458
+ };
459
+ type SeedAppEventHandler = (event: SeedAppEvent) => void;
460
+ type SeedAppRouteTransportKey = SeedBridgeRouteImplementation | SeedBridgeRouteCommandTransport;
461
+ type SeedAppRouteTransportMap = Partial<Record<SeedAppRouteTransportKey, SeedAppTransport>>;
462
+ type SeedAppThemeMode = "light" | "dark";
463
+ type SeedAppAppearanceState = {
464
+ theme: SeedAppThemeMode;
465
+ colorScheme?: string;
466
+ fontScale?: number;
467
+ source?: string;
468
+ updatedAt?: number;
469
+ };
470
+ type SeedAppThemeSyncController = {
471
+ apply(appearance: SeedAppAppearanceState): void;
472
+ getSnapshot(): SeedAppAppearanceState | undefined;
473
+ uninstall(): void;
474
+ };
475
+ type SeedAppClientOptions = {
476
+ transport: SeedAppTransport;
477
+ routeTransports?: SeedAppRouteTransportMap;
478
+ };
479
+ type SeedAppHandshakeRequest = {
480
+ appId: string;
481
+ sdkVersion: string;
482
+ origin?: string;
483
+ nonce?: string;
484
+ csrfToken?: string;
485
+ installGrantId?: string;
486
+ };
487
+ type SeedAppHandshakeResult = {
488
+ appId: string;
489
+ appSessionId?: string;
490
+ hostVersion: string;
491
+ runtime?: string;
492
+ transport?: string;
493
+ schemaVersion?: string;
494
+ grants: SeedAppGrantResolution[];
495
+ security?: {
496
+ origin?: string;
497
+ nonce?: "present";
498
+ csrfToken?: "present";
499
+ installGrantId?: string;
500
+ };
501
+ };
502
+ type SeedAppCapabilitiesRequest = {
503
+ capabilities: string[];
504
+ mode?: "baseline" | "runtime";
505
+ reason?: string;
506
+ };
507
+ type SeedAppCapabilitiesRequestResult = {
508
+ grants: SeedAppGrantResolution[];
509
+ approved: string[];
510
+ denied: string[];
511
+ pending: string[];
512
+ };
513
+ type SeedAppAuthPermission = "apps.market.view" | "apps.install" | "apps.uninstall" | "apps.launch" | "apps.update" | "apps.develop" | "apps.manage" | "apps.publish" | "apps.review" | "apps.visibility.manage" | "apps.permissions.manage" | "tenant.admin" | "workspace.manage" | (string & {});
514
+ type SeedAppAuthUserContext = {
515
+ scope: "tenant" | "user";
516
+ source: "desktop" | "seed-web" | "web-saas";
517
+ userId: string;
518
+ tenantId?: string;
519
+ username: string;
520
+ role?: string;
521
+ permissions: SeedAppAuthPermission[];
522
+ accountState?: "tenant-scoped" | "no-active-tenant" | "recovery-required" | (string & {});
523
+ personalSpaceId?: string;
524
+ activeOrganizationId?: string;
525
+ };
526
+ type SeedAppAuthContextResult = {
527
+ authenticated: false;
528
+ source: "desktop" | "seed-web" | "web-saas" | (string & {});
529
+ accountState: "unauthenticated";
530
+ } | {
531
+ authenticated: true;
532
+ source: "desktop" | "seed-web" | "web-saas" | (string & {});
533
+ context: SeedAppAuthUserContext;
534
+ };
535
+ type SeedAppAuthAccessTokenRequest = {
536
+ appId: string;
537
+ scopes?: string[];
538
+ reason?: string;
539
+ ttlMs?: number;
540
+ };
541
+ type SeedAppAuthAccessTokenResult = {
542
+ token: string;
543
+ tokenType: "seed-app";
544
+ appId: string;
545
+ userId: string;
546
+ tenantId?: string;
547
+ scopes: string[];
548
+ issuedAt: number;
549
+ expiresAt: number;
550
+ };
551
+ type SeedAppNetworkFetchRequest = {
552
+ url: string;
553
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
554
+ headers?: Record<string, string>;
555
+ body?: string;
556
+ timeoutMs?: number;
557
+ };
558
+ type SeedAppNetworkFetchResult = {
559
+ url: string;
560
+ status: number;
561
+ statusText: string;
562
+ headers: Record<string, string>;
563
+ body: string;
564
+ };
565
+ type SeedAppAgentRunRequest = {
566
+ assistantId?: string;
567
+ conversationId?: string;
568
+ /** Required when creating a new cloud Conversation Runtime conversation. */
569
+ productWorkspaceId?: string;
570
+ /** Optional path within productWorkspaceId; raw filesystem URIs are not accepted. */
571
+ cwdPath?: string;
572
+ traceId?: string;
573
+ traceparent?: string;
574
+ title?: string;
575
+ appId?: string;
576
+ runtimeConfig?: Record<string, unknown>;
577
+ input: string;
578
+ /**
579
+ * Optional custom system prompt the App Host wants the agent to adopt as its
580
+ * persona/role for this run. When provided, the host injects it as the agent's
581
+ * system prompt (e.g. qwen native `--system-prompt`). This is a generic App Host
582
+ * capability — any vertical app can supply its own persona; it is not tied to
583
+ * any specific app. Omitting it preserves the host's default behavior.
584
+ */
585
+ systemPrompt?: string;
586
+ attachments?: SeedAppAgentAttachment[];
587
+ metadata?: Record<string, unknown>;
588
+ };
589
+ type SeedAppAgentAttachment = {
590
+ kind: "image";
591
+ dataBase64: string;
592
+ mimeType: string;
593
+ fileName?: string;
594
+ };
595
+ type SeedAppAgentRunResult = {
596
+ conversationId?: string;
597
+ runId: string;
598
+ status: "started" | "queued" | "completed";
599
+ output?: unknown;
600
+ };
601
+ type SeedDispatchMode = "steer" | "collect" | "followup" | "side";
602
+ type SeedAppAgentInputSubmitRequest = {
603
+ conversationId: string;
604
+ runId?: string;
605
+ mode: SeedDispatchMode;
606
+ content: string;
607
+ files?: string[];
608
+ createdAt?: string;
609
+ metadata?: Record<string, unknown>;
610
+ };
611
+ type SeedAppAgentInputSubmitResult = {
612
+ conversationId: string;
613
+ runId?: string;
614
+ mode: SeedDispatchMode;
615
+ status: "started" | "steered" | "collected" | "queued" | "side_started" | "rejected";
616
+ reason?: string;
617
+ qwenNative?: boolean;
618
+ seedEmulated?: boolean;
619
+ itemCount?: number;
620
+ sideQuestion?: SeedAppAgentSideQuestionResult;
621
+ };
622
+ type SeedAppAgentStopByRunRequest = {
623
+ runId: string;
624
+ conversationId?: string;
625
+ reason?: string;
626
+ };
627
+ type SeedAppAgentStopByConversationRequest = {
628
+ conversationId: string;
629
+ runId?: string;
630
+ reason?: string;
631
+ };
632
+ type SeedAppAgentStopRequest = SeedAppAgentStopByRunRequest | SeedAppAgentStopByConversationRequest;
633
+ type SeedAppAgentStopResult = {
634
+ conversationId?: string;
635
+ runId?: string;
636
+ stopped: boolean;
637
+ reason?: string;
638
+ };
639
+ type SeedAppAgentSideQuestionResult = {
640
+ status: "ok";
641
+ answer: string;
642
+ } | {
643
+ status: "noAnswer";
644
+ } | {
645
+ status: "unsupported";
646
+ } | {
647
+ status: "invalid";
648
+ reason: "emptyQuestion";
649
+ } | {
650
+ status: "toolsRequired";
651
+ };
652
+ type SeedAppAgentSideQuestionAskRequest = {
653
+ conversationId: string;
654
+ question: string;
655
+ };
656
+ type SeedAppAgentSideQuestionAskResult = SeedAppAgentSideQuestionResult;
657
+ type SeedAppAgentApprovalRespondRequest = {
658
+ runId: string;
659
+ approvalId: string;
660
+ optionId: string;
661
+ conversationId?: string;
662
+ callId?: string;
663
+ };
664
+ type SeedAppAgentApprovalRespondResult = {
665
+ ok: boolean;
666
+ eventCount?: number;
667
+ };
668
+ type SeedAppAgentApprovalListRequest = {
669
+ conversationId: string;
670
+ };
671
+ type SeedAppAgentApprovalCheckRequest = {
672
+ conversationId: string;
673
+ action: string;
674
+ commandType?: string;
675
+ };
676
+ type SeedAppAgentApprovalCheckResult = {
677
+ approved: boolean;
678
+ };
679
+ type SeedAppAgentApprovalOption = {
680
+ label: string;
681
+ value: string;
682
+ params?: Record<string, string>;
683
+ };
684
+ type SeedAppAgentPendingApproval = {
685
+ id: string;
686
+ conversationId: string;
687
+ runId?: string;
688
+ title?: string;
689
+ description: string;
690
+ callId: string;
691
+ action?: string;
692
+ commandType?: string;
693
+ options: SeedAppAgentApprovalOption[];
694
+ };
695
+ type SeedAppAgentApprovalChangedAction = "added" | "updated" | "removed";
696
+ type SeedAppAgentApprovalChangedEvent = {
697
+ action: SeedAppAgentApprovalChangedAction;
698
+ conversationId: string;
699
+ approvalId: string;
700
+ approval?: SeedAppAgentPendingApproval;
701
+ };
702
+ type SeedAppAgentElicitationRespondRequest = {
703
+ runId: string;
704
+ requestId: string;
705
+ response: Record<string, unknown>;
706
+ conversationId?: string;
707
+ };
708
+ type SeedAppAgentElicitationRespondResult = {
709
+ ok: boolean;
710
+ eventCount?: number;
711
+ };
712
+ type SeedAppSpeechTranscribeRequest = {
713
+ audioBase64: string;
714
+ fileName?: string;
715
+ languageHint?: string;
716
+ mimeType: string;
717
+ config?: unknown;
718
+ };
719
+ type SeedAppSpeechTranscribeSegment = {
720
+ definite?: boolean;
721
+ endTimeMs?: number;
722
+ speakerId?: string;
723
+ speakerLabel?: string;
724
+ startTimeMs?: number;
725
+ text: string;
726
+ };
727
+ type SeedAppSpeechTranscribeSpeaker = {
728
+ id: string;
729
+ label: string;
730
+ };
731
+ type SeedAppSpeechTranscribeResult = {
732
+ language?: string;
733
+ model: string;
734
+ provider: string;
735
+ segments?: SeedAppSpeechTranscribeSegment[];
736
+ speakers?: SeedAppSpeechTranscribeSpeaker[];
737
+ text: string;
738
+ };
739
+ type SeedAppConversationStatus = "idle" | "running" | "waiting_input" | "waiting_approval" | "completed" | "failed" | "cancelled" | string;
740
+ type SeedAppConversationAuthority = SeedConversationAuthorityDescriptor;
741
+ type SeedAppConversation = {
742
+ id: string;
743
+ title: string;
744
+ authority?: SeedAppConversationAuthority;
745
+ agentId?: string;
746
+ status?: SeedAppConversationStatus;
747
+ metadata?: Record<string, unknown>;
748
+ createdAt?: string;
749
+ updatedAt?: string;
750
+ };
751
+ type SeedAppConversationMessage = {
752
+ id: string;
753
+ conversationId: string;
754
+ role: "user" | "assistant" | "system" | "tool" | "cron_trigger" | string;
755
+ content: string;
756
+ createdAt: string;
757
+ };
758
+ type SeedAppConversationListRequest = {
759
+ limit?: number;
760
+ cursor?: string;
761
+ page?: number;
762
+ pageSize?: number;
763
+ };
764
+ type SeedAppConversationListByCronJobRequest = {
765
+ cronJobId: string;
766
+ };
767
+ type SeedAppConversationCreateRequest = {
768
+ id?: string;
769
+ assistantId?: string;
770
+ agentId?: string;
771
+ title?: string;
772
+ name?: string;
773
+ type?: string;
774
+ model?: Record<string, unknown>;
775
+ metadata?: Record<string, unknown>;
776
+ };
777
+ type SeedAppConversationGetRequest = {
778
+ conversationId: string;
779
+ };
780
+ type SeedAppConversationMessagesRequest = {
781
+ conversationId: string;
782
+ page?: number;
783
+ pageSize?: number;
784
+ order?: "ASC" | "DESC";
785
+ pageResult?: boolean;
786
+ };
787
+ type SeedAppConversationMessagesPageResult = {
788
+ items: SeedAppConversationMessage[];
789
+ pageInfo: {
790
+ page: number;
791
+ pageSize: number;
792
+ total: number;
793
+ hasMoreBefore: boolean;
794
+ };
795
+ };
796
+ type SeedAppConversationSearchMessagesRequest = {
797
+ keyword: string;
798
+ page?: number;
799
+ pageSize?: number;
800
+ };
801
+ type SeedAppConversationSearchMessagesItem = {
802
+ conversation: SeedAppConversation;
803
+ messageId: string;
804
+ messageType: string;
805
+ messageCreatedAt: number;
806
+ previewText: string;
807
+ };
808
+ type SeedAppConversationSearchMessagesResult = {
809
+ items: SeedAppConversationSearchMessagesItem[];
810
+ total: number;
811
+ page: number;
812
+ pageSize: number;
813
+ hasMore: boolean;
814
+ };
815
+ type SeedAppConversationRenameRequest = {
816
+ conversationId: string;
817
+ title: string;
818
+ };
819
+ type SeedAppConversationMetadataUpdateRequest = {
820
+ conversationId: string;
821
+ metadata: Record<string, unknown>;
822
+ merge?: boolean;
823
+ };
824
+ type SeedAppConversationModelUpdateRequest = {
825
+ conversationId: string;
826
+ model: Record<string, unknown>;
827
+ };
828
+ type SeedAppConversationDeleteRequest = {
829
+ conversationId: string;
830
+ };
831
+ type SeedAppConversationDeleteResult = {
832
+ ok: boolean;
833
+ };
834
+ type SeedAppConversationArchiveImportRequest = {
835
+ path: string;
836
+ namePrefix?: string;
837
+ };
838
+ type SeedAppConversationArchiveImportData = {
839
+ conversationId: string;
840
+ sourceConversationId: string;
841
+ importedMessages: number;
842
+ restoredWorkspacePath?: string;
843
+ };
844
+ type SeedAppConversationArchiveImportResult = {
845
+ success: boolean;
846
+ data?: SeedAppConversationArchiveImportData;
847
+ msg?: string;
848
+ };
849
+ type SeedAppConversationChangedAction = "created" | "updated" | "deleted";
850
+ type SeedAppConversationChangedEvent = {
851
+ conversationId: string;
852
+ action: SeedAppConversationChangedAction;
853
+ source?: string;
854
+ };
855
+ type SeedAppRemotePcContentLease = {
856
+ status: "active" | "expired" | "unavailable";
857
+ generation?: number;
858
+ reasonCode?: "vibe_capability_missing" | "remote_pc_offline";
859
+ };
860
+ type SeedAppRemotePcPresence = {
861
+ deviceId: string;
862
+ displayName: string;
863
+ status: "online" | "offline";
864
+ lastSeenAt: number;
865
+ contentLease: SeedAppRemotePcContentLease;
866
+ };
867
+ type SeedAppRemotePcPresenceChangedEvent = {
868
+ action: "connected" | "updated" | "lease-expired";
869
+ presence: SeedAppRemotePcPresence;
870
+ };
871
+ type SeedAppRemotePcVibeConversation = {
872
+ authority: Extract<SeedConversationAuthorityDescriptor, {
873
+ kind: "remote-pc";
874
+ }>;
875
+ title: string;
876
+ status?: "idle" | "running" | "completed" | "failed";
877
+ createdAt: string | number;
878
+ updatedAt: string | number;
879
+ };
880
+ type SeedAppRemotePcVibeListRequest = {
881
+ deviceId?: string;
882
+ };
883
+ type SeedAppRemotePcVibeRef = {
884
+ deviceId: string;
885
+ hostConversationId: string;
886
+ };
887
+ type SeedAppRemotePcVibeEventsRequest = SeedAppRemotePcVibeRef & {
888
+ cursor?: string;
889
+ waitMs?: number;
890
+ };
891
+ type SeedAppRemotePcVibeEventsResult = {
892
+ messages: SeedAppConversationMessage[];
893
+ cursor?: string;
894
+ timedOut: boolean;
895
+ };
896
+ type SeedAppRemotePcVibeEventsHandler = (event: SeedAppRemotePcVibeEventsResult) => void;
897
+ type SeedAppRemotePcVibeSubscribeOptions = {
898
+ requestTimeoutMs?: number;
899
+ initialCursor?: string;
900
+ waitMs?: number;
901
+ onCursor?: (cursor: string) => void | Promise<void>;
902
+ onError?: (error: unknown) => void;
903
+ };
904
+ type SeedAppRemotePcVibeUnsubscribe = () => Promise<void>;
905
+ type SeedAppConversationArtifactIdRequest = {
906
+ artifactId: string;
907
+ };
908
+ type SeedAppConversationArtifactListRequest = {
909
+ conversationId: string;
910
+ };
911
+ type SeedAppConversationArtifact = {
912
+ id: string;
913
+ runId?: string;
914
+ runnerArtifactId?: string;
915
+ name: string;
916
+ kind: "file" | "image" | "html" | "archive" | "manifest" | "other" | string;
917
+ sizeBytes?: number;
918
+ mimeType?: string;
919
+ previewStatus?: "none" | "pending" | "ready" | "failed" | string;
920
+ downloadUrl?: string;
921
+ previewUrl?: string;
922
+ storage?: {
923
+ provider?: string;
924
+ blobRef?: string;
925
+ contentAddress?: string;
926
+ sizeBytes?: number;
927
+ };
928
+ sourceProvenance?: {
929
+ evidenceIds: string[];
930
+ sourceArtifactIds: string[];
931
+ sourceArtifactNames: string[];
932
+ };
933
+ policy?: {
934
+ retentionStatus?: "default" | "temporary" | "legal_hold" | "expired" | string;
935
+ retentionExpiresAt?: number;
936
+ redactionStatus?: "none" | "pending" | "redacted" | "failed" | string;
937
+ downloadPolicy?: "allow" | "preview_only" | "blocked" | string;
938
+ canPreview?: boolean;
939
+ canDownload?: boolean;
940
+ canMaterialize?: boolean;
941
+ canShare?: boolean;
942
+ };
943
+ createdAt: string;
944
+ };
945
+ type SeedAppConversationArtifactShareTarget = {
946
+ id: string;
947
+ username: string;
948
+ role?: string;
949
+ };
950
+ type SeedAppConversationArtifactAccess = {
951
+ id: string;
952
+ artifactId: string;
953
+ userId: string;
954
+ role: "viewer" | "materializer" | string;
955
+ createdAt: string;
956
+ };
957
+ type SeedAppConversationArtifactShareRequest = {
958
+ artifactId: string;
959
+ userId: string;
960
+ role: "viewer" | "materializer";
961
+ };
962
+ type SeedAppConversationArtifactAccessRevokeRequest = {
963
+ artifactId: string;
964
+ userId: string;
965
+ };
966
+ type SeedAppConversationArtifactMaterializeRequest = {
967
+ artifactId: string;
968
+ workspaceId: string;
969
+ name?: string;
970
+ };
971
+ type SeedAppConversationArtifactMaterialization = {
972
+ id: string;
973
+ artifactId: string;
974
+ workspaceId: string;
975
+ fileId: string;
976
+ createdAt: string;
977
+ };
978
+ type SeedAppConversationArtifactPolicyUpdateRequest = {
979
+ artifactId: string;
980
+ retentionStatus?: "default" | "temporary" | "legal_hold" | "expired";
981
+ retentionExpiresAt?: number;
982
+ redactionStatus?: "none" | "pending" | "redacted" | "failed";
983
+ downloadPolicy?: "allow" | "preview_only" | "blocked";
984
+ reason?: string;
985
+ };
986
+ type SeedAppConversationArtifactScrubRequest = {
987
+ artifactId: string;
988
+ };
989
+ type SeedAppConversationArtifactScrubFinding = {
990
+ className: "email" | "bearer-token" | "api-key" | "private-key" | "password-assignment" | string;
991
+ count: number;
992
+ };
993
+ type SeedAppConversationArtifactScrubResult = {
994
+ artifactId: string;
995
+ scannedBytes: number;
996
+ findingCount: number;
997
+ findings: SeedAppConversationArtifactScrubFinding[];
998
+ wouldRedact: boolean;
999
+ safeObjectCreated?: boolean;
1000
+ contentAddress?: string;
1001
+ };
1002
+ type SeedAppConversationArtifactEvidence = {
1003
+ id: string;
1004
+ artifactId: string;
1005
+ action: string;
1006
+ actorUserId?: string;
1007
+ targetUserId?: string;
1008
+ workspaceId?: string;
1009
+ fileId?: string;
1010
+ message?: string;
1011
+ createdAt: string;
1012
+ };
1013
+ type SeedAppAgentListRequest = {
1014
+ includeUnavailable?: boolean;
1015
+ };
1016
+ type SeedAppAgentPresetUpdateRequest = {
1017
+ assistantId: string;
1018
+ presetAgentType: string;
1019
+ };
1020
+ type SeedAppAgentPresetUpdateResult = {
1021
+ ok: boolean;
1022
+ assistant?: SeedAppAgentSummary;
1023
+ };
1024
+ type SeedAppAgentConfigCollection = "preset" | "custom";
1025
+ type SeedAppAgentConfigInput = {
1026
+ id: string;
1027
+ name: string;
1028
+ enabled?: boolean;
1029
+ isPreset?: boolean;
1030
+ backend?: string;
1031
+ presetAgentType?: string;
1032
+ context?: string;
1033
+ avatar?: string;
1034
+ defaultCliPath?: string;
1035
+ cliPath?: string;
1036
+ acpArgs?: string[];
1037
+ agentProject?: unknown;
1038
+ [key: string]: unknown;
1039
+ };
1040
+ type SeedAppAgentConfigUpsertRequest = {
1041
+ collection: SeedAppAgentConfigCollection;
1042
+ agent: SeedAppAgentConfigInput;
1043
+ };
1044
+ type SeedAppAgentConfigDeleteRequest = {
1045
+ collection: SeedAppAgentConfigCollection;
1046
+ assistantId: string;
1047
+ };
1048
+ type SeedAppAgentConfigMutationResult = {
1049
+ ok: boolean;
1050
+ assistant?: SeedAppAgentSummary;
1051
+ deleted?: boolean;
1052
+ };
1053
+ type SeedAppAgentRuntimeConfigOptionChoice = {
1054
+ value: string;
1055
+ name?: string;
1056
+ label?: string;
1057
+ };
1058
+ type SeedAppAgentRuntimeConfigOption = {
1059
+ id: string;
1060
+ name?: string;
1061
+ label?: string;
1062
+ category?: string;
1063
+ type?: string;
1064
+ currentValue?: string | boolean;
1065
+ selectedValue?: string | boolean;
1066
+ options?: SeedAppAgentRuntimeConfigOptionChoice[];
1067
+ };
1068
+ type SeedAppAgentRuntimeConfigOptionsGetRequest = {
1069
+ conversationId: string;
1070
+ };
1071
+ type SeedAppAgentRuntimeConfigOptionsResult = {
1072
+ configOptions: SeedAppAgentRuntimeConfigOption[];
1073
+ };
1074
+ type SeedAppAgentRuntimeConfigOptionSetRequest = {
1075
+ conversationId: string;
1076
+ configId: string;
1077
+ value: string;
1078
+ };
1079
+ type SeedAppAgentRuntimeModelInfoSource = "configOption" | "models";
1080
+ type SeedAppAgentRuntimeModelInfoSourceDetail = "cc-switch" | "acp-config-option" | "acp-models" | "persisted-model" | "codex-stream";
1081
+ type SeedAppAgentRuntimeModelOption = {
1082
+ id: string;
1083
+ label: string;
1084
+ };
1085
+ type SeedAppAgentRuntimeModelInfo = {
1086
+ currentModelId: string | null;
1087
+ currentModelLabel: string | null;
1088
+ availableModels: SeedAppAgentRuntimeModelOption[];
1089
+ canSwitch: boolean;
1090
+ source: SeedAppAgentRuntimeModelInfoSource;
1091
+ sourceDetail?: SeedAppAgentRuntimeModelInfoSourceDetail;
1092
+ configOptionId?: string;
1093
+ };
1094
+ type SeedAppAgentRuntimeModelGetRequest = {
1095
+ conversationId: string;
1096
+ };
1097
+ type SeedAppAgentRuntimeModelGetResult = {
1098
+ modelInfo: SeedAppAgentRuntimeModelInfo | null;
1099
+ };
1100
+ type SeedAppAgentRuntimeModelSetRequest = {
1101
+ conversationId: string;
1102
+ modelId: string;
1103
+ };
1104
+ type SeedAppAgentRuntimeModelSetResult = {
1105
+ modelInfo: SeedAppAgentRuntimeModelInfo | null;
1106
+ };
1107
+ type SeedAppAgentRuntimeModeGetRequest = {
1108
+ conversationId: string;
1109
+ };
1110
+ type SeedAppAgentRuntimeModeGetResult = {
1111
+ mode: string;
1112
+ initialized: boolean;
1113
+ };
1114
+ type SeedAppAgentRuntimeModeSetRequest = {
1115
+ conversationId: string;
1116
+ mode: string;
1117
+ };
1118
+ type SeedAppAgentRuntimeModeSetResult = {
1119
+ mode: string;
1120
+ initialized: boolean;
1121
+ };
1122
+ type SeedAppAgentRuntimeBackend = "seed";
1123
+ type SeedAppAgentRuntimeBundledStatus = {
1124
+ backend: SeedAppAgentRuntimeBackend;
1125
+ packageName: string;
1126
+ available: boolean;
1127
+ bundled: boolean;
1128
+ updateSupported: boolean;
1129
+ source: "user" | "app" | "missing";
1130
+ version?: string;
1131
+ requestedVersion?: string;
1132
+ cliPath?: string;
1133
+ error?: string;
1134
+ };
1135
+ type SeedAppAgentRuntimeBundledGetRequest = {
1136
+ backend: SeedAppAgentRuntimeBackend;
1137
+ };
1138
+ type SeedAppAgentRuntimeBundledGetResult = {
1139
+ runtime: SeedAppAgentRuntimeBundledStatus;
1140
+ };
1141
+ type SeedAppAgentRuntimeBundledUpdateRequest = {
1142
+ backend: SeedAppAgentRuntimeBackend;
1143
+ version?: string;
1144
+ };
1145
+ type SeedAppAgentRuntimeBundledUpdateResult = {
1146
+ runtime: SeedAppAgentRuntimeBundledStatus;
1147
+ };
1148
+ type SeedAppAgentRuntimeStaleReason = "mcp_config_changed" | "shared_process_config_changed" | "runtime_settings_changed";
1149
+ type SeedAppAgentRuntimeRestartReason = SeedAppAgentRuntimeStaleReason | "manual_settings_restart";
1150
+ type SeedAppAgentRuntimeMcpStartupMode = "eager" | "gateway" | "disabled";
1151
+ type SeedAppAgentLocalRuntimeStatus = {
1152
+ backend: SeedAppAgentRuntimeBackend;
1153
+ running: boolean;
1154
+ stale: boolean;
1155
+ restartRequired: boolean;
1156
+ staleReason?: SeedAppAgentRuntimeStaleReason;
1157
+ staleAt?: number;
1158
+ processCount: number;
1159
+ taskCount: number;
1160
+ conversationIds: string[];
1161
+ pids: number[];
1162
+ sharedProcessEnabled: boolean;
1163
+ mcpStartupMode: SeedAppAgentRuntimeMcpStartupMode;
1164
+ };
1165
+ type SeedAppAgentRuntimeLocalStatusGetRequest = {
1166
+ backend: SeedAppAgentRuntimeBackend;
1167
+ };
1168
+ type SeedAppAgentRuntimeLocalStatusGetResult = {
1169
+ status: SeedAppAgentLocalRuntimeStatus;
1170
+ };
1171
+ type SeedAppAgentRuntimeLocalRestartRequest = {
1172
+ backend: SeedAppAgentRuntimeBackend;
1173
+ reason?: SeedAppAgentRuntimeRestartReason;
1174
+ };
1175
+ type SeedAppAgentRuntimeLocalRestartResult = {
1176
+ backend: SeedAppAgentRuntimeBackend;
1177
+ restartedTaskCount: number;
1178
+ releasedProcessCount: number;
1179
+ conversationIds: string[];
1180
+ };
1181
+ type SeedAppAgentRuntimeCapabilityPrefetchStatus = {
1182
+ backend: string;
1183
+ status: "success" | "error" | "disabled" | "skipped";
1184
+ updatedAt?: number;
1185
+ error?: string;
1186
+ promptCapabilities?: unknown;
1187
+ modelInfo?: SeedAppAgentRuntimeModelInfo | null;
1188
+ configOptions?: SeedAppAgentRuntimeConfigOption[];
1189
+ modes?: unknown;
1190
+ };
1191
+ type SeedAppAgentRuntimeCapabilitiesPrefetchRequest = {
1192
+ backend: string;
1193
+ force?: boolean;
1194
+ };
1195
+ type SeedAppAgentRuntimeCapabilitiesPrefetchResult = {
1196
+ prefetch: SeedAppAgentRuntimeCapabilityPrefetchStatus;
1197
+ };
1198
+ type SeedAppAgentRuntimeLocalStaleMarkRequest = {
1199
+ backend: SeedAppAgentRuntimeBackend;
1200
+ reason: SeedAppAgentRuntimeStaleReason;
1201
+ };
1202
+ type SeedAppAgentRuntimeLocalStaleMarkResult = {
1203
+ backend: SeedAppAgentRuntimeBackend;
1204
+ stale: boolean;
1205
+ restartRequired: boolean;
1206
+ staleReason?: SeedAppAgentRuntimeStaleReason;
1207
+ staleAt?: number;
1208
+ mcpStartupMode: SeedAppAgentRuntimeMcpStartupMode;
1209
+ };
1210
+ type SeedAppAgentRuntimeCustomTestStep = "cli_check" | "acp_initialize";
1211
+ type SeedAppAgentRuntimeCustomTestRequest = {
1212
+ command: string;
1213
+ acpArgs?: string[];
1214
+ env?: Record<string, string>;
1215
+ };
1216
+ type SeedAppAgentRuntimeCustomTestResult = {
1217
+ success: boolean;
1218
+ step?: SeedAppAgentRuntimeCustomTestStep;
1219
+ error?: string;
1220
+ message?: string;
1221
+ };
1222
+ type SeedAppAgentRuntimeSlashCommandKind = "template" | "builtin" | "action";
1223
+ type SeedAppAgentRuntimeSlashCommandSource = "acp" | "builtin" | "local" | "extension";
1224
+ type SeedAppAgentRuntimeSlashCommandSelectionBehavior = "execute" | "insert";
1225
+ type SeedAppAgentRuntimeSlashCommand = {
1226
+ name: string;
1227
+ description: string;
1228
+ kind: SeedAppAgentRuntimeSlashCommandKind;
1229
+ source: SeedAppAgentRuntimeSlashCommandSource;
1230
+ hint?: string;
1231
+ selectionBehavior?: SeedAppAgentRuntimeSlashCommandSelectionBehavior;
1232
+ forcedSkillNames?: string[];
1233
+ };
1234
+ type SeedAppAgentRuntimeSlashCommandsListRequest = {
1235
+ conversationId?: string;
1236
+ };
1237
+ type SeedAppAgentRuntimeSlashCommandsListResult = {
1238
+ commands: SeedAppAgentRuntimeSlashCommand[];
1239
+ };
1240
+ type SeedAppAgentRuntimeSlashCommandExecuteRequest = {
1241
+ conversationId: string;
1242
+ name: string;
1243
+ };
1244
+ type SeedAppAgentRuntimeSlashCommandExecuteResult = {
1245
+ ok: boolean;
1246
+ action?: "conversation.branch";
1247
+ conversationId?: string;
1248
+ message?: string;
1249
+ };
1250
+ type SeedAppAgentRuntimeSessionEnsureReason = "conversation_visible" | "input_focus" | "runtime_switch";
1251
+ type SeedAppAgentRuntimeSessionEnsureRequest = {
1252
+ conversationId: string;
1253
+ backend: string;
1254
+ reason?: SeedAppAgentRuntimeSessionEnsureReason;
1255
+ };
1256
+ type SeedAppAgentRuntimeSessionEnsureResult = {
1257
+ conversationId: string;
1258
+ backend: string;
1259
+ status: "success" | "disabled";
1260
+ };
1261
+ type SeedAppAgentRuntimeConversationWarmupStatus = "success" | "skipped" | "failed";
1262
+ type SeedAppAgentRuntimeConversationWarmupReason = "acp_conversation" | "provider_failed";
1263
+ type SeedAppAgentRuntimeConversationWarmupRequest = {
1264
+ conversationId: string;
1265
+ };
1266
+ type SeedAppAgentRuntimeConversationWarmupResult = {
1267
+ conversationId: string;
1268
+ status: SeedAppAgentRuntimeConversationWarmupStatus;
1269
+ reason?: SeedAppAgentRuntimeConversationWarmupReason;
1270
+ message?: string;
1271
+ };
1272
+ type SeedAppAgentRuntimeOpenClawGetRequest = {
1273
+ conversationId: string;
1274
+ };
1275
+ type SeedAppAgentRuntimeOpenClawRuntime = {
1276
+ workspace?: string;
1277
+ backend?: string;
1278
+ agentName?: string;
1279
+ cliPath?: string;
1280
+ model?: string;
1281
+ sessionKey?: string | null;
1282
+ isConnected?: boolean;
1283
+ hasActiveSession?: boolean;
1284
+ identityHash?: string | null;
1285
+ };
1286
+ type SeedAppAgentRuntimeOpenClawExpected = {
1287
+ expectedWorkspace?: string;
1288
+ expectedBackend?: string;
1289
+ expectedAgentName?: string;
1290
+ expectedCliPath?: string;
1291
+ expectedModel?: string;
1292
+ expectedIdentityHash?: string | null;
1293
+ switchedAt?: number;
1294
+ };
1295
+ type SeedAppAgentRuntimeOpenClawGetResult = {
1296
+ conversationId: string;
1297
+ runtime: SeedAppAgentRuntimeOpenClawRuntime;
1298
+ expected?: SeedAppAgentRuntimeOpenClawExpected;
1299
+ };
1300
+ type SeedAppAgentRuntimeProcessSnapshotGetRequest = {
1301
+ conversationId: string;
1302
+ };
1303
+ type SeedAppAgentRuntimeProcessSnapshot = {
1304
+ conversationId: string;
1305
+ processCount: number;
1306
+ pid: number | null;
1307
+ running: boolean;
1308
+ backend?: string;
1309
+ status?: string;
1310
+ lastExitSignal?: string | null;
1311
+ lastExitCode?: number | null;
1312
+ };
1313
+ type SeedAppAgentRuntimeProcessSnapshotGetResult = {
1314
+ snapshot: SeedAppAgentRuntimeProcessSnapshot;
1315
+ };
1316
+ type SeedAppAgentRuntimeProcessReleaseRequest = {
1317
+ conversationId: string;
1318
+ };
1319
+ type SeedAppAgentRuntimeProcessReleaseResult = {
1320
+ conversationId: string;
1321
+ releasedProcessCount: number;
1322
+ };
1323
+ type SeedAppSubagentSessionRequest = {
1324
+ conversationId: string;
1325
+ parentSessionId?: string;
1326
+ parentToolCallId: string;
1327
+ childSessionId: string;
1328
+ title?: string;
1329
+ messageStartIndex?: number | null;
1330
+ messageEndIndex?: number | null;
1331
+ toolName?: string;
1332
+ inline?: boolean;
1333
+ };
1334
+ type SeedAppSubagentSessionMessageType = "text" | "thinking" | "tool";
1335
+ type SeedAppSubagentSessionMessage = {
1336
+ id: string;
1337
+ type: SeedAppSubagentSessionMessageType;
1338
+ childEntryIndex?: number;
1339
+ childEntryEndIndex?: number;
1340
+ createdAt?: number;
1341
+ status?: string;
1342
+ text?: string;
1343
+ subject?: string;
1344
+ title?: string;
1345
+ toolCallId?: string;
1346
+ toolName?: string;
1347
+ };
1348
+ type SeedAppSubagentSessionSnapshot = {
1349
+ conversationId: string;
1350
+ parentSessionId: string;
1351
+ parentToolCallId: string;
1352
+ childSessionId: string;
1353
+ title: string;
1354
+ status: "pending" | "in_progress" | "completed" | "failed";
1355
+ messageStartIndex?: number | null;
1356
+ messageEndIndex?: number | null;
1357
+ toolName?: string;
1358
+ inline?: boolean;
1359
+ messages: SeedAppSubagentSessionMessage[];
1360
+ loaded: boolean;
1361
+ loading: boolean;
1362
+ error?: string;
1363
+ };
1364
+ type SeedAppSubagentSessionSnapshotGetRequest = SeedAppSubagentSessionRequest;
1365
+ type SeedAppSubagentSessionSnapshotGetResult = {
1366
+ record: SeedAppSubagentSessionSnapshot | null;
1367
+ };
1368
+ type SeedAppSubagentSessionLoadRequest = SeedAppSubagentSessionRequest;
1369
+ type SeedAppSubagentSessionLoadResult = {
1370
+ record: SeedAppSubagentSessionSnapshot | null;
1371
+ };
1372
+ type SeedAppAgentSummary = {
1373
+ id: string;
1374
+ agentId: string;
1375
+ runnerId?: string;
1376
+ name: string;
1377
+ source?: string;
1378
+ kind?: string;
1379
+ backend?: string;
1380
+ status?: "available" | "busy" | "offline" | string;
1381
+ capabilities?: string[];
1382
+ supportedTransports?: string[];
1383
+ providerReadiness?: unknown;
1384
+ isPreset?: boolean;
1385
+ isBuiltin?: boolean;
1386
+ enabled?: boolean;
1387
+ nameI18n?: Record<string, string>;
1388
+ description?: string;
1389
+ descriptionI18n?: Record<string, string>;
1390
+ avatar?: string;
1391
+ context?: string;
1392
+ enabledSkills?: string[];
1393
+ customSkillNames?: string[];
1394
+ disabledBuiltinSkills?: string[];
1395
+ presetAgentType?: string;
1396
+ cliPath?: string;
1397
+ acpArgs?: string[];
1398
+ agentProject?: unknown;
1399
+ };
1400
+ type SeedAppTeamAgentStatus = "pending" | "idle" | "active" | "completed" | "failed" | string;
1401
+ type SeedAppTeamAgent = {
1402
+ slotId: string;
1403
+ conversationId: string;
1404
+ role: "leader" | "teammate" | string;
1405
+ agentType: string;
1406
+ agentName: string;
1407
+ conversationType: string;
1408
+ status: SeedAppTeamAgentStatus;
1409
+ customAgentId?: string;
1410
+ model?: string;
1411
+ employeeId?: string;
1412
+ roleTemplateId?: string;
1413
+ employeeName?: string;
1414
+ };
1415
+ type SeedAppTeam = {
1416
+ id: string;
1417
+ name: string;
1418
+ workspaceMode: "shared" | "isolated" | string;
1419
+ teammateSourcePolicy?: "all" | "employees-only" | string;
1420
+ leaderAgentId: string;
1421
+ agents: SeedAppTeamAgent[];
1422
+ sessionMode?: string;
1423
+ workspaceRef?: string;
1424
+ createdAt: string | number;
1425
+ updatedAt: string | number;
1426
+ };
1427
+ type SeedAppTeamChangedEvent = {
1428
+ teamId: string;
1429
+ action: "created" | "removed" | "updated" | "agent_added" | "agent_removed" | "agent_renamed";
1430
+ };
1431
+ type SeedAppTeamAgentStatusChangedEvent = {
1432
+ teamId: string;
1433
+ slotId: string;
1434
+ status: SeedAppTeamAgentStatus;
1435
+ lastMessage?: string;
1436
+ };
1437
+ type SeedAppTeamAgentSpawnedEvent = {
1438
+ teamId: string;
1439
+ agent: SeedAppTeamAgent;
1440
+ };
1441
+ type SeedAppTeamAgentRemovedEvent = {
1442
+ teamId: string;
1443
+ slotId: string;
1444
+ };
1445
+ type SeedAppTeamAgentRenamedEvent = {
1446
+ teamId: string;
1447
+ slotId: string;
1448
+ oldName: string;
1449
+ newName: string;
1450
+ };
1451
+ type SeedAppTeamListRequest = {
1452
+ userId?: string;
1453
+ };
1454
+ type SeedAppTeamCreateRequest = {
1455
+ userId: string;
1456
+ name: string;
1457
+ workspace?: string;
1458
+ workspaceMode: "shared" | "isolated" | string;
1459
+ teammateSourcePolicy?: "all" | "employees-only" | string;
1460
+ agents: SeedAppTeamAgentAddInput[];
1461
+ sessionMode?: string;
1462
+ };
1463
+ type SeedAppTeamGetRequest = {
1464
+ id: string;
1465
+ };
1466
+ type SeedAppTeamDeleteRequest = {
1467
+ id: string;
1468
+ };
1469
+ type SeedAppTeamDeleteResult = {
1470
+ ok: boolean;
1471
+ };
1472
+ type SeedAppTeamRenameRequest = {
1473
+ id: string;
1474
+ name: string;
1475
+ };
1476
+ type SeedAppTeamRenameResult = {
1477
+ ok: boolean;
1478
+ };
1479
+ type SeedAppTeamSessionModeSetRequest = {
1480
+ teamId: string;
1481
+ sessionMode: string;
1482
+ };
1483
+ type SeedAppTeamSessionModeSetResult = {
1484
+ ok: boolean;
1485
+ };
1486
+ type SeedAppTeamWorkspaceUpdateRequest = {
1487
+ teamId: string;
1488
+ workspace: string;
1489
+ };
1490
+ type SeedAppTeamWorkspaceUpdateResult = {
1491
+ ok: boolean;
1492
+ };
1493
+ type SeedAppTeamAgentAddInput = {
1494
+ role: "leader" | "teammate" | string;
1495
+ agentType: string;
1496
+ agentName: string;
1497
+ conversationType?: string;
1498
+ status?: SeedAppTeamAgentStatus;
1499
+ customAgentId?: string;
1500
+ model?: string;
1501
+ employeeId?: string;
1502
+ roleTemplateId?: string;
1503
+ employeeName?: string;
1504
+ };
1505
+ type SeedAppTeamAgentAddRequest = {
1506
+ teamId: string;
1507
+ agent: SeedAppTeamAgentAddInput;
1508
+ };
1509
+ type SeedAppTeamAgentRemoveRequest = {
1510
+ teamId: string;
1511
+ slotId: string;
1512
+ };
1513
+ type SeedAppTeamAgentRemoveResult = {
1514
+ ok: boolean;
1515
+ };
1516
+ type SeedAppTeamAgentRenameRequest = {
1517
+ teamId: string;
1518
+ slotId: string;
1519
+ newName: string;
1520
+ };
1521
+ type SeedAppTeamAgentRenameResult = {
1522
+ ok: boolean;
1523
+ };
1524
+ type SeedAppTeamMessageSendRequest = {
1525
+ teamId: string;
1526
+ content: string;
1527
+ files?: string[];
1528
+ };
1529
+ type SeedAppTeamMessageSendResult = {
1530
+ ok: boolean;
1531
+ };
1532
+ type SeedAppTeamMessageSendToAgentRequest = {
1533
+ teamId: string;
1534
+ slotId: string;
1535
+ content: string;
1536
+ files?: string[];
1537
+ };
1538
+ type SeedAppTeamMessageSendToAgentResult = {
1539
+ ok: boolean;
1540
+ };
1541
+ type SeedAppTeamStopRequest = {
1542
+ teamId: string;
1543
+ };
1544
+ type SeedAppTeamStopResult = {
1545
+ ok: boolean;
1546
+ };
1547
+ type SeedAppTeamSessionEnsureRequest = {
1548
+ teamId: string;
1549
+ };
1550
+ type SeedAppTeamSessionEnsureResult = {
1551
+ ok: boolean;
1552
+ };
1553
+ type SeedAppTeamSessionResetRequest = {
1554
+ teamId: string;
1555
+ };
1556
+ type SeedAppMemorySearchRequest = {
1557
+ namespace?: string;
1558
+ query: string;
1559
+ limit?: number;
1560
+ };
1561
+ type SeedAppMemorySearchResult = {
1562
+ items: Array<{
1563
+ id: string;
1564
+ text: string;
1565
+ score?: number;
1566
+ metadata?: Record<string, unknown>;
1567
+ }>;
1568
+ };
1569
+ type SeedAppResourceTraceStep = {
1570
+ stage: string;
1571
+ status: "ok" | "warning" | "failed" | string;
1572
+ message?: string;
1573
+ timestamp?: string;
1574
+ };
1575
+ type SeedAppResolvedResource = {
1576
+ uri: string;
1577
+ provider?: string;
1578
+ workspaceId?: string;
1579
+ path?: string;
1580
+ name?: string;
1581
+ };
1582
+ type SeedAppResourceReadRequest = {
1583
+ uri: string;
1584
+ encoding?: "utf8" | "base64";
1585
+ maxBytes?: number;
1586
+ };
1587
+ type SeedAppResourceReadResult = {
1588
+ uri: string;
1589
+ resolved: SeedAppResolvedResource;
1590
+ content: {
1591
+ kind: "text";
1592
+ text: string;
1593
+ mimeType?: string;
1594
+ encoding: "utf8";
1595
+ } | {
1596
+ kind: "binary";
1597
+ bytesBase64: string;
1598
+ mimeType?: string;
1599
+ };
1600
+ trace: SeedAppResourceTraceStep[];
1601
+ };
1602
+ type SeedAppResourceStatRequest = {
1603
+ uri: string;
1604
+ conversationId?: string;
1605
+ workspace?: string;
1606
+ source?: "chat-message" | "markdown-preview" | "file-card" | "file-tree" | "preview" | "other";
1607
+ currentDocumentPath?: string;
1608
+ providerInstanceId?: string;
1609
+ };
1610
+ type SeedAppResourceStatResult = {
1611
+ uri: string;
1612
+ kind: "file" | "directory" | "unknown" | string;
1613
+ name?: string;
1614
+ size?: number;
1615
+ mimeType?: string;
1616
+ updatedAt?: string;
1617
+ editable?: boolean;
1618
+ downloadable?: boolean;
1619
+ };
1620
+ type SeedAppResourceListRequest = {
1621
+ uri: string;
1622
+ recursive?: boolean;
1623
+ maxDepth?: number;
1624
+ maxResults?: number;
1625
+ };
1626
+ type SeedAppResourceListResult = {
1627
+ uri: string;
1628
+ entries: SeedAppResourceStatResult[];
1629
+ truncated?: boolean;
1630
+ };
1631
+ type SeedAppResourceOpenRequest = {
1632
+ uri: string;
1633
+ target?: "preview" | "download" | "external" | string;
1634
+ };
1635
+ type SeedAppResourceOpenResult = {
1636
+ action: "preview" | "download" | "external" | "unsupported" | string;
1637
+ resolved: SeedAppResolvedResource;
1638
+ };
1639
+ type SeedAppResourceOpenableSchemesRequest = {
1640
+ conversationId?: string;
1641
+ workspace?: string;
1642
+ source: "chat-message" | "markdown-preview" | "file-card" | "file-tree" | "preview" | "other" | string;
1643
+ currentDocumentPath?: string;
1644
+ };
1645
+ type SeedAppResourceOpenableSchemesResult = {
1646
+ schemes: string[];
1647
+ };
1648
+ type SeedAppBrainBundlePreviewSummariesRequest = {
1649
+ conversationId: string;
1650
+ format?: "page" | "rollup";
1651
+ limit?: number;
1652
+ cursor?: string;
1653
+ status?: string;
1654
+ state?: string;
1655
+ blockedReason?: string;
1656
+ updatedAfter?: number;
1657
+ updatedBefore?: number;
1658
+ sort?: "updatedAt_desc" | "updatedAt_asc";
1659
+ };
1660
+ type SeedAppBrainBundlePreviewSummary = {
1661
+ schemaVersion: "brain-bundle-preview-summary.v0" | string;
1662
+ bundleId: string;
1663
+ conversationId: string;
1664
+ runId: string;
1665
+ status: string;
1666
+ state: string;
1667
+ updatedAt: number;
1668
+ rawBlobIncluded: false;
1669
+ blockedReason?: string;
1670
+ taskCount?: number;
1671
+ artifactCount?: number;
1672
+ memoryCount?: number;
1673
+ };
1674
+ type SeedAppBrainBundlePreviewSummaryPage = {
1675
+ schemaVersion: "brain-bundle-preview-summary-page.v0" | string;
1676
+ conversationId: string;
1677
+ items: SeedAppBrainBundlePreviewSummary[];
1678
+ nextCursor?: string;
1679
+ rawBlobIncluded: false;
1680
+ };
1681
+ type SeedAppBrainBundlePreviewSummaryRollup = {
1682
+ schemaVersion: "brain-bundle-preview-summary-rollup.v0" | string;
1683
+ conversationId: string;
1684
+ total: number;
1685
+ byStatus: Record<string, number>;
1686
+ byState: Record<string, number>;
1687
+ blockedReasons: Record<string, number>;
1688
+ rawBlobIncluded: false;
1689
+ };
1690
+ type SeedAppBrainBundlePreviewSummariesResult = SeedAppBrainBundlePreviewSummaryPage | SeedAppBrainBundlePreviewSummaryRollup;
1691
+ type SeedAppEmployeeStatus = "online" | "idle" | "offline" | string;
1692
+ type SeedAppEmployeeUpdateStatus = "online" | "idle" | "offline";
1693
+ type SeedAppEmployeeSource = "assistant" | "role-template" | "manual" | string;
1694
+ type SeedAppEmployeeRuntimeBinding = {
1695
+ hostMode?: "cloud-runner" | "local-edge" | "manual" | string;
1696
+ workspaceRef?: string;
1697
+ artifactPolicy?: "inherit" | "manifest-only" | "disabled" | string;
1698
+ recentRunCount?: number;
1699
+ recentArtifactCount?: number;
1700
+ };
1701
+ type SeedAppEmployee = {
1702
+ id: string;
1703
+ name: string;
1704
+ roleTitle: string;
1705
+ avatar?: string;
1706
+ templateSourceKind?: "assistant" | "role-template" | string;
1707
+ templateSourceId?: string;
1708
+ templateSourceName?: string;
1709
+ backend?: string;
1710
+ workspace?: string;
1711
+ modelId?: string;
1712
+ status: SeedAppEmployeeStatus;
1713
+ hiredAt?: string | number;
1714
+ lastActiveAt?: string | number;
1715
+ description?: string;
1716
+ enabledSkills?: string[];
1717
+ disabledBuiltinSkills?: string[];
1718
+ runtimeBinding?: SeedAppEmployeeRuntimeBinding;
1719
+ source?: SeedAppEmployeeSource;
1720
+ createdAt?: string | number;
1721
+ updatedAt?: string | number;
1722
+ };
1723
+ type SeedAppEmployeeChangedEvent = {
1724
+ employeeId: string;
1725
+ action: "created" | "updated" | "deleted";
1726
+ employee?: SeedAppEmployee;
1727
+ };
1728
+ type SeedAppEmployeeListRequest = {
1729
+ userId?: string;
1730
+ };
1731
+ type SeedAppEmployeeGetRequest = {
1732
+ id: string;
1733
+ };
1734
+ type SeedAppEmployeeCreateOwnership = {
1735
+ type: "user";
1736
+ } | {
1737
+ type: "tenant";
1738
+ tenantId: string;
1739
+ };
1740
+ type SeedAppEmployeeCreateFromRoleTemplateRequest = {
1741
+ roleTemplateId: string;
1742
+ ownership?: SeedAppEmployeeCreateOwnership;
1743
+ name?: string;
1744
+ roleTitle?: string;
1745
+ modelId?: string;
1746
+ avatar?: string;
1747
+ description?: string;
1748
+ };
1749
+ type SeedAppEmployeeAssistantSnapshot = {
1750
+ id: string;
1751
+ name: string;
1752
+ sourceName?: string;
1753
+ sourceDescription?: string;
1754
+ sourceAvatar?: string;
1755
+ roleTitle: string;
1756
+ backend: string;
1757
+ presetAgentType?: string;
1758
+ isPreset?: boolean;
1759
+ isBuiltin?: boolean;
1760
+ modelId?: string;
1761
+ context?: string;
1762
+ prompts: string[];
1763
+ enabledSkills: string[];
1764
+ disabledBuiltinSkills: string[];
1765
+ customSkillNames: string[];
1766
+ capturedAt: number;
1767
+ };
1768
+ type SeedAppEmployeeCreateFromAssistantRequest = {
1769
+ assistant: SeedAppEmployeeAssistantSnapshot;
1770
+ ownership?: SeedAppEmployeeCreateOwnership;
1771
+ name?: string;
1772
+ roleTitle?: string;
1773
+ modelId?: string;
1774
+ avatar?: string;
1775
+ description?: string;
1776
+ };
1777
+ type SeedAppEmployeeUpdate = Partial<Pick<SeedAppEmployee, "name" | "roleTitle" | "avatar" | "description" | "workspace" | "modelId" | "enabledSkills" | "disabledBuiltinSkills"> & {
1778
+ status: SeedAppEmployeeUpdateStatus;
1779
+ }>;
1780
+ type SeedAppEmployeeUpdateRequest = {
1781
+ id: string;
1782
+ updates: SeedAppEmployeeUpdate;
1783
+ };
1784
+ type SeedAppEmployeeRemoveRequest = {
1785
+ id: string;
1786
+ };
1787
+ type SeedAppEmployeeRemoveResult = {
1788
+ ok: true;
1789
+ };
1790
+ type SeedAppEmployeeMemory = {
1791
+ id: string;
1792
+ employeeId: string;
1793
+ kind: string;
1794
+ title: string;
1795
+ content: string;
1796
+ sourceConversationId?: string;
1797
+ sourceMessageId?: string;
1798
+ sourceTaskId?: string;
1799
+ confidence?: number;
1800
+ pinned?: boolean;
1801
+ createdAt?: string | number;
1802
+ updatedAt?: string | number;
1803
+ };
1804
+ type SeedAppEmployeeMemoryDeletedData = {
1805
+ deletedAt: string | number;
1806
+ };
1807
+ type SeedAppEmployeeMemoryEventType = "memory.created" | "memory.deleted";
1808
+ type SeedAppEmployeeMemoryEvent = {
1809
+ type: SeedAppEmployeeMemoryEventType;
1810
+ employeeId: string;
1811
+ memoryId: string;
1812
+ data: SeedAppEmployeeMemory | SeedAppEmployeeMemoryDeletedData;
1813
+ timestamp: string | number;
1814
+ };
1815
+ type SeedAppEmployeeMemoryListRequest = {
1816
+ employeeId: string;
1817
+ limit?: number;
1818
+ };
1819
+ type SeedAppEmployeeMemoryEventsListRequest = {
1820
+ employeeId: string;
1821
+ limit?: number;
1822
+ cursor?: string;
1823
+ };
1824
+ type SeedAppEmployeeMemoryDeleteRequest = {
1825
+ employeeId: string;
1826
+ memoryId: string;
1827
+ };
1828
+ type SeedAppEmployeeMemoryDeleteResult = {
1829
+ ok: true;
1830
+ };
1831
+ type SeedAppEmployeeActivity = {
1832
+ id: string;
1833
+ employeeId: string;
1834
+ kind: string;
1835
+ title: string;
1836
+ description?: string;
1837
+ sourceConversationId?: string;
1838
+ sourceMessageId?: string;
1839
+ createdAt?: string | number;
1840
+ };
1841
+ type SeedAppEmployeeActivityListRequest = {
1842
+ employeeId: string;
1843
+ limit?: number;
1844
+ };
1845
+ type SeedAppEmployeeDashboard = {
1846
+ employee: SeedAppEmployee;
1847
+ conversation?: SeedAppConversation;
1848
+ memories: SeedAppEmployeeMemory[];
1849
+ activities: SeedAppEmployeeActivity[];
1850
+ };
1851
+ type SeedAppEmployeeOpenConversationRequest = {
1852
+ employeeId: string;
1853
+ createNew?: boolean;
1854
+ };
1855
+ type SeedAppRoleTemplate = {
1856
+ id: string;
1857
+ name: string;
1858
+ description?: string;
1859
+ avatar?: string;
1860
+ roleTitle?: string;
1861
+ category?: string;
1862
+ tags?: string[];
1863
+ backend?: string;
1864
+ modelId?: string;
1865
+ context?: string;
1866
+ prompts?: string[];
1867
+ enabledSkills?: string[];
1868
+ disabledBuiltinSkills?: string[];
1869
+ status?: "active" | "archived" | string;
1870
+ createdAt?: string | number;
1871
+ updatedAt?: string | number;
1872
+ };
1873
+ type SeedAppRoleTemplateListRequest = {
1874
+ status?: "active" | "archived" | string;
1875
+ };
1876
+ type SeedAppRoleTemplateGetRequest = {
1877
+ id: string;
1878
+ };
1879
+ type SeedAppRoleTemplateCreateRequest = {
1880
+ draft: unknown;
1881
+ makerConversationId?: string;
1882
+ };
1883
+ type SeedAppRoleTemplateUpdate = Partial<Pick<SeedAppRoleTemplate, "name" | "description" | "avatar" | "roleTitle" | "category" | "tags" | "backend" | "modelId" | "context" | "prompts" | "enabledSkills" | "disabledBuiltinSkills" | "status">> & {
1884
+ templateDraft?: unknown;
1885
+ };
1886
+ type SeedAppRoleTemplateUpdateRequest = {
1887
+ id: string;
1888
+ updates: SeedAppRoleTemplateUpdate;
1889
+ };
1890
+ type SeedAppRoleTemplateDeleteRequest = {
1891
+ id: string;
1892
+ };
1893
+ type SeedAppRoleTemplateDeleteResult = {
1894
+ ok: true;
1895
+ };
1896
+ type SeedAppRoleTemplateChangedEvent = {
1897
+ action: "created" | "updated" | "deleted";
1898
+ roleTemplateId: string;
1899
+ template?: SeedAppRoleTemplate;
1900
+ };
1901
+ type SeedAppRoleMakerSessionStatus = "drafting" | "needs_input" | "needs_review" | "approved" | "discarded" | string;
1902
+ type SeedAppRoleMakerSession = {
1903
+ id: string;
1904
+ conversationId: string;
1905
+ status: SeedAppRoleMakerSessionStatus;
1906
+ draft?: unknown;
1907
+ roleTemplateId?: string;
1908
+ parseError?: string;
1909
+ createdAt?: string | number;
1910
+ updatedAt?: string | number;
1911
+ };
1912
+ type SeedAppRoleMakerSessionChangedEvent = {
1913
+ sessionId: string;
1914
+ conversationId: string;
1915
+ status: SeedAppRoleMakerSessionStatus;
1916
+ updatedAt?: string | number;
1917
+ source: "tool" | "bridge" | "conversation" | "refresh" | "approval" | "model" | string;
1918
+ };
1919
+ type SeedAppRoleMakerSessionStartRequest = {
1920
+ source?: string;
1921
+ };
1922
+ type SeedAppRoleMakerSessionStartResult = {
1923
+ session: SeedAppRoleMakerSession;
1924
+ conversationId: string;
1925
+ };
1926
+ type SeedAppRoleMakerSessionGetRequest = {
1927
+ sessionId: string;
1928
+ };
1929
+ type SeedAppRoleMakerSessionGetResult = {
1930
+ session: SeedAppRoleMakerSession | null;
1931
+ };
1932
+ type SeedAppRoleMakerSessionGenerateRequest = {
1933
+ sessionId: string;
1934
+ instruction: string;
1935
+ currentDraft?: unknown;
1936
+ sourceMarkdown?: string;
1937
+ };
1938
+ type SeedAppRoleMakerSessionGenerateResult = {
1939
+ session: SeedAppRoleMakerSession;
1940
+ };
1941
+ type SeedAppRoleMakerSessionApplyRequest = {
1942
+ sessionId: string;
1943
+ text?: string;
1944
+ payload?: unknown;
1945
+ source?: "tool" | "bridge" | "conversation" | "model" | string;
1946
+ };
1947
+ type SeedAppRoleMakerSessionApplyResult = {
1948
+ session: SeedAppRoleMakerSession;
1949
+ };
1950
+ type SeedAppRoleMakerSessionApproveRequest = {
1951
+ sessionId: string;
1952
+ };
1953
+ type SeedAppRoleMakerSessionApproveResult = {
1954
+ template: SeedAppRoleTemplate;
1955
+ session: SeedAppRoleMakerSession | null;
1956
+ };
1957
+ type SeedAppRoleMakerSessionDiscardRequest = {
1958
+ sessionId: string;
1959
+ };
1960
+ type SeedAppRoleMakerSessionDiscardResult = {
1961
+ session: SeedAppRoleMakerSession;
1962
+ };
1963
+ type SeedAppMcpListToolsRequest = {
1964
+ server?: string;
1965
+ };
1966
+ type SeedAppMcpTool = {
1967
+ server: string;
1968
+ name: string;
1969
+ title?: string;
1970
+ description?: string;
1971
+ inputSchema?: unknown;
1972
+ };
1973
+ type SeedAppRuntimeSkill = {
1974
+ id: string;
1975
+ name?: string;
1976
+ description?: string;
1977
+ source?: "builtin" | "custom" | "extension" | "host";
1978
+ };
1979
+ type SeedAppSkillSummary = {
1980
+ name: string;
1981
+ description: string;
1982
+ location: string;
1983
+ isCustom: boolean;
1984
+ source: "builtin" | "custom" | "extension";
1985
+ };
1986
+ type SeedAppAutoInjectedSkillSummary = {
1987
+ name: string;
1988
+ description: string;
1989
+ };
1990
+ type SeedAppSkillOperationResult<TData = unknown> = {
1991
+ success: boolean;
1992
+ msg?: string;
1993
+ data?: TData;
1994
+ };
1995
+ type SeedAppSkillExternalSummary = {
1996
+ name: string;
1997
+ description: string;
1998
+ path: string;
1999
+ };
2000
+ type SeedAppSkillExternalSource = {
2001
+ name: string;
2002
+ path: string;
2003
+ source: string;
2004
+ skills: SeedAppSkillExternalSummary[];
2005
+ };
2006
+ type SeedAppSkillExternalDetectResult = SeedAppSkillOperationResult<SeedAppSkillExternalSource[]>;
2007
+ type SeedAppSkillPathsResult = {
2008
+ userSkillsDir: string;
2009
+ builtinSkillsDir: string;
2010
+ };
2011
+ type SeedAppSkillExternalPathAddRequest = {
2012
+ name: string;
2013
+ path: string;
2014
+ };
2015
+ type SeedAppSkillImportLocalRequest = {
2016
+ skillPath: string;
2017
+ };
2018
+ type SeedAppSkillImportLocalResult = SeedAppSkillOperationResult<{
2019
+ skillName: string;
2020
+ }>;
2021
+ type SeedAppSkillDeleteRequest = {
2022
+ skillName: string;
2023
+ };
2024
+ type SeedAppSkillExportLocalRequest = {
2025
+ skillPath: string;
2026
+ targetDir: string;
2027
+ };
2028
+ type SeedAppSkillAutoInjectedAddRequest = {
2029
+ skillPath: string;
2030
+ };
2031
+ type SeedAppSkillAutoInjectedRemoveRequest = {
2032
+ skillName: string;
2033
+ };
2034
+ type SeedAppSkillMarketSetEnabledRequest = {
2035
+ enabled: boolean;
2036
+ };
2037
+ type SeedAppAssistantResourceKind = "rule" | "skill";
2038
+ type SeedAppAssistantResourceReadRequest = {
2039
+ assistantId: string;
2040
+ kind: SeedAppAssistantResourceKind;
2041
+ locale?: string;
2042
+ };
2043
+ type SeedAppAssistantResourceReadResult = {
2044
+ content: string;
2045
+ };
2046
+ type SeedAppAssistantResourceWriteRequest = {
2047
+ assistantId: string;
2048
+ kind: SeedAppAssistantResourceKind;
2049
+ content: string;
2050
+ locale?: string;
2051
+ };
2052
+ type SeedAppAssistantResourceWriteResult = {
2053
+ ok: boolean;
2054
+ };
2055
+ type SeedAppAssistantResourceDeleteRequest = {
2056
+ assistantId: string;
2057
+ kind: SeedAppAssistantResourceKind;
2058
+ };
2059
+ type SeedAppAssistantResourceDeleteResult = {
2060
+ ok: boolean;
2061
+ };
2062
+ type SeedAppBuiltinResourceKind = "rule" | "skill";
2063
+ type SeedAppBuiltinResourceReadRequest = {
2064
+ kind: SeedAppBuiltinResourceKind;
2065
+ fileName: string;
2066
+ };
2067
+ type SeedAppBuiltinResourceReadResult = {
2068
+ content: string;
2069
+ };
2070
+ type SeedAppRuntimeMcpServer = {
2071
+ id?: string;
2072
+ name: string;
2073
+ description?: string;
2074
+ enabled: boolean;
2075
+ transport?: string;
2076
+ status?: "connected" | "disconnected" | "error" | "testing" | "unknown";
2077
+ };
2078
+ type SeedAppRuntimeModel = {
2079
+ id: string;
2080
+ modelId: string;
2081
+ label?: string;
2082
+ providerId?: string;
2083
+ providerName?: string;
2084
+ isDefault?: boolean;
2085
+ source?: "default" | "host" | "provider";
2086
+ };
2087
+ type SeedAppAgentRuntimePreflight = {
2088
+ models: SeedAppRuntimeModel[];
2089
+ skills: SeedAppRuntimeSkill[];
2090
+ mcp: {
2091
+ servers: SeedAppRuntimeMcpServer[];
2092
+ tools: SeedAppMcpTool[];
2093
+ };
2094
+ };
2095
+ type SeedAppMcpCallToolRequest = {
2096
+ server?: string;
2097
+ toolName: string;
2098
+ input?: unknown;
2099
+ };
2100
+ type SeedAppMcpCallToolResult = {
2101
+ content: unknown[];
2102
+ isError?: boolean;
2103
+ };
2104
+ type SeedAppBridgeDiagnosticsRequest = {
2105
+ includeMethods?: boolean;
2106
+ includeTransports?: boolean;
2107
+ includeRoutes?: boolean;
2108
+ };
2109
+ type SeedAppBridgeDiagnosticsRuntime = "electron" | "local-webui" | "web-saas" | "react-native" | "app-host" | "mock";
2110
+ type SeedAppBridgeDiagnostics = {
2111
+ appId: string;
2112
+ hostVersion: string;
2113
+ runtime: SeedAppBridgeDiagnosticsRuntime;
2114
+ transport: string;
2115
+ schemaVersion?: string;
2116
+ grants: {
2117
+ total: number;
2118
+ enabled: number;
2119
+ ask: number;
2120
+ disabled: number;
2121
+ };
2122
+ methods: Array<{
2123
+ method: string;
2124
+ capability?: string;
2125
+ owner?: string;
2126
+ risk?: string;
2127
+ support?: string;
2128
+ }>;
2129
+ transports: Array<{
2130
+ id: string;
2131
+ supportsStreaming: boolean;
2132
+ supportsBroadcast: boolean;
2133
+ }>;
2134
+ routes?: SeedBridgeMethodRuntimeRoute[];
2135
+ unsupportedMethods: string[];
2136
+ checks: Array<{
2137
+ id: string;
2138
+ status: "ok" | "warning" | "blocked";
2139
+ message: string;
2140
+ }>;
2141
+ agentRuntime?: SeedAppAgentRuntimePreflight;
2142
+ };
2143
+ type SeedAppRouteResolver = {
2144
+ snapshot(options?: SeedAppRequestOptions): Promise<SeedBridgeMethodRuntimeRoute[]>;
2145
+ resolve(method: string, options?: SeedAppRequestOptions): Promise<SeedBridgeMethodRuntimeRoute | undefined>;
2146
+ getCached(): SeedBridgeMethodRuntimeRoute[] | undefined;
2147
+ };
2148
+ type SeedAppClient = {
2149
+ handshake(input: SeedAppHandshakeRequest, options?: SeedAppRequestOptions): Promise<SeedAppHandshakeResult>;
2150
+ capabilities: {
2151
+ query(options?: SeedAppRequestOptions): Promise<SeedAppGrantResolution[]>;
2152
+ request(input: SeedAppCapabilitiesRequest, options?: SeedAppRequestOptions): Promise<SeedAppCapabilitiesRequestResult>;
2153
+ };
2154
+ auth: {
2155
+ getContext(options?: SeedAppRequestOptions): Promise<SeedAppAuthContextResult>;
2156
+ getAccessToken(input: SeedAppAuthAccessTokenRequest, options?: SeedAppRequestOptions): Promise<SeedAppAuthAccessTokenResult>;
2157
+ };
2158
+ network: {
2159
+ fetch(input: SeedAppNetworkFetchRequest, options?: SeedAppRequestOptions): Promise<SeedAppNetworkFetchResult>;
2160
+ };
2161
+ agent: {
2162
+ list(input?: SeedAppAgentListRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentSummary[]>;
2163
+ preset: {
2164
+ update(input: SeedAppAgentPresetUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentPresetUpdateResult>;
2165
+ };
2166
+ config: {
2167
+ upsert(input: SeedAppAgentConfigUpsertRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentConfigMutationResult>;
2168
+ delete(input: SeedAppAgentConfigDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentConfigMutationResult>;
2169
+ };
2170
+ runtime: {
2171
+ configOptions: {
2172
+ get(input: SeedAppAgentRuntimeConfigOptionsGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeConfigOptionsResult>;
2173
+ };
2174
+ configOption: {
2175
+ set(input: SeedAppAgentRuntimeConfigOptionSetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeConfigOptionsResult>;
2176
+ };
2177
+ model: {
2178
+ get(input: SeedAppAgentRuntimeModelGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeModelGetResult>;
2179
+ set(input: SeedAppAgentRuntimeModelSetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeModelSetResult>;
2180
+ };
2181
+ mode: {
2182
+ get(input: SeedAppAgentRuntimeModeGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeModeGetResult>;
2183
+ set(input: SeedAppAgentRuntimeModeSetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeModeSetResult>;
2184
+ };
2185
+ bundled: {
2186
+ get(input: SeedAppAgentRuntimeBundledGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeBundledGetResult>;
2187
+ update(input: SeedAppAgentRuntimeBundledUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeBundledUpdateResult>;
2188
+ };
2189
+ local: {
2190
+ status: {
2191
+ get(input: SeedAppAgentRuntimeLocalStatusGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeLocalStatusGetResult>;
2192
+ };
2193
+ restart(input: SeedAppAgentRuntimeLocalRestartRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeLocalRestartResult>;
2194
+ stale: {
2195
+ mark(input: SeedAppAgentRuntimeLocalStaleMarkRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeLocalStaleMarkResult>;
2196
+ };
2197
+ };
2198
+ capabilities: {
2199
+ prefetch(input: SeedAppAgentRuntimeCapabilitiesPrefetchRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeCapabilitiesPrefetchResult>;
2200
+ };
2201
+ custom: {
2202
+ test(input: SeedAppAgentRuntimeCustomTestRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeCustomTestResult>;
2203
+ };
2204
+ slashCommands: {
2205
+ list(input?: SeedAppAgentRuntimeSlashCommandsListRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeSlashCommandsListResult>;
2206
+ };
2207
+ slashCommand: {
2208
+ execute(input: SeedAppAgentRuntimeSlashCommandExecuteRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeSlashCommandExecuteResult>;
2209
+ };
2210
+ session: {
2211
+ ensure(input: SeedAppAgentRuntimeSessionEnsureRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeSessionEnsureResult>;
2212
+ };
2213
+ conversation: {
2214
+ warmup(input: SeedAppAgentRuntimeConversationWarmupRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeConversationWarmupResult>;
2215
+ };
2216
+ openclaw: {
2217
+ get(input: SeedAppAgentRuntimeOpenClawGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeOpenClawGetResult>;
2218
+ };
2219
+ process: {
2220
+ snapshot: {
2221
+ get(input: SeedAppAgentRuntimeProcessSnapshotGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeProcessSnapshotGetResult>;
2222
+ };
2223
+ release(input: SeedAppAgentRuntimeProcessReleaseRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRuntimeProcessReleaseResult>;
2224
+ };
2225
+ };
2226
+ subagent: {
2227
+ session: {
2228
+ snapshot: {
2229
+ get(input: SeedAppSubagentSessionSnapshotGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppSubagentSessionSnapshotGetResult>;
2230
+ };
2231
+ load(input: SeedAppSubagentSessionLoadRequest, options?: SeedAppRequestOptions): Promise<SeedAppSubagentSessionLoadResult>;
2232
+ };
2233
+ };
2234
+ run(input: SeedAppAgentRunRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentRunResult>;
2235
+ input: {
2236
+ submit(input: SeedAppAgentInputSubmitRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentInputSubmitResult>;
2237
+ };
2238
+ stop(input: SeedAppAgentStopRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentStopResult>;
2239
+ sideQuestion: {
2240
+ ask(input: SeedAppAgentSideQuestionAskRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentSideQuestionAskResult>;
2241
+ };
2242
+ approval: {
2243
+ check(input: SeedAppAgentApprovalCheckRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentApprovalCheckResult>;
2244
+ list(input: SeedAppAgentApprovalListRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentPendingApproval[]>;
2245
+ respond(input: SeedAppAgentApprovalRespondRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentApprovalRespondResult>;
2246
+ subscribeChanged(handler: (event: SeedAppAgentApprovalChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2247
+ };
2248
+ elicitation: {
2249
+ respond(input: SeedAppAgentElicitationRespondRequest, options?: SeedAppRequestOptions): Promise<SeedAppAgentElicitationRespondResult>;
2250
+ };
2251
+ subscribe(handler: SeedAppAgentStreamHandler, options?: SeedAppAgentStreamSubscribeOptions): () => void;
2252
+ subscribeConversation(input: SeedAppAgentStreamSubscribeConversationInput, handler: SeedAppAgentStreamHandler, options?: SeedAppAgentStreamScopedSubscribeOptions): Promise<SeedAppAgentStreamScopedUnsubscribe>;
2253
+ subscribeRun(input: SeedAppAgentStreamSubscribeRunInput, handler: SeedAppAgentStreamHandler, options?: SeedAppAgentStreamScopedSubscribeOptions): Promise<SeedAppAgentStreamScopedUnsubscribe>;
2254
+ runAndWatch(input: SeedAppAgentRunRequest, handlers?: SeedAppAgentRunAndWatchHandlers, options?: SeedAppAgentRunAndWatchOptions): Promise<SeedAppAgentRunResult>;
2255
+ };
2256
+ agui: {
2257
+ subscribe(handler: SeedAppAguiStreamHandler, options?: SeedAppAguiStreamSubscribeOptions): () => void;
2258
+ subscribeConversation(input: SeedAppAguiStreamSubscribeConversationInput, handler: SeedAppAguiStreamHandler, options?: SeedAppAguiStreamScopedSubscribeOptions): Promise<SeedAppAguiStreamScopedUnsubscribe>;
2259
+ subscribeRun(input: SeedAppAguiStreamSubscribeRunInput, handler: SeedAppAguiStreamHandler, options?: SeedAppAguiStreamScopedSubscribeOptions): Promise<SeedAppAguiStreamScopedUnsubscribe>;
2260
+ };
2261
+ team: {
2262
+ list(input?: SeedAppTeamListRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeam[]>;
2263
+ create(input: SeedAppTeamCreateRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeam>;
2264
+ subscribeChanged(handler: (event: SeedAppTeamChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2265
+ get(input: SeedAppTeamGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeam | null>;
2266
+ rename(input: SeedAppTeamRenameRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamRenameResult>;
2267
+ sessionMode: {
2268
+ set(input: SeedAppTeamSessionModeSetRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamSessionModeSetResult>;
2269
+ };
2270
+ workspace: {
2271
+ update(input: SeedAppTeamWorkspaceUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamWorkspaceUpdateResult>;
2272
+ };
2273
+ delete(input: SeedAppTeamDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamDeleteResult>;
2274
+ agent: {
2275
+ add(input: SeedAppTeamAgentAddRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamAgent>;
2276
+ subscribeSpawned(handler: (event: SeedAppTeamAgentSpawnedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2277
+ subscribeRemoved(handler: (event: SeedAppTeamAgentRemovedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2278
+ subscribeRenamed(handler: (event: SeedAppTeamAgentRenamedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2279
+ subscribeStatusChanged(handler: (event: SeedAppTeamAgentStatusChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2280
+ rename(input: SeedAppTeamAgentRenameRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamAgentRenameResult>;
2281
+ remove(input: SeedAppTeamAgentRemoveRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamAgentRemoveResult>;
2282
+ };
2283
+ message: {
2284
+ send(input: SeedAppTeamMessageSendRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamMessageSendResult>;
2285
+ sendToAgent(input: SeedAppTeamMessageSendToAgentRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamMessageSendToAgentResult>;
2286
+ };
2287
+ stop(input: SeedAppTeamStopRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamStopResult>;
2288
+ session: {
2289
+ ensure(input: SeedAppTeamSessionEnsureRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeamSessionEnsureResult>;
2290
+ reset(input: SeedAppTeamSessionResetRequest, options?: SeedAppRequestOptions): Promise<SeedAppTeam>;
2291
+ };
2292
+ };
2293
+ speech: {
2294
+ transcribe(input: SeedAppSpeechTranscribeRequest, options?: SeedAppRequestOptions): Promise<SeedAppSpeechTranscribeResult>;
2295
+ };
2296
+ conversation: {
2297
+ list(input?: SeedAppConversationListRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation[]>;
2298
+ listByCronJob(input: SeedAppConversationListByCronJobRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation[]>;
2299
+ subscribeChanged(handler: (event: SeedAppConversationChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2300
+ create(input: SeedAppConversationCreateRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2301
+ get(input: SeedAppConversationGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2302
+ messages(input: SeedAppConversationMessagesRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationMessage[]>;
2303
+ searchMessages(input: SeedAppConversationSearchMessagesRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationSearchMessagesResult>;
2304
+ rename(input: SeedAppConversationRenameRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2305
+ updateMetadata(input: SeedAppConversationMetadataUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2306
+ updateModel(input: SeedAppConversationModelUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2307
+ delete(input: SeedAppConversationDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationDeleteResult>;
2308
+ importArchive(input: SeedAppConversationArchiveImportRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArchiveImportResult>;
2309
+ artifact: {
2310
+ list(input: SeedAppConversationArtifactListRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifact[]>;
2311
+ listEvidence(input: SeedAppConversationArtifactIdRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactEvidence[]>;
2312
+ listAccess(input: SeedAppConversationArtifactIdRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactAccess[]>;
2313
+ listShareTargets(options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactShareTarget[]>;
2314
+ share(input: SeedAppConversationArtifactShareRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactAccess>;
2315
+ revokeAccess(input: SeedAppConversationArtifactAccessRevokeRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactAccess>;
2316
+ materialize(input: SeedAppConversationArtifactMaterializeRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactMaterialization>;
2317
+ updatePolicy(input: SeedAppConversationArtifactPolicyUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifact>;
2318
+ dryRunScrub(input: SeedAppConversationArtifactScrubRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactScrubResult>;
2319
+ applyScrub(input: SeedAppConversationArtifactScrubRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversationArtifactScrubResult>;
2320
+ };
2321
+ };
2322
+ remotePc: {
2323
+ presence: {
2324
+ list(options?: SeedAppRequestOptions): Promise<SeedAppRemotePcPresence[]>;
2325
+ subscribeChanged(handler: (event: SeedAppRemotePcPresenceChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2326
+ };
2327
+ vibe: {
2328
+ list(input?: SeedAppRemotePcVibeListRequest, options?: SeedAppRequestOptions): Promise<SeedAppRemotePcVibeConversation[]>;
2329
+ get(input: SeedAppRemotePcVibeRef, options?: SeedAppRequestOptions): Promise<SeedAppRemotePcVibeConversation>;
2330
+ messages(input: SeedAppRemotePcVibeRef, options?: SeedAppRequestOptions): Promise<SeedAppConversationMessage[]>;
2331
+ subscribe(input: SeedAppRemotePcVibeRef, handler: SeedAppRemotePcVibeEventsHandler, options?: SeedAppRemotePcVibeSubscribeOptions): Promise<SeedAppRemotePcVibeUnsubscribe>;
2332
+ };
2333
+ };
2334
+ memory: {
2335
+ search(input: SeedAppMemorySearchRequest, options?: SeedAppRequestOptions): Promise<SeedAppMemorySearchResult>;
2336
+ };
2337
+ resource: {
2338
+ read(input: SeedAppResourceReadRequest, options?: SeedAppRequestOptions): Promise<SeedAppResourceReadResult>;
2339
+ stat(input: SeedAppResourceStatRequest, options?: SeedAppRequestOptions): Promise<SeedAppResourceStatResult>;
2340
+ list(input: SeedAppResourceListRequest, options?: SeedAppRequestOptions): Promise<SeedAppResourceListResult>;
2341
+ open(input: SeedAppResourceOpenRequest, options?: SeedAppRequestOptions): Promise<SeedAppResourceOpenResult>;
2342
+ openableSchemes(input: SeedAppResourceOpenableSchemesRequest, options?: SeedAppRequestOptions): Promise<SeedAppResourceOpenableSchemesResult>;
2343
+ };
2344
+ skill: {
2345
+ list(options?: SeedAppRequestOptions): Promise<SeedAppSkillSummary[]>;
2346
+ listAutoInjected(options?: SeedAppRequestOptions): Promise<SeedAppAutoInjectedSkillSummary[]>;
2347
+ detectExternal(options?: SeedAppRequestOptions): Promise<SeedAppSkillExternalDetectResult>;
2348
+ getPaths(options?: SeedAppRequestOptions): Promise<SeedAppSkillPathsResult>;
2349
+ addExternalPath(input: SeedAppSkillExternalPathAddRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2350
+ importLocal(input: SeedAppSkillImportLocalRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillImportLocalResult>;
2351
+ delete(input: SeedAppSkillDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2352
+ exportLocal(input: SeedAppSkillExportLocalRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2353
+ addAutoInjected(input: SeedAppSkillAutoInjectedAddRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2354
+ removeAutoInjected(input: SeedAppSkillAutoInjectedRemoveRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2355
+ setMarketEnabled(input: SeedAppSkillMarketSetEnabledRequest, options?: SeedAppRequestOptions): Promise<SeedAppSkillOperationResult>;
2356
+ };
2357
+ assistant: {
2358
+ resource: {
2359
+ read(input: SeedAppAssistantResourceReadRequest, options?: SeedAppRequestOptions): Promise<SeedAppAssistantResourceReadResult>;
2360
+ write(input: SeedAppAssistantResourceWriteRequest, options?: SeedAppRequestOptions): Promise<SeedAppAssistantResourceWriteResult>;
2361
+ delete(input: SeedAppAssistantResourceDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppAssistantResourceDeleteResult>;
2362
+ };
2363
+ };
2364
+ builtin: {
2365
+ resource: {
2366
+ read(input: SeedAppBuiltinResourceReadRequest, options?: SeedAppRequestOptions): Promise<SeedAppBuiltinResourceReadResult>;
2367
+ };
2368
+ };
2369
+ workspace: SeedAppWorkspaceClient;
2370
+ brainBundle: {
2371
+ previewSummaries(input: SeedAppBrainBundlePreviewSummariesRequest, options?: SeedAppRequestOptions): Promise<SeedAppBrainBundlePreviewSummariesResult>;
2372
+ };
2373
+ employee: {
2374
+ list(input?: SeedAppEmployeeListRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployee[]>;
2375
+ subscribeChanged(handler: (event: SeedAppEmployeeChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2376
+ get(input: SeedAppEmployeeGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeDashboard | undefined>;
2377
+ openConversation(input: SeedAppEmployeeOpenConversationRequest, options?: SeedAppRequestOptions): Promise<SeedAppConversation>;
2378
+ createFromRoleTemplate(input: SeedAppEmployeeCreateFromRoleTemplateRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployee>;
2379
+ createFromAssistant(input: SeedAppEmployeeCreateFromAssistantRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployee>;
2380
+ update(input: SeedAppEmployeeUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployee>;
2381
+ remove(input: SeedAppEmployeeRemoveRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeRemoveResult>;
2382
+ memory: {
2383
+ list(input: SeedAppEmployeeMemoryListRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeMemory[]>;
2384
+ delete(input: SeedAppEmployeeMemoryDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeMemoryDeleteResult>;
2385
+ events: {
2386
+ list(input: SeedAppEmployeeMemoryEventsListRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeMemoryEvent[]>;
2387
+ subscribeChanged(input: {
2388
+ employeeId?: string;
2389
+ }, handler: (event: SeedAppEmployeeMemoryEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2390
+ };
2391
+ };
2392
+ activity: {
2393
+ list(input: SeedAppEmployeeActivityListRequest, options?: SeedAppRequestOptions): Promise<SeedAppEmployeeActivity[]>;
2394
+ };
2395
+ };
2396
+ roleTemplate: {
2397
+ list(input?: SeedAppRoleTemplateListRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleTemplate[]>;
2398
+ get(input: SeedAppRoleTemplateGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleTemplate | null>;
2399
+ create(input: SeedAppRoleTemplateCreateRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleTemplate>;
2400
+ update(input: SeedAppRoleTemplateUpdateRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleTemplate>;
2401
+ delete(input: SeedAppRoleTemplateDeleteRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleTemplateDeleteResult>;
2402
+ subscribeChanged(handler: (event: SeedAppRoleTemplateChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2403
+ };
2404
+ roleMaker: {
2405
+ session: {
2406
+ start(input?: SeedAppRoleMakerSessionStartRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionStartResult>;
2407
+ get(input: SeedAppRoleMakerSessionGetRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionGetResult>;
2408
+ generate(input: SeedAppRoleMakerSessionGenerateRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionGenerateResult>;
2409
+ apply(input: SeedAppRoleMakerSessionApplyRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionApplyResult>;
2410
+ approve(input: SeedAppRoleMakerSessionApproveRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionApproveResult>;
2411
+ discard(input: SeedAppRoleMakerSessionDiscardRequest, options?: SeedAppRequestOptions): Promise<SeedAppRoleMakerSessionDiscardResult>;
2412
+ subscribeChanged(handler: (event: SeedAppRoleMakerSessionChangedEvent) => void, options?: SeedAppRequestOptions): Promise<() => void>;
2413
+ };
2414
+ };
2415
+ mcp: {
2416
+ listTools(input?: SeedAppMcpListToolsRequest, options?: SeedAppRequestOptions): Promise<SeedAppMcpTool[]>;
2417
+ callTool(input: SeedAppMcpCallToolRequest, options?: SeedAppRequestOptions): Promise<SeedAppMcpCallToolResult>;
2418
+ };
2419
+ diagnostics: {
2420
+ snapshot(input?: SeedAppBridgeDiagnosticsRequest, options?: SeedAppRequestOptions): Promise<SeedAppBridgeDiagnostics>;
2421
+ };
2422
+ routes: SeedAppRouteResolver;
2423
+ events: {
2424
+ subscribe(handler: SeedAppEventHandler): () => void;
2425
+ subscribeRealtimeChannel(channel: string, cursor?: string): Promise<() => void>;
2426
+ subscribeBridgeEvent(event: string, handler: SeedAppEventHandler, options?: SeedAppRequestOptions): Promise<() => void>;
2427
+ };
2428
+ request<TResponse>(method: string, params?: unknown, options?: SeedAppRequestOptions): Promise<TResponse>;
2429
+ close(): void;
2430
+ };
2431
+ type SeedAppRpcRequest = {
2432
+ jsonrpc: "2.0";
2433
+ id: string;
2434
+ method: string;
2435
+ params?: unknown;
2436
+ };
2437
+ type SeedAppRpcResponse = {
2438
+ jsonrpc: "2.0";
2439
+ id: string;
2440
+ result?: unknown;
2441
+ error?: SeedAppError;
2442
+ };
2443
+ type SeedAppHostEnvelope = {
2444
+ source: "seed-app-host";
2445
+ channel: string;
2446
+ sessionId?: string;
2447
+ nonce?: string;
2448
+ response: SeedAppRpcResponse;
2449
+ } | {
2450
+ source: "seed-app-host";
2451
+ channel: string;
2452
+ sessionId?: string;
2453
+ nonce?: string;
2454
+ event: SeedAppEvent;
2455
+ };
2456
+ type SeedAppSdkEnvelope = {
2457
+ source: "seed-app-sdk";
2458
+ channel: string;
2459
+ sessionId?: string;
2460
+ nonce?: string;
2461
+ request: SeedAppRpcRequest;
2462
+ };
2463
+ //#endregion
2464
+ //#region src/client.d.ts
2465
+ declare function createSeedAppClient(options: SeedAppClientOptions): SeedAppClient;
2466
+ //#endregion
2467
+ //#region src/bridgeTarget.d.ts
2468
+ declare const SEED_APP_BRIDGE_TARGET_DEFAULT_TIMEOUT_MS = 30000;
2469
+ declare const seedAppBridgeTargetModes: {
2470
+ readonly appHost: "app-host";
2471
+ readonly webEndpoint: "web-endpoint";
2472
+ };
2473
+ declare const seedAppBridgeTargetSearchParams: {
2474
+ readonly mode: "seedBridgeTarget";
2475
+ readonly endpoint: "seedBridgeEndpoint";
2476
+ readonly timeoutMs: "seedBridgeTimeoutMs";
2477
+ };
2478
+ declare const seedAppAppearanceSearchParams: {
2479
+ readonly theme: "seedTheme";
2480
+ readonly colorScheme: "seedColorScheme";
2481
+ readonly fontScale: "seedFontScale";
2482
+ };
2483
+ type SeedAppBridgeTargetMode = (typeof seedAppBridgeTargetModes)[keyof typeof seedAppBridgeTargetModes];
2484
+ type SeedAppThemeMode$1 = "light" | "dark";
2485
+ type SeedAppAppearanceState$1 = {
2486
+ theme: SeedAppThemeMode$1;
2487
+ colorScheme?: string;
2488
+ fontScale?: number;
2489
+ source?: string;
2490
+ updatedAt?: number;
2491
+ };
2492
+ type SeedAppBridgeTargetConfig = {
2493
+ mode: typeof seedAppBridgeTargetModes.appHost;
2494
+ endpoint?: undefined;
2495
+ timeoutMs?: undefined;
2496
+ } | {
2497
+ mode: typeof seedAppBridgeTargetModes.webEndpoint;
2498
+ endpoint: string;
2499
+ timeoutMs: number;
2500
+ };
2501
+ declare function appendSeedAppBridgeTargetSearchParams(entryUrl: string, target: SeedAppBridgeTargetConfig): string;
2502
+ declare function appendSeedAppAppearanceSearchParams(entryUrl: string, appearance: SeedAppAppearanceState$1 | undefined): string;
2503
+ declare function resolveSeedAppBridgeTargetFromSearch(search: string | URLSearchParams): SeedAppBridgeTargetConfig;
2504
+ declare function resolveSeedAppAppearanceFromSearch(search: string | URLSearchParams): SeedAppAppearanceState$1 | undefined;
2505
+ //#endregion
2506
+ //#region src/consoleBridge.d.ts
2507
+ type SeedAppConsoleLevel = "log" | "info" | "warn" | "error" | "debug";
2508
+ type SeedAppConsoleBridgeOptions = {
2509
+ currentWindow?: Window;
2510
+ targetWindow?: Window;
2511
+ targetOrigin?: string;
2512
+ levels?: readonly SeedAppConsoleLevel[];
2513
+ includeOriginal?: boolean;
2514
+ maxArgLength?: number;
2515
+ };
2516
+ type SeedAppConsoleBridgeController = {
2517
+ uninstall(): void;
2518
+ };
2519
+ type SeedAppConsoleEnvelope = {
2520
+ source: "seed-app-console";
2521
+ channel: "seed-app-console";
2522
+ level: SeedAppConsoleLevel;
2523
+ message: string;
2524
+ args: string[];
2525
+ timestamp: number;
2526
+ };
2527
+ declare function installSeedAppConsoleBridge(options?: SeedAppConsoleBridgeOptions): SeedAppConsoleBridgeController;
2528
+ //#endregion
2529
+ //#region src/endpointTransport.d.ts
2530
+ type SeedAppEndpointTransportOptions = {
2531
+ endpoint: string | URL;
2532
+ appSessionId?: string;
2533
+ autoAckRealtime?: boolean;
2534
+ autoReconnect?: boolean;
2535
+ includeTracePayloads?: boolean;
2536
+ maxReconnectAttempts?: number;
2537
+ realtimeChannels?: string[];
2538
+ reconnectDelayMs?: number | ((attempt: number) => number);
2539
+ timeoutMs?: number;
2540
+ idPrefix?: string;
2541
+ onTrace?: SeedAppEndpointTransportTraceHandler;
2542
+ webSocketFactory?: (url: string) => SeedAppEndpointWebSocket;
2543
+ };
2544
+ type SeedAppEndpointTransportTracePhase = "socket.open" | "socket.close" | "socket.error" | "socket.reconnecting" | "socket.reconnect.failed" | "frame.queue" | "frame.send" | "frame.receive" | "realtime.ack" | "realtime.resubscribe" | "realtime.snapshot.gap" | "realtime.snapshot.replayed" | "request.timeout" | "auth.expired";
2545
+ type SeedAppEndpointTransportTraceEvent = {
2546
+ schema: "seed-app.endpoint-transport.trace.v1";
2547
+ timestamp: number;
2548
+ direction: "inbound" | "outbound" | "internal";
2549
+ phase: SeedAppEndpointTransportTracePhase;
2550
+ appSessionId?: string;
2551
+ capability?: string;
2552
+ channel?: string;
2553
+ endpointOrigin?: string;
2554
+ endpointPath?: string;
2555
+ errorCode?: string;
2556
+ frameType?: string;
2557
+ id?: string;
2558
+ method?: string;
2559
+ payloadPreview?: unknown;
2560
+ sizeBytes?: number;
2561
+ status?: "received" | "completed" | "failed";
2562
+ traceId?: string;
2563
+ };
2564
+ type SeedAppEndpointTransportTraceHandler = (event: SeedAppEndpointTransportTraceEvent) => void;
2565
+ type SeedAppEndpointTraceBridgeOptions = {
2566
+ currentWindow?: Window;
2567
+ targetWindow?: Window;
2568
+ targetOrigin?: string;
2569
+ };
2570
+ type SeedAppEndpointTraceEnvelope = {
2571
+ source: "seed-app-devtools";
2572
+ channel: "seed-app-devtools";
2573
+ trace: SeedAppEndpointTransportTraceEvent;
2574
+ timestamp: number;
2575
+ };
2576
+ type SeedAppEndpointWebSocket = {
2577
+ readonly readyState: number;
2578
+ addEventListener(type: "open" | "message" | "error" | "close", listener: SeedAppEndpointWebSocketListener): void;
2579
+ removeEventListener(type: "open" | "message" | "error" | "close", listener: SeedAppEndpointWebSocketListener): void;
2580
+ send(data: string): void;
2581
+ close(): void;
2582
+ };
2583
+ type SeedAppEndpointWebSocketListener = (event?: {
2584
+ data?: string;
2585
+ }) => void;
2586
+ declare function createSeedAppEndpointTraceBridge(options?: SeedAppEndpointTraceBridgeOptions): SeedAppEndpointTransportTraceHandler;
2587
+ declare function createSeedAppEndpointTransport(options: SeedAppEndpointTransportOptions): SeedAppTransport;
2588
+ //#endregion
2589
+ //#region src/electronTransport.d.ts
2590
+ /**
2591
+ * Electron bridge API surface exposed via contextBridge.
2592
+ *
2593
+ * The emit/on interface now carries JSON-RPC 2.0 frames as serialized strings,
2594
+ * replacing the legacy SeedBridgeElectronIpcFrame objects.
2595
+ */
2596
+ type SeedAppElectronBridgeApi = {
2597
+ emit(frame: string): Promise<unknown> | unknown;
2598
+ on?(callback: (event: {
2599
+ value: string;
2600
+ }) => void): (() => void) | void;
2601
+ };
2602
+ type SeedAppElectronTransportOptions = {
2603
+ electronAPI?: SeedAppElectronBridgeApi;
2604
+ timeoutMs?: number;
2605
+ idPrefix?: string;
2606
+ };
2607
+ declare function createSeedAppElectronTransport(options?: SeedAppElectronTransportOptions): SeedAppTransport;
2608
+ //#endregion
2609
+ //#region src/reactNativeTransport.d.ts
2610
+ type SeedAppReactNativeMessageEvent = string | {
2611
+ data?: unknown;
2612
+ nativeEvent?: {
2613
+ data?: unknown;
2614
+ };
2615
+ };
2616
+ type SeedAppReactNativeMessageTarget = {
2617
+ addEventListener(type: "message", listener: (event: SeedAppReactNativeMessageEvent) => void): void;
2618
+ removeEventListener(type: "message", listener: (event: SeedAppReactNativeMessageEvent) => void): void;
2619
+ };
2620
+ type SeedAppReactNativeTransportOptions = {
2621
+ port?: JsonRpcReactNativeWebViewPort;
2622
+ messageTarget?: SeedAppReactNativeMessageTarget;
2623
+ timeoutMs?: number;
2624
+ idPrefix?: string;
2625
+ onInvalidFrame?(message: unknown): void;
2626
+ };
2627
+ declare function createSeedAppReactNativeTransport(options?: SeedAppReactNativeTransportOptions): SeedAppTransport;
2628
+ //#endregion
2629
+ //#region src/webSocketTransport.d.ts
2630
+ type SeedAppWebSocketTransportOptions = {
2631
+ url: string;
2632
+ token: string | (() => string | undefined | Promise<string | undefined>);
2633
+ timeoutMs?: number;
2634
+ idPrefix?: string;
2635
+ WebSocket?: typeof WebSocket;
2636
+ };
2637
+ declare function createSeedAppWebSocketTransport(options: SeedAppWebSocketTransportOptions): SeedAppTransport;
2638
+ //#endregion
2639
+ //#region src/mockHost.d.ts
2640
+ type SeedAppMockHandler = (params: unknown) => Promise<unknown> | unknown;
2641
+ type SeedAppMockTransportOptions = {
2642
+ appId: string;
2643
+ hostVersion?: string;
2644
+ grants?: SeedAppGrantResolution[];
2645
+ handlers?: Record<string, SeedAppMockHandler>;
2646
+ };
2647
+ type SeedAppMockTransport = SeedAppTransport & {
2648
+ emit(event: SeedAppEvent): void;
2649
+ emitAgentStream(event: SeedAppAgentStreamEvent): void;
2650
+ };
2651
+ declare function createSeedAppMockTransport(options: SeedAppMockTransportOptions): SeedAppMockTransport;
2652
+ //#endregion
2653
+ //#region src/windowTransport.d.ts
2654
+ type SeedAppWindowTransportOptions = {
2655
+ channel?: string;
2656
+ targetOrigin?: string;
2657
+ timeoutMs?: number;
2658
+ idPrefix?: string;
2659
+ currentWindow?: Window;
2660
+ targetWindow?: Window;
2661
+ };
2662
+ type SeedAppThemeSyncOptions = {
2663
+ currentWindow?: Window;
2664
+ targetDocument?: Document;
2665
+ targetOrigin?: string;
2666
+ initialAppearance?: SeedAppAppearanceState;
2667
+ onChange?(appearance: SeedAppAppearanceState): void;
2668
+ };
2669
+ declare function createWindowSeedAppTransport(options?: SeedAppWindowTransportOptions): SeedAppTransport;
2670
+ declare function installSeedAppThemeSync(options?: SeedAppThemeSyncOptions): SeedAppThemeSyncController;
2671
+ //#endregion
2672
+ export { SEED_AGUI_STREAM_EVENT_TYPE, SEED_APP_BRIDGE_TARGET_DEFAULT_TIMEOUT_MS, type SeedAguiBaseEvent, type SeedAguiCustomEvent, type SeedAguiEvent, type SeedAguiEventType, type SeedAguiFormField, type SeedAguiFormSchema, type SeedAguiJsonPatchOperation, type SeedAguiMetadata, type SeedAguiRunErrorEvent, type SeedAguiRunFinishedEvent, type SeedAguiRunStartedEvent, type SeedAguiSource, type SeedAguiStateDeltaEvent, type SeedAguiTextMessageContentEvent, type SeedAguiTextMessageEndEvent, type SeedAguiTextMessageStartEvent, type SeedAguiToolCallArgsEvent, type SeedAguiToolCallEndEvent, type SeedAguiToolCallResultEvent, type SeedAguiToolCallStartEvent, type SeedAppAgentApprovalChangedEvent, type SeedAppAgentApprovalCheckRequest, type SeedAppAgentApprovalCheckResult, type SeedAppAgentApprovalListRequest, type SeedAppAgentApprovalOption, type SeedAppAgentApprovalRespondRequest, type SeedAppAgentApprovalRespondResult, type SeedAppAgentAttachment, type SeedAppAgentConfigCollection, type SeedAppAgentConfigDeleteRequest, type SeedAppAgentConfigInput, type SeedAppAgentConfigMutationResult, type SeedAppAgentConfigUpsertRequest, type SeedAppAgentElicitationRespondRequest, type SeedAppAgentElicitationRespondResult, type SeedAppAgentInputSubmitRequest, type SeedAppAgentInputSubmitResult, type SeedAppAgentListRequest, type SeedAppAgentLocalRuntimeStatus, type SeedAppAgentPendingApproval, type SeedAppAgentPresetUpdateRequest, type SeedAppAgentPresetUpdateResult, type SeedAppAgentRunAndWatchHandlers, type SeedAppAgentRunAndWatchOptions, type SeedAppAgentRunRequest, type SeedAppAgentRunResult, type SeedAppAgentRuntimeBackend, type SeedAppAgentRuntimeBundledGetRequest, type SeedAppAgentRuntimeBundledGetResult, type SeedAppAgentRuntimeBundledStatus, type SeedAppAgentRuntimeBundledUpdateRequest, type SeedAppAgentRuntimeBundledUpdateResult, type SeedAppAgentRuntimeCapabilitiesPrefetchRequest, type SeedAppAgentRuntimeCapabilitiesPrefetchResult, type SeedAppAgentRuntimeCapabilityPrefetchStatus, type SeedAppAgentRuntimeConfigOption, type SeedAppAgentRuntimeConfigOptionChoice, type SeedAppAgentRuntimeConfigOptionSetRequest, type SeedAppAgentRuntimeConfigOptionsGetRequest, type SeedAppAgentRuntimeConfigOptionsResult, type SeedAppAgentRuntimeConversationWarmupReason, type SeedAppAgentRuntimeConversationWarmupRequest, type SeedAppAgentRuntimeConversationWarmupResult, type SeedAppAgentRuntimeConversationWarmupStatus, type SeedAppAgentRuntimeCustomTestRequest, type SeedAppAgentRuntimeCustomTestResult, type SeedAppAgentRuntimeCustomTestStep, type SeedAppAgentRuntimeLocalRestartRequest, type SeedAppAgentRuntimeLocalRestartResult, type SeedAppAgentRuntimeLocalStaleMarkRequest, type SeedAppAgentRuntimeLocalStaleMarkResult, type SeedAppAgentRuntimeLocalStatusGetRequest, type SeedAppAgentRuntimeLocalStatusGetResult, type SeedAppAgentRuntimeMcpStartupMode, type SeedAppAgentRuntimeModeGetRequest, type SeedAppAgentRuntimeModeGetResult, type SeedAppAgentRuntimeModeSetRequest, type SeedAppAgentRuntimeModeSetResult, type SeedAppAgentRuntimeModelGetRequest, type SeedAppAgentRuntimeModelGetResult, type SeedAppAgentRuntimeModelInfo, type SeedAppAgentRuntimeModelInfoSource, type SeedAppAgentRuntimeModelInfoSourceDetail, type SeedAppAgentRuntimeModelOption, type SeedAppAgentRuntimeModelSetRequest, type SeedAppAgentRuntimeModelSetResult, type SeedAppAgentRuntimeOpenClawExpected, type SeedAppAgentRuntimeOpenClawGetRequest, type SeedAppAgentRuntimeOpenClawGetResult, type SeedAppAgentRuntimeOpenClawRuntime, type SeedAppAgentRuntimePreflight, type SeedAppAgentRuntimeProcessReleaseRequest, type SeedAppAgentRuntimeProcessReleaseResult, type SeedAppAgentRuntimeProcessSnapshot, type SeedAppAgentRuntimeProcessSnapshotGetRequest, type SeedAppAgentRuntimeProcessSnapshotGetResult, type SeedAppAgentRuntimeRestartReason, type SeedAppAgentRuntimeSessionEnsureReason, type SeedAppAgentRuntimeSessionEnsureRequest, type SeedAppAgentRuntimeSessionEnsureResult, type SeedAppAgentRuntimeSlashCommand, type SeedAppAgentRuntimeSlashCommandExecuteRequest, type SeedAppAgentRuntimeSlashCommandExecuteResult, type SeedAppAgentRuntimeSlashCommandKind, type SeedAppAgentRuntimeSlashCommandSelectionBehavior, type SeedAppAgentRuntimeSlashCommandSource, type SeedAppAgentRuntimeSlashCommandsListRequest, type SeedAppAgentRuntimeSlashCommandsListResult, type SeedAppAgentRuntimeStaleReason, type SeedAppAgentSideQuestionAskRequest, type SeedAppAgentSideQuestionAskResult, type SeedAppAgentSideQuestionResult, type SeedAppAgentStopRequest, type SeedAppAgentStopResult, type SeedAppAgentStreamChannel, SeedAppAgentStreamConsumptionGuard, type SeedAppAgentStreamConsumptionGuardConsumeOptions, type SeedAppAgentStreamConsumptionGuardIssue, type SeedAppAgentStreamConsumptionGuardIssueCode, type SeedAppAgentStreamConsumptionGuardMode, type SeedAppAgentStreamConsumptionGuardOptions, type SeedAppAgentStreamEvent, type SeedAppAgentStreamEventType, type SeedAppAgentStreamHandler, type SeedAppAgentStreamScopedSubscribeOptions, type SeedAppAgentStreamScopedUnsubscribe, type SeedAppAgentStreamStatus, type SeedAppAgentStreamSubscribeConversationInput, type SeedAppAgentStreamSubscribeOptions, type SeedAppAgentStreamSubscribeRequest, type SeedAppAgentStreamSubscribeResult, type SeedAppAgentStreamSubscribeRunInput, type SeedAppAgentStreamUnsubscribeRequest, type SeedAppAgentSummary, type SeedAppAguiStreamChannel, type SeedAppAguiStreamHandler, type SeedAppAguiStreamScopedSubscribeOptions, type SeedAppAguiStreamScopedUnsubscribe, type SeedAppAguiStreamSubscribeConversationInput, type SeedAppAguiStreamSubscribeOptions, type SeedAppAguiStreamSubscribeRequest, type SeedAppAguiStreamSubscribeResult, type SeedAppAguiStreamSubscribeRunInput, type SeedAppAguiStreamUnsubscribeRequest, type SeedAppAppearanceState, type SeedAppAssistantResourceDeleteRequest, type SeedAppAssistantResourceDeleteResult, type SeedAppAssistantResourceKind, type SeedAppAssistantResourceReadRequest, type SeedAppAssistantResourceReadResult, type SeedAppAssistantResourceWriteRequest, type SeedAppAssistantResourceWriteResult, type SeedAppAuthAccessTokenRequest, type SeedAppAuthAccessTokenResult, type SeedAppAuthContextResult, type SeedAppAuthPermission, type SeedAppAuthUserContext, type SeedAppAutoInjectedSkillSummary, type SeedAppBrainBundlePreviewSummariesRequest, type SeedAppBrainBundlePreviewSummariesResult, type SeedAppBrainBundlePreviewSummary, type SeedAppBrainBundlePreviewSummaryPage, type SeedAppBrainBundlePreviewSummaryRollup, type SeedAppBridgeDiagnostics, type SeedAppBridgeDiagnosticsRequest, type SeedAppBridgeDiagnosticsRuntime, type SeedAppBridgeEventSubscriptionParams, type SeedAppBridgeTargetConfig, type SeedAppBridgeTargetMode, type SeedAppBuiltinResourceKind, type SeedAppBuiltinResourceReadRequest, type SeedAppBuiltinResourceReadResult, type SeedAppCapabilitiesRequest, type SeedAppCapabilitiesRequestResult, type SeedAppClient, type SeedAppClientOptions, type SeedAppConsoleBridgeController, type SeedAppConsoleBridgeOptions, type SeedAppConsoleEnvelope, type SeedAppConsoleLevel, type SeedAppConversation, type SeedAppConversationArchiveImportData, type SeedAppConversationArchiveImportRequest, type SeedAppConversationArchiveImportResult, type SeedAppConversationArtifact, type SeedAppConversationArtifactAccess, type SeedAppConversationArtifactAccessRevokeRequest, type SeedAppConversationArtifactEvidence, type SeedAppConversationArtifactIdRequest, type SeedAppConversationArtifactListRequest, type SeedAppConversationArtifactMaterialization, type SeedAppConversationArtifactMaterializeRequest, type SeedAppConversationArtifactPolicyUpdateRequest, type SeedAppConversationArtifactScrubFinding, type SeedAppConversationArtifactScrubRequest, type SeedAppConversationArtifactScrubResult, type SeedAppConversationArtifactShareRequest, type SeedAppConversationArtifactShareTarget, type SeedAppConversationAuthority, type SeedAppConversationChangedAction, type SeedAppConversationChangedEvent, type SeedAppConversationCreateRequest, type SeedAppConversationDeleteRequest, type SeedAppConversationDeleteResult, type SeedAppConversationGetRequest, type SeedAppConversationListByCronJobRequest, type SeedAppConversationListRequest, type SeedAppConversationMessage, type SeedAppConversationMessagesPageResult, type SeedAppConversationMessagesRequest, type SeedAppConversationMetadataUpdateRequest, type SeedAppConversationModelUpdateRequest, type SeedAppConversationRenameRequest, type SeedAppConversationSearchMessagesItem, type SeedAppConversationSearchMessagesRequest, type SeedAppConversationSearchMessagesResult, type SeedAppConversationStatus, type SeedAppElectronBridgeApi, type SeedAppElectronTransportOptions, type SeedAppEmployee, type SeedAppEmployeeActivity, type SeedAppEmployeeActivityListRequest, type SeedAppEmployeeAssistantSnapshot, type SeedAppEmployeeChangedEvent, type SeedAppEmployeeCreateFromAssistantRequest, type SeedAppEmployeeCreateFromRoleTemplateRequest, type SeedAppEmployeeDashboard, type SeedAppEmployeeGetRequest, type SeedAppEmployeeListRequest, type SeedAppEmployeeMemory, type SeedAppEmployeeMemoryDeleteRequest, type SeedAppEmployeeMemoryDeleteResult, type SeedAppEmployeeMemoryDeletedData, type SeedAppEmployeeMemoryEvent, type SeedAppEmployeeMemoryEventType, type SeedAppEmployeeMemoryEventsListRequest, type SeedAppEmployeeMemoryListRequest, type SeedAppEmployeeOpenConversationRequest, type SeedAppEmployeeRemoveRequest, type SeedAppEmployeeRemoveResult, type SeedAppEmployeeRuntimeBinding, type SeedAppEmployeeSource, type SeedAppEmployeeStatus, type SeedAppEmployeeUpdate, type SeedAppEmployeeUpdateRequest, type SeedAppEmployeeUpdateStatus, type SeedAppEndpointTraceBridgeOptions, type SeedAppEndpointTraceEnvelope, type SeedAppEndpointTransportOptions, type SeedAppEndpointTransportTraceEvent, type SeedAppEndpointTransportTraceHandler, type SeedAppEndpointTransportTracePhase, type SeedAppEndpointWebSocket, type SeedAppEndpointWebSocketListener, type SeedAppError, type SeedAppEvent, type SeedAppEventHandler, type SeedAppGrantPolicy, type SeedAppGrantResolution, type SeedAppHandshakeRequest, type SeedAppHandshakeResult, type SeedAppHostEnvelope, type SeedAppMcpCallToolRequest, type SeedAppMcpCallToolResult, type SeedAppMcpListToolsRequest, type SeedAppMcpTool, type SeedAppMemorySearchRequest, type SeedAppMemorySearchResult, type SeedAppMockHandler, type SeedAppMockTransport, type SeedAppMockTransportOptions, type SeedAppNetworkFetchRequest, type SeedAppNetworkFetchResult, type SeedAppReactNativeMessageEvent, type SeedAppReactNativeMessageTarget, type SeedAppReactNativeTransportOptions, type SeedAppRemotePcContentLease, type SeedAppRemotePcPresence, type SeedAppRemotePcPresenceChangedEvent, type SeedAppRemotePcVibeConversation, type SeedAppRemotePcVibeEventsHandler, type SeedAppRemotePcVibeEventsRequest, type SeedAppRemotePcVibeEventsResult, type SeedAppRemotePcVibeListRequest, type SeedAppRemotePcVibeRef, type SeedAppRemotePcVibeSubscribeOptions, type SeedAppRemotePcVibeUnsubscribe, type SeedAppRequestOptions, type SeedAppResolvedResource, type SeedAppResourceListRequest, type SeedAppResourceListResult, type SeedAppResourceOpenRequest, type SeedAppResourceOpenResult, type SeedAppResourceOpenableSchemesResult, type SeedAppResourceReadRequest, type SeedAppResourceReadResult, type SeedAppResourceStatRequest, type SeedAppResourceStatResult, type SeedAppResourceTraceStep, type SeedAppRoleMakerSession, type SeedAppRoleMakerSessionApplyRequest, type SeedAppRoleMakerSessionApplyResult, type SeedAppRoleMakerSessionApproveRequest, type SeedAppRoleMakerSessionApproveResult, type SeedAppRoleMakerSessionChangedEvent, type SeedAppRoleMakerSessionDiscardRequest, type SeedAppRoleMakerSessionDiscardResult, type SeedAppRoleMakerSessionGenerateRequest, type SeedAppRoleMakerSessionGenerateResult, type SeedAppRoleMakerSessionGetRequest, type SeedAppRoleMakerSessionGetResult, type SeedAppRoleMakerSessionStartRequest, type SeedAppRoleMakerSessionStartResult, type SeedAppRoleMakerSessionStatus, type SeedAppRoleTemplate, type SeedAppRoleTemplateChangedEvent, type SeedAppRoleTemplateCreateRequest, type SeedAppRoleTemplateDeleteRequest, type SeedAppRoleTemplateDeleteResult, type SeedAppRoleTemplateGetRequest, type SeedAppRoleTemplateListRequest, type SeedAppRoleTemplateUpdate, type SeedAppRoleTemplateUpdateRequest, type SeedAppRouteResolver, type SeedAppRouteTransportKey, type SeedAppRouteTransportMap, type SeedAppRpcRequest, type SeedAppRpcResponse, type SeedAppRuntimeMcpServer, type SeedAppRuntimeModel, type SeedAppRuntimeSkill, type SeedAppSdkEnvelope, type SeedAppSkillAutoInjectedAddRequest, type SeedAppSkillAutoInjectedRemoveRequest, type SeedAppSkillDeleteRequest, type SeedAppSkillExportLocalRequest, type SeedAppSkillExternalDetectResult, type SeedAppSkillExternalPathAddRequest, type SeedAppSkillExternalSource, type SeedAppSkillExternalSummary, type SeedAppSkillImportLocalRequest, type SeedAppSkillImportLocalResult, type SeedAppSkillMarketSetEnabledRequest, type SeedAppSkillOperationResult, type SeedAppSkillPathsResult, type SeedAppSkillSummary, type SeedAppSpeechTranscribeRequest, type SeedAppSpeechTranscribeResult, type SeedAppSpeechTranscribeSegment, type SeedAppSpeechTranscribeSpeaker, type SeedAppSubagentSessionLoadRequest, type SeedAppSubagentSessionLoadResult, type SeedAppSubagentSessionMessage, type SeedAppSubagentSessionMessageType, type SeedAppSubagentSessionRequest, type SeedAppSubagentSessionSnapshot, type SeedAppSubagentSessionSnapshotGetRequest, type SeedAppSubagentSessionSnapshotGetResult, type SeedAppTeam, type SeedAppTeamAgent, type SeedAppTeamAgentAddInput, type SeedAppTeamAgentAddRequest, type SeedAppTeamAgentRemoveRequest, type SeedAppTeamAgentRemoveResult, type SeedAppTeamAgentRemovedEvent, type SeedAppTeamAgentRenameRequest, type SeedAppTeamAgentRenameResult, type SeedAppTeamAgentRenamedEvent, type SeedAppTeamAgentSpawnedEvent, type SeedAppTeamAgentStatus, type SeedAppTeamAgentStatusChangedEvent, type SeedAppTeamChangedEvent, type SeedAppTeamCreateRequest, type SeedAppTeamDeleteRequest, type SeedAppTeamDeleteResult, type SeedAppTeamGetRequest, type SeedAppTeamListRequest, type SeedAppTeamMessageSendRequest, type SeedAppTeamMessageSendResult, type SeedAppTeamMessageSendToAgentRequest, type SeedAppTeamMessageSendToAgentResult, type SeedAppTeamRenameRequest, type SeedAppTeamRenameResult, type SeedAppTeamSessionEnsureRequest, type SeedAppTeamSessionEnsureResult, type SeedAppTeamSessionModeSetRequest, type SeedAppTeamSessionModeSetResult, type SeedAppTeamSessionResetRequest, type SeedAppTeamStopRequest, type SeedAppTeamStopResult, type SeedAppTeamWorkspaceUpdateRequest, type SeedAppTeamWorkspaceUpdateResult, type SeedAppThemeMode, type SeedAppThemeSyncController, type SeedAppThemeSyncOptions, type SeedAppTraceContext, type SeedAppTransport, type SeedAppWebSocketTransportOptions, type SeedAppWindowTransportOptions, type SeedAppWorkspaceAssignableUser, type SeedAppWorkspaceAssignableUsersRequest, type SeedAppWorkspaceCapabilitiesRequest, type SeedAppWorkspaceCapabilitiesResult, type SeedAppWorkspaceChangedEvent, type SeedAppWorkspaceChangedOperation, type SeedAppWorkspaceChangedSubscribeRequest, type SeedAppWorkspaceClient, type SeedAppWorkspaceCopyRequest, type SeedAppWorkspaceCopyResult, type SeedAppWorkspaceCreateRequest, type SeedAppWorkspaceDeleteRequest, type SeedAppWorkspaceDeleteResult, type SeedAppWorkspaceEntry, type SeedAppWorkspaceImportLocalFilesRequest, type SeedAppWorkspaceImportLocalFilesResult, type SeedAppWorkspaceListRequest, type SeedAppWorkspaceListResult, type SeedAppWorkspaceMemberAddRequest, type SeedAppWorkspaceMemberListRequest, type SeedAppWorkspaceMemberRemoveRequest, type SeedAppWorkspaceMemberRole, type SeedAppWorkspaceMemberSummary, type SeedAppWorkspaceMemberUpdateRequest, type SeedAppWorkspacePath, type SeedAppWorkspaceReadRequest, type SeedAppWorkspaceReadResult, type SeedAppWorkspaceRenameRequest, type SeedAppWorkspaceRenameResult, type SeedAppWorkspaceSearchRequest, type SeedAppWorkspaceSearchResult, type SeedAppWorkspaceSummary, type SeedAppWorkspaceUploadStagePayload, type SeedAppWorkspaceUploadStageRequest, type SeedAppWorkspaceUploadStageResult, type SeedAppWorkspaceWritePayload, type SeedAppWorkspaceWriteRequest, type SeedAppWorkspaceWriteResult, type SeedBridgeGoldenCaseArtifact, type SeedBridgeGoldenCaseMethodResult, type SeedBridgeGoldenCaseNegativeCase, type SeedBridgeGoldenCaseReport, type SeedBridgeGoldenCaseReportInput, type SeedBridgeGoldenCaseReportValidation, type SeedBridgeGoldenCaseRuntime, type SeedBridgeGoldenCaseTransport, type SeedDispatchMode, appendSeedAppAppearanceSearchParams, appendSeedAppBridgeTargetSearchParams, createSeedAppAgentStreamConsumptionGuard, createSeedAppAgentStreamEvent, createSeedAppClient, createSeedAppElectronTransport, createSeedAppEndpointTraceBridge, createSeedAppEndpointTransport, createSeedAppError, createSeedAppMockTransport, createSeedAppReactNativeTransport, createSeedAppRootTraceContext, createSeedAppWebSocketTransport, createSeedAppWorkspaceClient, createSeedBridgeGoldenCaseReport, createWindowSeedAppTransport, ensureSeedAppTraceCarrier, extractSeedAppTraceContext, injectSeedAppTraceContext, installSeedAppConsoleBridge, installSeedAppThemeSync, isSeedAguiEvent, isSeedAppAgentStreamEvent, isSeedAppTraceEnabled, isSeedBridgeGoldenCaseReport, matchesSeedAguiStreamScope, resolveSeedAguiEventIdentity, resolveSeedAppAgentStreamEventIdentity, resolveSeedAppAgentStreamSemanticKey, resolveSeedAppAppearanceFromSearch, resolveSeedAppBridgeTargetFromSearch, seedAppAgentStreamEventTypes, seedAppAguiStreamEventTypes, seedAppAppearanceSearchParams, seedAppBridgeTargetModes, seedAppBridgeTargetSearchParams, seedBridgeGoldenCasePrimaryTransportByRuntime, seedBridgeGoldenCaseReportSchemaVersion, validateSeedBridgeGoldenCaseReport };