@get-bb/plugin-sdk 0.4.53 → 0.4.56

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.
@@ -577,6 +577,18 @@ interface PluginFileOpenerSource {
577
577
  interface PluginFileOpenerProps {
578
578
  path: string;
579
579
  source: PluginFileOpenerSource;
580
+ /**
581
+ * One-based, inclusive lines requested by the latest file open, or null when
582
+ * untargeted. BB supplies a new object for each targeted open, including an
583
+ * identical target in the active tab. Observe object identity to navigate
584
+ * again; keep the editor model intact. Older hosts may omit this prop.
585
+ *
586
+ * @experimental Audit navigation, remount, and persistence semantics before stabilizing.
587
+ */
588
+ experimental_lineRange?: {
589
+ startLineNumber: number;
590
+ endLineNumber: number;
591
+ } | null;
580
592
  /**
581
593
  * BB's file preview, bound to this file. Render it to delegate conditionally
582
594
  * without re-entering plugin replacement resolution.
@@ -2394,6 +2406,14 @@ interface MarkdownProps {
2394
2406
  /** Markdown source, rendered exactly like a chat message body. */
2395
2407
  content: string;
2396
2408
  className?: string;
2409
+ /** Resolve local destinations from this document; omission keeps message routing. */
2410
+ experimental_document?: {
2411
+ threadId: string;
2412
+ rootPath: string;
2413
+ target: Exclude<ExperimentalLiveFileTarget, {
2414
+ kind: "host";
2415
+ }>;
2416
+ };
2397
2417
  }
2398
2418
  /**
2399
2419
  * Props for BB's semantic URL link. The host owns ordinary activation while
@@ -55,6 +55,7 @@ declare const environmentSchema: z.ZodObject<{
55
55
  path: z.ZodNullable<z.ZodString>;
56
56
  projectId: z.ZodString;
57
57
  status: z.ZodEnum<{
58
+ creating: "creating";
58
59
  destroyed: "destroyed";
59
60
  error: "error";
60
61
  provisioning: "provisioning";
@@ -221,7 +222,6 @@ type PluginEnvironmentProviderCreateResult = {
221
222
  resource?: JsonValue$1;
222
223
  } | {
223
224
  status: "failed";
224
- failure: "terminal" | "transient";
225
225
  message: string;
226
226
  };
227
227
  interface PluginEnvironmentProviderRemoveContext {
@@ -256,7 +256,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
256
256
  requires?: R;
257
257
  inputs?: S;
258
258
  policy?: Partial<PluginEnvironmentProviderPolicy>;
259
- /** Experimental create-time preflight: see docs/api_to_audit.md. */
259
+ /** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
260
260
  availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
261
261
  validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
262
262
  create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
@@ -107,6 +107,7 @@ declare const environmentSchema: z.ZodObject<{
107
107
  path: z.ZodNullable<z.ZodString>;
108
108
  projectId: z.ZodString;
109
109
  status: z.ZodEnum<{
110
+ creating: "creating";
110
111
  destroyed: "destroyed";
111
112
  error: "error";
112
113
  provisioning: "provisioning";
@@ -547,7 +548,6 @@ type PluginEnvironmentProviderCreateResult = {
547
548
  resource?: JsonValue$2;
548
549
  } | {
549
550
  status: "failed";
550
- failure: "terminal" | "transient";
551
551
  message: string;
552
552
  };
553
553
  interface PluginEnvironmentProviderRemoveContext {
@@ -582,7 +582,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
582
582
  requires?: R;
583
583
  inputs?: S;
584
584
  policy?: Partial<PluginEnvironmentProviderPolicy>;
585
- /** Experimental create-time preflight: see docs/api_to_audit.md. */
585
+ /** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
586
586
  availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
587
587
  validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
588
588
  create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
@@ -107,6 +107,7 @@ declare const environmentSchema: z.ZodObject<{
107
107
  path: z.ZodNullable<z.ZodString>;
108
108
  projectId: z.ZodString;
109
109
  status: z.ZodEnum<{
110
+ creating: "creating";
110
111
  destroyed: "destroyed";
111
112
  error: "error";
112
113
  provisioning: "provisioning";
@@ -276,7 +277,6 @@ type PluginEnvironmentProviderCreateResult = {
276
277
  resource?: JsonValue$2;
277
278
  } | {
278
279
  status: "failed";
279
- failure: "terminal" | "transient";
280
280
  message: string;
281
281
  };
282
282
  interface PluginEnvironmentProviderRemoveContext {
@@ -311,7 +311,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
311
311
  requires?: R;
312
312
  inputs?: S;
313
313
  policy?: Partial<PluginEnvironmentProviderPolicy>;
314
- /** Experimental create-time preflight: see docs/api_to_audit.md. */
314
+ /** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
315
315
  availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
316
316
  validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
317
317
  create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
@@ -73,7 +73,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
73
73
  }, z$1.core.$strict>]>;
74
74
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
75
75
 
76
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.chronologicalSort", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider"];
76
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider"];
77
77
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
78
78
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
79
79
  schema: Schema;
@@ -92,6 +92,11 @@ declare const uiPreferenceDefinitions: {
92
92
  none: "none";
93
93
  updated: "updated";
94
94
  }>>;
95
+ readonly "sidebar.sortDirection": UiPreferenceDefinition<z$1.ZodEnum<{
96
+ ascending: "ascending";
97
+ default: "default";
98
+ descending: "descending";
99
+ }>>;
95
100
  readonly "sidebar.sectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
96
101
  readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
97
102
  readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
@@ -334,6 +339,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
334
339
  }, z$1.core.$strict>, z$1.ZodObject<{
335
340
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
336
341
  "config-changed": "config-changed";
342
+ "environment-availability-changed": "environment-availability-changed";
337
343
  "plugins-changed": "plugins-changed";
338
344
  "provider-registrations-changed": "provider-registrations-changed";
339
345
  "ui-preferences-changed": "ui-preferences-changed";
@@ -344,6 +350,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
344
350
  type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
345
351
 
346
352
  declare const environmentStatusSchema: z$1.ZodEnum<{
353
+ creating: "creating";
347
354
  destroyed: "destroyed";
348
355
  error: "error";
349
356
  provisioning: "provisioning";
@@ -404,6 +411,7 @@ declare const environmentSchema: z$1.ZodObject<{
404
411
  path: z$1.ZodNullable<z$1.ZodString>;
405
412
  projectId: z$1.ZodString;
406
413
  status: z$1.ZodEnum<{
414
+ creating: "creating";
407
415
  destroyed: "destroyed";
408
416
  error: "error";
409
417
  provisioning: "provisioning";
@@ -420,7 +428,6 @@ type Environment = z$1.infer<typeof environmentSchema>;
420
428
 
421
429
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
422
430
  changelogPreview: "changelogPreview";
423
- editMessages: "editMessages";
424
431
  mobileApp: "mobileApp";
425
432
  sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
426
433
  timelineWindowing: "timelineWindowing";
@@ -6943,6 +6950,7 @@ declare const hostDaemonCommandRegistry: {
6943
6950
  limit: z$1.ZodNumber;
6944
6951
  path: z$1.ZodString;
6945
6952
  query: z$1.ZodOptional<z$1.ZodString>;
6953
+ respectGitIgnore: z$1.ZodBoolean;
6946
6954
  type: z$1.ZodLiteral<"host.list_files">;
6947
6955
  }, z$1.core.$strip>, z$1.ZodObject<{
6948
6956
  files: z$1.ZodArray<z$1.ZodObject<{
@@ -6959,6 +6967,7 @@ declare const hostDaemonCommandRegistry: {
6959
6967
  limit: z$1.ZodNumber;
6960
6968
  path: z$1.ZodString;
6961
6969
  query: z$1.ZodOptional<z$1.ZodString>;
6970
+ respectGitIgnore: z$1.ZodBoolean;
6962
6971
  type: z$1.ZodLiteral<"host.list_paths">;
6963
6972
  }, z$1.core.$strip>, z$1.ZodObject<{
6964
6973
  paths: z$1.ZodArray<z$1.ZodObject<{
@@ -9507,7 +9516,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
9507
9516
  }, z$1.core.$strict>>;
9508
9517
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
9509
9518
  changelogPreview: "changelogPreview";
9510
- editMessages: "editMessages";
9511
9519
  mobileApp: "mobileApp";
9512
9520
  sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
9513
9521
  timelineWindowing: "timelineWindowing";
@@ -9822,6 +9830,15 @@ declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
9822
9830
  id: z$1.ZodString;
9823
9831
  inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
9824
9832
  logoUrl: z$1.ZodNullable<z$1.ZodString>;
9833
+ machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9834
+ status: z$1.ZodLiteral<"available">;
9835
+ }, z$1.core.$strip>, z$1.ZodObject<{
9836
+ message: z$1.ZodString;
9837
+ status: z$1.ZodLiteral<"setup-required">;
9838
+ }, z$1.core.$strip>, z$1.ZodObject<{
9839
+ message: z$1.ZodString;
9840
+ status: z$1.ZodLiteral<"unavailable">;
9841
+ }, z$1.core.$strip>], "status">>>;
9825
9842
  pluginId: z$1.ZodString;
9826
9843
  requires: z$1.ZodObject<{
9827
9844
  gitCheckout: z$1.ZodBoolean;
@@ -12681,6 +12698,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
12681
12698
  path: z$1.ZodNullable<z$1.ZodString>;
12682
12699
  projectId: z$1.ZodString;
12683
12700
  status: z$1.ZodEnum<{
12701
+ creating: "creating";
12684
12702
  destroyed: "destroyed";
12685
12703
  error: "error";
12686
12704
  provisioning: "provisioning";
@@ -13311,6 +13329,7 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
13311
13329
  }, z$1.core.$strip>;
13312
13330
  type ThreadTimelineQuery = z$1.infer<typeof threadTimelineQuerySchema>;
13313
13331
  declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
13332
+ beforeCursor: z$1.ZodOptional<z$1.ZodString>;
13314
13333
  sourceSeqEnd: z$1.ZodString;
13315
13334
  sourceSeqStart: z$1.ZodString;
13316
13335
  turnId: z$1.ZodString;
@@ -13340,6 +13359,8 @@ declare const threadStorageLocationResponseSchema: z$1.ZodObject<{
13340
13359
  }, z$1.core.$strict>;
13341
13360
  type ThreadStorageLocationResponse = z$1.infer<typeof threadStorageLocationResponseSchema>;
13342
13361
  declare const timelineTurnSummaryDetailsResponseSchema: z$1.ZodObject<{
13362
+ historySnapshot: z$1.ZodOptional<z$1.ZodString>;
13363
+ olderCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
13343
13364
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
13344
13365
  }, z$1.core.$strip>;
13345
13366
  type TimelineTurnSummaryDetailsResponse = z$1.infer<typeof timelineTurnSummaryDetailsResponseSchema>;
@@ -13606,7 +13627,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
13606
13627
  }, z$1.core.$strip>>;
13607
13628
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
13608
13629
  timelinePage: z$1.ZodObject<{
13630
+ contentPage: z$1.ZodOptional<z$1.ZodObject<{
13631
+ anchorSeq: z$1.ZodNumber;
13632
+ end: z$1.ZodNumber;
13633
+ start: z$1.ZodNumber;
13634
+ total: z$1.ZodNumber;
13635
+ }, z$1.core.$strip>>;
13609
13636
  hasOlderRows: z$1.ZodBoolean;
13637
+ historySnapshot: z$1.ZodOptional<z$1.ZodString>;
13610
13638
  kind: z$1.ZodEnum<{
13611
13639
  latest: "latest";
13612
13640
  older: "older";
@@ -14328,6 +14356,18 @@ interface PluginFileOpenerSource {
14328
14356
  interface PluginFileOpenerProps {
14329
14357
  path: string;
14330
14358
  source: PluginFileOpenerSource;
14359
+ /**
14360
+ * One-based, inclusive lines requested by the latest file open, or null when
14361
+ * untargeted. BB supplies a new object for each targeted open, including an
14362
+ * identical target in the active tab. Observe object identity to navigate
14363
+ * again; keep the editor model intact. Older hosts may omit this prop.
14364
+ *
14365
+ * @experimental Audit navigation, remount, and persistence semantics before stabilizing.
14366
+ */
14367
+ experimental_lineRange?: {
14368
+ startLineNumber: number;
14369
+ endLineNumber: number;
14370
+ } | null;
14331
14371
  /**
14332
14372
  * BB's file preview, bound to this file. Render it to delegate conditionally
14333
14373
  * without re-entering plugin replacement resolution.
@@ -16145,6 +16185,14 @@ interface MarkdownProps {
16145
16185
  /** Markdown source, rendered exactly like a chat message body. */
16146
16186
  content: string;
16147
16187
  className?: string;
16188
+ /** Resolve local destinations from this document; omission keeps message routing. */
16189
+ experimental_document?: {
16190
+ threadId: string;
16191
+ rootPath: string;
16192
+ target: Exclude<ExperimentalLiveFileTarget, {
16193
+ kind: "host";
16194
+ }>;
16195
+ };
16148
16196
  }
16149
16197
  /**
16150
16198
  * Props for BB's semantic URL link. The host owns ordinary activation while
@@ -16476,7 +16524,6 @@ type PluginEnvironmentProviderCreateResult = {
16476
16524
  resource?: JsonValue$2;
16477
16525
  } | {
16478
16526
  status: "failed";
16479
- failure: "terminal" | "transient";
16480
16527
  message: string;
16481
16528
  };
16482
16529
  interface PluginEnvironmentProviderRemoveContext {
@@ -16511,7 +16558,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
16511
16558
  requires?: R;
16512
16559
  inputs?: S;
16513
16560
  policy?: Partial<PluginEnvironmentProviderPolicy>;
16514
- /** Experimental create-time preflight: see docs/api_to_audit.md. */
16561
+ /** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
16515
16562
  availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
16516
16563
  validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision$1 | Promise<PluginEnvironmentValidateDecision$1>;
16517
16564
  create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.4.53",
3
+ "version": "0.4.56",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"