@get-bb/plugin-sdk 0.6.52 → 0.6.59
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 +444 -13
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +11 -2
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +72 -11
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +27 -7
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +30 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +42 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +30 -2
- package/bundled-types/bb-plugin-sdk-testing.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk.d.ts +446 -14
- package/dist/app.js +12 -0
- package/dist/host.js +150 -5
- package/dist/internal/plugin-app-collector.js +89 -15
- package/dist/provider-bridge-acp-next.js +314 -81
- package/dist/provider-bridge-acp.js +6733 -632
- package/dist/provider-bridge-testing.js +77 -32
- package/dist/provider-bridge-worker-entry.mjs +136 -5
- package/dist/provider-bridge.js +196 -8
- package/dist/testing/app.js +169 -15
- package/dist/testing/index.js +1 -0
- package/package.json +1 -2
|
@@ -142,6 +142,7 @@ type Project = z.infer<typeof projectSchema>;
|
|
|
142
142
|
declare const threadResponseSchema: z.ZodObject<{
|
|
143
143
|
activeBackgroundAgentCount: z.ZodNumber;
|
|
144
144
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
145
|
+
canEditMessages: z.ZodBoolean;
|
|
145
146
|
canRestoreEnvironment: z.ZodBoolean;
|
|
146
147
|
canSpawnChild: z.ZodBoolean;
|
|
147
148
|
createdAt: z.ZodNumber;
|
|
@@ -623,6 +623,15 @@ interface PortableOutputChildProcess extends PortableChildProcess {
|
|
|
623
623
|
}
|
|
624
624
|
declare function spawnPortableOutputProcess(request: PortablePipedSpawnRequest): PortableOutputChildProcess;
|
|
625
625
|
|
|
626
|
+
type VcsProcessPriority = "background" | "interactive" | "status";
|
|
627
|
+
interface VcsProcessOptions {
|
|
628
|
+
priority?: VcsProcessPriority;
|
|
629
|
+
signal?: AbortSignal;
|
|
630
|
+
slots?: number;
|
|
631
|
+
}
|
|
632
|
+
type Command = "gh" | "git";
|
|
633
|
+
declare function runVcsProcess<T>(command: Command, args: readonly string[], operation: () => Promise<T>, options?: VcsProcessOptions): Promise<T>;
|
|
634
|
+
|
|
626
635
|
interface ProcessWithCwd {
|
|
627
636
|
pid: number;
|
|
628
637
|
cwd: string;
|
|
@@ -666,5 +675,5 @@ interface ExperimentalProcessIdentity {
|
|
|
666
675
|
*/
|
|
667
676
|
declare function experimental_readProcessIdentity(pid: number): Promise<ExperimentalProcessIdentity | null>;
|
|
668
677
|
|
|
669
|
-
export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
|
|
670
|
-
export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
|
|
678
|
+
export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, runVcsProcess as experimental_runVcsProcess, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
|
|
679
|
+
export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, VcsProcessOptions as ExperimentalVcsProcessOptions, VcsProcessPriority as ExperimentalVcsProcessPriority, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
|
|
@@ -480,6 +480,7 @@ type ExecutionInputFieldSource = CallerExecutionInputSource;
|
|
|
480
480
|
declare const threadResponseSchema: z.ZodObject<{
|
|
481
481
|
activeBackgroundAgentCount: z.ZodNumber;
|
|
482
482
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
483
|
+
canEditMessages: z.ZodBoolean;
|
|
483
484
|
canRestoreEnvironment: z.ZodBoolean;
|
|
484
485
|
canSpawnChild: z.ZodBoolean;
|
|
485
486
|
createdAt: z.ZodNumber;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
|
|
11
11
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
12
12
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -69,6 +69,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
69
69
|
sidebarFooterActions: PluginSidebarFooterActionRegistration[];
|
|
70
70
|
experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
|
|
71
71
|
threadLists: PluginThreadListRegistration[];
|
|
72
|
+
experimentalSidebarNavigations: CollectedSidebarNavigationRegistration[];
|
|
72
73
|
threadHeaderActions: PluginThreadHeaderActionRegistration[];
|
|
73
74
|
threadActions: PluginThreadActionRegistration<unknown>[];
|
|
74
75
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
@@ -86,6 +87,9 @@ interface CollectedPluginAppRegistrations {
|
|
|
86
87
|
machineProviderInputs: PluginMachineProviderInputsRegistration[];
|
|
87
88
|
contentScripts: PluginContentScriptRegistration[];
|
|
88
89
|
}
|
|
90
|
+
interface CollectedSidebarNavigationRegistration extends ExperimentalSidebarNavigationRegistration {
|
|
91
|
+
placement: ExperimentalSidebarNavigationPlacement;
|
|
92
|
+
}
|
|
89
93
|
declare function getCollectedSidebarFooterItems(registrations: object): readonly CollectedSidebarFooterItem[] | null;
|
|
90
94
|
/**
|
|
91
95
|
* Run a plugin app definition against the canonical validating collector.
|
|
@@ -93,7 +97,7 @@ declare function getCollectedSidebarFooterItems(registrations: object): readonly
|
|
|
93
97
|
* registration accepted by one cannot be rejected or normalized differently
|
|
94
98
|
* by the other.
|
|
95
99
|
*/
|
|
96
|
-
declare function collectPluginAppRegistrations(definition: PluginAppDefinition,
|
|
100
|
+
declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onWarning?: (message: string) => void): CollectedPluginAppRegistrations;
|
|
97
101
|
|
|
98
102
|
export { adaptSidebarFooterAction, collectPluginAppRegistrations, getCollectedSidebarFooterItems };
|
|
99
|
-
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot };
|
|
103
|
+
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot };
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
// Confused by the API, or need a symbol that isn't here? Clone the BB repo
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
|
+
import * as zod from 'zod';
|
|
8
9
|
import { z } from 'zod';
|
|
10
|
+
import * as zod_v4_core from 'zod/v4/core';
|
|
9
11
|
|
|
10
12
|
interface JsonObject {
|
|
11
13
|
[key: string]: JsonValue;
|
|
@@ -149,6 +151,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
149
151
|
description: z.ZodString;
|
|
150
152
|
error: z.ZodOptional<z.ZodString>;
|
|
151
153
|
familyId: z.ZodString;
|
|
154
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
152
155
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
153
156
|
skipTranscript: z.ZodBoolean;
|
|
154
157
|
status: z.ZodEnum<{
|
|
@@ -298,8 +301,6 @@ declare const providerUsageResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
298
301
|
}, z.core.$loose>], "supported">;
|
|
299
302
|
type ProviderUsageResult = z.infer<typeof providerUsageResultSchema>;
|
|
300
303
|
|
|
301
|
-
declare const experimental_providerBridge: ProviderBridgeEntry;
|
|
302
|
-
|
|
303
304
|
interface AcpMaintenanceDialect {
|
|
304
305
|
loginCommand: string;
|
|
305
306
|
installer(): {
|
|
@@ -461,7 +462,6 @@ type AcpAgentProbe = {
|
|
|
461
462
|
reason: string;
|
|
462
463
|
};
|
|
463
464
|
declare function probeAcpAgent(request: AcpAgentProbeRequest): Promise<AcpAgentProbe>;
|
|
464
|
-
declare const acpAgentProbeSchema: z.ZodType<AcpAgentProbe>;
|
|
465
465
|
|
|
466
466
|
declare const acpLaunchSpecSchema: z.ZodObject<{
|
|
467
467
|
args: z.ZodArray<z.ZodString>;
|
|
@@ -529,10 +529,7 @@ interface AgentModelCatalog {
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
|
-
* `@get-bb/plugin-sdk/provider-bridge/acp
|
|
533
|
-
* ACP bridge kit, published beside `provider-bridge/acp` until it replaces it
|
|
534
|
-
* (docs/api_to_audit.md). The exports match the original kit, plus
|
|
535
|
-
* `experimental_registerAcpDialect`.
|
|
532
|
+
* `@get-bb/plugin-sdk/provider-bridge/acp` — the published ACP bridge kit.
|
|
536
533
|
*
|
|
537
534
|
* The Agent Client Protocol (https://agentclientprotocol.com) is one wire
|
|
538
535
|
* protocol spoken by many agents, so bb runs all of them through one generic
|
|
@@ -544,7 +541,7 @@ interface AgentModelCatalog {
|
|
|
544
541
|
* ```ts
|
|
545
542
|
* // host.ts (the plugin's `bb.host` entry)
|
|
546
543
|
* export { experimental_acpProviderBridge as experimental_providerBridge }
|
|
547
|
-
* from "@get-bb/plugin-sdk/provider-bridge/acp
|
|
544
|
+
* from "@get-bb/plugin-sdk/provider-bridge/acp";
|
|
548
545
|
*
|
|
549
546
|
* // server.ts
|
|
550
547
|
* bb.providers.register({
|
|
@@ -552,7 +549,7 @@ interface AgentModelCatalog {
|
|
|
552
549
|
* displayName: "Amp",
|
|
553
550
|
* experimental_bridgeOptions: {
|
|
554
551
|
* acpLaunchSpec: { displayName: "Amp", command: "amp", args: ["acp"], env: {} },
|
|
555
|
-
* acpDialect: "
|
|
552
|
+
* acpDialect: "acp",
|
|
556
553
|
* },
|
|
557
554
|
* // …the rest of the declaration
|
|
558
555
|
* })
|
|
@@ -573,7 +570,7 @@ interface AgentModelCatalog {
|
|
|
573
570
|
* // host.ts
|
|
574
571
|
* import {
|
|
575
572
|
* experimental_registerAcpDialect,
|
|
576
|
-
* } from "@get-bb/plugin-sdk/provider-bridge/acp
|
|
573
|
+
* } from "@get-bb/plugin-sdk/provider-bridge/acp";
|
|
577
574
|
*
|
|
578
575
|
* experimental_registerAcpDialect({
|
|
579
576
|
* id: "amp",
|
|
@@ -602,5 +599,69 @@ interface AgentModelCatalog {
|
|
|
602
599
|
*/
|
|
603
600
|
type AcpAgentProfile = AcpLaunchSpec;
|
|
604
601
|
|
|
605
|
-
|
|
602
|
+
/** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
|
|
603
|
+
declare const experimental_acpAgentProbeSchema: zod.ZodType<AcpAgentProbe, unknown, zod_v4_core.$ZodTypeInternals<AcpAgentProbe, unknown>>;
|
|
604
|
+
/** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
|
|
605
|
+
declare const experimental_acpLaunchSpecSchema: zod.ZodObject<{
|
|
606
|
+
args: zod.ZodArray<zod.ZodString>;
|
|
607
|
+
command: zod.ZodString;
|
|
608
|
+
cwd: zod.ZodOptional<zod.ZodString>;
|
|
609
|
+
displayName: zod.ZodString;
|
|
610
|
+
env: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
|
611
|
+
modelCli: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
|
|
612
|
+
listArgs: zod.ZodArray<zod.ZodString>;
|
|
613
|
+
primaryModels: zod.ZodArray<zod.ZodString>;
|
|
614
|
+
selectFlag: zod.ZodOptional<zod.ZodString>;
|
|
615
|
+
}, zod_v4_core.$strict>, zod.ZodTransform<{
|
|
616
|
+
listArgs: string[];
|
|
617
|
+
primaryModels: string[];
|
|
618
|
+
selectFlag?: string | undefined;
|
|
619
|
+
} | undefined, {
|
|
620
|
+
listArgs: string[];
|
|
621
|
+
primaryModels: string[];
|
|
622
|
+
selectFlag?: string | undefined;
|
|
623
|
+
}>>>;
|
|
624
|
+
nativeReasoning: zod.ZodOptional<zod.ZodObject<{
|
|
625
|
+
configId: zod.ZodString;
|
|
626
|
+
defaultLevel: zod.ZodOptional<zod.ZodString>;
|
|
627
|
+
levelValues: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
628
|
+
supportedLevels: zod.ZodArray<zod.ZodString>;
|
|
629
|
+
}, zod_v4_core.$strict>>;
|
|
630
|
+
nativeSkillRoots: zod.ZodOptional<zod.ZodObject<{
|
|
631
|
+
project: zod.ZodDefault<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodObject<{
|
|
632
|
+
ancestors: zod.ZodOptional<zod.ZodBoolean>;
|
|
633
|
+
namePrefix: zod.ZodOptional<zod.ZodString>;
|
|
634
|
+
path: zod.ZodString;
|
|
635
|
+
recursive: zod.ZodOptional<zod.ZodBoolean>;
|
|
636
|
+
skipIfManifest: zod.ZodOptional<zod.ZodString>;
|
|
637
|
+
}, zod_v4_core.$strict>]>>>;
|
|
638
|
+
user: zod.ZodDefault<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodObject<{
|
|
639
|
+
ancestors: zod.ZodOptional<zod.ZodBoolean>;
|
|
640
|
+
namePrefix: zod.ZodOptional<zod.ZodString>;
|
|
641
|
+
path: zod.ZodString;
|
|
642
|
+
recursive: zod.ZodOptional<zod.ZodBoolean>;
|
|
643
|
+
skipIfManifest: zod.ZodOptional<zod.ZodString>;
|
|
644
|
+
}, zod_v4_core.$strict>]>>>;
|
|
645
|
+
}, zod_v4_core.$strict>>;
|
|
646
|
+
permissionCli: zod.ZodOptional<zod.ZodObject<{
|
|
647
|
+
full: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
648
|
+
insertAfterArgs: zod.ZodOptional<zod.ZodNumber>;
|
|
649
|
+
readonly: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
650
|
+
workspaceWrite: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
651
|
+
}, zod_v4_core.$strict>>;
|
|
652
|
+
reasoningCli: zod.ZodOptional<zod.ZodObject<{
|
|
653
|
+
defaultLevel: zod.ZodOptional<zod.ZodString>;
|
|
654
|
+
flag: zod.ZodString;
|
|
655
|
+
levelValues: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
656
|
+
supportedLevels: zod.ZodArray<zod.ZodString>;
|
|
657
|
+
}, zod_v4_core.$strict>>;
|
|
658
|
+
}, zod_v4_core.$strict>;
|
|
659
|
+
/** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
|
|
660
|
+
declare const experimental_acpProviderBridge: ProviderBridgeEntry;
|
|
661
|
+
/** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
|
|
662
|
+
declare const experimental_probeAcpAgent: typeof probeAcpAgent;
|
|
663
|
+
/** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
|
|
664
|
+
declare const experimental_registerAcpDialect: typeof registerAcpDialect;
|
|
665
|
+
|
|
666
|
+
export { experimental_acpAgentProbeSchema, experimental_acpLaunchSpecSchema, experimental_acpProviderBridge, experimental_probeAcpAgent, experimental_registerAcpDialect };
|
|
606
667
|
export type { AgentModelCatalog as AcpAgentModelCatalog, AcpAgentProbe, AcpAgentProbeRequest, AcpAgentProfile, AcpClassifiedToolCall, AcpClientRequestOutcome, AcpDelegationReport, AcpDialect, AcpLaunchSpec, AcpToolCallContent, AcpToolCallStatus, AcpToolCallUpdateEvent, AcpToolIdentity, AcpToolKind };
|
|
@@ -149,6 +149,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
149
149
|
description: z.ZodString;
|
|
150
150
|
error: z.ZodOptional<z.ZodString>;
|
|
151
151
|
familyId: z.ZodString;
|
|
152
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
152
153
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
153
154
|
skipTranscript: z.ZodBoolean;
|
|
154
155
|
status: z.ZodEnum<{
|
|
@@ -436,6 +437,7 @@ interface AcpDialect {
|
|
|
436
437
|
classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
|
|
437
438
|
commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
|
|
438
439
|
normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
440
|
+
readonly clientRequestMethods?: readonly string[];
|
|
439
441
|
handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
|
|
440
442
|
maintenance?: AcpMaintenanceDialect;
|
|
441
443
|
}
|
|
@@ -443,6 +445,7 @@ interface AcpClientRequestOutcome {
|
|
|
443
445
|
result: Record<string, unknown>;
|
|
444
446
|
delegation?: AcpDelegationReport;
|
|
445
447
|
}
|
|
448
|
+
declare function registerAcpDialect(dialect: AcpDialect): void;
|
|
446
449
|
|
|
447
450
|
interface AcpAgentProbeRequest {
|
|
448
451
|
command: string;
|
|
@@ -547,7 +550,7 @@ interface AgentModelCatalog {
|
|
|
547
550
|
* displayName: "Amp",
|
|
548
551
|
* experimental_bridgeOptions: {
|
|
549
552
|
* acpLaunchSpec: { displayName: "Amp", command: "amp", args: ["acp"], env: {} },
|
|
550
|
-
* acpDialect: "
|
|
553
|
+
* acpDialect: "acp",
|
|
551
554
|
* },
|
|
552
555
|
* // …the rest of the declaration
|
|
553
556
|
* })
|
|
@@ -558,11 +561,28 @@ interface AgentModelCatalog {
|
|
|
558
561
|
* agent from another lives beside the protocol: grok stamps
|
|
559
562
|
* `_meta["x.ai/tool"]` on every tool event, Cursor reports sub-agents
|
|
560
563
|
* through a vendor `cursor/task` request. A dialect is a small module that
|
|
561
|
-
* reads those channels; the bridge ships `generic
|
|
562
|
-
* named by id in the registration's bridge
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
564
|
+
* reads those channels; the bridge ships `acp` (the generic one), `cursor`,
|
|
565
|
+
* `grok`, `omp` and `opencode`, named by id in the registration's bridge
|
|
566
|
+
* options (`acpDialect`). A plugin supplies its own with
|
|
567
|
+
* `experimental_registerAcpDialect`, called at module load in the same
|
|
568
|
+
* `bb.host` artifact that re-exports the bridge:
|
|
569
|
+
*
|
|
570
|
+
* ```ts
|
|
571
|
+
* // host.ts
|
|
572
|
+
* import {
|
|
573
|
+
* experimental_registerAcpDialect,
|
|
574
|
+
* } from "@get-bb/plugin-sdk/provider-bridge/acp";
|
|
575
|
+
*
|
|
576
|
+
* experimental_registerAcpDialect({
|
|
577
|
+
* id: "amp",
|
|
578
|
+
* toolIdentity: (event) => readAmpToolName(event),
|
|
579
|
+
* });
|
|
580
|
+
* ```
|
|
581
|
+
*
|
|
582
|
+
* The registration then names it: `acpDialect: "amp"`. A built-in id cannot
|
|
583
|
+
* be replaced, and an id nothing registered falls back to the generic
|
|
584
|
+
* dialect. The registry is one per host artifact, and a dialect's hooks are
|
|
585
|
+
* unversioned — see docs/api_to_audit.md.
|
|
566
586
|
*
|
|
567
587
|
* Curated by hand — named exports only, never `export *`. Value exports
|
|
568
588
|
* carry the `experimental_` prefix every new plugin API member ships with
|
|
@@ -580,5 +600,5 @@ interface AgentModelCatalog {
|
|
|
580
600
|
*/
|
|
581
601
|
type AcpAgentProfile = AcpLaunchSpec;
|
|
582
602
|
|
|
583
|
-
export { acpAgentProbeSchema as experimental_acpAgentProbeSchema, acpLaunchSpecSchema as experimental_acpLaunchSpecSchema, experimental_providerBridge as experimental_acpProviderBridge, probeAcpAgent as experimental_probeAcpAgent };
|
|
603
|
+
export { acpAgentProbeSchema as experimental_acpAgentProbeSchema, acpLaunchSpecSchema as experimental_acpLaunchSpecSchema, experimental_providerBridge as experimental_acpProviderBridge, probeAcpAgent as experimental_probeAcpAgent, registerAcpDialect as experimental_registerAcpDialect };
|
|
584
604
|
export type { AgentModelCatalog as AcpAgentModelCatalog, AcpAgentProbe, AcpAgentProbeRequest, AcpAgentProfile, AcpClassifiedToolCall, AcpClientRequestOutcome, AcpDelegationReport, AcpDialect, AcpLaunchSpec, AcpToolCallContent, AcpToolCallStatus, AcpToolCallUpdateEvent, AcpToolIdentity, AcpToolKind };
|
|
@@ -336,6 +336,7 @@ declare const threadEventBackgroundTaskItemSchema: z.ZodObject<{
|
|
|
336
336
|
description: z.ZodString;
|
|
337
337
|
error: z.ZodOptional<z.ZodString>;
|
|
338
338
|
familyId: z.ZodOptional<z.ZodString>;
|
|
339
|
+
foreground: z.ZodBoolean;
|
|
339
340
|
id: z.ZodString;
|
|
340
341
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
341
342
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -554,6 +555,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
554
555
|
movePath: z.ZodOptional<z.ZodString>;
|
|
555
556
|
path: z.ZodString;
|
|
556
557
|
}, z.core.$strip>>;
|
|
558
|
+
error: z.ZodOptional<z.ZodString>;
|
|
557
559
|
id: z.ZodString;
|
|
558
560
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
559
561
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
@@ -1022,6 +1024,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1022
1024
|
description: z.ZodString;
|
|
1023
1025
|
error: z.ZodOptional<z.ZodString>;
|
|
1024
1026
|
familyId: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
foreground: z.ZodBoolean;
|
|
1025
1028
|
id: z.ZodString;
|
|
1026
1029
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
1027
1030
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -1385,6 +1388,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
1385
1388
|
movePath: z.ZodOptional<z.ZodString>;
|
|
1386
1389
|
path: z.ZodString;
|
|
1387
1390
|
}, z.core.$strip>>;
|
|
1391
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1388
1392
|
id: z.ZodString;
|
|
1389
1393
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1390
1394
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
@@ -1853,6 +1857,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
1853
1857
|
description: z.ZodString;
|
|
1854
1858
|
error: z.ZodOptional<z.ZodString>;
|
|
1855
1859
|
familyId: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
foreground: z.ZodBoolean;
|
|
1856
1861
|
id: z.ZodString;
|
|
1857
1862
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
1858
1863
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -2150,6 +2155,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
2150
2155
|
movePath: z.ZodOptional<z.ZodString>;
|
|
2151
2156
|
path: z.ZodString;
|
|
2152
2157
|
}, z.core.$strip>>;
|
|
2158
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2153
2159
|
id: z.ZodString;
|
|
2154
2160
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
2155
2161
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
@@ -2618,6 +2624,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
2618
2624
|
description: z.ZodString;
|
|
2619
2625
|
error: z.ZodOptional<z.ZodString>;
|
|
2620
2626
|
familyId: z.ZodOptional<z.ZodString>;
|
|
2627
|
+
foreground: z.ZodBoolean;
|
|
2621
2628
|
id: z.ZodString;
|
|
2622
2629
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2623
2630
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -2849,6 +2856,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
2849
2856
|
description: z.ZodString;
|
|
2850
2857
|
error: z.ZodOptional<z.ZodString>;
|
|
2851
2858
|
familyId: z.ZodOptional<z.ZodString>;
|
|
2859
|
+
foreground: z.ZodBoolean;
|
|
2852
2860
|
id: z.ZodString;
|
|
2853
2861
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2854
2862
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -2947,6 +2955,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
2947
2955
|
description: z.ZodString;
|
|
2948
2956
|
error: z.ZodOptional<z.ZodString>;
|
|
2949
2957
|
familyId: z.ZodOptional<z.ZodString>;
|
|
2958
|
+
foreground: z.ZodBoolean;
|
|
2950
2959
|
id: z.ZodString;
|
|
2951
2960
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2952
2961
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -3207,6 +3216,14 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3207
3216
|
providerThreadId: z.ZodString;
|
|
3208
3217
|
threadId: z.ZodString;
|
|
3209
3218
|
type: z.ZodLiteral<"turn/plan/updated">;
|
|
3219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3220
|
+
providerThreadId: z.ZodString;
|
|
3221
|
+
state: z.ZodEnum<{
|
|
3222
|
+
idle: "idle";
|
|
3223
|
+
running: "running";
|
|
3224
|
+
}>;
|
|
3225
|
+
threadId: z.ZodString;
|
|
3226
|
+
type: z.ZodLiteral<"turn/mainRun/updated">;
|
|
3210
3227
|
}, z.core.$strip>, z.ZodObject<{
|
|
3211
3228
|
diff: z.ZodOptional<z.ZodString>;
|
|
3212
3229
|
providerThreadId: z.ZodString;
|
|
@@ -3597,6 +3614,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3597
3614
|
"child-interrupted": "child-interrupted";
|
|
3598
3615
|
"child-needs-attention": "child-needs-attention";
|
|
3599
3616
|
"child-outcome-batch": "child-outcome-batch";
|
|
3617
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
3600
3618
|
"ownership-assigned": "ownership-assigned";
|
|
3601
3619
|
"ownership-removed": "ownership-removed";
|
|
3602
3620
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -3647,6 +3665,9 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3647
3665
|
kind: z.ZodLiteral<"tool-call">;
|
|
3648
3666
|
suppress: z.ZodBoolean;
|
|
3649
3667
|
toolName: z.ZodString;
|
|
3668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3669
|
+
kind: z.ZodLiteral<"directory">;
|
|
3670
|
+
path: z.ZodString;
|
|
3650
3671
|
}, z.core.$strip>], "kind">>>;
|
|
3651
3672
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3652
3673
|
kind: z.ZodLiteral<"thread-start">;
|
|
@@ -4209,6 +4230,12 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4209
4230
|
kind: z.ZodLiteral<"turn.open">;
|
|
4210
4231
|
parentRef: z.ZodOptional<z.ZodString>;
|
|
4211
4232
|
providerTurnId: z.ZodOptional<z.ZodString>;
|
|
4233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4234
|
+
kind: z.ZodLiteral<"turn.mainRun">;
|
|
4235
|
+
state: z.ZodEnum<{
|
|
4236
|
+
idle: "idle";
|
|
4237
|
+
running: "running";
|
|
4238
|
+
}>;
|
|
4212
4239
|
}, z.core.$strip>, z.ZodObject<{
|
|
4213
4240
|
claimIfIdle: z.ZodOptional<z.ZodBoolean>;
|
|
4214
4241
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -4290,6 +4317,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4290
4317
|
description: z.ZodString;
|
|
4291
4318
|
error: z.ZodOptional<z.ZodString>;
|
|
4292
4319
|
familyId: z.ZodString;
|
|
4320
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
4293
4321
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
4294
4322
|
skipTranscript: z.ZodBoolean;
|
|
4295
4323
|
status: z.ZodEnum<{
|
|
@@ -4497,6 +4525,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4497
4525
|
description: z.ZodString;
|
|
4498
4526
|
error: z.ZodOptional<z.ZodString>;
|
|
4499
4527
|
familyId: z.ZodString;
|
|
4528
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
4500
4529
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
4501
4530
|
skipTranscript: z.ZodBoolean;
|
|
4502
4531
|
status: z.ZodEnum<{
|
|
@@ -4667,6 +4696,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4667
4696
|
description: z.ZodString;
|
|
4668
4697
|
error: z.ZodOptional<z.ZodString>;
|
|
4669
4698
|
familyId: z.ZodString;
|
|
4699
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
4670
4700
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
4671
4701
|
skipTranscript: z.ZodBoolean;
|
|
4672
4702
|
status: z.ZodEnum<{
|
|
@@ -416,6 +416,8 @@ type ProviderRawEvent = z.infer<typeof providerRawEventSchema>;
|
|
|
416
416
|
|
|
417
417
|
declare function toPositiveNumber(value: unknown): number | undefined;
|
|
418
418
|
|
|
419
|
+
declare const PLUGIN_INTERACTION_MAX_TITLE_LENGTH = 160;
|
|
420
|
+
|
|
419
421
|
declare const pendingInteractionCommandActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
422
|
command: z.ZodString;
|
|
421
423
|
name: z.ZodString;
|
|
@@ -1903,6 +1905,7 @@ declare const deltaBackgroundTaskShapeSchema: z.ZodObject<{
|
|
|
1903
1905
|
description: z.ZodString;
|
|
1904
1906
|
error: z.ZodOptional<z.ZodString>;
|
|
1905
1907
|
familyId: z.ZodString;
|
|
1908
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
1906
1909
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
1907
1910
|
skipTranscript: z.ZodBoolean;
|
|
1908
1911
|
status: z.ZodEnum<{
|
|
@@ -2076,6 +2079,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2076
2079
|
description: z.ZodString;
|
|
2077
2080
|
error: z.ZodOptional<z.ZodString>;
|
|
2078
2081
|
familyId: z.ZodString;
|
|
2082
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2079
2083
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2080
2084
|
skipTranscript: z.ZodBoolean;
|
|
2081
2085
|
status: z.ZodEnum<{
|
|
@@ -2181,6 +2185,7 @@ declare const deltaProgressSnapshotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2181
2185
|
description: z.ZodString;
|
|
2182
2186
|
error: z.ZodOptional<z.ZodString>;
|
|
2183
2187
|
familyId: z.ZodString;
|
|
2188
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2184
2189
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2185
2190
|
skipTranscript: z.ZodBoolean;
|
|
2186
2191
|
status: z.ZodEnum<{
|
|
@@ -2285,6 +2290,12 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2285
2290
|
kind: z.ZodLiteral<"turn.open">;
|
|
2286
2291
|
parentRef: z.ZodOptional<z.ZodString>;
|
|
2287
2292
|
providerTurnId: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2294
|
+
kind: z.ZodLiteral<"turn.mainRun">;
|
|
2295
|
+
state: z.ZodEnum<{
|
|
2296
|
+
idle: "idle";
|
|
2297
|
+
running: "running";
|
|
2298
|
+
}>;
|
|
2288
2299
|
}, z.core.$strip>, z.ZodObject<{
|
|
2289
2300
|
claimIfIdle: z.ZodOptional<z.ZodBoolean>;
|
|
2290
2301
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -2366,6 +2377,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2366
2377
|
description: z.ZodString;
|
|
2367
2378
|
error: z.ZodOptional<z.ZodString>;
|
|
2368
2379
|
familyId: z.ZodString;
|
|
2380
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2369
2381
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2370
2382
|
skipTranscript: z.ZodBoolean;
|
|
2371
2383
|
status: z.ZodEnum<{
|
|
@@ -2573,6 +2585,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2573
2585
|
description: z.ZodString;
|
|
2574
2586
|
error: z.ZodOptional<z.ZodString>;
|
|
2575
2587
|
familyId: z.ZodString;
|
|
2588
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2576
2589
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2577
2590
|
skipTranscript: z.ZodBoolean;
|
|
2578
2591
|
status: z.ZodEnum<{
|
|
@@ -2743,6 +2756,7 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2743
2756
|
description: z.ZodString;
|
|
2744
2757
|
error: z.ZodOptional<z.ZodString>;
|
|
2745
2758
|
familyId: z.ZodString;
|
|
2759
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
2746
2760
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
2747
2761
|
skipTranscript: z.ZodBoolean;
|
|
2748
2762
|
status: z.ZodEnum<{
|
|
@@ -3136,6 +3150,12 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3136
3150
|
kind: z.ZodLiteral<"turn.open">;
|
|
3137
3151
|
parentRef: z.ZodOptional<z.ZodString>;
|
|
3138
3152
|
providerTurnId: z.ZodOptional<z.ZodString>;
|
|
3153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3154
|
+
kind: z.ZodLiteral<"turn.mainRun">;
|
|
3155
|
+
state: z.ZodEnum<{
|
|
3156
|
+
idle: "idle";
|
|
3157
|
+
running: "running";
|
|
3158
|
+
}>;
|
|
3139
3159
|
}, z.core.$strip>, z.ZodObject<{
|
|
3140
3160
|
claimIfIdle: z.ZodOptional<z.ZodBoolean>;
|
|
3141
3161
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -3217,6 +3237,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3217
3237
|
description: z.ZodString;
|
|
3218
3238
|
error: z.ZodOptional<z.ZodString>;
|
|
3219
3239
|
familyId: z.ZodString;
|
|
3240
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3220
3241
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3221
3242
|
skipTranscript: z.ZodBoolean;
|
|
3222
3243
|
status: z.ZodEnum<{
|
|
@@ -3424,6 +3445,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3424
3445
|
description: z.ZodString;
|
|
3425
3446
|
error: z.ZodOptional<z.ZodString>;
|
|
3426
3447
|
familyId: z.ZodString;
|
|
3448
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3427
3449
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3428
3450
|
skipTranscript: z.ZodBoolean;
|
|
3429
3451
|
status: z.ZodEnum<{
|
|
@@ -3594,6 +3616,7 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3594
3616
|
description: z.ZodString;
|
|
3595
3617
|
error: z.ZodOptional<z.ZodString>;
|
|
3596
3618
|
familyId: z.ZodString;
|
|
3619
|
+
foreground: z.ZodOptional<z.ZodBoolean>;
|
|
3597
3620
|
outputFile: z.ZodOptional<z.ZodString>;
|
|
3598
3621
|
skipTranscript: z.ZodBoolean;
|
|
3599
3622
|
status: z.ZodEnum<{
|
|
@@ -4345,6 +4368,9 @@ declare const bridgeCapabilitiesSchema: z.ZodObject<{
|
|
|
4345
4368
|
provider: "provider";
|
|
4346
4369
|
runtime: "runtime";
|
|
4347
4370
|
}>>;
|
|
4371
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
4372
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
4373
|
+
}, z.core.$strip>>;
|
|
4348
4374
|
fork: z.ZodDefault<z.ZodEnum<{
|
|
4349
4375
|
checkpoint: "checkpoint";
|
|
4350
4376
|
none: "none";
|
|
@@ -4378,6 +4404,9 @@ declare const initializeResultSchema: z.ZodObject<{
|
|
|
4378
4404
|
provider: "provider";
|
|
4379
4405
|
runtime: "runtime";
|
|
4380
4406
|
}>>;
|
|
4407
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
4408
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
4409
|
+
}, z.core.$strip>>;
|
|
4381
4410
|
fork: z.ZodDefault<z.ZodEnum<{
|
|
4382
4411
|
checkpoint: "checkpoint";
|
|
4383
4412
|
none: "none";
|
|
@@ -4436,6 +4465,7 @@ type BridgeExecutionOptions = z.infer<typeof bridgeExecutionOptionsSchema>;
|
|
|
4436
4465
|
declare const BRIDGE_REQUEST_METHODS: {
|
|
4437
4466
|
readonly initialize: "initialize";
|
|
4438
4467
|
readonly modelList: "model/list";
|
|
4468
|
+
readonly commandList: "commands/list";
|
|
4439
4469
|
readonly providerHealth: "provider/health";
|
|
4440
4470
|
readonly providerUsage: "provider/usage";
|
|
4441
4471
|
readonly providerInstallationStatus: "provider/installation/status";
|
|
@@ -4455,7 +4485,18 @@ declare const BRIDGE_REQUEST_METHODS: {
|
|
|
4455
4485
|
};
|
|
4456
4486
|
declare const modelListParamsSchema: z.ZodObject<{
|
|
4457
4487
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4488
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4489
|
+
}, z.core.$loose>;
|
|
4490
|
+
declare const commandListParamsSchema: z.ZodObject<{
|
|
4491
|
+
cwd: z.ZodString;
|
|
4458
4492
|
}, z.core.$loose>;
|
|
4493
|
+
declare const commandListResultSchema: z.ZodObject<{
|
|
4494
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
4495
|
+
description: z.ZodString;
|
|
4496
|
+
inputHint: z.ZodOptional<z.ZodString>;
|
|
4497
|
+
name: z.ZodString;
|
|
4498
|
+
}, z.core.$strip>>;
|
|
4499
|
+
}, z.core.$strip>;
|
|
4459
4500
|
declare const threadStartParamsSchema: z.ZodObject<{
|
|
4460
4501
|
cwd: z.ZodString;
|
|
4461
4502
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -5194,5 +5235,5 @@ declare const claudeTaskToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5194
5235
|
}, z.core.$loose>]>;
|
|
5195
5236
|
type ClaudeTaskToolOutput = z.infer<typeof claudeTaskToolOutputSchema>;
|
|
5196
5237
|
|
|
5197
|
-
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5238
|
+
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5198
5239
|
export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
|