@get-bb/plugin-sdk 0.6.37 → 0.6.42
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 +391 -281
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +1 -10
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +9 -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 +11 -10
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +66 -220
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk.d.ts +409 -284
- package/dist/internal/host-policy.js +13 -7
- package/dist/internal/plugin-app-collector.js +32 -0
- package/dist/provider-bridge-acp-next.js +24029 -0
- package/dist/provider-bridge-acp.js +959 -873
- package/dist/provider-bridge-testing.js +571 -510
- package/dist/provider-bridge.js +633 -559
- package/dist/testing/app.js +32 -0
- package/dist/testing/index.js +15 -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>;
|
|
@@ -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>;
|
|
@@ -448,16 +439,7 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
448
439
|
auto: "auto";
|
|
449
440
|
full: "full";
|
|
450
441
|
}>;
|
|
451
|
-
reasoningLevel: z.
|
|
452
|
-
high: "high";
|
|
453
|
-
low: "low";
|
|
454
|
-
max: "max";
|
|
455
|
-
medium: "medium";
|
|
456
|
-
none: "none";
|
|
457
|
-
ultra: "ultra";
|
|
458
|
-
ultracode: "ultracode";
|
|
459
|
-
xhigh: "xhigh";
|
|
460
|
-
}>;
|
|
442
|
+
reasoningLevel: z.ZodString;
|
|
461
443
|
sendAt: z.ZodNullable<z.ZodNumber>;
|
|
462
444
|
senderThreadId: z.ZodNullable<z.ZodString>;
|
|
463
445
|
serviceTier: z.ZodString;
|
|
@@ -1450,13 +1432,17 @@ interface PluginProviderFallbackModel {
|
|
|
1450
1432
|
/** Picker display name ("Opus 5 (1M)"). */
|
|
1451
1433
|
displayName: string;
|
|
1452
1434
|
description: string;
|
|
1453
|
-
/** 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. */
|
|
1454
1439
|
supportedReasoningEfforts: readonly {
|
|
1455
|
-
reasoningEffort: PluginProviderReasoningLevel;
|
|
1440
|
+
reasoningEffort: PluginProviderReasoningLevel | (string & {});
|
|
1441
|
+
label?: string;
|
|
1456
1442
|
description: string;
|
|
1457
1443
|
}[];
|
|
1458
1444
|
/** Must be one of `supportedReasoningEfforts`. */
|
|
1459
|
-
defaultReasoningEffort: PluginProviderReasoningLevel;
|
|
1445
|
+
defaultReasoningEffort: PluginProviderReasoningLevel | (string & {});
|
|
1460
1446
|
/** Exactly one entry in the list is the default. */
|
|
1461
1447
|
isDefault: boolean;
|
|
1462
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, PluginThreadActionRegistration, 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, 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 {
|
|
@@ -76,6 +76,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
76
76
|
sourceCodeRenderers: PluginSourceCodeRendererRegistration[];
|
|
77
77
|
diffRenderers: PluginDiffRendererRegistration[];
|
|
78
78
|
messageDirectives: PluginMessageDirectiveRegistration[];
|
|
79
|
+
codeFenceRenderers: ExperimentalCodeFenceRendererRegistration[];
|
|
79
80
|
messageActions: PluginMessageActionRegistration[];
|
|
80
81
|
commandPaletteActions: CollectedPluginCommandRegistration[];
|
|
81
82
|
providerIcons: CollectedPluginProviderIconRegistration[];
|