@get-bb/plugin-sdk 0.6.169 → 0.6.179
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 +3 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +165 -22
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +75 -84
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +308 -185
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +19 -5
- package/bundled-types/bb-plugin-sdk-testing.d.ts +226 -93
- package/bundled-types/bb-plugin-sdk.d.ts +281 -58
- package/dist/app.js +12 -0
- package/dist/index.js +20 -0
- package/dist/internal/host-policy.js +46 -5
- package/dist/internal/rpc-query-host.js +12 -0
- package/dist/provider-bridge-acp-next.js +28 -10
- package/dist/provider-bridge-acp.js +28 -10
- package/dist/provider-bridge-testing.js +9 -0
- package/dist/provider-bridge.js +9 -0
- package/dist/testing/app.js +54 -2
- package/dist/testing/index.js +101 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,7 +199,9 @@ await scripts.lifecycle.dispose();
|
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
`loadPluginApp` installs the runtime and validates all registrations; pass the
|
|
202
|
-
imported module or a thunk
|
|
202
|
+
imported module or a thunk, and `{ hasServers: true }` to define the app as bb
|
|
203
|
+
Desktop or the mobile app would (`experimental_hasServers()` is false
|
|
204
|
+
otherwise). `@get-bb/plugin-sdk/app` exports look the runtime
|
|
203
205
|
up when they are called or rendered, so a static import of `app.tsx` or of
|
|
204
206
|
components works too. `mountPluginContentScripts` mirrors the host's ordered mount,
|
|
205
207
|
rollback, independent per-window signal, and exact-once disposal. `renderSlot` supplies
|
|
@@ -351,6 +351,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
351
351
|
"thread.rename": "thread.rename";
|
|
352
352
|
"thread.search": "thread.search";
|
|
353
353
|
"window.find": "window.find";
|
|
354
|
+
"window.forceReload": "window.forceReload";
|
|
354
355
|
"window.new": "window.new";
|
|
355
356
|
"window.reload": "window.reload";
|
|
356
357
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -532,6 +533,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
532
533
|
}, z$1.core.$strict>], "entity">;
|
|
533
534
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
534
535
|
|
|
536
|
+
declare const environmentHolderSchema: z$1.ZodLiteral<"user">;
|
|
537
|
+
type EnvironmentHolder = z$1.infer<typeof environmentHolderSchema>;
|
|
535
538
|
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
536
539
|
creating: "creating";
|
|
537
540
|
destroyed: "destroyed";
|
|
@@ -564,6 +567,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
564
567
|
type: z$1.ZodLiteral<"new">;
|
|
565
568
|
}, z$1.core.$strip>], "type">;
|
|
566
569
|
}, z$1.core.$strip>>;
|
|
570
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
567
571
|
hostId: z$1.ZodString;
|
|
568
572
|
hostLifecycle: z$1.ZodEnum<{
|
|
569
573
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -605,6 +609,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
605
609
|
provisioning: "provisioning";
|
|
606
610
|
ready: "ready";
|
|
607
611
|
}>;
|
|
612
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
608
613
|
updatedAt: z$1.ZodNumber;
|
|
609
614
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
610
615
|
"managed-worktree": "managed-worktree";
|
|
@@ -5866,6 +5871,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5866
5871
|
type: z$1.ZodLiteral<"thread.rewind.discard">;
|
|
5867
5872
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
|
|
5868
5873
|
"thread.rewind.prepare": HostDaemonCommandDescriptor<"thread.rewind.prepare", z$1.ZodObject<{
|
|
5874
|
+
additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
|
|
5869
5875
|
bridgeLaunch: z$1.ZodObject<{
|
|
5870
5876
|
capabilities: z$1.ZodObject<{
|
|
5871
5877
|
fork: z$1.ZodEnum<{
|
|
@@ -6015,6 +6021,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6015
6021
|
providerThreadId: z$1.ZodString;
|
|
6016
6022
|
}, z$1.core.$strip>, "settled", false>;
|
|
6017
6023
|
"thread.start": HostDaemonCommandDescriptor<"thread.start", z$1.ZodObject<{
|
|
6024
|
+
additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
|
|
6018
6025
|
bridgeLaunch: z$1.ZodObject<{
|
|
6019
6026
|
capabilities: z$1.ZodObject<{
|
|
6020
6027
|
fork: z$1.ZodEnum<{
|
|
@@ -6585,6 +6592,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6585
6592
|
}, z$1.core.$strip>], "permissionMode">>;
|
|
6586
6593
|
requestId: z$1.ZodString;
|
|
6587
6594
|
resumeContext: z$1.ZodObject<{
|
|
6595
|
+
additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
|
|
6588
6596
|
bridgeLaunch: z$1.ZodObject<{
|
|
6589
6597
|
capabilities: z$1.ZodObject<{
|
|
6590
6598
|
fork: z$1.ZodEnum<{
|
|
@@ -6805,6 +6813,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6805
6813
|
permissionScope: z$1.ZodLiteral<"full">;
|
|
6806
6814
|
}, z$1.core.$strip>], "permissionMode">>;
|
|
6807
6815
|
resumeContext: z$1.ZodObject<{
|
|
6816
|
+
additionalWorkspaceFolders: z$1.ZodArray<z$1.ZodString>;
|
|
6808
6817
|
bridgeLaunch: z$1.ZodObject<{
|
|
6809
6818
|
capabilities: z$1.ZodObject<{
|
|
6810
6819
|
fork: z$1.ZodEnum<{
|
|
@@ -7507,6 +7516,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7507
7516
|
}, z$1.core.$strip>>;
|
|
7508
7517
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
7509
7518
|
"host.read_workspace_agent_context": HostDaemonCommandDescriptor<"host.read_workspace_agent_context", z$1.ZodObject<{
|
|
7519
|
+
folderPaths: z$1.ZodArray<z$1.ZodString>;
|
|
7510
7520
|
includeAgentInstructions: z$1.ZodBoolean;
|
|
7511
7521
|
projectSkillRead: z$1.ZodObject<{
|
|
7512
7522
|
excludeNames: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -7534,6 +7544,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7534
7544
|
type: z$1.ZodLiteral<"host.read_workspace_agent_context">;
|
|
7535
7545
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7536
7546
|
agentInstructions: z$1.ZodNullable<z$1.ZodString>;
|
|
7547
|
+
folders: z$1.ZodArray<z$1.ZodObject<{
|
|
7548
|
+
isGitRepo: z$1.ZodBoolean;
|
|
7549
|
+
path: z$1.ZodString;
|
|
7550
|
+
}, z$1.core.$strict>>;
|
|
7537
7551
|
projectSkills: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7538
7552
|
directoryName: z$1.ZodString;
|
|
7539
7553
|
kind: z$1.ZodLiteral<"budget-exceeded">;
|
|
@@ -7762,7 +7776,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7762
7776
|
rootPath: z$1.ZodString;
|
|
7763
7777
|
type: z$1.ZodLiteral<"host.read_file_chunk">;
|
|
7764
7778
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7765
|
-
content: z$1.
|
|
7779
|
+
content: z$1.ZodInstanceOf<Uint8Array<ArrayBuffer>>;
|
|
7766
7780
|
mimeType: z$1.ZodNullable<z$1.ZodString>;
|
|
7767
7781
|
modifiedAtMs: z$1.ZodNumber;
|
|
7768
7782
|
offset: z$1.ZodNumber;
|
|
@@ -10751,6 +10765,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10751
10765
|
"thread.rename": "thread.rename";
|
|
10752
10766
|
"thread.search": "thread.search";
|
|
10753
10767
|
"window.find": "window.find";
|
|
10768
|
+
"window.forceReload": "window.forceReload";
|
|
10754
10769
|
"window.new": "window.new";
|
|
10755
10770
|
"window.reload": "window.reload";
|
|
10756
10771
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -10929,6 +10944,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10929
10944
|
"thread.rename": "thread.rename";
|
|
10930
10945
|
"thread.search": "thread.search";
|
|
10931
10946
|
"window.find": "window.find";
|
|
10947
|
+
"window.forceReload": "window.forceReload";
|
|
10932
10948
|
"window.new": "window.new";
|
|
10933
10949
|
"window.reload": "window.reload";
|
|
10934
10950
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -11032,6 +11048,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
11032
11048
|
"thread.rename": "thread.rename";
|
|
11033
11049
|
"thread.search": "thread.search";
|
|
11034
11050
|
"window.find": "window.find";
|
|
11051
|
+
"window.forceReload": "window.forceReload";
|
|
11035
11052
|
"window.new": "window.new";
|
|
11036
11053
|
"window.reload": "window.reload";
|
|
11037
11054
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -14480,6 +14497,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14480
14497
|
}, z$1.core.$strip>;
|
|
14481
14498
|
}, z$1.core.$strict>>;
|
|
14482
14499
|
total: z$1.ZodNumber;
|
|
14500
|
+
totalCapped: z$1.ZodBoolean;
|
|
14483
14501
|
}, z$1.core.$strict>;
|
|
14484
14502
|
archived: z$1.ZodObject<{
|
|
14485
14503
|
results: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -14576,6 +14594,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14576
14594
|
}, z$1.core.$strip>;
|
|
14577
14595
|
}, z$1.core.$strict>>;
|
|
14578
14596
|
total: z$1.ZodNumber;
|
|
14597
|
+
totalCapped: z$1.ZodBoolean;
|
|
14579
14598
|
}, z$1.core.$strict>;
|
|
14580
14599
|
}, z$1.core.$strict>;
|
|
14581
14600
|
type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
|
|
@@ -14701,6 +14720,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14701
14720
|
type: z$1.ZodLiteral<"new">;
|
|
14702
14721
|
}, z$1.core.$strip>], "type">;
|
|
14703
14722
|
}, z$1.core.$strip>>;
|
|
14723
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
14704
14724
|
hostId: z$1.ZodString;
|
|
14705
14725
|
hostLifecycle: z$1.ZodEnum<{
|
|
14706
14726
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -14742,6 +14762,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14742
14762
|
provisioning: "provisioning";
|
|
14743
14763
|
ready: "ready";
|
|
14744
14764
|
}>;
|
|
14765
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
14745
14766
|
updatedAt: z$1.ZodNumber;
|
|
14746
14767
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
14747
14768
|
"managed-worktree": "managed-worktree";
|
|
@@ -18448,9 +18469,16 @@ type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
|
18448
18469
|
type EnvironmentUpdateResult = Environment;
|
|
18449
18470
|
interface EnvironmentListArgs {
|
|
18450
18471
|
environmentProviderId?: string;
|
|
18472
|
+
/** Only environments with this holder: `"user"` or `"plugin:<pluginId>"`. */
|
|
18473
|
+
heldBy?: EnvironmentHolder;
|
|
18451
18474
|
hostId?: string;
|
|
18452
18475
|
instanceKey?: string;
|
|
18453
|
-
|
|
18476
|
+
/**
|
|
18477
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
18478
|
+
* page comes back shorter than its `limit`.
|
|
18479
|
+
*/
|
|
18480
|
+
limit: number;
|
|
18481
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
18454
18482
|
offset?: number;
|
|
18455
18483
|
path?: string;
|
|
18456
18484
|
projectId?: string;
|
|
@@ -18458,6 +18486,25 @@ interface EnvironmentListArgs {
|
|
|
18458
18486
|
status?: EnvironmentStatus;
|
|
18459
18487
|
}
|
|
18460
18488
|
type EnvironmentListResult = Environment[];
|
|
18489
|
+
interface EnvironmentCreateBaseArgs {
|
|
18490
|
+
projectId: string;
|
|
18491
|
+
/** Defaults to the project's default checkout machine. */
|
|
18492
|
+
hostId?: string;
|
|
18493
|
+
/** Defaults to the Worktree provider (Personal workspace for the personal project). */
|
|
18494
|
+
provider?: {
|
|
18495
|
+
id: string;
|
|
18496
|
+
inputs?: JsonValue;
|
|
18497
|
+
};
|
|
18498
|
+
name?: string;
|
|
18499
|
+
}
|
|
18500
|
+
/**
|
|
18501
|
+
* `hold: "user"` keeps the environment until the user deletes it and lets
|
|
18502
|
+
* threads join it.
|
|
18503
|
+
*/
|
|
18504
|
+
type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & {
|
|
18505
|
+
hold: "user";
|
|
18506
|
+
};
|
|
18507
|
+
type EnvironmentCreateResult = Environment;
|
|
18461
18508
|
interface EnvironmentDeleteArgs {
|
|
18462
18509
|
environmentId: string;
|
|
18463
18510
|
}
|
|
@@ -18469,13 +18516,15 @@ interface EnvironmentListProvidersArgs {
|
|
|
18469
18516
|
}
|
|
18470
18517
|
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
18471
18518
|
interface EnvironmentsArea {
|
|
18519
|
+
/** Create an environment before any thread exists; setup runs as for a thread. Experimental: see docs/api_to_audit.md. */
|
|
18520
|
+
experimental_create(args: EnvironmentCreateArgs): Promise<EnvironmentCreateResult>;
|
|
18472
18521
|
experimental_cleanup(args: EnvironmentActionArgs & {
|
|
18473
18522
|
recover?: boolean;
|
|
18474
18523
|
}): Promise<OperationResponse>;
|
|
18475
18524
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
18476
18525
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
18477
18526
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
18478
|
-
list(args
|
|
18527
|
+
list(args: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
18479
18528
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
18480
18529
|
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
18481
18530
|
paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
|
|
@@ -19517,7 +19566,12 @@ interface ThreadListArgs {
|
|
|
19517
19566
|
sectionId?: string;
|
|
19518
19567
|
hasParent?: boolean;
|
|
19519
19568
|
includeHidden?: boolean;
|
|
19520
|
-
|
|
19569
|
+
/**
|
|
19570
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
19571
|
+
* page comes back shorter than its `limit`.
|
|
19572
|
+
*/
|
|
19573
|
+
limit: number;
|
|
19574
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
19521
19575
|
offset?: number;
|
|
19522
19576
|
originKind?: ThreadListQuery["originKind"];
|
|
19523
19577
|
originPluginId?: string;
|
|
@@ -19978,7 +20032,7 @@ interface ThreadsArea {
|
|
|
19978
20032
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
19979
20033
|
queue: ThreadQueueArea;
|
|
19980
20034
|
interactions: ThreadInteractionsArea;
|
|
19981
|
-
list(args
|
|
20035
|
+
list(args: ThreadListArgs): Promise<ThreadListResult>;
|
|
19982
20036
|
listRunning(args?: {
|
|
19983
20037
|
signal?: AbortSignal;
|
|
19984
20038
|
}): Promise<ThreadRunningResult>;
|
|
@@ -20089,7 +20143,10 @@ type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
|
20089
20143
|
*/
|
|
20090
20144
|
/** Props passed to a `homepageSection` component. */
|
|
20091
20145
|
interface PluginHomepageSectionProps {
|
|
20092
|
-
/**
|
|
20146
|
+
/**
|
|
20147
|
+
* Project selected in the New thread composer; null when the composer is
|
|
20148
|
+
* set to "No project".
|
|
20149
|
+
*/
|
|
20093
20150
|
projectId: string | null;
|
|
20094
20151
|
}
|
|
20095
20152
|
/**
|
|
@@ -20334,7 +20391,8 @@ interface ExperimentalSidebarNavigationItem {
|
|
|
20334
20391
|
isVisible: boolean;
|
|
20335
20392
|
/**
|
|
20336
20393
|
* A plugin panel remembered from the last session whose bundle has not
|
|
20337
|
-
* registered yet. Activating it
|
|
20394
|
+
* registered yet. Activating it opens the panel's page, which shows the
|
|
20395
|
+
* panel once the bundle loads.
|
|
20338
20396
|
*/
|
|
20339
20397
|
isLoading: boolean;
|
|
20340
20398
|
/**
|
|
@@ -20526,13 +20584,6 @@ interface PluginThreadListProps {
|
|
|
20526
20584
|
* Call after the user opens a thread. It closes the mobile sidebar drawer.
|
|
20527
20585
|
*/
|
|
20528
20586
|
onNavigate: () => void;
|
|
20529
|
-
/**
|
|
20530
|
-
* Compatibility value for the former sidebar search field. BB now searches
|
|
20531
|
-
* threads in the quick palette, so the host always supplies "".
|
|
20532
|
-
*
|
|
20533
|
-
* @deprecated The quick palette owns thread search. Ignore this value.
|
|
20534
|
-
*/
|
|
20535
|
-
searchQuery: string;
|
|
20536
20587
|
}
|
|
20537
20588
|
/** JavaScript world a Browser page expression runs in. */
|
|
20538
20589
|
type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
|
|
@@ -20563,7 +20614,12 @@ interface ExperimentalPluginBrowserPage {
|
|
|
20563
20614
|
onMessage(listener: (data: JsonValue$1) => void): () => void;
|
|
20564
20615
|
}
|
|
20565
20616
|
interface ExperimentalPluginBrowserToolbarActionProps {
|
|
20566
|
-
/**
|
|
20617
|
+
/**
|
|
20618
|
+
* Owner of the Browser tab. In a thread's side panel it is the thread id. On
|
|
20619
|
+
* the New thread screen and plugin pages it is an opaque panel key that is
|
|
20620
|
+
* not a thread id. Pass it with `tabId` as the `threadId` of
|
|
20621
|
+
* `sdk.experimental_desktopBrowsers` calls to reach this tab.
|
|
20622
|
+
*/
|
|
20567
20623
|
threadId: string;
|
|
20568
20624
|
/** Browser tab currently rendering the action. */
|
|
20569
20625
|
tabId: string;
|
|
@@ -22102,6 +22158,11 @@ interface PluginThreadActionTarget {
|
|
|
22102
22158
|
pinnedAt: number | null;
|
|
22103
22159
|
sectionId: string | null;
|
|
22104
22160
|
isUnread: boolean;
|
|
22161
|
+
/**
|
|
22162
|
+
* True for threads bb keeps out of its own list, such as side chats; pins
|
|
22163
|
+
* and sections on them have no visible effect.
|
|
22164
|
+
*/
|
|
22165
|
+
isHidden: boolean;
|
|
22105
22166
|
status: ThreadStatus;
|
|
22106
22167
|
/**
|
|
22107
22168
|
* The thread's environment when a new thread can reuse it, null otherwise.
|
|
@@ -22243,7 +22304,8 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
22243
22304
|
* (see {@link PluginThreadActionsContextMenuProps}). Pure and
|
|
22244
22305
|
* synchronous like `item`, with every selected thread in `useData`'s
|
|
22245
22306
|
* `threadIds`; `run` acts on all of them. Omit it, or return null, to leave
|
|
22246
|
-
* the action out of selection menus.
|
|
22307
|
+
* the action out of selection menus. Unused with `placement: "header"`,
|
|
22308
|
+
* which selection menus leave out. Experimental: see docs/api_to_audit.md.
|
|
22247
22309
|
*/
|
|
22248
22310
|
experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
|
|
22249
22311
|
}
|
|
@@ -22251,9 +22313,11 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
22251
22313
|
* Where a thread action shows.
|
|
22252
22314
|
*
|
|
22253
22315
|
* - `"menu"`: every thread actions menu and the quick-action picker.
|
|
22254
|
-
* - `"header"`: only the open thread's header, as an outline button
|
|
22255
|
-
*
|
|
22256
|
-
*
|
|
22316
|
+
* - `"header"`: only the open thread's header, as an outline button with the
|
|
22317
|
+
* action's `icon` and `label`, after the workspace's Open button. `detail`
|
|
22318
|
+
* is the button's tooltip and `variant: "destructive"` colors it. Several
|
|
22319
|
+
* header actions share one split button, the first as its main action and
|
|
22320
|
+
* the rest as menu rows drawn like the thread menu's. At
|
|
22257
22321
|
* compact width and in narrow split panes the buttons fold into the
|
|
22258
22322
|
* header's thread menu as rows at its top, after Open. `group` and `order`
|
|
22259
22323
|
* sort header actions among themselves. Header actions never appear in
|
|
@@ -23242,6 +23306,26 @@ interface ExperimentalMessageMetadataRegistration {
|
|
|
23242
23306
|
}
|
|
23243
23307
|
/** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
|
|
23244
23308
|
type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
|
|
23309
|
+
/**
|
|
23310
|
+
* bb's own Archive and Delete flows, the ones its thread menus and selection
|
|
23311
|
+
* menu run. Each takes thread ids, fetches any thread the app has not loaded,
|
|
23312
|
+
* counts child threads on the server, and confirms once for the whole list:
|
|
23313
|
+
* Delete always, Archive when a tree has child threads outside the list and
|
|
23314
|
+
* archive confirmation is on in Settings → General. Archive then removes the
|
|
23315
|
+
* threads, closes their split panes, leaves a route that showed one of them,
|
|
23316
|
+
* and shows one Undo toast that restores the threads and the route. Delete
|
|
23317
|
+
* cleans up panes and routes the same way and has no Undo.
|
|
23318
|
+
*
|
|
23319
|
+
* The promise resolves once the flow settles: done, cancelled in the dialog,
|
|
23320
|
+
* or failed after bb has shown its error toast. It never rejects. Archive
|
|
23321
|
+
* skips threads that are already archived. Server code should call
|
|
23322
|
+
* `bb.sdk.threads.archive` instead, which has no confirmation or Undo.
|
|
23323
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23324
|
+
*/
|
|
23325
|
+
interface ExperimentalThreadRequests {
|
|
23326
|
+
requestArchive(threadIds: readonly string[]): Promise<void>;
|
|
23327
|
+
requestDelete(threadIds: readonly string[]): Promise<void>;
|
|
23328
|
+
}
|
|
23245
23329
|
/**
|
|
23246
23330
|
* What every plugin callback's context carries besides its own fields:
|
|
23247
23331
|
* commands, message actions, thread actions, panel and New thread panel
|
|
@@ -23258,6 +23342,23 @@ interface ExperimentalPluginActionContext {
|
|
|
23258
23342
|
navigate: BbNavigate;
|
|
23259
23343
|
/** The side panel of the surface that invoked the callback. */
|
|
23260
23344
|
panel: ExperimentalPanelController;
|
|
23345
|
+
/**
|
|
23346
|
+
* The composer this callback acts on, bound to this plugin like
|
|
23347
|
+
* `useComposers()` handles. A composer command or menu item gets the
|
|
23348
|
+
* handling composer; a message action gets the composer of the message's
|
|
23349
|
+
* thread. Every other callback gets the focused surface's active composer:
|
|
23350
|
+
* the one holding the caret, or the one that held it before focus moved into
|
|
23351
|
+
* the command palette, a dialog, a popover or an overlay; otherwise the
|
|
23352
|
+
* surface's main composer; otherwise null, as on a plugin page without a
|
|
23353
|
+
* composer. Read in app-wide components with
|
|
23354
|
+
* `experimental_useActiveComposer()`. Experimental: see docs/api_to_audit.md.
|
|
23355
|
+
*/
|
|
23356
|
+
composer: PluginComposerApi | null;
|
|
23357
|
+
/**
|
|
23358
|
+
* bb's own Archive and Delete flows (see {@link ExperimentalThreadRequests}),
|
|
23359
|
+
* the same object `experimental_useThreadRequests()` returns in components.
|
|
23360
|
+
*/
|
|
23361
|
+
threadRequests: ExperimentalThreadRequests;
|
|
23261
23362
|
}
|
|
23262
23363
|
/**
|
|
23263
23364
|
* Context handed to a composer command's or composer menu item's `run`.
|
|
@@ -23905,7 +24006,13 @@ type PluginComposerScope = {
|
|
|
23905
24006
|
interface ComposerCustomization {
|
|
23906
24007
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
23907
24008
|
id: string;
|
|
23908
|
-
/**
|
|
24009
|
+
/**
|
|
24010
|
+
* Composer kinds where this customization is active; omit for all kinds.
|
|
24011
|
+
* The sent-message editor reports `"thread"` and runs only what the user
|
|
24012
|
+
* invokes there: `plusMenu` rows, the popups they open, and composer
|
|
24013
|
+
* commands. It mounts no `actions`, `banners`, `sendMenu` rows or
|
|
24014
|
+
* `richText` effects.
|
|
24015
|
+
*/
|
|
23909
24016
|
scopes?: readonly PluginComposerScope["kind"][];
|
|
23910
24017
|
/**
|
|
23911
24018
|
* Controls rendered in the composer's action row, before the voice, stop
|
|
@@ -25081,6 +25188,13 @@ interface ExperimentalServers {
|
|
|
25081
25188
|
servers: readonly ExperimentalServer[];
|
|
25082
25189
|
/** Switch this client to the server and reload the page on it, unloading every plugin. Ignores the active server and unknown ids. */
|
|
25083
25190
|
switchTo(id: string): void;
|
|
25191
|
+
/** Open the client's own add-server screen: bb Desktop's Add Server dialog or the mobile app's Add server screen. Null when the client has none, such as an app from before this API. */
|
|
25192
|
+
addServer: (() => void) | null;
|
|
25193
|
+
/** Set while bb Desktop can't list the user's account servers until they sign in to bb Connect. `label` is the desktop's own wording, also used in its Server menu; `start()` opens the sign-in window. Always null on the mobile app. */
|
|
25194
|
+
accountSignIn: {
|
|
25195
|
+
label: string;
|
|
25196
|
+
start(): void;
|
|
25197
|
+
} | null;
|
|
25084
25198
|
}
|
|
25085
25199
|
/**
|
|
25086
25200
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
@@ -25196,6 +25310,13 @@ interface PluginSdkApp {
|
|
|
25196
25310
|
* offers. Null when the client keeps no server list: any web browser.
|
|
25197
25311
|
*/
|
|
25198
25312
|
experimental_useServers(): ExperimentalServers | null;
|
|
25313
|
+
/**
|
|
25314
|
+
* True on clients that keep a server list (bb Desktop and the mobile app),
|
|
25315
|
+
* where `experimental_useServers()` returns a value; false in a web browser.
|
|
25316
|
+
* Fixed for the life of the page, so a plugin can read it inside
|
|
25317
|
+
* `definePluginApp` to register server controls only where they work.
|
|
25318
|
+
*/
|
|
25319
|
+
experimental_hasServers(): boolean;
|
|
25199
25320
|
/**
|
|
25200
25321
|
* The side panel of the surface the calling component renders in: the
|
|
25201
25322
|
* thread view, the plugin page, or the New thread screen.
|
|
@@ -25226,6 +25347,18 @@ interface PluginSdkApp {
|
|
|
25226
25347
|
* changes.
|
|
25227
25348
|
*/
|
|
25228
25349
|
useComposers(): readonly PluginComposerApi[];
|
|
25350
|
+
/**
|
|
25351
|
+
* The focused surface's active composer, the value plain commands read as
|
|
25352
|
+
* `context.composer`: the composer holding the caret, or the one that held
|
|
25353
|
+
* it before focus moved into the command palette, a dialog, a popover or an
|
|
25354
|
+
* overlay; otherwise the surface's main composer; otherwise null. For
|
|
25355
|
+
* app-wide components such as overlays and plugin pages; inside a composer
|
|
25356
|
+
* slot use `useComposer()`. The handle names the same composer as the
|
|
25357
|
+
* `useComposers()` entry with its `key`. The calling component re-renders
|
|
25358
|
+
* when the active composer or its draft changes. Experimental: see
|
|
25359
|
+
* docs/api_to_audit.md.
|
|
25360
|
+
*/
|
|
25361
|
+
experimental_useActiveComposer(): PluginComposerApi | null;
|
|
25229
25362
|
/**
|
|
25230
25363
|
* The sidebar's live thread view (see {@link PluginSidebarThreadsState}).
|
|
25231
25364
|
* Reads the host's own cache and realtime subscriptions, so it costs no
|
|
@@ -25245,6 +25378,13 @@ interface PluginSdkApp {
|
|
|
25245
25378
|
/** Defaults to active threads only. An empty selection also means active. */
|
|
25246
25379
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
25247
25380
|
}): PluginSidebarThreadsState;
|
|
25381
|
+
/**
|
|
25382
|
+
* bb's Archive and Delete flows for any thread ids, with its confirmation,
|
|
25383
|
+
* child counts, Undo and error toast (see
|
|
25384
|
+
* {@link ExperimentalThreadRequests}). Callbacks get the same object as
|
|
25385
|
+
* their context's `threadRequests`. Experimental: see docs/api_to_audit.md.
|
|
25386
|
+
*/
|
|
25387
|
+
experimental_useThreadRequests(): ExperimentalThreadRequests;
|
|
25248
25388
|
/**
|
|
25249
25389
|
* Archive an environment's active thread trees the way bb's own list does:
|
|
25250
25390
|
* optimistic removal, closing their split panes, leaving a route that shows
|
|
@@ -25785,10 +25925,12 @@ declare const useBbNavigate: () => BbNavigate;
|
|
|
25785
25925
|
declare const experimental_useCanOpenFileExternally: (target: ExperimentalLiveFileTarget) => boolean;
|
|
25786
25926
|
declare const experimental_useTabVisible: () => boolean;
|
|
25787
25927
|
declare const experimental_useServers: () => ExperimentalServers | null;
|
|
25928
|
+
declare const experimental_hasServers: () => boolean;
|
|
25788
25929
|
declare const experimental_useAppPanel: () => ExperimentalPanelController;
|
|
25789
25930
|
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
25790
25931
|
declare const useComposer: () => PluginComposerApi;
|
|
25791
25932
|
declare const useComposers: () => readonly PluginComposerApi[];
|
|
25933
|
+
declare const experimental_useActiveComposer: () => PluginComposerApi | null;
|
|
25792
25934
|
declare const experimental_useComposerRenderer: () => ExperimentalComposerRendererApi;
|
|
25793
25935
|
declare const experimental_useThreadTitleDisplayText: (title: string) => string;
|
|
25794
25936
|
declare const experimental_useComposerContributions: () => ExperimentalComposerContributions;
|
|
@@ -25812,6 +25954,7 @@ declare const experimental_useSidebarThreads: (options?: {
|
|
|
25812
25954
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
25813
25955
|
}) => PluginSidebarThreadsState;
|
|
25814
25956
|
declare const experimental_useThreadActions: (thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions) => readonly PluginThreadActionEntry[];
|
|
25957
|
+
declare const experimental_useThreadRequests: () => ExperimentalThreadRequests;
|
|
25815
25958
|
declare const experimental_useArchiveEnvironmentThreads: () => (environmentId: string) => Promise<void>;
|
|
25816
25959
|
declare const experimental_useThreadActionRegistrations: () => readonly PluginThreadActionRegistrationInfo[];
|
|
25817
25960
|
declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
|
|
@@ -25844,5 +25987,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
25844
25987
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
25845
25988
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
25846
25989
|
|
|
25847
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_matchesShortcutKey, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_sliceUtf16Head, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
25848
|
-
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerActionContext, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginPanelPage, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, 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, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
25990
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_CollapsibleStackCard, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_hasServers, experimental_matchesShortcutKey, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_sliceUtf16Head, experimental_useActiveComposer, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadExtensionState, experimental_useThreadRequests, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
25991
|
+
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, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalCollapsibleStackCardDismiss, ExperimentalCollapsibleStackCardProps, ExperimentalComposerAction, ExperimentalComposerActionContext, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageActionSurface, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginActionContext, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginPanelPage, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutKeyEvent, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadHeaderRowProps, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleProps, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRequests, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, InternalDoNotUseSetupFailureDetail, InternalDoNotUseSetupFailureStage, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, 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, 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, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|