@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.
@@ -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.ZodEnum<{
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.ZodEnum<{
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.ZodEnum<{
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[];