@get-bb/plugin-sdk 0.6.68 → 0.6.75

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,183 @@ 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
+ * The thread's environment, or null when the thread has no environment,
20056
+ * its host is not active, or the environment is not a usable checkout.
20057
+ */
20058
+ environment: ExperimentalThreadEnvironment | null;
20059
+ }
20060
+ /** An environment a thread surface hands to plugin components. */
20061
+ interface ExperimentalThreadEnvironment {
20062
+ id: string;
20063
+ }
20064
+ /**
20065
+ * A visible thread context segment. `key` is `<pluginId>/<id>`, where bb's own
20066
+ * segments use `bb--core`, as thread action keys do.
20067
+ */
20068
+ interface ExperimentalThreadContextSegmentReference {
20069
+ key: string;
20070
+ pluginId: string;
20071
+ }
20072
+ /** What a thread context segment knows about its thread. */
20073
+ interface ExperimentalThreadContextSegmentInput {
20074
+ threadId: string;
20075
+ projectId: string;
20076
+ /**
20077
+ * The thread's environment, or null when the thread has no environment,
20078
+ * its host is not active, the environment is not a usable checkout, or the
20079
+ * user turned off "Show Git changes and Commit button".
20080
+ */
20081
+ environment: ExperimentalThreadEnvironment | null;
20082
+ }
20083
+ /** Props of a thread context segment's `summary`, `action` and `details`. */
20084
+ interface ExperimentalThreadContextSegmentProps extends ExperimentalThreadContextSegmentInput {
20085
+ /** The visible segments in row order, this one included. */
20086
+ segments: readonly ExperimentalThreadContextSegmentReference[];
20087
+ /** One segment of a thread's context row is expanded at a time. */
20088
+ isExpanded: boolean;
20089
+ onToggle(): void;
20090
+ }
20091
+ /**
20092
+ * A segment of the context row above an existing thread's composer. bb's
20093
+ * parent thread and changed files register through this slot too. The host
20094
+ * mounts each component in its own crash boundary.
20095
+ */
20096
+ interface ExperimentalThreadContextSegmentRegistration {
20097
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20098
+ id: string;
20099
+ /** Accessible name of the group the host wraps around `summary`. */
20100
+ title: string;
20101
+ /**
20102
+ * Segments sort by `group` (string compare), then by `order` within a group
20103
+ * (unset sorts last), then by registration order, with bb's own first on a
20104
+ * tie. bb's groups are
20105
+ * {@link PluginSdkApp.experimental_THREAD_CONTEXT_SEGMENT_GROUPS}; any other
20106
+ * string is a group of its own, placed where it sorts.
20107
+ */
20108
+ group: string;
20109
+ order?: number;
20110
+ /** Renders in the context row. */
20111
+ summary: ComponentType<ExperimentalThreadContextSegmentProps>;
20112
+ /** Renders at the row's end, after every segment's summary. */
20113
+ action?: ComponentType<ExperimentalThreadContextSegmentProps>;
20114
+ /** Renders below the row; show content only while `isExpanded`. */
20115
+ details?: ComponentType<ExperimentalThreadContextSegmentProps>;
20116
+ /**
20117
+ * Runs in plugin scope for each thread; false hides the segment and leaves
20118
+ * it out of `segments`. Omit to always show.
20119
+ */
20120
+ useVisible?(input: ExperimentalThreadContextSegmentInput): boolean;
20121
+ }
20122
+ /**
20123
+ * A row in the thread Info tab's details block, beside bb's own rows. Render
20124
+ * one or more `experimental_DetailRow` elements, or null to show nothing for
20125
+ * this thread. A crash removes only this row for that thread.
20126
+ */
20127
+ interface ExperimentalThreadInfoRowRegistration {
20128
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20129
+ id: string;
20130
+ /**
20131
+ * Rows sort by `group` (string compare), then by `order` within a group
20132
+ * (unset sorts last), then by registration order, with bb's own rows first
20133
+ * on a tie. bb's groups are
20134
+ * {@link PluginSdkApp.experimental_THREAD_INFO_ROW_GROUPS}; any other
20135
+ * string is a group of its own, placed where it sorts. Groups only order
20136
+ * rows; the details block draws no separator between them.
20137
+ */
20138
+ group: string;
20139
+ order?: number;
20140
+ component: ComponentType<ExperimentalThreadInfoProps>;
20141
+ }
20142
+ /**
20143
+ * A section in the thread Info tab, below the details block. Render one
20144
+ * `experimental_InfoSection`, or null to hide the section for this thread.
20145
+ * The host remembers the section's collapsed state per registration. A crash
20146
+ * removes only this section for that thread.
20147
+ */
20148
+ interface ExperimentalThreadInfoSectionRegistration {
20149
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20150
+ id: string;
20151
+ /**
20152
+ * Sections sort by `group` (string compare), then by `order` within a group
20153
+ * (unset sorts last), then by registration order, with bb's own sections
20154
+ * first on a tie. bb's groups are
20155
+ * {@link PluginSdkApp.experimental_THREAD_INFO_SECTION_GROUPS}; any other
20156
+ * string is a group of its own, placed where it sorts.
20157
+ */
20158
+ group: string;
20159
+ order?: number;
20160
+ component: ComponentType<ExperimentalThreadInfoProps>;
20161
+ }
20162
+ /**
20163
+ * Props of the host-owned `experimental_InfoSection` component — the heading,
20164
+ * count, and collapse control every Info tab section uses.
20165
+ */
20166
+ interface ExperimentalInfoSectionProps {
20167
+ label: string;
20168
+ /** Drawn as a pill after the label; omit for no count. */
20169
+ count?: number;
20170
+ /** Drawn after the label and count while the section is expanded. */
20171
+ accessory?: ReactNode;
20172
+ /** Drawn at the heading's trailing edge while the section is expanded. */
20173
+ trailing?: ReactNode;
20174
+ children: ReactNode;
20175
+ }
20176
+ /**
20177
+ * Props of the host-owned `experimental_DetailRow` component — one label and
20178
+ * value pair in the Info tab's details block.
20179
+ */
20180
+ interface ExperimentalDetailRowProps {
20181
+ label: ReactNode;
20182
+ /** Icon drawn before the label, any name `experimental_Icon` accepts. */
20183
+ icon?: BbIconName;
20184
+ /** Vertical alignment of label and value; defaults to `center`. */
20185
+ align?: "center" | "start";
20186
+ children: ReactNode;
20187
+ }
20188
+ /**
20189
+ * Props of the host-owned `experimental_InfoList` component — the list every
20190
+ * Info tab section uses, collapsed to `limit` rows behind a "N more" toggle.
20191
+ */
20192
+ interface ExperimentalInfoListProps<Item> {
20193
+ items: readonly Item[];
20194
+ getKey(item: Item): string;
20195
+ /** Usually an `experimental_InfoListRow`. */
20196
+ renderItem(item: Item): ReactNode;
20197
+ /** Rows shown before the "N more" toggle; defaults to 5. */
20198
+ limit?: number;
20199
+ }
20200
+ /**
20201
+ * Props of the host-owned `experimental_InfoListRow` component — one row of an
20202
+ * `experimental_InfoList`.
20203
+ */
20204
+ interface ExperimentalInfoListRowProps {
20205
+ /** Drawn in the row's 12px leading column, such as an `experimental_Icon`. */
20206
+ leading: ReactNode;
20207
+ /** Tooltip and accessible name for `leading`; omit when it is decorative. */
20208
+ leadingLabel?: string;
20209
+ name: ReactNode;
20210
+ /** Native tooltip on the name. */
20211
+ title?: string;
20212
+ /** Muted text after the name, truncated from the start. */
20213
+ context?: string;
20214
+ /** Drawn at the row's trailing edge, such as a status. */
20215
+ trailing?: ReactNode;
20216
+ /** Runs when the user activates the row; omit for a static row. */
20217
+ onSelect?: () => void;
20218
+ }
20250
20219
  interface ExperimentalPluginBrowserToolbarActionRegistration {
20251
20220
  /** Unique within the plugin; letters, digits, `-`, `_`. */
20252
20221
  id: string;
@@ -20669,6 +20638,605 @@ interface PluginDiffRendererRegistration {
20669
20638
  description?: string;
20670
20639
  component: ComponentType<PluginDiffRendererProps>;
20671
20640
  }
20641
+ /**
20642
+ * Props passed to an `experimental_composer` component. Deliberately empty:
20643
+ * the component reads everything through `experimental_useComposerRenderer()`
20644
+ * and `useComposer()`.
20645
+ */
20646
+ interface ExperimentalComposerProps {
20647
+ }
20648
+ /**
20649
+ * Draw bb's composer input box: the editor, its @-mention and slash-command
20650
+ * menus, attachments, voice input, the `+` and send menus and the send and
20651
+ * stop controls. It renders everywhere bb shows a composer (a thread's
20652
+ * composer, the New thread screen, queued and sent message editors). The
20653
+ * banners, approval cards and queued messages above the box stay bb's.
20654
+ *
20655
+ * Exclusive, like `experimental_threadList`: a composer from a plugin the
20656
+ * user installed wins over the bundled one, then the first in slot order.
20657
+ * Users choose under Settings → Appearance → Composer (`composer.provider`).
20658
+ * bb ships its own composer as the bundled Composer plugin; with no composer
20659
+ * plugin enabled, no composer is shown.
20660
+ *
20661
+ * The host keeps the draft, uploads, history, pickers and submission; the
20662
+ * component draws over them with `experimental_useComposerRenderer()`.
20663
+ */
20664
+ interface ExperimentalComposerRegistration {
20665
+ /** Unique within the plugin; letters, digits, `-`, `_`. */
20666
+ id: string;
20667
+ /** Label shown in the provider choice and capability details. */
20668
+ title: string;
20669
+ /** Optional one-line description shown with the provider choice. */
20670
+ description?: string;
20671
+ component: ComponentType<ExperimentalComposerProps>;
20672
+ }
20673
+ /**
20674
+ * One way the box submits, worked out by the host for this surface and the
20675
+ * user's settings: what it does now, whether it needs a draft, and its key.
20676
+ */
20677
+ interface ExperimentalComposerAction {
20678
+ /**
20679
+ * `"send"` sends the draft, `"queue"` queues it behind the running turn,
20680
+ * `"steer"` adds it to the running turn.
20681
+ */
20682
+ kind: "queue" | "send" | "steer";
20683
+ /**
20684
+ * The action needs a non-empty draft. A steer does not: with an empty
20685
+ * draft it steers the next queued message.
20686
+ */
20687
+ requiresInput: boolean;
20688
+ /** The key that runs it, formatted for display. */
20689
+ shortcut: ExperimentalShortcutPresentation;
20690
+ /**
20691
+ * Run it without the checks `useComposer().submit()` applies: the box has
20692
+ * already decided it may. A failed send shows bb's error toast and restores
20693
+ * the draft.
20694
+ */
20695
+ run(): void;
20696
+ }
20697
+ /** Submit-button state and actions the host computes for a composer. */
20698
+ interface ExperimentalComposerSubmission {
20699
+ isSubmitting?: boolean;
20700
+ disabled?: boolean;
20701
+ disabledReason?: string;
20702
+ label?: string;
20703
+ icon?: BbIconName;
20704
+ title?: string;
20705
+ isRunning?: boolean;
20706
+ onStop?: () => void;
20707
+ /** What Enter (and the send button) does. */
20708
+ enter: ExperimentalComposerAction;
20709
+ /** What modifier+Enter does, or null where the surface has one action. */
20710
+ modifier: ExperimentalComposerAction | null;
20711
+ /** Offer `modifier` in the send button's menu too, not only on its shortcut. */
20712
+ showModifierInMenu: boolean;
20713
+ }
20714
+ /** The characters that open the slash-command and skill menus. */
20715
+ type ExperimentalComposerCommandTrigger = "$" | "/";
20716
+ /** The text typed after an @-mention or command trigger while its menu is open. */
20717
+ interface ExperimentalComposerSearchQuery<Trigger extends string> {
20718
+ text: string;
20719
+ trigger: Trigger;
20720
+ }
20721
+ /** How a suggested thread relates to the thread being composed in. */
20722
+ type ExperimentalComposerThreadRelation = "child" | "parent" | "same-environment" | "same-parent";
20723
+ type MentionTargetOf<Kind extends ExperimentalComposerMentionTarget["kind"]> = Extract<ExperimentalComposerMentionTarget, {
20724
+ kind: Kind;
20725
+ }>;
20726
+ /**
20727
+ * One @-mention result. `mention` is the pill choosing it inserts; `text` is
20728
+ * what the pill stands for after the trigger, such as `src/app.ts` or
20729
+ * `thread:thr_1`. `key` is stable across result updates.
20730
+ */
20731
+ type ExperimentalComposerMentionSuggestion = {
20732
+ key: string;
20733
+ text: string;
20734
+ } & ({
20735
+ kind: "path";
20736
+ mention: MentionTargetOf<"path">;
20737
+ } | {
20738
+ kind: "thread";
20739
+ mention: MentionTargetOf<"thread"> & {
20740
+ projectId: string;
20741
+ };
20742
+ /** The thread's own title; null when it has none and the pill shows its id. */
20743
+ title: string | null;
20744
+ /** The thread's project, when it differs from the composer's. */
20745
+ projectName: string | null;
20746
+ relation: ExperimentalComposerThreadRelation | null;
20747
+ } | {
20748
+ kind: "project";
20749
+ mention: MentionTargetOf<"project">;
20750
+ } | {
20751
+ kind: "section";
20752
+ mention: MentionTargetOf<"section">;
20753
+ } | {
20754
+ kind: "plugin";
20755
+ mention: MentionTargetOf<"plugin">;
20756
+ /** The mention provider's name, such as "Issues". */
20757
+ providerLabel: string;
20758
+ subtitle: string | null;
20759
+ });
20760
+ /** Mention results under one heading, in display order. */
20761
+ interface ExperimentalComposerMentionSuggestionGroup {
20762
+ key: string;
20763
+ label: string;
20764
+ suggestions: readonly ExperimentalComposerMentionSuggestion[];
20765
+ }
20766
+ /** What `experimental_useComposerMentionSearch` returns. */
20767
+ interface ExperimentalComposerMentionSearch {
20768
+ /** `"idle"` without a query. */
20769
+ status: "error" | "idle" | "loading" | "ready";
20770
+ /** Earlier results are showing while newer ones load. */
20771
+ refreshing: boolean;
20772
+ groups: readonly ExperimentalComposerMentionSuggestionGroup[];
20773
+ /**
20774
+ * Set the open mention menu's query, or null when it closes. Call it from
20775
+ * the event that changes the menu, next to the composer's own state update,
20776
+ * so the results arrive in the same render.
20777
+ */
20778
+ search(query: ExperimentalComposerSearchQuery<PluginMentionTrigger> | null): void;
20779
+ }
20780
+ /** One slash-command or skill result. */
20781
+ interface ExperimentalComposerCommandSuggestion {
20782
+ kind: "command";
20783
+ name: string;
20784
+ source: "command" | "skill";
20785
+ origin: "builtin" | "project" | "user";
20786
+ description: string | null;
20787
+ argumentHint: string | null;
20788
+ /** The plugin that contributed the command; absent for the provider's own. */
20789
+ pluginId?: string;
20790
+ }
20791
+ /** Command results under one heading, such as "Skills", in display order. */
20792
+ interface ExperimentalComposerCommandSuggestionGroup {
20793
+ key: string;
20794
+ label: string;
20795
+ suggestions: readonly ExperimentalComposerCommandSuggestion[];
20796
+ }
20797
+ /** What `experimental_useComposerCommandSearch` returns. */
20798
+ interface ExperimentalComposerCommandSearch {
20799
+ /** `"idle"` without a query. */
20800
+ status: "error" | "idle" | "loading" | "ready";
20801
+ /** Earlier results are showing while newer ones load. */
20802
+ refreshing: boolean;
20803
+ /** Ranked for the query, under their headings. */
20804
+ groups: readonly ExperimentalComposerCommandSuggestionGroup[];
20805
+ /**
20806
+ * Set the open command menu's query, or null when it closes. Call it from
20807
+ * the event that changes the menu, next to the composer's own state update,
20808
+ * so the results arrive in the same render.
20809
+ */
20810
+ search(query: ExperimentalComposerSearchQuery<ExperimentalComposerCommandTrigger> | null): void;
20811
+ }
20812
+ /** An attachment upload that has not finished yet. */
20813
+ interface ExperimentalComposerPendingUpload {
20814
+ id: string;
20815
+ file: File;
20816
+ }
20817
+ /** The draft's attachments and bb's upload pipeline for them. */
20818
+ interface ExperimentalComposerAttachments {
20819
+ items?: readonly ComposerAttachment[];
20820
+ pendingUploads?: readonly ExperimentalComposerPendingUpload[];
20821
+ isAttaching?: boolean;
20822
+ error?: string | null;
20823
+ /** Upload files and add them to the draft; resolves with the added attachments. */
20824
+ onAttachFiles?(files: File[]): Promise<readonly ComposerAttachment[]>;
20825
+ onUpdate?(update: (attachments: readonly ComposerAttachment[]) => readonly ComposerAttachment[]): void;
20826
+ projectId?: string;
20827
+ }
20828
+ /** Up-arrow prompt history for the composer. */
20829
+ interface ExperimentalComposerHistory {
20830
+ currentDraft: ComposerDraftSnapshot;
20831
+ entries: readonly ComposerDraftSnapshot[];
20832
+ onSelectEntry(draft: ComposerDraftSnapshot): void;
20833
+ resetKey?: string | number;
20834
+ }
20835
+ type ExperimentalVoiceDelivery = "insert" | "send";
20836
+ /** A voice recording whose transcription failed, kept for retry. */
20837
+ interface ExperimentalFailedVoiceRecording {
20838
+ id: string;
20839
+ key: string;
20840
+ file: File;
20841
+ promptContext: string | undefined;
20842
+ delivery: ExperimentalVoiceDelivery;
20843
+ createdAt: number;
20844
+ errorMessage: string | null;
20845
+ retrying: boolean;
20846
+ }
20847
+ /** bb's voice input for the composer. */
20848
+ interface ExperimentalComposerVoice {
20849
+ state: "error" | "idle" | "recording" | "transcribing";
20850
+ delivery: ExperimentalVoiceDelivery;
20851
+ microphoneWarning: string | null;
20852
+ isSupported: boolean;
20853
+ /** Why voice input is unavailable, as a message safe to show; read it only while `isSupported` is false. */
20854
+ unsupportedMessage: string;
20855
+ stream: MediaStream | null;
20856
+ failedRecordings: readonly ExperimentalFailedVoiceRecording[];
20857
+ start(): void | Promise<void>;
20858
+ stop(): void;
20859
+ send(): void;
20860
+ retry(recording: ExperimentalFailedVoiceRecording): void;
20861
+ discard(recording: ExperimentalFailedVoiceRecording): void;
20862
+ download(recording: ExperimentalFailedVoiceRecording): void;
20863
+ cancel(): void;
20864
+ }
20865
+ /** A host shortcut prompt action in the composer's `+` menu. */
20866
+ interface ExperimentalComposerPromptAction {
20867
+ kind: "goal" | "plan" | "skills";
20868
+ text: string;
20869
+ /** The command the action puts at the start of the draft, if any. */
20870
+ command?: {
20871
+ trigger: ExperimentalComposerCommandTrigger;
20872
+ name: string;
20873
+ trailingText: string;
20874
+ };
20875
+ }
20876
+ /**
20877
+ * Everything the host passes to a composer box for one surface. Read and
20878
+ * write the draft with `useComposer().draft` and `replace`, and submit with
20879
+ * `useComposer().submit()`; inside a composer box they are bound to this box.
20880
+ * The box decides where bb's controls (`executionControls`, `handoff`,
20881
+ * `compactBeforeSend`) go, or whether to show them.
20882
+ */
20883
+ interface ExperimentalComposerInput {
20884
+ id?: string;
20885
+ /**
20886
+ * Where the box sits: a thread's composer (including queued and sent
20887
+ * message editors) or the New thread screen.
20888
+ */
20889
+ surface: "new-thread" | "thread";
20890
+ onEscape?(): void;
20891
+ placeholder?: string;
20892
+ autoFocus?: boolean;
20893
+ /** bb's model, reasoning effort and mode controls for this composer. */
20894
+ executionControls?: ReactNode;
20895
+ /** The "Handoff to new thread" banner, while a handoff is active. */
20896
+ handoff?: ReactNode;
20897
+ /** bb's chip offering to compact the context before sending. */
20898
+ compactBeforeSend?: ReactNode;
20899
+ submission: ExperimentalComposerSubmission;
20900
+ /** The editor's minimum height, from the space the host leaves above the box. */
20901
+ minHeight?: number;
20902
+ /** The most height the whole box may take; the editor scrolls inside it. */
20903
+ maxHeight?: number;
20904
+ /** Characters that open the @-mention menu; search with `experimental_useComposerMentionSearch`. */
20905
+ mentionTriggers: readonly PluginMentionTrigger[];
20906
+ /**
20907
+ * Characters that open the command menu; search with
20908
+ * `experimental_useComposerCommandSearch`. Never repeats a mention trigger:
20909
+ * when a plugin mention provider claims `$`, `$` opens the mention menu.
20910
+ */
20911
+ commandTriggers: readonly ExperimentalComposerCommandTrigger[];
20912
+ /**
20913
+ * What clicking a pill for `mention` does, or null when it is not a link.
20914
+ * An attachment mention opens the draft's attachment at that path, so an
20915
+ * attachment tile can ask with `{ kind: "attachment", path, label }`.
20916
+ */
20917
+ resolveMentionLink(mention: ExperimentalComposerMentionTarget): (() => void) | null;
20918
+ /** Whether menus fit above or below the box where the host placed it. */
20919
+ mentionMenuPlacement: "bottom" | "top";
20920
+ attachments?: ExperimentalComposerAttachments;
20921
+ promptActions?: readonly ExperimentalComposerPromptAction[];
20922
+ /** Collapse the box at the user's request; absent where it cannot collapse. */
20923
+ onCollapse?(): void;
20924
+ /**
20925
+ * When to show the box's one-line compact form, with `placeholder`;
20926
+ * absent, never. `"always"`: the host collapsed the box, on compact
20927
+ * viewports or after `onCollapse`. `"narrow"`: only while the thread pane
20928
+ * is short or its column narrow, which bb signals in CSS so it applies
20929
+ * without a render; style that form under
20930
+ * `@container follow-up-composer style(--follow-up-composer-container-compact: true)`.
20931
+ * Report the form the box shows in `editor.state.layout`.
20932
+ */
20933
+ compact?: {
20934
+ when: "always" | "narrow";
20935
+ placeholder: string;
20936
+ };
20937
+ history?: ExperimentalComposerHistory;
20938
+ voice?: ExperimentalComposerVoice;
20939
+ }
20940
+ /** A composer's scope, layout, draft summary and run state. */
20941
+ interface ExperimentalComposerView {
20942
+ scope: PluginComposerScope;
20943
+ layout: "compact" | "expanded" | "zen";
20944
+ draft: {
20945
+ text: string;
20946
+ isEmpty: boolean;
20947
+ attachmentCount: number;
20948
+ };
20949
+ run: {
20950
+ isRunning: boolean;
20951
+ isSubmitting: boolean;
20952
+ };
20953
+ }
20954
+ /** A contribution another plugin registered with `app.composer.customize`. */
20955
+ interface ExperimentalComposerContribution {
20956
+ /** Stable across renders; use it as the React key. */
20957
+ key: string;
20958
+ pluginId: string;
20959
+ customizationId: string;
20960
+ generation: number;
20961
+ }
20962
+ interface ExperimentalComposerPlusMenuContribution extends ExperimentalComposerContribution {
20963
+ item: ComposerPlusMenuItem;
20964
+ }
20965
+ interface ExperimentalComposerSendMenuContribution extends ExperimentalComposerContribution {
20966
+ item: ComposerSendMenuItem;
20967
+ }
20968
+ interface ExperimentalComposerPopupContribution extends ExperimentalComposerContribution {
20969
+ popup: ExperimentalComposerPopupRegistration;
20970
+ }
20971
+ /**
20972
+ * Highlight rules to paint over the draft: bb's built-in highlights, other
20973
+ * plugins' `richText.effects` and `useComposer().setTextEffect` effects, in
20974
+ * paint order.
20975
+ */
20976
+ interface ExperimentalComposerDecorationSource {
20977
+ id: string;
20978
+ generation: string | number;
20979
+ pluginId?: string;
20980
+ effects: readonly NonNullable<ComposerRichTextSpec["effects"]>[number][];
20981
+ }
20982
+ /** Editor state a composer box reports so other plugins' `useComposer()` sees it. */
20983
+ interface ExperimentalComposerEditorState {
20984
+ layout: "compact" | "expanded";
20985
+ isRunning: boolean;
20986
+ isSubmitting: boolean;
20987
+ isSubmittingBlocked: boolean;
20988
+ submittingBlockedReason: string | null;
20989
+ isAttaching: boolean;
20990
+ attachmentError: string | null;
20991
+ }
20992
+ /**
20993
+ * What only the composer's editor can do, handed to
20994
+ * `experimental_ComposerRoot`: report its state, insert at its caret, take
20995
+ * focus, accept a dropped thread, run other plugins' popups and take voice
20996
+ * input. bb reaches the composer only through this.
20997
+ */
20998
+ interface ExperimentalComposerEditor {
20999
+ state: ExperimentalComposerEditorState;
21000
+ /** Mention ranges are relative to `value.text`. Return false without a caret. */
21001
+ insertAtCursor(value: ComposerDraft, block: boolean): boolean;
21002
+ /** Focus the editor, keeping its selection; false when it cannot take focus. */
21003
+ focus(): boolean;
21004
+ /** Focus the editor with the caret at the end of the draft. */
21005
+ focusEnd(): void;
21006
+ /** Whether a thread dragged from the sidebar can be dropped now. */
21007
+ acceptsThreadDrop(): boolean;
21008
+ /** Insert a dropped thread at the viewport point `x`, `y`. */
21009
+ insertDroppedThread(thread: ExperimentalDroppedThreadMention, x: number, y: number): void;
21010
+ openPopup(pluginId: string, popupId: string): boolean;
21011
+ closePopup(pluginId: string): boolean;
21012
+ isPopupOpen(): boolean;
21013
+ /** How the composer takes bb's voice input; omit when it has none. */
21014
+ voice?: ExperimentalComposerEditorVoice;
21015
+ }
21016
+ /** What a composer does with bb's voice input; recording and transcription stay bb's. */
21017
+ interface ExperimentalComposerEditorVoice {
21018
+ /** The draft before the caret, sent with a recording to help transcription; null when empty. */
21019
+ textBeforeCursor(): string | null;
21020
+ /** Put a finished transcript at the caret; with `"send"`, submit the draft after. */
21021
+ deliverTranscript(text: string, delivery: ExperimentalVoiceDelivery): void;
21022
+ /** Animate leaving voice mode; resolves when the composer is ready for the transcript. */
21023
+ playCompletionTransition(): Promise<void>;
21024
+ }
21025
+ /** Props of `experimental_ComposerRoot`. */
21026
+ interface ExperimentalComposerRootProps {
21027
+ /** The composer's outermost element. */
21028
+ rootRef: RefObject<HTMLElement | null>;
21029
+ editor: ExperimentalComposerEditor;
21030
+ /**
21031
+ * The composer's @-mention and command menu, and whether it is open, so
21032
+ * hosts that make room for it can measure it.
21033
+ */
21034
+ menuRef?: RefObject<HTMLElement | null>;
21035
+ menuOpen?: boolean;
21036
+ }
21037
+ /** The thread a bb thread link names, before it is resolved. */
21038
+ interface ExperimentalComposerThreadLinkTarget {
21039
+ threadId: string;
21040
+ projectId: string;
21041
+ }
21042
+ /** A thread a pasted bb thread link resolved to. */
21043
+ interface ExperimentalComposerThreadLink extends ExperimentalComposerThreadLinkTarget {
21044
+ label: string;
21045
+ }
21046
+ /** The thread an app drag dropped onto the composer. */
21047
+ interface ExperimentalDroppedThreadMention {
21048
+ threadId: string;
21049
+ label: string;
21050
+ }
21051
+ /** A keyboard shortcut formatted for display. */
21052
+ interface ExperimentalShortcutPresentation {
21053
+ ariaKeyshortcuts: string;
21054
+ label: string;
21055
+ }
21056
+ /** A bb message copied to the clipboard, read back on paste. */
21057
+ interface ExperimentalMessageClipboardPayload {
21058
+ text: string;
21059
+ imageUrl: string;
21060
+ }
21061
+ /** bb thread links in the composer, from `experimental_useComposerRenderer().threadLinks`. */
21062
+ interface ExperimentalComposerThreadLinks {
21063
+ /**
21064
+ * The thread `url` links to when it is a thread link of this bb, or null.
21065
+ * `projectId` is the project the link names, or the personal project for
21066
+ * a link without one; a thread outside that project is not this link.
21067
+ */
21068
+ parse(url: string): ExperimentalComposerThreadLinkTarget | null;
21069
+ /** A linked thread from bb's caches, without a request. */
21070
+ cached(threadId: string): ExperimentalComposerThreadLink | null;
21071
+ /**
21072
+ * Fetch linked threads in batches, calling `onBatch` as each batch lands
21073
+ * so a deadline can keep the batches that finished. Threads that do not
21074
+ * exist are left out. Resolves once every batch has settled.
21075
+ */
21076
+ resolve(threadIds: readonly string[], signal: AbortSignal, onBatch: (threads: readonly ExperimentalComposerThreadLink[]) => void): Promise<void>;
21077
+ }
21078
+ /** bb messages copied to the clipboard, from `experimental_useComposerRenderer().clipboard`. */
21079
+ interface ExperimentalComposerClipboard {
21080
+ /** Read a bb message copied as HTML, or null. */
21081
+ readMessage(html: string): ExperimentalMessageClipboardPayload | null;
21082
+ /** Fetch a copied bb message's image as a file; rejects when it is unavailable. */
21083
+ readMessageImage(imageUrl: string, signal: AbortSignal): Promise<File>;
21084
+ }
21085
+ /**
21086
+ * Inputs, host state and host services for one composer box. Only available
21087
+ * inside an `experimental_composer` component; it throws elsewhere.
21088
+ */
21089
+ interface ExperimentalComposerRendererApi {
21090
+ readonly input: ExperimentalComposerInput;
21091
+ /** The composer this box draws: scope, layout, draft and run state. */
21092
+ readonly view: ExperimentalComposerView;
21093
+ /** Stable identity of this composer's draft (`useComposer().key`). */
21094
+ readonly key: string;
21095
+ /** A plugin locked editing through `useComposer().setInputLock(true)`. */
21096
+ readonly inputLocked: boolean;
21097
+ /** The shortcut of bb's "Focus composer" command, or null when unbound. */
21098
+ readonly focusComposerShortcut: ExperimentalShortcutPresentation | null;
21099
+ /**
21100
+ * Every highlight rule to paint over the draft, in paint order. The host
21101
+ * runs other plugins' draft observers itself.
21102
+ */
21103
+ readonly decorationSources: readonly ExperimentalComposerDecorationSource[];
21104
+ readonly threadLinks: ExperimentalComposerThreadLinks;
21105
+ readonly clipboard: ExperimentalComposerClipboard;
21106
+ /**
21107
+ * Run bb's app keyboard command for `event`, if any; returns whether one
21108
+ * ran. Call it from the editor's key handler before handling the key
21109
+ * itself, skipping IME composition: editors swallow keys before bb's
21110
+ * window-level shortcuts see them.
21111
+ */
21112
+ dispatchAppCommandKey(event: KeyboardEvent): boolean;
21113
+ /** Show an error toast. */
21114
+ showError(message: string): void;
21115
+ /**
21116
+ * Image URL for an attachment: the local preview while it is still
21117
+ * uploading, else the uploaded file, resolved through the project when
21118
+ * given. bb releases local previews when attachments leave the draft.
21119
+ */
21120
+ attachmentSrc(path: string, projectId?: string): string;
21121
+ }
21122
+ /**
21123
+ * Other plugins' contributions to this composer, from
21124
+ * `experimental_useComposerContributions()`, with a host renderer for each
21125
+ * kind. Surfaces that hide plugin customizations return no popups, send
21126
+ * menu items or actions.
21127
+ */
21128
+ interface ExperimentalComposerContributions {
21129
+ /** Popups other plugins open with `useComposer().openPopup`; render the open one with `Popup`. */
21130
+ readonly popups: readonly ExperimentalComposerPopupContribution[];
21131
+ /** Render each with `MenuEntry` and `kind: "plus"`. */
21132
+ readonly plusMenuItems: readonly ExperimentalComposerPlusMenuContribution[];
21133
+ /** Render each with `MenuEntry` and `kind: "send"`. */
21134
+ readonly sendMenuItems: readonly ExperimentalComposerSendMenuContribution[];
21135
+ /** Other plugins' inline actions, for the composer's action row. */
21136
+ readonly Actions: ComponentType;
21137
+ readonly Popup: ComponentType<ExperimentalComposerPopupProps>;
21138
+ readonly MenuEntry: ComponentType<ExperimentalComposerMenuEntryProps>;
21139
+ }
21140
+ /** Props of `ExperimentalComposerContributions.Popup`. */
21141
+ interface ExperimentalComposerPopupProps {
21142
+ contribution: ExperimentalComposerPopupContribution;
21143
+ onClose(): void;
21144
+ }
21145
+ /** What a selected `+` or send menu entry hands back to the menu. */
21146
+ interface ExperimentalComposerMenuSelection {
21147
+ restoreComposerFocus(): void;
21148
+ selectedElement: Element | null;
21149
+ }
21150
+ /** Props of `ExperimentalComposerContributions.MenuEntry`. */
21151
+ type ExperimentalComposerMenuEntryProps = {
21152
+ kind: "plus";
21153
+ contribution: ExperimentalComposerPlusMenuContribution;
21154
+ onSelected?(selection: ExperimentalComposerMenuSelection): void;
21155
+ } | {
21156
+ kind: "send";
21157
+ contribution: ExperimentalComposerSendMenuContribution;
21158
+ onSelected?(selection: ExperimentalComposerMenuSelection): void;
21159
+ };
21160
+ /** Props of `experimental_VoiceInputButton`: bb's button with a microphone warning tooltip. */
21161
+ interface ExperimentalVoiceInputButtonProps extends ComponentPropsWithRef<"button"> {
21162
+ warning: string | null;
21163
+ variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
21164
+ size?: "default" | "icon" | "lg" | "sm";
21165
+ "data-promptbox-expanded-only"?: string;
21166
+ "data-promptbox-submit-action"?: string;
21167
+ }
21168
+ /** Props of `experimental_VoiceRecordingBar`. */
21169
+ interface ExperimentalVoiceRecordingBarProps {
21170
+ isCompact: boolean;
21171
+ state: "recording" | "transcribing";
21172
+ delivery: ExperimentalVoiceDelivery;
21173
+ stream: MediaStream | null;
21174
+ microphoneWarning: string | null;
21175
+ submitIcon: BbIconName;
21176
+ onConfirm(): void;
21177
+ onSend(): void;
21178
+ onCancel(): void;
21179
+ }
21180
+ /** Props of `experimental_FailedVoiceRecordings`. */
21181
+ interface ExperimentalFailedVoiceRecordingsProps {
21182
+ recordings: readonly ExperimentalFailedVoiceRecording[];
21183
+ className: string;
21184
+ retryDisabled: boolean;
21185
+ onRetry(recording: ExperimentalFailedVoiceRecording): void;
21186
+ onDownload(recording: ExperimentalFailedVoiceRecording): void;
21187
+ onDiscard(recording: ExperimentalFailedVoiceRecording): void;
21188
+ }
21189
+ /** Props of `experimental_ShortcutHint`. */
21190
+ interface ExperimentalShortcutHintProps {
21191
+ shortcut: ExperimentalShortcutPresentation | null;
21192
+ className?: string;
21193
+ }
21194
+ /** Props of `experimental_ImageLightbox`. */
21195
+ interface ExperimentalImageLightboxProps {
21196
+ hasMultipleImages?: boolean;
21197
+ previousDisabled?: boolean;
21198
+ nextDisabled?: boolean;
21199
+ navigationStatus?: string;
21200
+ mediaType?: "image" | "video";
21201
+ imageAlt: string;
21202
+ imageSrc: string | null;
21203
+ isOpen?: boolean;
21204
+ onClose(): void;
21205
+ onNext?(): void;
21206
+ onPrevious?(): void;
21207
+ title: string;
21208
+ }
21209
+ /** How bb draws an @-mention pill, from `experimental_describePromptMention`. */
21210
+ interface ExperimentalPromptMentionPresentation {
21211
+ /** bb's pill classes; add your own after them. */
21212
+ className: string;
21213
+ /** The pill's tooltip, such as `src/app.ts` or `/review <files>`. */
21214
+ title: string;
21215
+ /** The pill as text, naming its kind: `Thread: Fix login`. */
21216
+ text: string;
21217
+ }
21218
+ /** A pill read back from pasted HTML by `experimental_readPromptMentionClipboard`. */
21219
+ interface ExperimentalPromptMentionClipboardPill {
21220
+ mention: ExperimentalComposerMentionTarget;
21221
+ /** The draft text the pill covers, such as `@src/app.ts`. */
21222
+ text: string;
21223
+ }
21224
+ /** Props of `experimental_PromptMentionIcon`. */
21225
+ interface ExperimentalPromptMentionIconProps {
21226
+ mention: ExperimentalComposerMentionTarget;
21227
+ className?: string;
21228
+ }
21229
+ /** Props of `experimental_PluginIcon`: a plugin's branding icon. */
21230
+ interface ExperimentalPluginIconProps {
21231
+ pluginId: string;
21232
+ icon: string | null;
21233
+ className?: string;
21234
+ }
21235
+ /** Props of `experimental_ThreadTitleText`: a raw thread title with its @-mentions resolved. */
21236
+ interface ExperimentalThreadTitleTextProps {
21237
+ title: string;
21238
+ className?: string;
21239
+ }
20672
21240
  /**
20673
21241
  * Register a leaf message directive rendered inside assistant (and nested
20674
21242
  * agent) message Markdown. `id` is the directive name: `inline-vis` matches
@@ -20732,7 +21300,7 @@ interface ThreadChatMessageReference {
20732
21300
  * {@link PluginPanelActionOpenOptions} instead.
20733
21301
  */
20734
21302
  interface PluginTargetedPanelActionOpenOptions extends PluginPanelActionOpenOptions {
20735
- /** A `threadPanelAction` id registered by this same plugin. */
21303
+ /** A thread action tab id registered by this same plugin. */
20736
21304
  actionId: string;
20737
21305
  }
20738
21306
  /** Context handed to a `messageAction`'s `run`. */
@@ -20746,12 +21314,12 @@ interface PluginMessageActionContext {
20746
21314
  */
20747
21315
  selectedText?: string;
20748
21316
  /**
20749
- * Open one of this plugin's `threadPanelAction` components in the current
21317
+ * Open one of this plugin's thread action tab components in the current
20750
21318
  * thread's side panel — the registration-callback equivalent of
20751
21319
  * `useBbNavigate().openThreadPanel`.
20752
21320
  *
20753
21321
  * 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`
21322
+ * `params` was not a JSON value, the action id names no thread action tab
20755
21323
  * of this plugin, or the surface has no side panel (only the main thread
20756
21324
  * view does; a `ThreadChat` embedded in a plugin panel does not). A decline
20757
21325
  * is never thrown: the host logs it and reports it here.
@@ -20791,7 +21359,7 @@ interface PluginCommandContext {
20791
21359
  projectId: string | null;
20792
21360
  /**
20793
21361
  * Open one of this plugin's panel components in the focused side panel.
20794
- * In a thread, `actionId` resolves against `threadPanelAction`; on the New
21362
+ * In a thread, `actionId` resolves against thread action tabs; on the New
20795
21363
  * thread screen, it resolves against `experimental_newThreadPanelAction`.
20796
21364
  * Register both slots with the same id to support commands on both screens.
20797
21365
  *
@@ -21067,16 +21635,9 @@ interface PluginAppSlots {
21067
21635
  */
21068
21636
  experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
21069
21637
  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
- */
21638
+ /** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
21639
+ experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
21640
+ experimental_tab(registration: ExperimentalTabRegistration): void;
21080
21641
  experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
21081
21642
  pendingInteraction(registration: PluginPendingInteractionRegistration): void;
21082
21643
  sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
@@ -21098,6 +21659,24 @@ interface PluginAppSlots {
21098
21659
  * docs/api_to_audit.md.
21099
21660
  */
21100
21661
  experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
21662
+ /**
21663
+ * Add context beside an existing thread's composer (see
21664
+ * {@link ExperimentalThreadContextSegmentRegistration}). Experimental: see
21665
+ * docs/api_to_audit.md.
21666
+ */
21667
+ experimental_threadContextSegment(registration: ExperimentalThreadContextSegmentRegistration): void;
21668
+ /**
21669
+ * Add a row to the thread Info tab's details block (see
21670
+ * {@link ExperimentalThreadInfoRowRegistration}). Experimental: see
21671
+ * docs/api_to_audit.md.
21672
+ */
21673
+ experimental_threadInfoRow(registration: ExperimentalThreadInfoRowRegistration): void;
21674
+ /**
21675
+ * Add a section to the thread Info tab (see
21676
+ * {@link ExperimentalThreadInfoSectionRegistration}). Experimental: see
21677
+ * docs/api_to_audit.md.
21678
+ */
21679
+ experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
21101
21680
  /**
21102
21681
  * Add an action to every thread actions menu (see
21103
21682
  * {@link PluginThreadActionRegistration}). Experimental: see
@@ -21119,6 +21698,12 @@ interface PluginAppSlots {
21119
21698
  * docs/api_to_audit.md.
21120
21699
  */
21121
21700
  experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
21701
+ /**
21702
+ * Replace the input box of bb's thread composer (see
21703
+ * {@link ExperimentalComposerRegistration}). Experimental: see
21704
+ * docs/api_to_audit.md.
21705
+ */
21706
+ experimental_composer(registration: ExperimentalComposerRegistration): void;
21122
21707
  messageDirective(registration: PluginMessageDirectiveRegistration): void;
21123
21708
  /**
21124
21709
  * Render fenced code blocks of chosen languages in assistant messages (see
@@ -21479,6 +22064,8 @@ type ComposerMention = {
21479
22064
  * of the calling plugin's own mentions (`{ provider, id, label }`, no `kind`).
21480
22065
  */
21481
22066
  type ComposerInsertPart = string | ComposerMention | PluginComposerMention;
22067
+ /** What an @-mention pill points at: a {@link ComposerMention} without its place in the text. */
22068
+ type ExperimentalComposerMentionTarget = ComposerMention extends infer M ? M extends ComposerMention ? Omit<M, "from" | "to"> : never : never;
21482
22069
  /** Where `insert` puts its content. */
21483
22070
  interface ComposerInsertOptions {
21484
22071
  /**
@@ -22176,9 +22763,59 @@ type ExperimentalOpenFixedTabOptions<Target extends JsonValue$1> = {
22176
22763
  tab: ExperimentalPluginFixedTabReference<Target>;
22177
22764
  /** Omit to select the tab without replacing its current session target. */
22178
22765
  target?: NoInfer<Target>;
22766
+ } | {
22767
+ surface: ExperimentalAppPanelSurface;
22768
+ tab: {
22769
+ id: string;
22770
+ panelId?: never;
22771
+ experimental_target?: never;
22772
+ };
22773
+ target?: never;
22179
22774
  };
22775
+ /** A navigation-page fixed tab with an owner-validated target. */
22776
+ type ExperimentalTabTargetReference<Target extends JsonValue$1> = ExperimentalTabReference & {
22777
+ context: {
22778
+ kind: "nav-panel";
22779
+ panelId: string;
22780
+ };
22781
+ availability: "fixed";
22782
+ experimental_target: ExperimentalFixedTabTargetContract<Target>;
22783
+ };
22784
+ /** Open a registered tab on the current surface. Action inputs persist; fixed targets are session-only. */
22785
+ type ExperimentalTabOpenOptions = {
22786
+ surface: ExperimentalAppPanelSurface;
22787
+ } & ({
22788
+ tab: ExperimentalTabReference & {
22789
+ availability: "action";
22790
+ };
22791
+ params?: JsonValue$1;
22792
+ title?: string;
22793
+ target?: never;
22794
+ } | {
22795
+ tab: ExperimentalTabReference & {
22796
+ context: {
22797
+ kind: "thread";
22798
+ };
22799
+ availability: "fixed";
22800
+ };
22801
+ target?: never;
22802
+ params?: never;
22803
+ title?: never;
22804
+ } | {
22805
+ tab: ExperimentalTabReference & {
22806
+ context: {
22807
+ kind: "nav-panel";
22808
+ panelId: string;
22809
+ };
22810
+ availability: "fixed";
22811
+ };
22812
+ target?: JsonValue$1;
22813
+ params?: never;
22814
+ title?: never;
22815
+ });
22180
22816
  /** Surface-aware controller for selecting owner-scoped fixed tabs. */
22181
22817
  interface ExperimentalAppPanel {
22818
+ experimental_openTab(options: ExperimentalTabOpenOptions): boolean;
22182
22819
  openFixedTab<Target extends JsonValue$1 = never>(options: ExperimentalOpenFixedTabOptions<Target>): boolean;
22183
22820
  }
22184
22821
  /** Current app selection, derived from the route. */
@@ -22231,7 +22868,7 @@ interface BbNavigate {
22231
22868
  }): void;
22232
22869
  /**
22233
22870
  * Open one of this plugin's registered panel actions in the current
22234
- * surface's side panel: a `threadPanelAction` in a thread, or an
22871
+ * surface's side panel: a thread action tab in a thread, or an
22235
22872
  * `experimental_newThreadPanelAction` on the New thread screen. Plugin
22236
22873
  * commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
22237
22874
  * panel actions (plugin pages) or the action is unavailable.
@@ -22393,7 +23030,7 @@ interface PluginSdkApp {
22393
23030
  /** Select one of this plugin's eligible fixed tabs on the current surface. */
22394
23031
  experimental_useAppPanel(): ExperimentalAppPanel;
22395
23032
  /** Read or clear the owning tab's validated, session-scoped target. */
22396
- experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
23033
+ experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
22397
23034
  useComposer(): PluginComposerApi;
22398
23035
  /**
22399
23036
  * Every composer on screen that plugin composer customizations mount in,
@@ -22478,17 +23115,41 @@ interface PluginSdkApp {
22478
23115
  readonly lifecycle: "4_lifecycle";
22479
23116
  };
22480
23117
  /**
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
- *
23118
+ * bb's thread context segment groups, for an
23119
+ * `experimental_threadContextSegment` that joins one: `thread` (Parent
23120
+ * thread) and `git` (Changed files). A plugin names its own
23121
+ * group to sort between them, such as `"2_pullRequest"`. Experimental: see
23122
+ * docs/api_to_audit.md.
23123
+ */
23124
+ experimental_THREAD_CONTEXT_SEGMENT_GROUPS: {
23125
+ readonly thread: "1_thread";
23126
+ readonly git: "3_git";
23127
+ };
23128
+ /**
23129
+ * bb's thread Info row groups, for an `experimental_threadInfoRow` that
23130
+ * joins one: `thread` (Parent, Notify parent, Project), `environment`
23131
+ * (Environment, Machine, provisioning failure, Directory), `git` (Branch,
23132
+ * Merge base, Git status), `pullRequest`, and `lifecycle` (Archived).
22489
23133
  * Experimental: see docs/api_to_audit.md.
22490
23134
  */
22491
- experimental_useSidebarThreadPullRequest(threadId: string): PluginSidebarThreadPullRequestState;
23135
+ experimental_THREAD_INFO_ROW_GROUPS: {
23136
+ readonly thread: "1_thread";
23137
+ readonly environment: "2_environment";
23138
+ readonly git: "3_git";
23139
+ readonly pullRequest: "4_pullRequest";
23140
+ readonly lifecycle: "5_lifecycle";
23141
+ };
23142
+ /**
23143
+ * bb's thread Info section groups, for an `experimental_threadInfoSection`
23144
+ * that joins one: `related` (Child threads, Forks), `changes` (Commits,
23145
+ * Uncommitted files), and `storage` (Thread storage). Experimental: see
23146
+ * docs/api_to_audit.md.
23147
+ */
23148
+ experimental_THREAD_INFO_SECTION_GROUPS: {
23149
+ readonly related: "1_related";
23150
+ readonly changes: "2_changes";
23151
+ readonly storage: "3_storage";
23152
+ };
22492
23153
  /**
22493
23154
  * Per-row drag-to-split support (see {@link PluginSidebarThreadSplit}).
22494
23155
  * Call it once per rendered row, like the built-in sidebar does.
@@ -22713,6 +23374,98 @@ interface PluginSdkApp {
22713
23374
  * docs/api_to_audit.md.
22714
23375
  */
22715
23376
  experimental_Diff: ComponentType<DiffProps>;
23377
+ /**
23378
+ * The thread Info tab's section frame (see
23379
+ * {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
23380
+ * Inside an `experimental_threadInfoSection` it collapses, and the host
23381
+ * remembers that per registration. Experimental: see docs/api_to_audit.md.
23382
+ */
23383
+ experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
23384
+ /**
23385
+ * The thread Info tab's label and value row (see
23386
+ * {@link ExperimentalDetailRowProps}), the one bb's own rows use.
23387
+ * Experimental: see docs/api_to_audit.md.
23388
+ */
23389
+ experimental_DetailRow: ComponentType<ExperimentalDetailRowProps>;
23390
+ /**
23391
+ * The thread Info tab's list (see {@link ExperimentalInfoListProps}), the
23392
+ * one bb's own sections use. Experimental: see docs/api_to_audit.md.
23393
+ */
23394
+ experimental_InfoList<Item>(props: ExperimentalInfoListProps<Item>): ReactNode;
23395
+ /**
23396
+ * One row of `experimental_InfoList` (see
23397
+ * {@link ExperimentalInfoListRowProps}), the row bb's own sections use.
23398
+ * Experimental: see docs/api_to_audit.md.
23399
+ */
23400
+ experimental_InfoListRow: ComponentType<ExperimentalInfoListRowProps>;
23401
+ /**
23402
+ * Host-owned inputs and actions for an `experimental_composer` replacement
23403
+ * (see {@link ExperimentalComposerRendererApi}). Throws outside an
23404
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23405
+ */
23406
+ experimental_useComposerRenderer(): ExperimentalComposerRendererApi;
23407
+ /**
23408
+ * A raw thread title with its @-mentions replaced by the threads' current
23409
+ * titles. Experimental: see docs/api_to_audit.md.
23410
+ */
23411
+ experimental_useThreadTitleDisplayText(title: string): string;
23412
+ /**
23413
+ * Other plugins' popups, `+` and send menu items and inline actions for
23414
+ * this composer, with their host renderers. Throws outside an
23415
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23416
+ */
23417
+ experimental_useComposerContributions(): ExperimentalComposerContributions;
23418
+ /**
23419
+ * Search bb's @-mention sources for this composer: files, threads,
23420
+ * projects, sections and plugin mention providers. Report the open menu's
23421
+ * query with `search()`; the results are for the last query reported, and a
23422
+ * composer has one mention search. Throws outside an
23423
+ * `experimental_composer` component. Experimental: see docs/api_to_audit.md.
23424
+ */
23425
+ experimental_useComposerMentionSearch(): ExperimentalComposerMentionSearch;
23426
+ /**
23427
+ * Search the slash commands and skills for this composer's provider.
23428
+ * Report the open menu's query with `search()`; the results are for the
23429
+ * last query reported, and a composer has one command search. Throws
23430
+ * outside an `experimental_composer` component. Experimental: see
23431
+ * docs/api_to_audit.md.
23432
+ */
23433
+ experimental_useComposerCommandSearch(): ExperimentalComposerCommandSearch;
23434
+ /**
23435
+ * Connect a composer to bb: render it inside the composer's root element.
23436
+ * It publishes `editor` to other plugins' `useComposer()`, routes bb's and
23437
+ * other plugins' composer commands to keys inside `rootRef`, and makes the
23438
+ * root the target of pane focus and thread drops. Renders no DOM.
23439
+ * Experimental: see docs/api_to_audit.md.
23440
+ */
23441
+ experimental_ComposerRoot: ComponentType<ExperimentalComposerRootProps>;
23442
+ /** Composer host components; see docs/api_to_audit.md. */
23443
+ experimental_VoiceInputButton: ComponentType<ExperimentalVoiceInputButtonProps>;
23444
+ experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
23445
+ experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
23446
+ experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
23447
+ experimental_ImageLightbox: ComponentType<ExperimentalImageLightboxProps>;
23448
+ experimental_PromptMentionIcon: ComponentType<ExperimentalPromptMentionIconProps>;
23449
+ /**
23450
+ * The classes, tooltip and text bb gives a pill for `mention`, so pills look
23451
+ * the same in a composer and in bb's messages. Experimental: see
23452
+ * docs/api_to_audit.md.
23453
+ */
23454
+ experimental_describePromptMention(mention: ExperimentalComposerMentionTarget): ExperimentalPromptMentionPresentation;
23455
+ /**
23456
+ * Attributes to spread onto a pill element so that copying it and pasting
23457
+ * into any bb composer recreates the pill; `text` is the draft text the pill
23458
+ * covers. Experimental: see docs/api_to_audit.md.
23459
+ */
23460
+ experimental_promptMentionClipboardAttributes(mention: ExperimentalComposerMentionTarget, text: string): Readonly<Record<string, string>>;
23461
+ /**
23462
+ * The pill a pasted element stands for, when it was copied from a bb
23463
+ * composer or message; null for any other element. Experimental: see
23464
+ * docs/api_to_audit.md.
23465
+ */
23466
+ experimental_readPromptMentionClipboard(element: Element): ExperimentalPromptMentionClipboardPill | null;
23467
+ experimental_PluginIcon: ComponentType<ExperimentalPluginIconProps>;
23468
+ experimental_ThreadTitleText: ComponentType<ExperimentalThreadTitleTextProps>;
22716
23469
  }
22717
23470
 
22718
23471
  declare const experimental_THREAD_ACTION_GROUPS: {
@@ -22723,6 +23476,23 @@ declare const experimental_THREAD_ACTION_GROUPS: {
22723
23476
  readonly lifecycle: "4_lifecycle";
22724
23477
  };
22725
23478
 
23479
+ declare const experimental_THREAD_CONTEXT_SEGMENT_GROUPS: {
23480
+ readonly thread: "1_thread";
23481
+ readonly git: "3_git";
23482
+ };
23483
+ declare const experimental_THREAD_INFO_ROW_GROUPS: {
23484
+ readonly thread: "1_thread";
23485
+ readonly environment: "2_environment";
23486
+ readonly git: "3_git";
23487
+ readonly pullRequest: "4_pullRequest";
23488
+ readonly lifecycle: "5_lifecycle";
23489
+ };
23490
+ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
23491
+ readonly related: "1_related";
23492
+ readonly changes: "2_changes";
23493
+ readonly storage: "3_storage";
23494
+ };
23495
+
22726
23496
  declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
22727
23497
  declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
22728
23498
  declare const definePluginApp: PluginSdkApp["definePluginApp"];
@@ -22739,6 +23509,10 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
22739
23509
  declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
22740
23510
  declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
22741
23511
  declare const experimental_Diff: react.ComponentType<DiffProps>;
23512
+ declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
23513
+ declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
23514
+ declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
23515
+ declare const experimental_InfoListRow: react.ComponentType<ExperimentalInfoListRowProps>;
22742
23516
  declare const experimental_useRpcQuery: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>) => ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
22743
23517
  declare const experimental_useRpcKeyedQuery: <Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
22744
23518
  contract: Contract;
@@ -22762,9 +23536,26 @@ declare const experimental_usePluginId: () => string;
22762
23536
  declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHost;
22763
23537
  declare const useBbNavigate: () => BbNavigate;
22764
23538
  declare const experimental_useAppPanel: () => ExperimentalAppPanel;
22765
- declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
23539
+ declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
22766
23540
  declare const useComposer: () => PluginComposerApi;
22767
23541
  declare const useComposers: () => readonly PluginComposerApi[];
23542
+ declare const experimental_useComposerRenderer: () => ExperimentalComposerRendererApi;
23543
+ declare const experimental_useThreadTitleDisplayText: (title: string) => string;
23544
+ declare const experimental_useComposerContributions: () => ExperimentalComposerContributions;
23545
+ declare const experimental_useComposerMentionSearch: () => ExperimentalComposerMentionSearch;
23546
+ declare const experimental_useComposerCommandSearch: () => ExperimentalComposerCommandSearch;
23547
+ declare const experimental_ComposerRoot: react.ComponentType<ExperimentalComposerRootProps>;
23548
+ declare const experimental_VoiceInputButton: react.ComponentType<ExperimentalVoiceInputButtonProps>;
23549
+ declare const experimental_VoiceRecordingBar: react.ComponentType<ExperimentalVoiceRecordingBarProps>;
23550
+ declare const experimental_FailedVoiceRecordings: react.ComponentType<ExperimentalFailedVoiceRecordingsProps>;
23551
+ declare const experimental_ShortcutHint: react.ComponentType<ExperimentalShortcutHintProps>;
23552
+ declare const experimental_ImageLightbox: react.ComponentType<ExperimentalImageLightboxProps>;
23553
+ declare const experimental_PromptMentionIcon: react.ComponentType<ExperimentalPromptMentionIconProps>;
23554
+ declare const experimental_describePromptMention: (mention: ExperimentalComposerMentionTarget) => ExperimentalPromptMentionPresentation;
23555
+ declare const experimental_promptMentionClipboardAttributes: (mention: ExperimentalComposerMentionTarget, text: string) => Readonly<Record<string, string>>;
23556
+ declare const experimental_readPromptMentionClipboard: (element: Element) => ExperimentalPromptMentionClipboardPill | null;
23557
+ declare const experimental_PluginIcon: react.ComponentType<ExperimentalPluginIconProps>;
23558
+ declare const experimental_ThreadTitleText: react.ComponentType<ExperimentalThreadTitleTextProps>;
22768
23559
  declare const experimental_useSidebarThreads: (options?: {
22769
23560
  experimental_lifecycles: readonly ("active" | "archived")[];
22770
23561
  }) => PluginSidebarThreadsState;
@@ -22774,7 +23565,6 @@ declare const experimental_useThreadActionRegistrations: () => readonly PluginTh
22774
23565
  declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
22775
23566
  declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
22776
23567
 
22777
- declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
22778
23568
  declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
22779
23569
  declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
22780
23570
  declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
@@ -22794,5 +23584,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
22794
23584
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
22795
23585
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
22796
23586
 
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 };
23587
+ 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_CONTEXT_SEGMENT_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 };
23588
+ 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, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, 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 };