@get-bb/plugin-sdk 0.4.10 → 0.4.11
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/bundled-types/bb-plugin-sdk-app.d.ts +97 -3
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +165 -9
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +3314 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +1114 -371
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +6 -1
- package/bundled-types/bb-plugin-sdk.d.ts +1409 -270
- package/dist/app.js +2 -0
- package/dist/internal/host-policy.js +369 -10
- package/dist/provider-bridge-testing.js +5777 -0
- package/dist/provider-bridge.js +2697 -2083
- package/dist/testing/app.js +9 -1
- package/dist/testing/index.js +384 -27
- package/package.json +7 -1
|
@@ -17,11 +17,8 @@ import { Context } from 'hono';
|
|
|
17
17
|
* Client-local settings stay in the frontend localStorage helpers instead.
|
|
18
18
|
*/
|
|
19
19
|
declare const appSettingsSchema: z$1.ZodObject<{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
claudeCodeWorkflowsDisabled: z$1.ZodBoolean;
|
|
23
|
-
codexMemoryEnabled: z$1.ZodBoolean;
|
|
24
|
-
codexSubagentsDisabled: z$1.ZodBoolean;
|
|
20
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
21
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
25
22
|
showKeyboardHints: z$1.ZodBoolean;
|
|
26
23
|
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
27
24
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
@@ -172,7 +169,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
172
169
|
id: z$1.ZodOptional<z$1.ZodString>;
|
|
173
170
|
metadata: z$1.ZodOptional<z$1.ZodObject<{
|
|
174
171
|
backgroundActivityChanged: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
175
|
-
eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string>>>>>;
|
|
172
|
+
eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string>>>>>;
|
|
176
173
|
hasPendingInteraction: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
177
174
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
178
175
|
}, z$1.core.$strict>>;
|
|
@@ -398,6 +395,26 @@ declare const providerPendingInteractionSchema: z$1.ZodObject<{
|
|
|
398
395
|
kind: z$1.ZodLiteral<"plan">;
|
|
399
396
|
plan: z$1.ZodString;
|
|
400
397
|
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
398
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
399
|
+
itemId: z$1.ZodString;
|
|
400
|
+
kind: z$1.ZodLiteral<"tool_use">;
|
|
401
|
+
presentation: z$1.ZodObject<{
|
|
402
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
403
|
+
icon: z$1.ZodObject<{
|
|
404
|
+
glyph: z$1.ZodString;
|
|
405
|
+
}, z$1.core.$strip>;
|
|
406
|
+
label: z$1.ZodObject<{
|
|
407
|
+
completed: z$1.ZodString;
|
|
408
|
+
pending: z$1.ZodString;
|
|
409
|
+
}, z$1.core.$strip>;
|
|
410
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
411
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
412
|
+
dark: z$1.ZodString;
|
|
413
|
+
light: z$1.ZodString;
|
|
414
|
+
}, z$1.core.$strip>>;
|
|
415
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
416
|
+
}, z$1.core.$strip>;
|
|
417
|
+
tool: z$1.ZodString;
|
|
401
418
|
}, z$1.core.$strip>], "kind">;
|
|
402
419
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
403
420
|
kind: z$1.ZodLiteral<"user_question">;
|
|
@@ -491,176 +508,6 @@ declare const pluginPendingInteractionSchema: z$1.ZodObject<{
|
|
|
491
508
|
type PluginPendingInteraction = z$1.infer<typeof pluginPendingInteractionSchema>;
|
|
492
509
|
type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
493
510
|
|
|
494
|
-
declare const projectSourceSchema: z$1.ZodObject<{
|
|
495
|
-
createdAt: z$1.ZodNumber;
|
|
496
|
-
hostId: z$1.ZodString;
|
|
497
|
-
id: z$1.ZodString;
|
|
498
|
-
isDefault: z$1.ZodBoolean;
|
|
499
|
-
path: z$1.ZodString;
|
|
500
|
-
projectId: z$1.ZodString;
|
|
501
|
-
type: z$1.ZodLiteral<"local_path">;
|
|
502
|
-
updatedAt: z$1.ZodNumber;
|
|
503
|
-
}, z$1.core.$strip>;
|
|
504
|
-
type ProjectSource = z$1.infer<typeof projectSourceSchema>;
|
|
505
|
-
|
|
506
|
-
declare const reasoningLevelSchema: z$1.ZodEnum<{
|
|
507
|
-
high: "high";
|
|
508
|
-
low: "low";
|
|
509
|
-
max: "max";
|
|
510
|
-
medium: "medium";
|
|
511
|
-
none: "none";
|
|
512
|
-
ultra: "ultra";
|
|
513
|
-
ultracode: "ultracode";
|
|
514
|
-
xhigh: "xhigh";
|
|
515
|
-
}>;
|
|
516
|
-
type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
|
|
517
|
-
declare const serviceTierSchema: z$1.ZodEnum<{
|
|
518
|
-
default: "default";
|
|
519
|
-
fast: "fast";
|
|
520
|
-
}>;
|
|
521
|
-
type ServiceTier = z$1.infer<typeof serviceTierSchema>;
|
|
522
|
-
declare const permissionModeSchema: z$1.ZodEnum<{
|
|
523
|
-
"accept-edits": "accept-edits";
|
|
524
|
-
auto: "auto";
|
|
525
|
-
full: "full";
|
|
526
|
-
}>;
|
|
527
|
-
type PermissionMode = z$1.infer<typeof permissionModeSchema>;
|
|
528
|
-
declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
529
|
-
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
530
|
-
end: z$1.ZodNumber;
|
|
531
|
-
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
532
|
-
kind: z$1.ZodLiteral<"thread">;
|
|
533
|
-
label: z$1.ZodString;
|
|
534
|
-
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
535
|
-
threadId: z$1.ZodString;
|
|
536
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
537
|
-
kind: z$1.ZodLiteral<"project">;
|
|
538
|
-
label: z$1.ZodString;
|
|
539
|
-
projectId: z$1.ZodString;
|
|
540
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
541
|
-
kind: z$1.ZodLiteral<"section">;
|
|
542
|
-
label: z$1.ZodString;
|
|
543
|
-
sectionId: z$1.ZodString;
|
|
544
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
545
|
-
entryKind: z$1.ZodEnum<{
|
|
546
|
-
directory: "directory";
|
|
547
|
-
file: "file";
|
|
548
|
-
}>;
|
|
549
|
-
kind: z$1.ZodLiteral<"path">;
|
|
550
|
-
label: z$1.ZodString;
|
|
551
|
-
path: z$1.ZodString;
|
|
552
|
-
source: z$1.ZodEnum<{
|
|
553
|
-
"thread-storage": "thread-storage";
|
|
554
|
-
workspace: "workspace";
|
|
555
|
-
}>;
|
|
556
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
557
|
-
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
558
|
-
kind: z$1.ZodLiteral<"command">;
|
|
559
|
-
label: z$1.ZodString;
|
|
560
|
-
name: z$1.ZodString;
|
|
561
|
-
origin: z$1.ZodEnum<{
|
|
562
|
-
builtin: "builtin";
|
|
563
|
-
project: "project";
|
|
564
|
-
user: "user";
|
|
565
|
-
}>;
|
|
566
|
-
source: z$1.ZodEnum<{
|
|
567
|
-
command: "command";
|
|
568
|
-
skill: "skill";
|
|
569
|
-
}>;
|
|
570
|
-
trigger: z$1.ZodEnum<{
|
|
571
|
-
"/": "/";
|
|
572
|
-
}>;
|
|
573
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
574
|
-
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
575
|
-
itemId: z$1.ZodString;
|
|
576
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
577
|
-
label: z$1.ZodString;
|
|
578
|
-
pluginId: z$1.ZodString;
|
|
579
|
-
}, z$1.core.$strip>], "kind">>;
|
|
580
|
-
start: z$1.ZodNumber;
|
|
581
|
-
}, z$1.core.$strip>>>;
|
|
582
|
-
text: z$1.ZodString;
|
|
583
|
-
type: z$1.ZodLiteral<"text">;
|
|
584
|
-
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
585
|
-
"agent-only": "agent-only";
|
|
586
|
-
}>>;
|
|
587
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
588
|
-
type: z$1.ZodLiteral<"image">;
|
|
589
|
-
url: z$1.ZodString;
|
|
590
|
-
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
591
|
-
"agent-only": "agent-only";
|
|
592
|
-
}>>;
|
|
593
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
594
|
-
path: z$1.ZodString;
|
|
595
|
-
type: z$1.ZodLiteral<"localImage">;
|
|
596
|
-
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
597
|
-
"agent-only": "agent-only";
|
|
598
|
-
}>>;
|
|
599
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
600
|
-
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
601
|
-
name: z$1.ZodOptional<z$1.ZodString>;
|
|
602
|
-
path: z$1.ZodString;
|
|
603
|
-
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
604
|
-
type: z$1.ZodLiteral<"localFile">;
|
|
605
|
-
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
606
|
-
"agent-only": "agent-only";
|
|
607
|
-
}>>;
|
|
608
|
-
}, z$1.core.$strip>], "type">;
|
|
609
|
-
type PromptInput = z$1.infer<typeof promptInputSchema>;
|
|
610
|
-
declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
|
|
611
|
-
model: z$1.ZodString;
|
|
612
|
-
permissionMode: z$1.ZodEnum<{
|
|
613
|
-
"accept-edits": "accept-edits";
|
|
614
|
-
auto: "auto";
|
|
615
|
-
full: "full";
|
|
616
|
-
}>;
|
|
617
|
-
reasoningLevel: z$1.ZodEnum<{
|
|
618
|
-
high: "high";
|
|
619
|
-
low: "low";
|
|
620
|
-
max: "max";
|
|
621
|
-
medium: "medium";
|
|
622
|
-
none: "none";
|
|
623
|
-
ultra: "ultra";
|
|
624
|
-
ultracode: "ultracode";
|
|
625
|
-
xhigh: "xhigh";
|
|
626
|
-
}>;
|
|
627
|
-
seq: z$1.ZodOptional<z$1.ZodNumber>;
|
|
628
|
-
serviceTier: z$1.ZodEnum<{
|
|
629
|
-
default: "default";
|
|
630
|
-
fast: "fast";
|
|
631
|
-
}>;
|
|
632
|
-
source: z$1.ZodEnum<{
|
|
633
|
-
"client/thread/start": "client/thread/start";
|
|
634
|
-
"client/turn/requested": "client/turn/requested";
|
|
635
|
-
"client/turn/start": "client/turn/start";
|
|
636
|
-
}>;
|
|
637
|
-
}, z$1.core.$strip>;
|
|
638
|
-
type ResolvedThreadExecutionOptions = z$1.infer<typeof resolvedThreadExecutionOptionsSchema>;
|
|
639
|
-
declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
|
|
640
|
-
model: z$1.ZodString;
|
|
641
|
-
permissionMode: z$1.ZodEnum<{
|
|
642
|
-
"accept-edits": "accept-edits";
|
|
643
|
-
auto: "auto";
|
|
644
|
-
full: "full";
|
|
645
|
-
}>;
|
|
646
|
-
providerId: z$1.ZodString;
|
|
647
|
-
reasoningLevel: z$1.ZodEnum<{
|
|
648
|
-
high: "high";
|
|
649
|
-
low: "low";
|
|
650
|
-
max: "max";
|
|
651
|
-
medium: "medium";
|
|
652
|
-
none: "none";
|
|
653
|
-
ultra: "ultra";
|
|
654
|
-
ultracode: "ultracode";
|
|
655
|
-
xhigh: "xhigh";
|
|
656
|
-
}>;
|
|
657
|
-
serviceTier: z$1.ZodEnum<{
|
|
658
|
-
default: "default";
|
|
659
|
-
fast: "fast";
|
|
660
|
-
}>;
|
|
661
|
-
}, z$1.core.$strip>;
|
|
662
|
-
type ProjectExecutionDefaults = z$1.infer<typeof projectExecutionDefaultsSchema>;
|
|
663
|
-
|
|
664
511
|
/** All thread events — provider-originated or system-originated. */
|
|
665
512
|
declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
666
513
|
threadId: z$1.ZodString;
|
|
@@ -751,6 +598,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
751
598
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
752
599
|
id: z$1.ZodString;
|
|
753
600
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
601
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
602
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
603
|
+
icon: z$1.ZodObject<{
|
|
604
|
+
glyph: z$1.ZodString;
|
|
605
|
+
}, z$1.core.$strip>;
|
|
606
|
+
label: z$1.ZodObject<{
|
|
607
|
+
completed: z$1.ZodString;
|
|
608
|
+
pending: z$1.ZodString;
|
|
609
|
+
}, z$1.core.$strip>;
|
|
610
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
611
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
612
|
+
dark: z$1.ZodString;
|
|
613
|
+
light: z$1.ZodString;
|
|
614
|
+
}, z$1.core.$strip>>;
|
|
615
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
616
|
+
}, z$1.core.$strip>>;
|
|
754
617
|
text: z$1.ZodString;
|
|
755
618
|
type: z$1.ZodLiteral<"agentMessage">;
|
|
756
619
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -765,6 +628,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
765
628
|
exitCode: z$1.ZodOptional<z$1.ZodNumber>;
|
|
766
629
|
id: z$1.ZodString;
|
|
767
630
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
631
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
632
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
633
|
+
icon: z$1.ZodObject<{
|
|
634
|
+
glyph: z$1.ZodString;
|
|
635
|
+
}, z$1.core.$strip>;
|
|
636
|
+
label: z$1.ZodObject<{
|
|
637
|
+
completed: z$1.ZodString;
|
|
638
|
+
pending: z$1.ZodString;
|
|
639
|
+
}, z$1.core.$strip>;
|
|
640
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
641
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
642
|
+
dark: z$1.ZodString;
|
|
643
|
+
light: z$1.ZodString;
|
|
644
|
+
}, z$1.core.$strip>>;
|
|
645
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
646
|
+
}, z$1.core.$strip>>;
|
|
768
647
|
status: z$1.ZodEnum<{
|
|
769
648
|
completed: "completed";
|
|
770
649
|
failed: "failed";
|
|
@@ -809,6 +688,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
809
688
|
}, z$1.core.$strip>>;
|
|
810
689
|
id: z$1.ZodString;
|
|
811
690
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
691
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
692
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
693
|
+
icon: z$1.ZodObject<{
|
|
694
|
+
glyph: z$1.ZodString;
|
|
695
|
+
}, z$1.core.$strip>;
|
|
696
|
+
label: z$1.ZodObject<{
|
|
697
|
+
completed: z$1.ZodString;
|
|
698
|
+
pending: z$1.ZodString;
|
|
699
|
+
}, z$1.core.$strip>;
|
|
700
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
701
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
702
|
+
dark: z$1.ZodString;
|
|
703
|
+
light: z$1.ZodString;
|
|
704
|
+
}, z$1.core.$strip>>;
|
|
705
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
706
|
+
}, z$1.core.$strip>>;
|
|
812
707
|
status: z$1.ZodEnum<{
|
|
813
708
|
completed: "completed";
|
|
814
709
|
failed: "failed";
|
|
@@ -819,6 +714,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
819
714
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
820
715
|
id: z$1.ZodString;
|
|
821
716
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
717
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
718
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
719
|
+
icon: z$1.ZodObject<{
|
|
720
|
+
glyph: z$1.ZodString;
|
|
721
|
+
}, z$1.core.$strip>;
|
|
722
|
+
label: z$1.ZodObject<{
|
|
723
|
+
completed: z$1.ZodString;
|
|
724
|
+
pending: z$1.ZodString;
|
|
725
|
+
}, z$1.core.$strip>;
|
|
726
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
727
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
728
|
+
dark: z$1.ZodString;
|
|
729
|
+
light: z$1.ZodString;
|
|
730
|
+
}, z$1.core.$strip>>;
|
|
731
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
732
|
+
}, z$1.core.$strip>>;
|
|
822
733
|
queries: z$1.ZodArray<z$1.ZodString>;
|
|
823
734
|
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
824
735
|
type: z$1.ZodLiteral<"webSearch">;
|
|
@@ -826,6 +737,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
826
737
|
id: z$1.ZodString;
|
|
827
738
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
828
739
|
pattern: z$1.ZodNullable<z$1.ZodString>;
|
|
740
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
741
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
742
|
+
icon: z$1.ZodObject<{
|
|
743
|
+
glyph: z$1.ZodString;
|
|
744
|
+
}, z$1.core.$strip>;
|
|
745
|
+
label: z$1.ZodObject<{
|
|
746
|
+
completed: z$1.ZodString;
|
|
747
|
+
pending: z$1.ZodString;
|
|
748
|
+
}, z$1.core.$strip>;
|
|
749
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
750
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
751
|
+
dark: z$1.ZodString;
|
|
752
|
+
light: z$1.ZodString;
|
|
753
|
+
}, z$1.core.$strip>>;
|
|
754
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
755
|
+
}, z$1.core.$strip>>;
|
|
829
756
|
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
830
757
|
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
831
758
|
type: z$1.ZodLiteral<"webFetch">;
|
|
@@ -834,13 +761,107 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
834
761
|
id: z$1.ZodString;
|
|
835
762
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
836
763
|
path: z$1.ZodString;
|
|
764
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
765
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
766
|
+
icon: z$1.ZodObject<{
|
|
767
|
+
glyph: z$1.ZodString;
|
|
768
|
+
}, z$1.core.$strip>;
|
|
769
|
+
label: z$1.ZodObject<{
|
|
770
|
+
completed: z$1.ZodString;
|
|
771
|
+
pending: z$1.ZodString;
|
|
772
|
+
}, z$1.core.$strip>;
|
|
773
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
774
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
775
|
+
dark: z$1.ZodString;
|
|
776
|
+
light: z$1.ZodString;
|
|
777
|
+
}, z$1.core.$strip>>;
|
|
778
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
779
|
+
}, z$1.core.$strip>>;
|
|
837
780
|
type: z$1.ZodLiteral<"imageView">;
|
|
781
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
782
|
+
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
783
|
+
id: z$1.ZodString;
|
|
784
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
785
|
+
path: z$1.ZodString;
|
|
786
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
787
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
788
|
+
icon: z$1.ZodObject<{
|
|
789
|
+
glyph: z$1.ZodString;
|
|
790
|
+
}, z$1.core.$strip>;
|
|
791
|
+
label: z$1.ZodObject<{
|
|
792
|
+
completed: z$1.ZodString;
|
|
793
|
+
pending: z$1.ZodString;
|
|
794
|
+
}, z$1.core.$strip>;
|
|
795
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
796
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
797
|
+
dark: z$1.ZodString;
|
|
798
|
+
light: z$1.ZodString;
|
|
799
|
+
}, z$1.core.$strip>>;
|
|
800
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
801
|
+
}, z$1.core.$strip>>;
|
|
802
|
+
status: z$1.ZodEnum<{
|
|
803
|
+
completed: "completed";
|
|
804
|
+
failed: "failed";
|
|
805
|
+
interrupted: "interrupted";
|
|
806
|
+
pending: "pending";
|
|
807
|
+
}>;
|
|
808
|
+
type: z$1.ZodLiteral<"fileRead">;
|
|
809
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
810
|
+
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
811
|
+
id: z$1.ZodString;
|
|
812
|
+
mode: z$1.ZodEnum<{
|
|
813
|
+
content: "content";
|
|
814
|
+
list: "list";
|
|
815
|
+
path: "path";
|
|
816
|
+
}>;
|
|
817
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
818
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
819
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
820
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
821
|
+
icon: z$1.ZodObject<{
|
|
822
|
+
glyph: z$1.ZodString;
|
|
823
|
+
}, z$1.core.$strip>;
|
|
824
|
+
label: z$1.ZodObject<{
|
|
825
|
+
completed: z$1.ZodString;
|
|
826
|
+
pending: z$1.ZodString;
|
|
827
|
+
}, z$1.core.$strip>;
|
|
828
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
829
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
830
|
+
dark: z$1.ZodString;
|
|
831
|
+
light: z$1.ZodString;
|
|
832
|
+
}, z$1.core.$strip>>;
|
|
833
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
834
|
+
}, z$1.core.$strip>>;
|
|
835
|
+
query: z$1.ZodString;
|
|
836
|
+
status: z$1.ZodEnum<{
|
|
837
|
+
completed: "completed";
|
|
838
|
+
failed: "failed";
|
|
839
|
+
interrupted: "interrupted";
|
|
840
|
+
pending: "pending";
|
|
841
|
+
}>;
|
|
842
|
+
type: z$1.ZodLiteral<"search">;
|
|
838
843
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
839
844
|
arguments: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
840
845
|
durationMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
841
846
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
842
847
|
id: z$1.ZodString;
|
|
843
848
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
849
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
850
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
851
|
+
icon: z$1.ZodObject<{
|
|
852
|
+
glyph: z$1.ZodString;
|
|
853
|
+
}, z$1.core.$strip>;
|
|
854
|
+
label: z$1.ZodObject<{
|
|
855
|
+
completed: z$1.ZodString;
|
|
856
|
+
pending: z$1.ZodString;
|
|
857
|
+
}, z$1.core.$strip>;
|
|
858
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
859
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
860
|
+
dark: z$1.ZodString;
|
|
861
|
+
light: z$1.ZodString;
|
|
862
|
+
}, z$1.core.$strip>>;
|
|
863
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
864
|
+
}, z$1.core.$strip>>;
|
|
844
865
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
845
866
|
server: z$1.ZodOptional<z$1.ZodString>;
|
|
846
867
|
status: z$1.ZodEnum<{
|
|
@@ -879,16 +900,100 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
879
900
|
content: z$1.ZodArray<z$1.ZodString>;
|
|
880
901
|
id: z$1.ZodString;
|
|
881
902
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
903
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
904
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
905
|
+
icon: z$1.ZodObject<{
|
|
906
|
+
glyph: z$1.ZodString;
|
|
907
|
+
}, z$1.core.$strip>;
|
|
908
|
+
label: z$1.ZodObject<{
|
|
909
|
+
completed: z$1.ZodString;
|
|
910
|
+
pending: z$1.ZodString;
|
|
911
|
+
}, z$1.core.$strip>;
|
|
912
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
913
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
914
|
+
dark: z$1.ZodString;
|
|
915
|
+
light: z$1.ZodString;
|
|
916
|
+
}, z$1.core.$strip>>;
|
|
917
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
918
|
+
}, z$1.core.$strip>>;
|
|
882
919
|
summary: z$1.ZodArray<z$1.ZodString>;
|
|
883
920
|
type: z$1.ZodLiteral<"reasoning">;
|
|
884
921
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
885
922
|
id: z$1.ZodString;
|
|
886
923
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
924
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
925
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
926
|
+
icon: z$1.ZodObject<{
|
|
927
|
+
glyph: z$1.ZodString;
|
|
928
|
+
}, z$1.core.$strip>;
|
|
929
|
+
label: z$1.ZodObject<{
|
|
930
|
+
completed: z$1.ZodString;
|
|
931
|
+
pending: z$1.ZodString;
|
|
932
|
+
}, z$1.core.$strip>;
|
|
933
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
934
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
935
|
+
dark: z$1.ZodString;
|
|
936
|
+
light: z$1.ZodString;
|
|
937
|
+
}, z$1.core.$strip>>;
|
|
938
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
939
|
+
}, z$1.core.$strip>>;
|
|
887
940
|
text: z$1.ZodString;
|
|
888
941
|
type: z$1.ZodLiteral<"plan">;
|
|
942
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
943
|
+
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
944
|
+
id: z$1.ZodString;
|
|
945
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
946
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
947
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
948
|
+
icon: z$1.ZodObject<{
|
|
949
|
+
glyph: z$1.ZodString;
|
|
950
|
+
}, z$1.core.$strip>;
|
|
951
|
+
label: z$1.ZodObject<{
|
|
952
|
+
completed: z$1.ZodString;
|
|
953
|
+
pending: z$1.ZodString;
|
|
954
|
+
}, z$1.core.$strip>;
|
|
955
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
956
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
957
|
+
dark: z$1.ZodString;
|
|
958
|
+
light: z$1.ZodString;
|
|
959
|
+
}, z$1.core.$strip>>;
|
|
960
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
961
|
+
}, z$1.core.$strip>>;
|
|
962
|
+
status: z$1.ZodEnum<{
|
|
963
|
+
completed: "completed";
|
|
964
|
+
failed: "failed";
|
|
965
|
+
interrupted: "interrupted";
|
|
966
|
+
pending: "pending";
|
|
967
|
+
}>;
|
|
968
|
+
steps: z$1.ZodArray<z$1.ZodObject<{
|
|
969
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
970
|
+
active: "active";
|
|
971
|
+
completed: "completed";
|
|
972
|
+
failed: "failed";
|
|
973
|
+
pending: "pending";
|
|
974
|
+
}>>;
|
|
975
|
+
step: z$1.ZodString;
|
|
976
|
+
}, z$1.core.$strip>>;
|
|
977
|
+
type: z$1.ZodLiteral<"planSteps">;
|
|
889
978
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
890
979
|
id: z$1.ZodString;
|
|
891
980
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
981
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
982
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
983
|
+
icon: z$1.ZodObject<{
|
|
984
|
+
glyph: z$1.ZodString;
|
|
985
|
+
}, z$1.core.$strip>;
|
|
986
|
+
label: z$1.ZodObject<{
|
|
987
|
+
completed: z$1.ZodString;
|
|
988
|
+
pending: z$1.ZodString;
|
|
989
|
+
}, z$1.core.$strip>;
|
|
990
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
991
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
992
|
+
dark: z$1.ZodString;
|
|
993
|
+
light: z$1.ZodString;
|
|
994
|
+
}, z$1.core.$strip>>;
|
|
995
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
996
|
+
}, z$1.core.$strip>>;
|
|
892
997
|
type: z$1.ZodLiteral<"contextCompaction">;
|
|
893
998
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
894
999
|
description: z$1.ZodString;
|
|
@@ -897,6 +1002,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
897
1002
|
id: z$1.ZodString;
|
|
898
1003
|
outputFile: z$1.ZodOptional<z$1.ZodString>;
|
|
899
1004
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1005
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1006
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1007
|
+
icon: z$1.ZodObject<{
|
|
1008
|
+
glyph: z$1.ZodString;
|
|
1009
|
+
}, z$1.core.$strip>;
|
|
1010
|
+
label: z$1.ZodObject<{
|
|
1011
|
+
completed: z$1.ZodString;
|
|
1012
|
+
pending: z$1.ZodString;
|
|
1013
|
+
}, z$1.core.$strip>;
|
|
1014
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1015
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1016
|
+
dark: z$1.ZodString;
|
|
1017
|
+
light: z$1.ZodString;
|
|
1018
|
+
}, z$1.core.$strip>>;
|
|
1019
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1020
|
+
}, z$1.core.$strip>>;
|
|
900
1021
|
skipTranscript: z$1.ZodBoolean;
|
|
901
1022
|
status: z$1.ZodEnum<{
|
|
902
1023
|
completed: "completed";
|
|
@@ -958,6 +1079,64 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
958
1079
|
}, z$1.core.$strip>>;
|
|
959
1080
|
}, z$1.core.$strip>>;
|
|
960
1081
|
workflowName: z$1.ZodOptional<z$1.ZodString>;
|
|
1082
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1083
|
+
background: z$1.ZodBoolean;
|
|
1084
|
+
childRef: z$1.ZodString;
|
|
1085
|
+
id: z$1.ZodString;
|
|
1086
|
+
label: z$1.ZodString;
|
|
1087
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1088
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1089
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1090
|
+
icon: z$1.ZodObject<{
|
|
1091
|
+
glyph: z$1.ZodString;
|
|
1092
|
+
}, z$1.core.$strip>;
|
|
1093
|
+
label: z$1.ZodObject<{
|
|
1094
|
+
completed: z$1.ZodString;
|
|
1095
|
+
pending: z$1.ZodString;
|
|
1096
|
+
}, z$1.core.$strip>;
|
|
1097
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1098
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1099
|
+
dark: z$1.ZodString;
|
|
1100
|
+
light: z$1.ZodString;
|
|
1101
|
+
}, z$1.core.$strip>>;
|
|
1102
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1103
|
+
}, z$1.core.$strip>>;
|
|
1104
|
+
status: z$1.ZodEnum<{
|
|
1105
|
+
completed: "completed";
|
|
1106
|
+
failed: "failed";
|
|
1107
|
+
interrupted: "interrupted";
|
|
1108
|
+
pending: "pending";
|
|
1109
|
+
}>;
|
|
1110
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
1111
|
+
type: z$1.ZodLiteral<"delegation">;
|
|
1112
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1113
|
+
id: z$1.ZodString;
|
|
1114
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
1115
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1116
|
+
payload: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
1117
|
+
presentation: z$1.ZodObject<{
|
|
1118
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1119
|
+
icon: z$1.ZodObject<{
|
|
1120
|
+
glyph: z$1.ZodString;
|
|
1121
|
+
}, z$1.core.$strip>;
|
|
1122
|
+
label: z$1.ZodObject<{
|
|
1123
|
+
completed: z$1.ZodString;
|
|
1124
|
+
pending: z$1.ZodString;
|
|
1125
|
+
}, z$1.core.$strip>;
|
|
1126
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1127
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1128
|
+
dark: z$1.ZodString;
|
|
1129
|
+
light: z$1.ZodString;
|
|
1130
|
+
}, z$1.core.$strip>>;
|
|
1131
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1132
|
+
}, z$1.core.$strip>;
|
|
1133
|
+
status: z$1.ZodEnum<{
|
|
1134
|
+
completed: "completed";
|
|
1135
|
+
failed: "failed";
|
|
1136
|
+
interrupted: "interrupted";
|
|
1137
|
+
pending: "pending";
|
|
1138
|
+
}>;
|
|
1139
|
+
type: z$1.ZodLiteral<"extension">;
|
|
961
1140
|
}, z$1.core.$strip>], "type">;
|
|
962
1141
|
providerThreadId: z$1.ZodString;
|
|
963
1142
|
threadId: z$1.ZodString;
|
|
@@ -984,6 +1163,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
984
1163
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
985
1164
|
id: z$1.ZodString;
|
|
986
1165
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1166
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1167
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1168
|
+
icon: z$1.ZodObject<{
|
|
1169
|
+
glyph: z$1.ZodString;
|
|
1170
|
+
}, z$1.core.$strip>;
|
|
1171
|
+
label: z$1.ZodObject<{
|
|
1172
|
+
completed: z$1.ZodString;
|
|
1173
|
+
pending: z$1.ZodString;
|
|
1174
|
+
}, z$1.core.$strip>;
|
|
1175
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1176
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1177
|
+
dark: z$1.ZodString;
|
|
1178
|
+
light: z$1.ZodString;
|
|
1179
|
+
}, z$1.core.$strip>>;
|
|
1180
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1181
|
+
}, z$1.core.$strip>>;
|
|
987
1182
|
text: z$1.ZodString;
|
|
988
1183
|
type: z$1.ZodLiteral<"agentMessage">;
|
|
989
1184
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -998,6 +1193,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
998
1193
|
exitCode: z$1.ZodOptional<z$1.ZodNumber>;
|
|
999
1194
|
id: z$1.ZodString;
|
|
1000
1195
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1196
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1197
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1198
|
+
icon: z$1.ZodObject<{
|
|
1199
|
+
glyph: z$1.ZodString;
|
|
1200
|
+
}, z$1.core.$strip>;
|
|
1201
|
+
label: z$1.ZodObject<{
|
|
1202
|
+
completed: z$1.ZodString;
|
|
1203
|
+
pending: z$1.ZodString;
|
|
1204
|
+
}, z$1.core.$strip>;
|
|
1205
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1206
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1207
|
+
dark: z$1.ZodString;
|
|
1208
|
+
light: z$1.ZodString;
|
|
1209
|
+
}, z$1.core.$strip>>;
|
|
1210
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1211
|
+
}, z$1.core.$strip>>;
|
|
1001
1212
|
status: z$1.ZodEnum<{
|
|
1002
1213
|
completed: "completed";
|
|
1003
1214
|
failed: "failed";
|
|
@@ -1042,6 +1253,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1042
1253
|
}, z$1.core.$strip>>;
|
|
1043
1254
|
id: z$1.ZodString;
|
|
1044
1255
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1256
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1257
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1258
|
+
icon: z$1.ZodObject<{
|
|
1259
|
+
glyph: z$1.ZodString;
|
|
1260
|
+
}, z$1.core.$strip>;
|
|
1261
|
+
label: z$1.ZodObject<{
|
|
1262
|
+
completed: z$1.ZodString;
|
|
1263
|
+
pending: z$1.ZodString;
|
|
1264
|
+
}, z$1.core.$strip>;
|
|
1265
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1266
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1267
|
+
dark: z$1.ZodString;
|
|
1268
|
+
light: z$1.ZodString;
|
|
1269
|
+
}, z$1.core.$strip>>;
|
|
1270
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1271
|
+
}, z$1.core.$strip>>;
|
|
1045
1272
|
status: z$1.ZodEnum<{
|
|
1046
1273
|
completed: "completed";
|
|
1047
1274
|
failed: "failed";
|
|
@@ -1052,6 +1279,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1052
1279
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1053
1280
|
id: z$1.ZodString;
|
|
1054
1281
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1282
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1283
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1284
|
+
icon: z$1.ZodObject<{
|
|
1285
|
+
glyph: z$1.ZodString;
|
|
1286
|
+
}, z$1.core.$strip>;
|
|
1287
|
+
label: z$1.ZodObject<{
|
|
1288
|
+
completed: z$1.ZodString;
|
|
1289
|
+
pending: z$1.ZodString;
|
|
1290
|
+
}, z$1.core.$strip>;
|
|
1291
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1292
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1293
|
+
dark: z$1.ZodString;
|
|
1294
|
+
light: z$1.ZodString;
|
|
1295
|
+
}, z$1.core.$strip>>;
|
|
1296
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1297
|
+
}, z$1.core.$strip>>;
|
|
1055
1298
|
queries: z$1.ZodArray<z$1.ZodString>;
|
|
1056
1299
|
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
1057
1300
|
type: z$1.ZodLiteral<"webSearch">;
|
|
@@ -1059,6 +1302,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1059
1302
|
id: z$1.ZodString;
|
|
1060
1303
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1061
1304
|
pattern: z$1.ZodNullable<z$1.ZodString>;
|
|
1305
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1306
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1307
|
+
icon: z$1.ZodObject<{
|
|
1308
|
+
glyph: z$1.ZodString;
|
|
1309
|
+
}, z$1.core.$strip>;
|
|
1310
|
+
label: z$1.ZodObject<{
|
|
1311
|
+
completed: z$1.ZodString;
|
|
1312
|
+
pending: z$1.ZodString;
|
|
1313
|
+
}, z$1.core.$strip>;
|
|
1314
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1315
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1316
|
+
dark: z$1.ZodString;
|
|
1317
|
+
light: z$1.ZodString;
|
|
1318
|
+
}, z$1.core.$strip>>;
|
|
1319
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1320
|
+
}, z$1.core.$strip>>;
|
|
1062
1321
|
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
1063
1322
|
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
1064
1323
|
type: z$1.ZodLiteral<"webFetch">;
|
|
@@ -1067,13 +1326,107 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1067
1326
|
id: z$1.ZodString;
|
|
1068
1327
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1069
1328
|
path: z$1.ZodString;
|
|
1329
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1330
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1331
|
+
icon: z$1.ZodObject<{
|
|
1332
|
+
glyph: z$1.ZodString;
|
|
1333
|
+
}, z$1.core.$strip>;
|
|
1334
|
+
label: z$1.ZodObject<{
|
|
1335
|
+
completed: z$1.ZodString;
|
|
1336
|
+
pending: z$1.ZodString;
|
|
1337
|
+
}, z$1.core.$strip>;
|
|
1338
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1339
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1340
|
+
dark: z$1.ZodString;
|
|
1341
|
+
light: z$1.ZodString;
|
|
1342
|
+
}, z$1.core.$strip>>;
|
|
1343
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1344
|
+
}, z$1.core.$strip>>;
|
|
1070
1345
|
type: z$1.ZodLiteral<"imageView">;
|
|
1346
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1347
|
+
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1348
|
+
id: z$1.ZodString;
|
|
1349
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1350
|
+
path: z$1.ZodString;
|
|
1351
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1352
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1353
|
+
icon: z$1.ZodObject<{
|
|
1354
|
+
glyph: z$1.ZodString;
|
|
1355
|
+
}, z$1.core.$strip>;
|
|
1356
|
+
label: z$1.ZodObject<{
|
|
1357
|
+
completed: z$1.ZodString;
|
|
1358
|
+
pending: z$1.ZodString;
|
|
1359
|
+
}, z$1.core.$strip>;
|
|
1360
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1361
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1362
|
+
dark: z$1.ZodString;
|
|
1363
|
+
light: z$1.ZodString;
|
|
1364
|
+
}, z$1.core.$strip>>;
|
|
1365
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1366
|
+
}, z$1.core.$strip>>;
|
|
1367
|
+
status: z$1.ZodEnum<{
|
|
1368
|
+
completed: "completed";
|
|
1369
|
+
failed: "failed";
|
|
1370
|
+
interrupted: "interrupted";
|
|
1371
|
+
pending: "pending";
|
|
1372
|
+
}>;
|
|
1373
|
+
type: z$1.ZodLiteral<"fileRead">;
|
|
1374
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1375
|
+
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1376
|
+
id: z$1.ZodString;
|
|
1377
|
+
mode: z$1.ZodEnum<{
|
|
1378
|
+
content: "content";
|
|
1379
|
+
list: "list";
|
|
1380
|
+
path: "path";
|
|
1381
|
+
}>;
|
|
1382
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1383
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
1384
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1385
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1386
|
+
icon: z$1.ZodObject<{
|
|
1387
|
+
glyph: z$1.ZodString;
|
|
1388
|
+
}, z$1.core.$strip>;
|
|
1389
|
+
label: z$1.ZodObject<{
|
|
1390
|
+
completed: z$1.ZodString;
|
|
1391
|
+
pending: z$1.ZodString;
|
|
1392
|
+
}, z$1.core.$strip>;
|
|
1393
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1394
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1395
|
+
dark: z$1.ZodString;
|
|
1396
|
+
light: z$1.ZodString;
|
|
1397
|
+
}, z$1.core.$strip>>;
|
|
1398
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1399
|
+
}, z$1.core.$strip>>;
|
|
1400
|
+
query: z$1.ZodString;
|
|
1401
|
+
status: z$1.ZodEnum<{
|
|
1402
|
+
completed: "completed";
|
|
1403
|
+
failed: "failed";
|
|
1404
|
+
interrupted: "interrupted";
|
|
1405
|
+
pending: "pending";
|
|
1406
|
+
}>;
|
|
1407
|
+
type: z$1.ZodLiteral<"search">;
|
|
1071
1408
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1072
1409
|
arguments: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1073
1410
|
durationMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1074
1411
|
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1075
1412
|
id: z$1.ZodString;
|
|
1076
1413
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1414
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1415
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1416
|
+
icon: z$1.ZodObject<{
|
|
1417
|
+
glyph: z$1.ZodString;
|
|
1418
|
+
}, z$1.core.$strip>;
|
|
1419
|
+
label: z$1.ZodObject<{
|
|
1420
|
+
completed: z$1.ZodString;
|
|
1421
|
+
pending: z$1.ZodString;
|
|
1422
|
+
}, z$1.core.$strip>;
|
|
1423
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1424
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1425
|
+
dark: z$1.ZodString;
|
|
1426
|
+
light: z$1.ZodString;
|
|
1427
|
+
}, z$1.core.$strip>>;
|
|
1428
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1429
|
+
}, z$1.core.$strip>>;
|
|
1077
1430
|
result: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
1078
1431
|
server: z$1.ZodOptional<z$1.ZodString>;
|
|
1079
1432
|
status: z$1.ZodEnum<{
|
|
@@ -1112,16 +1465,100 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1112
1465
|
content: z$1.ZodArray<z$1.ZodString>;
|
|
1113
1466
|
id: z$1.ZodString;
|
|
1114
1467
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1468
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1469
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1470
|
+
icon: z$1.ZodObject<{
|
|
1471
|
+
glyph: z$1.ZodString;
|
|
1472
|
+
}, z$1.core.$strip>;
|
|
1473
|
+
label: z$1.ZodObject<{
|
|
1474
|
+
completed: z$1.ZodString;
|
|
1475
|
+
pending: z$1.ZodString;
|
|
1476
|
+
}, z$1.core.$strip>;
|
|
1477
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1478
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1479
|
+
dark: z$1.ZodString;
|
|
1480
|
+
light: z$1.ZodString;
|
|
1481
|
+
}, z$1.core.$strip>>;
|
|
1482
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1483
|
+
}, z$1.core.$strip>>;
|
|
1115
1484
|
summary: z$1.ZodArray<z$1.ZodString>;
|
|
1116
1485
|
type: z$1.ZodLiteral<"reasoning">;
|
|
1117
1486
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1118
1487
|
id: z$1.ZodString;
|
|
1119
1488
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1489
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1490
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1491
|
+
icon: z$1.ZodObject<{
|
|
1492
|
+
glyph: z$1.ZodString;
|
|
1493
|
+
}, z$1.core.$strip>;
|
|
1494
|
+
label: z$1.ZodObject<{
|
|
1495
|
+
completed: z$1.ZodString;
|
|
1496
|
+
pending: z$1.ZodString;
|
|
1497
|
+
}, z$1.core.$strip>;
|
|
1498
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1499
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1500
|
+
dark: z$1.ZodString;
|
|
1501
|
+
light: z$1.ZodString;
|
|
1502
|
+
}, z$1.core.$strip>>;
|
|
1503
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1504
|
+
}, z$1.core.$strip>>;
|
|
1120
1505
|
text: z$1.ZodString;
|
|
1121
1506
|
type: z$1.ZodLiteral<"plan">;
|
|
1507
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1508
|
+
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
1509
|
+
id: z$1.ZodString;
|
|
1510
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1511
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1512
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1513
|
+
icon: z$1.ZodObject<{
|
|
1514
|
+
glyph: z$1.ZodString;
|
|
1515
|
+
}, z$1.core.$strip>;
|
|
1516
|
+
label: z$1.ZodObject<{
|
|
1517
|
+
completed: z$1.ZodString;
|
|
1518
|
+
pending: z$1.ZodString;
|
|
1519
|
+
}, z$1.core.$strip>;
|
|
1520
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1521
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1522
|
+
dark: z$1.ZodString;
|
|
1523
|
+
light: z$1.ZodString;
|
|
1524
|
+
}, z$1.core.$strip>>;
|
|
1525
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1526
|
+
}, z$1.core.$strip>>;
|
|
1527
|
+
status: z$1.ZodEnum<{
|
|
1528
|
+
completed: "completed";
|
|
1529
|
+
failed: "failed";
|
|
1530
|
+
interrupted: "interrupted";
|
|
1531
|
+
pending: "pending";
|
|
1532
|
+
}>;
|
|
1533
|
+
steps: z$1.ZodArray<z$1.ZodObject<{
|
|
1534
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1535
|
+
active: "active";
|
|
1536
|
+
completed: "completed";
|
|
1537
|
+
failed: "failed";
|
|
1538
|
+
pending: "pending";
|
|
1539
|
+
}>>;
|
|
1540
|
+
step: z$1.ZodString;
|
|
1541
|
+
}, z$1.core.$strip>>;
|
|
1542
|
+
type: z$1.ZodLiteral<"planSteps">;
|
|
1122
1543
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1123
1544
|
id: z$1.ZodString;
|
|
1124
1545
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1546
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1547
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1548
|
+
icon: z$1.ZodObject<{
|
|
1549
|
+
glyph: z$1.ZodString;
|
|
1550
|
+
}, z$1.core.$strip>;
|
|
1551
|
+
label: z$1.ZodObject<{
|
|
1552
|
+
completed: z$1.ZodString;
|
|
1553
|
+
pending: z$1.ZodString;
|
|
1554
|
+
}, z$1.core.$strip>;
|
|
1555
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1556
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1557
|
+
dark: z$1.ZodString;
|
|
1558
|
+
light: z$1.ZodString;
|
|
1559
|
+
}, z$1.core.$strip>>;
|
|
1560
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1561
|
+
}, z$1.core.$strip>>;
|
|
1125
1562
|
type: z$1.ZodLiteral<"contextCompaction">;
|
|
1126
1563
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1127
1564
|
description: z$1.ZodString;
|
|
@@ -1130,6 +1567,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1130
1567
|
id: z$1.ZodString;
|
|
1131
1568
|
outputFile: z$1.ZodOptional<z$1.ZodString>;
|
|
1132
1569
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1570
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1571
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1572
|
+
icon: z$1.ZodObject<{
|
|
1573
|
+
glyph: z$1.ZodString;
|
|
1574
|
+
}, z$1.core.$strip>;
|
|
1575
|
+
label: z$1.ZodObject<{
|
|
1576
|
+
completed: z$1.ZodString;
|
|
1577
|
+
pending: z$1.ZodString;
|
|
1578
|
+
}, z$1.core.$strip>;
|
|
1579
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1580
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1581
|
+
dark: z$1.ZodString;
|
|
1582
|
+
light: z$1.ZodString;
|
|
1583
|
+
}, z$1.core.$strip>>;
|
|
1584
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1585
|
+
}, z$1.core.$strip>>;
|
|
1133
1586
|
skipTranscript: z$1.ZodBoolean;
|
|
1134
1587
|
status: z$1.ZodEnum<{
|
|
1135
1588
|
completed: "completed";
|
|
@@ -1191,6 +1644,64 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1191
1644
|
}, z$1.core.$strip>>;
|
|
1192
1645
|
}, z$1.core.$strip>>;
|
|
1193
1646
|
workflowName: z$1.ZodOptional<z$1.ZodString>;
|
|
1647
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1648
|
+
background: z$1.ZodBoolean;
|
|
1649
|
+
childRef: z$1.ZodString;
|
|
1650
|
+
id: z$1.ZodString;
|
|
1651
|
+
label: z$1.ZodString;
|
|
1652
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1653
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1654
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1655
|
+
icon: z$1.ZodObject<{
|
|
1656
|
+
glyph: z$1.ZodString;
|
|
1657
|
+
}, z$1.core.$strip>;
|
|
1658
|
+
label: z$1.ZodObject<{
|
|
1659
|
+
completed: z$1.ZodString;
|
|
1660
|
+
pending: z$1.ZodString;
|
|
1661
|
+
}, z$1.core.$strip>;
|
|
1662
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1663
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1664
|
+
dark: z$1.ZodString;
|
|
1665
|
+
light: z$1.ZodString;
|
|
1666
|
+
}, z$1.core.$strip>>;
|
|
1667
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1668
|
+
}, z$1.core.$strip>>;
|
|
1669
|
+
status: z$1.ZodEnum<{
|
|
1670
|
+
completed: "completed";
|
|
1671
|
+
failed: "failed";
|
|
1672
|
+
interrupted: "interrupted";
|
|
1673
|
+
pending: "pending";
|
|
1674
|
+
}>;
|
|
1675
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
1676
|
+
type: z$1.ZodLiteral<"delegation">;
|
|
1677
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1678
|
+
id: z$1.ZodString;
|
|
1679
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
1680
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1681
|
+
payload: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
1682
|
+
presentation: z$1.ZodObject<{
|
|
1683
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1684
|
+
icon: z$1.ZodObject<{
|
|
1685
|
+
glyph: z$1.ZodString;
|
|
1686
|
+
}, z$1.core.$strip>;
|
|
1687
|
+
label: z$1.ZodObject<{
|
|
1688
|
+
completed: z$1.ZodString;
|
|
1689
|
+
pending: z$1.ZodString;
|
|
1690
|
+
}, z$1.core.$strip>;
|
|
1691
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1692
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1693
|
+
dark: z$1.ZodString;
|
|
1694
|
+
light: z$1.ZodString;
|
|
1695
|
+
}, z$1.core.$strip>>;
|
|
1696
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1697
|
+
}, z$1.core.$strip>;
|
|
1698
|
+
status: z$1.ZodEnum<{
|
|
1699
|
+
completed: "completed";
|
|
1700
|
+
failed: "failed";
|
|
1701
|
+
interrupted: "interrupted";
|
|
1702
|
+
pending: "pending";
|
|
1703
|
+
}>;
|
|
1704
|
+
type: z$1.ZodLiteral<"extension">;
|
|
1194
1705
|
}, z$1.core.$strip>], "type">;
|
|
1195
1706
|
providerThreadId: z$1.ZodString;
|
|
1196
1707
|
threadId: z$1.ZodString;
|
|
@@ -1260,6 +1771,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1260
1771
|
id: z$1.ZodString;
|
|
1261
1772
|
outputFile: z$1.ZodOptional<z$1.ZodString>;
|
|
1262
1773
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1774
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1775
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1776
|
+
icon: z$1.ZodObject<{
|
|
1777
|
+
glyph: z$1.ZodString;
|
|
1778
|
+
}, z$1.core.$strip>;
|
|
1779
|
+
label: z$1.ZodObject<{
|
|
1780
|
+
completed: z$1.ZodString;
|
|
1781
|
+
pending: z$1.ZodString;
|
|
1782
|
+
}, z$1.core.$strip>;
|
|
1783
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1784
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1785
|
+
dark: z$1.ZodString;
|
|
1786
|
+
light: z$1.ZodString;
|
|
1787
|
+
}, z$1.core.$strip>>;
|
|
1788
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1789
|
+
}, z$1.core.$strip>>;
|
|
1263
1790
|
skipTranscript: z$1.ZodBoolean;
|
|
1264
1791
|
status: z$1.ZodEnum<{
|
|
1265
1792
|
completed: "completed";
|
|
@@ -1333,6 +1860,22 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1333
1860
|
id: z$1.ZodString;
|
|
1334
1861
|
outputFile: z$1.ZodOptional<z$1.ZodString>;
|
|
1335
1862
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1863
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1864
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1865
|
+
icon: z$1.ZodObject<{
|
|
1866
|
+
glyph: z$1.ZodString;
|
|
1867
|
+
}, z$1.core.$strip>;
|
|
1868
|
+
label: z$1.ZodObject<{
|
|
1869
|
+
completed: z$1.ZodString;
|
|
1870
|
+
pending: z$1.ZodString;
|
|
1871
|
+
}, z$1.core.$strip>;
|
|
1872
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1873
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1874
|
+
dark: z$1.ZodString;
|
|
1875
|
+
light: z$1.ZodString;
|
|
1876
|
+
}, z$1.core.$strip>>;
|
|
1877
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1878
|
+
}, z$1.core.$strip>>;
|
|
1336
1879
|
skipTranscript: z$1.ZodBoolean;
|
|
1337
1880
|
status: z$1.ZodEnum<{
|
|
1338
1881
|
completed: "completed";
|
|
@@ -1398,6 +1941,76 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1398
1941
|
providerThreadId: z$1.ZodString;
|
|
1399
1942
|
threadId: z$1.ZodString;
|
|
1400
1943
|
type: z$1.ZodLiteral<"item/backgroundTask/completed">;
|
|
1944
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1945
|
+
item: z$1.ZodObject<{
|
|
1946
|
+
background: z$1.ZodBoolean;
|
|
1947
|
+
childRef: z$1.ZodString;
|
|
1948
|
+
id: z$1.ZodString;
|
|
1949
|
+
label: z$1.ZodString;
|
|
1950
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1951
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1952
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1953
|
+
icon: z$1.ZodObject<{
|
|
1954
|
+
glyph: z$1.ZodString;
|
|
1955
|
+
}, z$1.core.$strip>;
|
|
1956
|
+
label: z$1.ZodObject<{
|
|
1957
|
+
completed: z$1.ZodString;
|
|
1958
|
+
pending: z$1.ZodString;
|
|
1959
|
+
}, z$1.core.$strip>;
|
|
1960
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1961
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1962
|
+
dark: z$1.ZodString;
|
|
1963
|
+
light: z$1.ZodString;
|
|
1964
|
+
}, z$1.core.$strip>>;
|
|
1965
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1966
|
+
}, z$1.core.$strip>>;
|
|
1967
|
+
status: z$1.ZodEnum<{
|
|
1968
|
+
completed: "completed";
|
|
1969
|
+
failed: "failed";
|
|
1970
|
+
interrupted: "interrupted";
|
|
1971
|
+
pending: "pending";
|
|
1972
|
+
}>;
|
|
1973
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
1974
|
+
type: z$1.ZodLiteral<"delegation">;
|
|
1975
|
+
}, z$1.core.$strip>;
|
|
1976
|
+
providerThreadId: z$1.ZodString;
|
|
1977
|
+
threadId: z$1.ZodString;
|
|
1978
|
+
type: z$1.ZodLiteral<"item/delegation/progress">;
|
|
1979
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1980
|
+
item: z$1.ZodObject<{
|
|
1981
|
+
background: z$1.ZodBoolean;
|
|
1982
|
+
childRef: z$1.ZodString;
|
|
1983
|
+
id: z$1.ZodString;
|
|
1984
|
+
label: z$1.ZodString;
|
|
1985
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1986
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1987
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1988
|
+
icon: z$1.ZodObject<{
|
|
1989
|
+
glyph: z$1.ZodString;
|
|
1990
|
+
}, z$1.core.$strip>;
|
|
1991
|
+
label: z$1.ZodObject<{
|
|
1992
|
+
completed: z$1.ZodString;
|
|
1993
|
+
pending: z$1.ZodString;
|
|
1994
|
+
}, z$1.core.$strip>;
|
|
1995
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1996
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1997
|
+
dark: z$1.ZodString;
|
|
1998
|
+
light: z$1.ZodString;
|
|
1999
|
+
}, z$1.core.$strip>>;
|
|
2000
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
2001
|
+
}, z$1.core.$strip>>;
|
|
2002
|
+
status: z$1.ZodEnum<{
|
|
2003
|
+
completed: "completed";
|
|
2004
|
+
failed: "failed";
|
|
2005
|
+
interrupted: "interrupted";
|
|
2006
|
+
pending: "pending";
|
|
2007
|
+
}>;
|
|
2008
|
+
summary: z$1.ZodOptional<z$1.ZodString>;
|
|
2009
|
+
type: z$1.ZodLiteral<"delegation">;
|
|
2010
|
+
}, z$1.core.$strip>;
|
|
2011
|
+
providerThreadId: z$1.ZodString;
|
|
2012
|
+
threadId: z$1.ZodString;
|
|
2013
|
+
type: z$1.ZodLiteral<"item/delegation/completed">;
|
|
1401
2014
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1402
2015
|
providerThreadId: z$1.ZodString;
|
|
1403
2016
|
threadId: z$1.ZodString;
|
|
@@ -1517,6 +2130,12 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1517
2130
|
}, z$1.core.$strip>;
|
|
1518
2131
|
threadId: z$1.ZodString;
|
|
1519
2132
|
type: z$1.ZodLiteral<"provider/rateLimits/updated">;
|
|
2133
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2134
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
2135
|
+
payload: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
2136
|
+
providerThreadId: z$1.ZodString;
|
|
2137
|
+
threadId: z$1.ZodString;
|
|
2138
|
+
type: z$1.ZodLiteral<"thread/extensionState/updated">;
|
|
1520
2139
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1521
2140
|
category: z$1.ZodEnum<{
|
|
1522
2141
|
"compaction-skipped": "compaction-skipped";
|
|
@@ -1958,70 +2577,240 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1958
2577
|
}, z$1.core.$strip>>;
|
|
1959
2578
|
kind: z$1.ZodLiteral<"user_answer">;
|
|
1960
2579
|
}, z$1.core.$strip>>>;
|
|
1961
|
-
status: z$1.ZodEnum<{
|
|
1962
|
-
interrupted: "interrupted";
|
|
1963
|
-
pending: "pending";
|
|
1964
|
-
resolved: "resolved";
|
|
1965
|
-
resolving: "resolving";
|
|
1966
|
-
}>;
|
|
1967
|
-
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
1968
|
-
threadId: z$1.ZodString;
|
|
1969
|
-
type: z$1.ZodLiteral<"system/userQuestion/lifecycle">;
|
|
2580
|
+
status: z$1.ZodEnum<{
|
|
2581
|
+
interrupted: "interrupted";
|
|
2582
|
+
pending: "pending";
|
|
2583
|
+
resolved: "resolved";
|
|
2584
|
+
resolving: "resolving";
|
|
2585
|
+
}>;
|
|
2586
|
+
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
2587
|
+
threadId: z$1.ZodString;
|
|
2588
|
+
type: z$1.ZodLiteral<"system/userQuestion/lifecycle">;
|
|
2589
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2590
|
+
entries: z$1.ZodArray<z$1.ZodObject<{
|
|
2591
|
+
key: z$1.ZodString;
|
|
2592
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2593
|
+
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2594
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2595
|
+
completed: "completed";
|
|
2596
|
+
failed: "failed";
|
|
2597
|
+
started: "started";
|
|
2598
|
+
}>>;
|
|
2599
|
+
text: z$1.ZodString;
|
|
2600
|
+
type: z$1.ZodEnum<{
|
|
2601
|
+
output: "output";
|
|
2602
|
+
step: "step";
|
|
2603
|
+
}>;
|
|
2604
|
+
}, z$1.core.$strip>>;
|
|
2605
|
+
environmentId: z$1.ZodString;
|
|
2606
|
+
provisioningId: z$1.ZodString;
|
|
2607
|
+
status: z$1.ZodEnum<{
|
|
2608
|
+
active: "active";
|
|
2609
|
+
cancelled: "cancelled";
|
|
2610
|
+
completed: "completed";
|
|
2611
|
+
failed: "failed";
|
|
2612
|
+
}>;
|
|
2613
|
+
threadId: z$1.ZodString;
|
|
2614
|
+
type: z$1.ZodLiteral<"system/thread-provisioning">;
|
|
2615
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2616
|
+
activeTurnId: z$1.ZodString;
|
|
2617
|
+
activeTurnStartedAt: z$1.ZodNumber;
|
|
2618
|
+
elapsedMs: z$1.ZodNumber;
|
|
2619
|
+
firedAt: z$1.ZodNumber;
|
|
2620
|
+
lastActivityEventAt: z$1.ZodNumber;
|
|
2621
|
+
lastActivityEventSequence: z$1.ZodNumber;
|
|
2622
|
+
lastActivityEventType: z$1.ZodString;
|
|
2623
|
+
providerId: z$1.ZodString;
|
|
2624
|
+
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
2625
|
+
reason: z$1.ZodLiteral<"provider-turn-idle">;
|
|
2626
|
+
threadId: z$1.ZodString;
|
|
2627
|
+
thresholdMs: z$1.ZodNumber;
|
|
2628
|
+
type: z$1.ZodLiteral<"system/provider-turn-watchdog">;
|
|
2629
|
+
}, z$1.core.$strip>], "type">, z$1.ZodObject<{
|
|
2630
|
+
scope: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2631
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
2632
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2633
|
+
kind: z$1.ZodLiteral<"turn">;
|
|
2634
|
+
turnId: z$1.ZodString;
|
|
2635
|
+
}, z$1.core.$strip>], "kind">;
|
|
2636
|
+
}, z$1.core.$strip>>]>>;
|
|
2637
|
+
type ThreadEvent = z$1.infer<typeof threadEventSchema>;
|
|
2638
|
+
type ThreadEventType = ThreadEvent["type"];
|
|
2639
|
+
|
|
2640
|
+
declare const projectSourceSchema: z$1.ZodObject<{
|
|
2641
|
+
createdAt: z$1.ZodNumber;
|
|
2642
|
+
hostId: z$1.ZodString;
|
|
2643
|
+
id: z$1.ZodString;
|
|
2644
|
+
isDefault: z$1.ZodBoolean;
|
|
2645
|
+
path: z$1.ZodString;
|
|
2646
|
+
projectId: z$1.ZodString;
|
|
2647
|
+
type: z$1.ZodLiteral<"local_path">;
|
|
2648
|
+
updatedAt: z$1.ZodNumber;
|
|
2649
|
+
}, z$1.core.$strip>;
|
|
2650
|
+
type ProjectSource = z$1.infer<typeof projectSourceSchema>;
|
|
2651
|
+
|
|
2652
|
+
declare const reasoningLevelSchema: z$1.ZodEnum<{
|
|
2653
|
+
high: "high";
|
|
2654
|
+
low: "low";
|
|
2655
|
+
max: "max";
|
|
2656
|
+
medium: "medium";
|
|
2657
|
+
none: "none";
|
|
2658
|
+
ultra: "ultra";
|
|
2659
|
+
ultracode: "ultracode";
|
|
2660
|
+
xhigh: "xhigh";
|
|
2661
|
+
}>;
|
|
2662
|
+
type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
|
|
2663
|
+
declare const serviceTierSchema: z$1.ZodEnum<{
|
|
2664
|
+
default: "default";
|
|
2665
|
+
fast: "fast";
|
|
2666
|
+
}>;
|
|
2667
|
+
type ServiceTier = z$1.infer<typeof serviceTierSchema>;
|
|
2668
|
+
declare const permissionModeSchema: z$1.ZodEnum<{
|
|
2669
|
+
"accept-edits": "accept-edits";
|
|
2670
|
+
auto: "auto";
|
|
2671
|
+
full: "full";
|
|
2672
|
+
}>;
|
|
2673
|
+
type PermissionMode = z$1.infer<typeof permissionModeSchema>;
|
|
2674
|
+
declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2675
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
2676
|
+
end: z$1.ZodNumber;
|
|
2677
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2678
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
2679
|
+
label: z$1.ZodString;
|
|
2680
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
2681
|
+
threadId: z$1.ZodString;
|
|
2682
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2683
|
+
kind: z$1.ZodLiteral<"project">;
|
|
2684
|
+
label: z$1.ZodString;
|
|
2685
|
+
projectId: z$1.ZodString;
|
|
2686
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2687
|
+
kind: z$1.ZodLiteral<"section">;
|
|
2688
|
+
label: z$1.ZodString;
|
|
2689
|
+
sectionId: z$1.ZodString;
|
|
2690
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2691
|
+
entryKind: z$1.ZodEnum<{
|
|
2692
|
+
directory: "directory";
|
|
2693
|
+
file: "file";
|
|
2694
|
+
}>;
|
|
2695
|
+
kind: z$1.ZodLiteral<"path">;
|
|
2696
|
+
label: z$1.ZodString;
|
|
2697
|
+
path: z$1.ZodString;
|
|
2698
|
+
source: z$1.ZodEnum<{
|
|
2699
|
+
"thread-storage": "thread-storage";
|
|
2700
|
+
workspace: "workspace";
|
|
2701
|
+
}>;
|
|
2702
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2703
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
2704
|
+
kind: z$1.ZodLiteral<"command">;
|
|
2705
|
+
label: z$1.ZodString;
|
|
2706
|
+
name: z$1.ZodString;
|
|
2707
|
+
origin: z$1.ZodEnum<{
|
|
2708
|
+
builtin: "builtin";
|
|
2709
|
+
project: "project";
|
|
2710
|
+
user: "user";
|
|
2711
|
+
}>;
|
|
2712
|
+
source: z$1.ZodEnum<{
|
|
2713
|
+
command: "command";
|
|
2714
|
+
skill: "skill";
|
|
2715
|
+
}>;
|
|
2716
|
+
trigger: z$1.ZodEnum<{
|
|
2717
|
+
"/": "/";
|
|
2718
|
+
}>;
|
|
2719
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2720
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2721
|
+
itemId: z$1.ZodString;
|
|
2722
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
2723
|
+
label: z$1.ZodString;
|
|
2724
|
+
pluginId: z$1.ZodString;
|
|
2725
|
+
}, z$1.core.$strip>], "kind">>;
|
|
2726
|
+
start: z$1.ZodNumber;
|
|
2727
|
+
}, z$1.core.$strip>>>;
|
|
2728
|
+
text: z$1.ZodString;
|
|
2729
|
+
type: z$1.ZodLiteral<"text">;
|
|
2730
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2731
|
+
"agent-only": "agent-only";
|
|
2732
|
+
}>>;
|
|
1970
2733
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
completed: "completed";
|
|
1977
|
-
failed: "failed";
|
|
1978
|
-
started: "started";
|
|
1979
|
-
}>>;
|
|
1980
|
-
text: z$1.ZodString;
|
|
1981
|
-
type: z$1.ZodEnum<{
|
|
1982
|
-
output: "output";
|
|
1983
|
-
step: "step";
|
|
1984
|
-
}>;
|
|
1985
|
-
}, z$1.core.$strip>>;
|
|
1986
|
-
environmentId: z$1.ZodString;
|
|
1987
|
-
provisioningId: z$1.ZodString;
|
|
1988
|
-
status: z$1.ZodEnum<{
|
|
1989
|
-
active: "active";
|
|
1990
|
-
cancelled: "cancelled";
|
|
1991
|
-
completed: "completed";
|
|
1992
|
-
failed: "failed";
|
|
1993
|
-
}>;
|
|
1994
|
-
threadId: z$1.ZodString;
|
|
1995
|
-
type: z$1.ZodLiteral<"system/thread-provisioning">;
|
|
2734
|
+
type: z$1.ZodLiteral<"image">;
|
|
2735
|
+
url: z$1.ZodString;
|
|
2736
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2737
|
+
"agent-only": "agent-only";
|
|
2738
|
+
}>>;
|
|
1996
2739
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2740
|
+
path: z$1.ZodString;
|
|
2741
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
2742
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2743
|
+
"agent-only": "agent-only";
|
|
2744
|
+
}>>;
|
|
2745
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2746
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
2747
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2748
|
+
path: z$1.ZodString;
|
|
2749
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2750
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
2751
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2752
|
+
"agent-only": "agent-only";
|
|
2753
|
+
}>>;
|
|
2754
|
+
}, z$1.core.$strip>], "type">;
|
|
2755
|
+
type PromptInput = z$1.infer<typeof promptInputSchema>;
|
|
2756
|
+
declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
|
|
2757
|
+
model: z$1.ZodString;
|
|
2758
|
+
permissionMode: z$1.ZodEnum<{
|
|
2759
|
+
"accept-edits": "accept-edits";
|
|
2760
|
+
auto: "auto";
|
|
2761
|
+
full: "full";
|
|
2762
|
+
}>;
|
|
2763
|
+
reasoningLevel: z$1.ZodEnum<{
|
|
2764
|
+
high: "high";
|
|
2765
|
+
low: "low";
|
|
2766
|
+
max: "max";
|
|
2767
|
+
medium: "medium";
|
|
2768
|
+
none: "none";
|
|
2769
|
+
ultra: "ultra";
|
|
2770
|
+
ultracode: "ultracode";
|
|
2771
|
+
xhigh: "xhigh";
|
|
2772
|
+
}>;
|
|
2773
|
+
seq: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2774
|
+
serviceTier: z$1.ZodEnum<{
|
|
2775
|
+
default: "default";
|
|
2776
|
+
fast: "fast";
|
|
2777
|
+
}>;
|
|
2778
|
+
source: z$1.ZodEnum<{
|
|
2779
|
+
"client/thread/start": "client/thread/start";
|
|
2780
|
+
"client/turn/requested": "client/turn/requested";
|
|
2781
|
+
"client/turn/start": "client/turn/start";
|
|
2782
|
+
}>;
|
|
2783
|
+
}, z$1.core.$strip>;
|
|
2784
|
+
type ResolvedThreadExecutionOptions = z$1.infer<typeof resolvedThreadExecutionOptionsSchema>;
|
|
2785
|
+
declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
|
|
2786
|
+
model: z$1.ZodString;
|
|
2787
|
+
permissionMode: z$1.ZodEnum<{
|
|
2788
|
+
"accept-edits": "accept-edits";
|
|
2789
|
+
auto: "auto";
|
|
2790
|
+
full: "full";
|
|
2791
|
+
}>;
|
|
2004
2792
|
providerId: z$1.ZodString;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2793
|
+
reasoningLevel: z$1.ZodEnum<{
|
|
2794
|
+
high: "high";
|
|
2795
|
+
low: "low";
|
|
2796
|
+
max: "max";
|
|
2797
|
+
medium: "medium";
|
|
2798
|
+
none: "none";
|
|
2799
|
+
ultra: "ultra";
|
|
2800
|
+
ultracode: "ultracode";
|
|
2801
|
+
xhigh: "xhigh";
|
|
2802
|
+
}>;
|
|
2803
|
+
serviceTier: z$1.ZodEnum<{
|
|
2804
|
+
default: "default";
|
|
2805
|
+
fast: "fast";
|
|
2806
|
+
}>;
|
|
2807
|
+
}, z$1.core.$strip>;
|
|
2808
|
+
type ProjectExecutionDefaults = z$1.infer<typeof projectExecutionDefaultsSchema>;
|
|
2020
2809
|
|
|
2021
2810
|
/**
|
|
2022
2811
|
* How completely a provider can clone one of its sessions — the single
|
|
2023
2812
|
* vocabulary shared by the provider declaration
|
|
2024
|
-
* (`bb.
|
|
2813
|
+
* (`bb.providers.register`), the server→daemon
|
|
2025
2814
|
* `bridgeLaunch`, and the bridge's `initialize` handshake.
|
|
2026
2815
|
*
|
|
2027
2816
|
* - `"none"`: sessions cannot be cloned at all.
|
|
@@ -2080,8 +2869,34 @@ declare const providerInfoSchema: z$1.ZodObject<{
|
|
|
2080
2869
|
experimental_providerHealth: z$1.ZodBoolean;
|
|
2081
2870
|
experimental_providerInstallation: z$1.ZodBoolean;
|
|
2082
2871
|
experimental_providerUsage: z$1.ZodBoolean;
|
|
2872
|
+
extensionKinds: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>, z$1.ZodObject<{
|
|
2873
|
+
item: z$1.ZodBoolean;
|
|
2874
|
+
state: z$1.ZodBoolean;
|
|
2875
|
+
}, z$1.core.$strip>>>;
|
|
2876
|
+
family: z$1.ZodOptional<z$1.ZodString>;
|
|
2083
2877
|
id: z$1.ZodString;
|
|
2084
2878
|
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
2879
|
+
reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2880
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2881
|
+
id: z$1.ZodString;
|
|
2882
|
+
label: z$1.ZodString;
|
|
2883
|
+
}, z$1.core.$strip>>>;
|
|
2884
|
+
serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2885
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
2886
|
+
id: z$1.ZodString;
|
|
2887
|
+
label: z$1.ZodString;
|
|
2888
|
+
}, z$1.core.$strip>>>;
|
|
2889
|
+
strings: z$1.ZodOptional<z$1.ZodObject<{
|
|
2890
|
+
brandPrefix: z$1.ZodOptional<z$1.ZodString>;
|
|
2891
|
+
expiredHint: z$1.ZodString;
|
|
2892
|
+
iconTint: z$1.ZodOptional<z$1.ZodObject<{
|
|
2893
|
+
dark: z$1.ZodString;
|
|
2894
|
+
light: z$1.ZodString;
|
|
2895
|
+
}, z$1.core.$strip>>;
|
|
2896
|
+
installUrl: z$1.ZodString;
|
|
2897
|
+
planModeCopy: z$1.ZodOptional<z$1.ZodString>;
|
|
2898
|
+
signInHint: z$1.ZodString;
|
|
2899
|
+
}, z$1.core.$strip>>;
|
|
2085
2900
|
}, z$1.core.$strip>;
|
|
2086
2901
|
type ProviderInfo = z$1.infer<typeof providerInfoSchema>;
|
|
2087
2902
|
|
|
@@ -3730,6 +4545,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3730
4545
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
3731
4546
|
supportsThreadRename: z$1.ZodBoolean;
|
|
3732
4547
|
}, z$1.core.$strict>;
|
|
4548
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
3733
4549
|
pluginId: z$1.ZodString;
|
|
3734
4550
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
3735
4551
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -3746,6 +4562,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3746
4562
|
description: z$1.ZodString;
|
|
3747
4563
|
inputSchema: z$1.ZodUnknown;
|
|
3748
4564
|
name: z$1.ZodString;
|
|
4565
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
4566
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
4567
|
+
icon: z$1.ZodObject<{
|
|
4568
|
+
glyph: z$1.ZodString;
|
|
4569
|
+
}, z$1.core.$strip>;
|
|
4570
|
+
label: z$1.ZodObject<{
|
|
4571
|
+
completed: z$1.ZodString;
|
|
4572
|
+
pending: z$1.ZodString;
|
|
4573
|
+
}, z$1.core.$strip>;
|
|
4574
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4575
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
4576
|
+
dark: z$1.ZodString;
|
|
4577
|
+
light: z$1.ZodString;
|
|
4578
|
+
}, z$1.core.$strip>>;
|
|
4579
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
4580
|
+
}, z$1.core.$strip>>;
|
|
3749
4581
|
}, z$1.core.$strip>>;
|
|
3750
4582
|
environmentId: z$1.ZodString;
|
|
3751
4583
|
injectedSkillSources: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -3783,10 +4615,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3783
4615
|
instructions: z$1.ZodString;
|
|
3784
4616
|
leaseId: z$1.ZodString;
|
|
3785
4617
|
options: z$1.ZodIntersection<z$1.ZodObject<{
|
|
3786
|
-
claudeCodePermissionMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
3787
|
-
memoryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3788
4618
|
model: z$1.ZodString;
|
|
3789
|
-
|
|
4619
|
+
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
4620
|
+
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
3790
4621
|
reasoningLevel: z$1.ZodEnum<{
|
|
3791
4622
|
high: "high";
|
|
3792
4623
|
low: "low";
|
|
@@ -3801,7 +4632,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3801
4632
|
default: "default";
|
|
3802
4633
|
fast: "fast";
|
|
3803
4634
|
}>;
|
|
3804
|
-
workflowsEnabled: z$1.ZodBoolean;
|
|
3805
4635
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3806
4636
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
3807
4637
|
permissionEscalation: z$1.ZodEnum<{
|
|
@@ -3955,6 +4785,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3955
4785
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
3956
4786
|
supportsThreadRename: z$1.ZodBoolean;
|
|
3957
4787
|
}, z$1.core.$strict>;
|
|
4788
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
3958
4789
|
pluginId: z$1.ZodString;
|
|
3959
4790
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
3960
4791
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -3971,6 +4802,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
3971
4802
|
description: z$1.ZodString;
|
|
3972
4803
|
inputSchema: z$1.ZodUnknown;
|
|
3973
4804
|
name: z$1.ZodString;
|
|
4805
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
4806
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
4807
|
+
icon: z$1.ZodObject<{
|
|
4808
|
+
glyph: z$1.ZodString;
|
|
4809
|
+
}, z$1.core.$strip>;
|
|
4810
|
+
label: z$1.ZodObject<{
|
|
4811
|
+
completed: z$1.ZodString;
|
|
4812
|
+
pending: z$1.ZodString;
|
|
4813
|
+
}, z$1.core.$strip>;
|
|
4814
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4815
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
4816
|
+
dark: z$1.ZodString;
|
|
4817
|
+
light: z$1.ZodString;
|
|
4818
|
+
}, z$1.core.$strip>>;
|
|
4819
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
4820
|
+
}, z$1.core.$strip>>;
|
|
3974
4821
|
}, z$1.core.$strip>>;
|
|
3975
4822
|
environmentId: z$1.ZodString;
|
|
3976
4823
|
fork: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -4172,10 +5019,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4172
5019
|
}>;
|
|
4173
5020
|
instructions: z$1.ZodString;
|
|
4174
5021
|
options: z$1.ZodIntersection<z$1.ZodObject<{
|
|
4175
|
-
claudeCodePermissionMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
4176
|
-
memoryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4177
5022
|
model: z$1.ZodString;
|
|
4178
|
-
|
|
5023
|
+
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
5024
|
+
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4179
5025
|
reasoningLevel: z$1.ZodEnum<{
|
|
4180
5026
|
high: "high";
|
|
4181
5027
|
low: "low";
|
|
@@ -4190,7 +5036,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4190
5036
|
default: "default";
|
|
4191
5037
|
fast: "fast";
|
|
4192
5038
|
}>;
|
|
4193
|
-
workflowsEnabled: z$1.ZodBoolean;
|
|
4194
5039
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4195
5040
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
4196
5041
|
permissionEscalation: z$1.ZodEnum<{
|
|
@@ -4344,6 +5189,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4344
5189
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
4345
5190
|
supportsThreadRename: z$1.ZodBoolean;
|
|
4346
5191
|
}, z$1.core.$strict>;
|
|
5192
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
4347
5193
|
pluginId: z$1.ZodString;
|
|
4348
5194
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4349
5195
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -4519,10 +5365,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4519
5365
|
}>>;
|
|
4520
5366
|
}, z$1.core.$strip>], "type">>>>;
|
|
4521
5367
|
options: z$1.ZodIntersection<z$1.ZodObject<{
|
|
4522
|
-
claudeCodePermissionMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
4523
|
-
memoryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4524
5368
|
model: z$1.ZodString;
|
|
4525
|
-
|
|
5369
|
+
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
5370
|
+
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4526
5371
|
reasoningLevel: z$1.ZodEnum<{
|
|
4527
5372
|
high: "high";
|
|
4528
5373
|
low: "low";
|
|
@@ -4537,7 +5382,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4537
5382
|
default: "default";
|
|
4538
5383
|
fast: "fast";
|
|
4539
5384
|
}>;
|
|
4540
|
-
workflowsEnabled: z$1.ZodBoolean;
|
|
4541
5385
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4542
5386
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
4543
5387
|
permissionEscalation: z$1.ZodEnum<{
|
|
@@ -4675,6 +5519,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4675
5519
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
4676
5520
|
supportsThreadRename: z$1.ZodBoolean;
|
|
4677
5521
|
}, z$1.core.$strict>;
|
|
5522
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
4678
5523
|
pluginId: z$1.ZodString;
|
|
4679
5524
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4680
5525
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -4691,6 +5536,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4691
5536
|
description: z$1.ZodString;
|
|
4692
5537
|
inputSchema: z$1.ZodUnknown;
|
|
4693
5538
|
name: z$1.ZodString;
|
|
5539
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
5540
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
5541
|
+
icon: z$1.ZodObject<{
|
|
5542
|
+
glyph: z$1.ZodString;
|
|
5543
|
+
}, z$1.core.$strip>;
|
|
5544
|
+
label: z$1.ZodObject<{
|
|
5545
|
+
completed: z$1.ZodString;
|
|
5546
|
+
pending: z$1.ZodString;
|
|
5547
|
+
}, z$1.core.$strip>;
|
|
5548
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5549
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
5550
|
+
dark: z$1.ZodString;
|
|
5551
|
+
light: z$1.ZodString;
|
|
5552
|
+
}, z$1.core.$strip>>;
|
|
5553
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
5554
|
+
}, z$1.core.$strip>>;
|
|
4694
5555
|
}, z$1.core.$strip>>;
|
|
4695
5556
|
injectedSkillSources: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4696
5557
|
description: z$1.ZodString;
|
|
@@ -4879,6 +5740,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4879
5740
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
4880
5741
|
supportsThreadRename: z$1.ZodBoolean;
|
|
4881
5742
|
}, z$1.core.$strict>;
|
|
5743
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
4882
5744
|
pluginId: z$1.ZodString;
|
|
4883
5745
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4884
5746
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -4892,10 +5754,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4892
5754
|
}, z$1.core.$strict>;
|
|
4893
5755
|
environmentId: z$1.ZodString;
|
|
4894
5756
|
options: z$1.ZodIntersection<z$1.ZodObject<{
|
|
4895
|
-
claudeCodePermissionMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
4896
|
-
memoryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4897
5757
|
model: z$1.ZodString;
|
|
4898
|
-
|
|
5758
|
+
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
5759
|
+
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4899
5760
|
reasoningLevel: z$1.ZodEnum<{
|
|
4900
5761
|
high: "high";
|
|
4901
5762
|
low: "low";
|
|
@@ -4910,7 +5771,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
4910
5771
|
default: "default";
|
|
4911
5772
|
fast: "fast";
|
|
4912
5773
|
}>;
|
|
4913
|
-
workflowsEnabled: z$1.ZodBoolean;
|
|
4914
5774
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4915
5775
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
4916
5776
|
permissionEscalation: z$1.ZodEnum<{
|
|
@@ -5047,6 +5907,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5047
5907
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
5048
5908
|
supportsThreadRename: z$1.ZodBoolean;
|
|
5049
5909
|
}, z$1.core.$strict>;
|
|
5910
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
5050
5911
|
pluginId: z$1.ZodString;
|
|
5051
5912
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
5052
5913
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -5063,6 +5924,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5063
5924
|
description: z$1.ZodString;
|
|
5064
5925
|
inputSchema: z$1.ZodUnknown;
|
|
5065
5926
|
name: z$1.ZodString;
|
|
5927
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
5928
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
5929
|
+
icon: z$1.ZodObject<{
|
|
5930
|
+
glyph: z$1.ZodString;
|
|
5931
|
+
}, z$1.core.$strip>;
|
|
5932
|
+
label: z$1.ZodObject<{
|
|
5933
|
+
completed: z$1.ZodString;
|
|
5934
|
+
pending: z$1.ZodString;
|
|
5935
|
+
}, z$1.core.$strip>;
|
|
5936
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5937
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
5938
|
+
dark: z$1.ZodString;
|
|
5939
|
+
light: z$1.ZodString;
|
|
5940
|
+
}, z$1.core.$strip>>;
|
|
5941
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
5942
|
+
}, z$1.core.$strip>>;
|
|
5066
5943
|
}, z$1.core.$strip>>;
|
|
5067
5944
|
injectedSkillSources: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5068
5945
|
description: z$1.ZodString;
|
|
@@ -5146,6 +6023,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5146
6023
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
5147
6024
|
supportsThreadRename: z$1.ZodBoolean;
|
|
5148
6025
|
}, z$1.core.$strict>;
|
|
6026
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
5149
6027
|
pluginId: z$1.ZodString;
|
|
5150
6028
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
5151
6029
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -5189,6 +6067,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5189
6067
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
5190
6068
|
supportsThreadRename: z$1.ZodBoolean;
|
|
5191
6069
|
}, z$1.core.$strict>;
|
|
6070
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
5192
6071
|
pluginId: z$1.ZodString;
|
|
5193
6072
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
5194
6073
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -5938,6 +6817,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5938
6817
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
5939
6818
|
supportsThreadRename: z$1.ZodBoolean;
|
|
5940
6819
|
}, z$1.core.$strict>;
|
|
6820
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
5941
6821
|
pluginId: z$1.ZodString;
|
|
5942
6822
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
5943
6823
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6130,6 +7010,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6130
7010
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
6131
7011
|
supportsThreadRename: z$1.ZodBoolean;
|
|
6132
7012
|
}, z$1.core.$strict>;
|
|
7013
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6133
7014
|
pluginId: z$1.ZodString;
|
|
6134
7015
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6135
7016
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6281,6 +7162,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6281
7162
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
6282
7163
|
supportsThreadRename: z$1.ZodBoolean;
|
|
6283
7164
|
}, z$1.core.$strict>;
|
|
7165
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6284
7166
|
pluginId: z$1.ZodString;
|
|
6285
7167
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6286
7168
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6442,6 +7324,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6442
7324
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
6443
7325
|
supportsThreadRename: z$1.ZodBoolean;
|
|
6444
7326
|
}, z$1.core.$strict>;
|
|
7327
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6445
7328
|
pluginId: z$1.ZodString;
|
|
6446
7329
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6447
7330
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6595,6 +7478,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6595
7478
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
6596
7479
|
supportsThreadRename: z$1.ZodBoolean;
|
|
6597
7480
|
}, z$1.core.$strict>;
|
|
7481
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6598
7482
|
pluginId: z$1.ZodString;
|
|
6599
7483
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6600
7484
|
source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -7815,8 +8699,34 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
|
|
|
7815
8699
|
experimental_providerHealth: z$1.ZodBoolean;
|
|
7816
8700
|
experimental_providerInstallation: z$1.ZodBoolean;
|
|
7817
8701
|
experimental_providerUsage: z$1.ZodBoolean;
|
|
8702
|
+
extensionKinds: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>, z$1.ZodObject<{
|
|
8703
|
+
item: z$1.ZodBoolean;
|
|
8704
|
+
state: z$1.ZodBoolean;
|
|
8705
|
+
}, z$1.core.$strip>>>;
|
|
8706
|
+
family: z$1.ZodOptional<z$1.ZodString>;
|
|
7818
8707
|
id: z$1.ZodString;
|
|
7819
8708
|
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
8709
|
+
reasoningLevels: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
8710
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
8711
|
+
id: z$1.ZodString;
|
|
8712
|
+
label: z$1.ZodString;
|
|
8713
|
+
}, z$1.core.$strip>>>;
|
|
8714
|
+
serviceTiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
8715
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
8716
|
+
id: z$1.ZodString;
|
|
8717
|
+
label: z$1.ZodString;
|
|
8718
|
+
}, z$1.core.$strip>>>;
|
|
8719
|
+
strings: z$1.ZodOptional<z$1.ZodObject<{
|
|
8720
|
+
brandPrefix: z$1.ZodOptional<z$1.ZodString>;
|
|
8721
|
+
expiredHint: z$1.ZodString;
|
|
8722
|
+
iconTint: z$1.ZodOptional<z$1.ZodObject<{
|
|
8723
|
+
dark: z$1.ZodString;
|
|
8724
|
+
light: z$1.ZodString;
|
|
8725
|
+
}, z$1.core.$strip>>;
|
|
8726
|
+
installUrl: z$1.ZodString;
|
|
8727
|
+
planModeCopy: z$1.ZodOptional<z$1.ZodString>;
|
|
8728
|
+
signInHint: z$1.ZodString;
|
|
8729
|
+
}, z$1.core.$strip>>;
|
|
7820
8730
|
}, z$1.core.$strip>>;
|
|
7821
8731
|
selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
|
|
7822
8732
|
defaultReasoningEffort: z$1.ZodEnum<{
|
|
@@ -8040,11 +8950,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
8040
8950
|
timelineWindowEventBudget: z$1.ZodNumber;
|
|
8041
8951
|
}, z$1.core.$strip>;
|
|
8042
8952
|
generalSettings: z$1.ZodObject<{
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
claudeCodeWorkflowsDisabled: z$1.ZodBoolean;
|
|
8046
|
-
codexMemoryEnabled: z$1.ZodBoolean;
|
|
8047
|
-
codexSubagentsDisabled: z$1.ZodBoolean;
|
|
8953
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
8954
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
8048
8955
|
showKeyboardHints: z$1.ZodBoolean;
|
|
8049
8956
|
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
8050
8957
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
@@ -10565,6 +11472,26 @@ declare const threadPendingInteractionsResponseSchema: z$1.ZodArray<z$1.ZodUnion
|
|
|
10565
11472
|
kind: z$1.ZodLiteral<"plan">;
|
|
10566
11473
|
plan: z$1.ZodString;
|
|
10567
11474
|
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
11475
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11476
|
+
itemId: z$1.ZodString;
|
|
11477
|
+
kind: z$1.ZodLiteral<"tool_use">;
|
|
11478
|
+
presentation: z$1.ZodObject<{
|
|
11479
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
11480
|
+
icon: z$1.ZodObject<{
|
|
11481
|
+
glyph: z$1.ZodString;
|
|
11482
|
+
}, z$1.core.$strip>;
|
|
11483
|
+
label: z$1.ZodObject<{
|
|
11484
|
+
completed: z$1.ZodString;
|
|
11485
|
+
pending: z$1.ZodString;
|
|
11486
|
+
}, z$1.core.$strip>;
|
|
11487
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
11488
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
11489
|
+
dark: z$1.ZodString;
|
|
11490
|
+
light: z$1.ZodString;
|
|
11491
|
+
}, z$1.core.$strip>>;
|
|
11492
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
11493
|
+
}, z$1.core.$strip>;
|
|
11494
|
+
tool: z$1.ZodString;
|
|
10568
11495
|
}, z$1.core.$strip>], "kind">;
|
|
10569
11496
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10570
11497
|
kind: z$1.ZodLiteral<"user_question">;
|
|
@@ -12082,7 +13009,8 @@ interface PluginSidebarThread {
|
|
|
12082
13009
|
originKind: "fork" | null;
|
|
12083
13010
|
/** The plugin that spawned it, or null for non-plugin origins. */
|
|
12084
13011
|
originPluginId: string | null;
|
|
12085
|
-
/** The agent provider this thread runs on
|
|
13012
|
+
/** The agent provider this thread runs on; resolve it through
|
|
13013
|
+
* {@link PluginSdkApp.experimental_useProviders} for a name and icon. */
|
|
12086
13014
|
providerId: string;
|
|
12087
13015
|
/** The agent is blocked on the user: an approval or a question. */
|
|
12088
13016
|
hasPendingInteraction: boolean;
|
|
@@ -12152,6 +13080,17 @@ interface PluginSidebarThreadsState {
|
|
|
12152
13080
|
threads: readonly PluginSidebarThread[];
|
|
12153
13081
|
projects: readonly PluginSidebarProject[];
|
|
12154
13082
|
}
|
|
13083
|
+
/**
|
|
13084
|
+
* The provider directory (see {@link PluginSdkApp.experimental_useProviders}):
|
|
13085
|
+
* every registered agent provider in picker order, as the same `ProviderInfo`
|
|
13086
|
+
* the host's own pickers read. `logoUrl` is server-relative
|
|
13087
|
+
* (`/api/v1/system/providers/<id>/logo`) or null when the provider declared a
|
|
13088
|
+
* glyph or no icon; `strings` carries the provider's declared copy.
|
|
13089
|
+
*/
|
|
13090
|
+
interface PluginProvidersState {
|
|
13091
|
+
status: "error" | "loading" | "ready";
|
|
13092
|
+
providers: readonly ProviderInfo[];
|
|
13093
|
+
}
|
|
12155
13094
|
/**
|
|
12156
13095
|
* Act on threads from a plugin surface. Every method routes to the host's own
|
|
12157
13096
|
* flow, so optimistic updates, toasts, dialogs, pane closing, and route repair
|
|
@@ -13139,6 +14078,13 @@ interface PluginSdkApp {
|
|
|
13139
14078
|
* Experimental: see docs/api_to_audit.md.
|
|
13140
14079
|
*/
|
|
13141
14080
|
experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
|
|
14081
|
+
/**
|
|
14082
|
+
* The provider directory (see {@link PluginProvidersState}). Reads the
|
|
14083
|
+
* host's own cached provider roster, so a plugin that shows a thread's
|
|
14084
|
+
* provider never re-vendors provider names, icons, or copy. Experimental:
|
|
14085
|
+
* see docs/api_to_audit.md.
|
|
14086
|
+
*/
|
|
14087
|
+
experimental_useProviders(): PluginProvidersState;
|
|
13142
14088
|
/**
|
|
13143
14089
|
* The host-owned chat component (see {@link ThreadChatProps}). Together
|
|
13144
14090
|
* with `Markdown`, the only components the SDK ships — everything else
|
|
@@ -14907,6 +15853,29 @@ interface PluginAgentToolExperimentalStatusLabels {
|
|
|
14907
15853
|
/** Label shown after the tool call completes successfully. */
|
|
14908
15854
|
completed: string;
|
|
14909
15855
|
}
|
|
15856
|
+
/**
|
|
15857
|
+
* How calls to a native plugin tool read as a timeline row (grammar v3). Every
|
|
15858
|
+
* field is optional at registration: the server fills what the plugin leaves
|
|
15859
|
+
* out (the `experimental_statusLabels` pair as the label, then a generic
|
|
15860
|
+
* label; the plugin's branding glyph, then `Toolbox`) and hands one complete
|
|
15861
|
+
* presentation to the provider bridge with the tool definition.
|
|
15862
|
+
*/
|
|
15863
|
+
interface PluginAgentToolPresentation {
|
|
15864
|
+
/** Row title while the call is pending and once it settled. */
|
|
15865
|
+
label?: PluginAgentToolExperimentalStatusLabels;
|
|
15866
|
+
/** A named host glyph (`{ glyph: "Workflow" }`). */
|
|
15867
|
+
icon?: {
|
|
15868
|
+
glyph: string;
|
|
15869
|
+
};
|
|
15870
|
+
/** Low-value rows clients collapse by default (a question a dedicated
|
|
15871
|
+
* interaction row already shows, a bookkeeping call). */
|
|
15872
|
+
suppress?: boolean;
|
|
15873
|
+
/** Accent colour per theme; omitted rows use the neutral row tint. */
|
|
15874
|
+
tint?: {
|
|
15875
|
+
light: string;
|
|
15876
|
+
dark: string;
|
|
15877
|
+
};
|
|
15878
|
+
}
|
|
14910
15879
|
interface PluginAgentToolRegistrationBase {
|
|
14911
15880
|
/** Tool name shown to the model: [a-zA-Z0-9_-]+, unique across plugins,
|
|
14912
15881
|
* and not a built-in dynamic tool (see RESERVED_AGENT_TOOL_NAMES in the
|
|
@@ -14926,6 +15895,12 @@ interface PluginAgentToolRegistrationBase {
|
|
|
14926
15895
|
* approval, error, and interruption states keep BB's standard rendering.
|
|
14927
15896
|
*/
|
|
14928
15897
|
experimental_statusLabels?: PluginAgentToolExperimentalStatusLabels;
|
|
15898
|
+
/**
|
|
15899
|
+
* How calls to this tool read as a timeline row (grammar v3). Supersedes
|
|
15900
|
+
* `experimental_statusLabels`, which still supplies the label when this
|
|
15901
|
+
* field omits one. See docs/api_to_audit.md.
|
|
15902
|
+
*/
|
|
15903
|
+
experimental_presentation?: PluginAgentToolPresentation;
|
|
14929
15904
|
}
|
|
14930
15905
|
/** Stable, plain-data context resolved by the server for one agent session. */
|
|
14931
15906
|
interface PluginAgentConfigurationContext {
|
|
@@ -15069,9 +16044,6 @@ interface PluginProviderCapabilities {
|
|
|
15069
16044
|
/** The provider stores a thread name of its own, so BB forwards renames to
|
|
15070
16045
|
* it. */
|
|
15071
16046
|
supportsThreadRename: boolean;
|
|
15072
|
-
/** The provider can run BB's Workflow tools — gates the workflows opt-in on
|
|
15073
|
-
* new threads. */
|
|
15074
|
-
supportsWorkflows: boolean;
|
|
15075
16047
|
/** Permission modes the provider can actually run in. Non-empty, no
|
|
15076
16048
|
* duplicates. */
|
|
15077
16049
|
permissionModes: readonly PluginProviderPermissionMode[];
|
|
@@ -15079,14 +16051,109 @@ interface PluginProviderCapabilities {
|
|
|
15079
16051
|
* {@link PluginProviderReasoningLevel}). Non-empty, no duplicates. */
|
|
15080
16052
|
reasoningLevels: readonly PluginProviderReasoningLevel[];
|
|
15081
16053
|
}
|
|
16054
|
+
/**
|
|
16055
|
+
* Provider copy core surfaces render from per-provider tables today (usage
|
|
16056
|
+
* banners, sign-in hints, the mobile picker, the agent guide). Declared once
|
|
16057
|
+
* here so no core surface keys copy on a provider id. Mirrors
|
|
16058
|
+
* `ProviderStrings` in `@bb/domain`, which is the client projection.
|
|
16059
|
+
*/
|
|
16060
|
+
interface PluginProviderStrings {
|
|
16061
|
+
/** How to sign in on the host ("Run `claude` on the machine to sign in."). */
|
|
16062
|
+
signInHint: string;
|
|
16063
|
+
/** Shown when a session's credentials expired. */
|
|
16064
|
+
expiredHint: string;
|
|
16065
|
+
/** Where to install the agent. */
|
|
16066
|
+
installUrl: string;
|
|
16067
|
+
/** Brand prefix stripped from model display names ("Claude "). */
|
|
16068
|
+
brandPrefix?: string;
|
|
16069
|
+
/** Plan-mode banner copy for providers that declare the `plan` action. */
|
|
16070
|
+
planModeCopy?: string;
|
|
16071
|
+
/** Per-theme tint for the provider icon. */
|
|
16072
|
+
iconTint?: {
|
|
16073
|
+
light: string;
|
|
16074
|
+
dark: string;
|
|
16075
|
+
};
|
|
16076
|
+
}
|
|
16077
|
+
/**
|
|
16078
|
+
* One selectable option for a picker — a service tier or a reasoning level.
|
|
16079
|
+
* `id` is the wire value the bridge receives; `label` is what the picker
|
|
16080
|
+
* shows. Declared lists are the cold-cache fallback; `model/list` is precise
|
|
16081
|
+
* per model.
|
|
16082
|
+
*/
|
|
16083
|
+
interface PluginProviderOptionDescriptor {
|
|
16084
|
+
id: string;
|
|
16085
|
+
label: string;
|
|
16086
|
+
description?: string;
|
|
16087
|
+
}
|
|
16088
|
+
/**
|
|
16089
|
+
* Payload schemas for one extension kind this provider emits, keyed by the
|
|
16090
|
+
* kind's local name (the server prefixes the plugin id to form the
|
|
16091
|
+
* namespaced `"<pluginId>/<name>"`). `item` validates `item.open` payloads
|
|
16092
|
+
* with `type: "extension"`, `state` validates `extension.state` payloads;
|
|
16093
|
+
* each is optional so a kind can be item-only or state-only. Schemas are
|
|
16094
|
+
* Standard Schema v1 validators (zod 4 schemas qualify).
|
|
16095
|
+
*/
|
|
16096
|
+
interface PluginProviderExtensionKindDeclaration {
|
|
16097
|
+
item?: StandardSchemaV1;
|
|
16098
|
+
state?: StandardSchemaV1;
|
|
16099
|
+
}
|
|
16100
|
+
/**
|
|
16101
|
+
* Per-command context handed to
|
|
16102
|
+
* {@link PluginProviderDeclaration.experimental_deriveProviderOptions}. The
|
|
16103
|
+
* server builds one for every session and turn command it dispatches on a
|
|
16104
|
+
* thread of this provider.
|
|
16105
|
+
*/
|
|
16106
|
+
interface PluginProviderOptionsContext {
|
|
16107
|
+
threadId: string;
|
|
16108
|
+
projectId: string;
|
|
16109
|
+
/** The resolved model id for this command. */
|
|
16110
|
+
model: string;
|
|
16111
|
+
/** BB's permission mode for this command (already clamped to the host). */
|
|
16112
|
+
permissionMode: PluginProviderPermissionMode;
|
|
16113
|
+
/**
|
|
16114
|
+
* `"plan"` when the prompt entered plan mode through this provider's
|
|
16115
|
+
* declared `plan` composer action. Absent for an ordinary prompt — plan
|
|
16116
|
+
* mode is a BB prompt mode, so the bridge maps it onto whatever the agent
|
|
16117
|
+
* calls it natively.
|
|
16118
|
+
*/
|
|
16119
|
+
promptMode?: "plan";
|
|
16120
|
+
/**
|
|
16121
|
+
* This plugin's own settings values (`bb.settings.define`), read at call
|
|
16122
|
+
* time. Secret settings are omitted — provider options ride the daemon
|
|
16123
|
+
* wire and are persisted with the session, so a secret must never be
|
|
16124
|
+
* derived into them.
|
|
16125
|
+
*/
|
|
16126
|
+
settings: Readonly<Record<string, PluginSettingValue | undefined>>;
|
|
16127
|
+
}
|
|
16128
|
+
/**
|
|
16129
|
+
* One cold-cache fallback model. The provider's live `model/list` result is
|
|
16130
|
+
* the only real model source; this list stands in only while no probe has
|
|
16131
|
+
* completed, or when a probe fails transiently, so the picker is not empty.
|
|
16132
|
+
* `id` is the wire model id the bridge receives.
|
|
16133
|
+
*/
|
|
16134
|
+
interface PluginProviderFallbackModel {
|
|
16135
|
+
id: string;
|
|
16136
|
+
/** Picker display name ("Opus 5 (1M)"). */
|
|
16137
|
+
displayName: string;
|
|
16138
|
+
description: string;
|
|
16139
|
+
/** Reasoning levels this model supports, lowest to highest. Non-empty. */
|
|
16140
|
+
supportedReasoningEfforts: readonly {
|
|
16141
|
+
reasoningEffort: PluginProviderReasoningLevel;
|
|
16142
|
+
description: string;
|
|
16143
|
+
}[];
|
|
16144
|
+
/** Must be one of `supportedReasoningEfforts`. */
|
|
16145
|
+
defaultReasoningEffort: PluginProviderReasoningLevel;
|
|
16146
|
+
/** Exactly one entry in the list is the default. */
|
|
16147
|
+
isDefault: boolean;
|
|
16148
|
+
}
|
|
15082
16149
|
/**
|
|
15083
16150
|
* One provider this plugin contributes to BB's provider registry.
|
|
15084
16151
|
*
|
|
15085
16152
|
* Ids are stable public identifiers — thread rows and routes reference them —
|
|
15086
16153
|
* and are collision-rejected: a declaration whose id matches another plugin's
|
|
15087
|
-
* live registration
|
|
15088
|
-
*
|
|
15089
|
-
* other plugin surface.
|
|
16154
|
+
* live registration is refused; the first registration wins and no id is
|
|
16155
|
+
* reserved ahead of time. Registrations are replaced wholesale on plugin
|
|
16156
|
+
* reload, like every other plugin surface.
|
|
15090
16157
|
*
|
|
15091
16158
|
* A declaration owns the provider's static metadata and bridge options. The
|
|
15092
16159
|
* executable implementation is the plugin's own provider bridge, named by
|
|
@@ -15101,6 +16168,12 @@ interface PluginProviderDeclaration {
|
|
|
15101
16168
|
id: string;
|
|
15102
16169
|
/** Picker display name: 1–80 characters, non-blank. */
|
|
15103
16170
|
displayName: string;
|
|
16171
|
+
/**
|
|
16172
|
+
* Optional grouping key (same grammar as `id`) for providers that share a
|
|
16173
|
+
* family — the ACP agents, for example — so clients can group them without
|
|
16174
|
+
* parsing a prefix out of the id. Grouping only: no policy keys on it.
|
|
16175
|
+
*/
|
|
16176
|
+
experimental_family?: string;
|
|
15104
16177
|
/**
|
|
15105
16178
|
* Optional picker icon, in the same grammar as `bb.branding.icon`: either a
|
|
15106
16179
|
* named host glyph (`"Zap"`) or a plugin-relative path starting with `"./"`
|
|
@@ -15127,6 +16200,52 @@ interface PluginProviderDeclaration {
|
|
|
15127
16200
|
/** Composer actions this provider supports. No duplicates; may be empty
|
|
15128
16201
|
* (the universal skills typeahead is implicit). */
|
|
15129
16202
|
composerActions: readonly PluginProviderComposerAction[];
|
|
16203
|
+
/** Provider copy for core surfaces ({@link PluginProviderStrings}). */
|
|
16204
|
+
experimental_strings?: PluginProviderStrings;
|
|
16205
|
+
/** Service tiers this provider accepts, as picker options. Non-empty when
|
|
16206
|
+
* present, unique ids. The coarse `capabilities.supportsServiceTier` stays
|
|
16207
|
+
* until WS2a stabilizes. */
|
|
16208
|
+
experimental_serviceTiers?: readonly PluginProviderOptionDescriptor[];
|
|
16209
|
+
/** Reasoning levels as picker options with labels, beside the coarse
|
|
16210
|
+
* `capabilities.reasoningLevels` ladder (ids only). Non-empty when present,
|
|
16211
|
+
* unique ids. WS2a merges the two. */
|
|
16212
|
+
experimental_reasoningLevels?: readonly PluginProviderOptionDescriptor[];
|
|
16213
|
+
/** Extension kinds this provider's bridge may emit, keyed by local name
|
|
16214
|
+
* (`[a-z0-9-]+`). The server validates extension payloads against these
|
|
16215
|
+
* schemas at ingest and persists a `provider/unhandled` on a miss. */
|
|
16216
|
+
experimental_extensionKinds?: Readonly<Record<string, PluginProviderExtensionKindDeclaration>>;
|
|
16217
|
+
/**
|
|
16218
|
+
* Cold-cache fallback models ({@link PluginProviderFallbackModel}). The
|
|
16219
|
+
* server offers them only while a model probe has not completed or failed
|
|
16220
|
+
* transiently; the live `model/list` result always replaces them. Ids must
|
|
16221
|
+
* be unique and exactly one entry must be the default.
|
|
16222
|
+
*/
|
|
16223
|
+
experimental_models?: {
|
|
16224
|
+
fallback: readonly PluginProviderFallbackModel[];
|
|
16225
|
+
};
|
|
16226
|
+
/**
|
|
16227
|
+
* Daemon environment variables this provider's bridge may read. Provider
|
|
16228
|
+
* processes are spawned with every inherited `BB_*` variable stripped, so a
|
|
16229
|
+
* bridge that honors an operator override (a CLI path, say) names it here
|
|
16230
|
+
* and the daemon forwards exactly those variables. Names are
|
|
16231
|
+
* `[A-Z_][A-Z0-9_]*`, at most 32.
|
|
16232
|
+
*/
|
|
16233
|
+
experimental_env?: {
|
|
16234
|
+
passthrough: readonly string[];
|
|
16235
|
+
};
|
|
16236
|
+
/**
|
|
16237
|
+
* Derive this provider's opaque per-command options. Called synchronously
|
|
16238
|
+
* by the server for every session and turn command on a thread of this
|
|
16239
|
+
* provider, with the command's {@link PluginProviderOptionsContext}; the
|
|
16240
|
+
* returned JSON object reaches this plugin's bridge as
|
|
16241
|
+
* `options.providerOptions`, merged over `experimental_bridgeOptions`. Core
|
|
16242
|
+
* never interprets its keys — this is where a provider's own knobs (memory,
|
|
16243
|
+
* native subagents, a native plan flag) travel instead of on the shared
|
|
16244
|
+
* execution contract. A throw fails the command with the plugin named, so
|
|
16245
|
+
* a buggy hook cannot silently run a turn with default knobs. Must be fast:
|
|
16246
|
+
* it sits on the turn-submit path.
|
|
16247
|
+
*/
|
|
16248
|
+
experimental_deriveProviderOptions?: (context: PluginProviderOptionsContext) => Readonly<Record<string, JsonValue>>;
|
|
15130
16249
|
}
|
|
15131
16250
|
interface PluginAgents {
|
|
15132
16251
|
/**
|
|
@@ -15187,17 +16306,35 @@ interface PluginAgents {
|
|
|
15187
16306
|
projectId: string;
|
|
15188
16307
|
}) => string | null): void;
|
|
15189
16308
|
/**
|
|
15190
|
-
*
|
|
16309
|
+
* The original registration entry point, kept as an alias of
|
|
16310
|
+
* {@link PluginProviders.register} (`bb.providers.register`) so plugins
|
|
16311
|
+
* compiled against it keep loading. New code registers through
|
|
16312
|
+
* `bb.providers`; this alias goes when the surface stabilizes.
|
|
16313
|
+
*/
|
|
16314
|
+
experimental_registerProvider(declaration: PluginProviderDeclaration): {
|
|
16315
|
+
dispose(): void;
|
|
16316
|
+
};
|
|
16317
|
+
}
|
|
16318
|
+
/**
|
|
16319
|
+
* Provider registration (docs/provider-plugin-api.md §1). Owns only
|
|
16320
|
+
* registration; `bb.agents` keeps `configure`, `registerTool`, and
|
|
16321
|
+
* `contributeInstructions`.
|
|
16322
|
+
*/
|
|
16323
|
+
interface PluginProviders {
|
|
16324
|
+
/**
|
|
16325
|
+
* Register an agent provider this plugin contributes (see
|
|
15191
16326
|
* docs/api_to_audit.md before relying on it). The declaration is validated
|
|
15192
16327
|
* at call time; the provider joins the server's provider registry when the
|
|
15193
|
-
* plugin load commits and then appears in provider listings
|
|
15194
|
-
*
|
|
15195
|
-
*
|
|
15196
|
-
*
|
|
15197
|
-
*
|
|
15198
|
-
*
|
|
16328
|
+
* plugin load commits and then appears in provider listings as exactly one
|
|
16329
|
+
* client shape, `ProviderInfo`. Ids are flat and collision-rejected: the
|
|
16330
|
+
* first live registration of an id wins, a later one from another plugin
|
|
16331
|
+
* fails that plugin's load, and no id is reserved ahead of time. A plugin
|
|
16332
|
+
* may register several providers and may re-register after `dispose()` (a
|
|
16333
|
+
* settings-driven re-declaration); registrations are replaced wholesale on
|
|
16334
|
+
* plugin reload, like every other surface. The disposer removes the
|
|
16335
|
+
* registration.
|
|
15199
16336
|
*/
|
|
15200
|
-
|
|
16337
|
+
register(declaration: PluginProviderDeclaration): {
|
|
15201
16338
|
dispose(): void;
|
|
15202
16339
|
};
|
|
15203
16340
|
}
|
|
@@ -15342,6 +16479,8 @@ interface BbPluginApi {
|
|
|
15342
16479
|
readonly cli: PluginCli;
|
|
15343
16480
|
/** Per-turn agent context contributions (design §4.4). */
|
|
15344
16481
|
readonly agents: PluginAgents;
|
|
16482
|
+
/** Agent provider registration (docs/provider-plugin-api.md §1). */
|
|
16483
|
+
readonly providers: PluginProviders;
|
|
15345
16484
|
/** Host-rendered UI contributions (design §4.9). */
|
|
15346
16485
|
readonly ui: PluginUi;
|
|
15347
16486
|
/** Additive plugin lifecycle listeners (design §4.5). */
|
|
@@ -15370,4 +16509,4 @@ interface BbPluginApi {
|
|
|
15370
16509
|
}
|
|
15371
16510
|
|
|
15372
16511
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
|
|
15373
|
-
export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, 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, PluginProviderIconRegistration, PluginProviderPermissionMode, PluginProviderReasoningLevel, 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, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
|
|
16512
|
+
export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, 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, 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, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
|