@get-bb/plugin-sdk 0.6.116 → 0.6.121

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.
@@ -566,7 +566,6 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
566
566
  type: z$1.ZodLiteral<"changed">;
567
567
  }, z$1.core.$strict>, z$1.ZodObject<{
568
568
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
569
- "diff-viewed-changed": "diff-viewed-changed";
570
569
  "environment-created": "environment-created";
571
570
  "environment-deleted": "environment-deleted";
572
571
  "git-refs-changed": "git-refs-changed";
@@ -582,6 +581,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
582
581
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
583
582
  "host-connected": "host-connected";
584
583
  "host-disconnected": "host-disconnected";
584
+ "provider-cli-status-changed": "provider-cli-status-changed";
585
585
  "provider-commands-changed": "provider-commands-changed";
586
586
  "provider-model-catalog-changed": "provider-model-catalog-changed";
587
587
  }>>>;
@@ -698,35 +698,33 @@ declare const environmentSchema: z$1.ZodObject<{
698
698
  type Environment = z$1.infer<typeof environmentSchema>;
699
699
 
700
700
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
701
- applicationLinks: "applicationLinks";
702
701
  compactExpiredCache: "compactExpiredCache";
702
+ dismissReadNotifications: "dismissReadNotifications";
703
703
  narrowPluginCss: "narrowPluginCss";
704
704
  performanceDiagnostics: "performanceDiagnostics";
705
705
  pluginUpdates: "pluginUpdates";
706
+ resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
706
707
  serverMove: "serverMove";
707
- sidebarMultiSelect: "sidebarMultiSelect";
708
708
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
709
709
  threadContextCard: "threadContextCard";
710
710
  threadRowMetadata: "threadRowMetadata";
711
711
  timelinePush: "timelinePush";
712
- unreadDividerAtAnswer: "unreadDividerAtAnswer";
713
- websocketCompression: "websocketCompression";
712
+ updateWhenIdle: "updateWhenIdle";
714
713
  }>, z$1.ZodBoolean>;
715
714
  type Experiments = z$1.infer<typeof experimentsSchema>;
716
715
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
717
- applicationLinks: "applicationLinks";
718
716
  compactExpiredCache: "compactExpiredCache";
717
+ dismissReadNotifications: "dismissReadNotifications";
719
718
  narrowPluginCss: "narrowPluginCss";
720
719
  performanceDiagnostics: "performanceDiagnostics";
721
720
  pluginUpdates: "pluginUpdates";
721
+ resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
722
722
  serverMove: "serverMove";
723
- sidebarMultiSelect: "sidebarMultiSelect";
724
723
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
725
724
  threadContextCard: "threadContextCard";
726
725
  threadRowMetadata: "threadRowMetadata";
727
726
  timelinePush: "timelinePush";
728
- unreadDividerAtAnswer: "unreadDividerAtAnswer";
729
- websocketCompression: "websocketCompression";
727
+ updateWhenIdle: "updateWhenIdle";
730
728
  }> & z$1.core.$partial, z$1.ZodBoolean>;
731
729
  type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
732
730
 
@@ -1017,6 +1015,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1017
1015
  }>>;
1018
1016
  command: z$1.ZodString;
1019
1017
  cwd: z$1.ZodString;
1018
+ description: z$1.ZodOptional<z$1.ZodString>;
1020
1019
  durationMs: z$1.ZodOptional<z$1.ZodNumber>;
1021
1020
  exitCode: z$1.ZodOptional<z$1.ZodNumber>;
1022
1021
  id: z$1.ZodString;
@@ -1784,6 +1783,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1784
1783
  }>>;
1785
1784
  command: z$1.ZodString;
1786
1785
  cwd: z$1.ZodString;
1786
+ description: z$1.ZodOptional<z$1.ZodString>;
1787
1787
  durationMs: z$1.ZodOptional<z$1.ZodNumber>;
1788
1788
  exitCode: z$1.ZodOptional<z$1.ZodNumber>;
1789
1789
  id: z$1.ZodString;
@@ -5731,19 +5731,6 @@ declare const environmentPathsQuerySchema: z$1.ZodObject<{
5731
5731
  query: z$1.ZodOptional<z$1.ZodString>;
5732
5732
  }, z$1.core.$strip>;
5733
5733
  type EnvironmentPathsQuery = z$1.infer<typeof environmentPathsQuerySchema>;
5734
- declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5735
- target: z$1.ZodLiteral<"uncommitted">;
5736
- }, z$1.core.$strip>, z$1.ZodObject<{
5737
- mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
5738
- target: z$1.ZodLiteral<"branch_committed">;
5739
- }, z$1.core.$strip>, z$1.ZodObject<{
5740
- mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
5741
- target: z$1.ZodLiteral<"all">;
5742
- }, z$1.core.$strip>, z$1.ZodObject<{
5743
- sha: z$1.ZodString;
5744
- target: z$1.ZodLiteral<"commit">;
5745
- }, z$1.core.$strip>], "target">;
5746
- type EnvironmentDiffQuery = z$1.infer<typeof environmentDiffQuerySchema>;
5747
5734
  declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
5748
5735
  archivedThreadIds: z$1.ZodArray<z$1.ZodString>;
5749
5736
  ok: z$1.ZodLiteral<true>;
@@ -5757,46 +5744,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
5757
5744
  ok: z$1.ZodLiteral<true>;
5758
5745
  }, z$1.core.$strip>;
5759
5746
  type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
5760
- declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
5761
- files: z$1.ZodArray<z$1.ZodObject<{
5762
- path: z$1.ZodString;
5763
- revision: z$1.ZodString;
5764
- }, z$1.core.$strict>>;
5765
- }, z$1.core.$strict>;
5766
- type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
5767
- declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
5768
- path: z$1.ZodString;
5769
- revision: z$1.ZodString;
5770
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5771
- type: z$1.ZodLiteral<"uncommitted">;
5772
- }, z$1.core.$strip>, z$1.ZodObject<{
5773
- mergeBaseBranch: z$1.ZodString;
5774
- type: z$1.ZodLiteral<"branch_committed">;
5775
- }, z$1.core.$strip>, z$1.ZodObject<{
5776
- mergeBaseBranch: z$1.ZodString;
5777
- type: z$1.ZodLiteral<"all">;
5778
- }, z$1.core.$strip>, z$1.ZodObject<{
5779
- sha: z$1.ZodString;
5780
- type: z$1.ZodLiteral<"commit">;
5781
- }, z$1.core.$strip>], "type">;
5782
- }, z$1.core.$strict>;
5783
- type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
5784
- declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
5785
- path: z$1.ZodOptional<z$1.ZodString>;
5786
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5787
- type: z$1.ZodLiteral<"uncommitted">;
5788
- }, z$1.core.$strip>, z$1.ZodObject<{
5789
- mergeBaseBranch: z$1.ZodString;
5790
- type: z$1.ZodLiteral<"branch_committed">;
5791
- }, z$1.core.$strip>, z$1.ZodObject<{
5792
- mergeBaseBranch: z$1.ZodString;
5793
- type: z$1.ZodLiteral<"all">;
5794
- }, z$1.core.$strip>, z$1.ZodObject<{
5795
- sha: z$1.ZodString;
5796
- type: z$1.ZodLiteral<"commit">;
5797
- }, z$1.core.$strip>], "type">;
5798
- }, z$1.core.$strict>;
5799
- type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
5800
5747
 
5801
5748
  declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5802
5749
  accountEmail: z$1.ZodNullable<z$1.ZodString>;
@@ -10266,7 +10213,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10266
10213
  name: z$1.ZodLiteral<"recommendation">;
10267
10214
  properties: z$1.ZodObject<{
10268
10215
  action: z$1.ZodEnum<{
10269
- deselected: "deselected";
10270
10216
  selected: "selected";
10271
10217
  shown: "shown";
10272
10218
  }>;
@@ -10360,14 +10306,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10360
10306
  started: "started";
10361
10307
  }>;
10362
10308
  }, z$1.core.$strict>;
10363
- }, z$1.core.$strict>, z$1.ZodObject<{
10364
- name: z$1.ZodLiteral<"onboarding_exposed">;
10365
- properties: z$1.ZodObject<{
10366
- entry: z$1.ZodEnum<{
10367
- first_run: "first_run";
10368
- replay: "replay";
10369
- }>;
10370
- }, z$1.core.$strict>;
10371
10309
  }, z$1.core.$strict>, z$1.ZodObject<{
10372
10310
  name: z$1.ZodLiteral<"onboarding_started">;
10373
10311
  properties: z$1.ZodObject<{
@@ -10448,14 +10386,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
10448
10386
  properties: z$1.ZodObject<{}, z$1.core.$strict>;
10449
10387
  }, z$1.core.$strict>], "name">;
10450
10388
  type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
10451
- declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
10452
- featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
10453
- variant: z$1.ZodEnum<{
10454
- control: "control";
10455
- new: "new";
10456
- }>;
10457
- }, z$1.core.$strip>;
10458
- type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
10459
10389
  declare const systemConfigResponseSchema: z$1.ZodObject<{
10460
10390
  appearance: z$1.ZodObject<{
10461
10391
  customCss: z$1.ZodNullable<z$1.ZodString>;
@@ -10613,19 +10543,18 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10613
10543
  }, z$1.core.$strict>;
10614
10544
  }, z$1.core.$strict>>;
10615
10545
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10616
- applicationLinks: "applicationLinks";
10617
10546
  compactExpiredCache: "compactExpiredCache";
10547
+ dismissReadNotifications: "dismissReadNotifications";
10618
10548
  narrowPluginCss: "narrowPluginCss";
10619
10549
  performanceDiagnostics: "performanceDiagnostics";
10620
10550
  pluginUpdates: "pluginUpdates";
10551
+ resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
10621
10552
  serverMove: "serverMove";
10622
- sidebarMultiSelect: "sidebarMultiSelect";
10623
10553
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
10624
10554
  threadContextCard: "threadContextCard";
10625
10555
  threadRowMetadata: "threadRowMetadata";
10626
10556
  timelinePush: "timelinePush";
10627
- unreadDividerAtAnswer: "unreadDividerAtAnswer";
10628
- websocketCompression: "websocketCompression";
10557
+ updateWhenIdle: "updateWhenIdle";
10629
10558
  }>, z$1.ZodBoolean>;
10630
10559
  featureFlags: z$1.ZodObject<{
10631
10560
  initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
@@ -11019,6 +10948,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11019
10948
  targetVersion: z$1.ZodString;
11020
10949
  }, z$1.core.$strip>], "phase">;
11021
10950
  available: z$1.ZodNullable<z$1.ZodObject<{
10951
+ behindSince: z$1.ZodNullable<z$1.ZodISODateTime>;
11022
10952
  channel: z$1.ZodEnum<{
11023
10953
  latest: "latest";
11024
10954
  main: "main";
@@ -11069,6 +10999,9 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11069
10999
  }, z$1.core.$strip>;
11070
11000
  }, z$1.core.$strip>>;
11071
11001
  runningThreadCount: z$1.ZodNumber;
11002
+ scheduled: z$1.ZodNullable<z$1.ZodObject<{
11003
+ requestedAt: z$1.ZodString;
11004
+ }, z$1.core.$strip>>;
11072
11005
  support: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11073
11006
  kind: z$1.ZodLiteral<"supported">;
11074
11007
  mode: z$1.ZodEnum<{
@@ -11730,6 +11663,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
11730
11663
  contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11731
11664
  createdAt: z$1.ZodNumber;
11732
11665
  cwd: z$1.ZodNullable<z$1.ZodString>;
11666
+ description: z$1.ZodNullable<z$1.ZodString>;
11733
11667
  exitCode: z$1.ZodNullable<z$1.ZodNumber>;
11734
11668
  id: z$1.ZodString;
11735
11669
  kind: z$1.ZodLiteral<"work">;
@@ -17463,26 +17397,15 @@ type EnvironmentUpdateFields = EnvironmentMergeBaseBranchUpdate | EnvironmentNam
17463
17397
  type EnvironmentUpdateArgs = EnvironmentUpdateFields & {
17464
17398
  environmentId: string;
17465
17399
  };
17466
- type EnvironmentDiffArgs = EnvironmentDiffQuery & {
17467
- environmentId: string;
17468
- signal?: AbortSignal;
17469
- };
17470
17400
  interface EnvironmentCommitArgs {
17471
17401
  environmentId: string;
17472
17402
  }
17473
- type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
17474
- environmentId: string;
17475
- };
17476
- type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
17477
- environmentId: string;
17478
- };
17479
17403
  interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
17480
17404
  environmentId: string;
17481
17405
  signal?: AbortSignal;
17482
17406
  }
17483
17407
  type EnvironmentArchiveThreadsResult = EnvironmentArchiveThreadsResponse;
17484
17408
  type EnvironmentCommitResult = CommitActionResponse;
17485
- type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17486
17409
  type EnvironmentGetResult = Environment;
17487
17410
  type EnvironmentPathsResult = WorkspacePathListResponse;
17488
17411
  type EnvironmentUpdateResult = Environment;
@@ -17518,15 +17441,6 @@ interface EnvironmentsArea {
17518
17441
  }>;
17519
17442
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
17520
17443
  commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
17521
- experimental_diffViewed(args: EnvironmentDiffArgs & {
17522
- paths?: string[];
17523
- }): Promise<EnvironmentDiffViewedResult>;
17524
- experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
17525
- ok: true;
17526
- }>;
17527
- experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
17528
- ok: true;
17529
- }>;
17530
17444
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
17531
17445
  list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
17532
17446
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
@@ -17628,6 +17542,9 @@ interface HostGetArgs {
17628
17542
  hostId: string;
17629
17543
  signal?: AbortSignal;
17630
17544
  }
17545
+ interface HostProviderCliStatusArgs extends HostGetArgs {
17546
+ refresh?: boolean;
17547
+ }
17631
17548
  interface HostDeleteArgs {
17632
17549
  hostId: string;
17633
17550
  force?: boolean;
@@ -17718,7 +17635,7 @@ interface HostsArea {
17718
17635
  experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
17719
17636
  pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
17720
17637
  pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
17721
- providerCliStatus(args: HostGetArgs): Promise<HostProviderCliStatusResult>;
17638
+ providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
17722
17639
  experimental_resume(args: HostActionArgs): Promise<Host>;
17723
17640
  experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
17724
17641
  retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
@@ -18372,10 +18289,6 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
18372
18289
  interface SystemRecordTelemetryEventResult {
18373
18290
  ok: true;
18374
18291
  }
18375
- interface SystemSetupGuideArgs {
18376
- signal?: AbortSignal;
18377
- }
18378
- type SystemSetupGuideResult = SystemSetupGuideResponse;
18379
18292
  interface SystemAiServicesArgs {
18380
18293
  signal?: AbortSignal;
18381
18294
  }
@@ -18432,7 +18345,6 @@ interface SystemArea {
18432
18345
  cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
18433
18346
  installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
18434
18347
  experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
18435
- experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
18436
18348
  reloadConfig(): Promise<SystemReloadConfigResult>;
18437
18349
  setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
18438
18350
  testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
@@ -18449,6 +18361,8 @@ interface SystemArea {
18449
18361
  appUpdate(args?: SystemAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18450
18362
  applyAppUpdate(args: SystemApplyAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18451
18363
  acknowledgeAppUpdate(args: SystemAcknowledgeAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18364
+ experimental_scheduleAppUpdate(): Promise<SystemAppUpdateStatusResult>;
18365
+ experimental_cancelScheduledAppUpdate(): Promise<SystemAppUpdateStatusResult>;
18452
18366
  experimental_cliCommand(args?: SystemCliCommandArgs): Promise<SystemCliCommandStatusResult>;
18453
18367
  experimental_installCliCommand(): Promise<SystemCliCommandStatusResult>;
18454
18368
  experimental_removeCliCommand(): Promise<SystemCliCommandStatusResult>;
@@ -19669,6 +19583,15 @@ interface PluginThreadEventPayloads {
19669
19583
  thread: ThreadResponse;
19670
19584
  previousParentThreadId: string | null;
19671
19585
  };
19586
+ /**
19587
+ * Fired after a thread's read state changes and the thread is now read
19588
+ * (`lastReadAt >= latestAttentionAt`): a client opened it or marked it
19589
+ * read, or the user sent it a turn. Marking a thread unread does not fire
19590
+ * it. Experimental: see docs/api_to_audit.md.
19591
+ */
19592
+ "experimental_thread.read": {
19593
+ thread: ThreadResponse;
19594
+ };
19672
19595
  /** Real accepted terminal input; excludes output, keepalives and input contents. */
19673
19596
  "experimental_terminal.input": {
19674
19597
  terminal: TerminalSession;
@@ -21499,16 +21422,6 @@ interface PluginSettingsSectionProps {
21499
21422
  */
21500
21423
  interface ExperimentalAppOverlayProps {
21501
21424
  }
21502
- /**
21503
- * Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
21504
- * Internal to bb's bundled connect plugin; not part of the plugin API.
21505
- */
21506
- interface InternalDoNotUseSetupGuideSectionProps {
21507
- /** True when the setup guide is open on a phone. */
21508
- onPhone: boolean;
21509
- /** Call when the user starts setting up this section. */
21510
- onSetupStarted: () => void;
21511
- }
21512
21425
  type ExperimentalPageTitle = ({
21513
21426
  title: string;
21514
21427
  breadcrumbs?: never;
@@ -22039,6 +21952,30 @@ interface SourceCodeProps {
22039
21952
  /** Applied to the renderer's root element. */
22040
21953
  className?: string;
22041
21954
  }
21955
+ /** The loaded file `ExperimentalFilePreviewProps.renderPreview` draws. */
21956
+ interface ExperimentalFilePreviewFile {
21957
+ /** The file's text as BB loaded it; a refresh passes the new text. */
21958
+ content: string;
21959
+ /** Absolute URL of the raw file, usable as a base URL for sibling assets. */
21960
+ url: string;
21961
+ }
21962
+ /**
21963
+ * Props of the host-owned `experimental_FilePreview` component — BB's file
21964
+ * preview for one live file: the header with the file path, Preview/Raw
21965
+ * toggle, open in browser, Open in editor, download and the file menu, and
21966
+ * BB's loading, refresh, empty, missing and error states. Inside a panel tab
21967
+ * it loads the file only while the tab is showing, as BB's own file tabs do.
21968
+ */
21969
+ interface ExperimentalFilePreviewProps {
21970
+ /** The live file to preview. A malformed target renders nothing. */
21971
+ target: ExperimentalLiveFileTarget;
21972
+ /**
21973
+ * Draws the body of Preview mode for a file BB previews (HTML, Markdown
21974
+ * and CSV), in place of BB's own. Raw mode and every other file type keep
21975
+ * BB's rendering. The body fills the space below the header.
21976
+ */
21977
+ renderPreview: (file: ExperimentalFilePreviewFile) => ReactNode;
21978
+ }
22042
21979
  /**
22043
21980
  * Props of the host-owned `experimental_Diff` component — BB's diff viewer.
22044
21981
  * The host owns patch normalization (a patch without a `diff --git` header is
@@ -22226,15 +22163,6 @@ interface ExperimentalAppOverlayRegistration {
22226
22163
  id: string;
22227
22164
  component: ComponentType<ExperimentalAppOverlayProps>;
22228
22165
  }
22229
- /**
22230
- * Render one row in the first-run setup guide's "Where you use bb" group.
22231
- * Internal to bb's bundled connect plugin; not part of the plugin API.
22232
- */
22233
- interface InternalDoNotUseSetupGuideSectionRegistration {
22234
- /** Unique within the plugin; letters, digits, `-`, `_`. */
22235
- id: string;
22236
- component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
22237
- }
22238
22166
  /**
22239
22167
  * A name the host resolves to a glyph, in this order: a name any plugin
22240
22168
  * registered with `app.experimental_icons.register()`, then a built-in BB icon
@@ -23777,17 +23705,23 @@ interface ExperimentalSidebarNavigationRegistration {
23777
23705
  * matching files render the first applicable opener in deterministic slot
23778
23706
  * order. The user can pin BB's preview or a specific opener per extension
23779
23707
  * under Settings → Files. The file tab's "Open with" menu can override that
23780
- * choice for one open. A plugin can also use its own setting and render
23781
- * `Original` conditionally. Applies to working-tree, host, and
23782
- * thread-storage files — never to git-ref snapshots (diff views always use
23783
- * BB's preview).
23708
+ * choice for one open, and so can the plugin by passing the opener's id as
23709
+ * `experimental_openFilePreview`'s `opener`. A plugin can also use its own
23710
+ * setting and render `Original` conditionally. Applies to working-tree, host,
23711
+ * and thread-storage files — never to git-ref snapshots (diff views always
23712
+ * use BB's preview).
23784
23713
  */
23785
23714
  interface PluginFileOpenerRegistration {
23786
23715
  /** Unique within the plugin; letters, digits, `-`, `_`. */
23787
23716
  id: string;
23788
23717
  /** Label in the "Open with" menu (e.g. "Notes editor"). */
23789
23718
  title: string;
23790
- /** Lowercase alphanumeric extensions without the dot; single underscores or hyphens may separate segments. */
23719
+ /**
23720
+ * Lowercase alphanumeric extensions without the dot; single underscores or
23721
+ * hyphens may separate segments. An empty list registers an opener that no
23722
+ * extension selects and the "Open with" menu does not offer; it shows a file
23723
+ * only when the plugin names it in `experimental_openFilePreview`.
23724
+ */
23791
23725
  extensions: readonly string[];
23792
23726
  component: ComponentType<PluginFileOpenerProps>;
23793
23727
  }
@@ -24126,20 +24060,6 @@ interface ExperimentalComposerInput {
24126
24060
  history?: ExperimentalComposerHistory;
24127
24061
  voice?: ExperimentalComposerVoice;
24128
24062
  }
24129
- /** A composer's scope, layout, draft summary and run state. */
24130
- interface ExperimentalComposerView {
24131
- scope: PluginComposerScope;
24132
- layout: "compact" | "expanded" | "zen";
24133
- draft: {
24134
- text: string;
24135
- isEmpty: boolean;
24136
- attachmentCount: number;
24137
- };
24138
- run: {
24139
- isRunning: boolean;
24140
- isSubmitting: boolean;
24141
- };
24142
- }
24143
24063
  /** A contribution another plugin registered with `app.composer.customize`. */
24144
24064
  interface ExperimentalComposerContribution {
24145
24065
  /** Stable across renders; use it as the React key. */
@@ -24280,10 +24200,6 @@ interface ExperimentalComposerClipboard {
24280
24200
  */
24281
24201
  interface ExperimentalComposerRendererApi {
24282
24202
  readonly input: ExperimentalComposerInput;
24283
- /** The composer this box draws: scope, layout, draft and run state. */
24284
- readonly view: ExperimentalComposerView;
24285
- /** Stable identity of this composer's draft (`useComposer().key`). */
24286
- readonly key: string;
24287
24203
  /** A plugin locked editing through `useComposer().setInputLock(true)`. */
24288
24204
  readonly inputLocked: boolean;
24289
24205
  /** The shortcut of bb's "Focus composer" command, or null when unbound. */
@@ -24835,12 +24751,6 @@ interface PluginAppSlots {
24835
24751
  * docs/api_to_audit.md.
24836
24752
  */
24837
24753
  experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
24838
- /**
24839
- * Render a setup guide row (see
24840
- * {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
24841
- * docs/api_to_audit.md.
24842
- */
24843
- internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
24844
24754
  navPanel(registration: PluginNavPanelRegistration): void;
24845
24755
  /** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
24846
24756
  experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
@@ -25964,6 +25874,16 @@ interface ExperimentalFileOpenOptions {
25964
25874
  target: ExperimentalLiveFileTarget;
25965
25875
  location: ExperimentalFileLocation | null;
25966
25876
  }
25877
+ /** Options for BB's preview file intent. */
25878
+ interface ExperimentalFilePreviewOptions extends ExperimentalFileOpenOptions {
25879
+ /**
25880
+ * Id of one of the calling plugin's `fileOpener` registrations to show the
25881
+ * file with for this open, as the file tab's "Open with" menu does. Omit it
25882
+ * to use the opener the user's Settings → Files choice selects. An opener
25883
+ * that is not registered falls back to BB's preview.
25884
+ */
25885
+ opener?: string;
25886
+ }
25967
25887
  /**
25968
25888
  * Props for BB's host-rendered semantic file link. Valid targets receive a
25969
25889
  * scheme-safe anchor href; traversal paths, ill-formed Unicode, and other
@@ -26151,14 +26071,14 @@ interface BbNavigate {
26151
26071
  }): void;
26152
26072
  /**
26153
26073
  * Open an HTTP(S) URL using this client's BB browser preference, or request
26154
- * an application link on this device with confirmation unless its scheme is approved when
26155
- * the applicationLinks experiment is enabled. Returns false
26074
+ * an application link on this device with confirmation unless its scheme is
26075
+ * approved. Returns false
26156
26076
  * for blocked or unsupported schemes. True means handled, not launched. See
26157
26077
  * docs/api_to_audit.md.
26158
26078
  */
26159
26079
  openUrl(url: string): boolean;
26160
26080
  /** Open a live file in this surface's shared BB preview panel. */
26161
- experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
26081
+ experimental_openFilePreview(options: ExperimentalFilePreviewOptions): boolean;
26162
26082
  /** Open a live file in this client's preferred external file target. */
26163
26083
  experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
26164
26084
  /**
@@ -26743,6 +26663,12 @@ interface PluginSdkApp {
26743
26663
  * replacement. Experimental: see docs/api_to_audit.md.
26744
26664
  */
26745
26665
  experimental_SourceCode: ComponentType<SourceCodeProps>;
26666
+ /**
26667
+ * The host-owned file preview (see {@link ExperimentalFilePreviewProps}):
26668
+ * the preview bb shows for a file in the side panel, with the plugin
26669
+ * drawing the Preview body. Experimental: see docs/api_to_audit.md.
26670
+ */
26671
+ experimental_FilePreview: ComponentType<ExperimentalFilePreviewProps>;
26746
26672
  /**
26747
26673
  * The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
26748
26674
  * content with BB's normalization, optional full-file context expansion,
@@ -27117,4 +27043,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
27117
27043
  };
27118
27044
 
27119
27045
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath };
27120
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
27046
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
package/dist/app.js CHANGED
@@ -287,6 +287,9 @@ var experimental_SourceCode = runtimeComponent(
287
287
  "experimental_SourceCode"
288
288
  );
289
289
  var experimental_Diff = runtimeComponent("experimental_Diff");
290
+ var experimental_FilePreview = runtimeComponent(
291
+ "experimental_FilePreview"
292
+ );
290
293
  var experimental_InfoSection = runtimeComponent(
291
294
  "experimental_InfoSection"
292
295
  );
@@ -493,6 +496,7 @@ export {
493
496
  experimental_Diff,
494
497
  experimental_FailedVoiceRecordings,
495
498
  experimental_FileLink,
499
+ experimental_FilePreview,
496
500
  experimental_Icon,
497
501
  experimental_ImageLightbox,
498
502
  experimental_InfoList,
@@ -1,3 +1,6 @@
1
+ // src/internal/composer-customization-validation.ts
2
+ var PLUGIN_SLOT_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
3
+
1
4
  // src/internal/file-navigation-validation.ts
2
5
  var FILE_PATH_MAX_LENGTH = 32768;
3
6
  var WINDOWS_DRIVE_ABSOLUTE_PATH = /^[A-Za-z]:[\\/]/u;
@@ -139,8 +142,18 @@ function normalizeExperimentalFileOpenOptions(value) {
139
142
  if (target === null || location === void 0) return null;
140
143
  return { target, location };
141
144
  }
145
+ function normalizeExperimentalFilePreviewOptions(value) {
146
+ if (!isJsonObject(value)) return null;
147
+ const { opener = null, ...rest } = value;
148
+ if (opener !== null && (typeof opener !== "string" || !PLUGIN_SLOT_ID_PATTERN.test(opener))) {
149
+ return null;
150
+ }
151
+ const options = normalizeExperimentalFileOpenOptions(rest);
152
+ return options === null ? null : { options, opener };
153
+ }
142
154
  export {
143
155
  normalizeExperimentalFileLocation,
144
156
  normalizeExperimentalFileOpenOptions,
157
+ normalizeExperimentalFilePreviewOptions,
145
158
  normalizeExperimentalLiveFileTarget
146
159
  };
@@ -484,7 +484,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
484
484
  homepageSections: [],
485
485
  settingsSections: [],
486
486
  appOverlays: [],
487
- setupGuideSections: [],
488
487
  navPanels: [],
489
488
  tabs: [],
490
489
  get threadPanelActions() {
@@ -529,7 +528,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
529
528
  homepageSection: /* @__PURE__ */ new Set(),
530
529
  settingsSection: /* @__PURE__ */ new Set(),
531
530
  appOverlay: /* @__PURE__ */ new Set(),
532
- setupGuideSection: /* @__PURE__ */ new Set(),
533
531
  navPanel: /* @__PURE__ */ new Set(),
534
532
  tab: /* @__PURE__ */ new Set(),
535
533
  newThreadPanelAction: /* @__PURE__ */ new Set(),
@@ -732,15 +730,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
732
730
  component: requireComponent(kind, registration.component)
733
731
  });
734
732
  },
735
- internal_DO_NOT_USE_setupGuideSection(registration) {
736
- const kind = "slots.internal_DO_NOT_USE_setupGuideSection";
737
- const id = requireSlotId(kind, registration?.id);
738
- requireUniqueId(kind, seenIds.setupGuideSection, id);
739
- collected.setupGuideSections.push({
740
- id,
741
- component: requireComponent(kind, registration.component)
742
- });
743
- },
744
733
  navPanel(registration) {
745
734
  const kind = "slots.navPanel";
746
735
  const id = requireSlotId(kind, registration?.id);
@@ -1029,9 +1018,9 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
1029
1018
  const id = requireSlotId(kind, registration?.id);
1030
1019
  requireUniqueId(kind, seenIds.fileOpener, id);
1031
1020
  const rawExtensions = registration?.extensions;
1032
- if (!Array.isArray(rawExtensions) || rawExtensions.length === 0) {
1021
+ if (!Array.isArray(rawExtensions)) {
1033
1022
  throw new Error(
1034
- `${kind}: "extensions" must be a non-empty array of lowercase extensions without the dot`
1023
+ `${kind}: "extensions" must be an array of lowercase extensions without the dot`
1035
1024
  );
1036
1025
  }
1037
1026
  const extensions = rawExtensions.map((extension) => {