@get-bb/plugin-sdk 0.4.48 → 0.4.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +203 -28
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +266 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +33 -2
- package/bundled-types/bb-plugin-sdk-internal-composer-customization-validation.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +230 -8
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +7 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +195 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +202 -167
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +5 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +316 -4
- package/bundled-types/bb-plugin-sdk.d.ts +1843 -912
- package/dist/app.js +6 -0
- package/dist/environment-provider.js +0 -0
- package/dist/host.js +734 -30
- package/dist/internal/composer-customization-validation.js +9 -0
- package/dist/internal/host-policy.js +232 -64
- package/dist/internal/plugin-app-collector.js +26 -0
- package/dist/provider-bridge-acp.js +46 -2
- package/dist/provider-bridge-testing.js +62 -1
- package/dist/provider-bridge.js +23 -1
- package/dist/testing/app.js +86 -1
- package/dist/testing/index.js +268 -72
- package/package.json +7 -1
|
@@ -9,6 +9,7 @@ import * as react from 'react';
|
|
|
9
9
|
import { ComponentType, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
10
10
|
import * as z from 'zod';
|
|
11
11
|
import { z as z$1 } from 'zod';
|
|
12
|
+
import { StandardSchemaV1 as StandardSchemaV1$1, PluginEnvironmentProviderRequirements as PluginEnvironmentProviderRequirements$1, StandardSchemaV1InferOutput as StandardSchemaV1InferOutput$1, PluginEnvironmentValidateDecision as PluginEnvironmentValidateDecision$1, JsonValue as JsonValue$2 } from '@get-bb/plugin-sdk';
|
|
12
13
|
import Database from 'better-sqlite3';
|
|
13
14
|
import { Context } from 'hono';
|
|
14
15
|
|
|
@@ -46,12 +47,76 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
46
47
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
47
48
|
managedBranchPrefix: z$1.ZodString;
|
|
48
49
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
50
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
49
51
|
showKeyboardHints: z$1.ZodBoolean;
|
|
50
|
-
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
51
52
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
52
53
|
streamerMode: z$1.ZodBoolean;
|
|
53
54
|
}, z$1.core.$strict>;
|
|
54
55
|
type AppSettings = z$1.infer<typeof appSettingsSchema>;
|
|
56
|
+
declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
57
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
58
|
+
managedBranchPrefix: z$1.ZodString;
|
|
59
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
60
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
61
|
+
showKeyboardHints: z$1.ZodBoolean;
|
|
62
|
+
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
63
|
+
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
64
|
+
streamerMode: z$1.ZodBoolean;
|
|
65
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
66
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
67
|
+
managedBranchPrefix: z$1.ZodString;
|
|
68
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
69
|
+
showKeyboardHints: z$1.ZodBoolean;
|
|
70
|
+
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
71
|
+
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
72
|
+
streamerMode: z$1.ZodBoolean;
|
|
73
|
+
}, z$1.core.$strict>]>;
|
|
74
|
+
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
75
|
+
|
|
76
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.chronologicalSort", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider"];
|
|
77
|
+
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
78
|
+
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
79
|
+
schema: Schema;
|
|
80
|
+
defaultValue: z$1.infer<Schema>;
|
|
81
|
+
description: string;
|
|
82
|
+
}
|
|
83
|
+
declare const uiPreferenceDefinitions: {
|
|
84
|
+
readonly "sidebar.organizationMode": UiPreferenceDefinition<z$1.ZodEnum<{
|
|
85
|
+
chronological: "chronological";
|
|
86
|
+
machine: "machine";
|
|
87
|
+
project: "project";
|
|
88
|
+
}>>;
|
|
89
|
+
readonly "sidebar.chronologicalSort": UiPreferenceDefinition<z$1.ZodEnum<{
|
|
90
|
+
alpha: "alpha";
|
|
91
|
+
created: "created";
|
|
92
|
+
none: "none";
|
|
93
|
+
updated: "updated";
|
|
94
|
+
}>>;
|
|
95
|
+
readonly "sidebar.sectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
96
|
+
readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
97
|
+
readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
98
|
+
readonly "sidebar.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodEnum<{
|
|
99
|
+
pinned: "pinned";
|
|
100
|
+
threads: "threads";
|
|
101
|
+
}>>>;
|
|
102
|
+
readonly "sidebar.collapsedProjects": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
103
|
+
readonly "sidebar.collapsedThreads": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
104
|
+
readonly "sidebar.collapsedEnvironments": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
105
|
+
readonly "sidebar.collapsedThreadSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
106
|
+
readonly "sidebar.collapsedMachines": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
107
|
+
readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
108
|
+
readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
|
|
109
|
+
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodString>;
|
|
110
|
+
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodString>;
|
|
111
|
+
};
|
|
112
|
+
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
113
|
+
interface UiPreferenceEntry<Key extends UiPreferenceKey = UiPreferenceKey> {
|
|
114
|
+
revision: number;
|
|
115
|
+
value: UiPreferenceValue<Key>;
|
|
116
|
+
}
|
|
117
|
+
type UiPreferenceEntries = {
|
|
118
|
+
[Key in UiPreferenceKey]: UiPreferenceEntry<Key>;
|
|
119
|
+
};
|
|
55
120
|
|
|
56
121
|
declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
57
122
|
command: z$1.ZodEnum<{
|
|
@@ -271,21 +336,68 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
271
336
|
"config-changed": "config-changed";
|
|
272
337
|
"plugins-changed": "plugins-changed";
|
|
273
338
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
339
|
+
"ui-preferences-changed": "ui-preferences-changed";
|
|
274
340
|
}>>>;
|
|
275
341
|
entity: z$1.ZodLiteral<"system">;
|
|
276
342
|
type: z$1.ZodLiteral<"changed">;
|
|
277
343
|
}, z$1.core.$strict>], "entity">;
|
|
278
344
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
279
345
|
|
|
346
|
+
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
347
|
+
destroyed: "destroyed";
|
|
348
|
+
error: "error";
|
|
349
|
+
provisioning: "provisioning";
|
|
350
|
+
ready: "ready";
|
|
351
|
+
}>;
|
|
352
|
+
type EnvironmentStatus = z$1.infer<typeof environmentStatusSchema>;
|
|
353
|
+
declare const workspaceProvisionTypeSchema: z$1.ZodEnum<{
|
|
354
|
+
"managed-worktree": "managed-worktree";
|
|
355
|
+
personal: "personal";
|
|
356
|
+
unmanaged: "unmanaged";
|
|
357
|
+
}>;
|
|
358
|
+
type WorkspaceProvisionType = z$1.infer<typeof workspaceProvisionTypeSchema>;
|
|
359
|
+
declare const environmentWorkspaceDisplayKindSchema: z$1.ZodEnum<{
|
|
360
|
+
"managed-worktree": "managed-worktree";
|
|
361
|
+
"unmanaged-worktree": "unmanaged-worktree";
|
|
362
|
+
other: "other";
|
|
363
|
+
}>;
|
|
364
|
+
type EnvironmentWorkspaceDisplayKind = z$1.infer<typeof environmentWorkspaceDisplayKindSchema>;
|
|
280
365
|
declare const environmentSchema: z$1.ZodObject<{
|
|
281
366
|
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
282
367
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
283
368
|
createdAt: z$1.ZodNumber;
|
|
284
369
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
370
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
371
|
+
environmentProviderInstanceKey: z$1.ZodNullable<z$1.ZodString>;
|
|
372
|
+
environmentProviderSelection: z$1.ZodNullable<z$1.ZodObject<{
|
|
373
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
374
|
+
machine: z$1.ZodObject<{
|
|
375
|
+
hostId: z$1.ZodString;
|
|
376
|
+
type: z$1.ZodLiteral<"existing">;
|
|
377
|
+
}, z$1.core.$strip>;
|
|
378
|
+
}, z$1.core.$strip>>;
|
|
285
379
|
hostId: z$1.ZodString;
|
|
286
380
|
id: z$1.ZodString;
|
|
287
381
|
isGitRepo: z$1.ZodBoolean;
|
|
288
382
|
isWorktree: z$1.ZodBoolean;
|
|
383
|
+
lifecycle: z$1.ZodObject<{
|
|
384
|
+
phase: z$1.ZodEnum<{
|
|
385
|
+
active: "active";
|
|
386
|
+
destroyed: "destroyed";
|
|
387
|
+
retiring: "retiring";
|
|
388
|
+
teardown: "teardown";
|
|
389
|
+
}>;
|
|
390
|
+
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
391
|
+
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
392
|
+
attempt: z$1.ZodNumber;
|
|
393
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
394
|
+
status: z$1.ZodEnum<{
|
|
395
|
+
failed: "failed";
|
|
396
|
+
removed: "removed";
|
|
397
|
+
running: "running";
|
|
398
|
+
}>;
|
|
399
|
+
}, z$1.core.$strip>>;
|
|
400
|
+
}, z$1.core.$strip>;
|
|
289
401
|
managed: z$1.ZodBoolean;
|
|
290
402
|
mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
291
403
|
name: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -293,18 +405,16 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
293
405
|
projectId: z$1.ZodString;
|
|
294
406
|
status: z$1.ZodEnum<{
|
|
295
407
|
destroyed: "destroyed";
|
|
296
|
-
destroying: "destroying";
|
|
297
408
|
error: "error";
|
|
298
409
|
provisioning: "provisioning";
|
|
299
410
|
ready: "ready";
|
|
300
|
-
retiring: "retiring";
|
|
301
411
|
}>;
|
|
302
412
|
updatedAt: z$1.ZodNumber;
|
|
303
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
413
|
+
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
304
414
|
"managed-worktree": "managed-worktree";
|
|
305
415
|
personal: "personal";
|
|
306
416
|
unmanaged: "unmanaged";
|
|
307
|
-
}
|
|
417
|
+
}>>;
|
|
308
418
|
}, z$1.core.$strip>;
|
|
309
419
|
type Environment = z$1.infer<typeof environmentSchema>;
|
|
310
420
|
|
|
@@ -317,6 +427,27 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
317
427
|
}>, z$1.ZodBoolean>;
|
|
318
428
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
319
429
|
|
|
430
|
+
declare const workspaceGitOperationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
431
|
+
kind: z$1.ZodLiteral<"none">;
|
|
432
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
433
|
+
hasConflicts: z$1.ZodBoolean;
|
|
434
|
+
kind: z$1.ZodLiteral<"merge">;
|
|
435
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
436
|
+
hasConflicts: z$1.ZodBoolean;
|
|
437
|
+
kind: z$1.ZodLiteral<"rebase">;
|
|
438
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
439
|
+
hasConflicts: z$1.ZodBoolean;
|
|
440
|
+
kind: z$1.ZodLiteral<"cherry-pick">;
|
|
441
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
442
|
+
hasConflicts: z$1.ZodBoolean;
|
|
443
|
+
kind: z$1.ZodLiteral<"revert">;
|
|
444
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
445
|
+
hasConflicts: z$1.ZodBoolean;
|
|
446
|
+
kind: z$1.ZodLiteral<"unknown">;
|
|
447
|
+
reason: z$1.ZodString;
|
|
448
|
+
}, z$1.core.$strip>], "kind">;
|
|
449
|
+
type WorkspaceGitOperation = z$1.infer<typeof workspaceGitOperationSchema>;
|
|
450
|
+
|
|
320
451
|
declare const hostSchema: z$1.ZodObject<{
|
|
321
452
|
createdAt: z$1.ZodNumber;
|
|
322
453
|
id: z$1.ZodString;
|
|
@@ -366,427 +497,130 @@ declare const threadEventItemPresentationSchema: z$1.ZodObject<{
|
|
|
366
497
|
}, z$1.core.$strip>;
|
|
367
498
|
type ThreadEventItemPresentation = z$1.infer<typeof threadEventItemPresentationSchema>;
|
|
368
499
|
|
|
369
|
-
declare const
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
500
|
+
declare const providerErrorInfoSchema: z$1.ZodObject<{
|
|
501
|
+
category: z$1.ZodEnum<{
|
|
502
|
+
"active-turn-not-steerable": "active-turn-not-steerable";
|
|
503
|
+
"bad-request": "bad-request";
|
|
504
|
+
"budget-exceeded": "budget-exceeded";
|
|
505
|
+
"connection-failed": "connection-failed";
|
|
506
|
+
"context-window-exceeded": "context-window-exceeded";
|
|
507
|
+
"max-output-tokens": "max-output-tokens";
|
|
508
|
+
"max-turns": "max-turns";
|
|
509
|
+
"rate-limit": "rate-limit";
|
|
510
|
+
"stream-disconnected": "stream-disconnected";
|
|
511
|
+
"structured-output-retries": "structured-output-retries";
|
|
512
|
+
"thread-rollback-failed": "thread-rollback-failed";
|
|
513
|
+
"too-many-failed-attempts": "too-many-failed-attempts";
|
|
514
|
+
billing: "billing";
|
|
515
|
+
internal: "internal";
|
|
516
|
+
overloaded: "overloaded";
|
|
517
|
+
policy: "policy";
|
|
518
|
+
sandbox: "sandbox";
|
|
519
|
+
unauthorized: "unauthorized";
|
|
520
|
+
unknown: "unknown";
|
|
521
|
+
}>;
|
|
522
|
+
httpStatusCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
523
|
+
providerCode: z$1.ZodNullable<z$1.ZodString>;
|
|
524
|
+
}, z$1.core.$strip>;
|
|
525
|
+
type ProviderErrorInfo = z$1.infer<typeof providerErrorInfoSchema>;
|
|
526
|
+
declare const providerRateLimitStateSchema: z$1.ZodObject<{
|
|
527
|
+
kind: z$1.ZodEnum<{
|
|
528
|
+
"spend-control": "spend-control";
|
|
529
|
+
"subscription-window": "subscription-window";
|
|
530
|
+
credits: "credits";
|
|
531
|
+
unknown: "unknown";
|
|
532
|
+
}>;
|
|
533
|
+
overageReason: z$1.ZodNullable<z$1.ZodString>;
|
|
534
|
+
overageStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
535
|
+
allowed: "allowed";
|
|
536
|
+
rejected: "rejected";
|
|
537
|
+
unavailable: "unavailable";
|
|
538
|
+
warning: "warning";
|
|
539
|
+
}>>;
|
|
540
|
+
providerId: z$1.ZodString;
|
|
541
|
+
reachedReason: z$1.ZodNullable<z$1.ZodString>;
|
|
542
|
+
status: z$1.ZodEnum<{
|
|
543
|
+
allowed: "allowed";
|
|
544
|
+
blocked: "blocked";
|
|
545
|
+
unknown: "unknown";
|
|
546
|
+
warning: "warning";
|
|
547
|
+
}>;
|
|
548
|
+
windows: z$1.ZodArray<z$1.ZodObject<{
|
|
549
|
+
label: z$1.ZodNullable<z$1.ZodString>;
|
|
550
|
+
providerKey: z$1.ZodNullable<z$1.ZodString>;
|
|
551
|
+
resetsAtMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
552
|
+
status: z$1.ZodEnum<{
|
|
553
|
+
allowed: "allowed";
|
|
554
|
+
blocked: "blocked";
|
|
555
|
+
unknown: "unknown";
|
|
556
|
+
warning: "warning";
|
|
557
|
+
}>;
|
|
558
|
+
}, z$1.core.$strip>>;
|
|
559
|
+
}, z$1.core.$strip>;
|
|
560
|
+
type ProviderRateLimitState = z$1.infer<typeof providerRateLimitStateSchema>;
|
|
561
|
+
declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
562
|
+
threadId: z$1.ZodString;
|
|
563
|
+
type: z$1.ZodLiteral<"thread/started">;
|
|
380
564
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
385
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
386
|
-
}, z$1.core.$strip>>;
|
|
387
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
388
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
389
|
-
}, z$1.core.$strip>>;
|
|
390
|
-
}, z$1.core.$strict>>;
|
|
565
|
+
providerThreadId: z$1.ZodString;
|
|
566
|
+
threadId: z$1.ZodString;
|
|
567
|
+
type: z$1.ZodLiteral<"thread/identity">;
|
|
391
568
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
569
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
570
|
+
providerThreadId: z$1.ZodString;
|
|
571
|
+
threadId: z$1.ZodString;
|
|
572
|
+
type: z$1.ZodLiteral<"turn/started">;
|
|
573
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
574
|
+
error: z$1.ZodOptional<z$1.ZodObject<{
|
|
575
|
+
message: z$1.ZodString;
|
|
397
576
|
}, z$1.core.$strip>>;
|
|
398
|
-
|
|
577
|
+
providerCheckpointId: z$1.ZodOptional<z$1.ZodString>;
|
|
578
|
+
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
579
|
+
status: z$1.ZodEnum<{
|
|
580
|
+
completed: "completed";
|
|
581
|
+
failed: "failed";
|
|
582
|
+
interrupted: "interrupted";
|
|
583
|
+
}>;
|
|
584
|
+
threadId: z$1.ZodString;
|
|
585
|
+
type: z$1.ZodLiteral<"turn/completed">;
|
|
399
586
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
400
|
-
|
|
587
|
+
clientRequestId: z$1.ZodString;
|
|
588
|
+
providerThreadId: z$1.ZodString;
|
|
589
|
+
scope: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
590
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
591
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
592
|
+
kind: z$1.ZodLiteral<"turn">;
|
|
593
|
+
turnId: z$1.ZodString;
|
|
594
|
+
}, z$1.core.$strip>], "kind">;
|
|
595
|
+
threadId: z$1.ZodString;
|
|
596
|
+
type: z$1.ZodLiteral<"turn/input/accepted">;
|
|
597
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
598
|
+
providerThreadId: z$1.ZodString;
|
|
599
|
+
threadId: z$1.ZodString;
|
|
600
|
+
threadName: z$1.ZodString;
|
|
601
|
+
type: z$1.ZodLiteral<"thread/name/updated">;
|
|
401
602
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
402
|
-
kind: z$1.ZodLiteral<"request_answer">;
|
|
403
|
-
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
404
|
-
}, z$1.core.$strip>]>;
|
|
405
|
-
type PendingInteractionResolution = z$1.infer<typeof pendingInteractionResolutionSchema>;
|
|
406
|
-
declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
407
|
-
createdAt: z$1.ZodNumber;
|
|
408
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
409
|
-
id: z$1.ZodString;
|
|
410
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
411
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
412
|
-
providerId: z$1.ZodString;
|
|
413
|
-
providerRequestId: z$1.ZodString;
|
|
414
|
-
providerThreadId: z$1.ZodString;
|
|
415
|
-
}, z$1.core.$strip>>;
|
|
416
|
-
payload: z$1.ZodObject<{
|
|
417
|
-
availableDecisions: z$1.ZodArray<z$1.ZodEnum<{
|
|
418
|
-
allow_for_session: "allow_for_session";
|
|
419
|
-
allow_once: "allow_once";
|
|
420
|
-
deny: "deny";
|
|
421
|
-
}>>;
|
|
422
|
-
kind: z$1.ZodLiteral<"approval">;
|
|
423
|
-
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
424
|
-
subject: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
425
|
-
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
426
|
-
command: z$1.ZodString;
|
|
427
|
-
name: z$1.ZodString;
|
|
428
|
-
path: z$1.ZodString;
|
|
429
|
-
type: z$1.ZodLiteral<"read">;
|
|
430
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
431
|
-
command: z$1.ZodString;
|
|
432
|
-
path: z$1.ZodNullable<z$1.ZodString>;
|
|
433
|
-
type: z$1.ZodLiteral<"listFiles">;
|
|
434
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
435
|
-
command: z$1.ZodString;
|
|
436
|
-
path: z$1.ZodNullable<z$1.ZodString>;
|
|
437
|
-
query: z$1.ZodNullable<z$1.ZodString>;
|
|
438
|
-
type: z$1.ZodLiteral<"search">;
|
|
439
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
440
|
-
command: z$1.ZodString;
|
|
441
|
-
type: z$1.ZodLiteral<"unknown">;
|
|
442
|
-
}, z$1.core.$strip>], "type">>;
|
|
443
|
-
command: z$1.ZodString;
|
|
444
|
-
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
445
|
-
itemId: z$1.ZodString;
|
|
446
|
-
kind: z$1.ZodLiteral<"command">;
|
|
447
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
448
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
449
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
450
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
451
|
-
}, z$1.core.$strip>>;
|
|
452
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
453
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
454
|
-
}, z$1.core.$strip>>;
|
|
455
|
-
}, z$1.core.$strict>>;
|
|
456
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
457
|
-
itemId: z$1.ZodString;
|
|
458
|
-
kind: z$1.ZodLiteral<"file_change">;
|
|
459
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
460
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
461
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
462
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
463
|
-
}, z$1.core.$strip>>;
|
|
464
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
465
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
466
|
-
}, z$1.core.$strip>>;
|
|
467
|
-
}, z$1.core.$strict>>;
|
|
468
|
-
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
469
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
470
|
-
itemId: z$1.ZodString;
|
|
471
|
-
kind: z$1.ZodLiteral<"permission_grant">;
|
|
472
|
-
permissions: z$1.ZodObject<{
|
|
473
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
474
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
475
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
476
|
-
}, z$1.core.$strip>>;
|
|
477
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
478
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
479
|
-
}, z$1.core.$strip>>;
|
|
480
|
-
}, z$1.core.$strict>;
|
|
481
|
-
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
482
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
483
|
-
itemId: z$1.ZodString;
|
|
484
|
-
kind: z$1.ZodLiteral<"plan">;
|
|
485
|
-
plan: z$1.ZodString;
|
|
486
|
-
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
487
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
488
|
-
itemId: z$1.ZodString;
|
|
489
|
-
kind: z$1.ZodLiteral<"tool_use">;
|
|
490
|
-
presentation: z$1.ZodObject<{
|
|
491
|
-
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
492
|
-
glyph: z$1.ZodString;
|
|
493
|
-
hint: z$1.ZodString;
|
|
494
|
-
label: z$1.ZodString;
|
|
495
|
-
tone: z$1.ZodEnum<{
|
|
496
|
-
destructive: "destructive";
|
|
497
|
-
neutral: "neutral";
|
|
498
|
-
}>;
|
|
499
|
-
}, z$1.core.$strip>>;
|
|
500
|
-
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
501
|
-
icon: z$1.ZodObject<{
|
|
502
|
-
glyph: z$1.ZodString;
|
|
503
|
-
}, z$1.core.$strip>;
|
|
504
|
-
label: z$1.ZodObject<{
|
|
505
|
-
completed: z$1.ZodString;
|
|
506
|
-
pending: z$1.ZodString;
|
|
507
|
-
}, z$1.core.$strip>;
|
|
508
|
-
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
509
|
-
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
510
|
-
dark: z$1.ZodString;
|
|
511
|
-
light: z$1.ZodString;
|
|
512
|
-
}, z$1.core.$strip>>;
|
|
513
|
-
title: z$1.ZodOptional<z$1.ZodString>;
|
|
514
|
-
}, z$1.core.$strip>;
|
|
515
|
-
tool: z$1.ZodString;
|
|
516
|
-
}, z$1.core.$strip>], "kind">;
|
|
517
|
-
}, z$1.core.$strip>;
|
|
518
|
-
providerId: z$1.ZodString;
|
|
519
|
-
providerRequestId: z$1.ZodString;
|
|
520
603
|
providerThreadId: z$1.ZodString;
|
|
521
|
-
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
522
|
-
decision: z$1.ZodLiteral<"allow_once">;
|
|
523
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
524
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
525
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
526
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
527
|
-
}, z$1.core.$strip>>;
|
|
528
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
529
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
530
|
-
}, z$1.core.$strip>>;
|
|
531
|
-
}, z$1.core.$strict>>;
|
|
532
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
533
|
-
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
534
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
535
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
536
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
537
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
538
|
-
}, z$1.core.$strip>>;
|
|
539
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
540
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
541
|
-
}, z$1.core.$strip>>;
|
|
542
|
-
}, z$1.core.$strict>>;
|
|
543
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
544
|
-
decision: z$1.ZodLiteral<"deny">;
|
|
545
|
-
}, z$1.core.$strip>], "decision">>;
|
|
546
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
547
|
-
status: z$1.ZodEnum<{
|
|
548
|
-
interrupted: "interrupted";
|
|
549
|
-
pending: "pending";
|
|
550
|
-
resolved: "resolved";
|
|
551
|
-
resolving: "resolving";
|
|
552
|
-
}>;
|
|
553
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
554
604
|
threadId: z$1.ZodString;
|
|
555
|
-
|
|
605
|
+
type: z$1.ZodLiteral<"thread/compacted">;
|
|
556
606
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
557
|
-
createdAt: z$1.ZodNumber;
|
|
558
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
559
|
-
id: z$1.ZodString;
|
|
560
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
561
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
562
|
-
providerId: z$1.ZodString;
|
|
563
|
-
providerRequestId: z$1.ZodString;
|
|
564
|
-
providerThreadId: z$1.ZodString;
|
|
565
|
-
}, z$1.core.$strip>>;
|
|
566
|
-
payload: z$1.ZodObject<{
|
|
567
|
-
kind: z$1.ZodLiteral<"user_question">;
|
|
568
|
-
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
569
|
-
allowFreeText: z$1.ZodBoolean;
|
|
570
|
-
id: z$1.ZodString;
|
|
571
|
-
multiSelect: z$1.ZodBoolean;
|
|
572
|
-
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
573
|
-
description: z$1.ZodOptional<z$1.ZodString>;
|
|
574
|
-
label: z$1.ZodString;
|
|
575
|
-
value: z$1.ZodString;
|
|
576
|
-
}, z$1.core.$strip>>>;
|
|
577
|
-
prompt: z$1.ZodString;
|
|
578
|
-
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
579
|
-
}, z$1.core.$strip>>;
|
|
580
|
-
}, z$1.core.$strip>;
|
|
581
|
-
providerId: z$1.ZodString;
|
|
582
|
-
providerRequestId: z$1.ZodString;
|
|
583
607
|
providerThreadId: z$1.ZodString;
|
|
584
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
585
|
-
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
586
|
-
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
587
|
-
selected: z$1.ZodArray<z$1.ZodString>;
|
|
588
|
-
}, z$1.core.$strip>>;
|
|
589
|
-
kind: z$1.ZodLiteral<"user_answer">;
|
|
590
|
-
}, z$1.core.$strip>>;
|
|
591
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
592
|
-
status: z$1.ZodEnum<{
|
|
593
|
-
interrupted: "interrupted";
|
|
594
|
-
pending: "pending";
|
|
595
|
-
resolved: "resolved";
|
|
596
|
-
resolving: "resolving";
|
|
597
|
-
}>;
|
|
598
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
599
608
|
threadId: z$1.ZodString;
|
|
600
|
-
|
|
609
|
+
type: z$1.ZodLiteral<"thread/context/cleared">;
|
|
601
610
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
602
|
-
|
|
603
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
604
|
-
id: z$1.ZodString;
|
|
605
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
606
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
607
|
-
providerId: z$1.ZodString;
|
|
608
|
-
providerRequestId: z$1.ZodString;
|
|
609
|
-
providerThreadId: z$1.ZodString;
|
|
610
|
-
}, z$1.core.$strip>>;
|
|
611
|
-
payload: z$1.ZodObject<{
|
|
612
|
-
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
613
|
-
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
614
|
-
title: z$1.ZodString;
|
|
615
|
-
}, z$1.core.$strip>;
|
|
616
|
-
providerId: z$1.ZodString;
|
|
617
|
-
providerRequestId: z$1.ZodString;
|
|
611
|
+
objective: z$1.ZodString;
|
|
618
612
|
providerThreadId: z$1.ZodString;
|
|
619
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
620
|
-
kind: z$1.ZodLiteral<"request_answer">;
|
|
621
|
-
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
622
|
-
}, z$1.core.$strip>>;
|
|
623
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
624
|
-
status: z$1.ZodEnum<{
|
|
625
|
-
interrupted: "interrupted";
|
|
626
|
-
pending: "pending";
|
|
627
|
-
resolved: "resolved";
|
|
628
|
-
resolving: "resolving";
|
|
629
|
-
}>;
|
|
630
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
631
|
-
threadId: z$1.ZodString;
|
|
632
|
-
turnId: z$1.ZodString;
|
|
633
|
-
}, z$1.core.$strip>]>;
|
|
634
|
-
type ProviderPendingInteraction = z$1.infer<typeof providerPendingInteractionSchema>;
|
|
635
|
-
declare const pluginPendingInteractionSchema: z$1.ZodObject<{
|
|
636
|
-
createdAt: z$1.ZodNumber;
|
|
637
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
638
|
-
id: z$1.ZodString;
|
|
639
|
-
origin: z$1.ZodObject<{
|
|
640
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
641
|
-
pluginId: z$1.ZodString;
|
|
642
|
-
rendererId: z$1.ZodString;
|
|
643
|
-
}, z$1.core.$strip>;
|
|
644
|
-
payload: z$1.ZodObject<{
|
|
645
|
-
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
646
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
647
|
-
title: z$1.ZodString;
|
|
648
|
-
}, z$1.core.$strip>;
|
|
649
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
650
|
-
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
651
|
-
}, z$1.core.$strip>>;
|
|
652
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
653
|
-
status: z$1.ZodEnum<{
|
|
654
|
-
interrupted: "interrupted";
|
|
655
|
-
pending: "pending";
|
|
656
|
-
resolved: "resolved";
|
|
657
|
-
resolving: "resolving";
|
|
658
|
-
}>;
|
|
659
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
660
|
-
threadId: z$1.ZodString;
|
|
661
|
-
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
662
|
-
}, z$1.core.$strip>;
|
|
663
|
-
type PluginPendingInteraction = z$1.infer<typeof pluginPendingInteractionSchema>;
|
|
664
|
-
type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
665
|
-
|
|
666
|
-
declare const providerErrorInfoSchema: z$1.ZodObject<{
|
|
667
|
-
category: z$1.ZodEnum<{
|
|
668
|
-
"active-turn-not-steerable": "active-turn-not-steerable";
|
|
669
|
-
"bad-request": "bad-request";
|
|
670
|
-
"budget-exceeded": "budget-exceeded";
|
|
671
|
-
"connection-failed": "connection-failed";
|
|
672
|
-
"context-window-exceeded": "context-window-exceeded";
|
|
673
|
-
"max-output-tokens": "max-output-tokens";
|
|
674
|
-
"max-turns": "max-turns";
|
|
675
|
-
"rate-limit": "rate-limit";
|
|
676
|
-
"stream-disconnected": "stream-disconnected";
|
|
677
|
-
"structured-output-retries": "structured-output-retries";
|
|
678
|
-
"thread-rollback-failed": "thread-rollback-failed";
|
|
679
|
-
"too-many-failed-attempts": "too-many-failed-attempts";
|
|
680
|
-
billing: "billing";
|
|
681
|
-
internal: "internal";
|
|
682
|
-
overloaded: "overloaded";
|
|
683
|
-
policy: "policy";
|
|
684
|
-
sandbox: "sandbox";
|
|
685
|
-
unauthorized: "unauthorized";
|
|
686
|
-
unknown: "unknown";
|
|
687
|
-
}>;
|
|
688
|
-
httpStatusCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
689
|
-
providerCode: z$1.ZodNullable<z$1.ZodString>;
|
|
690
|
-
}, z$1.core.$strip>;
|
|
691
|
-
type ProviderErrorInfo = z$1.infer<typeof providerErrorInfoSchema>;
|
|
692
|
-
declare const providerRateLimitStateSchema: z$1.ZodObject<{
|
|
693
|
-
kind: z$1.ZodEnum<{
|
|
694
|
-
"spend-control": "spend-control";
|
|
695
|
-
"subscription-window": "subscription-window";
|
|
696
|
-
credits: "credits";
|
|
697
|
-
unknown: "unknown";
|
|
698
|
-
}>;
|
|
699
|
-
overageReason: z$1.ZodNullable<z$1.ZodString>;
|
|
700
|
-
overageStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
701
|
-
allowed: "allowed";
|
|
702
|
-
rejected: "rejected";
|
|
703
|
-
unavailable: "unavailable";
|
|
704
|
-
warning: "warning";
|
|
705
|
-
}>>;
|
|
706
|
-
providerId: z$1.ZodString;
|
|
707
|
-
reachedReason: z$1.ZodNullable<z$1.ZodString>;
|
|
708
613
|
status: z$1.ZodEnum<{
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
614
|
+
active: "active";
|
|
615
|
+
budgetLimited: "budgetLimited";
|
|
616
|
+
complete: "complete";
|
|
617
|
+
paused: "paused";
|
|
713
618
|
}>;
|
|
714
|
-
windows: z$1.ZodArray<z$1.ZodObject<{
|
|
715
|
-
label: z$1.ZodNullable<z$1.ZodString>;
|
|
716
|
-
providerKey: z$1.ZodNullable<z$1.ZodString>;
|
|
717
|
-
resetsAtMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
718
|
-
status: z$1.ZodEnum<{
|
|
719
|
-
allowed: "allowed";
|
|
720
|
-
blocked: "blocked";
|
|
721
|
-
unknown: "unknown";
|
|
722
|
-
warning: "warning";
|
|
723
|
-
}>;
|
|
724
|
-
}, z$1.core.$strip>>;
|
|
725
|
-
}, z$1.core.$strip>;
|
|
726
|
-
type ProviderRateLimitState = z$1.infer<typeof providerRateLimitStateSchema>;
|
|
727
|
-
declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
728
619
|
threadId: z$1.ZodString;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
type: z$1.ZodLiteral<"thread/identity">;
|
|
734
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
735
|
-
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
736
|
-
providerThreadId: z$1.ZodString;
|
|
737
|
-
threadId: z$1.ZodString;
|
|
738
|
-
type: z$1.ZodLiteral<"turn/started">;
|
|
739
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
740
|
-
error: z$1.ZodOptional<z$1.ZodObject<{
|
|
741
|
-
message: z$1.ZodString;
|
|
742
|
-
}, z$1.core.$strip>>;
|
|
743
|
-
providerCheckpointId: z$1.ZodOptional<z$1.ZodString>;
|
|
744
|
-
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
745
|
-
status: z$1.ZodEnum<{
|
|
746
|
-
completed: "completed";
|
|
747
|
-
failed: "failed";
|
|
748
|
-
interrupted: "interrupted";
|
|
749
|
-
}>;
|
|
750
|
-
threadId: z$1.ZodString;
|
|
751
|
-
type: z$1.ZodLiteral<"turn/completed">;
|
|
752
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
753
|
-
clientRequestId: z$1.ZodString;
|
|
754
|
-
providerThreadId: z$1.ZodString;
|
|
755
|
-
scope: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
756
|
-
kind: z$1.ZodLiteral<"thread">;
|
|
757
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
758
|
-
kind: z$1.ZodLiteral<"turn">;
|
|
759
|
-
turnId: z$1.ZodString;
|
|
760
|
-
}, z$1.core.$strip>], "kind">;
|
|
761
|
-
threadId: z$1.ZodString;
|
|
762
|
-
type: z$1.ZodLiteral<"turn/input/accepted">;
|
|
763
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
764
|
-
providerThreadId: z$1.ZodString;
|
|
765
|
-
threadId: z$1.ZodString;
|
|
766
|
-
threadName: z$1.ZodString;
|
|
767
|
-
type: z$1.ZodLiteral<"thread/name/updated">;
|
|
768
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
769
|
-
providerThreadId: z$1.ZodString;
|
|
770
|
-
threadId: z$1.ZodString;
|
|
771
|
-
type: z$1.ZodLiteral<"thread/compacted">;
|
|
772
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
773
|
-
providerThreadId: z$1.ZodString;
|
|
774
|
-
threadId: z$1.ZodString;
|
|
775
|
-
type: z$1.ZodLiteral<"thread/context/cleared">;
|
|
776
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
777
|
-
objective: z$1.ZodString;
|
|
778
|
-
providerThreadId: z$1.ZodString;
|
|
779
|
-
status: z$1.ZodEnum<{
|
|
780
|
-
active: "active";
|
|
781
|
-
budgetLimited: "budgetLimited";
|
|
782
|
-
complete: "complete";
|
|
783
|
-
paused: "paused";
|
|
784
|
-
}>;
|
|
785
|
-
threadId: z$1.ZodString;
|
|
786
|
-
timeUsedSeconds: z$1.ZodNumber;
|
|
787
|
-
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
788
|
-
tokensUsed: z$1.ZodNumber;
|
|
789
|
-
type: z$1.ZodLiteral<"thread/goal/updated">;
|
|
620
|
+
timeUsedSeconds: z$1.ZodNumber;
|
|
621
|
+
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
622
|
+
tokensUsed: z$1.ZodNumber;
|
|
623
|
+
type: z$1.ZodLiteral<"thread/goal/updated">;
|
|
790
624
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
791
625
|
providerThreadId: z$1.ZodString;
|
|
792
626
|
threadId: z$1.ZodString;
|
|
@@ -1047,6 +881,66 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1047
881
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1048
882
|
}, z$1.core.$strip>>;
|
|
1049
883
|
type: z$1.ZodLiteral<"imageView">;
|
|
884
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
885
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
886
|
+
id: z$1.ZodString;
|
|
887
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
888
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
889
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
890
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
891
|
+
glyph: z$1.ZodString;
|
|
892
|
+
hint: z$1.ZodString;
|
|
893
|
+
label: z$1.ZodString;
|
|
894
|
+
tone: z$1.ZodEnum<{
|
|
895
|
+
destructive: "destructive";
|
|
896
|
+
neutral: "neutral";
|
|
897
|
+
}>;
|
|
898
|
+
}, z$1.core.$strip>>;
|
|
899
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
900
|
+
icon: z$1.ZodObject<{
|
|
901
|
+
glyph: z$1.ZodString;
|
|
902
|
+
}, z$1.core.$strip>;
|
|
903
|
+
label: z$1.ZodObject<{
|
|
904
|
+
completed: z$1.ZodString;
|
|
905
|
+
pending: z$1.ZodString;
|
|
906
|
+
}, z$1.core.$strip>;
|
|
907
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
908
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
909
|
+
dark: z$1.ZodString;
|
|
910
|
+
light: z$1.ZodString;
|
|
911
|
+
}, z$1.core.$strip>>;
|
|
912
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
913
|
+
}, z$1.core.$strip>>;
|
|
914
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
915
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
916
|
+
status: z$1.ZodEnum<{
|
|
917
|
+
completed: "completed";
|
|
918
|
+
failed: "failed";
|
|
919
|
+
interrupted: "interrupted";
|
|
920
|
+
pending: "pending";
|
|
921
|
+
}>;
|
|
922
|
+
transparentBackground: z$1.ZodBoolean;
|
|
923
|
+
truncation: z$1.ZodOptional<z$1.ZodObject<{
|
|
924
|
+
aggregatedOutput: z$1.ZodOptional<z$1.ZodObject<{
|
|
925
|
+
originalLength: z$1.ZodNumber;
|
|
926
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
927
|
+
retainedTailLength: z$1.ZodNumber;
|
|
928
|
+
truncatedAt: z$1.ZodNumber;
|
|
929
|
+
}, z$1.core.$strip>>;
|
|
930
|
+
result: z$1.ZodOptional<z$1.ZodObject<{
|
|
931
|
+
originalLength: z$1.ZodNumber;
|
|
932
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
933
|
+
retainedTailLength: z$1.ZodNumber;
|
|
934
|
+
truncatedAt: z$1.ZodNumber;
|
|
935
|
+
}, z$1.core.$strip>>;
|
|
936
|
+
resultText: z$1.ZodOptional<z$1.ZodObject<{
|
|
937
|
+
originalLength: z$1.ZodNumber;
|
|
938
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
939
|
+
retainedTailLength: z$1.ZodNumber;
|
|
940
|
+
truncatedAt: z$1.ZodNumber;
|
|
941
|
+
}, z$1.core.$strip>>;
|
|
942
|
+
}, z$1.core.$strip>>;
|
|
943
|
+
type: z$1.ZodLiteral<"imageGeneration">;
|
|
1050
944
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1051
945
|
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1052
946
|
id: z$1.ZodString;
|
|
@@ -1752,6 +1646,66 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1752
1646
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1753
1647
|
}, z$1.core.$strip>>;
|
|
1754
1648
|
type: z$1.ZodLiteral<"imageView">;
|
|
1649
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1650
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
1651
|
+
id: z$1.ZodString;
|
|
1652
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1653
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
1654
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1655
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
1656
|
+
glyph: z$1.ZodString;
|
|
1657
|
+
hint: z$1.ZodString;
|
|
1658
|
+
label: z$1.ZodString;
|
|
1659
|
+
tone: z$1.ZodEnum<{
|
|
1660
|
+
destructive: "destructive";
|
|
1661
|
+
neutral: "neutral";
|
|
1662
|
+
}>;
|
|
1663
|
+
}, z$1.core.$strip>>;
|
|
1664
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1665
|
+
icon: z$1.ZodObject<{
|
|
1666
|
+
glyph: z$1.ZodString;
|
|
1667
|
+
}, z$1.core.$strip>;
|
|
1668
|
+
label: z$1.ZodObject<{
|
|
1669
|
+
completed: z$1.ZodString;
|
|
1670
|
+
pending: z$1.ZodString;
|
|
1671
|
+
}, z$1.core.$strip>;
|
|
1672
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1673
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1674
|
+
dark: z$1.ZodString;
|
|
1675
|
+
light: z$1.ZodString;
|
|
1676
|
+
}, z$1.core.$strip>>;
|
|
1677
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1678
|
+
}, z$1.core.$strip>>;
|
|
1679
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
1680
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
1681
|
+
status: z$1.ZodEnum<{
|
|
1682
|
+
completed: "completed";
|
|
1683
|
+
failed: "failed";
|
|
1684
|
+
interrupted: "interrupted";
|
|
1685
|
+
pending: "pending";
|
|
1686
|
+
}>;
|
|
1687
|
+
transparentBackground: z$1.ZodBoolean;
|
|
1688
|
+
truncation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1689
|
+
aggregatedOutput: z$1.ZodOptional<z$1.ZodObject<{
|
|
1690
|
+
originalLength: z$1.ZodNumber;
|
|
1691
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1692
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1693
|
+
truncatedAt: z$1.ZodNumber;
|
|
1694
|
+
}, z$1.core.$strip>>;
|
|
1695
|
+
result: z$1.ZodOptional<z$1.ZodObject<{
|
|
1696
|
+
originalLength: z$1.ZodNumber;
|
|
1697
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1698
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1699
|
+
truncatedAt: z$1.ZodNumber;
|
|
1700
|
+
}, z$1.core.$strip>>;
|
|
1701
|
+
resultText: z$1.ZodOptional<z$1.ZodObject<{
|
|
1702
|
+
originalLength: z$1.ZodNumber;
|
|
1703
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1704
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1705
|
+
truncatedAt: z$1.ZodNumber;
|
|
1706
|
+
}, z$1.core.$strip>>;
|
|
1707
|
+
}, z$1.core.$strip>>;
|
|
1708
|
+
type: z$1.ZodLiteral<"imageGeneration">;
|
|
1755
1709
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1756
1710
|
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1757
1711
|
id: z$1.ZodString;
|
|
@@ -2994,166 +2948,493 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
2994
2948
|
reason: z$1.ZodString;
|
|
2995
2949
|
requestId: z$1.ZodString;
|
|
2996
2950
|
threadId: z$1.ZodString;
|
|
2997
|
-
type: z$1.ZodLiteral<"client/turn/rejected">;
|
|
2951
|
+
type: z$1.ZodLiteral<"client/turn/rejected">;
|
|
2952
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2953
|
+
direction: z$1.ZodLiteral<"outbound">;
|
|
2954
|
+
initiator: z$1.ZodEnum<{
|
|
2955
|
+
agent: "agent";
|
|
2956
|
+
system: "system";
|
|
2957
|
+
user: "user";
|
|
2958
|
+
}>;
|
|
2959
|
+
request: z$1.ZodObject<{
|
|
2960
|
+
method: z$1.ZodEnum<{
|
|
2961
|
+
"thread/start": "thread/start";
|
|
2962
|
+
"turn/start": "turn/start";
|
|
2963
|
+
}>;
|
|
2964
|
+
params: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2965
|
+
}, z$1.core.$strip>;
|
|
2966
|
+
source: z$1.ZodEnum<{
|
|
2967
|
+
spawn: "spawn";
|
|
2968
|
+
tell: "tell";
|
|
2969
|
+
}>;
|
|
2970
|
+
threadId: z$1.ZodString;
|
|
2971
|
+
type: z$1.ZodLiteral<"client/turn/start">;
|
|
2972
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2973
|
+
code: z$1.ZodOptional<z$1.ZodString>;
|
|
2974
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
2975
|
+
message: z$1.ZodString;
|
|
2976
|
+
reconnectAttempt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2977
|
+
reconnectTotal: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2978
|
+
threadId: z$1.ZodString;
|
|
2979
|
+
type: z$1.ZodLiteral<"system/error">;
|
|
2980
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2981
|
+
text: z$1.ZodString;
|
|
2982
|
+
threadId: z$1.ZodString;
|
|
2983
|
+
toolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
2984
|
+
turnId: z$1.ZodOptional<z$1.ZodString>;
|
|
2985
|
+
type: z$1.ZodLiteral<"system/manager/user_message">;
|
|
2986
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2987
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
2988
|
+
reason: z$1.ZodEnum<{
|
|
2989
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
2990
|
+
"manual-stop": "manual-stop";
|
|
2991
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
2992
|
+
}>;
|
|
2993
|
+
threadId: z$1.ZodString;
|
|
2994
|
+
type: z$1.ZodLiteral<"system/thread/interrupted">;
|
|
2995
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2996
|
+
message: z$1.ZodString;
|
|
2997
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
2998
|
+
operation: z$1.ZodString;
|
|
2999
|
+
operationId: z$1.ZodString;
|
|
3000
|
+
status: z$1.ZodString;
|
|
3001
|
+
threadId: z$1.ZodString;
|
|
3002
|
+
type: z$1.ZodLiteral<"system/operation">;
|
|
3003
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3004
|
+
interaction: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
3005
|
+
id: z$1.ZodString;
|
|
3006
|
+
origin: z$1.ZodObject<{
|
|
3007
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3008
|
+
providerId: z$1.ZodString;
|
|
3009
|
+
providerRequestId: z$1.ZodString;
|
|
3010
|
+
}, z$1.core.$strip>;
|
|
3011
|
+
payload: z$1.ZodObject<{
|
|
3012
|
+
kind: z$1.ZodLiteral<"approval">;
|
|
3013
|
+
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
3014
|
+
subject: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3015
|
+
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3016
|
+
command: z$1.ZodString;
|
|
3017
|
+
name: z$1.ZodString;
|
|
3018
|
+
path: z$1.ZodString;
|
|
3019
|
+
type: z$1.ZodLiteral<"read">;
|
|
3020
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3021
|
+
command: z$1.ZodString;
|
|
3022
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3023
|
+
type: z$1.ZodLiteral<"listFiles">;
|
|
3024
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3025
|
+
command: z$1.ZodString;
|
|
3026
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3027
|
+
query: z$1.ZodNullable<z$1.ZodString>;
|
|
3028
|
+
type: z$1.ZodLiteral<"search">;
|
|
3029
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3030
|
+
command: z$1.ZodString;
|
|
3031
|
+
type: z$1.ZodLiteral<"unknown">;
|
|
3032
|
+
}, z$1.core.$strip>], "type">>;
|
|
3033
|
+
command: z$1.ZodString;
|
|
3034
|
+
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
3035
|
+
itemId: z$1.ZodString;
|
|
3036
|
+
kind: z$1.ZodLiteral<"command">;
|
|
3037
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3038
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3039
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3040
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3041
|
+
}, z$1.core.$strip>>;
|
|
3042
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3043
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3044
|
+
}, z$1.core.$strip>>;
|
|
3045
|
+
}, z$1.core.$strict>>;
|
|
3046
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3047
|
+
itemId: z$1.ZodString;
|
|
3048
|
+
kind: z$1.ZodLiteral<"file_change">;
|
|
3049
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3050
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3051
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3052
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3053
|
+
}, z$1.core.$strip>>;
|
|
3054
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3055
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3056
|
+
}, z$1.core.$strip>>;
|
|
3057
|
+
}, z$1.core.$strict>>;
|
|
3058
|
+
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
3059
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3060
|
+
itemId: z$1.ZodString;
|
|
3061
|
+
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3062
|
+
permissions: z$1.ZodObject<{
|
|
3063
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3064
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3065
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3066
|
+
}, z$1.core.$strip>>;
|
|
3067
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3068
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3069
|
+
}, z$1.core.$strip>>;
|
|
3070
|
+
}, z$1.core.$strict>;
|
|
3071
|
+
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3072
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3073
|
+
itemId: z$1.ZodString;
|
|
3074
|
+
kind: z$1.ZodLiteral<"plan">;
|
|
3075
|
+
plan: z$1.ZodString;
|
|
3076
|
+
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
3077
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3078
|
+
itemId: z$1.ZodString;
|
|
3079
|
+
kind: z$1.ZodLiteral<"tool_use">;
|
|
3080
|
+
presentation: z$1.ZodObject<{
|
|
3081
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
3082
|
+
glyph: z$1.ZodString;
|
|
3083
|
+
hint: z$1.ZodString;
|
|
3084
|
+
label: z$1.ZodString;
|
|
3085
|
+
tone: z$1.ZodEnum<{
|
|
3086
|
+
destructive: "destructive";
|
|
3087
|
+
neutral: "neutral";
|
|
3088
|
+
}>;
|
|
3089
|
+
}, z$1.core.$strip>>;
|
|
3090
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
3091
|
+
icon: z$1.ZodObject<{
|
|
3092
|
+
glyph: z$1.ZodString;
|
|
3093
|
+
}, z$1.core.$strip>;
|
|
3094
|
+
label: z$1.ZodObject<{
|
|
3095
|
+
completed: z$1.ZodString;
|
|
3096
|
+
pending: z$1.ZodString;
|
|
3097
|
+
}, z$1.core.$strip>;
|
|
3098
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3099
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
3100
|
+
dark: z$1.ZodString;
|
|
3101
|
+
light: z$1.ZodString;
|
|
3102
|
+
}, z$1.core.$strip>>;
|
|
3103
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
3104
|
+
}, z$1.core.$strip>;
|
|
3105
|
+
tool: z$1.ZodString;
|
|
3106
|
+
}, z$1.core.$strip>], "kind">;
|
|
3107
|
+
}, z$1.core.$strip>;
|
|
3108
|
+
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3109
|
+
decision: z$1.ZodLiteral<"allow_once">;
|
|
3110
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3111
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3112
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3113
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3114
|
+
}, z$1.core.$strip>>;
|
|
3115
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3116
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3117
|
+
}, z$1.core.$strip>>;
|
|
3118
|
+
}, z$1.core.$strict>>;
|
|
3119
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3120
|
+
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
3121
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3122
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3123
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3124
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3125
|
+
}, z$1.core.$strip>>;
|
|
3126
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3127
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3128
|
+
}, z$1.core.$strip>>;
|
|
3129
|
+
}, z$1.core.$strict>>;
|
|
3130
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3131
|
+
decision: z$1.ZodLiteral<"deny">;
|
|
3132
|
+
}, z$1.core.$strip>], "decision">>;
|
|
3133
|
+
status: z$1.ZodEnum<{
|
|
3134
|
+
interrupted: "interrupted";
|
|
3135
|
+
pending: "pending";
|
|
3136
|
+
resolved: "resolved";
|
|
3137
|
+
resolving: "resolving";
|
|
3138
|
+
}>;
|
|
3139
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3140
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3141
|
+
id: z$1.ZodString;
|
|
3142
|
+
origin: z$1.ZodObject<{
|
|
3143
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3144
|
+
providerId: z$1.ZodString;
|
|
3145
|
+
providerRequestId: z$1.ZodString;
|
|
3146
|
+
}, z$1.core.$strip>;
|
|
3147
|
+
payload: z$1.ZodObject<{
|
|
3148
|
+
kind: z$1.ZodLiteral<"user_question">;
|
|
3149
|
+
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
3150
|
+
allowFreeText: z$1.ZodBoolean;
|
|
3151
|
+
id: z$1.ZodString;
|
|
3152
|
+
multiSelect: z$1.ZodBoolean;
|
|
3153
|
+
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3154
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
3155
|
+
label: z$1.ZodString;
|
|
3156
|
+
value: z$1.ZodString;
|
|
3157
|
+
}, z$1.core.$strip>>>;
|
|
3158
|
+
prompt: z$1.ZodString;
|
|
3159
|
+
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3160
|
+
}, z$1.core.$strip>>;
|
|
3161
|
+
}, z$1.core.$strip>;
|
|
3162
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3163
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3164
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3165
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3166
|
+
}, z$1.core.$strip>>;
|
|
3167
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3168
|
+
}, z$1.core.$strip>>;
|
|
3169
|
+
status: z$1.ZodEnum<{
|
|
3170
|
+
interrupted: "interrupted";
|
|
3171
|
+
pending: "pending";
|
|
3172
|
+
resolved: "resolved";
|
|
3173
|
+
resolving: "resolving";
|
|
3174
|
+
}>;
|
|
3175
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3176
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3177
|
+
id: z$1.ZodString;
|
|
3178
|
+
origin: z$1.ZodObject<{
|
|
3179
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3180
|
+
pluginId: z$1.ZodString;
|
|
3181
|
+
rendererId: z$1.ZodString;
|
|
3182
|
+
}, z$1.core.$strip>;
|
|
3183
|
+
payload: z$1.ZodObject<{
|
|
3184
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3185
|
+
title: z$1.ZodString;
|
|
3186
|
+
}, z$1.core.$strip>;
|
|
3187
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3188
|
+
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3189
|
+
}, z$1.core.$strip>>;
|
|
3190
|
+
status: z$1.ZodEnum<{
|
|
3191
|
+
interrupted: "interrupted";
|
|
3192
|
+
pending: "pending";
|
|
3193
|
+
resolved: "resolved";
|
|
3194
|
+
resolving: "resolving";
|
|
3195
|
+
}>;
|
|
3196
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3197
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3198
|
+
id: z$1.ZodString;
|
|
3199
|
+
origin: z$1.ZodObject<{
|
|
3200
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3201
|
+
providerId: z$1.ZodString;
|
|
3202
|
+
providerRequestId: z$1.ZodString;
|
|
3203
|
+
}, z$1.core.$strip>;
|
|
3204
|
+
payload: z$1.ZodObject<{
|
|
3205
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
3206
|
+
title: z$1.ZodString;
|
|
3207
|
+
}, z$1.core.$strip>;
|
|
3208
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3209
|
+
kind: z$1.ZodLiteral<"request_answer">;
|
|
3210
|
+
}, z$1.core.$strip>>;
|
|
3211
|
+
status: z$1.ZodEnum<{
|
|
3212
|
+
interrupted: "interrupted";
|
|
3213
|
+
pending: "pending";
|
|
3214
|
+
resolved: "resolved";
|
|
3215
|
+
resolving: "resolving";
|
|
3216
|
+
}>;
|
|
3217
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3218
|
+
}, z$1.core.$strip>]>;
|
|
3219
|
+
threadId: z$1.ZodString;
|
|
3220
|
+
type: z$1.ZodLiteral<"system/interaction/lifecycle">;
|
|
3221
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3222
|
+
interactionId: z$1.ZodString;
|
|
3223
|
+
providerId: z$1.ZodString;
|
|
3224
|
+
providerRequestId: z$1.ZodString;
|
|
3225
|
+
resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3226
|
+
decision: z$1.ZodLiteral<"allow_once">;
|
|
3227
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3228
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3229
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3230
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3231
|
+
}, z$1.core.$strip>>;
|
|
3232
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3233
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3234
|
+
}, z$1.core.$strip>>;
|
|
3235
|
+
}, z$1.core.$strict>>;
|
|
3236
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3237
|
+
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
3238
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3239
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3240
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3241
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3242
|
+
}, z$1.core.$strip>>;
|
|
3243
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3244
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3245
|
+
}, z$1.core.$strip>>;
|
|
3246
|
+
}, z$1.core.$strict>>;
|
|
3247
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3248
|
+
decision: z$1.ZodLiteral<"deny">;
|
|
3249
|
+
}, z$1.core.$strip>], "decision">>>;
|
|
3250
|
+
status: z$1.ZodEnum<{
|
|
3251
|
+
interrupted: "interrupted";
|
|
3252
|
+
pending: "pending";
|
|
3253
|
+
resolved: "resolved";
|
|
3254
|
+
resolving: "resolving";
|
|
3255
|
+
}>;
|
|
3256
|
+
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
3257
|
+
subject: z$1.ZodObject<{
|
|
3258
|
+
itemId: z$1.ZodString;
|
|
3259
|
+
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3260
|
+
permissions: z$1.ZodObject<{
|
|
3261
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3262
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3263
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3264
|
+
}, z$1.core.$strip>>;
|
|
3265
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3266
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3267
|
+
}, z$1.core.$strip>>;
|
|
3268
|
+
}, z$1.core.$strict>;
|
|
3269
|
+
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3270
|
+
}, z$1.core.$strip>;
|
|
3271
|
+
threadId: z$1.ZodString;
|
|
3272
|
+
type: z$1.ZodLiteral<"system/permissionGrant/lifecycle">;
|
|
3273
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3274
|
+
interactionId: z$1.ZodString;
|
|
3275
|
+
payload: z$1.ZodObject<{
|
|
3276
|
+
kind: z$1.ZodLiteral<"user_question">;
|
|
3277
|
+
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
3278
|
+
allowFreeText: z$1.ZodBoolean;
|
|
3279
|
+
id: z$1.ZodString;
|
|
3280
|
+
multiSelect: z$1.ZodBoolean;
|
|
3281
|
+
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3282
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
3283
|
+
label: z$1.ZodString;
|
|
3284
|
+
value: z$1.ZodString;
|
|
3285
|
+
}, z$1.core.$strip>>>;
|
|
3286
|
+
prompt: z$1.ZodString;
|
|
3287
|
+
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3288
|
+
}, z$1.core.$strip>>;
|
|
3289
|
+
}, z$1.core.$strip>;
|
|
3290
|
+
providerId: z$1.ZodString;
|
|
3291
|
+
providerRequestId: z$1.ZodString;
|
|
3292
|
+
resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
|
|
3293
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3294
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3295
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3296
|
+
}, z$1.core.$strip>>;
|
|
3297
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3298
|
+
}, z$1.core.$strip>>>;
|
|
3299
|
+
status: z$1.ZodEnum<{
|
|
3300
|
+
interrupted: "interrupted";
|
|
3301
|
+
pending: "pending";
|
|
3302
|
+
resolved: "resolved";
|
|
3303
|
+
resolving: "resolving";
|
|
3304
|
+
}>;
|
|
3305
|
+
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
3306
|
+
threadId: z$1.ZodString;
|
|
3307
|
+
type: z$1.ZodLiteral<"system/userQuestion/lifecycle">;
|
|
2998
3308
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3309
|
+
entries: z$1.ZodArray<z$1.ZodObject<{
|
|
3310
|
+
key: z$1.ZodString;
|
|
3311
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3312
|
+
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3313
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3314
|
+
completed: "completed";
|
|
3315
|
+
failed: "failed";
|
|
3316
|
+
started: "started";
|
|
3317
|
+
}>>;
|
|
3318
|
+
text: z$1.ZodString;
|
|
3319
|
+
type: z$1.ZodEnum<{
|
|
3320
|
+
output: "output";
|
|
3321
|
+
step: "step";
|
|
3009
3322
|
}>;
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3323
|
+
}, z$1.core.$strip>>;
|
|
3324
|
+
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
3325
|
+
provisioningId: z$1.ZodString;
|
|
3326
|
+
status: z$1.ZodEnum<{
|
|
3327
|
+
active: "active";
|
|
3328
|
+
cancelled: "cancelled";
|
|
3329
|
+
completed: "completed";
|
|
3330
|
+
failed: "failed";
|
|
3015
3331
|
}>;
|
|
3016
3332
|
threadId: z$1.ZodString;
|
|
3017
|
-
type: z$1.ZodLiteral<"
|
|
3333
|
+
type: z$1.ZodLiteral<"system/thread-provisioning">;
|
|
3018
3334
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3335
|
+
activeTurnId: z$1.ZodString;
|
|
3336
|
+
activeTurnStartedAt: z$1.ZodNumber;
|
|
3337
|
+
elapsedMs: z$1.ZodNumber;
|
|
3338
|
+
firedAt: z$1.ZodNumber;
|
|
3339
|
+
lastActivityEventAt: z$1.ZodNumber;
|
|
3340
|
+
lastActivityEventSequence: z$1.ZodNumber;
|
|
3341
|
+
lastActivityEventType: z$1.ZodString;
|
|
3342
|
+
providerId: z$1.ZodString;
|
|
3343
|
+
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
3344
|
+
reason: z$1.ZodLiteral<"provider-turn-idle">;
|
|
3024
3345
|
threadId: z$1.ZodString;
|
|
3025
|
-
|
|
3346
|
+
thresholdMs: z$1.ZodNumber;
|
|
3347
|
+
type: z$1.ZodLiteral<"system/provider-turn-watchdog">;
|
|
3348
|
+
}, z$1.core.$strip>], "type">, z$1.ZodObject<{
|
|
3349
|
+
scope: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3350
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
3351
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3352
|
+
kind: z$1.ZodLiteral<"turn">;
|
|
3353
|
+
turnId: z$1.ZodString;
|
|
3354
|
+
}, z$1.core.$strip>], "kind">;
|
|
3355
|
+
}, z$1.core.$strip>>]>>;
|
|
3356
|
+
type ThreadEvent = z$1.infer<typeof threadEventSchema>;
|
|
3357
|
+
type ThreadEventType = ThreadEvent["type"];
|
|
3358
|
+
|
|
3359
|
+
declare const pendingInteractionResolutionSchema: z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3360
|
+
decision: z$1.ZodLiteral<"allow_once">;
|
|
3361
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3362
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3363
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3364
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3365
|
+
}, z$1.core.$strip>>;
|
|
3366
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3367
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3368
|
+
}, z$1.core.$strip>>;
|
|
3369
|
+
}, z$1.core.$strict>>;
|
|
3026
3370
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3371
|
+
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
3372
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3373
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3374
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3375
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3376
|
+
}, z$1.core.$strip>>;
|
|
3377
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3378
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3379
|
+
}, z$1.core.$strip>>;
|
|
3380
|
+
}, z$1.core.$strict>>;
|
|
3032
3381
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
type: z$1.ZodLiteral<"system/thread/interrupted">;
|
|
3382
|
+
decision: z$1.ZodLiteral<"deny">;
|
|
3383
|
+
}, z$1.core.$strip>], "decision">, z$1.ZodObject<{
|
|
3384
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3385
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3386
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3387
|
+
}, z$1.core.$strip>>;
|
|
3388
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3041
3389
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3042
|
-
|
|
3043
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
3044
|
-
operation: z$1.ZodString;
|
|
3045
|
-
operationId: z$1.ZodString;
|
|
3046
|
-
status: z$1.ZodString;
|
|
3047
|
-
threadId: z$1.ZodString;
|
|
3048
|
-
type: z$1.ZodLiteral<"system/operation">;
|
|
3390
|
+
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3049
3391
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
type: z$1.ZodLiteral<"search">;
|
|
3075
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3076
|
-
command: z$1.ZodString;
|
|
3077
|
-
type: z$1.ZodLiteral<"unknown">;
|
|
3078
|
-
}, z$1.core.$strip>], "type">>;
|
|
3392
|
+
kind: z$1.ZodLiteral<"request_answer">;
|
|
3393
|
+
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3394
|
+
}, z$1.core.$strip>]>;
|
|
3395
|
+
type PendingInteractionResolution = z$1.infer<typeof pendingInteractionResolutionSchema>;
|
|
3396
|
+
declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
3397
|
+
createdAt: z$1.ZodNumber;
|
|
3398
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3399
|
+
id: z$1.ZodString;
|
|
3400
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3401
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3402
|
+
providerId: z$1.ZodString;
|
|
3403
|
+
providerRequestId: z$1.ZodString;
|
|
3404
|
+
providerThreadId: z$1.ZodString;
|
|
3405
|
+
}, z$1.core.$strip>>;
|
|
3406
|
+
payload: z$1.ZodObject<{
|
|
3407
|
+
availableDecisions: z$1.ZodArray<z$1.ZodEnum<{
|
|
3408
|
+
allow_for_session: "allow_for_session";
|
|
3409
|
+
allow_once: "allow_once";
|
|
3410
|
+
deny: "deny";
|
|
3411
|
+
}>>;
|
|
3412
|
+
kind: z$1.ZodLiteral<"approval">;
|
|
3413
|
+
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
3414
|
+
subject: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3415
|
+
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3079
3416
|
command: z$1.ZodString;
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3084
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3085
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
3086
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
3087
|
-
}, z$1.core.$strip>>;
|
|
3088
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3089
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3090
|
-
}, z$1.core.$strip>>;
|
|
3091
|
-
}, z$1.core.$strict>>;
|
|
3092
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3093
|
-
itemId: z$1.ZodString;
|
|
3094
|
-
kind: z$1.ZodLiteral<"file_change">;
|
|
3095
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3096
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3097
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
3098
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
3099
|
-
}, z$1.core.$strip>>;
|
|
3100
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3101
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3102
|
-
}, z$1.core.$strip>>;
|
|
3103
|
-
}, z$1.core.$strict>>;
|
|
3104
|
-
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
3105
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3106
|
-
itemId: z$1.ZodString;
|
|
3107
|
-
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3108
|
-
permissions: z$1.ZodObject<{
|
|
3109
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3110
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
3111
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
3112
|
-
}, z$1.core.$strip>>;
|
|
3113
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3114
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3115
|
-
}, z$1.core.$strip>>;
|
|
3116
|
-
}, z$1.core.$strict>;
|
|
3117
|
-
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3118
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3119
|
-
itemId: z$1.ZodString;
|
|
3120
|
-
kind: z$1.ZodLiteral<"plan">;
|
|
3121
|
-
plan: z$1.ZodString;
|
|
3122
|
-
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
3417
|
+
name: z$1.ZodString;
|
|
3418
|
+
path: z$1.ZodString;
|
|
3419
|
+
type: z$1.ZodLiteral<"read">;
|
|
3123
3420
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
completed: z$1.ZodString;
|
|
3142
|
-
pending: z$1.ZodString;
|
|
3143
|
-
}, z$1.core.$strip>;
|
|
3144
|
-
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3145
|
-
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
3146
|
-
dark: z$1.ZodString;
|
|
3147
|
-
light: z$1.ZodString;
|
|
3148
|
-
}, z$1.core.$strip>>;
|
|
3149
|
-
title: z$1.ZodOptional<z$1.ZodString>;
|
|
3150
|
-
}, z$1.core.$strip>;
|
|
3151
|
-
tool: z$1.ZodString;
|
|
3152
|
-
}, z$1.core.$strip>], "kind">;
|
|
3153
|
-
}, z$1.core.$strip>;
|
|
3154
|
-
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3155
|
-
decision: z$1.ZodLiteral<"allow_once">;
|
|
3156
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3421
|
+
command: z$1.ZodString;
|
|
3422
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3423
|
+
type: z$1.ZodLiteral<"listFiles">;
|
|
3424
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3425
|
+
command: z$1.ZodString;
|
|
3426
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3427
|
+
query: z$1.ZodNullable<z$1.ZodString>;
|
|
3428
|
+
type: z$1.ZodLiteral<"search">;
|
|
3429
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3430
|
+
command: z$1.ZodString;
|
|
3431
|
+
type: z$1.ZodLiteral<"unknown">;
|
|
3432
|
+
}, z$1.core.$strip>], "type">>;
|
|
3433
|
+
command: z$1.ZodString;
|
|
3434
|
+
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
3435
|
+
itemId: z$1.ZodString;
|
|
3436
|
+
kind: z$1.ZodLiteral<"command">;
|
|
3437
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3157
3438
|
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3158
3439
|
read: z$1.ZodArray<z$1.ZodString>;
|
|
3159
3440
|
write: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -3163,8 +3444,9 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3163
3444
|
}, z$1.core.$strip>>;
|
|
3164
3445
|
}, z$1.core.$strict>>;
|
|
3165
3446
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3166
|
-
|
|
3167
|
-
|
|
3447
|
+
itemId: z$1.ZodString;
|
|
3448
|
+
kind: z$1.ZodLiteral<"file_change">;
|
|
3449
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3168
3450
|
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3169
3451
|
read: z$1.ZodArray<z$1.ZodString>;
|
|
3170
3452
|
write: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -3173,102 +3455,60 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3173
3455
|
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3174
3456
|
}, z$1.core.$strip>>;
|
|
3175
3457
|
}, z$1.core.$strict>>;
|
|
3458
|
+
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
3176
3459
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3460
|
+
itemId: z$1.ZodString;
|
|
3461
|
+
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3462
|
+
permissions: z$1.ZodObject<{
|
|
3463
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3464
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3465
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3466
|
+
}, z$1.core.$strip>>;
|
|
3467
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3468
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3469
|
+
}, z$1.core.$strip>>;
|
|
3470
|
+
}, z$1.core.$strict>;
|
|
3471
|
+
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3472
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3473
|
+
itemId: z$1.ZodString;
|
|
3474
|
+
kind: z$1.ZodLiteral<"plan">;
|
|
3475
|
+
plan: z$1.ZodString;
|
|
3476
|
+
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
3477
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3478
|
+
itemId: z$1.ZodString;
|
|
3479
|
+
kind: z$1.ZodLiteral<"tool_use">;
|
|
3480
|
+
presentation: z$1.ZodObject<{
|
|
3481
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
3482
|
+
glyph: z$1.ZodString;
|
|
3483
|
+
hint: z$1.ZodString;
|
|
3201
3484
|
label: z$1.ZodString;
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
3226
|
-
pluginId: z$1.ZodString;
|
|
3227
|
-
rendererId: z$1.ZodString;
|
|
3228
|
-
}, z$1.core.$strip>;
|
|
3229
|
-
payload: z$1.ZodObject<{
|
|
3230
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
3231
|
-
title: z$1.ZodString;
|
|
3232
|
-
}, z$1.core.$strip>;
|
|
3233
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3234
|
-
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3235
|
-
}, z$1.core.$strip>>;
|
|
3236
|
-
status: z$1.ZodEnum<{
|
|
3237
|
-
interrupted: "interrupted";
|
|
3238
|
-
pending: "pending";
|
|
3239
|
-
resolved: "resolved";
|
|
3240
|
-
resolving: "resolving";
|
|
3241
|
-
}>;
|
|
3242
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3243
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3244
|
-
id: z$1.ZodString;
|
|
3245
|
-
origin: z$1.ZodObject<{
|
|
3246
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
3247
|
-
providerId: z$1.ZodString;
|
|
3248
|
-
providerRequestId: z$1.ZodString;
|
|
3249
|
-
}, z$1.core.$strip>;
|
|
3250
|
-
payload: z$1.ZodObject<{
|
|
3251
|
-
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
3252
|
-
title: z$1.ZodString;
|
|
3253
|
-
}, z$1.core.$strip>;
|
|
3254
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3255
|
-
kind: z$1.ZodLiteral<"request_answer">;
|
|
3256
|
-
}, z$1.core.$strip>>;
|
|
3257
|
-
status: z$1.ZodEnum<{
|
|
3258
|
-
interrupted: "interrupted";
|
|
3259
|
-
pending: "pending";
|
|
3260
|
-
resolved: "resolved";
|
|
3261
|
-
resolving: "resolving";
|
|
3262
|
-
}>;
|
|
3263
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3264
|
-
}, z$1.core.$strip>]>;
|
|
3265
|
-
threadId: z$1.ZodString;
|
|
3266
|
-
type: z$1.ZodLiteral<"system/interaction/lifecycle">;
|
|
3267
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3268
|
-
interactionId: z$1.ZodString;
|
|
3485
|
+
tone: z$1.ZodEnum<{
|
|
3486
|
+
destructive: "destructive";
|
|
3487
|
+
neutral: "neutral";
|
|
3488
|
+
}>;
|
|
3489
|
+
}, z$1.core.$strip>>;
|
|
3490
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
3491
|
+
icon: z$1.ZodObject<{
|
|
3492
|
+
glyph: z$1.ZodString;
|
|
3493
|
+
}, z$1.core.$strip>;
|
|
3494
|
+
label: z$1.ZodObject<{
|
|
3495
|
+
completed: z$1.ZodString;
|
|
3496
|
+
pending: z$1.ZodString;
|
|
3497
|
+
}, z$1.core.$strip>;
|
|
3498
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3499
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
3500
|
+
dark: z$1.ZodString;
|
|
3501
|
+
light: z$1.ZodString;
|
|
3502
|
+
}, z$1.core.$strip>>;
|
|
3503
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
3504
|
+
}, z$1.core.$strip>;
|
|
3505
|
+
tool: z$1.ZodString;
|
|
3506
|
+
}, z$1.core.$strip>], "kind">;
|
|
3507
|
+
}, z$1.core.$strip>;
|
|
3269
3508
|
providerId: z$1.ZodString;
|
|
3270
3509
|
providerRequestId: z$1.ZodString;
|
|
3271
|
-
|
|
3510
|
+
providerThreadId: z$1.ZodString;
|
|
3511
|
+
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3272
3512
|
decision: z$1.ZodLiteral<"allow_once">;
|
|
3273
3513
|
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3274
3514
|
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3292,32 +3532,27 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3292
3532
|
}, z$1.core.$strict>>;
|
|
3293
3533
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3294
3534
|
decision: z$1.ZodLiteral<"deny">;
|
|
3295
|
-
}, z$1.core.$strip>], "decision"
|
|
3535
|
+
}, z$1.core.$strip>], "decision">>;
|
|
3536
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3296
3537
|
status: z$1.ZodEnum<{
|
|
3297
3538
|
interrupted: "interrupted";
|
|
3298
3539
|
pending: "pending";
|
|
3299
3540
|
resolved: "resolved";
|
|
3300
3541
|
resolving: "resolving";
|
|
3301
3542
|
}>;
|
|
3302
|
-
statusReason: z$1.
|
|
3303
|
-
subject: z$1.ZodObject<{
|
|
3304
|
-
itemId: z$1.ZodString;
|
|
3305
|
-
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3306
|
-
permissions: z$1.ZodObject<{
|
|
3307
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3308
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
3309
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
3310
|
-
}, z$1.core.$strip>>;
|
|
3311
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3312
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3313
|
-
}, z$1.core.$strip>>;
|
|
3314
|
-
}, z$1.core.$strict>;
|
|
3315
|
-
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3316
|
-
}, z$1.core.$strip>;
|
|
3543
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3317
3544
|
threadId: z$1.ZodString;
|
|
3318
|
-
|
|
3545
|
+
turnId: z$1.ZodString;
|
|
3319
3546
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3320
|
-
|
|
3547
|
+
createdAt: z$1.ZodNumber;
|
|
3548
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3549
|
+
id: z$1.ZodString;
|
|
3550
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3551
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3552
|
+
providerId: z$1.ZodString;
|
|
3553
|
+
providerRequestId: z$1.ZodString;
|
|
3554
|
+
providerThreadId: z$1.ZodString;
|
|
3555
|
+
}, z$1.core.$strip>>;
|
|
3321
3556
|
payload: z$1.ZodObject<{
|
|
3322
3557
|
kind: z$1.ZodLiteral<"user_question">;
|
|
3323
3558
|
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -3333,74 +3568,90 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3333
3568
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3334
3569
|
}, z$1.core.$strip>>;
|
|
3335
3570
|
}, z$1.core.$strip>;
|
|
3336
|
-
providerId: z$1.ZodString;
|
|
3337
|
-
providerRequestId: z$1.ZodString;
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3571
|
+
providerId: z$1.ZodString;
|
|
3572
|
+
providerRequestId: z$1.ZodString;
|
|
3573
|
+
providerThreadId: z$1.ZodString;
|
|
3574
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3575
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3576
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3577
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3578
|
+
}, z$1.core.$strip>>;
|
|
3579
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3580
|
+
}, z$1.core.$strip>>;
|
|
3581
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3582
|
+
status: z$1.ZodEnum<{
|
|
3583
|
+
interrupted: "interrupted";
|
|
3584
|
+
pending: "pending";
|
|
3585
|
+
resolved: "resolved";
|
|
3586
|
+
resolving: "resolving";
|
|
3587
|
+
}>;
|
|
3588
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3589
|
+
threadId: z$1.ZodString;
|
|
3590
|
+
turnId: z$1.ZodString;
|
|
3591
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3592
|
+
createdAt: z$1.ZodNumber;
|
|
3593
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3594
|
+
id: z$1.ZodString;
|
|
3595
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3596
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3597
|
+
providerId: z$1.ZodString;
|
|
3598
|
+
providerRequestId: z$1.ZodString;
|
|
3599
|
+
providerThreadId: z$1.ZodString;
|
|
3600
|
+
}, z$1.core.$strip>>;
|
|
3601
|
+
payload: z$1.ZodObject<{
|
|
3602
|
+
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3603
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
3604
|
+
title: z$1.ZodString;
|
|
3605
|
+
}, z$1.core.$strip>;
|
|
3606
|
+
providerId: z$1.ZodString;
|
|
3607
|
+
providerRequestId: z$1.ZodString;
|
|
3608
|
+
providerThreadId: z$1.ZodString;
|
|
3609
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3610
|
+
kind: z$1.ZodLiteral<"request_answer">;
|
|
3611
|
+
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3612
|
+
}, z$1.core.$strip>>;
|
|
3613
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3614
|
+
status: z$1.ZodEnum<{
|
|
3615
|
+
interrupted: "interrupted";
|
|
3616
|
+
pending: "pending";
|
|
3617
|
+
resolved: "resolved";
|
|
3618
|
+
resolving: "resolving";
|
|
3619
|
+
}>;
|
|
3620
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3621
|
+
threadId: z$1.ZodString;
|
|
3622
|
+
turnId: z$1.ZodString;
|
|
3623
|
+
}, z$1.core.$strip>]>;
|
|
3624
|
+
type ProviderPendingInteraction = z$1.infer<typeof providerPendingInteractionSchema>;
|
|
3625
|
+
declare const pluginPendingInteractionSchema: z$1.ZodObject<{
|
|
3626
|
+
createdAt: z$1.ZodNumber;
|
|
3627
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3628
|
+
id: z$1.ZodString;
|
|
3629
|
+
origin: z$1.ZodObject<{
|
|
3630
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3631
|
+
pluginId: z$1.ZodString;
|
|
3632
|
+
rendererId: z$1.ZodString;
|
|
3633
|
+
}, z$1.core.$strip>;
|
|
3634
|
+
payload: z$1.ZodObject<{
|
|
3635
|
+
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3636
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3637
|
+
title: z$1.ZodString;
|
|
3638
|
+
}, z$1.core.$strip>;
|
|
3639
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3640
|
+
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3641
|
+
}, z$1.core.$strip>>;
|
|
3642
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3345
3643
|
status: z$1.ZodEnum<{
|
|
3346
3644
|
interrupted: "interrupted";
|
|
3347
3645
|
pending: "pending";
|
|
3348
3646
|
resolved: "resolved";
|
|
3349
3647
|
resolving: "resolving";
|
|
3350
3648
|
}>;
|
|
3351
|
-
statusReason: z$1.
|
|
3352
|
-
threadId: z$1.ZodString;
|
|
3353
|
-
type: z$1.ZodLiteral<"system/userQuestion/lifecycle">;
|
|
3354
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3355
|
-
entries: z$1.ZodArray<z$1.ZodObject<{
|
|
3356
|
-
key: z$1.ZodString;
|
|
3357
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3358
|
-
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3359
|
-
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3360
|
-
completed: "completed";
|
|
3361
|
-
failed: "failed";
|
|
3362
|
-
started: "started";
|
|
3363
|
-
}>>;
|
|
3364
|
-
text: z$1.ZodString;
|
|
3365
|
-
type: z$1.ZodEnum<{
|
|
3366
|
-
output: "output";
|
|
3367
|
-
step: "step";
|
|
3368
|
-
}>;
|
|
3369
|
-
}, z$1.core.$strip>>;
|
|
3370
|
-
environmentId: z$1.ZodString;
|
|
3371
|
-
provisioningId: z$1.ZodString;
|
|
3372
|
-
status: z$1.ZodEnum<{
|
|
3373
|
-
active: "active";
|
|
3374
|
-
cancelled: "cancelled";
|
|
3375
|
-
completed: "completed";
|
|
3376
|
-
failed: "failed";
|
|
3377
|
-
}>;
|
|
3378
|
-
threadId: z$1.ZodString;
|
|
3379
|
-
type: z$1.ZodLiteral<"system/thread-provisioning">;
|
|
3380
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3381
|
-
activeTurnId: z$1.ZodString;
|
|
3382
|
-
activeTurnStartedAt: z$1.ZodNumber;
|
|
3383
|
-
elapsedMs: z$1.ZodNumber;
|
|
3384
|
-
firedAt: z$1.ZodNumber;
|
|
3385
|
-
lastActivityEventAt: z$1.ZodNumber;
|
|
3386
|
-
lastActivityEventSequence: z$1.ZodNumber;
|
|
3387
|
-
lastActivityEventType: z$1.ZodString;
|
|
3388
|
-
providerId: z$1.ZodString;
|
|
3389
|
-
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
3390
|
-
reason: z$1.ZodLiteral<"provider-turn-idle">;
|
|
3649
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3391
3650
|
threadId: z$1.ZodString;
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
kind: z$1.ZodLiteral<"thread">;
|
|
3397
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3398
|
-
kind: z$1.ZodLiteral<"turn">;
|
|
3399
|
-
turnId: z$1.ZodString;
|
|
3400
|
-
}, z$1.core.$strip>], "kind">;
|
|
3401
|
-
}, z$1.core.$strip>>]>>;
|
|
3402
|
-
type ThreadEvent = z$1.infer<typeof threadEventSchema>;
|
|
3403
|
-
type ThreadEventType = ThreadEvent["type"];
|
|
3651
|
+
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
3652
|
+
}, z$1.core.$strip>;
|
|
3653
|
+
type PluginPendingInteraction = z$1.infer<typeof pluginPendingInteractionSchema>;
|
|
3654
|
+
type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
3404
3655
|
|
|
3405
3656
|
declare const projectSchema: z$1.ZodObject<{
|
|
3406
3657
|
createdAt: z$1.ZodNumber;
|
|
@@ -3831,6 +4082,11 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
3831
4082
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3832
4083
|
groupWithNext: z$1.ZodBoolean;
|
|
3833
4084
|
id: z$1.ZodString;
|
|
4085
|
+
initiator: z$1.ZodEnum<{
|
|
4086
|
+
agent: "agent";
|
|
4087
|
+
system: "system";
|
|
4088
|
+
user: "user";
|
|
4089
|
+
}>;
|
|
3834
4090
|
model: z$1.ZodString;
|
|
3835
4091
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3836
4092
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -3856,6 +4112,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
3856
4112
|
xhigh: "xhigh";
|
|
3857
4113
|
}>;
|
|
3858
4114
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
4115
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
3859
4116
|
serviceTier: z$1.ZodEnum<{
|
|
3860
4117
|
default: "default";
|
|
3861
4118
|
fast: "fast";
|
|
@@ -3912,6 +4169,14 @@ declare const createThreadEnvironmentArgsSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
3912
4169
|
}, z$1.core.$strip>], "type">;
|
|
3913
4170
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3914
4171
|
type: z$1.ZodLiteral<"project-default">;
|
|
4172
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4173
|
+
environmentProviderId: z$1.ZodString;
|
|
4174
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
4175
|
+
machine: z$1.ZodObject<{
|
|
4176
|
+
hostId: z$1.ZodString;
|
|
4177
|
+
type: z$1.ZodLiteral<"existing">;
|
|
4178
|
+
}, z$1.core.$strip>;
|
|
4179
|
+
type: z$1.ZodLiteral<"provider">;
|
|
3915
4180
|
}, z$1.core.$strip>], "type">;
|
|
3916
4181
|
type CreateThreadEnvironmentArgs = z$1.infer<typeof createThreadEnvironmentArgsSchema>;
|
|
3917
4182
|
declare const workspaceFileListResponseSchema: z$1.ZodObject<{
|
|
@@ -4058,6 +4323,7 @@ declare const projectBranchesResponseSchema: z$1.ZodObject<{
|
|
|
4058
4323
|
}>>;
|
|
4059
4324
|
defaultWorktreeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
4060
4325
|
hasUncommittedChanges: z$1.ZodBoolean;
|
|
4326
|
+
isWorktree: z$1.ZodBoolean;
|
|
4061
4327
|
operation: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4062
4328
|
kind: z$1.ZodLiteral<"none">;
|
|
4063
4329
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -4325,7 +4591,10 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
|
|
|
4325
4591
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4326
4592
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4327
4593
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4594
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4328
4595
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4596
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4597
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4329
4598
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4330
4599
|
"managed-worktree": "managed-worktree";
|
|
4331
4600
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4441,7 +4710,10 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
4441
4710
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4442
4711
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4443
4712
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4713
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4444
4714
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4715
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4716
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4445
4717
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4446
4718
|
"managed-worktree": "managed-worktree";
|
|
4447
4719
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4555,7 +4827,10 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
4555
4827
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4556
4828
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4557
4829
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4830
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4558
4831
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4832
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4833
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4559
4834
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4560
4835
|
"managed-worktree": "managed-worktree";
|
|
4561
4836
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4946,7 +5221,6 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
4946
5221
|
failure: z$1.ZodObject<{
|
|
4947
5222
|
code: z$1.ZodEnum<{
|
|
4948
5223
|
not_git_repo: "not_git_repo";
|
|
4949
|
-
not_worktree: "not_worktree";
|
|
4950
5224
|
path_not_found: "path_not_found";
|
|
4951
5225
|
permission_denied: "permission_denied";
|
|
4952
5226
|
unknown: "unknown";
|
|
@@ -5060,7 +5334,6 @@ declare const environmentDiffResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
5060
5334
|
failure: z$1.ZodObject<{
|
|
5061
5335
|
code: z$1.ZodEnum<{
|
|
5062
5336
|
not_git_repo: "not_git_repo";
|
|
5063
|
-
not_worktree: "not_worktree";
|
|
5064
5337
|
path_not_found: "path_not_found";
|
|
5065
5338
|
permission_denied: "permission_denied";
|
|
5066
5339
|
unknown: "unknown";
|
|
@@ -5117,7 +5390,6 @@ declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5117
5390
|
failure: z$1.ZodObject<{
|
|
5118
5391
|
code: z$1.ZodEnum<{
|
|
5119
5392
|
not_git_repo: "not_git_repo";
|
|
5120
|
-
not_worktree: "not_worktree";
|
|
5121
5393
|
path_not_found: "path_not_found";
|
|
5122
5394
|
permission_denied: "permission_denied";
|
|
5123
5395
|
unknown: "unknown";
|
|
@@ -5147,7 +5419,6 @@ declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5147
5419
|
failure: z$1.ZodObject<{
|
|
5148
5420
|
code: z$1.ZodEnum<{
|
|
5149
5421
|
not_git_repo: "not_git_repo";
|
|
5150
|
-
not_worktree: "not_worktree";
|
|
5151
5422
|
path_not_found: "path_not_found";
|
|
5152
5423
|
permission_denied: "permission_denied";
|
|
5153
5424
|
unknown: "unknown";
|
|
@@ -5360,6 +5631,82 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5360
5631
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5361
5632
|
ok: z$1.ZodLiteral<true>;
|
|
5362
5633
|
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5634
|
+
"desktop.browser.list_import_sources": HostDaemonCommandDescriptor<"desktop.browser.list_import_sources", z$1.ZodObject<{
|
|
5635
|
+
generation: z$1.ZodString;
|
|
5636
|
+
instanceId: z$1.ZodString;
|
|
5637
|
+
type: z$1.ZodLiteral<"desktop.browser.list_import_sources">;
|
|
5638
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5639
|
+
sources: z$1.ZodArray<z$1.ZodObject<{
|
|
5640
|
+
icon: z$1.ZodOptional<z$1.ZodString>;
|
|
5641
|
+
id: z$1.ZodEnum<{
|
|
5642
|
+
arc: "arc";
|
|
5643
|
+
brave: "brave";
|
|
5644
|
+
chrome: "chrome";
|
|
5645
|
+
chromium: "chromium";
|
|
5646
|
+
edge: "edge";
|
|
5647
|
+
firefox: "firefox";
|
|
5648
|
+
opera: "opera";
|
|
5649
|
+
safari: "safari";
|
|
5650
|
+
vivaldi: "vivaldi";
|
|
5651
|
+
}>;
|
|
5652
|
+
name: z$1.ZodString;
|
|
5653
|
+
profiles: z$1.ZodArray<z$1.ZodObject<{
|
|
5654
|
+
cookieCount: z$1.ZodOptional<z$1.ZodNumber>;
|
|
5655
|
+
directory: z$1.ZodString;
|
|
5656
|
+
name: z$1.ZodString;
|
|
5657
|
+
}, z$1.core.$strict>>;
|
|
5658
|
+
unavailable: z$1.ZodOptional<z$1.ZodEnum<{
|
|
5659
|
+
browserRunning: "browserRunning";
|
|
5660
|
+
keychainItemMissing: "keychainItemMissing";
|
|
5661
|
+
needsFullDiskAccess: "needsFullDiskAccess";
|
|
5662
|
+
needsKeychainApproval: "needsKeychainApproval";
|
|
5663
|
+
notInstalled: "notInstalled";
|
|
5664
|
+
unsupportedPlatform: "unsupportedPlatform";
|
|
5665
|
+
}>>;
|
|
5666
|
+
}, z$1.core.$strict>>;
|
|
5667
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5668
|
+
"desktop.browser.import_cookies": HostDaemonCommandDescriptor<"desktop.browser.import_cookies", z$1.ZodObject<{
|
|
5669
|
+
generation: z$1.ZodString;
|
|
5670
|
+
instanceId: z$1.ZodString;
|
|
5671
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5672
|
+
id: z$1.ZodString;
|
|
5673
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
5674
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5675
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
5676
|
+
}, z$1.core.$strip>], "kind">;
|
|
5677
|
+
sourceId: z$1.ZodEnum<{
|
|
5678
|
+
arc: "arc";
|
|
5679
|
+
brave: "brave";
|
|
5680
|
+
chrome: "chrome";
|
|
5681
|
+
chromium: "chromium";
|
|
5682
|
+
edge: "edge";
|
|
5683
|
+
firefox: "firefox";
|
|
5684
|
+
opera: "opera";
|
|
5685
|
+
safari: "safari";
|
|
5686
|
+
vivaldi: "vivaldi";
|
|
5687
|
+
}>;
|
|
5688
|
+
sourceProfileDirectory: z$1.ZodString;
|
|
5689
|
+
type: z$1.ZodLiteral<"desktop.browser.import_cookies">;
|
|
5690
|
+
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5691
|
+
imported: z$1.ZodNumber;
|
|
5692
|
+
ok: z$1.ZodLiteral<true>;
|
|
5693
|
+
skipped: z$1.ZodNumber;
|
|
5694
|
+
skippedDomains: z$1.ZodArray<z$1.ZodString>;
|
|
5695
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5696
|
+
ok: z$1.ZodLiteral<false>;
|
|
5697
|
+
reason: z$1.ZodEnum<{
|
|
5698
|
+
browserRunning: "browserRunning";
|
|
5699
|
+
keychainItemMissing: "keychainItemMissing";
|
|
5700
|
+
keychainUnavailable: "keychainUnavailable";
|
|
5701
|
+
needsFullDiskAccess: "needsFullDiskAccess";
|
|
5702
|
+
needsKeychainApproval: "needsKeychainApproval";
|
|
5703
|
+
notInstalled: "notInstalled";
|
|
5704
|
+
readFailed: "readFailed";
|
|
5705
|
+
unknownSource: "unknownSource";
|
|
5706
|
+
unknownSourceProfile: "unknownSourceProfile";
|
|
5707
|
+
unsupportedPlatform: "unsupportedPlatform";
|
|
5708
|
+
}>;
|
|
5709
|
+
}, z$1.core.$strict>], "ok">, "onlineRpc", false>;
|
|
5363
5710
|
"thread.rewind.discard": HostDaemonCommandDescriptor<"thread.rewind.discard", z$1.ZodObject<{
|
|
5364
5711
|
environmentId: z$1.ZodString;
|
|
5365
5712
|
leaseId: z$1.ZodString;
|
|
@@ -5518,11 +5865,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5518
5865
|
type: z$1.ZodLiteral<"thread.rewind.prepare">;
|
|
5519
5866
|
workspaceContext: z$1.ZodObject<{
|
|
5520
5867
|
workspacePath: z$1.ZodString;
|
|
5521
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
5522
|
-
"managed-worktree": "managed-worktree";
|
|
5523
|
-
personal: "personal";
|
|
5524
|
-
unmanaged: "unmanaged";
|
|
5525
|
-
}>;
|
|
5526
5868
|
}, z$1.core.$strip>;
|
|
5527
5869
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5528
5870
|
providerThreadId: z$1.ZodString;
|
|
@@ -5844,11 +6186,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5844
6186
|
type: z$1.ZodLiteral<"thread.start">;
|
|
5845
6187
|
workspaceContext: z$1.ZodObject<{
|
|
5846
6188
|
workspacePath: z$1.ZodString;
|
|
5847
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
5848
|
-
"managed-worktree": "managed-worktree";
|
|
5849
|
-
personal: "personal";
|
|
5850
|
-
unmanaged: "unmanaged";
|
|
5851
|
-
}>;
|
|
5852
6189
|
}, z$1.core.$strip>;
|
|
5853
6190
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5854
6191
|
providerThreadId: z$1.ZodString;
|
|
@@ -6191,11 +6528,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6191
6528
|
providerThreadId: z$1.ZodString;
|
|
6192
6529
|
workspaceContext: z$1.ZodObject<{
|
|
6193
6530
|
workspacePath: z$1.ZodString;
|
|
6194
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6195
|
-
"managed-worktree": "managed-worktree";
|
|
6196
|
-
personal: "personal";
|
|
6197
|
-
unmanaged: "unmanaged";
|
|
6198
|
-
}>;
|
|
6199
6531
|
}, z$1.core.$strip>;
|
|
6200
6532
|
}, z$1.core.$strict>;
|
|
6201
6533
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6401,11 +6733,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6401
6733
|
providerThreadId: z$1.ZodString;
|
|
6402
6734
|
workspaceContext: z$1.ZodObject<{
|
|
6403
6735
|
workspacePath: z$1.ZodString;
|
|
6404
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6405
|
-
"managed-worktree": "managed-worktree";
|
|
6406
|
-
personal: "personal";
|
|
6407
|
-
unmanaged: "unmanaged";
|
|
6408
|
-
}>;
|
|
6409
6736
|
}, z$1.core.$strip>;
|
|
6410
6737
|
}, z$1.core.$strict>;
|
|
6411
6738
|
threadId: z$1.ZodString;
|
|
@@ -6461,11 +6788,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6461
6788
|
type: z$1.ZodLiteral<"thread.archive">;
|
|
6462
6789
|
workspaceContext: z$1.ZodObject<{
|
|
6463
6790
|
workspacePath: z$1.ZodString;
|
|
6464
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6465
|
-
"managed-worktree": "managed-worktree";
|
|
6466
|
-
personal: "personal";
|
|
6467
|
-
unmanaged: "unmanaged";
|
|
6468
|
-
}>;
|
|
6469
6791
|
}, z$1.core.$strip>;
|
|
6470
6792
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
|
|
6471
6793
|
"thread.unarchive": HostDaemonCommandDescriptor<"thread.unarchive", z$1.ZodObject<{
|
|
@@ -6546,66 +6868,21 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6546
6868
|
threadId: z$1.ZodString;
|
|
6547
6869
|
type: z$1.ZodLiteral<"interactive.resolve">;
|
|
6548
6870
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
|
|
6549
|
-
"environment.
|
|
6550
|
-
checkout: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6551
|
-
kind: z$1.ZodLiteral<"existing">;
|
|
6552
|
-
name: z$1.ZodString;
|
|
6553
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6554
|
-
baseBranch: z$1.ZodString;
|
|
6555
|
-
kind: z$1.ZodLiteral<"new">;
|
|
6556
|
-
name: z$1.ZodString;
|
|
6557
|
-
}, z$1.core.$strict>], "kind">>;
|
|
6871
|
+
"environment.attach": HostDaemonCommandDescriptor<"environment.attach", z$1.ZodObject<{
|
|
6558
6872
|
environmentId: z$1.ZodString;
|
|
6559
6873
|
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6560
6874
|
provisioningId: z$1.ZodString;
|
|
6561
6875
|
threadId: z$1.ZodString;
|
|
6562
6876
|
}, z$1.core.$strict>>;
|
|
6563
6877
|
path: z$1.ZodString;
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6567
|
-
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
6568
|
-
branchName: z$1.ZodString;
|
|
6569
|
-
environmentId: z$1.ZodString;
|
|
6570
|
-
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6571
|
-
provisioningId: z$1.ZodString;
|
|
6572
|
-
threadId: z$1.ZodString;
|
|
6573
|
-
}, z$1.core.$strict>>;
|
|
6574
|
-
setupTimeoutMs: z$1.ZodNumber;
|
|
6575
|
-
sourcePath: z$1.ZodString;
|
|
6576
|
-
targetPath: z$1.ZodString;
|
|
6577
|
-
type: z$1.ZodLiteral<"environment.provision">;
|
|
6578
|
-
workspaceProvisionType: z$1.ZodLiteral<"managed-worktree">;
|
|
6878
|
+
setupScriptTimeoutMs: z$1.ZodNullable<z$1.ZodNumber>;
|
|
6879
|
+
type: z$1.ZodLiteral<"environment.attach">;
|
|
6579
6880
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6580
|
-
environmentId: z$1.ZodString;
|
|
6581
|
-
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6582
|
-
provisioningId: z$1.ZodString;
|
|
6583
|
-
threadId: z$1.ZodString;
|
|
6584
|
-
}, z$1.core.$strict>>;
|
|
6585
|
-
targetPath: z$1.ZodString;
|
|
6586
|
-
type: z$1.ZodLiteral<"environment.provision">;
|
|
6587
|
-
workspaceProvisionType: z$1.ZodLiteral<"personal">;
|
|
6588
|
-
}, z$1.core.$strict>], "workspaceProvisionType">, z$1.ZodObject<{
|
|
6589
6881
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
6590
6882
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
6591
6883
|
isGitRepo: z$1.ZodBoolean;
|
|
6592
6884
|
isWorktree: z$1.ZodBoolean;
|
|
6593
6885
|
path: z$1.ZodString;
|
|
6594
|
-
transcript: z$1.ZodArray<z$1.ZodObject<{
|
|
6595
|
-
key: z$1.ZodString;
|
|
6596
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6597
|
-
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6598
|
-
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
6599
|
-
completed: "completed";
|
|
6600
|
-
failed: "failed";
|
|
6601
|
-
started: "started";
|
|
6602
|
-
}>>;
|
|
6603
|
-
text: z$1.ZodString;
|
|
6604
|
-
type: z$1.ZodEnum<{
|
|
6605
|
-
output: "output";
|
|
6606
|
-
step: "step";
|
|
6607
|
-
}>;
|
|
6608
|
-
}, z$1.core.$strip>>;
|
|
6609
6886
|
}, z$1.core.$strip>, "settled", false>;
|
|
6610
6887
|
"project.clone": HostDaemonCommandDescriptor<"project.clone", z$1.ZodObject<{
|
|
6611
6888
|
projectSlug: z$1.ZodString;
|
|
@@ -6616,52 +6893,18 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6616
6893
|
gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
6617
6894
|
path: z$1.ZodString;
|
|
6618
6895
|
}, z$1.core.$strict>, "settled", false>;
|
|
6619
|
-
"environment.
|
|
6896
|
+
"environment.attach.cancel": HostDaemonCommandDescriptor<"environment.attach.cancel", z$1.ZodObject<{
|
|
6620
6897
|
environmentId: z$1.ZodString;
|
|
6621
|
-
type: z$1.ZodLiteral<"environment.
|
|
6898
|
+
type: z$1.ZodLiteral<"environment.attach.cancel">;
|
|
6622
6899
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6623
6900
|
aborted: z$1.ZodBoolean;
|
|
6624
6901
|
}, z$1.core.$strip>, "settled", false>;
|
|
6625
|
-
"environment.destroy": HostDaemonCommandDescriptor<"environment.destroy", z$1.ZodObject<{
|
|
6626
|
-
environmentId: z$1.ZodString;
|
|
6627
|
-
teardownTimeoutMs: z$1.ZodNumber;
|
|
6628
|
-
type: z$1.ZodLiteral<"environment.destroy">;
|
|
6629
|
-
workspaceContext: z$1.ZodObject<{
|
|
6630
|
-
workspacePath: z$1.ZodString;
|
|
6631
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6632
|
-
"managed-worktree": "managed-worktree";
|
|
6633
|
-
personal: "personal";
|
|
6634
|
-
unmanaged: "unmanaged";
|
|
6635
|
-
}>;
|
|
6636
|
-
}, z$1.core.$strip>;
|
|
6637
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6638
|
-
transcript: z$1.ZodArray<z$1.ZodObject<{
|
|
6639
|
-
key: z$1.ZodString;
|
|
6640
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6641
|
-
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6642
|
-
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
6643
|
-
completed: "completed";
|
|
6644
|
-
failed: "failed";
|
|
6645
|
-
started: "started";
|
|
6646
|
-
}>>;
|
|
6647
|
-
text: z$1.ZodString;
|
|
6648
|
-
type: z$1.ZodEnum<{
|
|
6649
|
-
output: "output";
|
|
6650
|
-
step: "step";
|
|
6651
|
-
}>;
|
|
6652
|
-
}, z$1.core.$strip>>;
|
|
6653
|
-
}, z$1.core.$strict>, "settled", false>;
|
|
6654
6902
|
"workspace.commit": HostDaemonCommandDescriptor<"workspace.commit", z$1.ZodObject<{
|
|
6655
6903
|
environmentId: z$1.ZodString;
|
|
6656
6904
|
message: z$1.ZodString;
|
|
6657
6905
|
type: z$1.ZodLiteral<"workspace.commit">;
|
|
6658
6906
|
workspaceContext: z$1.ZodObject<{
|
|
6659
6907
|
workspacePath: z$1.ZodString;
|
|
6660
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6661
|
-
"managed-worktree": "managed-worktree";
|
|
6662
|
-
personal: "personal";
|
|
6663
|
-
unmanaged: "unmanaged";
|
|
6664
|
-
}>;
|
|
6665
6908
|
}, z$1.core.$strip>;
|
|
6666
6909
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6667
6910
|
commitSha: z$1.ZodString;
|
|
@@ -6673,11 +6916,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6673
6916
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6674
6917
|
workspaceContext: z$1.ZodObject<{
|
|
6675
6918
|
workspacePath: z$1.ZodString;
|
|
6676
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6677
|
-
"managed-worktree": "managed-worktree";
|
|
6678
|
-
personal: "personal";
|
|
6679
|
-
unmanaged: "unmanaged";
|
|
6680
|
-
}>;
|
|
6681
6919
|
}, z$1.core.$strip>;
|
|
6682
6920
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6683
6921
|
environmentId: z$1.ZodString;
|
|
@@ -6685,11 +6923,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6685
6923
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6686
6924
|
workspaceContext: z$1.ZodObject<{
|
|
6687
6925
|
workspacePath: z$1.ZodString;
|
|
6688
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6689
|
-
"managed-worktree": "managed-worktree";
|
|
6690
|
-
personal: "personal";
|
|
6691
|
-
unmanaged: "unmanaged";
|
|
6692
|
-
}>;
|
|
6693
6926
|
}, z$1.core.$strip>;
|
|
6694
6927
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6695
6928
|
environmentId: z$1.ZodString;
|
|
@@ -6702,14 +6935,11 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6702
6935
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6703
6936
|
workspaceContext: z$1.ZodObject<{
|
|
6704
6937
|
workspacePath: z$1.ZodString;
|
|
6705
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6706
|
-
"managed-worktree": "managed-worktree";
|
|
6707
|
-
personal: "personal";
|
|
6708
|
-
unmanaged: "unmanaged";
|
|
6709
|
-
}>;
|
|
6710
6938
|
}, z$1.core.$strip>;
|
|
6711
6939
|
}, z$1.core.$strict>], "operation">, z$1.ZodObject<{}, z$1.core.$strict>, "settled", false>;
|
|
6712
6940
|
"host.list_files": HostDaemonCommandDescriptor<"host.list_files", z$1.ZodObject<{
|
|
6941
|
+
excludeNames: z$1.ZodArray<z$1.ZodString>;
|
|
6942
|
+
includeHidden: z$1.ZodBoolean;
|
|
6713
6943
|
limit: z$1.ZodNumber;
|
|
6714
6944
|
path: z$1.ZodString;
|
|
6715
6945
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -6722,8 +6952,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6722
6952
|
truncated: z$1.ZodBoolean;
|
|
6723
6953
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
6724
6954
|
"host.list_paths": HostDaemonCommandDescriptor<"host.list_paths", z$1.ZodObject<{
|
|
6955
|
+
excludeNames: z$1.ZodArray<z$1.ZodString>;
|
|
6725
6956
|
includeDirectories: z$1.ZodBoolean;
|
|
6726
6957
|
includeFiles: z$1.ZodBoolean;
|
|
6958
|
+
includeHidden: z$1.ZodBoolean;
|
|
6727
6959
|
limit: z$1.ZodNumber;
|
|
6728
6960
|
path: z$1.ZodString;
|
|
6729
6961
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -6804,6 +7036,26 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6804
7036
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6805
7037
|
path: z$1.ZodNullable<z$1.ZodString>;
|
|
6806
7038
|
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
7039
|
+
"environment.hook.run": HostDaemonCommandDescriptor<"environment.hook.run", z$1.ZodObject<{
|
|
7040
|
+
kind: z$1.ZodEnum<{
|
|
7041
|
+
setup: "setup";
|
|
7042
|
+
teardown: "teardown";
|
|
7043
|
+
}>;
|
|
7044
|
+
operationId: z$1.ZodString;
|
|
7045
|
+
path: z$1.ZodString;
|
|
7046
|
+
resumeOnly: z$1.ZodBoolean;
|
|
7047
|
+
timeoutMs: z$1.ZodNumber;
|
|
7048
|
+
type: z$1.ZodLiteral<"environment.hook.run">;
|
|
7049
|
+
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "onlineRpc", false>;
|
|
7050
|
+
"environment.hook.cancel": HostDaemonCommandDescriptor<"environment.hook.cancel", z$1.ZodObject<{
|
|
7051
|
+
operationId: z$1.ZodString;
|
|
7052
|
+
type: z$1.ZodLiteral<"environment.hook.cancel">;
|
|
7053
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7054
|
+
status: z$1.ZodEnum<{
|
|
7055
|
+
terminated: "terminated";
|
|
7056
|
+
unknown: "unknown";
|
|
7057
|
+
}>;
|
|
7058
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
6807
7059
|
"plugin.host.call": HostDaemonCommandDescriptor<"plugin.host.call", z$1.ZodObject<{
|
|
6808
7060
|
artifact: z$1.ZodObject<{
|
|
6809
7061
|
byteLength: z$1.ZodNumber;
|
|
@@ -7116,6 +7368,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7116
7368
|
unknown: "unknown";
|
|
7117
7369
|
}>>;
|
|
7118
7370
|
hasUncommittedChanges: z$1.ZodBoolean;
|
|
7371
|
+
isWorktree: z$1.ZodBoolean;
|
|
7119
7372
|
operation: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7120
7373
|
kind: z$1.ZodLiteral<"none">;
|
|
7121
7374
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -7171,11 +7424,17 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7171
7424
|
sizeBytes: z$1.ZodNumber;
|
|
7172
7425
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
7173
7426
|
"host.read_file": HostDaemonCommandDescriptor<"host.read_file", z$1.ZodObject<{
|
|
7427
|
+
ifNoneMatch: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7428
|
+
kind: z$1.ZodLiteral<"any">;
|
|
7429
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7430
|
+
kind: z$1.ZodLiteral<"sha256">;
|
|
7431
|
+
values: z$1.ZodArray<z$1.ZodString>;
|
|
7432
|
+
}, z$1.core.$strict>], "kind">>;
|
|
7174
7433
|
path: z$1.ZodString;
|
|
7175
7434
|
ref: z$1.ZodOptional<z$1.ZodString>;
|
|
7176
7435
|
rootPath: z$1.ZodOptional<z$1.ZodString>;
|
|
7177
7436
|
type: z$1.ZodLiteral<"host.read_file">;
|
|
7178
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7437
|
+
}, z$1.core.$strip>, z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
7179
7438
|
content: z$1.ZodString;
|
|
7180
7439
|
contentEncoding: z$1.ZodEnum<{
|
|
7181
7440
|
base64: "base64";
|
|
@@ -7186,7 +7445,18 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7186
7445
|
path: z$1.ZodString;
|
|
7187
7446
|
sha256: z$1.ZodString;
|
|
7188
7447
|
sizeBytes: z$1.ZodNumber;
|
|
7189
|
-
}, z$1.core.$strip>,
|
|
7448
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7449
|
+
contentEncoding: z$1.ZodEnum<{
|
|
7450
|
+
base64: "base64";
|
|
7451
|
+
utf8: "utf8";
|
|
7452
|
+
}>;
|
|
7453
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7454
|
+
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7455
|
+
notModified: z$1.ZodLiteral<true>;
|
|
7456
|
+
path: z$1.ZodString;
|
|
7457
|
+
sha256: z$1.ZodString;
|
|
7458
|
+
sizeBytes: z$1.ZodNumber;
|
|
7459
|
+
}, z$1.core.$strip>]>, "onlineRpc", true>;
|
|
7190
7460
|
"host.read_file_relative": HostDaemonCommandDescriptor<"host.read_file_relative", z$1.ZodObject<{
|
|
7191
7461
|
dotfiles: z$1.ZodEnum<{
|
|
7192
7462
|
allow: "allow";
|
|
@@ -7560,11 +7830,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7560
7830
|
type: z$1.ZodLiteral<"workspace.status">;
|
|
7561
7831
|
workspaceContext: z$1.ZodObject<{
|
|
7562
7832
|
workspacePath: z$1.ZodString;
|
|
7563
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7564
|
-
"managed-worktree": "managed-worktree";
|
|
7565
|
-
personal: "personal";
|
|
7566
|
-
unmanaged: "unmanaged";
|
|
7567
|
-
}>;
|
|
7568
7833
|
}, z$1.core.$strip>;
|
|
7569
7834
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7570
7835
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -7652,7 +7917,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7652
7917
|
failure: z$1.ZodObject<{
|
|
7653
7918
|
code: z$1.ZodEnum<{
|
|
7654
7919
|
not_git_repo: "not_git_repo";
|
|
7655
|
-
not_worktree: "not_worktree";
|
|
7656
7920
|
path_not_found: "path_not_found";
|
|
7657
7921
|
permission_denied: "permission_denied";
|
|
7658
7922
|
unknown: "unknown";
|
|
@@ -7684,11 +7948,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7684
7948
|
type: z$1.ZodLiteral<"workspace.diff">;
|
|
7685
7949
|
workspaceContext: z$1.ZodObject<{
|
|
7686
7950
|
workspacePath: z$1.ZodString;
|
|
7687
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7688
|
-
"managed-worktree": "managed-worktree";
|
|
7689
|
-
personal: "personal";
|
|
7690
|
-
unmanaged: "unmanaged";
|
|
7691
|
-
}>;
|
|
7692
7951
|
}, z$1.core.$strip>;
|
|
7693
7952
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7694
7953
|
diff: z$1.ZodObject<{
|
|
@@ -7703,7 +7962,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7703
7962
|
failure: z$1.ZodObject<{
|
|
7704
7963
|
code: z$1.ZodEnum<{
|
|
7705
7964
|
not_git_repo: "not_git_repo";
|
|
7706
|
-
not_worktree: "not_worktree";
|
|
7707
7965
|
path_not_found: "path_not_found";
|
|
7708
7966
|
permission_denied: "permission_denied";
|
|
7709
7967
|
unknown: "unknown";
|
|
@@ -7733,11 +7991,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7733
7991
|
type: z$1.ZodLiteral<"workspace.diffFiles">;
|
|
7734
7992
|
workspaceContext: z$1.ZodObject<{
|
|
7735
7993
|
workspacePath: z$1.ZodString;
|
|
7736
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7737
|
-
"managed-worktree": "managed-worktree";
|
|
7738
|
-
personal: "personal";
|
|
7739
|
-
unmanaged: "unmanaged";
|
|
7740
|
-
}>;
|
|
7741
7994
|
}, z$1.core.$strip>;
|
|
7742
7995
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7743
7996
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -7767,7 +8020,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7767
8020
|
failure: z$1.ZodObject<{
|
|
7768
8021
|
code: z$1.ZodEnum<{
|
|
7769
8022
|
not_git_repo: "not_git_repo";
|
|
7770
|
-
not_worktree: "not_worktree";
|
|
7771
8023
|
path_not_found: "path_not_found";
|
|
7772
8024
|
permission_denied: "permission_denied";
|
|
7773
8025
|
unknown: "unknown";
|
|
@@ -7798,11 +8050,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7798
8050
|
type: z$1.ZodLiteral<"workspace.diffPatch">;
|
|
7799
8051
|
workspaceContext: z$1.ZodObject<{
|
|
7800
8052
|
workspacePath: z$1.ZodString;
|
|
7801
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7802
|
-
"managed-worktree": "managed-worktree";
|
|
7803
|
-
personal: "personal";
|
|
7804
|
-
unmanaged: "unmanaged";
|
|
7805
|
-
}>;
|
|
7806
8053
|
}, z$1.core.$strip>;
|
|
7807
8054
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7808
8055
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -7815,7 +8062,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7815
8062
|
failure: z$1.ZodObject<{
|
|
7816
8063
|
code: z$1.ZodEnum<{
|
|
7817
8064
|
not_git_repo: "not_git_repo";
|
|
7818
|
-
not_worktree: "not_worktree";
|
|
7819
8065
|
path_not_found: "path_not_found";
|
|
7820
8066
|
permission_denied: "permission_denied";
|
|
7821
8067
|
unknown: "unknown";
|
|
@@ -7832,11 +8078,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7832
8078
|
type: z$1.ZodLiteral<"workspace.pull_request">;
|
|
7833
8079
|
workspaceContext: z$1.ZodObject<{
|
|
7834
8080
|
workspacePath: z$1.ZodString;
|
|
7835
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7836
|
-
"managed-worktree": "managed-worktree";
|
|
7837
|
-
personal: "personal";
|
|
7838
|
-
unmanaged: "unmanaged";
|
|
7839
|
-
}>;
|
|
7840
8081
|
}, z$1.core.$strip>;
|
|
7841
8082
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7842
8083
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -8062,6 +8303,32 @@ declare const desktopBrowserCommandSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
8062
8303
|
leaseId: z$1.ZodString;
|
|
8063
8304
|
threadId: z$1.ZodString;
|
|
8064
8305
|
type: z$1.ZodLiteral<"desktop.browser.release_control">;
|
|
8306
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8307
|
+
generation: z$1.ZodString;
|
|
8308
|
+
instanceId: z$1.ZodString;
|
|
8309
|
+
type: z$1.ZodLiteral<"desktop.browser.list_import_sources">;
|
|
8310
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8311
|
+
generation: z$1.ZodString;
|
|
8312
|
+
instanceId: z$1.ZodString;
|
|
8313
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8314
|
+
id: z$1.ZodString;
|
|
8315
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
8316
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8317
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
8318
|
+
}, z$1.core.$strip>], "kind">;
|
|
8319
|
+
sourceId: z$1.ZodEnum<{
|
|
8320
|
+
arc: "arc";
|
|
8321
|
+
brave: "brave";
|
|
8322
|
+
chrome: "chrome";
|
|
8323
|
+
chromium: "chromium";
|
|
8324
|
+
edge: "edge";
|
|
8325
|
+
firefox: "firefox";
|
|
8326
|
+
opera: "opera";
|
|
8327
|
+
safari: "safari";
|
|
8328
|
+
vivaldi: "vivaldi";
|
|
8329
|
+
}>;
|
|
8330
|
+
sourceProfileDirectory: z$1.ZodString;
|
|
8331
|
+
type: z$1.ZodLiteral<"desktop.browser.import_cookies">;
|
|
8065
8332
|
}, z$1.core.$strict>], "type">;
|
|
8066
8333
|
declare const desktopBrowserResultSchemas: {
|
|
8067
8334
|
"desktop.browser.list_instances": z$1.ZodObject<{
|
|
@@ -8143,6 +8410,56 @@ declare const desktopBrowserResultSchemas: {
|
|
|
8143
8410
|
"desktop.browser.release_control": z$1.ZodObject<{
|
|
8144
8411
|
ok: z$1.ZodLiteral<true>;
|
|
8145
8412
|
}, z$1.core.$strip>;
|
|
8413
|
+
"desktop.browser.list_import_sources": z$1.ZodObject<{
|
|
8414
|
+
sources: z$1.ZodArray<z$1.ZodObject<{
|
|
8415
|
+
icon: z$1.ZodOptional<z$1.ZodString>;
|
|
8416
|
+
id: z$1.ZodEnum<{
|
|
8417
|
+
arc: "arc";
|
|
8418
|
+
brave: "brave";
|
|
8419
|
+
chrome: "chrome";
|
|
8420
|
+
chromium: "chromium";
|
|
8421
|
+
edge: "edge";
|
|
8422
|
+
firefox: "firefox";
|
|
8423
|
+
opera: "opera";
|
|
8424
|
+
safari: "safari";
|
|
8425
|
+
vivaldi: "vivaldi";
|
|
8426
|
+
}>;
|
|
8427
|
+
name: z$1.ZodString;
|
|
8428
|
+
profiles: z$1.ZodArray<z$1.ZodObject<{
|
|
8429
|
+
cookieCount: z$1.ZodOptional<z$1.ZodNumber>;
|
|
8430
|
+
directory: z$1.ZodString;
|
|
8431
|
+
name: z$1.ZodString;
|
|
8432
|
+
}, z$1.core.$strict>>;
|
|
8433
|
+
unavailable: z$1.ZodOptional<z$1.ZodEnum<{
|
|
8434
|
+
browserRunning: "browserRunning";
|
|
8435
|
+
keychainItemMissing: "keychainItemMissing";
|
|
8436
|
+
needsFullDiskAccess: "needsFullDiskAccess";
|
|
8437
|
+
needsKeychainApproval: "needsKeychainApproval";
|
|
8438
|
+
notInstalled: "notInstalled";
|
|
8439
|
+
unsupportedPlatform: "unsupportedPlatform";
|
|
8440
|
+
}>>;
|
|
8441
|
+
}, z$1.core.$strict>>;
|
|
8442
|
+
}, z$1.core.$strip>;
|
|
8443
|
+
"desktop.browser.import_cookies": z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8444
|
+
imported: z$1.ZodNumber;
|
|
8445
|
+
ok: z$1.ZodLiteral<true>;
|
|
8446
|
+
skipped: z$1.ZodNumber;
|
|
8447
|
+
skippedDomains: z$1.ZodArray<z$1.ZodString>;
|
|
8448
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8449
|
+
ok: z$1.ZodLiteral<false>;
|
|
8450
|
+
reason: z$1.ZodEnum<{
|
|
8451
|
+
browserRunning: "browserRunning";
|
|
8452
|
+
keychainItemMissing: "keychainItemMissing";
|
|
8453
|
+
keychainUnavailable: "keychainUnavailable";
|
|
8454
|
+
needsFullDiskAccess: "needsFullDiskAccess";
|
|
8455
|
+
needsKeychainApproval: "needsKeychainApproval";
|
|
8456
|
+
notInstalled: "notInstalled";
|
|
8457
|
+
readFailed: "readFailed";
|
|
8458
|
+
unknownSource: "unknownSource";
|
|
8459
|
+
unknownSourceProfile: "unknownSourceProfile";
|
|
8460
|
+
unsupportedPlatform: "unsupportedPlatform";
|
|
8461
|
+
}>;
|
|
8462
|
+
}, z$1.core.$strict>], "ok">;
|
|
8146
8463
|
};
|
|
8147
8464
|
type DesktopBrowserCommand = z$1.infer<typeof desktopBrowserCommandSchema>;
|
|
8148
8465
|
type DesktopBrowserCommandType = DesktopBrowserCommand["type"];
|
|
@@ -8153,7 +8470,9 @@ interface CreateFilePreviewResponse {
|
|
|
8153
8470
|
baseUrl: string;
|
|
8154
8471
|
expiresAtMs: number;
|
|
8155
8472
|
}
|
|
8156
|
-
type HostFileReadResponse = HostDaemonOnlineRpcResultByType["host.read_file"]
|
|
8473
|
+
type HostFileReadResponse = Exclude<HostDaemonOnlineRpcResultByType["host.read_file"], {
|
|
8474
|
+
notModified: true;
|
|
8475
|
+
}>;
|
|
8157
8476
|
type HostFileWriteResponse = HostDaemonOnlineRpcResultByType["host.write_file"];
|
|
8158
8477
|
type HostFileListResponse = HostDaemonOnlineRpcResultByType["host.list_files"];
|
|
8159
8478
|
type HostPathListResponse = HostDaemonOnlineRpcResultByType["host.list_paths"];
|
|
@@ -8367,6 +8686,7 @@ declare const installedPluginSchema: z$1.ZodObject<{
|
|
|
8367
8686
|
incompatible: "incompatible";
|
|
8368
8687
|
missing: "missing";
|
|
8369
8688
|
running: "running";
|
|
8689
|
+
starting: "starting";
|
|
8370
8690
|
}>;
|
|
8371
8691
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
8372
8692
|
updateState: z$1.ZodObject<{
|
|
@@ -8486,6 +8806,7 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
8486
8806
|
incompatible: "incompatible";
|
|
8487
8807
|
missing: "missing";
|
|
8488
8808
|
running: "running";
|
|
8809
|
+
starting: "starting";
|
|
8489
8810
|
}>;
|
|
8490
8811
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
8491
8812
|
updateState: z$1.ZodObject<{
|
|
@@ -8607,6 +8928,7 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
|
8607
8928
|
incompatible: "incompatible";
|
|
8608
8929
|
missing: "missing";
|
|
8609
8930
|
running: "running";
|
|
8931
|
+
starting: "starting";
|
|
8610
8932
|
}>;
|
|
8611
8933
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
8612
8934
|
updateState: z$1.ZodObject<{
|
|
@@ -9198,8 +9520,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
9198
9520
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
9199
9521
|
managedBranchPrefix: z$1.ZodString;
|
|
9200
9522
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
9523
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
9201
9524
|
showKeyboardHints: z$1.ZodBoolean;
|
|
9202
|
-
showUnhandledProviderEvents: z$1.ZodBoolean
|
|
9525
|
+
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
9203
9526
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
9204
9527
|
streamerMode: z$1.ZodBoolean;
|
|
9205
9528
|
}, z$1.core.$strict>;
|
|
@@ -9481,8 +9804,42 @@ declare const systemInstallCliSkillsResponseSchema: z$1.ZodObject<{
|
|
|
9481
9804
|
ok: z$1.ZodLiteral<false>;
|
|
9482
9805
|
}, z$1.core.$strip>], "ok">>;
|
|
9483
9806
|
}, z$1.core.$strip>;
|
|
9484
|
-
type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
|
|
9485
|
-
type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
|
|
9807
|
+
type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
|
|
9808
|
+
type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
|
|
9809
|
+
declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
|
|
9810
|
+
acceptsEmptyInputs: z$1.ZodBoolean;
|
|
9811
|
+
availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9812
|
+
status: z$1.ZodLiteral<"available">;
|
|
9813
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9814
|
+
message: z$1.ZodString;
|
|
9815
|
+
status: z$1.ZodLiteral<"setup-required">;
|
|
9816
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9817
|
+
message: z$1.ZodString;
|
|
9818
|
+
status: z$1.ZodLiteral<"unavailable">;
|
|
9819
|
+
}, z$1.core.$strip>], "status">>;
|
|
9820
|
+
displayName: z$1.ZodString;
|
|
9821
|
+
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
9822
|
+
id: z$1.ZodString;
|
|
9823
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
9824
|
+
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9825
|
+
pluginId: z$1.ZodString;
|
|
9826
|
+
requires: z$1.ZodObject<{
|
|
9827
|
+
gitCheckout: z$1.ZodBoolean;
|
|
9828
|
+
gitRemote: z$1.ZodBoolean;
|
|
9829
|
+
projectCheckout: z$1.ZodBoolean;
|
|
9830
|
+
projectless: z$1.ZodBoolean;
|
|
9831
|
+
}, z$1.core.$strip>;
|
|
9832
|
+
}, z$1.core.$strip>;
|
|
9833
|
+
type SystemEnvironmentProvider = z$1.infer<typeof systemEnvironmentProviderSchema>;
|
|
9834
|
+
|
|
9835
|
+
interface UiPreferencesResponse {
|
|
9836
|
+
preferences: UiPreferenceEntries;
|
|
9837
|
+
}
|
|
9838
|
+
interface UiPreferenceResponse<Key extends UiPreferenceKey = UiPreferenceKey> {
|
|
9839
|
+
key: Key;
|
|
9840
|
+
revision: number;
|
|
9841
|
+
value: UiPreferenceValue<Key>;
|
|
9842
|
+
}
|
|
9486
9843
|
|
|
9487
9844
|
declare const terminalSessionSchema: z$1.ZodObject<{
|
|
9488
9845
|
closeReason: z$1.ZodNullable<z$1.ZodEnum<{
|
|
@@ -9781,8 +10138,10 @@ declare const timelineSystemRowSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
9781
10138
|
compaction: "compaction";
|
|
9782
10139
|
deprecation: "deprecation";
|
|
9783
10140
|
generic: "generic";
|
|
10141
|
+
reasoning: "reasoning";
|
|
9784
10142
|
warning: "warning";
|
|
9785
10143
|
}>;
|
|
10144
|
+
reasoningId: z$1.ZodOptional<z$1.ZodString>;
|
|
9786
10145
|
sourceSeqEnd: z$1.ZodNumber;
|
|
9787
10146
|
sourceSeqStart: z$1.ZodNumber;
|
|
9788
10147
|
startedAt: z$1.ZodNumber;
|
|
@@ -9867,6 +10226,11 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
9867
10226
|
kind: z$1.ZodLiteral<"work">;
|
|
9868
10227
|
output: z$1.ZodString;
|
|
9869
10228
|
outputPreview: z$1.ZodOptional<z$1.ZodObject<{
|
|
10229
|
+
experimental_fullOutputAvailability: z$1.ZodEnum<{
|
|
10230
|
+
"detail-limit": "detail-limit";
|
|
10231
|
+
"retention-expired": "retention-expired";
|
|
10232
|
+
available: "available";
|
|
10233
|
+
}>;
|
|
9870
10234
|
totalChars: z$1.ZodNumber;
|
|
9871
10235
|
}, z$1.core.$strip>>;
|
|
9872
10236
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -9921,6 +10285,11 @@ declare const timelineToolWorkRowSchema: z$1.ZodObject<{
|
|
|
9921
10285
|
kind: z$1.ZodLiteral<"work">;
|
|
9922
10286
|
output: z$1.ZodString;
|
|
9923
10287
|
outputPreview: z$1.ZodOptional<z$1.ZodObject<{
|
|
10288
|
+
experimental_fullOutputAvailability: z$1.ZodEnum<{
|
|
10289
|
+
"detail-limit": "detail-limit";
|
|
10290
|
+
"retention-expired": "retention-expired";
|
|
10291
|
+
available: "available";
|
|
10292
|
+
}>;
|
|
9924
10293
|
totalChars: z$1.ZodNumber;
|
|
9925
10294
|
}, z$1.core.$strip>>;
|
|
9926
10295
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -10164,6 +10533,55 @@ declare const timelineImageViewWorkRowSchema: z$1.ZodObject<{
|
|
|
10164
10533
|
workKind: z$1.ZodLiteral<"image-view">;
|
|
10165
10534
|
}, z$1.core.$strip>;
|
|
10166
10535
|
type TimelineImageViewWorkRow = z$1.infer<typeof timelineImageViewWorkRowSchema>;
|
|
10536
|
+
declare const timelineImageGenerationWorkRowSchema: z$1.ZodObject<{
|
|
10537
|
+
callId: z$1.ZodString;
|
|
10538
|
+
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
10539
|
+
createdAt: z$1.ZodNumber;
|
|
10540
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
10541
|
+
id: z$1.ZodString;
|
|
10542
|
+
kind: z$1.ZodLiteral<"work">;
|
|
10543
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
10544
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
10545
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
10546
|
+
glyph: z$1.ZodString;
|
|
10547
|
+
hint: z$1.ZodString;
|
|
10548
|
+
label: z$1.ZodString;
|
|
10549
|
+
tone: z$1.ZodEnum<{
|
|
10550
|
+
destructive: "destructive";
|
|
10551
|
+
neutral: "neutral";
|
|
10552
|
+
}>;
|
|
10553
|
+
}, z$1.core.$strip>>;
|
|
10554
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
10555
|
+
icon: z$1.ZodObject<{
|
|
10556
|
+
glyph: z$1.ZodString;
|
|
10557
|
+
}, z$1.core.$strip>;
|
|
10558
|
+
label: z$1.ZodObject<{
|
|
10559
|
+
completed: z$1.ZodString;
|
|
10560
|
+
pending: z$1.ZodString;
|
|
10561
|
+
}, z$1.core.$strip>;
|
|
10562
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10563
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
10564
|
+
dark: z$1.ZodString;
|
|
10565
|
+
light: z$1.ZodString;
|
|
10566
|
+
}, z$1.core.$strip>>;
|
|
10567
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
10568
|
+
}, z$1.core.$strip>>;
|
|
10569
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
10570
|
+
sourceSeqEnd: z$1.ZodNumber;
|
|
10571
|
+
sourceSeqStart: z$1.ZodNumber;
|
|
10572
|
+
startedAt: z$1.ZodNumber;
|
|
10573
|
+
status: z$1.ZodEnum<{
|
|
10574
|
+
completed: "completed";
|
|
10575
|
+
error: "error";
|
|
10576
|
+
interrupted: "interrupted";
|
|
10577
|
+
pending: "pending";
|
|
10578
|
+
}>;
|
|
10579
|
+
threadId: z$1.ZodString;
|
|
10580
|
+
transparentBackground: z$1.ZodBoolean;
|
|
10581
|
+
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
10582
|
+
workKind: z$1.ZodLiteral<"image-generation">;
|
|
10583
|
+
}, z$1.core.$strip>;
|
|
10584
|
+
type TimelineImageGenerationWorkRow = z$1.infer<typeof timelineImageGenerationWorkRowSchema>;
|
|
10167
10585
|
declare const timelineFileReadWorkRowSchema: z$1.ZodObject<{
|
|
10168
10586
|
callId: z$1.ZodString;
|
|
10169
10587
|
cmd: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10584,7 +11002,7 @@ declare const timelineWorkflowWorkRowSchema: z$1.ZodObject<{
|
|
|
10584
11002
|
workflowName: z$1.ZodNullable<z$1.ZodString>;
|
|
10585
11003
|
}, z$1.core.$strip>;
|
|
10586
11004
|
type TimelineWorkflowWorkRow = z$1.infer<typeof timelineWorkflowWorkRowSchema>;
|
|
10587
|
-
type TimelineWorkRow = TimelineCommandWorkRow | TimelineToolWorkRow | TimelineFileChangeWorkRow | TimelineWebSearchWorkRow | TimelineWebFetchWorkRow | TimelineImageViewWorkRow | TimelineFileReadWorkRow | TimelineSearchWorkRow | TimelinePlanStepsWorkRow | TimelineExtensionWorkRow | TimelineApprovalWorkRow | TimelineQuestionWorkRow | TimelineDelegationWorkRow | TimelineWorkflowWorkRow;
|
|
11005
|
+
type TimelineWorkRow = TimelineCommandWorkRow | TimelineToolWorkRow | TimelineFileChangeWorkRow | TimelineWebSearchWorkRow | TimelineWebFetchWorkRow | TimelineImageGenerationWorkRow | TimelineImageViewWorkRow | TimelineFileReadWorkRow | TimelineSearchWorkRow | TimelinePlanStepsWorkRow | TimelineExtensionWorkRow | TimelineApprovalWorkRow | TimelineQuestionWorkRow | TimelineDelegationWorkRow | TimelineWorkflowWorkRow;
|
|
10588
11006
|
interface TimelineTurnRow extends TimelineRowBase {
|
|
10589
11007
|
kind: "turn";
|
|
10590
11008
|
turnId: string;
|
|
@@ -10665,6 +11083,14 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
10665
11083
|
}, z$1.core.$strip>], "type">;
|
|
10666
11084
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10667
11085
|
type: z$1.ZodLiteral<"project-default">;
|
|
11086
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11087
|
+
environmentProviderId: z$1.ZodString;
|
|
11088
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
11089
|
+
machine: z$1.ZodObject<{
|
|
11090
|
+
hostId: z$1.ZodString;
|
|
11091
|
+
type: z$1.ZodLiteral<"existing">;
|
|
11092
|
+
}, z$1.core.$strip>;
|
|
11093
|
+
type: z$1.ZodLiteral<"provider">;
|
|
10668
11094
|
}, z$1.core.$strip>], "type">;
|
|
10669
11095
|
executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
|
|
10670
11096
|
model: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -10933,6 +11359,14 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
10933
11359
|
}, z$1.core.$strip>], "type">;
|
|
10934
11360
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10935
11361
|
type: z$1.ZodLiteral<"project-default">;
|
|
11362
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11363
|
+
environmentProviderId: z$1.ZodString;
|
|
11364
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
11365
|
+
machine: z$1.ZodObject<{
|
|
11366
|
+
hostId: z$1.ZodString;
|
|
11367
|
+
type: z$1.ZodLiteral<"existing">;
|
|
11368
|
+
}, z$1.core.$strip>;
|
|
11369
|
+
type: z$1.ZodLiteral<"provider">;
|
|
10936
11370
|
}, z$1.core.$strip>], "type">>;
|
|
10937
11371
|
input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10938
11372
|
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -11265,6 +11699,11 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
11265
11699
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
11266
11700
|
groupWithNext: z$1.ZodBoolean;
|
|
11267
11701
|
id: z$1.ZodString;
|
|
11702
|
+
initiator: z$1.ZodEnum<{
|
|
11703
|
+
agent: "agent";
|
|
11704
|
+
system: "system";
|
|
11705
|
+
user: "user";
|
|
11706
|
+
}>;
|
|
11268
11707
|
model: z$1.ZodString;
|
|
11269
11708
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11270
11709
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -11290,6 +11729,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
11290
11729
|
xhigh: "xhigh";
|
|
11291
11730
|
}>;
|
|
11292
11731
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11732
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
11293
11733
|
serviceTier: z$1.ZodEnum<{
|
|
11294
11734
|
default: "default";
|
|
11295
11735
|
fast: "fast";
|
|
@@ -11806,6 +12246,11 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
11806
12246
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
11807
12247
|
groupWithNext: z$1.ZodBoolean;
|
|
11808
12248
|
id: z$1.ZodString;
|
|
12249
|
+
initiator: z$1.ZodEnum<{
|
|
12250
|
+
agent: "agent";
|
|
12251
|
+
system: "system";
|
|
12252
|
+
user: "user";
|
|
12253
|
+
}>;
|
|
11809
12254
|
model: z$1.ZodString;
|
|
11810
12255
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11811
12256
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -11831,6 +12276,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
11831
12276
|
xhigh: "xhigh";
|
|
11832
12277
|
}>;
|
|
11833
12278
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
12279
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
11834
12280
|
serviceTier: z$1.ZodEnum<{
|
|
11835
12281
|
default: "default";
|
|
11836
12282
|
fast: "fast";
|
|
@@ -11872,7 +12318,10 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
11872
12318
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11873
12319
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
11874
12320
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12321
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
11875
12322
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12323
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12324
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11876
12325
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
11877
12326
|
"managed-worktree": "managed-worktree";
|
|
11878
12327
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -11971,7 +12420,10 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
11971
12420
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11972
12421
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
11973
12422
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12423
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
11974
12424
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12425
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12426
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11975
12427
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
11976
12428
|
"managed-worktree": "managed-worktree";
|
|
11977
12429
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -12061,7 +12513,10 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
12061
12513
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
12062
12514
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
12063
12515
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12516
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
12064
12517
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12518
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12519
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
12065
12520
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
12066
12521
|
"managed-worktree": "managed-worktree";
|
|
12067
12522
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -12189,10 +12644,37 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
12189
12644
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
12190
12645
|
createdAt: z$1.ZodNumber;
|
|
12191
12646
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
12647
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
12648
|
+
environmentProviderInstanceKey: z$1.ZodNullable<z$1.ZodString>;
|
|
12649
|
+
environmentProviderSelection: z$1.ZodNullable<z$1.ZodObject<{
|
|
12650
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
12651
|
+
machine: z$1.ZodObject<{
|
|
12652
|
+
hostId: z$1.ZodString;
|
|
12653
|
+
type: z$1.ZodLiteral<"existing">;
|
|
12654
|
+
}, z$1.core.$strip>;
|
|
12655
|
+
}, z$1.core.$strip>>;
|
|
12192
12656
|
hostId: z$1.ZodString;
|
|
12193
12657
|
id: z$1.ZodString;
|
|
12194
12658
|
isGitRepo: z$1.ZodBoolean;
|
|
12195
12659
|
isWorktree: z$1.ZodBoolean;
|
|
12660
|
+
lifecycle: z$1.ZodObject<{
|
|
12661
|
+
phase: z$1.ZodEnum<{
|
|
12662
|
+
active: "active";
|
|
12663
|
+
destroyed: "destroyed";
|
|
12664
|
+
retiring: "retiring";
|
|
12665
|
+
teardown: "teardown";
|
|
12666
|
+
}>;
|
|
12667
|
+
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
12668
|
+
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
12669
|
+
attempt: z$1.ZodNumber;
|
|
12670
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
12671
|
+
status: z$1.ZodEnum<{
|
|
12672
|
+
failed: "failed";
|
|
12673
|
+
removed: "removed";
|
|
12674
|
+
running: "running";
|
|
12675
|
+
}>;
|
|
12676
|
+
}, z$1.core.$strip>>;
|
|
12677
|
+
}, z$1.core.$strip>;
|
|
12196
12678
|
managed: z$1.ZodBoolean;
|
|
12197
12679
|
mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
12198
12680
|
name: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -12200,18 +12682,16 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
12200
12682
|
projectId: z$1.ZodString;
|
|
12201
12683
|
status: z$1.ZodEnum<{
|
|
12202
12684
|
destroyed: "destroyed";
|
|
12203
|
-
destroying: "destroying";
|
|
12204
12685
|
error: "error";
|
|
12205
12686
|
provisioning: "provisioning";
|
|
12206
12687
|
ready: "ready";
|
|
12207
|
-
retiring: "retiring";
|
|
12208
12688
|
}>;
|
|
12209
12689
|
updatedAt: z$1.ZodNumber;
|
|
12210
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
12690
|
+
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
12211
12691
|
"managed-worktree": "managed-worktree";
|
|
12212
12692
|
personal: "personal";
|
|
12213
12693
|
unmanaged: "unmanaged";
|
|
12214
|
-
}
|
|
12694
|
+
}>>;
|
|
12215
12695
|
}, z$1.core.$strip>>>;
|
|
12216
12696
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12217
12697
|
host: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -12622,6 +13102,11 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
12622
13102
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
12623
13103
|
groupWithNext: z$1.ZodBoolean;
|
|
12624
13104
|
id: z$1.ZodString;
|
|
13105
|
+
initiator: z$1.ZodEnum<{
|
|
13106
|
+
agent: "agent";
|
|
13107
|
+
system: "system";
|
|
13108
|
+
user: "user";
|
|
13109
|
+
}>;
|
|
12625
13110
|
model: z$1.ZodString;
|
|
12626
13111
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
12627
13112
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -12647,6 +13132,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
12647
13132
|
xhigh: "xhigh";
|
|
12648
13133
|
}>;
|
|
12649
13134
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13135
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
12650
13136
|
serviceTier: z$1.ZodEnum<{
|
|
12651
13137
|
default: "default";
|
|
12652
13138
|
fast: "fast";
|
|
@@ -12750,6 +13236,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
12750
13236
|
false: "false";
|
|
12751
13237
|
true: "true";
|
|
12752
13238
|
}>>;
|
|
13239
|
+
environmentId: z$1.ZodOptional<z$1.ZodString>;
|
|
12753
13240
|
hasParent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
12754
13241
|
false: "false";
|
|
12755
13242
|
true: "true";
|
|
@@ -13218,6 +13705,34 @@ declare const desktopBrowserLeaseRequestSchema: z$1.ZodObject<{
|
|
|
13218
13705
|
leaseId: z$1.ZodString;
|
|
13219
13706
|
threadId: z$1.ZodString;
|
|
13220
13707
|
}, z$1.core.$strict>;
|
|
13708
|
+
declare const desktopBrowserInstanceRequestSchema: z$1.ZodObject<{
|
|
13709
|
+
generation: z$1.ZodString;
|
|
13710
|
+
hostId: z$1.ZodString;
|
|
13711
|
+
instanceId: z$1.ZodString;
|
|
13712
|
+
}, z$1.core.$strict>;
|
|
13713
|
+
declare const desktopBrowserImportCookiesRequestSchema: z$1.ZodObject<{
|
|
13714
|
+
generation: z$1.ZodString;
|
|
13715
|
+
hostId: z$1.ZodString;
|
|
13716
|
+
instanceId: z$1.ZodString;
|
|
13717
|
+
profile: z$1.ZodDefault<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13718
|
+
id: z$1.ZodString;
|
|
13719
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
13720
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13721
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
13722
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13723
|
+
sourceId: z$1.ZodEnum<{
|
|
13724
|
+
arc: "arc";
|
|
13725
|
+
brave: "brave";
|
|
13726
|
+
chrome: "chrome";
|
|
13727
|
+
chromium: "chromium";
|
|
13728
|
+
edge: "edge";
|
|
13729
|
+
firefox: "firefox";
|
|
13730
|
+
opera: "opera";
|
|
13731
|
+
safari: "safari";
|
|
13732
|
+
vivaldi: "vivaldi";
|
|
13733
|
+
}>;
|
|
13734
|
+
sourceProfileDirectory: z$1.ZodString;
|
|
13735
|
+
}, z$1.core.$strict>;
|
|
13221
13736
|
type ExperimentalDesktopBrowserHostRequest = z$1.infer<typeof desktopBrowserHostRequestSchema>;
|
|
13222
13737
|
type ExperimentalDesktopBrowserScope = z$1.infer<typeof desktopBrowserScopeSchema>;
|
|
13223
13738
|
type ExperimentalDesktopBrowserTabRequest = z$1.infer<typeof desktopBrowserTabRequestSchema>;
|
|
@@ -13243,6 +13758,10 @@ type ExperimentalDesktopBrowserConnection = {
|
|
|
13243
13758
|
wsEndpoint: string;
|
|
13244
13759
|
expiresAt: number;
|
|
13245
13760
|
};
|
|
13761
|
+
type ExperimentalDesktopBrowserInstanceRequest = z$1.infer<typeof desktopBrowserInstanceRequestSchema>;
|
|
13762
|
+
type ExperimentalDesktopBrowserImportCookiesInput = z$1.input<typeof desktopBrowserImportCookiesRequestSchema>;
|
|
13763
|
+
type ExperimentalDesktopBrowserImportSources = DesktopBrowserResult<"desktop.browser.list_import_sources">;
|
|
13764
|
+
type ExperimentalDesktopBrowserImportOutcome = DesktopBrowserResult<"desktop.browser.import_cookies">;
|
|
13246
13765
|
|
|
13247
13766
|
declare const threadTabsResponseSchema: z$1.ZodObject<{
|
|
13248
13767
|
revision: z$1.ZodNumber;
|
|
@@ -14274,11 +14793,6 @@ interface ExperimentalSidebarFooter {
|
|
|
14274
14793
|
* one.
|
|
14275
14794
|
*/
|
|
14276
14795
|
type PluginSidebarThreadIndicator = "background-agent" | "background-command" | "draft" | "goal" | "none" | "plan-mode" | "runtime" | "unread-error" | "unread-success" | "waiting-for-input" | "workflow" | "working-draft";
|
|
14277
|
-
/**
|
|
14278
|
-
* How a thread's environment presents its workspace: a worktree bb manages,
|
|
14279
|
-
* a worktree the user manages, or anything else (a plain checkout).
|
|
14280
|
-
*/
|
|
14281
|
-
type PluginSidebarWorkspaceKind = "managed-worktree" | "other" | "unmanaged-worktree";
|
|
14282
14796
|
/** Live work counts on a thread. All zero means nothing is running. */
|
|
14283
14797
|
interface PluginSidebarThreadActivity {
|
|
14284
14798
|
workflows: number;
|
|
@@ -14327,7 +14841,14 @@ interface PluginSidebarThread {
|
|
|
14327
14841
|
id: string | null;
|
|
14328
14842
|
name: string | null;
|
|
14329
14843
|
branchName: string | null;
|
|
14330
|
-
|
|
14844
|
+
/**
|
|
14845
|
+
* The id of the environment provider that produced this environment, or
|
|
14846
|
+
* null for a project's own checkout. Resolve it against
|
|
14847
|
+
* `GET /system/environment-providers` for a display name and icon.
|
|
14848
|
+
*/
|
|
14849
|
+
providerId: string | null;
|
|
14850
|
+
/** @deprecated Use providerId and the environment provider catalog instead. */
|
|
14851
|
+
workspaceDisplayKind: EnvironmentWorkspaceDisplayKind | null;
|
|
14331
14852
|
} | null;
|
|
14332
14853
|
/**
|
|
14333
14854
|
* The machine this thread's work runs on, with the name resolved for you.
|
|
@@ -14860,6 +15381,52 @@ interface PluginTimelineRendererRegistration {
|
|
|
14860
15381
|
kind: string;
|
|
14861
15382
|
component: ComponentType<PluginTimelineRendererProps>;
|
|
14862
15383
|
}
|
|
15384
|
+
/**
|
|
15385
|
+
* Props passed to an `experimental_environmentProviderInputs` component — the
|
|
15386
|
+
* control the New Thread environment picker renders beside this plugin's
|
|
15387
|
+
* selected environment provider, for the provider's declared `inputs`.
|
|
15388
|
+
*/
|
|
15389
|
+
interface PluginEnvironmentProviderInputsProps {
|
|
15390
|
+
/** Project selected in the composer; null in projectless compose. */
|
|
15391
|
+
projectId: string | null;
|
|
15392
|
+
/**
|
|
15393
|
+
* The enrolled machine the selection names; null before one is picked.
|
|
15394
|
+
*/
|
|
15395
|
+
hostId: string | null;
|
|
15396
|
+
/**
|
|
15397
|
+
* The `inputs` value the selection will carry: null until `onChange`
|
|
15398
|
+
* supplies one.
|
|
15399
|
+
* The server parses it with the provider's `inputs` schema at create time,
|
|
15400
|
+
* so the component only has to produce a value that schema accepts.
|
|
15401
|
+
*/
|
|
15402
|
+
value: JsonValue | null;
|
|
15403
|
+
/**
|
|
15404
|
+
* Replace the inputs that will be submitted or block submission with the
|
|
15405
|
+
* reason the control should show.
|
|
15406
|
+
*/
|
|
15407
|
+
onChange(next: PluginEnvironmentProviderInputsChange): void;
|
|
15408
|
+
}
|
|
15409
|
+
type PluginEnvironmentProviderInputsChange = {
|
|
15410
|
+
status: "ready";
|
|
15411
|
+
value: JsonValue;
|
|
15412
|
+
} | {
|
|
15413
|
+
status: "blocked";
|
|
15414
|
+
reason: string;
|
|
15415
|
+
};
|
|
15416
|
+
/**
|
|
15417
|
+
* Supply the control for one of this plugin's environment providers that
|
|
15418
|
+
* declared `inputs` (registered server-side via
|
|
15419
|
+
* `bb.experimental_environments.register`). The New Thread environment picker
|
|
15420
|
+
* renders the component beside the picker while that provider is selected and
|
|
15421
|
+
* submits the component's latest `onChange` value as the selection's `inputs`.
|
|
15422
|
+
* A provider whose schema rejects empty inputs cannot be submitted without a
|
|
15423
|
+
* registration that reports ready inputs.
|
|
15424
|
+
*/
|
|
15425
|
+
interface PluginEnvironmentProviderInputsRegistration {
|
|
15426
|
+
/** The environment provider id this control supplies inputs for. */
|
|
15427
|
+
environmentProviderId: string;
|
|
15428
|
+
component: ComponentType<PluginEnvironmentProviderInputsProps>;
|
|
15429
|
+
}
|
|
14863
15430
|
interface PluginAppSlots {
|
|
14864
15431
|
homepageSection(registration: PluginHomepageSectionRegistration): void;
|
|
14865
15432
|
settingsSection(registration: PluginSettingsSectionRegistration): void;
|
|
@@ -14918,8 +15485,8 @@ interface PluginAppSlots {
|
|
|
14918
15485
|
*/
|
|
14919
15486
|
commandPaletteAction(registration: PluginCommandPaletteActionRegistration): void;
|
|
14920
15487
|
/**
|
|
14921
|
-
* Draw one agent provider's icon with an inline
|
|
14922
|
-
* its `<img>`-rendered logo file (see
|
|
15488
|
+
* Draw one agent or environment provider's icon with an inline
|
|
15489
|
+
* React component instead of its `<img>`-rendered logo file (see
|
|
14923
15490
|
* {@link PluginProviderIconRegistration}). Experimental: see
|
|
14924
15491
|
* docs/api_to_audit.md.
|
|
14925
15492
|
*/
|
|
@@ -14931,6 +15498,13 @@ interface PluginAppSlots {
|
|
|
14931
15498
|
* docs/api_to_audit.md.
|
|
14932
15499
|
*/
|
|
14933
15500
|
experimental_timelineRenderer(registration: PluginTimelineRendererRegistration): void;
|
|
15501
|
+
/**
|
|
15502
|
+
* Supply the inputs control the New Thread environment picker renders
|
|
15503
|
+
* beside one of this plugin's selected environment providers (see
|
|
15504
|
+
* {@link PluginEnvironmentProviderInputsRegistration}). Experimental:
|
|
15505
|
+
* see docs/api_to_audit.md.
|
|
15506
|
+
*/
|
|
15507
|
+
experimental_environmentProviderInputs(registration: PluginEnvironmentProviderInputsRegistration): void;
|
|
14934
15508
|
}
|
|
14935
15509
|
interface PluginAppComposer {
|
|
14936
15510
|
customize(registration: ComposerCustomization): void;
|
|
@@ -15338,6 +15912,65 @@ interface ExperimentalProviderModelPickerProps {
|
|
|
15338
15912
|
disabled?: boolean;
|
|
15339
15913
|
className?: string;
|
|
15340
15914
|
}
|
|
15915
|
+
/**
|
|
15916
|
+
* Props of the host-owned `experimental_BranchPicker` component — bb's branch
|
|
15917
|
+
* picker bundled with its branch-options loading for the given host and
|
|
15918
|
+
* project, the control bb's own New Thread composer renders as "Branch from".
|
|
15919
|
+
* The host owns fetching, searching, and refreshing the branch list; the
|
|
15920
|
+
* caller owns only the selection.
|
|
15921
|
+
*/
|
|
15922
|
+
interface BranchPickerProps {
|
|
15923
|
+
/**
|
|
15924
|
+
* The enrolled machine whose project checkout supplies the branch list.
|
|
15925
|
+
* Null renders the picker disabled with no options.
|
|
15926
|
+
*/
|
|
15927
|
+
hostId: string | null;
|
|
15928
|
+
/** The project whose source on `hostId` is listed; null disables loading. */
|
|
15929
|
+
projectId: string | null;
|
|
15930
|
+
/**
|
|
15931
|
+
* The selected branch name, or null when no branch is chosen (the host
|
|
15932
|
+
* shows its placeholder and the consumer falls back to its own default).
|
|
15933
|
+
*/
|
|
15934
|
+
value: string | null;
|
|
15935
|
+
/** Called with the picked branch name, or null when the pick is cleared. */
|
|
15936
|
+
onChange(next: string | null): void;
|
|
15937
|
+
/**
|
|
15938
|
+
* Text placed before the branch on the trigger, e.g. "Base:". Omitted, the
|
|
15939
|
+
* trigger is the branch alone.
|
|
15940
|
+
*/
|
|
15941
|
+
label?: string;
|
|
15942
|
+
/**
|
|
15943
|
+
* The trigger while nothing is picked. Omitted, the host shows the resolved
|
|
15944
|
+
* default worktree base branch muted, or a neutral `default` placeholder
|
|
15945
|
+
* when the base cannot be resolved.
|
|
15946
|
+
*/
|
|
15947
|
+
placeholder?: string;
|
|
15948
|
+
/** Render the current selection without allowing changes. */
|
|
15949
|
+
disabled?: boolean;
|
|
15950
|
+
}
|
|
15951
|
+
interface UseBranchesArgs {
|
|
15952
|
+
hostId: string | null;
|
|
15953
|
+
projectId: string | null;
|
|
15954
|
+
query?: string;
|
|
15955
|
+
}
|
|
15956
|
+
interface BranchesState {
|
|
15957
|
+
branches: readonly string[];
|
|
15958
|
+
remoteBranches: readonly string[];
|
|
15959
|
+
isLoading: boolean;
|
|
15960
|
+
refresh(): Promise<void>;
|
|
15961
|
+
}
|
|
15962
|
+
interface UseCheckoutStateArgs {
|
|
15963
|
+
hostId: string | null;
|
|
15964
|
+
projectId: string | null;
|
|
15965
|
+
}
|
|
15966
|
+
interface CheckoutState {
|
|
15967
|
+
isGit: boolean | null;
|
|
15968
|
+
unborn: boolean;
|
|
15969
|
+
detached: boolean;
|
|
15970
|
+
dirty: boolean;
|
|
15971
|
+
currentBranch: string | null;
|
|
15972
|
+
operation: WorkspaceGitOperation;
|
|
15973
|
+
}
|
|
15341
15974
|
/** Props of BB's controlled, host-resolved permission-mode picker. */
|
|
15342
15975
|
interface ExperimentalPermissionModePickerProps {
|
|
15343
15976
|
/** Provider whose supported modes determine the available choices. */
|
|
@@ -15743,6 +16376,23 @@ interface PluginSdkApp {
|
|
|
15743
16376
|
* see docs/api_to_audit.md.
|
|
15744
16377
|
*/
|
|
15745
16378
|
experimental_PermissionModePicker: ComponentType<ExperimentalPermissionModePickerProps>;
|
|
16379
|
+
/**
|
|
16380
|
+
* BB's branch picker with its branch-options loading for one host and
|
|
16381
|
+
* project (see {@link BranchPickerProps}) — the same control
|
|
16382
|
+
* the New Thread composer renders as "Branch from". Experimental: see
|
|
16383
|
+
* docs/api_to_audit.md.
|
|
16384
|
+
*/
|
|
16385
|
+
experimental_BranchPicker: ComponentType<BranchPickerProps>;
|
|
16386
|
+
/**
|
|
16387
|
+
* Search and refresh the branch list for one project source. Experimental:
|
|
16388
|
+
* see docs/api_to_audit.md.
|
|
16389
|
+
*/
|
|
16390
|
+
experimental_useBranches(args: UseBranchesArgs): BranchesState;
|
|
16391
|
+
/**
|
|
16392
|
+
* Inspect the checkout state for one project source. Experimental: see
|
|
16393
|
+
* docs/api_to_audit.md.
|
|
16394
|
+
*/
|
|
16395
|
+
experimental_useCheckoutState(args: UseCheckoutStateArgs): CheckoutState;
|
|
15746
16396
|
/**
|
|
15747
16397
|
* The host-owned source viewer (see {@link SourceCodeProps}). Renders
|
|
15748
16398
|
* supplied source text with BB's syntax highlighting, gutters, and live code
|
|
@@ -15762,6 +16412,112 @@ interface PluginSdkApp {
|
|
|
15762
16412
|
useComposerView(): ComposerView;
|
|
15763
16413
|
}
|
|
15764
16414
|
|
|
16415
|
+
type PluginEnvironmentProviderInputsSchema = StandardSchemaV1$1 | undefined;
|
|
16416
|
+
type Fact<R, K extends PropertyKey, T> = R extends Record<K, true> ? T : T | null;
|
|
16417
|
+
type Checkout<R> = R extends {
|
|
16418
|
+
projectCheckout: true;
|
|
16419
|
+
} | {
|
|
16420
|
+
gitCheckout: true;
|
|
16421
|
+
} ? {
|
|
16422
|
+
path: string;
|
|
16423
|
+
} : {
|
|
16424
|
+
path: string;
|
|
16425
|
+
} | null;
|
|
16426
|
+
type InputsValue<S> = S extends StandardSchemaV1$1 ? StandardSchemaV1InferOutput$1<S> : null;
|
|
16427
|
+
/** Attempt-scoped updates; core persists each update before this call returns. */
|
|
16428
|
+
interface PluginEnvironmentProviderProgress {
|
|
16429
|
+
step(text: string): void;
|
|
16430
|
+
log(text: string): void;
|
|
16431
|
+
}
|
|
16432
|
+
interface PluginEnvironmentProviderValidateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
16433
|
+
project: Project;
|
|
16434
|
+
host: Host;
|
|
16435
|
+
projectCheckout: Checkout<R>;
|
|
16436
|
+
gitRemote: Fact<R, "gitRemote", string>;
|
|
16437
|
+
inputs: InputsValue<S>;
|
|
16438
|
+
}
|
|
16439
|
+
interface PluginEnvironmentProviderAvailabilityContext {
|
|
16440
|
+
project: Project;
|
|
16441
|
+
host: Host;
|
|
16442
|
+
projectCheckout: {
|
|
16443
|
+
path: string;
|
|
16444
|
+
} | null;
|
|
16445
|
+
gitRemote: string | null;
|
|
16446
|
+
}
|
|
16447
|
+
type PluginEnvironmentProviderAvailability = {
|
|
16448
|
+
status: "available";
|
|
16449
|
+
} | {
|
|
16450
|
+
status: "setup-required";
|
|
16451
|
+
message: string;
|
|
16452
|
+
} | {
|
|
16453
|
+
status: "unavailable";
|
|
16454
|
+
message: string;
|
|
16455
|
+
};
|
|
16456
|
+
interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S> {
|
|
16457
|
+
thread: ThreadResponse;
|
|
16458
|
+
suggestedBranchName: string;
|
|
16459
|
+
attempt: number;
|
|
16460
|
+
pathKey: string;
|
|
16461
|
+
rebuild: boolean;
|
|
16462
|
+
experimental_claimPath(path: string): Promise<boolean>;
|
|
16463
|
+
/** Resource is private to this provider; null after completed removal. */
|
|
16464
|
+
previous: {
|
|
16465
|
+
environment: Environment;
|
|
16466
|
+
resource: JsonValue$2 | null;
|
|
16467
|
+
} | null;
|
|
16468
|
+
report: PluginEnvironmentProviderProgress;
|
|
16469
|
+
signal: AbortSignal;
|
|
16470
|
+
}
|
|
16471
|
+
type PluginEnvironmentProviderCreateResult = {
|
|
16472
|
+
status: "created";
|
|
16473
|
+
path: string;
|
|
16474
|
+
ownsPath: boolean;
|
|
16475
|
+
mergeBaseBranch?: string;
|
|
16476
|
+
resource?: JsonValue$2;
|
|
16477
|
+
} | {
|
|
16478
|
+
status: "failed";
|
|
16479
|
+
failure: "terminal" | "transient";
|
|
16480
|
+
message: string;
|
|
16481
|
+
};
|
|
16482
|
+
interface PluginEnvironmentProviderRemoveContext {
|
|
16483
|
+
environment: Environment | null;
|
|
16484
|
+
hostId: string | null;
|
|
16485
|
+
path: string | null;
|
|
16486
|
+
pathKey: string;
|
|
16487
|
+
resource: JsonValue$2 | null;
|
|
16488
|
+
attempt: number;
|
|
16489
|
+
report: PluginEnvironmentProviderProgress;
|
|
16490
|
+
signal: AbortSignal;
|
|
16491
|
+
}
|
|
16492
|
+
type PluginEnvironmentProviderRemoveResult = {
|
|
16493
|
+
status: "removed";
|
|
16494
|
+
} | {
|
|
16495
|
+
status: "failed";
|
|
16496
|
+
message: string;
|
|
16497
|
+
};
|
|
16498
|
+
/** Core normalizes omitted policy members once at registration. */
|
|
16499
|
+
interface PluginEnvironmentProviderPolicy {
|
|
16500
|
+
/** Default five minutes; null keeps the environment indefinitely. */
|
|
16501
|
+
retireGraceMs: number | null;
|
|
16502
|
+
/** Default per-thread; rebuilds use a fresh key to avoid dead paths. */
|
|
16503
|
+
pathKeys: "per-attempt" | "per-thread";
|
|
16504
|
+
}
|
|
16505
|
+
/** Resource operations only. Core owns durable launches, retries and retirement. */
|
|
16506
|
+
interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
16507
|
+
id: string;
|
|
16508
|
+
displayName: string;
|
|
16509
|
+
/** Host glyph, plugin-relative icon path, or this plugin’s declared namespaced icon. */
|
|
16510
|
+
icon?: string;
|
|
16511
|
+
requires?: R;
|
|
16512
|
+
inputs?: S;
|
|
16513
|
+
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
16514
|
+
/** Experimental create-time preflight: see docs/api_to_audit.md. */
|
|
16515
|
+
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
16516
|
+
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision$1 | Promise<PluginEnvironmentValidateDecision$1>;
|
|
16517
|
+
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
16518
|
+
remove(context: PluginEnvironmentProviderRemoveContext): Promise<PluginEnvironmentProviderRemoveResult>;
|
|
16519
|
+
}
|
|
16520
|
+
|
|
15765
16521
|
interface ExperimentalDesktopBrowsersArea {
|
|
15766
16522
|
listInstances(input: ExperimentalDesktopBrowserHostRequest): Promise<ExperimentalDesktopBrowserInstances>;
|
|
15767
16523
|
listTabs(input: ExperimentalDesktopBrowserScope): Promise<ExperimentalDesktopBrowserTabs>;
|
|
@@ -15778,6 +16534,8 @@ interface ExperimentalDesktopBrowsersArea {
|
|
|
15778
16534
|
ok: true;
|
|
15779
16535
|
}>;
|
|
15780
16536
|
captureTab(input: ExperimentalDesktopBrowserTabRequest): Promise<ExperimentalDesktopBrowserCapture>;
|
|
16537
|
+
listImportSources(input: ExperimentalDesktopBrowserInstanceRequest): Promise<ExperimentalDesktopBrowserImportSources>;
|
|
16538
|
+
importCookies(input: ExperimentalDesktopBrowserImportCookiesInput): Promise<ExperimentalDesktopBrowserImportOutcome>;
|
|
15781
16539
|
subscribe(input: ExperimentalDesktopBrowserScope & {
|
|
15782
16540
|
onChange: (result: ExperimentalDesktopBrowserTabs) => void;
|
|
15783
16541
|
onError: (error: Error) => void;
|
|
@@ -15852,6 +16610,30 @@ type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
|
15852
16610
|
type EnvironmentPullRequestResult = EnvironmentPullRequestResponse;
|
|
15853
16611
|
type EnvironmentStatusResult = EnvironmentStatusResponse;
|
|
15854
16612
|
type EnvironmentUpdateResult = Environment;
|
|
16613
|
+
interface EnvironmentListArgs {
|
|
16614
|
+
environmentProviderId?: string;
|
|
16615
|
+
hostId?: string;
|
|
16616
|
+
instanceKey?: string;
|
|
16617
|
+
limit?: number;
|
|
16618
|
+
offset?: number;
|
|
16619
|
+
path?: string;
|
|
16620
|
+
projectId?: string;
|
|
16621
|
+
signal?: AbortSignal;
|
|
16622
|
+
status?: EnvironmentStatus;
|
|
16623
|
+
}
|
|
16624
|
+
type EnvironmentListResult = Environment[];
|
|
16625
|
+
interface EnvironmentDeleteArgs {
|
|
16626
|
+
environmentId: string;
|
|
16627
|
+
}
|
|
16628
|
+
type EnvironmentDeleteResult = {
|
|
16629
|
+
ok: true;
|
|
16630
|
+
};
|
|
16631
|
+
interface EnvironmentListProvidersArgs {
|
|
16632
|
+
projectId?: string;
|
|
16633
|
+
hostId?: string;
|
|
16634
|
+
signal?: AbortSignal;
|
|
16635
|
+
}
|
|
16636
|
+
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
15855
16637
|
interface EnvironmentsArea {
|
|
15856
16638
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
15857
16639
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
@@ -15861,6 +16643,9 @@ interface EnvironmentsArea {
|
|
|
15861
16643
|
diffFiles(args: EnvironmentDiffArgs): Promise<EnvironmentDiffFilesResult>;
|
|
15862
16644
|
diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
|
|
15863
16645
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
16646
|
+
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
16647
|
+
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
16648
|
+
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
15864
16649
|
pullRequest(args: EnvironmentGetArgs): Promise<EnvironmentPullRequestResult>;
|
|
15865
16650
|
markPullRequestDraft(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestDraftResult>;
|
|
15866
16651
|
markPullRequestReady(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestReadyResult>;
|
|
@@ -15891,6 +16676,8 @@ interface FileListArgs {
|
|
|
15891
16676
|
path: string;
|
|
15892
16677
|
query?: string;
|
|
15893
16678
|
limit?: number;
|
|
16679
|
+
includeHidden?: boolean;
|
|
16680
|
+
excludeNames?: string[];
|
|
15894
16681
|
signal?: AbortSignal;
|
|
15895
16682
|
}
|
|
15896
16683
|
interface PathListArgs extends FileListArgs {
|
|
@@ -16487,15 +17274,21 @@ type ThemeGetResult = AppTheme;
|
|
|
16487
17274
|
type ThemeCatalogResult = ThemeCatalogResponse;
|
|
16488
17275
|
type ThemeSetInput = AppThemeSelection;
|
|
16489
17276
|
type ThemeSetResult = AppTheme;
|
|
17277
|
+
type ThemeResolveResult = AppTheme;
|
|
16490
17278
|
interface ThemeCatalogArgs {
|
|
16491
17279
|
signal?: AbortSignal;
|
|
16492
17280
|
}
|
|
16493
17281
|
interface ThemeGetArgs {
|
|
16494
17282
|
signal?: AbortSignal;
|
|
16495
17283
|
}
|
|
17284
|
+
interface ThemeResolveArgs {
|
|
17285
|
+
themeId: string;
|
|
17286
|
+
signal?: AbortSignal;
|
|
17287
|
+
}
|
|
16496
17288
|
interface ThemeArea {
|
|
16497
17289
|
get(args?: ThemeGetArgs): Promise<ThemeGetResult>;
|
|
16498
17290
|
catalog(args?: ThemeCatalogArgs): Promise<ThemeCatalogResult>;
|
|
17291
|
+
resolve(args: ThemeResolveArgs): Promise<ThemeResolveResult>;
|
|
16499
17292
|
set(selection: ThemeSetInput): Promise<ThemeSetResult>;
|
|
16500
17293
|
set(themeId: string): Promise<ThemeSetResult>;
|
|
16501
17294
|
}
|
|
@@ -16534,7 +17327,9 @@ type SystemCliSkillsStatusResult = SystemCliSkillsStatusResponse;
|
|
|
16534
17327
|
type SystemInstallCliSkillsResult = SystemInstallCliSkillsResponse;
|
|
16535
17328
|
type SystemVoiceTranscriptionResult = SystemVoiceTranscriptionResponse;
|
|
16536
17329
|
type SystemUpdateExperimentsResult = Experiments;
|
|
16537
|
-
type SystemUpdateGeneralSettingsResult = AppSettings
|
|
17330
|
+
type SystemUpdateGeneralSettingsResult = AppSettings & {
|
|
17331
|
+
showUnhandledProviderEvents?: boolean;
|
|
17332
|
+
};
|
|
16538
17333
|
type SystemUpdateKeyboardSettingsResult = AppKeybindingOverrides;
|
|
16539
17334
|
type SystemUsageLimitsResult = ProviderUsageResponse;
|
|
16540
17335
|
interface SystemProviderStatesArgs extends SystemProvidersQuery {
|
|
@@ -16542,6 +17337,24 @@ interface SystemProviderStatesArgs extends SystemProvidersQuery {
|
|
|
16542
17337
|
}
|
|
16543
17338
|
type SystemProviderStatesResult = SystemProviderStatesResponse;
|
|
16544
17339
|
type SystemVersionResult = SystemVersionResponse;
|
|
17340
|
+
interface SystemUiPreferencesArgs {
|
|
17341
|
+
signal?: AbortSignal;
|
|
17342
|
+
}
|
|
17343
|
+
type SystemUiPreferencesResult = UiPreferencesResponse;
|
|
17344
|
+
interface SystemUpdateUiPreferenceArgs<Key extends UiPreferenceKey> {
|
|
17345
|
+
expectedRevision: number;
|
|
17346
|
+
key: Key;
|
|
17347
|
+
value: UiPreferenceValue<Key>;
|
|
17348
|
+
}
|
|
17349
|
+
interface SystemResetUiPreferenceArgs<Key extends UiPreferenceKey> {
|
|
17350
|
+
key: Key;
|
|
17351
|
+
}
|
|
17352
|
+
type SystemUiPreferenceResult<Key extends UiPreferenceKey> = UiPreferenceResponse<Key>;
|
|
17353
|
+
interface SystemUiPreferencesArea {
|
|
17354
|
+
list(args?: SystemUiPreferencesArgs): Promise<SystemUiPreferencesResult>;
|
|
17355
|
+
set<Key extends UiPreferenceKey>(args: SystemUpdateUiPreferenceArgs<Key>): Promise<SystemUiPreferenceResult<Key>>;
|
|
17356
|
+
reset<Key extends UiPreferenceKey>(args: SystemResetUiPreferenceArgs<Key>): Promise<SystemUiPreferenceResult<Key>>;
|
|
17357
|
+
}
|
|
16545
17358
|
interface SystemArea {
|
|
16546
17359
|
attention(args?: SystemAttentionArgs): Promise<SystemAttentionResult>;
|
|
16547
17360
|
config(args?: SystemConfigArgs): Promise<SystemConfigResult>;
|
|
@@ -16550,8 +17363,9 @@ interface SystemArea {
|
|
|
16550
17363
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
16551
17364
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
16552
17365
|
transcribeVoice(args: SystemVoiceTranscriptionArgs): Promise<SystemVoiceTranscriptionResult>;
|
|
17366
|
+
uiPreferences: SystemUiPreferencesArea;
|
|
16553
17367
|
updateExperiments(args: Experiments): Promise<SystemUpdateExperimentsResult>;
|
|
16554
|
-
updateGeneralSettings(args:
|
|
17368
|
+
updateGeneralSettings(args: AppSettingsUpdate): Promise<SystemUpdateGeneralSettingsResult>;
|
|
16555
17369
|
updateKeyboardSettings(args: AppKeybindingOverrides): Promise<SystemUpdateKeyboardSettingsResult>;
|
|
16556
17370
|
providerStates(args?: SystemProviderStatesArgs): Promise<SystemProviderStatesResult>;
|
|
16557
17371
|
usageLimits(args?: SystemUsageLimitsArgs): Promise<SystemUsageLimitsResult>;
|
|
@@ -16648,6 +17462,7 @@ interface TerminalsArea {
|
|
|
16648
17462
|
|
|
16649
17463
|
interface ThreadListArgs {
|
|
16650
17464
|
archived?: boolean;
|
|
17465
|
+
environmentId?: string;
|
|
16651
17466
|
sectionId?: string;
|
|
16652
17467
|
hasParent?: boolean;
|
|
16653
17468
|
includeHidden?: boolean;
|
|
@@ -17092,6 +17907,13 @@ type ExperimentalHostSignals = Readonly<Record<string, ExperimentalHostSignalCon
|
|
|
17092
17907
|
interface ExperimentalHostCallOptions {
|
|
17093
17908
|
readonly hostId: string;
|
|
17094
17909
|
readonly signal?: AbortSignal;
|
|
17910
|
+
/**
|
|
17911
|
+
* How long the call may run before it fails, in milliseconds. Defaults to
|
|
17912
|
+
* 30 seconds; capped at 30 minutes. Work that legitimately runs longer —
|
|
17913
|
+
* a setup script, a clone — should either set this or be split into a
|
|
17914
|
+
* job the host entry runs in the background and reports on.
|
|
17915
|
+
*/
|
|
17916
|
+
readonly timeoutMs?: number;
|
|
17095
17917
|
}
|
|
17096
17918
|
interface ExperimentalHostClient<Contract extends PluginRpcContract, Signals extends ExperimentalHostSignals = {}> {
|
|
17097
17919
|
call<MethodName extends keyof Contract & string>(method: MethodName, input: StandardSchemaV1InferInput<Contract[MethodName]["input"]>, options: ExperimentalHostCallOptions): Promise<PluginRpcResult<Contract[MethodName]>>;
|
|
@@ -17387,6 +18209,16 @@ interface PluginThreadEventPayloads {
|
|
|
17387
18209
|
"thread.archived": {
|
|
17388
18210
|
thread: ThreadResponse;
|
|
17389
18211
|
};
|
|
18212
|
+
/**
|
|
18213
|
+
* Fired after a thread comes back from the archive. Nothing is provisioned
|
|
18214
|
+
* here: a provider that tore its environment down on archive is asked to
|
|
18215
|
+
* provide one again when the thread next needs to run, with that
|
|
18216
|
+
* environment in the ask's context. This is the moment to start warming
|
|
18217
|
+
* one up ahead of that ask.
|
|
18218
|
+
*/
|
|
18219
|
+
"thread.unarchived": {
|
|
18220
|
+
thread: ThreadResponse;
|
|
18221
|
+
};
|
|
17390
18222
|
/** Fired after a thread is soft-deleted. */
|
|
17391
18223
|
"thread.deleted": {
|
|
17392
18224
|
thread: ThreadResponse;
|
|
@@ -17430,9 +18262,94 @@ interface PluginThreadEventPayloads {
|
|
|
17430
18262
|
* that is at capacity instead of jumping the queue.
|
|
17431
18263
|
*/
|
|
17432
18264
|
"turn.failed": PluginTurnFailedEvent;
|
|
18265
|
+
/**
|
|
18266
|
+
* Fired after a queued row is removed before it ever dispatched — the user
|
|
18267
|
+
* deleted it from the queued card or `bb thread queue`. This is the only
|
|
18268
|
+
* signal for that removal: a plugin holding external resources for a
|
|
18269
|
+
* waiting message (a sandbox mid-provision, a reserved slot) releases them
|
|
18270
|
+
* here. Rows that dispatch fire `message.dispatched` instead, and rows that
|
|
18271
|
+
* vanish because their thread was archived or deleted fire the thread
|
|
18272
|
+
* event, not this one.
|
|
18273
|
+
*/
|
|
18274
|
+
"message.cancelled": {
|
|
18275
|
+
entry: ThreadQueuedMessage;
|
|
18276
|
+
};
|
|
17433
18277
|
}
|
|
17434
18278
|
type PluginThreadEventName = keyof PluginThreadEventPayloads;
|
|
17435
18279
|
type PluginThreadEventHandler<E extends PluginThreadEventName> = (payload: PluginThreadEventPayloads[E]) => void | Promise<void>;
|
|
18280
|
+
/**
|
|
18281
|
+
* The facts this provider consumes, in one declaration. Every member is
|
|
18282
|
+
* something core can evaluate before the thread exists and supply to
|
|
18283
|
+
* `create`, so it is also the whole of what decides where the provider is
|
|
18284
|
+
* offered, and the picker needs to know no provider by name. Every member
|
|
18285
|
+
* defaults to false.
|
|
18286
|
+
*
|
|
18287
|
+
* - `projectCheckout` — the provider works from this project's directory on
|
|
18288
|
+
* that machine, git or not, so core refuses a machine with no checkout of
|
|
18289
|
+
* the project at create time and `context.projectCheckout` is non-null.
|
|
18290
|
+
* - `gitCheckout` — that directory must also be a git repository with at
|
|
18291
|
+
* least one commit. Core inspects the selected machine and rejects an
|
|
18292
|
+
* invalid selection before creating the thread. Implies `projectCheckout`.
|
|
18293
|
+
* - `gitRemote` — the provider clones the project itself, so an explicit
|
|
18294
|
+
* selection is rejected when the project has no git remote.
|
|
18295
|
+
* - `projectless` — this provider serves only threads that have no project,
|
|
18296
|
+
* so it is offered for those and nowhere else. It cannot be combined with
|
|
18297
|
+
* `projectCheckout`, `gitCheckout` or `gitRemote`, which need a project.
|
|
18298
|
+
*/
|
|
18299
|
+
interface PluginEnvironmentProviderRequirements {
|
|
18300
|
+
projectCheckout?: boolean;
|
|
18301
|
+
gitCheckout?: boolean;
|
|
18302
|
+
gitRemote?: boolean;
|
|
18303
|
+
projectless?: boolean;
|
|
18304
|
+
}
|
|
18305
|
+
/**
|
|
18306
|
+
* What `validate` answers. `refuse` fails the create request with `message`
|
|
18307
|
+
* as the caller's error, before a thread or an environment row exists.
|
|
18308
|
+
*/
|
|
18309
|
+
type PluginEnvironmentValidateDecision = {
|
|
18310
|
+
action: "accept";
|
|
18311
|
+
} | {
|
|
18312
|
+
action: "refuse";
|
|
18313
|
+
message: string;
|
|
18314
|
+
};
|
|
18315
|
+
/**
|
|
18316
|
+
* Resource operations for one place a thread can run. Core persists progress,
|
|
18317
|
+
* retries, cancellation and retirement. Operations must be idempotent for the
|
|
18318
|
+
* supplied pathKey. Provider ids are unique across running plugins.
|
|
18319
|
+
*/
|
|
18320
|
+
type PluginEnvironmentProviderDeclaration<Requires extends PluginEnvironmentProviderRequirements = PluginEnvironmentProviderRequirements, Inputs extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> = PluginEnvironmentProviderDefinition<Requires, Inputs>;
|
|
18321
|
+
interface PluginEnvironments {
|
|
18322
|
+
/**
|
|
18323
|
+
* Offer a place threads can run. Registering an id this plugin already
|
|
18324
|
+
* registered replaces it. Experimental: see docs/api_to_audit.md.
|
|
18325
|
+
*/
|
|
18326
|
+
register<const Requires extends PluginEnvironmentProviderRequirements, const Inputs extends PluginEnvironmentProviderInputsSchema = undefined>(declaration: PluginEnvironmentProviderDeclaration<Requires, Inputs>): void;
|
|
18327
|
+
/**
|
|
18328
|
+
* Ask core to re-ask this plugin's waiting providers now instead of at their
|
|
18329
|
+
* `sendAt`. Resolves on scheduling, exactly like
|
|
18330
|
+
* `experimental_hooks.recheck`.
|
|
18331
|
+
*/
|
|
18332
|
+
recheck(): Promise<void>;
|
|
18333
|
+
}
|
|
18334
|
+
/**
|
|
18335
|
+
* Where a thread is going to run, as far as core knows at the checkpoint.
|
|
18336
|
+
* Before provisioning attaches an environment this is the start intent the
|
|
18337
|
+
* thread was created with; afterwards it is the environment itself.
|
|
18338
|
+
*/
|
|
18339
|
+
type PluginDispatchEnvironmentIntent = {
|
|
18340
|
+
kind: "environment";
|
|
18341
|
+
environmentId: string;
|
|
18342
|
+
}
|
|
18343
|
+
/** Ask a registered environment provider for the environment. */
|
|
18344
|
+
| {
|
|
18345
|
+
kind: "provider";
|
|
18346
|
+
environmentProviderId: string;
|
|
18347
|
+
machine: {
|
|
18348
|
+
type: "existing";
|
|
18349
|
+
hostId: string;
|
|
18350
|
+
};
|
|
18351
|
+
inputs: JsonValue | null;
|
|
18352
|
+
};
|
|
17436
18353
|
/**
|
|
17437
18354
|
* What a `message.dispatch` hook answers.
|
|
17438
18355
|
*
|
|
@@ -17534,6 +18451,13 @@ interface MessageDispatchHookContext {
|
|
|
17534
18451
|
* about to occupy. Null only when neither names a machine.
|
|
17535
18452
|
*/
|
|
17536
18453
|
host: Host | null;
|
|
18454
|
+
/**
|
|
18455
|
+
* What kind of environment the thread will run in, so a policy can tell a
|
|
18456
|
+
* worktree on this machine from a cloud sandbox from an attached directory
|
|
18457
|
+
* before any of them exists. Null only for a thread with neither an
|
|
18458
|
+
* environment nor a start intent.
|
|
18459
|
+
*/
|
|
18460
|
+
environmentIntent: PluginDispatchEnvironmentIntent | null;
|
|
17537
18461
|
input: PluginDispatchInput;
|
|
17538
18462
|
requestedExecution: PluginDispatchExecution;
|
|
17539
18463
|
/** Where each execution value came from. */
|
|
@@ -17901,8 +18825,9 @@ interface PluginAgentConfigurationContext {
|
|
|
17901
18825
|
id: string;
|
|
17902
18826
|
name: string | null;
|
|
17903
18827
|
path: string | null;
|
|
17904
|
-
workspaceProvisionType: "managed-worktree" | "personal" | "unmanaged";
|
|
17905
18828
|
branchName: string | null;
|
|
18829
|
+
/** @deprecated Use environment provider identity and capabilities instead. */
|
|
18830
|
+
workspaceProvisionType: WorkspaceProvisionType | null;
|
|
17906
18831
|
};
|
|
17907
18832
|
host: {
|
|
17908
18833
|
id: string;
|
|
@@ -18612,6 +19537,12 @@ interface BbPluginApi {
|
|
|
18612
19537
|
* reason, or refuse.
|
|
18613
19538
|
*/
|
|
18614
19539
|
readonly experimental_hooks: PluginHooks;
|
|
19540
|
+
/**
|
|
19541
|
+
* Environment targets: places a thread can run that this plugin
|
|
19542
|
+
* provisions (plans/plugin-environment-providers.md). Experimental: see
|
|
19543
|
+
* docs/api_to_audit.md.
|
|
19544
|
+
*/
|
|
19545
|
+
readonly experimental_environments: PluginEnvironments;
|
|
18615
19546
|
/** Plugin-reported status (needs-configuration). */
|
|
18616
19547
|
readonly status: PluginStatusApi;
|
|
18617
19548
|
/** Read-only facts about the running server (loopback base URL). */
|
|
@@ -18641,4 +19572,4 @@ interface BbPluginApi {
|
|
|
18641
19572
|
}
|
|
18642
19573
|
|
|
18643
19574
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
|
|
18644
|
-
export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginFixedTabReference, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState,
|
|
19575
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginFixedTabReference, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|