@get-bb/plugin-sdk 0.6.33 → 0.6.39
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 +815 -362
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +5 -10
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +19 -23
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +606 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +32 -90
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +23 -10
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +82 -220
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +33 -18
- package/bundled-types/bb-plugin-sdk-testing.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk.d.ts +835 -367
- package/dist/app.js +33 -0
- package/dist/index.js +9 -0
- package/dist/internal/composer-handle.js +1 -0
- package/dist/internal/host-policy.js +24 -7
- package/dist/internal/plugin-app-collector.js +25 -0
- package/dist/provider-bridge-acp-next.js +24029 -0
- package/dist/provider-bridge-acp.js +964 -873
- package/dist/provider-bridge-testing.js +576 -510
- package/dist/provider-bridge.js +638 -559
- package/dist/testing/app.js +248 -2
- package/dist/testing/index.js +27 -7
- package/package.json +8 -1
|
@@ -13,16 +13,7 @@ interface JsonObject {
|
|
|
13
13
|
}
|
|
14
14
|
type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | JsonObject;
|
|
15
15
|
|
|
16
|
-
declare const reasoningLevelSchema: z.
|
|
17
|
-
high: "high";
|
|
18
|
-
low: "low";
|
|
19
|
-
max: "max";
|
|
20
|
-
medium: "medium";
|
|
21
|
-
none: "none";
|
|
22
|
-
ultra: "ultra";
|
|
23
|
-
ultracode: "ultracode";
|
|
24
|
-
xhigh: "xhigh";
|
|
25
|
-
}>;
|
|
16
|
+
declare const reasoningLevelSchema: z.ZodString;
|
|
26
17
|
type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
|
|
27
18
|
declare const serviceTierSchema: z.ZodString;
|
|
28
19
|
type ServiceTier = z.infer<typeof serviceTierSchema>;
|
|
@@ -165,6 +156,10 @@ type ComposerMention = {
|
|
|
165
156
|
source: "command" | "skill";
|
|
166
157
|
origin: "builtin" | "project" | "user";
|
|
167
158
|
argumentHint: string | null;
|
|
159
|
+
} | {
|
|
160
|
+
kind: "attachment";
|
|
161
|
+
/** The stored path of a file attached to the same draft. */
|
|
162
|
+
path: string;
|
|
168
163
|
} | {
|
|
169
164
|
kind: "plugin";
|
|
170
165
|
/** The plugin that owns the pill. */
|
|
@@ -192,16 +192,7 @@ declare const projectSchema: z.ZodObject<{
|
|
|
192
192
|
}, z.core.$strip>;
|
|
193
193
|
type Project = z.infer<typeof projectSchema>;
|
|
194
194
|
|
|
195
|
-
declare const reasoningLevelSchema: z.
|
|
196
|
-
high: "high";
|
|
197
|
-
low: "low";
|
|
198
|
-
max: "max";
|
|
199
|
-
medium: "medium";
|
|
200
|
-
none: "none";
|
|
201
|
-
ultra: "ultra";
|
|
202
|
-
ultracode: "ultracode";
|
|
203
|
-
xhigh: "xhigh";
|
|
204
|
-
}>;
|
|
195
|
+
declare const reasoningLevelSchema: z.ZodString;
|
|
205
196
|
type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
|
|
206
197
|
declare const serviceTierSchema: z.ZodString;
|
|
207
198
|
type ServiceTier = z.infer<typeof serviceTierSchema>;
|
|
@@ -263,6 +254,10 @@ declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
263
254
|
kind: z.ZodLiteral<"plugin">;
|
|
264
255
|
label: z.ZodString;
|
|
265
256
|
pluginId: z.ZodString;
|
|
257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
+
kind: z.ZodLiteral<"attachment">;
|
|
259
|
+
label: z.ZodString;
|
|
260
|
+
path: z.ZodString;
|
|
266
261
|
}, z.core.$strip>], "kind">, unknown>;
|
|
267
262
|
start: z.ZodNumber;
|
|
268
263
|
}, z.core.$strip>>>;
|
|
@@ -375,6 +370,10 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
375
370
|
kind: z.ZodLiteral<"plugin">;
|
|
376
371
|
label: z.ZodString;
|
|
377
372
|
pluginId: z.ZodString;
|
|
373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
374
|
+
kind: z.ZodLiteral<"attachment">;
|
|
375
|
+
label: z.ZodString;
|
|
376
|
+
path: z.ZodString;
|
|
378
377
|
}, z.core.$strip>], "kind">, unknown>;
|
|
379
378
|
start: z.ZodNumber;
|
|
380
379
|
}, z.core.$strip>>>;
|
|
@@ -440,16 +439,7 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
440
439
|
auto: "auto";
|
|
441
440
|
full: "full";
|
|
442
441
|
}>;
|
|
443
|
-
reasoningLevel: z.
|
|
444
|
-
high: "high";
|
|
445
|
-
low: "low";
|
|
446
|
-
max: "max";
|
|
447
|
-
medium: "medium";
|
|
448
|
-
none: "none";
|
|
449
|
-
ultra: "ultra";
|
|
450
|
-
ultracode: "ultracode";
|
|
451
|
-
xhigh: "xhigh";
|
|
452
|
-
}>;
|
|
442
|
+
reasoningLevel: z.ZodString;
|
|
453
443
|
sendAt: z.ZodNullable<z.ZodNumber>;
|
|
454
444
|
senderThreadId: z.ZodNullable<z.ZodString>;
|
|
455
445
|
serviceTier: z.ZodString;
|
|
@@ -846,6 +836,8 @@ type PluginSettingDescriptor = {
|
|
|
846
836
|
label: string;
|
|
847
837
|
description?: string;
|
|
848
838
|
options: string[];
|
|
839
|
+
/** Display labels keyed by option value; options without one show the value itself. */
|
|
840
|
+
experimental_optionLabels?: Record<string, string>;
|
|
849
841
|
/** Synchronously validate without transforming a proposed value. */
|
|
850
842
|
experimental_schema?: StandardSchemaV1<string, string>;
|
|
851
843
|
default?: string;
|
|
@@ -1440,13 +1432,17 @@ interface PluginProviderFallbackModel {
|
|
|
1440
1432
|
/** Picker display name ("Opus 5 (1M)"). */
|
|
1441
1433
|
displayName: string;
|
|
1442
1434
|
description: string;
|
|
1443
|
-
/** Reasoning levels this model supports, lowest to highest. Non-empty.
|
|
1435
|
+
/** Reasoning levels this model supports, lowest to highest. Non-empty.
|
|
1436
|
+
* `reasoningEffort` is a standard ladder entry or any provider-specific id
|
|
1437
|
+
* the bridge accepts back as `reasoningLevel`; `label` names a
|
|
1438
|
+
* provider-specific id in the picker. */
|
|
1444
1439
|
supportedReasoningEfforts: readonly {
|
|
1445
|
-
reasoningEffort: PluginProviderReasoningLevel;
|
|
1440
|
+
reasoningEffort: PluginProviderReasoningLevel | (string & {});
|
|
1441
|
+
label?: string;
|
|
1446
1442
|
description: string;
|
|
1447
1443
|
}[];
|
|
1448
1444
|
/** Must be one of `supportedReasoningEfforts`. */
|
|
1449
|
-
defaultReasoningEffort: PluginProviderReasoningLevel;
|
|
1445
|
+
defaultReasoningEffort: PluginProviderReasoningLevel | (string & {});
|
|
1450
1446
|
/** Exactly one entry in the list is the default. */
|
|
1451
1447
|
isDefault: boolean;
|
|
1452
1448
|
}
|
|
@@ -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, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, 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, PluginThreadHeaderActionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, 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 {
|
|
@@ -70,6 +70,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
70
70
|
experimentalSidebarFooterItems: CollectedExperimentalSidebarFooterItem[];
|
|
71
71
|
threadLists: PluginThreadListRegistration[];
|
|
72
72
|
threadHeaderActions: PluginThreadHeaderActionRegistration[];
|
|
73
|
+
threadActions: PluginThreadActionRegistration<unknown>[];
|
|
73
74
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
74
75
|
fileOpeners: PluginFileOpenerRegistration[];
|
|
75
76
|
sourceCodeRenderers: PluginSourceCodeRendererRegistration[];
|