@get-bb/plugin-sdk 0.6.112 → 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;
@@ -4162,6 +4162,26 @@ type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
4162
4162
 
4163
4163
  declare const pluginMetadataSchema: z.ZodType<JsonObject, unknown, zod_v4_core.$ZodTypeInternals<JsonObject, unknown>>;
4164
4164
 
4165
+ interface JoinHostPathArgs {
4166
+ rootPath: string;
4167
+ relativePath: string;
4168
+ }
4169
+ interface IsHostPathWithinArgs {
4170
+ rootPath: string;
4171
+ candidatePath: string;
4172
+ }
4173
+ declare function normalizeHostPath(path: string): string | null;
4174
+ declare function getHostPathComparisonKey(path: string): string | null;
4175
+ declare function isHostPathWithin({ rootPath, candidatePath, }: IsHostPathWithinArgs): boolean;
4176
+ declare function joinHostPath({ rootPath, relativePath, }: JoinHostPathArgs): string | null;
4177
+ declare function resolveHostPath({ rootPath, path, }: {
4178
+ rootPath: string;
4179
+ path: string;
4180
+ }): string | null;
4181
+ declare function getHostPathDirname(path: string): string | null;
4182
+ declare function getHostPathBasename(path: string): string | null;
4183
+ declare function getRelativeHostPath({ rootPath, candidatePath, }: IsHostPathWithinArgs): string | null;
4184
+
4165
4185
  declare const projectSchema: z$1.ZodObject<{
4166
4186
  createdAt: z$1.ZodNumber;
4167
4187
  gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -4687,6 +4707,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4687
4707
  kind: z$1.ZodLiteral<"plugin">;
4688
4708
  pluginId: z$1.ZodString;
4689
4709
  reason: z$1.ZodString;
4710
+ }, z$1.core.$strip>, z$1.ZodObject<{
4711
+ kind: z$1.ZodLiteral<"superseded">;
4690
4712
  }, z$1.core.$strip>], "kind">>;
4691
4713
  }, z$1.core.$strip>;
4692
4714
  type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
@@ -5709,19 +5731,6 @@ declare const environmentPathsQuerySchema: z$1.ZodObject<{
5709
5731
  query: z$1.ZodOptional<z$1.ZodString>;
5710
5732
  }, z$1.core.$strip>;
5711
5733
  type EnvironmentPathsQuery = z$1.infer<typeof environmentPathsQuerySchema>;
5712
- declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5713
- target: z$1.ZodLiteral<"uncommitted">;
5714
- }, z$1.core.$strip>, z$1.ZodObject<{
5715
- mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
5716
- target: z$1.ZodLiteral<"branch_committed">;
5717
- }, z$1.core.$strip>, z$1.ZodObject<{
5718
- mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
5719
- target: z$1.ZodLiteral<"all">;
5720
- }, z$1.core.$strip>, z$1.ZodObject<{
5721
- sha: z$1.ZodString;
5722
- target: z$1.ZodLiteral<"commit">;
5723
- }, z$1.core.$strip>], "target">;
5724
- type EnvironmentDiffQuery = z$1.infer<typeof environmentDiffQuerySchema>;
5725
5734
  declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
5726
5735
  archivedThreadIds: z$1.ZodArray<z$1.ZodString>;
5727
5736
  ok: z$1.ZodLiteral<true>;
@@ -5735,46 +5744,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
5735
5744
  ok: z$1.ZodLiteral<true>;
5736
5745
  }, z$1.core.$strip>;
5737
5746
  type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
5738
- declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
5739
- files: z$1.ZodArray<z$1.ZodObject<{
5740
- path: z$1.ZodString;
5741
- revision: z$1.ZodString;
5742
- }, z$1.core.$strict>>;
5743
- }, z$1.core.$strict>;
5744
- type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
5745
- declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
5746
- path: z$1.ZodString;
5747
- revision: z$1.ZodString;
5748
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5749
- type: z$1.ZodLiteral<"uncommitted">;
5750
- }, z$1.core.$strip>, z$1.ZodObject<{
5751
- mergeBaseBranch: z$1.ZodString;
5752
- type: z$1.ZodLiteral<"branch_committed">;
5753
- }, z$1.core.$strip>, z$1.ZodObject<{
5754
- mergeBaseBranch: z$1.ZodString;
5755
- type: z$1.ZodLiteral<"all">;
5756
- }, z$1.core.$strip>, z$1.ZodObject<{
5757
- sha: z$1.ZodString;
5758
- type: z$1.ZodLiteral<"commit">;
5759
- }, z$1.core.$strip>], "type">;
5760
- }, z$1.core.$strict>;
5761
- type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
5762
- declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
5763
- path: z$1.ZodOptional<z$1.ZodString>;
5764
- target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5765
- type: z$1.ZodLiteral<"uncommitted">;
5766
- }, z$1.core.$strip>, z$1.ZodObject<{
5767
- mergeBaseBranch: z$1.ZodString;
5768
- type: z$1.ZodLiteral<"branch_committed">;
5769
- }, z$1.core.$strip>, z$1.ZodObject<{
5770
- mergeBaseBranch: z$1.ZodString;
5771
- type: z$1.ZodLiteral<"all">;
5772
- }, z$1.core.$strip>, z$1.ZodObject<{
5773
- sha: z$1.ZodString;
5774
- type: z$1.ZodLiteral<"commit">;
5775
- }, z$1.core.$strip>], "type">;
5776
- }, z$1.core.$strict>;
5777
- type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
5778
5747
 
5779
5748
  declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5780
5749
  accountEmail: z$1.ZodNullable<z$1.ZodString>;
@@ -10574,19 +10543,18 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10574
10543
  }, z$1.core.$strict>;
10575
10544
  }, z$1.core.$strict>>;
10576
10545
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10577
- applicationLinks: "applicationLinks";
10578
10546
  compactExpiredCache: "compactExpiredCache";
10547
+ dismissReadNotifications: "dismissReadNotifications";
10579
10548
  narrowPluginCss: "narrowPluginCss";
10580
10549
  performanceDiagnostics: "performanceDiagnostics";
10581
10550
  pluginUpdates: "pluginUpdates";
10551
+ resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
10582
10552
  serverMove: "serverMove";
10583
- sidebarMultiSelect: "sidebarMultiSelect";
10584
10553
  skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
10585
10554
  threadContextCard: "threadContextCard";
10586
10555
  threadRowMetadata: "threadRowMetadata";
10587
10556
  timelinePush: "timelinePush";
10588
- unreadDividerAtAnswer: "unreadDividerAtAnswer";
10589
- websocketCompression: "websocketCompression";
10557
+ updateWhenIdle: "updateWhenIdle";
10590
10558
  }>, z$1.ZodBoolean>;
10591
10559
  featureFlags: z$1.ZodObject<{
10592
10560
  initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
@@ -10980,6 +10948,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
10980
10948
  targetVersion: z$1.ZodString;
10981
10949
  }, z$1.core.$strip>], "phase">;
10982
10950
  available: z$1.ZodNullable<z$1.ZodObject<{
10951
+ behindSince: z$1.ZodNullable<z$1.ZodISODateTime>;
10983
10952
  channel: z$1.ZodEnum<{
10984
10953
  latest: "latest";
10985
10954
  main: "main";
@@ -11030,6 +10999,9 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
11030
10999
  }, z$1.core.$strip>;
11031
11000
  }, z$1.core.$strip>>;
11032
11001
  runningThreadCount: z$1.ZodNumber;
11002
+ scheduled: z$1.ZodNullable<z$1.ZodObject<{
11003
+ requestedAt: z$1.ZodString;
11004
+ }, z$1.core.$strip>>;
11033
11005
  support: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11034
11006
  kind: z$1.ZodLiteral<"supported">;
11035
11007
  mode: z$1.ZodEnum<{
@@ -11691,6 +11663,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
11691
11663
  contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11692
11664
  createdAt: z$1.ZodNumber;
11693
11665
  cwd: z$1.ZodNullable<z$1.ZodString>;
11666
+ description: z$1.ZodNullable<z$1.ZodString>;
11694
11667
  exitCode: z$1.ZodNullable<z$1.ZodNumber>;
11695
11668
  id: z$1.ZodString;
11696
11669
  kind: z$1.ZodLiteral<"work">;
@@ -13336,6 +13309,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
13336
13309
  kind: z$1.ZodLiteral<"plugin">;
13337
13310
  pluginId: z$1.ZodString;
13338
13311
  reason: z$1.ZodString;
13312
+ }, z$1.core.$strip>, z$1.ZodObject<{
13313
+ kind: z$1.ZodLiteral<"superseded">;
13339
13314
  }, z$1.core.$strip>], "kind">>;
13340
13315
  }, z$1.core.$strip>;
13341
13316
  }, z$1.core.$strip>], "delivery">;
@@ -13507,6 +13482,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
13507
13482
  kind: z$1.ZodLiteral<"plugin">;
13508
13483
  pluginId: z$1.ZodString;
13509
13484
  reason: z$1.ZodString;
13485
+ }, z$1.core.$strip>, z$1.ZodObject<{
13486
+ kind: z$1.ZodLiteral<"superseded">;
13510
13487
  }, z$1.core.$strip>], "kind">;
13511
13488
  }, z$1.core.$strip>], "delivery">;
13512
13489
  type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
@@ -13916,6 +13893,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
13916
13893
  kind: z$1.ZodLiteral<"plugin">;
13917
13894
  pluginId: z$1.ZodString;
13918
13895
  reason: z$1.ZodString;
13896
+ }, z$1.core.$strip>, z$1.ZodObject<{
13897
+ kind: z$1.ZodLiteral<"superseded">;
13919
13898
  }, z$1.core.$strip>], "kind">>;
13920
13899
  }, z$1.core.$strip>;
13921
13900
  }, z$1.core.$strip>], "delivery">;
@@ -14911,6 +14890,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
14911
14890
  kind: z$1.ZodLiteral<"plugin">;
14912
14891
  pluginId: z$1.ZodString;
14913
14892
  reason: z$1.ZodString;
14893
+ }, z$1.core.$strip>, z$1.ZodObject<{
14894
+ kind: z$1.ZodLiteral<"superseded">;
14914
14895
  }, z$1.core.$strip>], "kind">>;
14915
14896
  }, z$1.core.$strip>>;
14916
14897
  type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
@@ -17416,26 +17397,15 @@ type EnvironmentUpdateFields = EnvironmentMergeBaseBranchUpdate | EnvironmentNam
17416
17397
  type EnvironmentUpdateArgs = EnvironmentUpdateFields & {
17417
17398
  environmentId: string;
17418
17399
  };
17419
- type EnvironmentDiffArgs = EnvironmentDiffQuery & {
17420
- environmentId: string;
17421
- signal?: AbortSignal;
17422
- };
17423
17400
  interface EnvironmentCommitArgs {
17424
17401
  environmentId: string;
17425
17402
  }
17426
- type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
17427
- environmentId: string;
17428
- };
17429
- type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
17430
- environmentId: string;
17431
- };
17432
17403
  interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
17433
17404
  environmentId: string;
17434
17405
  signal?: AbortSignal;
17435
17406
  }
17436
17407
  type EnvironmentArchiveThreadsResult = EnvironmentArchiveThreadsResponse;
17437
17408
  type EnvironmentCommitResult = CommitActionResponse;
17438
- type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17439
17409
  type EnvironmentGetResult = Environment;
17440
17410
  type EnvironmentPathsResult = WorkspacePathListResponse;
17441
17411
  type EnvironmentUpdateResult = Environment;
@@ -17471,15 +17441,6 @@ interface EnvironmentsArea {
17471
17441
  }>;
17472
17442
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
17473
17443
  commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
17474
- experimental_diffViewed(args: EnvironmentDiffArgs & {
17475
- paths?: string[];
17476
- }): Promise<EnvironmentDiffViewedResult>;
17477
- experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
17478
- ok: true;
17479
- }>;
17480
- experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
17481
- ok: true;
17482
- }>;
17483
17444
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
17484
17445
  list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
17485
17446
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
@@ -17581,6 +17542,9 @@ interface HostGetArgs {
17581
17542
  hostId: string;
17582
17543
  signal?: AbortSignal;
17583
17544
  }
17545
+ interface HostProviderCliStatusArgs extends HostGetArgs {
17546
+ refresh?: boolean;
17547
+ }
17584
17548
  interface HostDeleteArgs {
17585
17549
  hostId: string;
17586
17550
  force?: boolean;
@@ -17671,7 +17635,7 @@ interface HostsArea {
17671
17635
  experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
17672
17636
  pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
17673
17637
  pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
17674
- providerCliStatus(args: HostGetArgs): Promise<HostProviderCliStatusResult>;
17638
+ providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
17675
17639
  experimental_resume(args: HostActionArgs): Promise<Host>;
17676
17640
  experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
17677
17641
  retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
@@ -18397,6 +18361,8 @@ interface SystemArea {
18397
18361
  appUpdate(args?: SystemAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18398
18362
  applyAppUpdate(args: SystemApplyAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18399
18363
  acknowledgeAppUpdate(args: SystemAcknowledgeAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
18364
+ experimental_scheduleAppUpdate(): Promise<SystemAppUpdateStatusResult>;
18365
+ experimental_cancelScheduledAppUpdate(): Promise<SystemAppUpdateStatusResult>;
18400
18366
  experimental_cliCommand(args?: SystemCliCommandArgs): Promise<SystemCliCommandStatusResult>;
18401
18367
  experimental_installCliCommand(): Promise<SystemCliCommandStatusResult>;
18402
18368
  experimental_removeCliCommand(): Promise<SystemCliCommandStatusResult>;
@@ -19617,6 +19583,15 @@ interface PluginThreadEventPayloads {
19617
19583
  thread: ThreadResponse;
19618
19584
  previousParentThreadId: string | null;
19619
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
+ };
19620
19595
  /** Real accepted terminal input; excludes output, keepalives and input contents. */
19621
19596
  "experimental_terminal.input": {
19622
19597
  terminal: TerminalSession;
@@ -19938,9 +19913,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
19938
19913
  *
19939
19914
  * It runs identically whether the attempt is inline (someone just sent) or
19940
19915
  * from a drain (a queued row became eligible again), and whether the message
19941
- * is a thread's first, a follow-up, a steer, or a retry of a failed turn. A
19942
- * handler must therefore be idempotent for one logical dispatch: passes re-run
19943
- * on every drain, on restart, and on retry.
19916
+ * is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
19917
+ * of core's own notices to a thread (a child finished, needs attention, or
19918
+ * changed owner), which arrives with `initiator: "system"`. Compaction and an
19919
+ * edited message's re-send operate on the existing conversation and do not
19920
+ * pass through it. A handler must therefore be idempotent for one logical
19921
+ * dispatch: passes re-run on every drain, on restart, and on retry.
19944
19922
  */
19945
19923
  interface MessageDispatchHookContext {
19946
19924
  /**
@@ -21974,6 +21952,30 @@ interface SourceCodeProps {
21974
21952
  /** Applied to the renderer's root element. */
21975
21953
  className?: string;
21976
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
+ }
21977
21979
  /**
21978
21980
  * Props of the host-owned `experimental_Diff` component — BB's diff viewer.
21979
21981
  * The host owns patch normalization (a patch without a `diff --git` header is
@@ -23703,17 +23705,23 @@ interface ExperimentalSidebarNavigationRegistration {
23703
23705
  * matching files render the first applicable opener in deterministic slot
23704
23706
  * order. The user can pin BB's preview or a specific opener per extension
23705
23707
  * under Settings → Files. The file tab's "Open with" menu can override that
23706
- * choice for one open. A plugin can also use its own setting and render
23707
- * `Original` conditionally. Applies to working-tree, host, and
23708
- * thread-storage files — never to git-ref snapshots (diff views always use
23709
- * 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).
23710
23713
  */
23711
23714
  interface PluginFileOpenerRegistration {
23712
23715
  /** Unique within the plugin; letters, digits, `-`, `_`. */
23713
23716
  id: string;
23714
23717
  /** Label in the "Open with" menu (e.g. "Notes editor"). */
23715
23718
  title: string;
23716
- /** 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
+ */
23717
23725
  extensions: readonly string[];
23718
23726
  component: ComponentType<PluginFileOpenerProps>;
23719
23727
  }
@@ -24052,20 +24060,6 @@ interface ExperimentalComposerInput {
24052
24060
  history?: ExperimentalComposerHistory;
24053
24061
  voice?: ExperimentalComposerVoice;
24054
24062
  }
24055
- /** A composer's scope, layout, draft summary and run state. */
24056
- interface ExperimentalComposerView {
24057
- scope: PluginComposerScope;
24058
- layout: "compact" | "expanded" | "zen";
24059
- draft: {
24060
- text: string;
24061
- isEmpty: boolean;
24062
- attachmentCount: number;
24063
- };
24064
- run: {
24065
- isRunning: boolean;
24066
- isSubmitting: boolean;
24067
- };
24068
- }
24069
24063
  /** A contribution another plugin registered with `app.composer.customize`. */
24070
24064
  interface ExperimentalComposerContribution {
24071
24065
  /** Stable across renders; use it as the React key. */
@@ -24206,10 +24200,6 @@ interface ExperimentalComposerClipboard {
24206
24200
  */
24207
24201
  interface ExperimentalComposerRendererApi {
24208
24202
  readonly input: ExperimentalComposerInput;
24209
- /** The composer this box draws: scope, layout, draft and run state. */
24210
- readonly view: ExperimentalComposerView;
24211
- /** Stable identity of this composer's draft (`useComposer().key`). */
24212
- readonly key: string;
24213
24203
  /** A plugin locked editing through `useComposer().setInputLock(true)`. */
24214
24204
  readonly inputLocked: boolean;
24215
24205
  /** The shortcut of bb's "Focus composer" command, or null when unbound. */
@@ -25884,6 +25874,16 @@ interface ExperimentalFileOpenOptions {
25884
25874
  target: ExperimentalLiveFileTarget;
25885
25875
  location: ExperimentalFileLocation | null;
25886
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
+ }
25887
25887
  /**
25888
25888
  * Props for BB's host-rendered semantic file link. Valid targets receive a
25889
25889
  * scheme-safe anchor href; traversal paths, ill-formed Unicode, and other
@@ -26071,14 +26071,14 @@ interface BbNavigate {
26071
26071
  }): void;
26072
26072
  /**
26073
26073
  * Open an HTTP(S) URL using this client's BB browser preference, or request
26074
- * an application link on this device with confirmation unless its scheme is approved when
26075
- * the applicationLinks experiment is enabled. Returns false
26074
+ * an application link on this device with confirmation unless its scheme is
26075
+ * approved. Returns false
26076
26076
  * for blocked or unsupported schemes. True means handled, not launched. See
26077
26077
  * docs/api_to_audit.md.
26078
26078
  */
26079
26079
  openUrl(url: string): boolean;
26080
26080
  /** Open a live file in this surface's shared BB preview panel. */
26081
- experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
26081
+ experimental_openFilePreview(options: ExperimentalFilePreviewOptions): boolean;
26082
26082
  /** Open a live file in this client's preferred external file target. */
26083
26083
  experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
26084
26084
  /**
@@ -26663,6 +26663,12 @@ interface PluginSdkApp {
26663
26663
  * replacement. Experimental: see docs/api_to_audit.md.
26664
26664
  */
26665
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>;
26666
26672
  /**
26667
26673
  * The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
26668
26674
  * content with BB's normalization, optional full-file context expansion,
@@ -27036,5 +27042,5 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
27036
27042
  readonly storage: "3_storage";
27037
27043
  };
27038
27044
 
27039
- 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 };
27040
- 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, 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 };
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 };
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,