@get-bb/plugin-sdk 0.6.68 → 0.6.73

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.
@@ -6,7 +6,7 @@
6
6
  // and read the real source: https://github.com/get-bb/bb
7
7
 
8
8
  import * as react from 'react';
9
- import { ComponentType, ComponentPropsWithoutRef, CSSProperties, ComponentPropsWithRef, ReactNode } from 'react';
9
+ import { ComponentType, ReactNode, RefObject, ComponentPropsWithoutRef, CSSProperties, ComponentPropsWithRef } from 'react';
10
10
  import * as z from 'zod';
11
11
  import { z as z$1 } from 'zod';
12
12
  import * as zod_v4_core from 'zod/v4/core';
@@ -110,7 +110,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
110
110
  }, z$1.core.$strict>]>;
111
111
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
112
112
 
113
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
113
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "composer.provider", "infoPanel.collapsedSections"];
114
114
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
115
115
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
116
116
  schema: Schema;
@@ -145,6 +145,7 @@ declare const uiPreferenceDefinitions: {
145
145
  readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
146
146
  readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
147
147
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
148
+ readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
148
149
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
149
150
  };
150
151
  type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
@@ -5567,12 +5568,6 @@ declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
5567
5568
  ok: z$1.ZodLiteral<true>;
5568
5569
  }, z$1.core.$strip>;
5569
5570
  type EnvironmentArchiveThreadsResponse = z$1.infer<typeof environmentArchiveThreadsResponseSchema>;
5570
- declare const pullRequestMergeMethodSchema: z$1.ZodEnum<{
5571
- merge: "merge";
5572
- rebase: "rebase";
5573
- squash: "squash";
5574
- }>;
5575
- type PullRequestMergeMethod = z$1.infer<typeof pullRequestMergeMethodSchema>;
5576
5571
  declare const commitActionResponseSchema: z$1.ZodObject<{
5577
5572
  action: z$1.ZodLiteral<"commit">;
5578
5573
  commitSha: z$1.ZodString;
@@ -5581,29 +5576,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
5581
5576
  ok: z$1.ZodLiteral<true>;
5582
5577
  }, z$1.core.$strip>;
5583
5578
  type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
5584
- declare const pullRequestReadyActionResponseSchema: z$1.ZodObject<{
5585
- action: z$1.ZodLiteral<"pull_request_ready">;
5586
- message: z$1.ZodString;
5587
- ok: z$1.ZodLiteral<true>;
5588
- }, z$1.core.$strip>;
5589
- type PullRequestReadyActionResponse = z$1.infer<typeof pullRequestReadyActionResponseSchema>;
5590
- declare const pullRequestMergeActionResponseSchema: z$1.ZodObject<{
5591
- action: z$1.ZodLiteral<"pull_request_merge">;
5592
- message: z$1.ZodString;
5593
- method: z$1.ZodEnum<{
5594
- merge: "merge";
5595
- rebase: "rebase";
5596
- squash: "squash";
5597
- }>;
5598
- ok: z$1.ZodLiteral<true>;
5599
- }, z$1.core.$strip>;
5600
- type PullRequestMergeActionResponse = z$1.infer<typeof pullRequestMergeActionResponseSchema>;
5601
- declare const pullRequestDraftActionResponseSchema: z$1.ZodObject<{
5602
- action: z$1.ZodLiteral<"pull_request_draft">;
5603
- message: z$1.ZodString;
5604
- ok: z$1.ZodLiteral<true>;
5605
- }, z$1.core.$strip>;
5606
- type PullRequestDraftActionResponse = z$1.infer<typeof pullRequestDraftActionResponseSchema>;
5607
5579
  declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5608
5580
  outcome: z$1.ZodLiteral<"available">;
5609
5581
  workspace: z$1.ZodObject<{
@@ -5657,6 +5629,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5657
5629
  insertions: z$1.ZodNumber;
5658
5630
  lineStatsComplete: z$1.ZodBoolean;
5659
5631
  mergeBaseBranch: z$1.ZodString;
5632
+ squashMergeCheckComplete: z$1.ZodBoolean;
5660
5633
  }, z$1.core.$strip>>;
5661
5634
  workingTree: z$1.ZodObject<{
5662
5635
  deletions: z$1.ZodNumber;
@@ -5709,92 +5682,6 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
5709
5682
  }, z$1.core.$strict>;
5710
5683
  outcome: z$1.ZodLiteral<"unavailable">;
5711
5684
  }, z$1.core.$strict>], "outcome">;
5712
- declare const environmentPullRequestResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5713
- outcome: z$1.ZodLiteral<"available">;
5714
- pullRequest: z$1.ZodObject<{
5715
- attention: z$1.ZodEnum<{
5716
- blocked: "blocked";
5717
- changes_requested: "changes_requested";
5718
- checks_failed: "checks_failed";
5719
- checks_pending: "checks_pending";
5720
- closed: "closed";
5721
- conflicts: "conflicts";
5722
- draft: "draft";
5723
- merged: "merged";
5724
- none: "none";
5725
- queued: "queued";
5726
- ready_to_merge: "ready_to_merge";
5727
- review_requested: "review_requested";
5728
- }>;
5729
- autoMerge: z$1.ZodBoolean;
5730
- baseRefName: z$1.ZodString;
5731
- checks: z$1.ZodObject<{
5732
- failedCount: z$1.ZodNumber;
5733
- passedCount: z$1.ZodNumber;
5734
- pendingCount: z$1.ZodNumber;
5735
- state: z$1.ZodEnum<{
5736
- failing: "failing";
5737
- no_checks: "no_checks";
5738
- passing: "passing";
5739
- pending: "pending";
5740
- unknown: "unknown";
5741
- }>;
5742
- totalCount: z$1.ZodNumber;
5743
- }, z$1.core.$strict>;
5744
- headRefName: z$1.ZodString;
5745
- inMergeQueue: z$1.ZodNullable<z$1.ZodBoolean>;
5746
- mergeability: z$1.ZodObject<{
5747
- mergeStateStatus: z$1.ZodNullable<z$1.ZodEnum<{
5748
- BEHIND: "BEHIND";
5749
- BLOCKED: "BLOCKED";
5750
- CLEAN: "CLEAN";
5751
- DIRTY: "DIRTY";
5752
- DRAFT: "DRAFT";
5753
- HAS_HOOKS: "HAS_HOOKS";
5754
- UNKNOWN: "UNKNOWN";
5755
- UNSTABLE: "UNSTABLE";
5756
- }>>;
5757
- mergeable: z$1.ZodNullable<z$1.ZodEnum<{
5758
- CONFLICTING: "CONFLICTING";
5759
- MERGEABLE: "MERGEABLE";
5760
- UNKNOWN: "UNKNOWN";
5761
- }>>;
5762
- state: z$1.ZodEnum<{
5763
- blocked: "blocked";
5764
- conflicts: "conflicts";
5765
- draft: "draft";
5766
- mergeable: "mergeable";
5767
- unknown: "unknown";
5768
- }>;
5769
- }, z$1.core.$strict>;
5770
- number: z$1.ZodNumber;
5771
- review: z$1.ZodObject<{
5772
- reviewRequestCount: z$1.ZodNumber;
5773
- state: z$1.ZodEnum<{
5774
- approved: "approved";
5775
- changes_requested: "changes_requested";
5776
- none: "none";
5777
- review_requested: "review_requested";
5778
- review_required: "review_required";
5779
- }>;
5780
- }, z$1.core.$strict>;
5781
- state: z$1.ZodEnum<{
5782
- closed: "closed";
5783
- draft: "draft";
5784
- merged: "merged";
5785
- open: "open";
5786
- }>;
5787
- title: z$1.ZodString;
5788
- updatedAt: z$1.ZodString;
5789
- url: z$1.ZodString;
5790
- }, z$1.core.$strict>;
5791
- }, z$1.core.$strict>, z$1.ZodObject<{
5792
- outcome: z$1.ZodLiteral<"absent">;
5793
- }, z$1.core.$strict>, z$1.ZodObject<{
5794
- message: z$1.ZodString;
5795
- outcome: z$1.ZodLiteral<"unavailable">;
5796
- }, z$1.core.$strict>], "outcome">;
5797
- type EnvironmentPullRequestResponse = z$1.infer<typeof environmentPullRequestResponseSchema>;
5798
5685
  declare const environmentDiffResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5799
5686
  diff: z$1.ZodObject<{
5800
5687
  diff: z$1.ZodString;
@@ -7484,33 +7371,6 @@ declare const hostDaemonCommandRegistry: {
7484
7371
  commitSha: z$1.ZodString;
7485
7372
  commitSubject: z$1.ZodString;
7486
7373
  }, z$1.core.$strip>, "settled", false>;
7487
- "workspace.pull_request_action": HostDaemonCommandDescriptor<"workspace.pull_request_action", z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7488
- environmentId: z$1.ZodString;
7489
- operation: z$1.ZodLiteral<"ready">;
7490
- type: z$1.ZodLiteral<"workspace.pull_request_action">;
7491
- workspaceContext: z$1.ZodObject<{
7492
- workspacePath: z$1.ZodString;
7493
- }, z$1.core.$strip>;
7494
- }, z$1.core.$strict>, z$1.ZodObject<{
7495
- environmentId: z$1.ZodString;
7496
- operation: z$1.ZodLiteral<"draft">;
7497
- type: z$1.ZodLiteral<"workspace.pull_request_action">;
7498
- workspaceContext: z$1.ZodObject<{
7499
- workspacePath: z$1.ZodString;
7500
- }, z$1.core.$strip>;
7501
- }, z$1.core.$strict>, z$1.ZodObject<{
7502
- environmentId: z$1.ZodString;
7503
- method: z$1.ZodEnum<{
7504
- merge: "merge";
7505
- rebase: "rebase";
7506
- squash: "squash";
7507
- }>;
7508
- operation: z$1.ZodLiteral<"merge">;
7509
- type: z$1.ZodLiteral<"workspace.pull_request_action">;
7510
- workspaceContext: z$1.ZodObject<{
7511
- workspacePath: z$1.ZodString;
7512
- }, z$1.core.$strip>;
7513
- }, z$1.core.$strict>], "operation">, z$1.ZodObject<{}, z$1.core.$strict>, "settled", false>;
7514
7374
  "host.list_files": HostDaemonCommandDescriptor<"host.list_files", z$1.ZodObject<{
7515
7375
  excludeNames: z$1.ZodArray<z$1.ZodString>;
7516
7376
  followRootSymlink: z$1.ZodBoolean;
@@ -8656,6 +8516,7 @@ declare const hostDaemonCommandRegistry: {
8656
8516
  insertions: z$1.ZodNumber;
8657
8517
  lineStatsComplete: z$1.ZodBoolean;
8658
8518
  mergeBaseBranch: z$1.ZodString;
8519
+ squashMergeCheckComplete: z$1.ZodDefault<z$1.ZodBoolean>;
8659
8520
  }, z$1.core.$strip>>;
8660
8521
  workingTree: z$1.ZodObject<{
8661
8522
  deletions: z$1.ZodNumber;
@@ -8850,80 +8711,6 @@ declare const hostDaemonCommandRegistry: {
8850
8711
  }, z$1.core.$strict>;
8851
8712
  outcome: z$1.ZodLiteral<"unavailable">;
8852
8713
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8853
- "workspace.pull_request": HostDaemonCommandDescriptor<"workspace.pull_request", z$1.ZodObject<{
8854
- environmentId: z$1.ZodString;
8855
- type: z$1.ZodLiteral<"workspace.pull_request">;
8856
- workspaceContext: z$1.ZodObject<{
8857
- workspacePath: z$1.ZodString;
8858
- }, z$1.core.$strip>;
8859
- }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8860
- outcome: z$1.ZodLiteral<"available">;
8861
- pullRequest: z$1.ZodObject<{
8862
- autoMerge: z$1.ZodBoolean;
8863
- baseRefName: z$1.ZodString;
8864
- checks: z$1.ZodArray<z$1.ZodObject<{
8865
- conclusion: z$1.ZodNullable<z$1.ZodEnum<{
8866
- action_required: "action_required";
8867
- cancelled: "cancelled";
8868
- failure: "failure";
8869
- neutral: "neutral";
8870
- skipped: "skipped";
8871
- stale: "stale";
8872
- startup_failure: "startup_failure";
8873
- success: "success";
8874
- timed_out: "timed_out";
8875
- unknown: "unknown";
8876
- }>>;
8877
- name: z$1.ZodString;
8878
- startedAt: z$1.ZodNullable<z$1.ZodString>;
8879
- status: z$1.ZodEnum<{
8880
- completed: "completed";
8881
- in_progress: "in_progress";
8882
- queued: "queued";
8883
- unknown: "unknown";
8884
- }>;
8885
- url: z$1.ZodNullable<z$1.ZodString>;
8886
- }, z$1.core.$strict>>;
8887
- headRefName: z$1.ZodString;
8888
- inMergeQueue: z$1.ZodNullable<z$1.ZodBoolean>;
8889
- isDraft: z$1.ZodBoolean;
8890
- mergeStateStatus: z$1.ZodNullable<z$1.ZodEnum<{
8891
- BEHIND: "BEHIND";
8892
- BLOCKED: "BLOCKED";
8893
- CLEAN: "CLEAN";
8894
- DIRTY: "DIRTY";
8895
- DRAFT: "DRAFT";
8896
- HAS_HOOKS: "HAS_HOOKS";
8897
- UNKNOWN: "UNKNOWN";
8898
- UNSTABLE: "UNSTABLE";
8899
- }>>;
8900
- mergeable: z$1.ZodNullable<z$1.ZodEnum<{
8901
- CONFLICTING: "CONFLICTING";
8902
- MERGEABLE: "MERGEABLE";
8903
- UNKNOWN: "UNKNOWN";
8904
- }>>;
8905
- number: z$1.ZodNumber;
8906
- reviewDecision: z$1.ZodNullable<z$1.ZodEnum<{
8907
- APPROVED: "APPROVED";
8908
- CHANGES_REQUESTED: "CHANGES_REQUESTED";
8909
- REVIEW_REQUIRED: "REVIEW_REQUIRED";
8910
- }>>;
8911
- reviewRequestCount: z$1.ZodNumber;
8912
- state: z$1.ZodEnum<{
8913
- CLOSED: "CLOSED";
8914
- MERGED: "MERGED";
8915
- OPEN: "OPEN";
8916
- }>;
8917
- title: z$1.ZodString;
8918
- updatedAt: z$1.ZodString;
8919
- url: z$1.ZodString;
8920
- }, z$1.core.$strict>;
8921
- }, z$1.core.$strict>, z$1.ZodObject<{
8922
- outcome: z$1.ZodLiteral<"absent">;
8923
- }, z$1.core.$strict>, z$1.ZodObject<{
8924
- message: z$1.ZodString;
8925
- outcome: z$1.ZodLiteral<"unavailable">;
8926
- }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8927
8714
  "server_move.inspect": HostDaemonCommandDescriptor<"server_move.inspect", z$1.ZodObject<{
8928
8715
  paths: z$1.ZodArray<z$1.ZodString>;
8929
8716
  port: z$1.ZodNumber;
@@ -16725,6 +16512,11 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
16725
16512
  }, z$1.core.$strict>, z$1.ZodObject<{
16726
16513
  id: z$1.ZodString;
16727
16514
  kind: z$1.ZodLiteral<"git-diff">;
16515
+ }, z$1.core.$strict>, z$1.ZodObject<{
16516
+ id: z$1.ZodString;
16517
+ kind: z$1.ZodLiteral<"plugin-fixed">;
16518
+ pluginId: z$1.ZodString;
16519
+ tabId: z$1.ZodString;
16728
16520
  }, z$1.core.$strict>, z$1.ZodObject<{
16729
16521
  actionId: z$1.ZodString;
16730
16522
  fileOpenerOwner: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -16871,6 +16663,11 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
16871
16663
  }, z$1.core.$strict>, z$1.ZodObject<{
16872
16664
  id: z$1.ZodString;
16873
16665
  kind: z$1.ZodLiteral<"git-diff">;
16666
+ }, z$1.core.$strict>, z$1.ZodObject<{
16667
+ id: z$1.ZodString;
16668
+ kind: z$1.ZodLiteral<"plugin-fixed">;
16669
+ pluginId: z$1.ZodString;
16670
+ tabId: z$1.ZodString;
16874
16671
  }, z$1.core.$strict>, z$1.ZodObject<{
16875
16672
  actionId: z$1.ZodString;
16876
16673
  fileOpenerOwner: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -17127,10 +16924,6 @@ interface EnvironmentDiffBranchesArgs extends EnvironmentDiffBranchesQuery {
17127
16924
  interface EnvironmentCommitArgs {
17128
16925
  environmentId: string;
17129
16926
  }
17130
- interface EnvironmentPullRequestMergeArgs {
17131
- environmentId: string;
17132
- method: PullRequestMergeMethod;
17133
- }
17134
16927
  type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
17135
16928
  environmentId: string;
17136
16929
  signal?: AbortSignal;
@@ -17154,11 +16947,7 @@ type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
17154
16947
  type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
17155
16948
  type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17156
16949
  type EnvironmentGetResult = Environment;
17157
- type EnvironmentMarkPullRequestDraftResult = PullRequestDraftActionResponse;
17158
- type EnvironmentMarkPullRequestReadyResult = PullRequestReadyActionResponse;
17159
- type EnvironmentMergePullRequestResult = PullRequestMergeActionResponse;
17160
16950
  type EnvironmentPathsResult = WorkspacePathListResponse;
17161
- type EnvironmentPullRequestResult = EnvironmentPullRequestResponse;
17162
16951
  type EnvironmentStatusResult = EnvironmentStatusResponse;
17163
16952
  type EnvironmentUpdateResult = Environment;
17164
16953
  interface EnvironmentListArgs {
@@ -17211,10 +17000,6 @@ interface EnvironmentsArea {
17211
17000
  list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
17212
17001
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
17213
17002
  delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
17214
- pullRequest(args: EnvironmentGetArgs): Promise<EnvironmentPullRequestResult>;
17215
- markPullRequestDraft(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestDraftResult>;
17216
- markPullRequestReady(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestReadyResult>;
17217
- mergePullRequest(args: EnvironmentPullRequestMergeArgs): Promise<EnvironmentMergePullRequestResult>;
17218
17003
  paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
17219
17004
  status(args: EnvironmentStatusArgs): Promise<EnvironmentStatusResult>;
17220
17005
  update(args: EnvironmentUpdateArgs): Promise<EnvironmentUpdateResult>;
@@ -18745,6 +18530,8 @@ interface BbSdkAreas extends BbRealtime {
18745
18530
  threads: ThreadsArea;
18746
18531
  }
18747
18532
 
18533
+ type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
18534
+
18748
18535
  /**
18749
18536
  * The `@get-bb/plugin-sdk/app` contract (plugin design §5.2) — pure types with no
18750
18537
  * side effects. The BB app imports these to keep its real implementation in
@@ -18800,12 +18587,12 @@ interface PluginNavPanelProps {
18800
18587
  subPath: string;
18801
18588
  }
18802
18589
  /**
18803
- * Props passed to a panel tab opened by a `threadPanelAction`.
18590
+ * Props passed to a panel tab opened by a thread action tab.
18804
18591
  *
18805
18592
  * This slot is rendered only for an existing thread. Use
18806
18593
  * `experimental_newThreadPanelAction` for the root New thread screen.
18807
18594
  */
18808
- interface PluginThreadPanelProps {
18595
+ interface ExperimentalThreadActionTabProps {
18809
18596
  threadId: string;
18810
18597
  /**
18811
18598
  * The JSON value the action's `openPanel` call passed (round-tripped
@@ -19516,17 +19303,6 @@ type ExperimentalPluginFixedTabReference<Target extends JsonValue$1 = never> = {
19516
19303
  /** Owner validation required before the host delivers a target. */
19517
19304
  readonly experimental_target: ExperimentalFixedTabTargetContract<Target>;
19518
19305
  });
19519
- /** A fixed tab declared by a plugin nav panel. */
19520
- type PluginFixedTabRegistration<Target extends JsonValue$1 = never> = ExperimentalPluginFixedTabReference<Target> & {
19521
- title: string;
19522
- /** Resolved names take precedence over plugin branding; unknown names fall back to branding. */
19523
- icon: BbIconName;
19524
- component: ComponentType<PluginNavPanelProps>;
19525
- /** `flush` lets the component own padding and scrolling. */
19526
- layout?: "flush" | "padded";
19527
- };
19528
- /** A fixed tab with either no target or an owner-validated JSON target. */
19529
- type PluginFixedTabDeclaration = PluginFixedTabRegistration | PluginFixedTabRegistration<JsonValue$1>;
19530
19306
  /**
19531
19307
  * How urgent an {@link ExperimentalBadge} is. bb picks the colors: `neutral`
19532
19308
  * (the default) for counts and new items, `warning` for something due or
@@ -19590,17 +19366,6 @@ interface PluginNavPanelRegistration {
19590
19366
  * navigation or plugin reload retries the hook. Experimental.
19591
19367
  */
19592
19368
  experimental_usePageTitle?: (props: PluginNavPanelProps) => ExperimentalPageTitle | null;
19593
- /**
19594
- * Ordered, non-closable tabs shown in this page's host-owned right panel.
19595
- * BB owns selection and persistence and always includes its native Browser
19596
- * and Terminal tools beside them. One tab is active in each visible split
19597
- * pane, so multiple fixed-tab components can be mounted concurrently. A
19598
- * component mounts only while its tab is active in a visible pane and the
19599
- * panel is open, and receives the same `subPath` as the page component.
19600
- *
19601
- * Experimental: see docs/api_to_audit.md.
19602
- */
19603
- fixedTabs?: readonly PluginFixedTabDeclaration[];
19604
19369
  /**
19605
19370
  * Optional React hook that returns this panel's navigation badge, or `null`
19606
19371
  * for none. The host calls it once in your plugin's scope for every
@@ -19639,12 +19404,12 @@ interface PluginPanelActionOpenOptions {
19639
19404
  params?: JsonValue$1;
19640
19405
  }
19641
19406
  /**
19642
- * Context handed to a `threadPanelAction`'s `run`.
19407
+ * Context handed to a thread action tab's `run`.
19643
19408
  *
19644
19409
  * The action is thread-only and is never offered on the root New thread
19645
19410
  * screen, so `threadId` is always present.
19646
19411
  */
19647
- interface PluginThreadPanelActionContext {
19412
+ interface ExperimentalThreadTabActionContext {
19648
19413
  /** The thread whose panel launcher invoked the action. */
19649
19414
  threadId: string;
19650
19415
  /**
@@ -19665,35 +19430,97 @@ interface PluginThreadPanelActionContext {
19665
19430
  */
19666
19431
  openPanel(options?: PluginPanelActionOpenOptions): boolean;
19667
19432
  }
19668
- interface PluginThreadPanelActionRegistration {
19669
- /** Unique within the plugin; letters, digits, `-`, `_`. */
19433
+ /** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
19434
+ type ExperimentalTabContext = {
19435
+ kind: "thread";
19436
+ } | {
19437
+ kind: "nav-panel";
19438
+ panelId: string;
19439
+ };
19440
+ interface ExperimentalTabReference {
19670
19441
  id: string;
19671
- /** Label of the action row in the panel's new-tab launcher. */
19442
+ context: ExperimentalTabContext;
19443
+ availability: "action" | "fixed";
19444
+ }
19445
+ type ExperimentalTabCommon = ExperimentalTabReference & {
19672
19446
  title: string;
19673
- /**
19674
- * Resolved names take precedence over plugin branding in the launcher and
19675
- * opened tabs. Omitted or unknown names fall back to plugin branding.
19676
- */
19677
- icon?: BbIconName;
19678
- /** Rendered inside every panel tab this action opens. */
19679
- component: ComponentType<PluginThreadPanelProps>;
19680
- /**
19681
- * How the host frames the tab content. "padded" (default) wraps the
19682
- * component in the panel's scroll container with standard padding —
19683
- * right for document-like content. "flush" gives the component the full
19684
- * tab area (no padding, definite height, no host scrolling) — right for
19685
- * app-like content that manages its own layout, such as
19686
- * `ThreadChat`.
19687
- */
19447
+ icon: BbIconName;
19448
+ tooltip?: string;
19688
19449
  layout?: "flush" | "padded";
19689
- /**
19690
- * Runs when the user activates the action: call your RPC methods, show a
19691
- * toast, and/or open panel tabs via `context.openPanel`. Omitted =
19692
- * immediately open a panel tab with defaults. Errors (sync or async) are
19693
- * contained and logged; they never break the launcher.
19694
- */
19695
- run?(context: PluginThreadPanelActionContext): void | Promise<void>;
19696
- }
19450
+ };
19451
+ type ExperimentalTabLifecycle<Props, Context> = {
19452
+ availability: "fixed";
19453
+ component: ComponentType<Props>;
19454
+ run?: never;
19455
+ params?: never;
19456
+ } | {
19457
+ availability: "action";
19458
+ component: ComponentType<Props & {
19459
+ params: JsonValue$1 | null;
19460
+ }>;
19461
+ /** Default persisted params when opened without explicit params. */
19462
+ params?: JsonValue$1;
19463
+ run?(context: Context & {
19464
+ openPanel(options?: PluginPanelActionOpenOptions): boolean;
19465
+ }): void | Promise<void>;
19466
+ };
19467
+ type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
19468
+ kind: "thread";
19469
+ } ? {
19470
+ threadId: string;
19471
+ } : PluginNavPanelProps;
19472
+ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" | "fixed"> = {
19473
+ id: string;
19474
+ title: string;
19475
+ icon: BbIconName;
19476
+ tooltip?: string;
19477
+ layout?: "flush" | "padded";
19478
+ context: C;
19479
+ availability: A;
19480
+ useVisible?(props: ExperimentalTabContextProps<C>): boolean;
19481
+ } & (A extends "fixed" ? {
19482
+ component: ComponentType<ExperimentalTabContextProps<C>>;
19483
+ run?: never;
19484
+ params?: never;
19485
+ experimental_target?: C extends {
19486
+ kind: "nav-panel";
19487
+ } ? ExperimentalFixedTabTargetContract<JsonValue$1> : never;
19488
+ } : {
19489
+ component: ComponentType<ExperimentalTabContextProps<C> & {
19490
+ params: JsonValue$1 | null;
19491
+ }>;
19492
+ params?: JsonValue$1;
19493
+ run?(context: ExperimentalTabContextProps<C> & {
19494
+ openPanel(options?: PluginPanelActionOpenOptions): boolean;
19495
+ }): void | Promise<void>;
19496
+ experimental_target?: never;
19497
+ });
19498
+ /** One registration for pinned destinations and actions opening closable instances. */
19499
+ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
19500
+ context: {
19501
+ kind: "thread";
19502
+ };
19503
+ useVisible?(props: {
19504
+ threadId: string;
19505
+ }): boolean;
19506
+ experimental_target?: never;
19507
+ } & ExperimentalTabLifecycle<{
19508
+ threadId: string;
19509
+ }, {
19510
+ threadId: string;
19511
+ }>) | ({
19512
+ context: {
19513
+ kind: "nav-panel";
19514
+ panelId: string;
19515
+ };
19516
+ useVisible?(props: PluginNavPanelProps): boolean;
19517
+ } & ((ExperimentalTabLifecycle<PluginNavPanelProps, PluginNavPanelProps> & {
19518
+ availability: "action";
19519
+ experimental_target?: never;
19520
+ }) | (ExperimentalTabLifecycle<PluginNavPanelProps, PluginNavPanelProps> & {
19521
+ availability: "fixed";
19522
+ experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
19523
+ }))));
19697
19524
  /** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
19698
19525
  interface PluginNewThreadPanelActionContext {
19699
19526
  /** Project selected in the root composer; null in projectless compose. */
@@ -19701,7 +19528,7 @@ interface PluginNewThreadPanelActionContext {
19701
19528
  /**
19702
19529
  * Open a tab in the root New thread screen's side panel rendering this
19703
19530
  * action's `component`. The title, params, deduplication, return value, and
19704
- * error semantics match `threadPanelAction`.
19531
+ * error semantics match thread action tabs.
19705
19532
  */
19706
19533
  openPanel(options?: PluginPanelActionOpenOptions): boolean;
19707
19534
  }
@@ -19715,7 +19542,7 @@ interface PluginNewThreadPanelActionRegistration {
19715
19542
  icon?: BbIconName;
19716
19543
  /** Rendered inside every panel tab this action opens. */
19717
19544
  component: ComponentType<PluginNewThreadPanelProps>;
19718
- /** Host framing; matches `threadPanelAction`. */
19545
+ /** Host framing; matches thread action tabs. */
19719
19546
  layout?: "flush" | "padded";
19720
19547
  /**
19721
19548
  * Runs when the user activates the action. Omitted = immediately open a
@@ -19954,41 +19781,6 @@ interface PluginSidebarThread {
19954
19781
  lastReadAt: number | null;
19955
19782
  latestAttentionAt: number;
19956
19783
  }
19957
- /**
19958
- * The pull request for a thread's branch, narrowed to what a sidebar row
19959
- * needs. `attention` is bb's rolled-up "does this need you" signal, so a row
19960
- * can colour a badge without reading checks, review, and mergeability itself.
19961
- */
19962
- interface PluginSidebarPullRequest {
19963
- /** Whether GitHub auto-merge is enabled. */
19964
- experimental_autoMerge: boolean;
19965
- /** Null when the GitHub merge queue lookup is unavailable. */
19966
- experimental_inMergeQueue: boolean | null;
19967
- experimental_checks: {
19968
- state: "failing" | "no_checks" | "passing" | "pending" | "unknown";
19969
- };
19970
- experimental_review: {
19971
- state: "approved" | "changes_requested" | "none" | "review_requested" | "review_required";
19972
- };
19973
- experimental_mergeability: {
19974
- state: "blocked" | "conflicts" | "draft" | "mergeable" | "unknown";
19975
- };
19976
- number: number;
19977
- title: string;
19978
- url: string;
19979
- state: "closed" | "draft" | "merged" | "open";
19980
- attention: "blocked" | "changes_requested" | "checks_failed" | "checks_pending" | "closed" | "conflicts" | "draft" | "merged" | "none" | "queued" | "ready_to_merge" | "review_requested";
19981
- }
19982
- interface PluginSidebarThreadPullRequestState {
19983
- /** True while the first lookup for this thread's environment is in flight. */
19984
- isLoading: boolean;
19985
- /**
19986
- * The pull request, or null when the branch has none, the thread has no
19987
- * environment, or the lookup could not run (a git-host hiccup). A row should
19988
- * treat null as "nothing to show", never as an error.
19989
- */
19990
- pullRequest: PluginSidebarPullRequest | null;
19991
- }
19992
19784
  /** One project in the sidebar's live view. */
19993
19785
  interface PluginSidebarProject {
19994
19786
  id: string;
@@ -20247,6 +20039,116 @@ interface PluginThreadHeaderActionRegistration {
20247
20039
  title: string;
20248
20040
  component: ComponentType<PluginThreadHeaderActionProps>;
20249
20041
  }
20042
+ /**
20043
+ * Props passed to an `experimental_threadInfoRow` or
20044
+ * `experimental_threadInfoSection` component, rendered in a thread's Info tab.
20045
+ */
20046
+ interface ExperimentalThreadInfoProps {
20047
+ /**
20048
+ * The thread whose Info tab is open. A split layout renders one Info tab per
20049
+ * pane, so the component mounts once per visible thread; keep per-thread
20050
+ * state in the component, never in a module-level singleton.
20051
+ */
20052
+ threadId: string;
20053
+ projectId: string;
20054
+ }
20055
+ /**
20056
+ * A row in the thread Info tab's details block, beside bb's own rows. Render
20057
+ * one or more `experimental_DetailRow` elements, or null to show nothing for
20058
+ * this thread. A crash removes only this row for that thread.
20059
+ */
20060
+ interface ExperimentalThreadInfoRowRegistration {
20061
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20062
+ id: string;
20063
+ /**
20064
+ * Rows sort by `group` (string compare), then by `order` within a group
20065
+ * (unset sorts last), then by registration order, with bb's own rows first
20066
+ * on a tie. bb's groups are
20067
+ * {@link PluginSdkApp.experimental_THREAD_INFO_ROW_GROUPS}; any other
20068
+ * string is a group of its own, placed where it sorts. Groups only order
20069
+ * rows; the details block draws no separator between them.
20070
+ */
20071
+ group: string;
20072
+ order?: number;
20073
+ component: ComponentType<ExperimentalThreadInfoProps>;
20074
+ }
20075
+ /**
20076
+ * A section in the thread Info tab, below the details block. Render one
20077
+ * `experimental_InfoSection`, or null to hide the section for this thread.
20078
+ * The host remembers the section's collapsed state per registration. A crash
20079
+ * removes only this section for that thread.
20080
+ */
20081
+ interface ExperimentalThreadInfoSectionRegistration {
20082
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20083
+ id: string;
20084
+ /**
20085
+ * Sections sort by `group` (string compare), then by `order` within a group
20086
+ * (unset sorts last), then by registration order, with bb's own sections
20087
+ * first on a tie. bb's groups are
20088
+ * {@link PluginSdkApp.experimental_THREAD_INFO_SECTION_GROUPS}; any other
20089
+ * string is a group of its own, placed where it sorts.
20090
+ */
20091
+ group: string;
20092
+ order?: number;
20093
+ component: ComponentType<ExperimentalThreadInfoProps>;
20094
+ }
20095
+ /**
20096
+ * Props of the host-owned `experimental_InfoSection` component — the heading,
20097
+ * count, and collapse control every Info tab section uses.
20098
+ */
20099
+ interface ExperimentalInfoSectionProps {
20100
+ label: string;
20101
+ /** Drawn as a pill after the label; omit for no count. */
20102
+ count?: number;
20103
+ /** Drawn after the label and count while the section is expanded. */
20104
+ accessory?: ReactNode;
20105
+ /** Drawn at the heading's trailing edge while the section is expanded. */
20106
+ trailing?: ReactNode;
20107
+ children: ReactNode;
20108
+ }
20109
+ /**
20110
+ * Props of the host-owned `experimental_DetailRow` component — one label and
20111
+ * value pair in the Info tab's details block.
20112
+ */
20113
+ interface ExperimentalDetailRowProps {
20114
+ label: ReactNode;
20115
+ /** Icon drawn before the label, any name `experimental_Icon` accepts. */
20116
+ icon?: BbIconName;
20117
+ /** Vertical alignment of label and value; defaults to `center`. */
20118
+ align?: "center" | "start";
20119
+ children: ReactNode;
20120
+ }
20121
+ /**
20122
+ * Props of the host-owned `experimental_InfoList` component — the list every
20123
+ * Info tab section uses, collapsed to `limit` rows behind a "N more" toggle.
20124
+ */
20125
+ interface ExperimentalInfoListProps<Item> {
20126
+ items: readonly Item[];
20127
+ getKey(item: Item): string;
20128
+ /** Usually an `experimental_InfoListRow`. */
20129
+ renderItem(item: Item): ReactNode;
20130
+ /** Rows shown before the "N more" toggle; defaults to 5. */
20131
+ limit?: number;
20132
+ }
20133
+ /**
20134
+ * Props of the host-owned `experimental_InfoListRow` component — one row of an
20135
+ * `experimental_InfoList`.
20136
+ */
20137
+ interface ExperimentalInfoListRowProps {
20138
+ /** Drawn in the row's 12px leading column, such as an `experimental_Icon`. */
20139
+ leading: ReactNode;
20140
+ /** Tooltip and accessible name for `leading`; omit when it is decorative. */
20141
+ leadingLabel?: string;
20142
+ name: ReactNode;
20143
+ /** Native tooltip on the name. */
20144
+ title?: string;
20145
+ /** Muted text after the name, truncated from the start. */
20146
+ context?: string;
20147
+ /** Drawn at the row's trailing edge, such as a status. */
20148
+ trailing?: ReactNode;
20149
+ /** Runs when the user activates the row; omit for a static row. */
20150
+ onSelect?: () => void;
20151
+ }
20250
20152
  interface ExperimentalPluginBrowserToolbarActionRegistration {
20251
20153
  /** Unique within the plugin; letters, digits, `-`, `_`. */
20252
20154
  id: string;
@@ -20669,6 +20571,605 @@ interface PluginDiffRendererRegistration {
20669
20571
  description?: string;
20670
20572
  component: ComponentType<PluginDiffRendererProps>;
20671
20573
  }
20574
+ /**
20575
+ * Props passed to an `experimental_composer` component. Deliberately empty:
20576
+ * the component reads everything through `experimental_useComposerRenderer()`
20577
+ * and `useComposer()`.
20578
+ */
20579
+ interface ExperimentalComposerProps {
20580
+ }
20581
+ /**
20582
+ * Draw bb's composer input box: the editor, its @-mention and slash-command
20583
+ * menus, attachments, voice input, the `+` and send menus and the send and
20584
+ * stop controls. It renders everywhere bb shows a composer (a thread's
20585
+ * composer, the New thread screen, queued and sent message editors). The
20586
+ * banners, approval cards and queued messages above the box stay bb's.
20587
+ *
20588
+ * Exclusive, like `experimental_threadList`: a composer from a plugin the
20589
+ * user installed wins over the bundled one, then the first in slot order.
20590
+ * Users choose under Settings → Appearance → Composer (`composer.provider`).
20591
+ * bb ships its own composer as the bundled Composer plugin; with no composer
20592
+ * plugin enabled, no composer is shown.
20593
+ *
20594
+ * The host keeps the draft, uploads, history, pickers and submission; the
20595
+ * component draws over them with `experimental_useComposerRenderer()`.
20596
+ */
20597
+ interface ExperimentalComposerRegistration {
20598
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20599
+ id: string;
20600
+ /** Label shown in the provider choice and capability details. */
20601
+ title: string;
20602
+ /** Optional one-line description shown with the provider choice. */
20603
+ description?: string;
20604
+ component: ComponentType<ExperimentalComposerProps>;
20605
+ }
20606
+ /**
20607
+ * One way the box submits, worked out by the host for this surface and the
20608
+ * user's settings: what it does now, whether it needs a draft, and its key.
20609
+ */
20610
+ interface ExperimentalComposerAction {
20611
+ /**
20612
+ * `"send"` sends the draft, `"queue"` queues it behind the running turn,
20613
+ * `"steer"` adds it to the running turn.
20614
+ */
20615
+ kind: "queue" | "send" | "steer";
20616
+ /**
20617
+ * The action needs a non-empty draft. A steer does not: with an empty
20618
+ * draft it steers the next queued message.
20619
+ */
20620
+ requiresInput: boolean;
20621
+ /** The key that runs it, formatted for display. */
20622
+ shortcut: ExperimentalShortcutPresentation;
20623
+ /**
20624
+ * Run it without the checks `useComposer().submit()` applies: the box has
20625
+ * already decided it may. A failed send shows bb's error toast and restores
20626
+ * the draft.
20627
+ */
20628
+ run(): void;
20629
+ }
20630
+ /** Submit-button state and actions the host computes for a composer. */
20631
+ interface ExperimentalComposerSubmission {
20632
+ isSubmitting?: boolean;
20633
+ disabled?: boolean;
20634
+ disabledReason?: string;
20635
+ label?: string;
20636
+ icon?: BbIconName;
20637
+ title?: string;
20638
+ isRunning?: boolean;
20639
+ onStop?: () => void;
20640
+ /** What Enter (and the send button) does. */
20641
+ enter: ExperimentalComposerAction;
20642
+ /** What modifier+Enter does, or null where the surface has one action. */
20643
+ modifier: ExperimentalComposerAction | null;
20644
+ /** Offer `modifier` in the send button's menu too, not only on its shortcut. */
20645
+ showModifierInMenu: boolean;
20646
+ }
20647
+ /** The characters that open the slash-command and skill menus. */
20648
+ type ExperimentalComposerCommandTrigger = "$" | "/";
20649
+ /** The text typed after an @-mention or command trigger while its menu is open. */
20650
+ interface ExperimentalComposerSearchQuery<Trigger extends string> {
20651
+ text: string;
20652
+ trigger: Trigger;
20653
+ }
20654
+ /** How a suggested thread relates to the thread being composed in. */
20655
+ type ExperimentalComposerThreadRelation = "child" | "parent" | "same-environment" | "same-parent";
20656
+ type MentionTargetOf<Kind extends ExperimentalComposerMentionTarget["kind"]> = Extract<ExperimentalComposerMentionTarget, {
20657
+ kind: Kind;
20658
+ }>;
20659
+ /**
20660
+ * One @-mention result. `mention` is the pill choosing it inserts; `text` is
20661
+ * what the pill stands for after the trigger, such as `src/app.ts` or
20662
+ * `thread:thr_1`. `key` is stable across result updates.
20663
+ */
20664
+ type ExperimentalComposerMentionSuggestion = {
20665
+ key: string;
20666
+ text: string;
20667
+ } & ({
20668
+ kind: "path";
20669
+ mention: MentionTargetOf<"path">;
20670
+ } | {
20671
+ kind: "thread";
20672
+ mention: MentionTargetOf<"thread"> & {
20673
+ projectId: string;
20674
+ };
20675
+ /** The thread's own title; null when it has none and the pill shows its id. */
20676
+ title: string | null;
20677
+ /** The thread's project, when it differs from the composer's. */
20678
+ projectName: string | null;
20679
+ relation: ExperimentalComposerThreadRelation | null;
20680
+ } | {
20681
+ kind: "project";
20682
+ mention: MentionTargetOf<"project">;
20683
+ } | {
20684
+ kind: "section";
20685
+ mention: MentionTargetOf<"section">;
20686
+ } | {
20687
+ kind: "plugin";
20688
+ mention: MentionTargetOf<"plugin">;
20689
+ /** The mention provider's name, such as "Issues". */
20690
+ providerLabel: string;
20691
+ subtitle: string | null;
20692
+ });
20693
+ /** Mention results under one heading, in display order. */
20694
+ interface ExperimentalComposerMentionSuggestionGroup {
20695
+ key: string;
20696
+ label: string;
20697
+ suggestions: readonly ExperimentalComposerMentionSuggestion[];
20698
+ }
20699
+ /** What `experimental_useComposerMentionSearch` returns. */
20700
+ interface ExperimentalComposerMentionSearch {
20701
+ /** `"idle"` without a query. */
20702
+ status: "error" | "idle" | "loading" | "ready";
20703
+ /** Earlier results are showing while newer ones load. */
20704
+ refreshing: boolean;
20705
+ groups: readonly ExperimentalComposerMentionSuggestionGroup[];
20706
+ /**
20707
+ * Set the open mention menu's query, or null when it closes. Call it from
20708
+ * the event that changes the menu, next to the composer's own state update,
20709
+ * so the results arrive in the same render.
20710
+ */
20711
+ search(query: ExperimentalComposerSearchQuery<PluginMentionTrigger> | null): void;
20712
+ }
20713
+ /** One slash-command or skill result. */
20714
+ interface ExperimentalComposerCommandSuggestion {
20715
+ kind: "command";
20716
+ name: string;
20717
+ source: "command" | "skill";
20718
+ origin: "builtin" | "project" | "user";
20719
+ description: string | null;
20720
+ argumentHint: string | null;
20721
+ /** The plugin that contributed the command; absent for the provider's own. */
20722
+ pluginId?: string;
20723
+ }
20724
+ /** Command results under one heading, such as "Skills", in display order. */
20725
+ interface ExperimentalComposerCommandSuggestionGroup {
20726
+ key: string;
20727
+ label: string;
20728
+ suggestions: readonly ExperimentalComposerCommandSuggestion[];
20729
+ }
20730
+ /** What `experimental_useComposerCommandSearch` returns. */
20731
+ interface ExperimentalComposerCommandSearch {
20732
+ /** `"idle"` without a query. */
20733
+ status: "error" | "idle" | "loading" | "ready";
20734
+ /** Earlier results are showing while newer ones load. */
20735
+ refreshing: boolean;
20736
+ /** Ranked for the query, under their headings. */
20737
+ groups: readonly ExperimentalComposerCommandSuggestionGroup[];
20738
+ /**
20739
+ * Set the open command menu's query, or null when it closes. Call it from
20740
+ * the event that changes the menu, next to the composer's own state update,
20741
+ * so the results arrive in the same render.
20742
+ */
20743
+ search(query: ExperimentalComposerSearchQuery<ExperimentalComposerCommandTrigger> | null): void;
20744
+ }
20745
+ /** An attachment upload that has not finished yet. */
20746
+ interface ExperimentalComposerPendingUpload {
20747
+ id: string;
20748
+ file: File;
20749
+ }
20750
+ /** The draft's attachments and bb's upload pipeline for them. */
20751
+ interface ExperimentalComposerAttachments {
20752
+ items?: readonly ComposerAttachment[];
20753
+ pendingUploads?: readonly ExperimentalComposerPendingUpload[];
20754
+ isAttaching?: boolean;
20755
+ error?: string | null;
20756
+ /** Upload files and add them to the draft; resolves with the added attachments. */
20757
+ onAttachFiles?(files: File[]): Promise<readonly ComposerAttachment[]>;
20758
+ onUpdate?(update: (attachments: readonly ComposerAttachment[]) => readonly ComposerAttachment[]): void;
20759
+ projectId?: string;
20760
+ }
20761
+ /** Up-arrow prompt history for the composer. */
20762
+ interface ExperimentalComposerHistory {
20763
+ currentDraft: ComposerDraftSnapshot;
20764
+ entries: readonly ComposerDraftSnapshot[];
20765
+ onSelectEntry(draft: ComposerDraftSnapshot): void;
20766
+ resetKey?: string | number;
20767
+ }
20768
+ type ExperimentalVoiceDelivery = "insert" | "send";
20769
+ /** A voice recording whose transcription failed, kept for retry. */
20770
+ interface ExperimentalFailedVoiceRecording {
20771
+ id: string;
20772
+ key: string;
20773
+ file: File;
20774
+ promptContext: string | undefined;
20775
+ delivery: ExperimentalVoiceDelivery;
20776
+ createdAt: number;
20777
+ errorMessage: string | null;
20778
+ retrying: boolean;
20779
+ }
20780
+ /** bb's voice input for the composer. */
20781
+ interface ExperimentalComposerVoice {
20782
+ state: "error" | "idle" | "recording" | "transcribing";
20783
+ delivery: ExperimentalVoiceDelivery;
20784
+ microphoneWarning: string | null;
20785
+ isSupported: boolean;
20786
+ /** Why voice input is unavailable, as a message safe to show; read it only while `isSupported` is false. */
20787
+ unsupportedMessage: string;
20788
+ stream: MediaStream | null;
20789
+ failedRecordings: readonly ExperimentalFailedVoiceRecording[];
20790
+ start(): void | Promise<void>;
20791
+ stop(): void;
20792
+ send(): void;
20793
+ retry(recording: ExperimentalFailedVoiceRecording): void;
20794
+ discard(recording: ExperimentalFailedVoiceRecording): void;
20795
+ download(recording: ExperimentalFailedVoiceRecording): void;
20796
+ cancel(): void;
20797
+ }
20798
+ /** A host shortcut prompt action in the composer's `+` menu. */
20799
+ interface ExperimentalComposerPromptAction {
20800
+ kind: "goal" | "plan" | "skills";
20801
+ text: string;
20802
+ /** The command the action puts at the start of the draft, if any. */
20803
+ command?: {
20804
+ trigger: ExperimentalComposerCommandTrigger;
20805
+ name: string;
20806
+ trailingText: string;
20807
+ };
20808
+ }
20809
+ /**
20810
+ * Everything the host passes to a composer box for one surface. Read and
20811
+ * write the draft with `useComposer().draft` and `replace`, and submit with
20812
+ * `useComposer().submit()`; inside a composer box they are bound to this box.
20813
+ * The box decides where bb's controls (`executionControls`, `handoff`,
20814
+ * `compactBeforeSend`) go, or whether to show them.
20815
+ */
20816
+ interface ExperimentalComposerInput {
20817
+ id?: string;
20818
+ /**
20819
+ * Where the box sits: a thread's composer (including queued and sent
20820
+ * message editors) or the New thread screen.
20821
+ */
20822
+ surface: "new-thread" | "thread";
20823
+ onEscape?(): void;
20824
+ placeholder?: string;
20825
+ autoFocus?: boolean;
20826
+ /** bb's model, reasoning effort and mode controls for this composer. */
20827
+ executionControls?: ReactNode;
20828
+ /** The "Handoff to new thread" banner, while a handoff is active. */
20829
+ handoff?: ReactNode;
20830
+ /** bb's chip offering to compact the context before sending. */
20831
+ compactBeforeSend?: ReactNode;
20832
+ submission: ExperimentalComposerSubmission;
20833
+ /** The editor's minimum height, from the space the host leaves above the box. */
20834
+ minHeight?: number;
20835
+ /** The most height the whole box may take; the editor scrolls inside it. */
20836
+ maxHeight?: number;
20837
+ /** Characters that open the @-mention menu; search with `experimental_useComposerMentionSearch`. */
20838
+ mentionTriggers: readonly PluginMentionTrigger[];
20839
+ /**
20840
+ * Characters that open the command menu; search with
20841
+ * `experimental_useComposerCommandSearch`. Never repeats a mention trigger:
20842
+ * when a plugin mention provider claims `$`, `$` opens the mention menu.
20843
+ */
20844
+ commandTriggers: readonly ExperimentalComposerCommandTrigger[];
20845
+ /**
20846
+ * What clicking a pill for `mention` does, or null when it is not a link.
20847
+ * An attachment mention opens the draft's attachment at that path, so an
20848
+ * attachment tile can ask with `{ kind: "attachment", path, label }`.
20849
+ */
20850
+ resolveMentionLink(mention: ExperimentalComposerMentionTarget): (() => void) | null;
20851
+ /** Whether menus fit above or below the box where the host placed it. */
20852
+ mentionMenuPlacement: "bottom" | "top";
20853
+ attachments?: ExperimentalComposerAttachments;
20854
+ promptActions?: readonly ExperimentalComposerPromptAction[];
20855
+ /** Collapse the box at the user's request; absent where it cannot collapse. */
20856
+ onCollapse?(): void;
20857
+ /**
20858
+ * When to show the box's one-line compact form, with `placeholder`;
20859
+ * absent, never. `"always"`: the host collapsed the box, on compact
20860
+ * viewports or after `onCollapse`. `"narrow"`: only while the thread pane
20861
+ * is short or its column narrow, which bb signals in CSS so it applies
20862
+ * without a render; style that form under
20863
+ * `@container follow-up-composer style(--follow-up-composer-container-compact: true)`.
20864
+ * Report the form the box shows in `editor.state.layout`.
20865
+ */
20866
+ compact?: {
20867
+ when: "always" | "narrow";
20868
+ placeholder: string;
20869
+ };
20870
+ history?: ExperimentalComposerHistory;
20871
+ voice?: ExperimentalComposerVoice;
20872
+ }
20873
+ /** A composer's scope, layout, draft summary and run state. */
20874
+ interface ExperimentalComposerView {
20875
+ scope: PluginComposerScope;
20876
+ layout: "compact" | "expanded" | "zen";
20877
+ draft: {
20878
+ text: string;
20879
+ isEmpty: boolean;
20880
+ attachmentCount: number;
20881
+ };
20882
+ run: {
20883
+ isRunning: boolean;
20884
+ isSubmitting: boolean;
20885
+ };
20886
+ }
20887
+ /** A contribution another plugin registered with `app.composer.customize`. */
20888
+ interface ExperimentalComposerContribution {
20889
+ /** Stable across renders; use it as the React key. */
20890
+ key: string;
20891
+ pluginId: string;
20892
+ customizationId: string;
20893
+ generation: number;
20894
+ }
20895
+ interface ExperimentalComposerPlusMenuContribution extends ExperimentalComposerContribution {
20896
+ item: ComposerPlusMenuItem;
20897
+ }
20898
+ interface ExperimentalComposerSendMenuContribution extends ExperimentalComposerContribution {
20899
+ item: ComposerSendMenuItem;
20900
+ }
20901
+ interface ExperimentalComposerPopupContribution extends ExperimentalComposerContribution {
20902
+ popup: ExperimentalComposerPopupRegistration;
20903
+ }
20904
+ /**
20905
+ * Highlight rules to paint over the draft: bb's built-in highlights, other
20906
+ * plugins' `richText.effects` and `useComposer().setTextEffect` effects, in
20907
+ * paint order.
20908
+ */
20909
+ interface ExperimentalComposerDecorationSource {
20910
+ id: string;
20911
+ generation: string | number;
20912
+ pluginId?: string;
20913
+ effects: readonly NonNullable<ComposerRichTextSpec["effects"]>[number][];
20914
+ }
20915
+ /** Editor state a composer box reports so other plugins' `useComposer()` sees it. */
20916
+ interface ExperimentalComposerEditorState {
20917
+ layout: "compact" | "expanded";
20918
+ isRunning: boolean;
20919
+ isSubmitting: boolean;
20920
+ isSubmittingBlocked: boolean;
20921
+ submittingBlockedReason: string | null;
20922
+ isAttaching: boolean;
20923
+ attachmentError: string | null;
20924
+ }
20925
+ /**
20926
+ * What only the composer's editor can do, handed to
20927
+ * `experimental_ComposerRoot`: report its state, insert at its caret, take
20928
+ * focus, accept a dropped thread, run other plugins' popups and take voice
20929
+ * input. bb reaches the composer only through this.
20930
+ */
20931
+ interface ExperimentalComposerEditor {
20932
+ state: ExperimentalComposerEditorState;
20933
+ /** Mention ranges are relative to `value.text`. Return false without a caret. */
20934
+ insertAtCursor(value: ComposerDraft, block: boolean): boolean;
20935
+ /** Focus the editor, keeping its selection; false when it cannot take focus. */
20936
+ focus(): boolean;
20937
+ /** Focus the editor with the caret at the end of the draft. */
20938
+ focusEnd(): void;
20939
+ /** Whether a thread dragged from the sidebar can be dropped now. */
20940
+ acceptsThreadDrop(): boolean;
20941
+ /** Insert a dropped thread at the viewport point `x`, `y`. */
20942
+ insertDroppedThread(thread: ExperimentalDroppedThreadMention, x: number, y: number): void;
20943
+ openPopup(pluginId: string, popupId: string): boolean;
20944
+ closePopup(pluginId: string): boolean;
20945
+ isPopupOpen(): boolean;
20946
+ /** How the composer takes bb's voice input; omit when it has none. */
20947
+ voice?: ExperimentalComposerEditorVoice;
20948
+ }
20949
+ /** What a composer does with bb's voice input; recording and transcription stay bb's. */
20950
+ interface ExperimentalComposerEditorVoice {
20951
+ /** The draft before the caret, sent with a recording to help transcription; null when empty. */
20952
+ textBeforeCursor(): string | null;
20953
+ /** Put a finished transcript at the caret; with `"send"`, submit the draft after. */
20954
+ deliverTranscript(text: string, delivery: ExperimentalVoiceDelivery): void;
20955
+ /** Animate leaving voice mode; resolves when the composer is ready for the transcript. */
20956
+ playCompletionTransition(): Promise<void>;
20957
+ }
20958
+ /** Props of `experimental_ComposerRoot`. */
20959
+ interface ExperimentalComposerRootProps {
20960
+ /** The composer's outermost element. */
20961
+ rootRef: RefObject<HTMLElement | null>;
20962
+ editor: ExperimentalComposerEditor;
20963
+ /**
20964
+ * The composer's @-mention and command menu, and whether it is open, so
20965
+ * hosts that make room for it can measure it.
20966
+ */
20967
+ menuRef?: RefObject<HTMLElement | null>;
20968
+ menuOpen?: boolean;
20969
+ }
20970
+ /** The thread a bb thread link names, before it is resolved. */
20971
+ interface ExperimentalComposerThreadLinkTarget {
20972
+ threadId: string;
20973
+ projectId: string;
20974
+ }
20975
+ /** A thread a pasted bb thread link resolved to. */
20976
+ interface ExperimentalComposerThreadLink extends ExperimentalComposerThreadLinkTarget {
20977
+ label: string;
20978
+ }
20979
+ /** The thread an app drag dropped onto the composer. */
20980
+ interface ExperimentalDroppedThreadMention {
20981
+ threadId: string;
20982
+ label: string;
20983
+ }
20984
+ /** A keyboard shortcut formatted for display. */
20985
+ interface ExperimentalShortcutPresentation {
20986
+ ariaKeyshortcuts: string;
20987
+ label: string;
20988
+ }
20989
+ /** A bb message copied to the clipboard, read back on paste. */
20990
+ interface ExperimentalMessageClipboardPayload {
20991
+ text: string;
20992
+ imageUrl: string;
20993
+ }
20994
+ /** bb thread links in the composer, from `experimental_useComposerRenderer().threadLinks`. */
20995
+ interface ExperimentalComposerThreadLinks {
20996
+ /**
20997
+ * The thread `url` links to when it is a thread link of this bb, or null.
20998
+ * `projectId` is the project the link names, or the personal project for
20999
+ * a link without one; a thread outside that project is not this link.
21000
+ */
21001
+ parse(url: string): ExperimentalComposerThreadLinkTarget | null;
21002
+ /** A linked thread from bb's caches, without a request. */
21003
+ cached(threadId: string): ExperimentalComposerThreadLink | null;
21004
+ /**
21005
+ * Fetch linked threads in batches, calling `onBatch` as each batch lands
21006
+ * so a deadline can keep the batches that finished. Threads that do not
21007
+ * exist are left out. Resolves once every batch has settled.
21008
+ */
21009
+ resolve(threadIds: readonly string[], signal: AbortSignal, onBatch: (threads: readonly ExperimentalComposerThreadLink[]) => void): Promise<void>;
21010
+ }
21011
+ /** bb messages copied to the clipboard, from `experimental_useComposerRenderer().clipboard`. */
21012
+ interface ExperimentalComposerClipboard {
21013
+ /** Read a bb message copied as HTML, or null. */
21014
+ readMessage(html: string): ExperimentalMessageClipboardPayload | null;
21015
+ /** Fetch a copied bb message's image as a file; rejects when it is unavailable. */
21016
+ readMessageImage(imageUrl: string, signal: AbortSignal): Promise<File>;
21017
+ }
21018
+ /**
21019
+ * Inputs, host state and host services for one composer box. Only available
21020
+ * inside an `experimental_composer` component; it throws elsewhere.
21021
+ */
21022
+ interface ExperimentalComposerRendererApi {
21023
+ readonly input: ExperimentalComposerInput;
21024
+ /** The composer this box draws: scope, layout, draft and run state. */
21025
+ readonly view: ExperimentalComposerView;
21026
+ /** Stable identity of this composer's draft (`useComposer().key`). */
21027
+ readonly key: string;
21028
+ /** A plugin locked editing through `useComposer().setInputLock(true)`. */
21029
+ readonly inputLocked: boolean;
21030
+ /** The shortcut of bb's "Focus composer" command, or null when unbound. */
21031
+ readonly focusComposerShortcut: ExperimentalShortcutPresentation | null;
21032
+ /**
21033
+ * Every highlight rule to paint over the draft, in paint order. The host
21034
+ * runs other plugins' draft observers itself.
21035
+ */
21036
+ readonly decorationSources: readonly ExperimentalComposerDecorationSource[];
21037
+ readonly threadLinks: ExperimentalComposerThreadLinks;
21038
+ readonly clipboard: ExperimentalComposerClipboard;
21039
+ /**
21040
+ * Run bb's app keyboard command for `event`, if any; returns whether one
21041
+ * ran. Call it from the editor's key handler before handling the key
21042
+ * itself, skipping IME composition: editors swallow keys before bb's
21043
+ * window-level shortcuts see them.
21044
+ */
21045
+ dispatchAppCommandKey(event: KeyboardEvent): boolean;
21046
+ /** Show an error toast. */
21047
+ showError(message: string): void;
21048
+ /**
21049
+ * Image URL for an attachment: the local preview while it is still
21050
+ * uploading, else the uploaded file, resolved through the project when
21051
+ * given. bb releases local previews when attachments leave the draft.
21052
+ */
21053
+ attachmentSrc(path: string, projectId?: string): string;
21054
+ }
21055
+ /**
21056
+ * Other plugins' contributions to this composer, from
21057
+ * `experimental_useComposerContributions()`, with a host renderer for each
21058
+ * kind. Surfaces that hide plugin customizations return no popups, send
21059
+ * menu items or actions.
21060
+ */
21061
+ interface ExperimentalComposerContributions {
21062
+ /** Popups other plugins open with `useComposer().openPopup`; render the open one with `Popup`. */
21063
+ readonly popups: readonly ExperimentalComposerPopupContribution[];
21064
+ /** Render each with `MenuEntry` and `kind: "plus"`. */
21065
+ readonly plusMenuItems: readonly ExperimentalComposerPlusMenuContribution[];
21066
+ /** Render each with `MenuEntry` and `kind: "send"`. */
21067
+ readonly sendMenuItems: readonly ExperimentalComposerSendMenuContribution[];
21068
+ /** Other plugins' inline actions, for the composer's action row. */
21069
+ readonly Actions: ComponentType;
21070
+ readonly Popup: ComponentType<ExperimentalComposerPopupProps>;
21071
+ readonly MenuEntry: ComponentType<ExperimentalComposerMenuEntryProps>;
21072
+ }
21073
+ /** Props of `ExperimentalComposerContributions.Popup`. */
21074
+ interface ExperimentalComposerPopupProps {
21075
+ contribution: ExperimentalComposerPopupContribution;
21076
+ onClose(): void;
21077
+ }
21078
+ /** What a selected `+` or send menu entry hands back to the menu. */
21079
+ interface ExperimentalComposerMenuSelection {
21080
+ restoreComposerFocus(): void;
21081
+ selectedElement: Element | null;
21082
+ }
21083
+ /** Props of `ExperimentalComposerContributions.MenuEntry`. */
21084
+ type ExperimentalComposerMenuEntryProps = {
21085
+ kind: "plus";
21086
+ contribution: ExperimentalComposerPlusMenuContribution;
21087
+ onSelected?(selection: ExperimentalComposerMenuSelection): void;
21088
+ } | {
21089
+ kind: "send";
21090
+ contribution: ExperimentalComposerSendMenuContribution;
21091
+ onSelected?(selection: ExperimentalComposerMenuSelection): void;
21092
+ };
21093
+ /** Props of `experimental_VoiceInputButton`: bb's button with a microphone warning tooltip. */
21094
+ interface ExperimentalVoiceInputButtonProps extends ComponentPropsWithRef<"button"> {
21095
+ warning: string | null;
21096
+ variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
21097
+ size?: "default" | "icon" | "lg" | "sm";
21098
+ "data-promptbox-expanded-only"?: string;
21099
+ "data-promptbox-submit-action"?: string;
21100
+ }
21101
+ /** Props of `experimental_VoiceRecordingBar`. */
21102
+ interface ExperimentalVoiceRecordingBarProps {
21103
+ isCompact: boolean;
21104
+ state: "recording" | "transcribing";
21105
+ delivery: ExperimentalVoiceDelivery;
21106
+ stream: MediaStream | null;
21107
+ microphoneWarning: string | null;
21108
+ submitIcon: BbIconName;
21109
+ onConfirm(): void;
21110
+ onSend(): void;
21111
+ onCancel(): void;
21112
+ }
21113
+ /** Props of `experimental_FailedVoiceRecordings`. */
21114
+ interface ExperimentalFailedVoiceRecordingsProps {
21115
+ recordings: readonly ExperimentalFailedVoiceRecording[];
21116
+ className: string;
21117
+ retryDisabled: boolean;
21118
+ onRetry(recording: ExperimentalFailedVoiceRecording): void;
21119
+ onDownload(recording: ExperimentalFailedVoiceRecording): void;
21120
+ onDiscard(recording: ExperimentalFailedVoiceRecording): void;
21121
+ }
21122
+ /** Props of `experimental_ShortcutHint`. */
21123
+ interface ExperimentalShortcutHintProps {
21124
+ shortcut: ExperimentalShortcutPresentation | null;
21125
+ className?: string;
21126
+ }
21127
+ /** Props of `experimental_ImageLightbox`. */
21128
+ interface ExperimentalImageLightboxProps {
21129
+ hasMultipleImages?: boolean;
21130
+ previousDisabled?: boolean;
21131
+ nextDisabled?: boolean;
21132
+ navigationStatus?: string;
21133
+ mediaType?: "image" | "video";
21134
+ imageAlt: string;
21135
+ imageSrc: string | null;
21136
+ isOpen?: boolean;
21137
+ onClose(): void;
21138
+ onNext?(): void;
21139
+ onPrevious?(): void;
21140
+ title: string;
21141
+ }
21142
+ /** How bb draws an @-mention pill, from `experimental_describePromptMention`. */
21143
+ interface ExperimentalPromptMentionPresentation {
21144
+ /** bb's pill classes; add your own after them. */
21145
+ className: string;
21146
+ /** The pill's tooltip, such as `src/app.ts` or `/review <files>`. */
21147
+ title: string;
21148
+ /** The pill as text, naming its kind: `Thread: Fix login`. */
21149
+ text: string;
21150
+ }
21151
+ /** A pill read back from pasted HTML by `experimental_readPromptMentionClipboard`. */
21152
+ interface ExperimentalPromptMentionClipboardPill {
21153
+ mention: ExperimentalComposerMentionTarget;
21154
+ /** The draft text the pill covers, such as `@src/app.ts`. */
21155
+ text: string;
21156
+ }
21157
+ /** Props of `experimental_PromptMentionIcon`. */
21158
+ interface ExperimentalPromptMentionIconProps {
21159
+ mention: ExperimentalComposerMentionTarget;
21160
+ className?: string;
21161
+ }
21162
+ /** Props of `experimental_PluginIcon`: a plugin's branding icon. */
21163
+ interface ExperimentalPluginIconProps {
21164
+ pluginId: string;
21165
+ icon: string | null;
21166
+ className?: string;
21167
+ }
21168
+ /** Props of `experimental_ThreadTitleText`: a raw thread title with its @-mentions resolved. */
21169
+ interface ExperimentalThreadTitleTextProps {
21170
+ title: string;
21171
+ className?: string;
21172
+ }
20672
21173
  /**
20673
21174
  * Register a leaf message directive rendered inside assistant (and nested
20674
21175
  * agent) message Markdown. `id` is the directive name: `inline-vis` matches
@@ -20732,7 +21233,7 @@ interface ThreadChatMessageReference {
20732
21233
  * {@link PluginPanelActionOpenOptions} instead.
20733
21234
  */
20734
21235
  interface PluginTargetedPanelActionOpenOptions extends PluginPanelActionOpenOptions {
20735
- /** A `threadPanelAction` id registered by this same plugin. */
21236
+ /** A thread action tab id registered by this same plugin. */
20736
21237
  actionId: string;
20737
21238
  }
20738
21239
  /** Context handed to a `messageAction`'s `run`. */
@@ -20746,12 +21247,12 @@ interface PluginMessageActionContext {
20746
21247
  */
20747
21248
  selectedText?: string;
20748
21249
  /**
20749
- * Open one of this plugin's `threadPanelAction` components in the current
21250
+ * Open one of this plugin's thread action tab components in the current
20750
21251
  * thread's side panel — the registration-callback equivalent of
20751
21252
  * `useBbNavigate().openThreadPanel`.
20752
21253
  *
20753
21254
  * Returns true when the host accepted the open; false when it declined —
20754
- * `params` was not a JSON value, the action id names no `threadPanelAction`
21255
+ * `params` was not a JSON value, the action id names no thread action tab
20755
21256
  * of this plugin, or the surface has no side panel (only the main thread
20756
21257
  * view does; a `ThreadChat` embedded in a plugin panel does not). A decline
20757
21258
  * is never thrown: the host logs it and reports it here.
@@ -20791,7 +21292,7 @@ interface PluginCommandContext {
20791
21292
  projectId: string | null;
20792
21293
  /**
20793
21294
  * Open one of this plugin's panel components in the focused side panel.
20794
- * In a thread, `actionId` resolves against `threadPanelAction`; on the New
21295
+ * In a thread, `actionId` resolves against thread action tabs; on the New
20795
21296
  * thread screen, it resolves against `experimental_newThreadPanelAction`.
20796
21297
  * Register both slots with the same id to support commands on both screens.
20797
21298
  *
@@ -21067,16 +21568,9 @@ interface PluginAppSlots {
21067
21568
  */
21068
21569
  experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
21069
21570
  navPanel(registration: PluginNavPanelRegistration): void;
21070
- /**
21071
- * Add an action to an existing thread's panel launcher. This slot is
21072
- * thread-only; use `experimental_newThreadPanelAction` for root compose.
21073
- */
21074
- threadPanelAction(registration: PluginThreadPanelActionRegistration): void;
21075
- /**
21076
- * Add an action to the root New thread screen's panel launcher (see
21077
- * {@link PluginNewThreadPanelActionRegistration}). Experimental: see
21078
- * docs/api_to_audit.md.
21079
- */
21571
+ /** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
21572
+ experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
21573
+ experimental_tab(registration: ExperimentalTabRegistration): void;
21080
21574
  experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
21081
21575
  pendingInteraction(registration: PluginPendingInteractionRegistration): void;
21082
21576
  sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
@@ -21098,6 +21592,18 @@ interface PluginAppSlots {
21098
21592
  * docs/api_to_audit.md.
21099
21593
  */
21100
21594
  experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
21595
+ /**
21596
+ * Add a row to the thread Info tab's details block (see
21597
+ * {@link ExperimentalThreadInfoRowRegistration}). Experimental: see
21598
+ * docs/api_to_audit.md.
21599
+ */
21600
+ experimental_threadInfoRow(registration: ExperimentalThreadInfoRowRegistration): void;
21601
+ /**
21602
+ * Add a section to the thread Info tab (see
21603
+ * {@link ExperimentalThreadInfoSectionRegistration}). Experimental: see
21604
+ * docs/api_to_audit.md.
21605
+ */
21606
+ experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
21101
21607
  /**
21102
21608
  * Add an action to every thread actions menu (see
21103
21609
  * {@link PluginThreadActionRegistration}). Experimental: see
@@ -21119,6 +21625,12 @@ interface PluginAppSlots {
21119
21625
  * docs/api_to_audit.md.
21120
21626
  */
21121
21627
  experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
21628
+ /**
21629
+ * Replace the input box of bb's thread composer (see
21630
+ * {@link ExperimentalComposerRegistration}). Experimental: see
21631
+ * docs/api_to_audit.md.
21632
+ */
21633
+ experimental_composer(registration: ExperimentalComposerRegistration): void;
21122
21634
  messageDirective(registration: PluginMessageDirectiveRegistration): void;
21123
21635
  /**
21124
21636
  * Render fenced code blocks of chosen languages in assistant messages (see
@@ -21479,6 +21991,8 @@ type ComposerMention = {
21479
21991
  * of the calling plugin's own mentions (`{ provider, id, label }`, no `kind`).
21480
21992
  */
21481
21993
  type ComposerInsertPart = string | ComposerMention | PluginComposerMention;
21994
+ /** What an @-mention pill points at: a {@link ComposerMention} without its place in the text. */
21995
+ type ExperimentalComposerMentionTarget = ComposerMention extends infer M ? M extends ComposerMention ? Omit<M, "from" | "to"> : never : never;
21482
21996
  /** Where `insert` puts its content. */
21483
21997
  interface ComposerInsertOptions {
21484
21998
  /**
@@ -22176,9 +22690,59 @@ type ExperimentalOpenFixedTabOptions<Target extends JsonValue$1> = {
22176
22690
  tab: ExperimentalPluginFixedTabReference<Target>;
22177
22691
  /** Omit to select the tab without replacing its current session target. */
22178
22692
  target?: NoInfer<Target>;
22693
+ } | {
22694
+ surface: ExperimentalAppPanelSurface;
22695
+ tab: {
22696
+ id: string;
22697
+ panelId?: never;
22698
+ experimental_target?: never;
22699
+ };
22700
+ target?: never;
22701
+ };
22702
+ /** A navigation-page fixed tab with an owner-validated target. */
22703
+ type ExperimentalTabTargetReference<Target extends JsonValue$1> = ExperimentalTabReference & {
22704
+ context: {
22705
+ kind: "nav-panel";
22706
+ panelId: string;
22707
+ };
22708
+ availability: "fixed";
22709
+ experimental_target: ExperimentalFixedTabTargetContract<Target>;
22179
22710
  };
22711
+ /** Open a registered tab on the current surface. Action inputs persist; fixed targets are session-only. */
22712
+ type ExperimentalTabOpenOptions = {
22713
+ surface: ExperimentalAppPanelSurface;
22714
+ } & ({
22715
+ tab: ExperimentalTabReference & {
22716
+ availability: "action";
22717
+ };
22718
+ params?: JsonValue$1;
22719
+ title?: string;
22720
+ target?: never;
22721
+ } | {
22722
+ tab: ExperimentalTabReference & {
22723
+ context: {
22724
+ kind: "thread";
22725
+ };
22726
+ availability: "fixed";
22727
+ };
22728
+ target?: never;
22729
+ params?: never;
22730
+ title?: never;
22731
+ } | {
22732
+ tab: ExperimentalTabReference & {
22733
+ context: {
22734
+ kind: "nav-panel";
22735
+ panelId: string;
22736
+ };
22737
+ availability: "fixed";
22738
+ };
22739
+ target?: JsonValue$1;
22740
+ params?: never;
22741
+ title?: never;
22742
+ });
22180
22743
  /** Surface-aware controller for selecting owner-scoped fixed tabs. */
22181
22744
  interface ExperimentalAppPanel {
22745
+ experimental_openTab(options: ExperimentalTabOpenOptions): boolean;
22182
22746
  openFixedTab<Target extends JsonValue$1 = never>(options: ExperimentalOpenFixedTabOptions<Target>): boolean;
22183
22747
  }
22184
22748
  /** Current app selection, derived from the route. */
@@ -22231,7 +22795,7 @@ interface BbNavigate {
22231
22795
  }): void;
22232
22796
  /**
22233
22797
  * Open one of this plugin's registered panel actions in the current
22234
- * surface's side panel: a `threadPanelAction` in a thread, or an
22798
+ * surface's side panel: a thread action tab in a thread, or an
22235
22799
  * `experimental_newThreadPanelAction` on the New thread screen. Plugin
22236
22800
  * commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
22237
22801
  * panel actions (plugin pages) or the action is unavailable.
@@ -22393,7 +22957,7 @@ interface PluginSdkApp {
22393
22957
  /** Select one of this plugin's eligible fixed tabs on the current surface. */
22394
22958
  experimental_useAppPanel(): ExperimentalAppPanel;
22395
22959
  /** Read or clear the owning tab's validated, session-scoped target. */
22396
- experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
22960
+ experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
22397
22961
  useComposer(): PluginComposerApi;
22398
22962
  /**
22399
22963
  * Every composer on screen that plugin composer customizations mount in,
@@ -22478,17 +23042,30 @@ interface PluginSdkApp {
22478
23042
  readonly lifecycle: "4_lifecycle";
22479
23043
  };
22480
23044
  /**
22481
- * The pull request for one thread's branch (see
22482
- * {@link PluginSidebarThreadPullRequestState}).
22483
- *
22484
- * Per row and opt-in, because it costs a git-host lookup: it is NOT on the
22485
- * thread payload every sidebar loads. Threads sharing an environment share
22486
- * one query, and the host owns the polling and staleness rules — an open PR
22487
- * with pending checks refreshes, a merged one does not.
22488
- *
23045
+ * bb's thread Info row groups, for an `experimental_threadInfoRow` that
23046
+ * joins one: `thread` (Parent, Notify parent, Project), `environment`
23047
+ * (Environment, Machine, provisioning failure, Directory), `git` (Branch,
23048
+ * Merge base, Git status), `pullRequest`, and `lifecycle` (Archived).
22489
23049
  * Experimental: see docs/api_to_audit.md.
22490
23050
  */
22491
- experimental_useSidebarThreadPullRequest(threadId: string): PluginSidebarThreadPullRequestState;
23051
+ experimental_THREAD_INFO_ROW_GROUPS: {
23052
+ readonly thread: "1_thread";
23053
+ readonly environment: "2_environment";
23054
+ readonly git: "3_git";
23055
+ readonly pullRequest: "4_pullRequest";
23056
+ readonly lifecycle: "5_lifecycle";
23057
+ };
23058
+ /**
23059
+ * bb's thread Info section groups, for an `experimental_threadInfoSection`
23060
+ * that joins one: `related` (Child threads, Forks), `changes` (Commits,
23061
+ * Uncommitted files), and `storage` (Thread storage). Experimental: see
23062
+ * docs/api_to_audit.md.
23063
+ */
23064
+ experimental_THREAD_INFO_SECTION_GROUPS: {
23065
+ readonly related: "1_related";
23066
+ readonly changes: "2_changes";
23067
+ readonly storage: "3_storage";
23068
+ };
22492
23069
  /**
22493
23070
  * Per-row drag-to-split support (see {@link PluginSidebarThreadSplit}).
22494
23071
  * Call it once per rendered row, like the built-in sidebar does.
@@ -22713,6 +23290,98 @@ interface PluginSdkApp {
22713
23290
  * docs/api_to_audit.md.
22714
23291
  */
22715
23292
  experimental_Diff: ComponentType<DiffProps>;
23293
+ /**
23294
+ * The thread Info tab's section frame (see
23295
+ * {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
23296
+ * Inside an `experimental_threadInfoSection` it collapses, and the host
23297
+ * remembers that per registration. Experimental: see docs/api_to_audit.md.
23298
+ */
23299
+ experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
23300
+ /**
23301
+ * The thread Info tab's label and value row (see
23302
+ * {@link ExperimentalDetailRowProps}), the one bb's own rows use.
23303
+ * Experimental: see docs/api_to_audit.md.
23304
+ */
23305
+ experimental_DetailRow: ComponentType<ExperimentalDetailRowProps>;
23306
+ /**
23307
+ * The thread Info tab's list (see {@link ExperimentalInfoListProps}), the
23308
+ * one bb's own sections use. Experimental: see docs/api_to_audit.md.
23309
+ */
23310
+ experimental_InfoList<Item>(props: ExperimentalInfoListProps<Item>): ReactNode;
23311
+ /**
23312
+ * One row of `experimental_InfoList` (see
23313
+ * {@link ExperimentalInfoListRowProps}), the row bb's own sections use.
23314
+ * Experimental: see docs/api_to_audit.md.
23315
+ */
23316
+ experimental_InfoListRow: ComponentType<ExperimentalInfoListRowProps>;
23317
+ /**
23318
+ * Host-owned inputs and actions for an `experimental_composer` replacement
23319
+ * (see {@link ExperimentalComposerRendererApi}). Throws outside an
23320
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23321
+ */
23322
+ experimental_useComposerRenderer(): ExperimentalComposerRendererApi;
23323
+ /**
23324
+ * A raw thread title with its @-mentions replaced by the threads' current
23325
+ * titles. Experimental: see docs/api_to_audit.md.
23326
+ */
23327
+ experimental_useThreadTitleDisplayText(title: string): string;
23328
+ /**
23329
+ * Other plugins' popups, `+` and send menu items and inline actions for
23330
+ * this composer, with their host renderers. Throws outside an
23331
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23332
+ */
23333
+ experimental_useComposerContributions(): ExperimentalComposerContributions;
23334
+ /**
23335
+ * Search bb's @-mention sources for this composer: files, threads,
23336
+ * projects, sections and plugin mention providers. Report the open menu's
23337
+ * query with `search()`; the results are for the last query reported, and a
23338
+ * composer has one mention search. Throws outside an
23339
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23340
+ */
23341
+ experimental_useComposerMentionSearch(): ExperimentalComposerMentionSearch;
23342
+ /**
23343
+ * Search the slash commands and skills for this composer's provider.
23344
+ * Report the open menu's query with `search()`; the results are for the
23345
+ * last query reported, and a composer has one command search. Throws
23346
+ * outside an `experimental_composer` component. Experimental: see
23347
+ * docs/api_to_audit.md.
23348
+ */
23349
+ experimental_useComposerCommandSearch(): ExperimentalComposerCommandSearch;
23350
+ /**
23351
+ * Connect a composer to bb: render it inside the composer's root element.
23352
+ * It publishes `editor` to other plugins' `useComposer()`, routes bb's and
23353
+ * other plugins' composer commands to keys inside `rootRef`, and makes the
23354
+ * root the target of pane focus and thread drops. Renders no DOM.
23355
+ * Experimental: see docs/api_to_audit.md.
23356
+ */
23357
+ experimental_ComposerRoot: ComponentType<ExperimentalComposerRootProps>;
23358
+ /** Composer host components; see docs/api_to_audit.md. */
23359
+ experimental_VoiceInputButton: ComponentType<ExperimentalVoiceInputButtonProps>;
23360
+ experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
23361
+ experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
23362
+ experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
23363
+ experimental_ImageLightbox: ComponentType<ExperimentalImageLightboxProps>;
23364
+ experimental_PromptMentionIcon: ComponentType<ExperimentalPromptMentionIconProps>;
23365
+ /**
23366
+ * The classes, tooltip and text bb gives a pill for `mention`, so pills look
23367
+ * the same in a composer and in bb's messages. Experimental: see
23368
+ * docs/api_to_audit.md.
23369
+ */
23370
+ experimental_describePromptMention(mention: ExperimentalComposerMentionTarget): ExperimentalPromptMentionPresentation;
23371
+ /**
23372
+ * Attributes to spread onto a pill element so that copying it and pasting
23373
+ * into any bb composer recreates the pill; `text` is the draft text the pill
23374
+ * covers. Experimental: see docs/api_to_audit.md.
23375
+ */
23376
+ experimental_promptMentionClipboardAttributes(mention: ExperimentalComposerMentionTarget, text: string): Readonly<Record<string, string>>;
23377
+ /**
23378
+ * The pill a pasted element stands for, when it was copied from a bb
23379
+ * composer or message; null for any other element. Experimental: see
23380
+ * docs/api_to_audit.md.
23381
+ */
23382
+ experimental_readPromptMentionClipboard(element: Element): ExperimentalPromptMentionClipboardPill | null;
23383
+ experimental_PluginIcon: ComponentType<ExperimentalPluginIconProps>;
23384
+ experimental_ThreadTitleText: ComponentType<ExperimentalThreadTitleTextProps>;
22716
23385
  }
22717
23386
 
22718
23387
  declare const experimental_THREAD_ACTION_GROUPS: {
@@ -22723,6 +23392,19 @@ declare const experimental_THREAD_ACTION_GROUPS: {
22723
23392
  readonly lifecycle: "4_lifecycle";
22724
23393
  };
22725
23394
 
23395
+ declare const experimental_THREAD_INFO_ROW_GROUPS: {
23396
+ readonly thread: "1_thread";
23397
+ readonly environment: "2_environment";
23398
+ readonly git: "3_git";
23399
+ readonly pullRequest: "4_pullRequest";
23400
+ readonly lifecycle: "5_lifecycle";
23401
+ };
23402
+ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
23403
+ readonly related: "1_related";
23404
+ readonly changes: "2_changes";
23405
+ readonly storage: "3_storage";
23406
+ };
23407
+
22726
23408
  declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
22727
23409
  declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
22728
23410
  declare const definePluginApp: PluginSdkApp["definePluginApp"];
@@ -22739,6 +23421,10 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
22739
23421
  declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
22740
23422
  declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
22741
23423
  declare const experimental_Diff: react.ComponentType<DiffProps>;
23424
+ declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
23425
+ declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
23426
+ declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
23427
+ declare const experimental_InfoListRow: react.ComponentType<ExperimentalInfoListRowProps>;
22742
23428
  declare const experimental_useRpcQuery: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>) => ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
22743
23429
  declare const experimental_useRpcKeyedQuery: <Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
22744
23430
  contract: Contract;
@@ -22762,9 +23448,26 @@ declare const experimental_usePluginId: () => string;
22762
23448
  declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHost;
22763
23449
  declare const useBbNavigate: () => BbNavigate;
22764
23450
  declare const experimental_useAppPanel: () => ExperimentalAppPanel;
22765
- declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
23451
+ declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
22766
23452
  declare const useComposer: () => PluginComposerApi;
22767
23453
  declare const useComposers: () => readonly PluginComposerApi[];
23454
+ declare const experimental_useComposerRenderer: () => ExperimentalComposerRendererApi;
23455
+ declare const experimental_useThreadTitleDisplayText: (title: string) => string;
23456
+ declare const experimental_useComposerContributions: () => ExperimentalComposerContributions;
23457
+ declare const experimental_useComposerMentionSearch: () => ExperimentalComposerMentionSearch;
23458
+ declare const experimental_useComposerCommandSearch: () => ExperimentalComposerCommandSearch;
23459
+ declare const experimental_ComposerRoot: react.ComponentType<ExperimentalComposerRootProps>;
23460
+ declare const experimental_VoiceInputButton: react.ComponentType<ExperimentalVoiceInputButtonProps>;
23461
+ declare const experimental_VoiceRecordingBar: react.ComponentType<ExperimentalVoiceRecordingBarProps>;
23462
+ declare const experimental_FailedVoiceRecordings: react.ComponentType<ExperimentalFailedVoiceRecordingsProps>;
23463
+ declare const experimental_ShortcutHint: react.ComponentType<ExperimentalShortcutHintProps>;
23464
+ declare const experimental_ImageLightbox: react.ComponentType<ExperimentalImageLightboxProps>;
23465
+ declare const experimental_PromptMentionIcon: react.ComponentType<ExperimentalPromptMentionIconProps>;
23466
+ declare const experimental_describePromptMention: (mention: ExperimentalComposerMentionTarget) => ExperimentalPromptMentionPresentation;
23467
+ declare const experimental_promptMentionClipboardAttributes: (mention: ExperimentalComposerMentionTarget, text: string) => Readonly<Record<string, string>>;
23468
+ declare const experimental_readPromptMentionClipboard: (element: Element) => ExperimentalPromptMentionClipboardPill | null;
23469
+ declare const experimental_PluginIcon: react.ComponentType<ExperimentalPluginIconProps>;
23470
+ declare const experimental_ThreadTitleText: react.ComponentType<ExperimentalThreadTitleTextProps>;
22768
23471
  declare const experimental_useSidebarThreads: (options?: {
22769
23472
  experimental_lifecycles: readonly ("active" | "archived")[];
22770
23473
  }) => PluginSidebarThreadsState;
@@ -22774,7 +23477,6 @@ declare const experimental_useThreadActionRegistrations: () => readonly PluginTh
22774
23477
  declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
22775
23478
  declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
22776
23479
 
22777
- declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
22778
23480
  declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
22779
23481
  declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
22780
23482
  declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
@@ -22794,5 +23496,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
22794
23496
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
22795
23497
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
22796
23498
 
22797
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginRpcCallError, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
22798
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalVoiceInputTextareaProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
23499
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
23500
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, 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, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, 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, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };