@get-bb/plugin-sdk 0.6.65 → 0.6.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bundled-types/bb-plugin-sdk-app.d.ts +1192 -440
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +60 -35
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +34 -14
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +6 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +40 -11
- package/bundled-types/bb-plugin-sdk-testing.d.ts +19 -2
- package/bundled-types/bb-plugin-sdk.d.ts +6463 -5633
- package/dist/app.js +98 -4
- package/dist/index.js +16 -0
- package/dist/internal/composer-handle.js +14 -15
- package/dist/internal/plugin-app-collector.js +243 -150
- package/dist/internal/rpc-query-host.js +1987 -193
- package/dist/provider-bridge-acp-next.js +2599 -2627
- package/dist/provider-bridge-acp.js +2599 -2627
- package/dist/provider-bridge-testing.js +1210 -1238
- package/dist/provider-bridge.js +1258 -1286
- package/dist/testing/app.js +2577 -450
- package/dist/testing/index.js +69 -0
- package/package.json +1 -1
|
@@ -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
|
|
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"]>;
|
|
@@ -4201,6 +4202,17 @@ declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
|
|
|
4201
4202
|
starting: "starting";
|
|
4202
4203
|
stopping: "stopping";
|
|
4203
4204
|
}>;
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* The three additions to {@link threadStatusValues} are display-only: they
|
|
4208
|
+
* refine `active`/`idle` with host and workspace facts the durable status does
|
|
4209
|
+
* not record.
|
|
4210
|
+
*
|
|
4211
|
+
* A never-started thread needs no such refinement — `pending` is a real thread
|
|
4212
|
+
* status now, so it travels to the client as itself. It used to arrive as a
|
|
4213
|
+
* separate `held` display status, derived from an `idle` thread holding a live
|
|
4214
|
+
* dispatch hold; that derivation and the holds behind it are both gone.
|
|
4215
|
+
*/
|
|
4204
4216
|
type ThreadRuntimeDisplayStatus = z$1.infer<typeof threadRuntimeDisplayStatusSchema>;
|
|
4205
4217
|
declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
4206
4218
|
content: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -5556,12 +5568,6 @@ declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
|
|
|
5556
5568
|
ok: z$1.ZodLiteral<true>;
|
|
5557
5569
|
}, z$1.core.$strip>;
|
|
5558
5570
|
type EnvironmentArchiveThreadsResponse = z$1.infer<typeof environmentArchiveThreadsResponseSchema>;
|
|
5559
|
-
declare const pullRequestMergeMethodSchema: z$1.ZodEnum<{
|
|
5560
|
-
merge: "merge";
|
|
5561
|
-
rebase: "rebase";
|
|
5562
|
-
squash: "squash";
|
|
5563
|
-
}>;
|
|
5564
|
-
type PullRequestMergeMethod = z$1.infer<typeof pullRequestMergeMethodSchema>;
|
|
5565
5571
|
declare const commitActionResponseSchema: z$1.ZodObject<{
|
|
5566
5572
|
action: z$1.ZodLiteral<"commit">;
|
|
5567
5573
|
commitSha: z$1.ZodString;
|
|
@@ -5570,29 +5576,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
|
|
|
5570
5576
|
ok: z$1.ZodLiteral<true>;
|
|
5571
5577
|
}, z$1.core.$strip>;
|
|
5572
5578
|
type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
|
|
5573
|
-
declare const pullRequestReadyActionResponseSchema: z$1.ZodObject<{
|
|
5574
|
-
action: z$1.ZodLiteral<"pull_request_ready">;
|
|
5575
|
-
message: z$1.ZodString;
|
|
5576
|
-
ok: z$1.ZodLiteral<true>;
|
|
5577
|
-
}, z$1.core.$strip>;
|
|
5578
|
-
type PullRequestReadyActionResponse = z$1.infer<typeof pullRequestReadyActionResponseSchema>;
|
|
5579
|
-
declare const pullRequestMergeActionResponseSchema: z$1.ZodObject<{
|
|
5580
|
-
action: z$1.ZodLiteral<"pull_request_merge">;
|
|
5581
|
-
message: z$1.ZodString;
|
|
5582
|
-
method: z$1.ZodEnum<{
|
|
5583
|
-
merge: "merge";
|
|
5584
|
-
rebase: "rebase";
|
|
5585
|
-
squash: "squash";
|
|
5586
|
-
}>;
|
|
5587
|
-
ok: z$1.ZodLiteral<true>;
|
|
5588
|
-
}, z$1.core.$strip>;
|
|
5589
|
-
type PullRequestMergeActionResponse = z$1.infer<typeof pullRequestMergeActionResponseSchema>;
|
|
5590
|
-
declare const pullRequestDraftActionResponseSchema: z$1.ZodObject<{
|
|
5591
|
-
action: z$1.ZodLiteral<"pull_request_draft">;
|
|
5592
|
-
message: z$1.ZodString;
|
|
5593
|
-
ok: z$1.ZodLiteral<true>;
|
|
5594
|
-
}, z$1.core.$strip>;
|
|
5595
|
-
type PullRequestDraftActionResponse = z$1.infer<typeof pullRequestDraftActionResponseSchema>;
|
|
5596
5579
|
declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5597
5580
|
outcome: z$1.ZodLiteral<"available">;
|
|
5598
5581
|
workspace: z$1.ZodObject<{
|
|
@@ -5646,6 +5629,7 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5646
5629
|
insertions: z$1.ZodNumber;
|
|
5647
5630
|
lineStatsComplete: z$1.ZodBoolean;
|
|
5648
5631
|
mergeBaseBranch: z$1.ZodString;
|
|
5632
|
+
squashMergeCheckComplete: z$1.ZodBoolean;
|
|
5649
5633
|
}, z$1.core.$strip>>;
|
|
5650
5634
|
workingTree: z$1.ZodObject<{
|
|
5651
5635
|
deletions: z$1.ZodNumber;
|
|
@@ -5698,92 +5682,6 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
5698
5682
|
}, z$1.core.$strict>;
|
|
5699
5683
|
outcome: z$1.ZodLiteral<"unavailable">;
|
|
5700
5684
|
}, z$1.core.$strict>], "outcome">;
|
|
5701
|
-
declare const environmentPullRequestResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5702
|
-
outcome: z$1.ZodLiteral<"available">;
|
|
5703
|
-
pullRequest: z$1.ZodObject<{
|
|
5704
|
-
attention: z$1.ZodEnum<{
|
|
5705
|
-
blocked: "blocked";
|
|
5706
|
-
changes_requested: "changes_requested";
|
|
5707
|
-
checks_failed: "checks_failed";
|
|
5708
|
-
checks_pending: "checks_pending";
|
|
5709
|
-
closed: "closed";
|
|
5710
|
-
conflicts: "conflicts";
|
|
5711
|
-
draft: "draft";
|
|
5712
|
-
merged: "merged";
|
|
5713
|
-
none: "none";
|
|
5714
|
-
queued: "queued";
|
|
5715
|
-
ready_to_merge: "ready_to_merge";
|
|
5716
|
-
review_requested: "review_requested";
|
|
5717
|
-
}>;
|
|
5718
|
-
autoMerge: z$1.ZodBoolean;
|
|
5719
|
-
baseRefName: z$1.ZodString;
|
|
5720
|
-
checks: z$1.ZodObject<{
|
|
5721
|
-
failedCount: z$1.ZodNumber;
|
|
5722
|
-
passedCount: z$1.ZodNumber;
|
|
5723
|
-
pendingCount: z$1.ZodNumber;
|
|
5724
|
-
state: z$1.ZodEnum<{
|
|
5725
|
-
failing: "failing";
|
|
5726
|
-
no_checks: "no_checks";
|
|
5727
|
-
passing: "passing";
|
|
5728
|
-
pending: "pending";
|
|
5729
|
-
unknown: "unknown";
|
|
5730
|
-
}>;
|
|
5731
|
-
totalCount: z$1.ZodNumber;
|
|
5732
|
-
}, z$1.core.$strict>;
|
|
5733
|
-
headRefName: z$1.ZodString;
|
|
5734
|
-
inMergeQueue: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
5735
|
-
mergeability: z$1.ZodObject<{
|
|
5736
|
-
mergeStateStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
5737
|
-
BEHIND: "BEHIND";
|
|
5738
|
-
BLOCKED: "BLOCKED";
|
|
5739
|
-
CLEAN: "CLEAN";
|
|
5740
|
-
DIRTY: "DIRTY";
|
|
5741
|
-
DRAFT: "DRAFT";
|
|
5742
|
-
HAS_HOOKS: "HAS_HOOKS";
|
|
5743
|
-
UNKNOWN: "UNKNOWN";
|
|
5744
|
-
UNSTABLE: "UNSTABLE";
|
|
5745
|
-
}>>;
|
|
5746
|
-
mergeable: z$1.ZodNullable<z$1.ZodEnum<{
|
|
5747
|
-
CONFLICTING: "CONFLICTING";
|
|
5748
|
-
MERGEABLE: "MERGEABLE";
|
|
5749
|
-
UNKNOWN: "UNKNOWN";
|
|
5750
|
-
}>>;
|
|
5751
|
-
state: z$1.ZodEnum<{
|
|
5752
|
-
blocked: "blocked";
|
|
5753
|
-
conflicts: "conflicts";
|
|
5754
|
-
draft: "draft";
|
|
5755
|
-
mergeable: "mergeable";
|
|
5756
|
-
unknown: "unknown";
|
|
5757
|
-
}>;
|
|
5758
|
-
}, z$1.core.$strict>;
|
|
5759
|
-
number: z$1.ZodNumber;
|
|
5760
|
-
review: z$1.ZodObject<{
|
|
5761
|
-
reviewRequestCount: z$1.ZodNumber;
|
|
5762
|
-
state: z$1.ZodEnum<{
|
|
5763
|
-
approved: "approved";
|
|
5764
|
-
changes_requested: "changes_requested";
|
|
5765
|
-
none: "none";
|
|
5766
|
-
review_requested: "review_requested";
|
|
5767
|
-
review_required: "review_required";
|
|
5768
|
-
}>;
|
|
5769
|
-
}, z$1.core.$strict>;
|
|
5770
|
-
state: z$1.ZodEnum<{
|
|
5771
|
-
closed: "closed";
|
|
5772
|
-
draft: "draft";
|
|
5773
|
-
merged: "merged";
|
|
5774
|
-
open: "open";
|
|
5775
|
-
}>;
|
|
5776
|
-
title: z$1.ZodString;
|
|
5777
|
-
updatedAt: z$1.ZodString;
|
|
5778
|
-
url: z$1.ZodString;
|
|
5779
|
-
}, z$1.core.$strict>;
|
|
5780
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5781
|
-
outcome: z$1.ZodLiteral<"absent">;
|
|
5782
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5783
|
-
message: z$1.ZodString;
|
|
5784
|
-
outcome: z$1.ZodLiteral<"unavailable">;
|
|
5785
|
-
}, z$1.core.$strict>], "outcome">;
|
|
5786
|
-
type EnvironmentPullRequestResponse = z$1.infer<typeof environmentPullRequestResponseSchema>;
|
|
5787
5685
|
declare const environmentDiffResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5788
5686
|
diff: z$1.ZodObject<{
|
|
5789
5687
|
diff: z$1.ZodString;
|
|
@@ -5999,6 +5897,12 @@ interface HostDaemonCommandDescriptor<Type extends string, Schema extends z$1.Zo
|
|
|
5999
5897
|
envLane: HostDaemonCommandEnvironmentLane | null;
|
|
6000
5898
|
}
|
|
6001
5899
|
declare const hostDaemonCommandRegistry: {
|
|
5900
|
+
"desktop.broker.prove": HostDaemonCommandDescriptor<"desktop.broker.prove", z$1.ZodObject<{
|
|
5901
|
+
challenge: z$1.ZodString;
|
|
5902
|
+
type: z$1.ZodLiteral<"desktop.broker.prove">;
|
|
5903
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5904
|
+
proof: z$1.ZodString;
|
|
5905
|
+
}, z$1.core.$strict>, "onlineRpc", false>;
|
|
6002
5906
|
"desktop.browser.list_instances": HostDaemonCommandDescriptor<"desktop.browser.list_instances", z$1.ZodObject<{
|
|
6003
5907
|
type: z$1.ZodLiteral<"desktop.browser.list_instances">;
|
|
6004
5908
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
@@ -7467,33 +7371,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7467
7371
|
commitSha: z$1.ZodString;
|
|
7468
7372
|
commitSubject: z$1.ZodString;
|
|
7469
7373
|
}, z$1.core.$strip>, "settled", false>;
|
|
7470
|
-
"workspace.pull_request_action": HostDaemonCommandDescriptor<"workspace.pull_request_action", z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7471
|
-
environmentId: z$1.ZodString;
|
|
7472
|
-
operation: z$1.ZodLiteral<"ready">;
|
|
7473
|
-
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
7474
|
-
workspaceContext: z$1.ZodObject<{
|
|
7475
|
-
workspacePath: z$1.ZodString;
|
|
7476
|
-
}, z$1.core.$strip>;
|
|
7477
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7478
|
-
environmentId: z$1.ZodString;
|
|
7479
|
-
operation: z$1.ZodLiteral<"draft">;
|
|
7480
|
-
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
7481
|
-
workspaceContext: z$1.ZodObject<{
|
|
7482
|
-
workspacePath: z$1.ZodString;
|
|
7483
|
-
}, z$1.core.$strip>;
|
|
7484
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7485
|
-
environmentId: z$1.ZodString;
|
|
7486
|
-
method: z$1.ZodEnum<{
|
|
7487
|
-
merge: "merge";
|
|
7488
|
-
rebase: "rebase";
|
|
7489
|
-
squash: "squash";
|
|
7490
|
-
}>;
|
|
7491
|
-
operation: z$1.ZodLiteral<"merge">;
|
|
7492
|
-
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
7493
|
-
workspaceContext: z$1.ZodObject<{
|
|
7494
|
-
workspacePath: z$1.ZodString;
|
|
7495
|
-
}, z$1.core.$strip>;
|
|
7496
|
-
}, z$1.core.$strict>], "operation">, z$1.ZodObject<{}, z$1.core.$strict>, "settled", false>;
|
|
7497
7374
|
"host.list_files": HostDaemonCommandDescriptor<"host.list_files", z$1.ZodObject<{
|
|
7498
7375
|
excludeNames: z$1.ZodArray<z$1.ZodString>;
|
|
7499
7376
|
followRootSymlink: z$1.ZodBoolean;
|
|
@@ -7624,6 +7501,16 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7624
7501
|
timeoutMs: z$1.ZodNumber;
|
|
7625
7502
|
type: z$1.ZodLiteral<"environment.hook.run">;
|
|
7626
7503
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "onlineRpc", false>;
|
|
7504
|
+
"environment.inspect_cleanup": HostDaemonCommandDescriptor<"environment.inspect_cleanup", z$1.ZodObject<{
|
|
7505
|
+
environmentId: z$1.ZodString;
|
|
7506
|
+
path: z$1.ZodString;
|
|
7507
|
+
type: z$1.ZodLiteral<"environment.inspect_cleanup">;
|
|
7508
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7509
|
+
active: z$1.ZodBoolean;
|
|
7510
|
+
pids: z$1.ZodArray<z$1.ZodNumber>;
|
|
7511
|
+
supported: z$1.ZodBoolean;
|
|
7512
|
+
unreadablePids: z$1.ZodArray<z$1.ZodNumber>;
|
|
7513
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
7627
7514
|
"environment.hook.cancel": HostDaemonCommandDescriptor<"environment.hook.cancel", z$1.ZodObject<{
|
|
7628
7515
|
operationId: z$1.ZodString;
|
|
7629
7516
|
type: z$1.ZodLiteral<"environment.hook.cancel">;
|
|
@@ -8629,6 +8516,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8629
8516
|
insertions: z$1.ZodNumber;
|
|
8630
8517
|
lineStatsComplete: z$1.ZodBoolean;
|
|
8631
8518
|
mergeBaseBranch: z$1.ZodString;
|
|
8519
|
+
squashMergeCheckComplete: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
8632
8520
|
}, z$1.core.$strip>>;
|
|
8633
8521
|
workingTree: z$1.ZodObject<{
|
|
8634
8522
|
deletions: z$1.ZodNumber;
|
|
@@ -8823,80 +8711,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8823
8711
|
}, z$1.core.$strict>;
|
|
8824
8712
|
outcome: z$1.ZodLiteral<"unavailable">;
|
|
8825
8713
|
}, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
|
|
8826
|
-
"workspace.pull_request": HostDaemonCommandDescriptor<"workspace.pull_request", z$1.ZodObject<{
|
|
8827
|
-
environmentId: z$1.ZodString;
|
|
8828
|
-
type: z$1.ZodLiteral<"workspace.pull_request">;
|
|
8829
|
-
workspaceContext: z$1.ZodObject<{
|
|
8830
|
-
workspacePath: z$1.ZodString;
|
|
8831
|
-
}, z$1.core.$strip>;
|
|
8832
|
-
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8833
|
-
outcome: z$1.ZodLiteral<"available">;
|
|
8834
|
-
pullRequest: z$1.ZodObject<{
|
|
8835
|
-
autoMerge: z$1.ZodBoolean;
|
|
8836
|
-
baseRefName: z$1.ZodString;
|
|
8837
|
-
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
8838
|
-
conclusion: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8839
|
-
action_required: "action_required";
|
|
8840
|
-
cancelled: "cancelled";
|
|
8841
|
-
failure: "failure";
|
|
8842
|
-
neutral: "neutral";
|
|
8843
|
-
skipped: "skipped";
|
|
8844
|
-
stale: "stale";
|
|
8845
|
-
startup_failure: "startup_failure";
|
|
8846
|
-
success: "success";
|
|
8847
|
-
timed_out: "timed_out";
|
|
8848
|
-
unknown: "unknown";
|
|
8849
|
-
}>>;
|
|
8850
|
-
name: z$1.ZodString;
|
|
8851
|
-
startedAt: z$1.ZodNullable<z$1.ZodString>;
|
|
8852
|
-
status: z$1.ZodEnum<{
|
|
8853
|
-
completed: "completed";
|
|
8854
|
-
in_progress: "in_progress";
|
|
8855
|
-
queued: "queued";
|
|
8856
|
-
unknown: "unknown";
|
|
8857
|
-
}>;
|
|
8858
|
-
url: z$1.ZodNullable<z$1.ZodString>;
|
|
8859
|
-
}, z$1.core.$strict>>;
|
|
8860
|
-
headRefName: z$1.ZodString;
|
|
8861
|
-
inMergeQueue: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
8862
|
-
isDraft: z$1.ZodBoolean;
|
|
8863
|
-
mergeStateStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8864
|
-
BEHIND: "BEHIND";
|
|
8865
|
-
BLOCKED: "BLOCKED";
|
|
8866
|
-
CLEAN: "CLEAN";
|
|
8867
|
-
DIRTY: "DIRTY";
|
|
8868
|
-
DRAFT: "DRAFT";
|
|
8869
|
-
HAS_HOOKS: "HAS_HOOKS";
|
|
8870
|
-
UNKNOWN: "UNKNOWN";
|
|
8871
|
-
UNSTABLE: "UNSTABLE";
|
|
8872
|
-
}>>;
|
|
8873
|
-
mergeable: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8874
|
-
CONFLICTING: "CONFLICTING";
|
|
8875
|
-
MERGEABLE: "MERGEABLE";
|
|
8876
|
-
UNKNOWN: "UNKNOWN";
|
|
8877
|
-
}>>;
|
|
8878
|
-
number: z$1.ZodNumber;
|
|
8879
|
-
reviewDecision: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8880
|
-
APPROVED: "APPROVED";
|
|
8881
|
-
CHANGES_REQUESTED: "CHANGES_REQUESTED";
|
|
8882
|
-
REVIEW_REQUIRED: "REVIEW_REQUIRED";
|
|
8883
|
-
}>>;
|
|
8884
|
-
reviewRequestCount: z$1.ZodNumber;
|
|
8885
|
-
state: z$1.ZodEnum<{
|
|
8886
|
-
CLOSED: "CLOSED";
|
|
8887
|
-
MERGED: "MERGED";
|
|
8888
|
-
OPEN: "OPEN";
|
|
8889
|
-
}>;
|
|
8890
|
-
title: z$1.ZodString;
|
|
8891
|
-
updatedAt: z$1.ZodString;
|
|
8892
|
-
url: z$1.ZodString;
|
|
8893
|
-
}, z$1.core.$strict>;
|
|
8894
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8895
|
-
outcome: z$1.ZodLiteral<"absent">;
|
|
8896
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8897
|
-
message: z$1.ZodString;
|
|
8898
|
-
outcome: z$1.ZodLiteral<"unavailable">;
|
|
8899
|
-
}, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
|
|
8900
8714
|
"server_move.inspect": HostDaemonCommandDescriptor<"server_move.inspect", z$1.ZodObject<{
|
|
8901
8715
|
paths: z$1.ZodArray<z$1.ZodString>;
|
|
8902
8716
|
port: z$1.ZodNumber;
|
|
@@ -10358,6 +10172,50 @@ declare const publishedPluginRpcMethodSchema: z$1.ZodObject<{
|
|
|
10358
10172
|
}, z$1.core.$strip>;
|
|
10359
10173
|
type PublishedPluginRpcMethod = z$1.infer<typeof publishedPluginRpcMethodSchema>;
|
|
10360
10174
|
|
|
10175
|
+
declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
|
|
10176
|
+
text: z$1.ZodString;
|
|
10177
|
+
}, z$1.core.$strip>;
|
|
10178
|
+
|
|
10179
|
+
declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
|
|
10180
|
+
acceptsEmptyInputs: z$1.ZodBoolean;
|
|
10181
|
+
availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10182
|
+
status: z$1.ZodLiteral<"available">;
|
|
10183
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10184
|
+
message: z$1.ZodString;
|
|
10185
|
+
status: z$1.ZodLiteral<"setup-required">;
|
|
10186
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10187
|
+
message: z$1.ZodString;
|
|
10188
|
+
status: z$1.ZodLiteral<"unavailable">;
|
|
10189
|
+
}, z$1.core.$strip>], "status">>;
|
|
10190
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
10191
|
+
displayName: z$1.ZodString;
|
|
10192
|
+
environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
10193
|
+
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
10194
|
+
id: z$1.ZodString;
|
|
10195
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
10196
|
+
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
10197
|
+
machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10198
|
+
machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10199
|
+
status: z$1.ZodLiteral<"available">;
|
|
10200
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10201
|
+
message: z$1.ZodString;
|
|
10202
|
+
status: z$1.ZodLiteral<"setup-required">;
|
|
10203
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10204
|
+
message: z$1.ZodString;
|
|
10205
|
+
status: z$1.ZodLiteral<"unavailable">;
|
|
10206
|
+
}, z$1.core.$strip>], "status">>>;
|
|
10207
|
+
machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
10208
|
+
machineProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10209
|
+
machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
10210
|
+
pluginId: z$1.ZodString;
|
|
10211
|
+
requires: z$1.ZodObject<{
|
|
10212
|
+
gitCheckout: z$1.ZodBoolean;
|
|
10213
|
+
gitRemote: z$1.ZodBoolean;
|
|
10214
|
+
projectCheckout: z$1.ZodBoolean;
|
|
10215
|
+
projectless: z$1.ZodBoolean;
|
|
10216
|
+
}, z$1.core.$strip>;
|
|
10217
|
+
}, z$1.core.$strip>;
|
|
10218
|
+
|
|
10361
10219
|
declare const machineEnvironmentReplaceSchema: z$1.ZodObject<{
|
|
10362
10220
|
variables: z$1.ZodArray<z$1.ZodObject<{
|
|
10363
10221
|
name: z$1.ZodString;
|
|
@@ -10580,9 +10438,6 @@ declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
|
|
|
10580
10438
|
}>>;
|
|
10581
10439
|
}, z$1.core.$strip>;
|
|
10582
10440
|
type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
|
|
10583
|
-
declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
|
|
10584
|
-
text: z$1.ZodString;
|
|
10585
|
-
}, z$1.core.$strip>;
|
|
10586
10441
|
type SystemVoiceTranscriptionResponse = z$1.infer<typeof systemVoiceTranscriptionResponseSchema>;
|
|
10587
10442
|
declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
|
|
10588
10443
|
providers: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -11442,45 +11297,6 @@ declare const systemInstallCliSkillsResponseSchema: z$1.ZodObject<{
|
|
|
11442
11297
|
}, z$1.core.$strip>;
|
|
11443
11298
|
type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
|
|
11444
11299
|
type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
|
|
11445
|
-
declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
|
|
11446
|
-
acceptsEmptyInputs: z$1.ZodBoolean;
|
|
11447
|
-
availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11448
|
-
status: z$1.ZodLiteral<"available">;
|
|
11449
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11450
|
-
message: z$1.ZodString;
|
|
11451
|
-
status: z$1.ZodLiteral<"setup-required">;
|
|
11452
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11453
|
-
message: z$1.ZodString;
|
|
11454
|
-
status: z$1.ZodLiteral<"unavailable">;
|
|
11455
|
-
}, z$1.core.$strip>], "status">>;
|
|
11456
|
-
description: z$1.ZodNullable<z$1.ZodString>;
|
|
11457
|
-
displayName: z$1.ZodString;
|
|
11458
|
-
environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
11459
|
-
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
11460
|
-
id: z$1.ZodString;
|
|
11461
|
-
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
11462
|
-
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
11463
|
-
machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
11464
|
-
machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11465
|
-
status: z$1.ZodLiteral<"available">;
|
|
11466
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11467
|
-
message: z$1.ZodString;
|
|
11468
|
-
status: z$1.ZodLiteral<"setup-required">;
|
|
11469
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11470
|
-
message: z$1.ZodString;
|
|
11471
|
-
status: z$1.ZodLiteral<"unavailable">;
|
|
11472
|
-
}, z$1.core.$strip>], "status">>>;
|
|
11473
|
-
machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
11474
|
-
machineProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11475
|
-
machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
11476
|
-
pluginId: z$1.ZodString;
|
|
11477
|
-
requires: z$1.ZodObject<{
|
|
11478
|
-
gitCheckout: z$1.ZodBoolean;
|
|
11479
|
-
gitRemote: z$1.ZodBoolean;
|
|
11480
|
-
projectCheckout: z$1.ZodBoolean;
|
|
11481
|
-
projectless: z$1.ZodBoolean;
|
|
11482
|
-
}, z$1.core.$strip>;
|
|
11483
|
-
}, z$1.core.$strip>;
|
|
11484
11300
|
type SystemEnvironmentProvider = z$1.infer<typeof systemEnvironmentProviderSchema>;
|
|
11485
11301
|
declare const systemMachineProviderSchema: z$1.ZodObject<{
|
|
11486
11302
|
acceptsEmptyInputs: z$1.ZodBoolean;
|
|
@@ -12927,6 +12743,21 @@ interface TimelineTurnRow extends TimelineRowBase {
|
|
|
12927
12743
|
type TimelineSourceRow = TimelineConversationRow | TimelineWorkRow | TimelineSystemRow;
|
|
12928
12744
|
type TimelineRow = TimelineSourceRow | TimelineTurnRow;
|
|
12929
12745
|
|
|
12746
|
+
declare const threadOpenSplitSchema: z$1.ZodEnum<{
|
|
12747
|
+
down: "down";
|
|
12748
|
+
left: "left";
|
|
12749
|
+
replace: "replace";
|
|
12750
|
+
right: "right";
|
|
12751
|
+
top: "top";
|
|
12752
|
+
}>;
|
|
12753
|
+
declare const threadPaneActionSchema: z$1.ZodEnum<{
|
|
12754
|
+
"clear-spotlight": "clear-spotlight";
|
|
12755
|
+
maximize: "maximize";
|
|
12756
|
+
restore: "restore";
|
|
12757
|
+
spotlight: "spotlight";
|
|
12758
|
+
toggle: "toggle";
|
|
12759
|
+
}>;
|
|
12760
|
+
|
|
12930
12761
|
declare const createExecutionInputSourcesSchema: z$1.ZodObject<{
|
|
12931
12762
|
model: z$1.ZodOptional<z$1.ZodEnum<{
|
|
12932
12763
|
"client-preference": "client-preference";
|
|
@@ -15294,13 +15125,6 @@ declare const reorderPinnedThreadRequestSchema: z$1.ZodObject<{
|
|
|
15294
15125
|
previousThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
15295
15126
|
}, z$1.core.$strip>;
|
|
15296
15127
|
type ReorderPinnedThreadRequest = z$1.infer<typeof reorderPinnedThreadRequestSchema>;
|
|
15297
|
-
declare const threadOpenSplitSchema: z$1.ZodEnum<{
|
|
15298
|
-
down: "down";
|
|
15299
|
-
left: "left";
|
|
15300
|
-
replace: "replace";
|
|
15301
|
-
right: "right";
|
|
15302
|
-
top: "top";
|
|
15303
|
-
}>;
|
|
15304
15128
|
type ThreadOpenSplit = z$1.infer<typeof threadOpenSplitSchema>;
|
|
15305
15129
|
declare const threadOpenFileSchema: z$1.ZodObject<{
|
|
15306
15130
|
lineNumber: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -15315,13 +15139,6 @@ declare const threadOpenResponseSchema: z$1.ZodObject<{
|
|
|
15315
15139
|
delivered: z$1.ZodNumber;
|
|
15316
15140
|
}, z$1.core.$strip>;
|
|
15317
15141
|
type ThreadOpenResponse = z$1.infer<typeof threadOpenResponseSchema>;
|
|
15318
|
-
declare const threadPaneActionSchema: z$1.ZodEnum<{
|
|
15319
|
-
"clear-spotlight": "clear-spotlight";
|
|
15320
|
-
maximize: "maximize";
|
|
15321
|
-
restore: "restore";
|
|
15322
|
-
spotlight: "spotlight";
|
|
15323
|
-
toggle: "toggle";
|
|
15324
|
-
}>;
|
|
15325
15142
|
type ThreadPaneAction = z$1.infer<typeof threadPaneActionSchema>;
|
|
15326
15143
|
declare const threadPaneActionResponseSchema: z$1.ZodObject<{
|
|
15327
15144
|
delivered: z$1.ZodNumber;
|
|
@@ -15332,6 +15149,10 @@ declare const threadArchiveAllResponseSchema: z$1.ZodObject<{
|
|
|
15332
15149
|
ok: z$1.ZodLiteral<true>;
|
|
15333
15150
|
}, z$1.core.$strip>;
|
|
15334
15151
|
type ThreadArchiveAllResponse = z$1.infer<typeof threadArchiveAllResponseSchema>;
|
|
15152
|
+
/**
|
|
15153
|
+
* Reads the `threadIds` list filter. The empty string is the empty set, so a
|
|
15154
|
+
* caller with no IDs gets no threads instead of every thread.
|
|
15155
|
+
*/
|
|
15335
15156
|
declare const threadListQuerySchema: z$1.ZodObject<{
|
|
15336
15157
|
archived: z$1.ZodOptional<z$1.ZodEnum<{
|
|
15337
15158
|
false: "false";
|
|
@@ -16691,6 +16512,11 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
|
|
|
16691
16512
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16692
16513
|
id: z$1.ZodString;
|
|
16693
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;
|
|
16694
16520
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16695
16521
|
actionId: z$1.ZodString;
|
|
16696
16522
|
fileOpenerOwner: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -16837,6 +16663,11 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
|
|
|
16837
16663
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16838
16664
|
id: z$1.ZodString;
|
|
16839
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;
|
|
16840
16671
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16841
16672
|
actionId: z$1.ZodString;
|
|
16842
16673
|
fileOpenerOwner: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -17093,10 +16924,6 @@ interface EnvironmentDiffBranchesArgs extends EnvironmentDiffBranchesQuery {
|
|
|
17093
16924
|
interface EnvironmentCommitArgs {
|
|
17094
16925
|
environmentId: string;
|
|
17095
16926
|
}
|
|
17096
|
-
interface EnvironmentPullRequestMergeArgs {
|
|
17097
|
-
environmentId: string;
|
|
17098
|
-
method: PullRequestMergeMethod;
|
|
17099
|
-
}
|
|
17100
16927
|
type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
|
|
17101
16928
|
environmentId: string;
|
|
17102
16929
|
signal?: AbortSignal;
|
|
@@ -17120,11 +16947,7 @@ type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
|
|
|
17120
16947
|
type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
|
|
17121
16948
|
type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
|
|
17122
16949
|
type EnvironmentGetResult = Environment;
|
|
17123
|
-
type EnvironmentMarkPullRequestDraftResult = PullRequestDraftActionResponse;
|
|
17124
|
-
type EnvironmentMarkPullRequestReadyResult = PullRequestReadyActionResponse;
|
|
17125
|
-
type EnvironmentMergePullRequestResult = PullRequestMergeActionResponse;
|
|
17126
16950
|
type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
17127
|
-
type EnvironmentPullRequestResult = EnvironmentPullRequestResponse;
|
|
17128
16951
|
type EnvironmentStatusResult = EnvironmentStatusResponse;
|
|
17129
16952
|
type EnvironmentUpdateResult = Environment;
|
|
17130
16953
|
interface EnvironmentListArgs {
|
|
@@ -17152,7 +16975,9 @@ interface EnvironmentListProvidersArgs {
|
|
|
17152
16975
|
}
|
|
17153
16976
|
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
17154
16977
|
interface EnvironmentsArea {
|
|
17155
|
-
experimental_cleanup(args: EnvironmentActionArgs
|
|
16978
|
+
experimental_cleanup(args: EnvironmentActionArgs & {
|
|
16979
|
+
recover?: boolean;
|
|
16980
|
+
}): Promise<{
|
|
17156
16981
|
ok: true;
|
|
17157
16982
|
}>;
|
|
17158
16983
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
@@ -17175,10 +17000,6 @@ interface EnvironmentsArea {
|
|
|
17175
17000
|
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
17176
17001
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
17177
17002
|
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
17178
|
-
pullRequest(args: EnvironmentGetArgs): Promise<EnvironmentPullRequestResult>;
|
|
17179
|
-
markPullRequestDraft(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestDraftResult>;
|
|
17180
|
-
markPullRequestReady(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestReadyResult>;
|
|
17181
|
-
mergePullRequest(args: EnvironmentPullRequestMergeArgs): Promise<EnvironmentMergePullRequestResult>;
|
|
17182
17003
|
paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
|
|
17183
17004
|
status(args: EnvironmentStatusArgs): Promise<EnvironmentStatusResult>;
|
|
17184
17005
|
update(args: EnvironmentUpdateArgs): Promise<EnvironmentUpdateResult>;
|
|
@@ -18709,6 +18530,8 @@ interface BbSdkAreas extends BbRealtime {
|
|
|
18709
18530
|
threads: ThreadsArea;
|
|
18710
18531
|
}
|
|
18711
18532
|
|
|
18533
|
+
type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
18534
|
+
|
|
18712
18535
|
/**
|
|
18713
18536
|
* The `@get-bb/plugin-sdk/app` contract (plugin design §5.2) — pure types with no
|
|
18714
18537
|
* side effects. The BB app imports these to keep its real implementation in
|
|
@@ -18764,12 +18587,12 @@ interface PluginNavPanelProps {
|
|
|
18764
18587
|
subPath: string;
|
|
18765
18588
|
}
|
|
18766
18589
|
/**
|
|
18767
|
-
* Props passed to a panel tab opened by a
|
|
18590
|
+
* Props passed to a panel tab opened by a thread action tab.
|
|
18768
18591
|
*
|
|
18769
18592
|
* This slot is rendered only for an existing thread. Use
|
|
18770
18593
|
* `experimental_newThreadPanelAction` for the root New thread screen.
|
|
18771
18594
|
*/
|
|
18772
|
-
interface
|
|
18595
|
+
interface ExperimentalThreadActionTabProps {
|
|
18773
18596
|
threadId: string;
|
|
18774
18597
|
/**
|
|
18775
18598
|
* The JSON value the action's `openPanel` call passed (round-tripped
|
|
@@ -19480,17 +19303,6 @@ type ExperimentalPluginFixedTabReference<Target extends JsonValue$1 = never> = {
|
|
|
19480
19303
|
/** Owner validation required before the host delivers a target. */
|
|
19481
19304
|
readonly experimental_target: ExperimentalFixedTabTargetContract<Target>;
|
|
19482
19305
|
});
|
|
19483
|
-
/** A fixed tab declared by a plugin nav panel. */
|
|
19484
|
-
type PluginFixedTabRegistration<Target extends JsonValue$1 = never> = ExperimentalPluginFixedTabReference<Target> & {
|
|
19485
|
-
title: string;
|
|
19486
|
-
/** Resolved names take precedence over plugin branding; unknown names fall back to branding. */
|
|
19487
|
-
icon: BbIconName;
|
|
19488
|
-
component: ComponentType<PluginNavPanelProps>;
|
|
19489
|
-
/** `flush` lets the component own padding and scrolling. */
|
|
19490
|
-
layout?: "flush" | "padded";
|
|
19491
|
-
};
|
|
19492
|
-
/** A fixed tab with either no target or an owner-validated JSON target. */
|
|
19493
|
-
type PluginFixedTabDeclaration = PluginFixedTabRegistration | PluginFixedTabRegistration<JsonValue$1>;
|
|
19494
19306
|
/**
|
|
19495
19307
|
* How urgent an {@link ExperimentalBadge} is. bb picks the colors: `neutral`
|
|
19496
19308
|
* (the default) for counts and new items, `warning` for something due or
|
|
@@ -19554,17 +19366,6 @@ interface PluginNavPanelRegistration {
|
|
|
19554
19366
|
* navigation or plugin reload retries the hook. Experimental.
|
|
19555
19367
|
*/
|
|
19556
19368
|
experimental_usePageTitle?: (props: PluginNavPanelProps) => ExperimentalPageTitle | null;
|
|
19557
|
-
/**
|
|
19558
|
-
* Ordered, non-closable tabs shown in this page's host-owned right panel.
|
|
19559
|
-
* BB owns selection and persistence and always includes its native Browser
|
|
19560
|
-
* and Terminal tools beside them. One tab is active in each visible split
|
|
19561
|
-
* pane, so multiple fixed-tab components can be mounted concurrently. A
|
|
19562
|
-
* component mounts only while its tab is active in a visible pane and the
|
|
19563
|
-
* panel is open, and receives the same `subPath` as the page component.
|
|
19564
|
-
*
|
|
19565
|
-
* Experimental: see docs/api_to_audit.md.
|
|
19566
|
-
*/
|
|
19567
|
-
fixedTabs?: readonly PluginFixedTabDeclaration[];
|
|
19568
19369
|
/**
|
|
19569
19370
|
* Optional React hook that returns this panel's navigation badge, or `null`
|
|
19570
19371
|
* for none. The host calls it once in your plugin's scope for every
|
|
@@ -19603,12 +19404,12 @@ interface PluginPanelActionOpenOptions {
|
|
|
19603
19404
|
params?: JsonValue$1;
|
|
19604
19405
|
}
|
|
19605
19406
|
/**
|
|
19606
|
-
* Context handed to a
|
|
19407
|
+
* Context handed to a thread action tab's `run`.
|
|
19607
19408
|
*
|
|
19608
19409
|
* The action is thread-only and is never offered on the root New thread
|
|
19609
19410
|
* screen, so `threadId` is always present.
|
|
19610
19411
|
*/
|
|
19611
|
-
interface
|
|
19412
|
+
interface ExperimentalThreadTabActionContext {
|
|
19612
19413
|
/** The thread whose panel launcher invoked the action. */
|
|
19613
19414
|
threadId: string;
|
|
19614
19415
|
/**
|
|
@@ -19629,43 +19430,105 @@ interface PluginThreadPanelActionContext {
|
|
|
19629
19430
|
*/
|
|
19630
19431
|
openPanel(options?: PluginPanelActionOpenOptions): boolean;
|
|
19631
19432
|
}
|
|
19632
|
-
|
|
19633
|
-
|
|
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 {
|
|
19634
19441
|
id: string;
|
|
19635
|
-
|
|
19442
|
+
context: ExperimentalTabContext;
|
|
19443
|
+
availability: "action" | "fixed";
|
|
19444
|
+
}
|
|
19445
|
+
type ExperimentalTabCommon = ExperimentalTabReference & {
|
|
19636
19446
|
title: string;
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
* opened tabs. Omitted or unknown names fall back to plugin branding.
|
|
19640
|
-
*/
|
|
19641
|
-
icon?: BbIconName;
|
|
19642
|
-
/** Rendered inside every panel tab this action opens. */
|
|
19643
|
-
component: ComponentType<PluginThreadPanelProps>;
|
|
19644
|
-
/**
|
|
19645
|
-
* How the host frames the tab content. "padded" (default) wraps the
|
|
19646
|
-
* component in the panel's scroll container with standard padding —
|
|
19647
|
-
* right for document-like content. "flush" gives the component the full
|
|
19648
|
-
* tab area (no padding, definite height, no host scrolling) — right for
|
|
19649
|
-
* app-like content that manages its own layout, such as
|
|
19650
|
-
* `ThreadChat`.
|
|
19651
|
-
*/
|
|
19447
|
+
icon: BbIconName;
|
|
19448
|
+
tooltip?: string;
|
|
19652
19449
|
layout?: "flush" | "padded";
|
|
19653
|
-
|
|
19654
|
-
|
|
19655
|
-
|
|
19656
|
-
|
|
19657
|
-
|
|
19658
|
-
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
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
|
+
}))));
|
|
19524
|
+
/** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
|
|
19525
|
+
interface PluginNewThreadPanelActionContext {
|
|
19526
|
+
/** Project selected in the root composer; null in projectless compose. */
|
|
19527
|
+
projectId: string | null;
|
|
19528
|
+
/**
|
|
19529
|
+
* Open a tab in the root New thread screen's side panel rendering this
|
|
19667
19530
|
* action's `component`. The title, params, deduplication, return value, and
|
|
19668
|
-
* error semantics match
|
|
19531
|
+
* error semantics match thread action tabs.
|
|
19669
19532
|
*/
|
|
19670
19533
|
openPanel(options?: PluginPanelActionOpenOptions): boolean;
|
|
19671
19534
|
}
|
|
@@ -19679,7 +19542,7 @@ interface PluginNewThreadPanelActionRegistration {
|
|
|
19679
19542
|
icon?: BbIconName;
|
|
19680
19543
|
/** Rendered inside every panel tab this action opens. */
|
|
19681
19544
|
component: ComponentType<PluginNewThreadPanelProps>;
|
|
19682
|
-
/** Host framing; matches
|
|
19545
|
+
/** Host framing; matches thread action tabs. */
|
|
19683
19546
|
layout?: "flush" | "padded";
|
|
19684
19547
|
/**
|
|
19685
19548
|
* Runs when the user activates the action. Omitted = immediately open a
|
|
@@ -19918,41 +19781,6 @@ interface PluginSidebarThread {
|
|
|
19918
19781
|
lastReadAt: number | null;
|
|
19919
19782
|
latestAttentionAt: number;
|
|
19920
19783
|
}
|
|
19921
|
-
/**
|
|
19922
|
-
* The pull request for a thread's branch, narrowed to what a sidebar row
|
|
19923
|
-
* needs. `attention` is bb's rolled-up "does this need you" signal, so a row
|
|
19924
|
-
* can colour a badge without reading checks, review, and mergeability itself.
|
|
19925
|
-
*/
|
|
19926
|
-
interface PluginSidebarPullRequest {
|
|
19927
|
-
/** Whether GitHub auto-merge is enabled. */
|
|
19928
|
-
experimental_autoMerge: boolean;
|
|
19929
|
-
/** Null when the GitHub merge queue lookup is unavailable. */
|
|
19930
|
-
experimental_inMergeQueue: boolean | null;
|
|
19931
|
-
experimental_checks: {
|
|
19932
|
-
state: "failing" | "no_checks" | "passing" | "pending" | "unknown";
|
|
19933
|
-
};
|
|
19934
|
-
experimental_review: {
|
|
19935
|
-
state: "approved" | "changes_requested" | "none" | "review_requested" | "review_required";
|
|
19936
|
-
};
|
|
19937
|
-
experimental_mergeability: {
|
|
19938
|
-
state: "blocked" | "conflicts" | "draft" | "mergeable" | "unknown";
|
|
19939
|
-
};
|
|
19940
|
-
number: number;
|
|
19941
|
-
title: string;
|
|
19942
|
-
url: string;
|
|
19943
|
-
state: "closed" | "draft" | "merged" | "open";
|
|
19944
|
-
attention: "blocked" | "changes_requested" | "checks_failed" | "checks_pending" | "closed" | "conflicts" | "draft" | "merged" | "none" | "queued" | "ready_to_merge" | "review_requested";
|
|
19945
|
-
}
|
|
19946
|
-
interface PluginSidebarThreadPullRequestState {
|
|
19947
|
-
/** True while the first lookup for this thread's environment is in flight. */
|
|
19948
|
-
isLoading: boolean;
|
|
19949
|
-
/**
|
|
19950
|
-
* The pull request, or null when the branch has none, the thread has no
|
|
19951
|
-
* environment, or the lookup could not run (a git-host hiccup). A row should
|
|
19952
|
-
* treat null as "nothing to show", never as an error.
|
|
19953
|
-
*/
|
|
19954
|
-
pullRequest: PluginSidebarPullRequest | null;
|
|
19955
|
-
}
|
|
19956
19784
|
/** One project in the sidebar's live view. */
|
|
19957
19785
|
interface PluginSidebarProject {
|
|
19958
19786
|
id: string;
|
|
@@ -20211,6 +20039,116 @@ interface PluginThreadHeaderActionRegistration {
|
|
|
20211
20039
|
title: string;
|
|
20212
20040
|
component: ComponentType<PluginThreadHeaderActionProps>;
|
|
20213
20041
|
}
|
|
20042
|
+
/**
|
|
20043
|
+
* Props passed to an `experimental_threadInfoRow` or
|
|
20044
|
+
* `experimental_threadInfoSection` component, rendered in a thread's Info tab.
|
|
20045
|
+
*/
|
|
20046
|
+
interface ExperimentalThreadInfoProps {
|
|
20047
|
+
/**
|
|
20048
|
+
* The thread whose Info tab is open. A split layout renders one Info tab per
|
|
20049
|
+
* pane, so the component mounts once per visible thread; keep per-thread
|
|
20050
|
+
* state in the component, never in a module-level singleton.
|
|
20051
|
+
*/
|
|
20052
|
+
threadId: string;
|
|
20053
|
+
projectId: string;
|
|
20054
|
+
}
|
|
20055
|
+
/**
|
|
20056
|
+
* A row in the thread Info tab's details block, beside bb's own rows. Render
|
|
20057
|
+
* one or more `experimental_DetailRow` elements, or null to show nothing for
|
|
20058
|
+
* this thread. A crash removes only this row for that thread.
|
|
20059
|
+
*/
|
|
20060
|
+
interface ExperimentalThreadInfoRowRegistration {
|
|
20061
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20062
|
+
id: string;
|
|
20063
|
+
/**
|
|
20064
|
+
* Rows sort by `group` (string compare), then by `order` within a group
|
|
20065
|
+
* (unset sorts last), then by registration order, with bb's own rows first
|
|
20066
|
+
* on a tie. bb's groups are
|
|
20067
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_ROW_GROUPS}; any other
|
|
20068
|
+
* string is a group of its own, placed where it sorts. Groups only order
|
|
20069
|
+
* rows; the details block draws no separator between them.
|
|
20070
|
+
*/
|
|
20071
|
+
group: string;
|
|
20072
|
+
order?: number;
|
|
20073
|
+
component: ComponentType<ExperimentalThreadInfoProps>;
|
|
20074
|
+
}
|
|
20075
|
+
/**
|
|
20076
|
+
* A section in the thread Info tab, below the details block. Render one
|
|
20077
|
+
* `experimental_InfoSection`, or null to hide the section for this thread.
|
|
20078
|
+
* The host remembers the section's collapsed state per registration. A crash
|
|
20079
|
+
* removes only this section for that thread.
|
|
20080
|
+
*/
|
|
20081
|
+
interface ExperimentalThreadInfoSectionRegistration {
|
|
20082
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20083
|
+
id: string;
|
|
20084
|
+
/**
|
|
20085
|
+
* Sections sort by `group` (string compare), then by `order` within a group
|
|
20086
|
+
* (unset sorts last), then by registration order, with bb's own sections
|
|
20087
|
+
* first on a tie. bb's groups are
|
|
20088
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_SECTION_GROUPS}; any other
|
|
20089
|
+
* string is a group of its own, placed where it sorts.
|
|
20090
|
+
*/
|
|
20091
|
+
group: string;
|
|
20092
|
+
order?: number;
|
|
20093
|
+
component: ComponentType<ExperimentalThreadInfoProps>;
|
|
20094
|
+
}
|
|
20095
|
+
/**
|
|
20096
|
+
* Props of the host-owned `experimental_InfoSection` component — the heading,
|
|
20097
|
+
* count, and collapse control every Info tab section uses.
|
|
20098
|
+
*/
|
|
20099
|
+
interface ExperimentalInfoSectionProps {
|
|
20100
|
+
label: string;
|
|
20101
|
+
/** Drawn as a pill after the label; omit for no count. */
|
|
20102
|
+
count?: number;
|
|
20103
|
+
/** Drawn after the label and count while the section is expanded. */
|
|
20104
|
+
accessory?: ReactNode;
|
|
20105
|
+
/** Drawn at the heading's trailing edge while the section is expanded. */
|
|
20106
|
+
trailing?: ReactNode;
|
|
20107
|
+
children: ReactNode;
|
|
20108
|
+
}
|
|
20109
|
+
/**
|
|
20110
|
+
* Props of the host-owned `experimental_DetailRow` component — one label and
|
|
20111
|
+
* value pair in the Info tab's details block.
|
|
20112
|
+
*/
|
|
20113
|
+
interface ExperimentalDetailRowProps {
|
|
20114
|
+
label: ReactNode;
|
|
20115
|
+
/** Icon drawn before the label, any name `experimental_Icon` accepts. */
|
|
20116
|
+
icon?: BbIconName;
|
|
20117
|
+
/** Vertical alignment of label and value; defaults to `center`. */
|
|
20118
|
+
align?: "center" | "start";
|
|
20119
|
+
children: ReactNode;
|
|
20120
|
+
}
|
|
20121
|
+
/**
|
|
20122
|
+
* Props of the host-owned `experimental_InfoList` component — the list every
|
|
20123
|
+
* Info tab section uses, collapsed to `limit` rows behind a "N more" toggle.
|
|
20124
|
+
*/
|
|
20125
|
+
interface ExperimentalInfoListProps<Item> {
|
|
20126
|
+
items: readonly Item[];
|
|
20127
|
+
getKey(item: Item): string;
|
|
20128
|
+
/** Usually an `experimental_InfoListRow`. */
|
|
20129
|
+
renderItem(item: Item): ReactNode;
|
|
20130
|
+
/** Rows shown before the "N more" toggle; defaults to 5. */
|
|
20131
|
+
limit?: number;
|
|
20132
|
+
}
|
|
20133
|
+
/**
|
|
20134
|
+
* Props of the host-owned `experimental_InfoListRow` component — one row of an
|
|
20135
|
+
* `experimental_InfoList`.
|
|
20136
|
+
*/
|
|
20137
|
+
interface ExperimentalInfoListRowProps {
|
|
20138
|
+
/** Drawn in the row's 12px leading column, such as an `experimental_Icon`. */
|
|
20139
|
+
leading: ReactNode;
|
|
20140
|
+
/** Tooltip and accessible name for `leading`; omit when it is decorative. */
|
|
20141
|
+
leadingLabel?: string;
|
|
20142
|
+
name: ReactNode;
|
|
20143
|
+
/** Native tooltip on the name. */
|
|
20144
|
+
title?: string;
|
|
20145
|
+
/** Muted text after the name, truncated from the start. */
|
|
20146
|
+
context?: string;
|
|
20147
|
+
/** Drawn at the row's trailing edge, such as a status. */
|
|
20148
|
+
trailing?: ReactNode;
|
|
20149
|
+
/** Runs when the user activates the row; omit for a static row. */
|
|
20150
|
+
onSelect?: () => void;
|
|
20151
|
+
}
|
|
20214
20152
|
interface ExperimentalPluginBrowserToolbarActionRegistration {
|
|
20215
20153
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20216
20154
|
id: string;
|
|
@@ -20633,6 +20571,605 @@ interface PluginDiffRendererRegistration {
|
|
|
20633
20571
|
description?: string;
|
|
20634
20572
|
component: ComponentType<PluginDiffRendererProps>;
|
|
20635
20573
|
}
|
|
20574
|
+
/**
|
|
20575
|
+
* Props passed to an `experimental_composer` component. Deliberately empty:
|
|
20576
|
+
* the component reads everything through `experimental_useComposerRenderer()`
|
|
20577
|
+
* and `useComposer()`.
|
|
20578
|
+
*/
|
|
20579
|
+
interface ExperimentalComposerProps {
|
|
20580
|
+
}
|
|
20581
|
+
/**
|
|
20582
|
+
* Draw bb's composer input box: the editor, its @-mention and slash-command
|
|
20583
|
+
* menus, attachments, voice input, the `+` and send menus and the send and
|
|
20584
|
+
* stop controls. It renders everywhere bb shows a composer (a thread's
|
|
20585
|
+
* composer, the New thread screen, queued and sent message editors). The
|
|
20586
|
+
* banners, approval cards and queued messages above the box stay bb's.
|
|
20587
|
+
*
|
|
20588
|
+
* Exclusive, like `experimental_threadList`: a composer from a plugin the
|
|
20589
|
+
* user installed wins over the bundled one, then the first in slot order.
|
|
20590
|
+
* Users choose under Settings → Appearance → Composer (`composer.provider`).
|
|
20591
|
+
* bb ships its own composer as the bundled Composer plugin; with no composer
|
|
20592
|
+
* plugin enabled, no composer is shown.
|
|
20593
|
+
*
|
|
20594
|
+
* The host keeps the draft, uploads, history, pickers and submission; the
|
|
20595
|
+
* component draws over them with `experimental_useComposerRenderer()`.
|
|
20596
|
+
*/
|
|
20597
|
+
interface ExperimentalComposerRegistration {
|
|
20598
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20599
|
+
id: string;
|
|
20600
|
+
/** Label shown in the provider choice and capability details. */
|
|
20601
|
+
title: string;
|
|
20602
|
+
/** Optional one-line description shown with the provider choice. */
|
|
20603
|
+
description?: string;
|
|
20604
|
+
component: ComponentType<ExperimentalComposerProps>;
|
|
20605
|
+
}
|
|
20606
|
+
/**
|
|
20607
|
+
* One way the box submits, worked out by the host for this surface and the
|
|
20608
|
+
* user's settings: what it does now, whether it needs a draft, and its key.
|
|
20609
|
+
*/
|
|
20610
|
+
interface ExperimentalComposerAction {
|
|
20611
|
+
/**
|
|
20612
|
+
* `"send"` sends the draft, `"queue"` queues it behind the running turn,
|
|
20613
|
+
* `"steer"` adds it to the running turn.
|
|
20614
|
+
*/
|
|
20615
|
+
kind: "queue" | "send" | "steer";
|
|
20616
|
+
/**
|
|
20617
|
+
* The action needs a non-empty draft. A steer does not: with an empty
|
|
20618
|
+
* draft it steers the next queued message.
|
|
20619
|
+
*/
|
|
20620
|
+
requiresInput: boolean;
|
|
20621
|
+
/** The key that runs it, formatted for display. */
|
|
20622
|
+
shortcut: ExperimentalShortcutPresentation;
|
|
20623
|
+
/**
|
|
20624
|
+
* Run it without the checks `useComposer().submit()` applies: the box has
|
|
20625
|
+
* already decided it may. A failed send shows bb's error toast and restores
|
|
20626
|
+
* the draft.
|
|
20627
|
+
*/
|
|
20628
|
+
run(): void;
|
|
20629
|
+
}
|
|
20630
|
+
/** Submit-button state and actions the host computes for a composer. */
|
|
20631
|
+
interface ExperimentalComposerSubmission {
|
|
20632
|
+
isSubmitting?: boolean;
|
|
20633
|
+
disabled?: boolean;
|
|
20634
|
+
disabledReason?: string;
|
|
20635
|
+
label?: string;
|
|
20636
|
+
icon?: BbIconName;
|
|
20637
|
+
title?: string;
|
|
20638
|
+
isRunning?: boolean;
|
|
20639
|
+
onStop?: () => void;
|
|
20640
|
+
/** What Enter (and the send button) does. */
|
|
20641
|
+
enter: ExperimentalComposerAction;
|
|
20642
|
+
/** What modifier+Enter does, or null where the surface has one action. */
|
|
20643
|
+
modifier: ExperimentalComposerAction | null;
|
|
20644
|
+
/** Offer `modifier` in the send button's menu too, not only on its shortcut. */
|
|
20645
|
+
showModifierInMenu: boolean;
|
|
20646
|
+
}
|
|
20647
|
+
/** The characters that open the slash-command and skill menus. */
|
|
20648
|
+
type ExperimentalComposerCommandTrigger = "$" | "/";
|
|
20649
|
+
/** The text typed after an @-mention or command trigger while its menu is open. */
|
|
20650
|
+
interface ExperimentalComposerSearchQuery<Trigger extends string> {
|
|
20651
|
+
text: string;
|
|
20652
|
+
trigger: Trigger;
|
|
20653
|
+
}
|
|
20654
|
+
/** How a suggested thread relates to the thread being composed in. */
|
|
20655
|
+
type ExperimentalComposerThreadRelation = "child" | "parent" | "same-environment" | "same-parent";
|
|
20656
|
+
type MentionTargetOf<Kind extends ExperimentalComposerMentionTarget["kind"]> = Extract<ExperimentalComposerMentionTarget, {
|
|
20657
|
+
kind: Kind;
|
|
20658
|
+
}>;
|
|
20659
|
+
/**
|
|
20660
|
+
* One @-mention result. `mention` is the pill choosing it inserts; `text` is
|
|
20661
|
+
* what the pill stands for after the trigger, such as `src/app.ts` or
|
|
20662
|
+
* `thread:thr_1`. `key` is stable across result updates.
|
|
20663
|
+
*/
|
|
20664
|
+
type ExperimentalComposerMentionSuggestion = {
|
|
20665
|
+
key: string;
|
|
20666
|
+
text: string;
|
|
20667
|
+
} & ({
|
|
20668
|
+
kind: "path";
|
|
20669
|
+
mention: MentionTargetOf<"path">;
|
|
20670
|
+
} | {
|
|
20671
|
+
kind: "thread";
|
|
20672
|
+
mention: MentionTargetOf<"thread"> & {
|
|
20673
|
+
projectId: string;
|
|
20674
|
+
};
|
|
20675
|
+
/** The thread's own title; null when it has none and the pill shows its id. */
|
|
20676
|
+
title: string | null;
|
|
20677
|
+
/** The thread's project, when it differs from the composer's. */
|
|
20678
|
+
projectName: string | null;
|
|
20679
|
+
relation: ExperimentalComposerThreadRelation | null;
|
|
20680
|
+
} | {
|
|
20681
|
+
kind: "project";
|
|
20682
|
+
mention: MentionTargetOf<"project">;
|
|
20683
|
+
} | {
|
|
20684
|
+
kind: "section";
|
|
20685
|
+
mention: MentionTargetOf<"section">;
|
|
20686
|
+
} | {
|
|
20687
|
+
kind: "plugin";
|
|
20688
|
+
mention: MentionTargetOf<"plugin">;
|
|
20689
|
+
/** The mention provider's name, such as "Issues". */
|
|
20690
|
+
providerLabel: string;
|
|
20691
|
+
subtitle: string | null;
|
|
20692
|
+
});
|
|
20693
|
+
/** Mention results under one heading, in display order. */
|
|
20694
|
+
interface ExperimentalComposerMentionSuggestionGroup {
|
|
20695
|
+
key: string;
|
|
20696
|
+
label: string;
|
|
20697
|
+
suggestions: readonly ExperimentalComposerMentionSuggestion[];
|
|
20698
|
+
}
|
|
20699
|
+
/** What `experimental_useComposerMentionSearch` returns. */
|
|
20700
|
+
interface ExperimentalComposerMentionSearch {
|
|
20701
|
+
/** `"idle"` without a query. */
|
|
20702
|
+
status: "error" | "idle" | "loading" | "ready";
|
|
20703
|
+
/** Earlier results are showing while newer ones load. */
|
|
20704
|
+
refreshing: boolean;
|
|
20705
|
+
groups: readonly ExperimentalComposerMentionSuggestionGroup[];
|
|
20706
|
+
/**
|
|
20707
|
+
* Set the open mention menu's query, or null when it closes. Call it from
|
|
20708
|
+
* the event that changes the menu, next to the composer's own state update,
|
|
20709
|
+
* so the results arrive in the same render.
|
|
20710
|
+
*/
|
|
20711
|
+
search(query: ExperimentalComposerSearchQuery<PluginMentionTrigger> | null): void;
|
|
20712
|
+
}
|
|
20713
|
+
/** One slash-command or skill result. */
|
|
20714
|
+
interface ExperimentalComposerCommandSuggestion {
|
|
20715
|
+
kind: "command";
|
|
20716
|
+
name: string;
|
|
20717
|
+
source: "command" | "skill";
|
|
20718
|
+
origin: "builtin" | "project" | "user";
|
|
20719
|
+
description: string | null;
|
|
20720
|
+
argumentHint: string | null;
|
|
20721
|
+
/** The plugin that contributed the command; absent for the provider's own. */
|
|
20722
|
+
pluginId?: string;
|
|
20723
|
+
}
|
|
20724
|
+
/** Command results under one heading, such as "Skills", in display order. */
|
|
20725
|
+
interface ExperimentalComposerCommandSuggestionGroup {
|
|
20726
|
+
key: string;
|
|
20727
|
+
label: string;
|
|
20728
|
+
suggestions: readonly ExperimentalComposerCommandSuggestion[];
|
|
20729
|
+
}
|
|
20730
|
+
/** What `experimental_useComposerCommandSearch` returns. */
|
|
20731
|
+
interface ExperimentalComposerCommandSearch {
|
|
20732
|
+
/** `"idle"` without a query. */
|
|
20733
|
+
status: "error" | "idle" | "loading" | "ready";
|
|
20734
|
+
/** Earlier results are showing while newer ones load. */
|
|
20735
|
+
refreshing: boolean;
|
|
20736
|
+
/** Ranked for the query, under their headings. */
|
|
20737
|
+
groups: readonly ExperimentalComposerCommandSuggestionGroup[];
|
|
20738
|
+
/**
|
|
20739
|
+
* Set the open command menu's query, or null when it closes. Call it from
|
|
20740
|
+
* the event that changes the menu, next to the composer's own state update,
|
|
20741
|
+
* so the results arrive in the same render.
|
|
20742
|
+
*/
|
|
20743
|
+
search(query: ExperimentalComposerSearchQuery<ExperimentalComposerCommandTrigger> | null): void;
|
|
20744
|
+
}
|
|
20745
|
+
/** An attachment upload that has not finished yet. */
|
|
20746
|
+
interface ExperimentalComposerPendingUpload {
|
|
20747
|
+
id: string;
|
|
20748
|
+
file: File;
|
|
20749
|
+
}
|
|
20750
|
+
/** The draft's attachments and bb's upload pipeline for them. */
|
|
20751
|
+
interface ExperimentalComposerAttachments {
|
|
20752
|
+
items?: readonly ComposerAttachment[];
|
|
20753
|
+
pendingUploads?: readonly ExperimentalComposerPendingUpload[];
|
|
20754
|
+
isAttaching?: boolean;
|
|
20755
|
+
error?: string | null;
|
|
20756
|
+
/** Upload files and add them to the draft; resolves with the added attachments. */
|
|
20757
|
+
onAttachFiles?(files: File[]): Promise<readonly ComposerAttachment[]>;
|
|
20758
|
+
onUpdate?(update: (attachments: readonly ComposerAttachment[]) => readonly ComposerAttachment[]): void;
|
|
20759
|
+
projectId?: string;
|
|
20760
|
+
}
|
|
20761
|
+
/** Up-arrow prompt history for the composer. */
|
|
20762
|
+
interface ExperimentalComposerHistory {
|
|
20763
|
+
currentDraft: ComposerDraftSnapshot;
|
|
20764
|
+
entries: readonly ComposerDraftSnapshot[];
|
|
20765
|
+
onSelectEntry(draft: ComposerDraftSnapshot): void;
|
|
20766
|
+
resetKey?: string | number;
|
|
20767
|
+
}
|
|
20768
|
+
type ExperimentalVoiceDelivery = "insert" | "send";
|
|
20769
|
+
/** A voice recording whose transcription failed, kept for retry. */
|
|
20770
|
+
interface ExperimentalFailedVoiceRecording {
|
|
20771
|
+
id: string;
|
|
20772
|
+
key: string;
|
|
20773
|
+
file: File;
|
|
20774
|
+
promptContext: string | undefined;
|
|
20775
|
+
delivery: ExperimentalVoiceDelivery;
|
|
20776
|
+
createdAt: number;
|
|
20777
|
+
errorMessage: string | null;
|
|
20778
|
+
retrying: boolean;
|
|
20779
|
+
}
|
|
20780
|
+
/** bb's voice input for the composer. */
|
|
20781
|
+
interface ExperimentalComposerVoice {
|
|
20782
|
+
state: "error" | "idle" | "recording" | "transcribing";
|
|
20783
|
+
delivery: ExperimentalVoiceDelivery;
|
|
20784
|
+
microphoneWarning: string | null;
|
|
20785
|
+
isSupported: boolean;
|
|
20786
|
+
/** Why voice input is unavailable, as a message safe to show; read it only while `isSupported` is false. */
|
|
20787
|
+
unsupportedMessage: string;
|
|
20788
|
+
stream: MediaStream | null;
|
|
20789
|
+
failedRecordings: readonly ExperimentalFailedVoiceRecording[];
|
|
20790
|
+
start(): void | Promise<void>;
|
|
20791
|
+
stop(): void;
|
|
20792
|
+
send(): void;
|
|
20793
|
+
retry(recording: ExperimentalFailedVoiceRecording): void;
|
|
20794
|
+
discard(recording: ExperimentalFailedVoiceRecording): void;
|
|
20795
|
+
download(recording: ExperimentalFailedVoiceRecording): void;
|
|
20796
|
+
cancel(): void;
|
|
20797
|
+
}
|
|
20798
|
+
/** A host shortcut prompt action in the composer's `+` menu. */
|
|
20799
|
+
interface ExperimentalComposerPromptAction {
|
|
20800
|
+
kind: "goal" | "plan" | "skills";
|
|
20801
|
+
text: string;
|
|
20802
|
+
/** The command the action puts at the start of the draft, if any. */
|
|
20803
|
+
command?: {
|
|
20804
|
+
trigger: ExperimentalComposerCommandTrigger;
|
|
20805
|
+
name: string;
|
|
20806
|
+
trailingText: string;
|
|
20807
|
+
};
|
|
20808
|
+
}
|
|
20809
|
+
/**
|
|
20810
|
+
* Everything the host passes to a composer box for one surface. Read and
|
|
20811
|
+
* write the draft with `useComposer().draft` and `replace`, and submit with
|
|
20812
|
+
* `useComposer().submit()`; inside a composer box they are bound to this box.
|
|
20813
|
+
* The box decides where bb's controls (`executionControls`, `handoff`,
|
|
20814
|
+
* `compactBeforeSend`) go, or whether to show them.
|
|
20815
|
+
*/
|
|
20816
|
+
interface ExperimentalComposerInput {
|
|
20817
|
+
id?: string;
|
|
20818
|
+
/**
|
|
20819
|
+
* Where the box sits: a thread's composer (including queued and sent
|
|
20820
|
+
* message editors) or the New thread screen.
|
|
20821
|
+
*/
|
|
20822
|
+
surface: "new-thread" | "thread";
|
|
20823
|
+
onEscape?(): void;
|
|
20824
|
+
placeholder?: string;
|
|
20825
|
+
autoFocus?: boolean;
|
|
20826
|
+
/** bb's model, reasoning effort and mode controls for this composer. */
|
|
20827
|
+
executionControls?: ReactNode;
|
|
20828
|
+
/** The "Handoff to new thread" banner, while a handoff is active. */
|
|
20829
|
+
handoff?: ReactNode;
|
|
20830
|
+
/** bb's chip offering to compact the context before sending. */
|
|
20831
|
+
compactBeforeSend?: ReactNode;
|
|
20832
|
+
submission: ExperimentalComposerSubmission;
|
|
20833
|
+
/** The editor's minimum height, from the space the host leaves above the box. */
|
|
20834
|
+
minHeight?: number;
|
|
20835
|
+
/** The most height the whole box may take; the editor scrolls inside it. */
|
|
20836
|
+
maxHeight?: number;
|
|
20837
|
+
/** Characters that open the @-mention menu; search with `experimental_useComposerMentionSearch`. */
|
|
20838
|
+
mentionTriggers: readonly PluginMentionTrigger[];
|
|
20839
|
+
/**
|
|
20840
|
+
* Characters that open the command menu; search with
|
|
20841
|
+
* `experimental_useComposerCommandSearch`. Never repeats a mention trigger:
|
|
20842
|
+
* when a plugin mention provider claims `$`, `$` opens the mention menu.
|
|
20843
|
+
*/
|
|
20844
|
+
commandTriggers: readonly ExperimentalComposerCommandTrigger[];
|
|
20845
|
+
/**
|
|
20846
|
+
* What clicking a pill for `mention` does, or null when it is not a link.
|
|
20847
|
+
* An attachment mention opens the draft's attachment at that path, so an
|
|
20848
|
+
* attachment tile can ask with `{ kind: "attachment", path, label }`.
|
|
20849
|
+
*/
|
|
20850
|
+
resolveMentionLink(mention: ExperimentalComposerMentionTarget): (() => void) | null;
|
|
20851
|
+
/** Whether menus fit above or below the box where the host placed it. */
|
|
20852
|
+
mentionMenuPlacement: "bottom" | "top";
|
|
20853
|
+
attachments?: ExperimentalComposerAttachments;
|
|
20854
|
+
promptActions?: readonly ExperimentalComposerPromptAction[];
|
|
20855
|
+
/** Collapse the box at the user's request; absent where it cannot collapse. */
|
|
20856
|
+
onCollapse?(): void;
|
|
20857
|
+
/**
|
|
20858
|
+
* When to show the box's one-line compact form, with `placeholder`;
|
|
20859
|
+
* absent, never. `"always"`: the host collapsed the box, on compact
|
|
20860
|
+
* viewports or after `onCollapse`. `"narrow"`: only while the thread pane
|
|
20861
|
+
* is short or its column narrow, which bb signals in CSS so it applies
|
|
20862
|
+
* without a render; style that form under
|
|
20863
|
+
* `@container follow-up-composer style(--follow-up-composer-container-compact: true)`.
|
|
20864
|
+
* Report the form the box shows in `editor.state.layout`.
|
|
20865
|
+
*/
|
|
20866
|
+
compact?: {
|
|
20867
|
+
when: "always" | "narrow";
|
|
20868
|
+
placeholder: string;
|
|
20869
|
+
};
|
|
20870
|
+
history?: ExperimentalComposerHistory;
|
|
20871
|
+
voice?: ExperimentalComposerVoice;
|
|
20872
|
+
}
|
|
20873
|
+
/** A composer's scope, layout, draft summary and run state. */
|
|
20874
|
+
interface ExperimentalComposerView {
|
|
20875
|
+
scope: PluginComposerScope;
|
|
20876
|
+
layout: "compact" | "expanded" | "zen";
|
|
20877
|
+
draft: {
|
|
20878
|
+
text: string;
|
|
20879
|
+
isEmpty: boolean;
|
|
20880
|
+
attachmentCount: number;
|
|
20881
|
+
};
|
|
20882
|
+
run: {
|
|
20883
|
+
isRunning: boolean;
|
|
20884
|
+
isSubmitting: boolean;
|
|
20885
|
+
};
|
|
20886
|
+
}
|
|
20887
|
+
/** A contribution another plugin registered with `app.composer.customize`. */
|
|
20888
|
+
interface ExperimentalComposerContribution {
|
|
20889
|
+
/** Stable across renders; use it as the React key. */
|
|
20890
|
+
key: string;
|
|
20891
|
+
pluginId: string;
|
|
20892
|
+
customizationId: string;
|
|
20893
|
+
generation: number;
|
|
20894
|
+
}
|
|
20895
|
+
interface ExperimentalComposerPlusMenuContribution extends ExperimentalComposerContribution {
|
|
20896
|
+
item: ComposerPlusMenuItem;
|
|
20897
|
+
}
|
|
20898
|
+
interface ExperimentalComposerSendMenuContribution extends ExperimentalComposerContribution {
|
|
20899
|
+
item: ComposerSendMenuItem;
|
|
20900
|
+
}
|
|
20901
|
+
interface ExperimentalComposerPopupContribution extends ExperimentalComposerContribution {
|
|
20902
|
+
popup: ExperimentalComposerPopupRegistration;
|
|
20903
|
+
}
|
|
20904
|
+
/**
|
|
20905
|
+
* Highlight rules to paint over the draft: bb's built-in highlights, other
|
|
20906
|
+
* plugins' `richText.effects` and `useComposer().setTextEffect` effects, in
|
|
20907
|
+
* paint order.
|
|
20908
|
+
*/
|
|
20909
|
+
interface ExperimentalComposerDecorationSource {
|
|
20910
|
+
id: string;
|
|
20911
|
+
generation: string | number;
|
|
20912
|
+
pluginId?: string;
|
|
20913
|
+
effects: readonly NonNullable<ComposerRichTextSpec["effects"]>[number][];
|
|
20914
|
+
}
|
|
20915
|
+
/** Editor state a composer box reports so other plugins' `useComposer()` sees it. */
|
|
20916
|
+
interface ExperimentalComposerEditorState {
|
|
20917
|
+
layout: "compact" | "expanded";
|
|
20918
|
+
isRunning: boolean;
|
|
20919
|
+
isSubmitting: boolean;
|
|
20920
|
+
isSubmittingBlocked: boolean;
|
|
20921
|
+
submittingBlockedReason: string | null;
|
|
20922
|
+
isAttaching: boolean;
|
|
20923
|
+
attachmentError: string | null;
|
|
20924
|
+
}
|
|
20925
|
+
/**
|
|
20926
|
+
* What only the composer's editor can do, handed to
|
|
20927
|
+
* `experimental_ComposerRoot`: report its state, insert at its caret, take
|
|
20928
|
+
* focus, accept a dropped thread, run other plugins' popups and take voice
|
|
20929
|
+
* input. bb reaches the composer only through this.
|
|
20930
|
+
*/
|
|
20931
|
+
interface ExperimentalComposerEditor {
|
|
20932
|
+
state: ExperimentalComposerEditorState;
|
|
20933
|
+
/** Mention ranges are relative to `value.text`. Return false without a caret. */
|
|
20934
|
+
insertAtCursor(value: ComposerDraft, block: boolean): boolean;
|
|
20935
|
+
/** Focus the editor, keeping its selection; false when it cannot take focus. */
|
|
20936
|
+
focus(): boolean;
|
|
20937
|
+
/** Focus the editor with the caret at the end of the draft. */
|
|
20938
|
+
focusEnd(): void;
|
|
20939
|
+
/** Whether a thread dragged from the sidebar can be dropped now. */
|
|
20940
|
+
acceptsThreadDrop(): boolean;
|
|
20941
|
+
/** Insert a dropped thread at the viewport point `x`, `y`. */
|
|
20942
|
+
insertDroppedThread(thread: ExperimentalDroppedThreadMention, x: number, y: number): void;
|
|
20943
|
+
openPopup(pluginId: string, popupId: string): boolean;
|
|
20944
|
+
closePopup(pluginId: string): boolean;
|
|
20945
|
+
isPopupOpen(): boolean;
|
|
20946
|
+
/** How the composer takes bb's voice input; omit when it has none. */
|
|
20947
|
+
voice?: ExperimentalComposerEditorVoice;
|
|
20948
|
+
}
|
|
20949
|
+
/** What a composer does with bb's voice input; recording and transcription stay bb's. */
|
|
20950
|
+
interface ExperimentalComposerEditorVoice {
|
|
20951
|
+
/** The draft before the caret, sent with a recording to help transcription; null when empty. */
|
|
20952
|
+
textBeforeCursor(): string | null;
|
|
20953
|
+
/** Put a finished transcript at the caret; with `"send"`, submit the draft after. */
|
|
20954
|
+
deliverTranscript(text: string, delivery: ExperimentalVoiceDelivery): void;
|
|
20955
|
+
/** Animate leaving voice mode; resolves when the composer is ready for the transcript. */
|
|
20956
|
+
playCompletionTransition(): Promise<void>;
|
|
20957
|
+
}
|
|
20958
|
+
/** Props of `experimental_ComposerRoot`. */
|
|
20959
|
+
interface ExperimentalComposerRootProps {
|
|
20960
|
+
/** The composer's outermost element. */
|
|
20961
|
+
rootRef: RefObject<HTMLElement | null>;
|
|
20962
|
+
editor: ExperimentalComposerEditor;
|
|
20963
|
+
/**
|
|
20964
|
+
* The composer's @-mention and command menu, and whether it is open, so
|
|
20965
|
+
* hosts that make room for it can measure it.
|
|
20966
|
+
*/
|
|
20967
|
+
menuRef?: RefObject<HTMLElement | null>;
|
|
20968
|
+
menuOpen?: boolean;
|
|
20969
|
+
}
|
|
20970
|
+
/** The thread a bb thread link names, before it is resolved. */
|
|
20971
|
+
interface ExperimentalComposerThreadLinkTarget {
|
|
20972
|
+
threadId: string;
|
|
20973
|
+
projectId: string;
|
|
20974
|
+
}
|
|
20975
|
+
/** A thread a pasted bb thread link resolved to. */
|
|
20976
|
+
interface ExperimentalComposerThreadLink extends ExperimentalComposerThreadLinkTarget {
|
|
20977
|
+
label: string;
|
|
20978
|
+
}
|
|
20979
|
+
/** The thread an app drag dropped onto the composer. */
|
|
20980
|
+
interface ExperimentalDroppedThreadMention {
|
|
20981
|
+
threadId: string;
|
|
20982
|
+
label: string;
|
|
20983
|
+
}
|
|
20984
|
+
/** A keyboard shortcut formatted for display. */
|
|
20985
|
+
interface ExperimentalShortcutPresentation {
|
|
20986
|
+
ariaKeyshortcuts: string;
|
|
20987
|
+
label: string;
|
|
20988
|
+
}
|
|
20989
|
+
/** A bb message copied to the clipboard, read back on paste. */
|
|
20990
|
+
interface ExperimentalMessageClipboardPayload {
|
|
20991
|
+
text: string;
|
|
20992
|
+
imageUrl: string;
|
|
20993
|
+
}
|
|
20994
|
+
/** bb thread links in the composer, from `experimental_useComposerRenderer().threadLinks`. */
|
|
20995
|
+
interface ExperimentalComposerThreadLinks {
|
|
20996
|
+
/**
|
|
20997
|
+
* The thread `url` links to when it is a thread link of this bb, or null.
|
|
20998
|
+
* `projectId` is the project the link names, or the personal project for
|
|
20999
|
+
* a link without one; a thread outside that project is not this link.
|
|
21000
|
+
*/
|
|
21001
|
+
parse(url: string): ExperimentalComposerThreadLinkTarget | null;
|
|
21002
|
+
/** A linked thread from bb's caches, without a request. */
|
|
21003
|
+
cached(threadId: string): ExperimentalComposerThreadLink | null;
|
|
21004
|
+
/**
|
|
21005
|
+
* Fetch linked threads in batches, calling `onBatch` as each batch lands
|
|
21006
|
+
* so a deadline can keep the batches that finished. Threads that do not
|
|
21007
|
+
* exist are left out. Resolves once every batch has settled.
|
|
21008
|
+
*/
|
|
21009
|
+
resolve(threadIds: readonly string[], signal: AbortSignal, onBatch: (threads: readonly ExperimentalComposerThreadLink[]) => void): Promise<void>;
|
|
21010
|
+
}
|
|
21011
|
+
/** bb messages copied to the clipboard, from `experimental_useComposerRenderer().clipboard`. */
|
|
21012
|
+
interface ExperimentalComposerClipboard {
|
|
21013
|
+
/** Read a bb message copied as HTML, or null. */
|
|
21014
|
+
readMessage(html: string): ExperimentalMessageClipboardPayload | null;
|
|
21015
|
+
/** Fetch a copied bb message's image as a file; rejects when it is unavailable. */
|
|
21016
|
+
readMessageImage(imageUrl: string, signal: AbortSignal): Promise<File>;
|
|
21017
|
+
}
|
|
21018
|
+
/**
|
|
21019
|
+
* Inputs, host state and host services for one composer box. Only available
|
|
21020
|
+
* inside an `experimental_composer` component; it throws elsewhere.
|
|
21021
|
+
*/
|
|
21022
|
+
interface ExperimentalComposerRendererApi {
|
|
21023
|
+
readonly input: ExperimentalComposerInput;
|
|
21024
|
+
/** The composer this box draws: scope, layout, draft and run state. */
|
|
21025
|
+
readonly view: ExperimentalComposerView;
|
|
21026
|
+
/** Stable identity of this composer's draft (`useComposer().key`). */
|
|
21027
|
+
readonly key: string;
|
|
21028
|
+
/** A plugin locked editing through `useComposer().setInputLock(true)`. */
|
|
21029
|
+
readonly inputLocked: boolean;
|
|
21030
|
+
/** The shortcut of bb's "Focus composer" command, or null when unbound. */
|
|
21031
|
+
readonly focusComposerShortcut: ExperimentalShortcutPresentation | null;
|
|
21032
|
+
/**
|
|
21033
|
+
* Every highlight rule to paint over the draft, in paint order. The host
|
|
21034
|
+
* runs other plugins' draft observers itself.
|
|
21035
|
+
*/
|
|
21036
|
+
readonly decorationSources: readonly ExperimentalComposerDecorationSource[];
|
|
21037
|
+
readonly threadLinks: ExperimentalComposerThreadLinks;
|
|
21038
|
+
readonly clipboard: ExperimentalComposerClipboard;
|
|
21039
|
+
/**
|
|
21040
|
+
* Run bb's app keyboard command for `event`, if any; returns whether one
|
|
21041
|
+
* ran. Call it from the editor's key handler before handling the key
|
|
21042
|
+
* itself, skipping IME composition: editors swallow keys before bb's
|
|
21043
|
+
* window-level shortcuts see them.
|
|
21044
|
+
*/
|
|
21045
|
+
dispatchAppCommandKey(event: KeyboardEvent): boolean;
|
|
21046
|
+
/** Show an error toast. */
|
|
21047
|
+
showError(message: string): void;
|
|
21048
|
+
/**
|
|
21049
|
+
* Image URL for an attachment: the local preview while it is still
|
|
21050
|
+
* uploading, else the uploaded file, resolved through the project when
|
|
21051
|
+
* given. bb releases local previews when attachments leave the draft.
|
|
21052
|
+
*/
|
|
21053
|
+
attachmentSrc(path: string, projectId?: string): string;
|
|
21054
|
+
}
|
|
21055
|
+
/**
|
|
21056
|
+
* Other plugins' contributions to this composer, from
|
|
21057
|
+
* `experimental_useComposerContributions()`, with a host renderer for each
|
|
21058
|
+
* kind. Surfaces that hide plugin customizations return no popups, send
|
|
21059
|
+
* menu items or actions.
|
|
21060
|
+
*/
|
|
21061
|
+
interface ExperimentalComposerContributions {
|
|
21062
|
+
/** Popups other plugins open with `useComposer().openPopup`; render the open one with `Popup`. */
|
|
21063
|
+
readonly popups: readonly ExperimentalComposerPopupContribution[];
|
|
21064
|
+
/** Render each with `MenuEntry` and `kind: "plus"`. */
|
|
21065
|
+
readonly plusMenuItems: readonly ExperimentalComposerPlusMenuContribution[];
|
|
21066
|
+
/** Render each with `MenuEntry` and `kind: "send"`. */
|
|
21067
|
+
readonly sendMenuItems: readonly ExperimentalComposerSendMenuContribution[];
|
|
21068
|
+
/** Other plugins' inline actions, for the composer's action row. */
|
|
21069
|
+
readonly Actions: ComponentType;
|
|
21070
|
+
readonly Popup: ComponentType<ExperimentalComposerPopupProps>;
|
|
21071
|
+
readonly MenuEntry: ComponentType<ExperimentalComposerMenuEntryProps>;
|
|
21072
|
+
}
|
|
21073
|
+
/** Props of `ExperimentalComposerContributions.Popup`. */
|
|
21074
|
+
interface ExperimentalComposerPopupProps {
|
|
21075
|
+
contribution: ExperimentalComposerPopupContribution;
|
|
21076
|
+
onClose(): void;
|
|
21077
|
+
}
|
|
21078
|
+
/** What a selected `+` or send menu entry hands back to the menu. */
|
|
21079
|
+
interface ExperimentalComposerMenuSelection {
|
|
21080
|
+
restoreComposerFocus(): void;
|
|
21081
|
+
selectedElement: Element | null;
|
|
21082
|
+
}
|
|
21083
|
+
/** Props of `ExperimentalComposerContributions.MenuEntry`. */
|
|
21084
|
+
type ExperimentalComposerMenuEntryProps = {
|
|
21085
|
+
kind: "plus";
|
|
21086
|
+
contribution: ExperimentalComposerPlusMenuContribution;
|
|
21087
|
+
onSelected?(selection: ExperimentalComposerMenuSelection): void;
|
|
21088
|
+
} | {
|
|
21089
|
+
kind: "send";
|
|
21090
|
+
contribution: ExperimentalComposerSendMenuContribution;
|
|
21091
|
+
onSelected?(selection: ExperimentalComposerMenuSelection): void;
|
|
21092
|
+
};
|
|
21093
|
+
/** Props of `experimental_VoiceInputButton`: bb's button with a microphone warning tooltip. */
|
|
21094
|
+
interface ExperimentalVoiceInputButtonProps extends ComponentPropsWithRef<"button"> {
|
|
21095
|
+
warning: string | null;
|
|
21096
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
|
|
21097
|
+
size?: "default" | "icon" | "lg" | "sm";
|
|
21098
|
+
"data-promptbox-expanded-only"?: string;
|
|
21099
|
+
"data-promptbox-submit-action"?: string;
|
|
21100
|
+
}
|
|
21101
|
+
/** Props of `experimental_VoiceRecordingBar`. */
|
|
21102
|
+
interface ExperimentalVoiceRecordingBarProps {
|
|
21103
|
+
isCompact: boolean;
|
|
21104
|
+
state: "recording" | "transcribing";
|
|
21105
|
+
delivery: ExperimentalVoiceDelivery;
|
|
21106
|
+
stream: MediaStream | null;
|
|
21107
|
+
microphoneWarning: string | null;
|
|
21108
|
+
submitIcon: BbIconName;
|
|
21109
|
+
onConfirm(): void;
|
|
21110
|
+
onSend(): void;
|
|
21111
|
+
onCancel(): void;
|
|
21112
|
+
}
|
|
21113
|
+
/** Props of `experimental_FailedVoiceRecordings`. */
|
|
21114
|
+
interface ExperimentalFailedVoiceRecordingsProps {
|
|
21115
|
+
recordings: readonly ExperimentalFailedVoiceRecording[];
|
|
21116
|
+
className: string;
|
|
21117
|
+
retryDisabled: boolean;
|
|
21118
|
+
onRetry(recording: ExperimentalFailedVoiceRecording): void;
|
|
21119
|
+
onDownload(recording: ExperimentalFailedVoiceRecording): void;
|
|
21120
|
+
onDiscard(recording: ExperimentalFailedVoiceRecording): void;
|
|
21121
|
+
}
|
|
21122
|
+
/** Props of `experimental_ShortcutHint`. */
|
|
21123
|
+
interface ExperimentalShortcutHintProps {
|
|
21124
|
+
shortcut: ExperimentalShortcutPresentation | null;
|
|
21125
|
+
className?: string;
|
|
21126
|
+
}
|
|
21127
|
+
/** Props of `experimental_ImageLightbox`. */
|
|
21128
|
+
interface ExperimentalImageLightboxProps {
|
|
21129
|
+
hasMultipleImages?: boolean;
|
|
21130
|
+
previousDisabled?: boolean;
|
|
21131
|
+
nextDisabled?: boolean;
|
|
21132
|
+
navigationStatus?: string;
|
|
21133
|
+
mediaType?: "image" | "video";
|
|
21134
|
+
imageAlt: string;
|
|
21135
|
+
imageSrc: string | null;
|
|
21136
|
+
isOpen?: boolean;
|
|
21137
|
+
onClose(): void;
|
|
21138
|
+
onNext?(): void;
|
|
21139
|
+
onPrevious?(): void;
|
|
21140
|
+
title: string;
|
|
21141
|
+
}
|
|
21142
|
+
/** How bb draws an @-mention pill, from `experimental_describePromptMention`. */
|
|
21143
|
+
interface ExperimentalPromptMentionPresentation {
|
|
21144
|
+
/** bb's pill classes; add your own after them. */
|
|
21145
|
+
className: string;
|
|
21146
|
+
/** The pill's tooltip, such as `src/app.ts` or `/review <files>`. */
|
|
21147
|
+
title: string;
|
|
21148
|
+
/** The pill as text, naming its kind: `Thread: Fix login`. */
|
|
21149
|
+
text: string;
|
|
21150
|
+
}
|
|
21151
|
+
/** A pill read back from pasted HTML by `experimental_readPromptMentionClipboard`. */
|
|
21152
|
+
interface ExperimentalPromptMentionClipboardPill {
|
|
21153
|
+
mention: ExperimentalComposerMentionTarget;
|
|
21154
|
+
/** The draft text the pill covers, such as `@src/app.ts`. */
|
|
21155
|
+
text: string;
|
|
21156
|
+
}
|
|
21157
|
+
/** Props of `experimental_PromptMentionIcon`. */
|
|
21158
|
+
interface ExperimentalPromptMentionIconProps {
|
|
21159
|
+
mention: ExperimentalComposerMentionTarget;
|
|
21160
|
+
className?: string;
|
|
21161
|
+
}
|
|
21162
|
+
/** Props of `experimental_PluginIcon`: a plugin's branding icon. */
|
|
21163
|
+
interface ExperimentalPluginIconProps {
|
|
21164
|
+
pluginId: string;
|
|
21165
|
+
icon: string | null;
|
|
21166
|
+
className?: string;
|
|
21167
|
+
}
|
|
21168
|
+
/** Props of `experimental_ThreadTitleText`: a raw thread title with its @-mentions resolved. */
|
|
21169
|
+
interface ExperimentalThreadTitleTextProps {
|
|
21170
|
+
title: string;
|
|
21171
|
+
className?: string;
|
|
21172
|
+
}
|
|
20636
21173
|
/**
|
|
20637
21174
|
* Register a leaf message directive rendered inside assistant (and nested
|
|
20638
21175
|
* agent) message Markdown. `id` is the directive name: `inline-vis` matches
|
|
@@ -20696,7 +21233,7 @@ interface ThreadChatMessageReference {
|
|
|
20696
21233
|
* {@link PluginPanelActionOpenOptions} instead.
|
|
20697
21234
|
*/
|
|
20698
21235
|
interface PluginTargetedPanelActionOpenOptions extends PluginPanelActionOpenOptions {
|
|
20699
|
-
/** A
|
|
21236
|
+
/** A thread action tab id registered by this same plugin. */
|
|
20700
21237
|
actionId: string;
|
|
20701
21238
|
}
|
|
20702
21239
|
/** Context handed to a `messageAction`'s `run`. */
|
|
@@ -20710,12 +21247,12 @@ interface PluginMessageActionContext {
|
|
|
20710
21247
|
*/
|
|
20711
21248
|
selectedText?: string;
|
|
20712
21249
|
/**
|
|
20713
|
-
* Open one of this plugin's
|
|
21250
|
+
* Open one of this plugin's thread action tab components in the current
|
|
20714
21251
|
* thread's side panel — the registration-callback equivalent of
|
|
20715
21252
|
* `useBbNavigate().openThreadPanel`.
|
|
20716
21253
|
*
|
|
20717
21254
|
* Returns true when the host accepted the open; false when it declined —
|
|
20718
|
-
* `params` was not a JSON value, the action id names no
|
|
21255
|
+
* `params` was not a JSON value, the action id names no thread action tab
|
|
20719
21256
|
* of this plugin, or the surface has no side panel (only the main thread
|
|
20720
21257
|
* view does; a `ThreadChat` embedded in a plugin panel does not). A decline
|
|
20721
21258
|
* is never thrown: the host logs it and reports it here.
|
|
@@ -20755,7 +21292,7 @@ interface PluginCommandContext {
|
|
|
20755
21292
|
projectId: string | null;
|
|
20756
21293
|
/**
|
|
20757
21294
|
* Open one of this plugin's panel components in the focused side panel.
|
|
20758
|
-
* In a thread, `actionId` resolves against
|
|
21295
|
+
* In a thread, `actionId` resolves against thread action tabs; on the New
|
|
20759
21296
|
* thread screen, it resolves against `experimental_newThreadPanelAction`.
|
|
20760
21297
|
* Register both slots with the same id to support commands on both screens.
|
|
20761
21298
|
*
|
|
@@ -21031,16 +21568,9 @@ interface PluginAppSlots {
|
|
|
21031
21568
|
*/
|
|
21032
21569
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
21033
21570
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
21034
|
-
/**
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
*/
|
|
21038
|
-
threadPanelAction(registration: PluginThreadPanelActionRegistration): void;
|
|
21039
|
-
/**
|
|
21040
|
-
* Add an action to the root New thread screen's panel launcher (see
|
|
21041
|
-
* {@link PluginNewThreadPanelActionRegistration}). Experimental: see
|
|
21042
|
-
* docs/api_to_audit.md.
|
|
21043
|
-
*/
|
|
21571
|
+
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
21572
|
+
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
21573
|
+
experimental_tab(registration: ExperimentalTabRegistration): void;
|
|
21044
21574
|
experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
|
|
21045
21575
|
pendingInteraction(registration: PluginPendingInteractionRegistration): void;
|
|
21046
21576
|
sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
|
|
@@ -21062,6 +21592,18 @@ interface PluginAppSlots {
|
|
|
21062
21592
|
* docs/api_to_audit.md.
|
|
21063
21593
|
*/
|
|
21064
21594
|
experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
|
|
21595
|
+
/**
|
|
21596
|
+
* Add a row to the thread Info tab's details block (see
|
|
21597
|
+
* {@link ExperimentalThreadInfoRowRegistration}). Experimental: see
|
|
21598
|
+
* docs/api_to_audit.md.
|
|
21599
|
+
*/
|
|
21600
|
+
experimental_threadInfoRow(registration: ExperimentalThreadInfoRowRegistration): void;
|
|
21601
|
+
/**
|
|
21602
|
+
* Add a section to the thread Info tab (see
|
|
21603
|
+
* {@link ExperimentalThreadInfoSectionRegistration}). Experimental: see
|
|
21604
|
+
* docs/api_to_audit.md.
|
|
21605
|
+
*/
|
|
21606
|
+
experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
|
|
21065
21607
|
/**
|
|
21066
21608
|
* Add an action to every thread actions menu (see
|
|
21067
21609
|
* {@link PluginThreadActionRegistration}). Experimental: see
|
|
@@ -21083,6 +21625,12 @@ interface PluginAppSlots {
|
|
|
21083
21625
|
* docs/api_to_audit.md.
|
|
21084
21626
|
*/
|
|
21085
21627
|
experimental_diffRenderer(registration: PluginDiffRendererRegistration): void;
|
|
21628
|
+
/**
|
|
21629
|
+
* Replace the input box of bb's thread composer (see
|
|
21630
|
+
* {@link ExperimentalComposerRegistration}). Experimental: see
|
|
21631
|
+
* docs/api_to_audit.md.
|
|
21632
|
+
*/
|
|
21633
|
+
experimental_composer(registration: ExperimentalComposerRegistration): void;
|
|
21086
21634
|
messageDirective(registration: PluginMessageDirectiveRegistration): void;
|
|
21087
21635
|
/**
|
|
21088
21636
|
* Render fenced code blocks of chosen languages in assistant messages (see
|
|
@@ -21443,6 +21991,8 @@ type ComposerMention = {
|
|
|
21443
21991
|
* of the calling plugin's own mentions (`{ provider, id, label }`, no `kind`).
|
|
21444
21992
|
*/
|
|
21445
21993
|
type ComposerInsertPart = string | ComposerMention | PluginComposerMention;
|
|
21994
|
+
/** What an @-mention pill points at: a {@link ComposerMention} without its place in the text. */
|
|
21995
|
+
type ExperimentalComposerMentionTarget = ComposerMention extends infer M ? M extends ComposerMention ? Omit<M, "from" | "to"> : never : never;
|
|
21446
21996
|
/** Where `insert` puts its content. */
|
|
21447
21997
|
interface ComposerInsertOptions {
|
|
21448
21998
|
/**
|
|
@@ -21579,29 +22129,41 @@ interface PluginComposerApi {
|
|
|
21579
22129
|
/** Focus the composer caret at the end of the draft. */
|
|
21580
22130
|
focus(): void;
|
|
21581
22131
|
/**
|
|
21582
|
-
* Submit this composer's draft
|
|
21583
|
-
*
|
|
21584
|
-
* provider handoff creates a new thread
|
|
22132
|
+
* Submit this composer's draft through the composer's own send and steer
|
|
22133
|
+
* handlers, the ones Enter and modifier+Enter run, including a
|
|
22134
|
+
* provider handoff that creates a new thread. The draft's attachments and
|
|
21585
22135
|
* @-mentions, and — in the new-thread composer — the provider, model,
|
|
21586
22136
|
* reasoning level, service tier, permission mode and environment the user
|
|
21587
22137
|
* has selected on screen, all travel with it.
|
|
21588
22138
|
*
|
|
21589
|
-
*
|
|
21590
|
-
*
|
|
21591
|
-
*
|
|
21592
|
-
*
|
|
22139
|
+
* It submits only the draft, so it rejects an empty one, even where the
|
|
22140
|
+
* shortcut would steer the next queued message instead. Otherwise it runs
|
|
22141
|
+
* only when the matching shortcut would. While attachments are uploading it
|
|
22142
|
+
* waits for them, then checks again; it rejects if an upload fails. When
|
|
22143
|
+
* the shortcut could not submit, it rejects with the reason, a message safe
|
|
22144
|
+
* to show to the user. The composer must be on screen. The queued-message
|
|
22145
|
+
* and sent-message editors reject.
|
|
21593
22146
|
*
|
|
21594
|
-
*
|
|
21595
|
-
*
|
|
21596
|
-
*
|
|
21597
|
-
*
|
|
21598
|
-
*
|
|
22147
|
+
* Every option combines with the others. `experimental_mode` uses the
|
|
22148
|
+
* names `bb.sdk.threads.send` uses. Without it, submit does what Enter
|
|
22149
|
+
* does for this user, which may be to queue or to steer.
|
|
22150
|
+
* `"queue-if-active"` queues behind the running turn, or starts a turn.
|
|
22151
|
+
* `"steer-if-active"` adds the message to the running turn. Where nothing
|
|
22152
|
+
* can be steered, such as on an idle thread, it starts a turn.
|
|
22153
|
+
* `sendAt` makes the chosen action wait until the given time; a scheduled
|
|
22154
|
+
* steer steers whatever turn is running then. `experimental_data` is
|
|
22155
|
+
* opaque JSON delivered to dispatch hooks together with the calling
|
|
22156
|
+
* plugin's id on this initial attempt. Hooks run before operational core
|
|
22157
|
+
* waits. If a hook queues the message, its existing plugin wait identifies
|
|
22158
|
+
* the owner on later attempts; core does not persist or interpret the
|
|
22159
|
+
* opaque data.
|
|
21599
22160
|
*
|
|
21600
|
-
* Resolves once the
|
|
21601
|
-
* Failures of the underlying request
|
|
21602
|
-
*
|
|
22161
|
+
* Resolves once the composer has accepted the submission and cleared the
|
|
22162
|
+
* draft. Failures of the underlying request show bb's usual error toast
|
|
22163
|
+
* and restore the draft, exactly as an interactive failure does, and then
|
|
22164
|
+
* reject with the toast's message.
|
|
21603
22165
|
*/
|
|
21604
|
-
submit(options
|
|
22166
|
+
submit(options?: ComposerSubmitOptions): Promise<void>;
|
|
21605
22167
|
/**
|
|
21606
22168
|
* Set this composer's pickers as if each value had been picked by hand.
|
|
21607
22169
|
*
|
|
@@ -21680,20 +22242,22 @@ interface ComposerSelection {
|
|
|
21680
22242
|
serviceTier?: ServiceTier;
|
|
21681
22243
|
permissionMode?: PermissionMode;
|
|
21682
22244
|
}
|
|
21683
|
-
/**
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
22245
|
+
/** What `submit` adds to pressing Enter. Every field combines with the others. */
|
|
22246
|
+
interface ComposerSubmitOptions {
|
|
22247
|
+
/**
|
|
22248
|
+
* `"queue-if-active"` queues behind the running turn and
|
|
22249
|
+
* `"steer-if-active"` adds to it; both start a turn when none is running.
|
|
22250
|
+
* Omitted, it does what Enter does for this user.
|
|
22251
|
+
*/
|
|
22252
|
+
experimental_mode?: "queue-if-active" | "steer-if-active";
|
|
22253
|
+
/** Epoch ms in the future; the action waits until then. */
|
|
22254
|
+
sendAt?: number;
|
|
22255
|
+
/**
|
|
22256
|
+
* Opaque JSON delivered to dispatch hooks with the calling plugin's id on
|
|
22257
|
+
* the initial dispatch attempt.
|
|
22258
|
+
*/
|
|
21692
22259
|
experimental_data?: JsonValue$1;
|
|
21693
|
-
}
|
|
21694
|
-
experimental_data: JsonValue$1;
|
|
21695
|
-
sendAt?: never;
|
|
21696
|
-
};
|
|
22260
|
+
}
|
|
21697
22261
|
/**
|
|
21698
22262
|
* A consumer-supplied action on the messages of one `ThreadChat` instance,
|
|
21699
22263
|
* rendered in the embedded timeline's per-message action bar alongside the
|
|
@@ -22126,9 +22690,59 @@ type ExperimentalOpenFixedTabOptions<Target extends JsonValue$1> = {
|
|
|
22126
22690
|
tab: ExperimentalPluginFixedTabReference<Target>;
|
|
22127
22691
|
/** Omit to select the tab without replacing its current session target. */
|
|
22128
22692
|
target?: NoInfer<Target>;
|
|
22693
|
+
} | {
|
|
22694
|
+
surface: ExperimentalAppPanelSurface;
|
|
22695
|
+
tab: {
|
|
22696
|
+
id: string;
|
|
22697
|
+
panelId?: never;
|
|
22698
|
+
experimental_target?: never;
|
|
22699
|
+
};
|
|
22700
|
+
target?: never;
|
|
22701
|
+
};
|
|
22702
|
+
/** A navigation-page fixed tab with an owner-validated target. */
|
|
22703
|
+
type ExperimentalTabTargetReference<Target extends JsonValue$1> = ExperimentalTabReference & {
|
|
22704
|
+
context: {
|
|
22705
|
+
kind: "nav-panel";
|
|
22706
|
+
panelId: string;
|
|
22707
|
+
};
|
|
22708
|
+
availability: "fixed";
|
|
22709
|
+
experimental_target: ExperimentalFixedTabTargetContract<Target>;
|
|
22129
22710
|
};
|
|
22711
|
+
/** Open a registered tab on the current surface. Action inputs persist; fixed targets are session-only. */
|
|
22712
|
+
type ExperimentalTabOpenOptions = {
|
|
22713
|
+
surface: ExperimentalAppPanelSurface;
|
|
22714
|
+
} & ({
|
|
22715
|
+
tab: ExperimentalTabReference & {
|
|
22716
|
+
availability: "action";
|
|
22717
|
+
};
|
|
22718
|
+
params?: JsonValue$1;
|
|
22719
|
+
title?: string;
|
|
22720
|
+
target?: never;
|
|
22721
|
+
} | {
|
|
22722
|
+
tab: ExperimentalTabReference & {
|
|
22723
|
+
context: {
|
|
22724
|
+
kind: "thread";
|
|
22725
|
+
};
|
|
22726
|
+
availability: "fixed";
|
|
22727
|
+
};
|
|
22728
|
+
target?: never;
|
|
22729
|
+
params?: never;
|
|
22730
|
+
title?: never;
|
|
22731
|
+
} | {
|
|
22732
|
+
tab: ExperimentalTabReference & {
|
|
22733
|
+
context: {
|
|
22734
|
+
kind: "nav-panel";
|
|
22735
|
+
panelId: string;
|
|
22736
|
+
};
|
|
22737
|
+
availability: "fixed";
|
|
22738
|
+
};
|
|
22739
|
+
target?: JsonValue$1;
|
|
22740
|
+
params?: never;
|
|
22741
|
+
title?: never;
|
|
22742
|
+
});
|
|
22130
22743
|
/** Surface-aware controller for selecting owner-scoped fixed tabs. */
|
|
22131
22744
|
interface ExperimentalAppPanel {
|
|
22745
|
+
experimental_openTab(options: ExperimentalTabOpenOptions): boolean;
|
|
22132
22746
|
openFixedTab<Target extends JsonValue$1 = never>(options: ExperimentalOpenFixedTabOptions<Target>): boolean;
|
|
22133
22747
|
}
|
|
22134
22748
|
/** Current app selection, derived from the route. */
|
|
@@ -22181,7 +22795,7 @@ interface BbNavigate {
|
|
|
22181
22795
|
}): void;
|
|
22182
22796
|
/**
|
|
22183
22797
|
* Open one of this plugin's registered panel actions in the current
|
|
22184
|
-
* surface's side panel: a
|
|
22798
|
+
* surface's side panel: a thread action tab in a thread, or an
|
|
22185
22799
|
* `experimental_newThreadPanelAction` on the New thread screen. Plugin
|
|
22186
22800
|
* commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
|
|
22187
22801
|
* panel actions (plugin pages) or the action is unavailable.
|
|
@@ -22343,7 +22957,7 @@ interface PluginSdkApp {
|
|
|
22343
22957
|
/** Select one of this plugin's eligible fixed tabs on the current surface. */
|
|
22344
22958
|
experimental_useAppPanel(): ExperimentalAppPanel;
|
|
22345
22959
|
/** Read or clear the owning tab's validated, session-scoped target. */
|
|
22346
|
-
experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
|
|
22960
|
+
experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
|
|
22347
22961
|
useComposer(): PluginComposerApi;
|
|
22348
22962
|
/**
|
|
22349
22963
|
* Every composer on screen that plugin composer customizations mount in,
|
|
@@ -22428,17 +23042,30 @@ interface PluginSdkApp {
|
|
|
22428
23042
|
readonly lifecycle: "4_lifecycle";
|
|
22429
23043
|
};
|
|
22430
23044
|
/**
|
|
22431
|
-
*
|
|
22432
|
-
*
|
|
22433
|
-
*
|
|
22434
|
-
*
|
|
22435
|
-
* thread payload every sidebar loads. Threads sharing an environment share
|
|
22436
|
-
* one query, and the host owns the polling and staleness rules — an open PR
|
|
22437
|
-
* with pending checks refreshes, a merged one does not.
|
|
22438
|
-
*
|
|
23045
|
+
* bb's thread Info row groups, for an `experimental_threadInfoRow` that
|
|
23046
|
+
* joins one: `thread` (Parent, Notify parent, Project), `environment`
|
|
23047
|
+
* (Environment, Machine, provisioning failure, Directory), `git` (Branch,
|
|
23048
|
+
* Merge base, Git status), `pullRequest`, and `lifecycle` (Archived).
|
|
22439
23049
|
* Experimental: see docs/api_to_audit.md.
|
|
22440
23050
|
*/
|
|
22441
|
-
|
|
23051
|
+
experimental_THREAD_INFO_ROW_GROUPS: {
|
|
23052
|
+
readonly thread: "1_thread";
|
|
23053
|
+
readonly environment: "2_environment";
|
|
23054
|
+
readonly git: "3_git";
|
|
23055
|
+
readonly pullRequest: "4_pullRequest";
|
|
23056
|
+
readonly lifecycle: "5_lifecycle";
|
|
23057
|
+
};
|
|
23058
|
+
/**
|
|
23059
|
+
* bb's thread Info section groups, for an `experimental_threadInfoSection`
|
|
23060
|
+
* that joins one: `related` (Child threads, Forks), `changes` (Commits,
|
|
23061
|
+
* Uncommitted files), and `storage` (Thread storage). Experimental: see
|
|
23062
|
+
* docs/api_to_audit.md.
|
|
23063
|
+
*/
|
|
23064
|
+
experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
23065
|
+
readonly related: "1_related";
|
|
23066
|
+
readonly changes: "2_changes";
|
|
23067
|
+
readonly storage: "3_storage";
|
|
23068
|
+
};
|
|
22442
23069
|
/**
|
|
22443
23070
|
* Per-row drag-to-split support (see {@link PluginSidebarThreadSplit}).
|
|
22444
23071
|
* Call it once per rendered row, like the built-in sidebar does.
|
|
@@ -22663,6 +23290,98 @@ interface PluginSdkApp {
|
|
|
22663
23290
|
* docs/api_to_audit.md.
|
|
22664
23291
|
*/
|
|
22665
23292
|
experimental_Diff: ComponentType<DiffProps>;
|
|
23293
|
+
/**
|
|
23294
|
+
* The thread Info tab's section frame (see
|
|
23295
|
+
* {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
|
|
23296
|
+
* Inside an `experimental_threadInfoSection` it collapses, and the host
|
|
23297
|
+
* remembers that per registration. Experimental: see docs/api_to_audit.md.
|
|
23298
|
+
*/
|
|
23299
|
+
experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
|
|
23300
|
+
/**
|
|
23301
|
+
* The thread Info tab's label and value row (see
|
|
23302
|
+
* {@link ExperimentalDetailRowProps}), the one bb's own rows use.
|
|
23303
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23304
|
+
*/
|
|
23305
|
+
experimental_DetailRow: ComponentType<ExperimentalDetailRowProps>;
|
|
23306
|
+
/**
|
|
23307
|
+
* The thread Info tab's list (see {@link ExperimentalInfoListProps}), the
|
|
23308
|
+
* one bb's own sections use. Experimental: see docs/api_to_audit.md.
|
|
23309
|
+
*/
|
|
23310
|
+
experimental_InfoList<Item>(props: ExperimentalInfoListProps<Item>): ReactNode;
|
|
23311
|
+
/**
|
|
23312
|
+
* One row of `experimental_InfoList` (see
|
|
23313
|
+
* {@link ExperimentalInfoListRowProps}), the row bb's own sections use.
|
|
23314
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23315
|
+
*/
|
|
23316
|
+
experimental_InfoListRow: ComponentType<ExperimentalInfoListRowProps>;
|
|
23317
|
+
/**
|
|
23318
|
+
* Host-owned inputs and actions for an `experimental_composer` replacement
|
|
23319
|
+
* (see {@link ExperimentalComposerRendererApi}). Throws outside an
|
|
23320
|
+
* `experimental_composer` component. Experimental: see docs/api_to_audit.md.
|
|
23321
|
+
*/
|
|
23322
|
+
experimental_useComposerRenderer(): ExperimentalComposerRendererApi;
|
|
23323
|
+
/**
|
|
23324
|
+
* A raw thread title with its @-mentions replaced by the threads' current
|
|
23325
|
+
* titles. Experimental: see docs/api_to_audit.md.
|
|
23326
|
+
*/
|
|
23327
|
+
experimental_useThreadTitleDisplayText(title: string): string;
|
|
23328
|
+
/**
|
|
23329
|
+
* Other plugins' popups, `+` and send menu items and inline actions for
|
|
23330
|
+
* this composer, with their host renderers. Throws outside an
|
|
23331
|
+
* `experimental_composer` component. Experimental: see docs/api_to_audit.md.
|
|
23332
|
+
*/
|
|
23333
|
+
experimental_useComposerContributions(): ExperimentalComposerContributions;
|
|
23334
|
+
/**
|
|
23335
|
+
* Search bb's @-mention sources for this composer: files, threads,
|
|
23336
|
+
* projects, sections and plugin mention providers. Report the open menu's
|
|
23337
|
+
* query with `search()`; the results are for the last query reported, and a
|
|
23338
|
+
* composer has one mention search. Throws outside an
|
|
23339
|
+
* `experimental_composer` component. Experimental: see docs/api_to_audit.md.
|
|
23340
|
+
*/
|
|
23341
|
+
experimental_useComposerMentionSearch(): ExperimentalComposerMentionSearch;
|
|
23342
|
+
/**
|
|
23343
|
+
* Search the slash commands and skills for this composer's provider.
|
|
23344
|
+
* Report the open menu's query with `search()`; the results are for the
|
|
23345
|
+
* last query reported, and a composer has one command search. Throws
|
|
23346
|
+
* outside an `experimental_composer` component. Experimental: see
|
|
23347
|
+
* docs/api_to_audit.md.
|
|
23348
|
+
*/
|
|
23349
|
+
experimental_useComposerCommandSearch(): ExperimentalComposerCommandSearch;
|
|
23350
|
+
/**
|
|
23351
|
+
* Connect a composer to bb: render it inside the composer's root element.
|
|
23352
|
+
* It publishes `editor` to other plugins' `useComposer()`, routes bb's and
|
|
23353
|
+
* other plugins' composer commands to keys inside `rootRef`, and makes the
|
|
23354
|
+
* root the target of pane focus and thread drops. Renders no DOM.
|
|
23355
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23356
|
+
*/
|
|
23357
|
+
experimental_ComposerRoot: ComponentType<ExperimentalComposerRootProps>;
|
|
23358
|
+
/** Composer host components; see docs/api_to_audit.md. */
|
|
23359
|
+
experimental_VoiceInputButton: ComponentType<ExperimentalVoiceInputButtonProps>;
|
|
23360
|
+
experimental_VoiceRecordingBar: ComponentType<ExperimentalVoiceRecordingBarProps>;
|
|
23361
|
+
experimental_FailedVoiceRecordings: ComponentType<ExperimentalFailedVoiceRecordingsProps>;
|
|
23362
|
+
experimental_ShortcutHint: ComponentType<ExperimentalShortcutHintProps>;
|
|
23363
|
+
experimental_ImageLightbox: ComponentType<ExperimentalImageLightboxProps>;
|
|
23364
|
+
experimental_PromptMentionIcon: ComponentType<ExperimentalPromptMentionIconProps>;
|
|
23365
|
+
/**
|
|
23366
|
+
* The classes, tooltip and text bb gives a pill for `mention`, so pills look
|
|
23367
|
+
* the same in a composer and in bb's messages. Experimental: see
|
|
23368
|
+
* docs/api_to_audit.md.
|
|
23369
|
+
*/
|
|
23370
|
+
experimental_describePromptMention(mention: ExperimentalComposerMentionTarget): ExperimentalPromptMentionPresentation;
|
|
23371
|
+
/**
|
|
23372
|
+
* Attributes to spread onto a pill element so that copying it and pasting
|
|
23373
|
+
* into any bb composer recreates the pill; `text` is the draft text the pill
|
|
23374
|
+
* covers. Experimental: see docs/api_to_audit.md.
|
|
23375
|
+
*/
|
|
23376
|
+
experimental_promptMentionClipboardAttributes(mention: ExperimentalComposerMentionTarget, text: string): Readonly<Record<string, string>>;
|
|
23377
|
+
/**
|
|
23378
|
+
* The pill a pasted element stands for, when it was copied from a bb
|
|
23379
|
+
* composer or message; null for any other element. Experimental: see
|
|
23380
|
+
* docs/api_to_audit.md.
|
|
23381
|
+
*/
|
|
23382
|
+
experimental_readPromptMentionClipboard(element: Element): ExperimentalPromptMentionClipboardPill | null;
|
|
23383
|
+
experimental_PluginIcon: ComponentType<ExperimentalPluginIconProps>;
|
|
23384
|
+
experimental_ThreadTitleText: ComponentType<ExperimentalThreadTitleTextProps>;
|
|
22666
23385
|
}
|
|
22667
23386
|
|
|
22668
23387
|
declare const experimental_THREAD_ACTION_GROUPS: {
|
|
@@ -22673,6 +23392,19 @@ declare const experimental_THREAD_ACTION_GROUPS: {
|
|
|
22673
23392
|
readonly lifecycle: "4_lifecycle";
|
|
22674
23393
|
};
|
|
22675
23394
|
|
|
23395
|
+
declare const experimental_THREAD_INFO_ROW_GROUPS: {
|
|
23396
|
+
readonly thread: "1_thread";
|
|
23397
|
+
readonly environment: "2_environment";
|
|
23398
|
+
readonly git: "3_git";
|
|
23399
|
+
readonly pullRequest: "4_pullRequest";
|
|
23400
|
+
readonly lifecycle: "5_lifecycle";
|
|
23401
|
+
};
|
|
23402
|
+
declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
23403
|
+
readonly related: "1_related";
|
|
23404
|
+
readonly changes: "2_changes";
|
|
23405
|
+
readonly storage: "3_storage";
|
|
23406
|
+
};
|
|
23407
|
+
|
|
22676
23408
|
declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
|
|
22677
23409
|
declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
|
|
22678
23410
|
declare const definePluginApp: PluginSdkApp["definePluginApp"];
|
|
@@ -22689,6 +23421,10 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
|
|
|
22689
23421
|
declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
|
|
22690
23422
|
declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
|
|
22691
23423
|
declare const experimental_Diff: react.ComponentType<DiffProps>;
|
|
23424
|
+
declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
|
|
23425
|
+
declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
|
|
23426
|
+
declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
|
|
23427
|
+
declare const experimental_InfoListRow: react.ComponentType<ExperimentalInfoListRowProps>;
|
|
22692
23428
|
declare const experimental_useRpcQuery: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>) => ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
|
|
22693
23429
|
declare const experimental_useRpcKeyedQuery: <Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
|
|
22694
23430
|
contract: Contract;
|
|
@@ -22712,9 +23448,26 @@ declare const experimental_usePluginId: () => string;
|
|
|
22712
23448
|
declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHost;
|
|
22713
23449
|
declare const useBbNavigate: () => BbNavigate;
|
|
22714
23450
|
declare const experimental_useAppPanel: () => ExperimentalAppPanel;
|
|
22715
|
-
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
23451
|
+
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
22716
23452
|
declare const useComposer: () => PluginComposerApi;
|
|
22717
23453
|
declare const useComposers: () => readonly PluginComposerApi[];
|
|
23454
|
+
declare const experimental_useComposerRenderer: () => ExperimentalComposerRendererApi;
|
|
23455
|
+
declare const experimental_useThreadTitleDisplayText: (title: string) => string;
|
|
23456
|
+
declare const experimental_useComposerContributions: () => ExperimentalComposerContributions;
|
|
23457
|
+
declare const experimental_useComposerMentionSearch: () => ExperimentalComposerMentionSearch;
|
|
23458
|
+
declare const experimental_useComposerCommandSearch: () => ExperimentalComposerCommandSearch;
|
|
23459
|
+
declare const experimental_ComposerRoot: react.ComponentType<ExperimentalComposerRootProps>;
|
|
23460
|
+
declare const experimental_VoiceInputButton: react.ComponentType<ExperimentalVoiceInputButtonProps>;
|
|
23461
|
+
declare const experimental_VoiceRecordingBar: react.ComponentType<ExperimentalVoiceRecordingBarProps>;
|
|
23462
|
+
declare const experimental_FailedVoiceRecordings: react.ComponentType<ExperimentalFailedVoiceRecordingsProps>;
|
|
23463
|
+
declare const experimental_ShortcutHint: react.ComponentType<ExperimentalShortcutHintProps>;
|
|
23464
|
+
declare const experimental_ImageLightbox: react.ComponentType<ExperimentalImageLightboxProps>;
|
|
23465
|
+
declare const experimental_PromptMentionIcon: react.ComponentType<ExperimentalPromptMentionIconProps>;
|
|
23466
|
+
declare const experimental_describePromptMention: (mention: ExperimentalComposerMentionTarget) => ExperimentalPromptMentionPresentation;
|
|
23467
|
+
declare const experimental_promptMentionClipboardAttributes: (mention: ExperimentalComposerMentionTarget, text: string) => Readonly<Record<string, string>>;
|
|
23468
|
+
declare const experimental_readPromptMentionClipboard: (element: Element) => ExperimentalPromptMentionClipboardPill | null;
|
|
23469
|
+
declare const experimental_PluginIcon: react.ComponentType<ExperimentalPluginIconProps>;
|
|
23470
|
+
declare const experimental_ThreadTitleText: react.ComponentType<ExperimentalThreadTitleTextProps>;
|
|
22718
23471
|
declare const experimental_useSidebarThreads: (options?: {
|
|
22719
23472
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
22720
23473
|
}) => PluginSidebarThreadsState;
|
|
@@ -22724,7 +23477,6 @@ declare const experimental_useThreadActionRegistrations: () => readonly PluginTh
|
|
|
22724
23477
|
declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
|
|
22725
23478
|
declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
|
|
22726
23479
|
|
|
22727
|
-
declare const experimental_useSidebarThreadPullRequest: (threadId: string) => PluginSidebarThreadPullRequestState;
|
|
22728
23480
|
declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSidebarThreadSplit;
|
|
22729
23481
|
declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
|
|
22730
23482
|
declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
|
|
@@ -22744,5 +23496,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
|
|
|
22744
23496
|
declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
|
|
22745
23497
|
declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
|
|
22746
23498
|
|
|
22747
|
-
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,
|
|
22748
|
-
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,
|
|
23499
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
23500
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabOpenOptions, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|