@get-bb/plugin-sdk 0.6.164 → 0.6.178
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 +4 -2
- package/bundled-types/bb-plugin-sdk-app.d.ts +292 -127
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +75 -84
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +314 -191
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +5 -2
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
- 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 +25 -7
- package/bundled-types/bb-plugin-sdk-testing.d.ts +226 -93
- package/bundled-types/bb-plugin-sdk.d.ts +437 -190
- package/dist/app.js +12 -0
- package/dist/index.js +20 -0
- package/dist/internal/host-policy.js +56 -16
- package/dist/internal/plugin-app-collector.js +15 -3
- 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 +74 -6
- package/dist/testing/index.js +111 -21
- package/package.json +1 -1
|
@@ -215,7 +215,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
215
215
|
}, z$1.core.$strict>]>;
|
|
216
216
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
217
217
|
|
|
218
|
-
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", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned"];
|
|
218
|
+
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", "sidebar.updates.providerCli", "sidebar.updates.skipped", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned", "threadContextCard.collapsedSections"];
|
|
219
219
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
220
220
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
221
221
|
schema: Schema;
|
|
@@ -254,6 +254,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
254
254
|
readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
255
255
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
256
256
|
readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
|
|
257
|
+
readonly "threadContextCard.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
257
258
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
258
259
|
};
|
|
259
260
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
@@ -350,6 +351,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
350
351
|
"thread.rename": "thread.rename";
|
|
351
352
|
"thread.search": "thread.search";
|
|
352
353
|
"window.find": "window.find";
|
|
354
|
+
"window.forceReload": "window.forceReload";
|
|
353
355
|
"window.new": "window.new";
|
|
354
356
|
"window.reload": "window.reload";
|
|
355
357
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -531,6 +533,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
531
533
|
}, z$1.core.$strict>], "entity">;
|
|
532
534
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
533
535
|
|
|
536
|
+
declare const environmentHolderSchema: z$1.ZodLiteral<"user">;
|
|
537
|
+
type EnvironmentHolder = z$1.infer<typeof environmentHolderSchema>;
|
|
534
538
|
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
535
539
|
creating: "creating";
|
|
536
540
|
destroyed: "destroyed";
|
|
@@ -563,6 +567,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
563
567
|
type: z$1.ZodLiteral<"new">;
|
|
564
568
|
}, z$1.core.$strip>], "type">;
|
|
565
569
|
}, z$1.core.$strip>>;
|
|
570
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
566
571
|
hostId: z$1.ZodString;
|
|
567
572
|
hostLifecycle: z$1.ZodEnum<{
|
|
568
573
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -604,6 +609,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
604
609
|
provisioning: "provisioning";
|
|
605
610
|
ready: "ready";
|
|
606
611
|
}>;
|
|
612
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
607
613
|
updatedAt: z$1.ZodNumber;
|
|
608
614
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
609
615
|
"managed-worktree": "managed-worktree";
|
|
@@ -4997,7 +5003,7 @@ declare const skillListResponseSchema: z$1.ZodObject<{
|
|
|
4997
5003
|
manageable: z$1.ZodBoolean;
|
|
4998
5004
|
name: z$1.ZodString;
|
|
4999
5005
|
pluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5000
|
-
|
|
5006
|
+
providers: z$1.ZodArray<z$1.ZodString>;
|
|
5001
5007
|
registrySkillId: z$1.ZodNullable<z$1.ZodString>;
|
|
5002
5008
|
scope: z$1.ZodEnum<{
|
|
5003
5009
|
"bb-builtin": "bb-builtin";
|
|
@@ -7761,7 +7767,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7761
7767
|
rootPath: z$1.ZodString;
|
|
7762
7768
|
type: z$1.ZodLiteral<"host.read_file_chunk">;
|
|
7763
7769
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7764
|
-
content: z$1.
|
|
7770
|
+
content: z$1.ZodInstanceOf<Uint8Array<ArrayBuffer>>;
|
|
7765
7771
|
mimeType: z$1.ZodNullable<z$1.ZodString>;
|
|
7766
7772
|
modifiedAtMs: z$1.ZodNumber;
|
|
7767
7773
|
offset: z$1.ZodNumber;
|
|
@@ -9854,8 +9860,10 @@ declare const pluginCatalogInstallPlanSchema: z$1.ZodDiscriminatedUnion<[z$1.Zod
|
|
|
9854
9860
|
}, z$1.core.$strip>], "kind">;
|
|
9855
9861
|
type PluginCatalogInstallPlan = z$1.infer<typeof pluginCatalogInstallPlanSchema>;
|
|
9856
9862
|
declare const pluginMarketplaceSchema: z$1.ZodObject<{
|
|
9863
|
+
canDisable: z$1.ZodBoolean;
|
|
9857
9864
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9858
9865
|
displayName: z$1.ZodString;
|
|
9866
|
+
enabled: z$1.ZodBoolean;
|
|
9859
9867
|
entryCount: z$1.ZodNumber;
|
|
9860
9868
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9861
9869
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -9875,8 +9883,10 @@ type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
|
|
|
9875
9883
|
declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
9876
9884
|
error: z$1.ZodNullable<z$1.ZodString>;
|
|
9877
9885
|
marketplace: z$1.ZodObject<{
|
|
9886
|
+
canDisable: z$1.ZodBoolean;
|
|
9878
9887
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9879
9888
|
displayName: z$1.ZodString;
|
|
9889
|
+
enabled: z$1.ZodBoolean;
|
|
9880
9890
|
entryCount: z$1.ZodNumber;
|
|
9881
9891
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9882
9892
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10746,6 +10756,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10746
10756
|
"thread.rename": "thread.rename";
|
|
10747
10757
|
"thread.search": "thread.search";
|
|
10748
10758
|
"window.find": "window.find";
|
|
10759
|
+
"window.forceReload": "window.forceReload";
|
|
10749
10760
|
"window.new": "window.new";
|
|
10750
10761
|
"window.reload": "window.reload";
|
|
10751
10762
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -10924,6 +10935,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10924
10935
|
"thread.rename": "thread.rename";
|
|
10925
10936
|
"thread.search": "thread.search";
|
|
10926
10937
|
"window.find": "window.find";
|
|
10938
|
+
"window.forceReload": "window.forceReload";
|
|
10927
10939
|
"window.new": "window.new";
|
|
10928
10940
|
"window.reload": "window.reload";
|
|
10929
10941
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -11027,6 +11039,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
11027
11039
|
"thread.rename": "thread.rename";
|
|
11028
11040
|
"thread.search": "thread.search";
|
|
11029
11041
|
"window.find": "window.find";
|
|
11042
|
+
"window.forceReload": "window.forceReload";
|
|
11030
11043
|
"window.new": "window.new";
|
|
11031
11044
|
"window.reload": "window.reload";
|
|
11032
11045
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -14475,6 +14488,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14475
14488
|
}, z$1.core.$strip>;
|
|
14476
14489
|
}, z$1.core.$strict>>;
|
|
14477
14490
|
total: z$1.ZodNumber;
|
|
14491
|
+
totalCapped: z$1.ZodBoolean;
|
|
14478
14492
|
}, z$1.core.$strict>;
|
|
14479
14493
|
archived: z$1.ZodObject<{
|
|
14480
14494
|
results: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -14571,6 +14585,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14571
14585
|
}, z$1.core.$strip>;
|
|
14572
14586
|
}, z$1.core.$strict>>;
|
|
14573
14587
|
total: z$1.ZodNumber;
|
|
14588
|
+
totalCapped: z$1.ZodBoolean;
|
|
14574
14589
|
}, z$1.core.$strict>;
|
|
14575
14590
|
}, z$1.core.$strict>;
|
|
14576
14591
|
type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
|
|
@@ -14696,6 +14711,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14696
14711
|
type: z$1.ZodLiteral<"new">;
|
|
14697
14712
|
}, z$1.core.$strip>], "type">;
|
|
14698
14713
|
}, z$1.core.$strip>>;
|
|
14714
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
14699
14715
|
hostId: z$1.ZodString;
|
|
14700
14716
|
hostLifecycle: z$1.ZodEnum<{
|
|
14701
14717
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -14737,6 +14753,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14737
14753
|
provisioning: "provisioning";
|
|
14738
14754
|
ready: "ready";
|
|
14739
14755
|
}>;
|
|
14756
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
14740
14757
|
updatedAt: z$1.ZodNumber;
|
|
14741
14758
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
14742
14759
|
"managed-worktree": "managed-worktree";
|
|
@@ -18443,9 +18460,16 @@ type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
|
18443
18460
|
type EnvironmentUpdateResult = Environment;
|
|
18444
18461
|
interface EnvironmentListArgs {
|
|
18445
18462
|
environmentProviderId?: string;
|
|
18463
|
+
/** Only environments with this holder: `"user"` or `"plugin:<pluginId>"`. */
|
|
18464
|
+
heldBy?: EnvironmentHolder;
|
|
18446
18465
|
hostId?: string;
|
|
18447
18466
|
instanceKey?: string;
|
|
18448
|
-
|
|
18467
|
+
/**
|
|
18468
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
18469
|
+
* page comes back shorter than its `limit`.
|
|
18470
|
+
*/
|
|
18471
|
+
limit: number;
|
|
18472
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
18449
18473
|
offset?: number;
|
|
18450
18474
|
path?: string;
|
|
18451
18475
|
projectId?: string;
|
|
@@ -18453,6 +18477,25 @@ interface EnvironmentListArgs {
|
|
|
18453
18477
|
status?: EnvironmentStatus;
|
|
18454
18478
|
}
|
|
18455
18479
|
type EnvironmentListResult = Environment[];
|
|
18480
|
+
interface EnvironmentCreateBaseArgs {
|
|
18481
|
+
projectId: string;
|
|
18482
|
+
/** Defaults to the project's default checkout machine. */
|
|
18483
|
+
hostId?: string;
|
|
18484
|
+
/** Defaults to the Worktree provider (Personal workspace for the personal project). */
|
|
18485
|
+
provider?: {
|
|
18486
|
+
id: string;
|
|
18487
|
+
inputs?: JsonValue;
|
|
18488
|
+
};
|
|
18489
|
+
name?: string;
|
|
18490
|
+
}
|
|
18491
|
+
/**
|
|
18492
|
+
* `hold: "user"` keeps the environment until the user deletes it and lets
|
|
18493
|
+
* threads join it.
|
|
18494
|
+
*/
|
|
18495
|
+
type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & {
|
|
18496
|
+
hold: "user";
|
|
18497
|
+
};
|
|
18498
|
+
type EnvironmentCreateResult = Environment;
|
|
18456
18499
|
interface EnvironmentDeleteArgs {
|
|
18457
18500
|
environmentId: string;
|
|
18458
18501
|
}
|
|
@@ -18464,13 +18507,15 @@ interface EnvironmentListProvidersArgs {
|
|
|
18464
18507
|
}
|
|
18465
18508
|
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
18466
18509
|
interface EnvironmentsArea {
|
|
18510
|
+
/** Create an environment before any thread exists; setup runs as for a thread. Experimental: see docs/api_to_audit.md. */
|
|
18511
|
+
experimental_create(args: EnvironmentCreateArgs): Promise<EnvironmentCreateResult>;
|
|
18467
18512
|
experimental_cleanup(args: EnvironmentActionArgs & {
|
|
18468
18513
|
recover?: boolean;
|
|
18469
18514
|
}): Promise<OperationResponse>;
|
|
18470
18515
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
18471
18516
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
18472
18517
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
18473
|
-
list(args
|
|
18518
|
+
list(args: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
18474
18519
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
18475
18520
|
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
18476
18521
|
paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
|
|
@@ -18954,6 +18999,10 @@ interface PluginMarketplaceRefreshArgs {
|
|
|
18954
18999
|
interface PluginMarketplaceRemoveArgs {
|
|
18955
19000
|
name: string;
|
|
18956
19001
|
}
|
|
19002
|
+
interface PluginMarketplaceSetEnabledArgs {
|
|
19003
|
+
name: string;
|
|
19004
|
+
enabled: boolean;
|
|
19005
|
+
}
|
|
18957
19006
|
interface PluginReloadArgs {
|
|
18958
19007
|
pluginId?: string;
|
|
18959
19008
|
}
|
|
@@ -19027,6 +19076,7 @@ type PluginCatalogInstallPlanResult = PluginCatalogInstallPlan;
|
|
|
19027
19076
|
type PluginMarketplaceListResult = PluginMarketplace[];
|
|
19028
19077
|
type PluginMarketplaceAddResult = PluginMarketplace;
|
|
19029
19078
|
type PluginMarketplaceRefreshResult = PluginMarketplaceRefreshResult$1[];
|
|
19079
|
+
type PluginMarketplaceSetEnabledResult = PluginMarketplace;
|
|
19030
19080
|
interface PluginMarketplaceRemoveResult {
|
|
19031
19081
|
convertedPluginIds: string[];
|
|
19032
19082
|
}
|
|
@@ -19042,6 +19092,7 @@ interface PluginMarketplacesArea {
|
|
|
19042
19092
|
list(args?: PluginMarketplaceListArgs): Promise<PluginMarketplaceListResult>;
|
|
19043
19093
|
refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
|
|
19044
19094
|
remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
|
|
19095
|
+
setEnabled(args: PluginMarketplaceSetEnabledArgs): Promise<PluginMarketplaceSetEnabledResult>;
|
|
19045
19096
|
}
|
|
19046
19097
|
interface PluginInstallJobsArea {
|
|
19047
19098
|
cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
@@ -19506,7 +19557,12 @@ interface ThreadListArgs {
|
|
|
19506
19557
|
sectionId?: string;
|
|
19507
19558
|
hasParent?: boolean;
|
|
19508
19559
|
includeHidden?: boolean;
|
|
19509
|
-
|
|
19560
|
+
/**
|
|
19561
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
19562
|
+
* page comes back shorter than its `limit`.
|
|
19563
|
+
*/
|
|
19564
|
+
limit: number;
|
|
19565
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
19510
19566
|
offset?: number;
|
|
19511
19567
|
originKind?: ThreadListQuery["originKind"];
|
|
19512
19568
|
originPluginId?: string;
|
|
@@ -19967,7 +20023,7 @@ interface ThreadsArea {
|
|
|
19967
20023
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
19968
20024
|
queue: ThreadQueueArea;
|
|
19969
20025
|
interactions: ThreadInteractionsArea;
|
|
19970
|
-
list(args
|
|
20026
|
+
list(args: ThreadListArgs): Promise<ThreadListResult>;
|
|
19971
20027
|
listRunning(args?: {
|
|
19972
20028
|
signal?: AbortSignal;
|
|
19973
20029
|
}): Promise<ThreadRunningResult>;
|
|
@@ -20069,7 +20125,7 @@ interface BbSdkAreas extends BbRealtime {
|
|
|
20069
20125
|
type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
20070
20126
|
|
|
20071
20127
|
/**
|
|
20072
|
-
* The `@get-bb/plugin-sdk/app` contract
|
|
20128
|
+
* The `@get-bb/plugin-sdk/app` contract — pure types with no
|
|
20073
20129
|
* side effects. The BB app imports these to keep its real implementation in
|
|
20074
20130
|
* sync (`satisfies PluginSdkApp`). Plugin authors import the same shapes through
|
|
20075
20131
|
* `@get-bb/plugin-sdk/app`.
|
|
@@ -20078,27 +20134,19 @@ type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
|
20078
20134
|
*/
|
|
20079
20135
|
/** Props passed to a `homepageSection` component. */
|
|
20080
20136
|
interface PluginHomepageSectionProps {
|
|
20081
|
-
/**
|
|
20137
|
+
/**
|
|
20138
|
+
* Project selected in the New thread composer; null when the composer is
|
|
20139
|
+
* set to "No project".
|
|
20140
|
+
*/
|
|
20082
20141
|
projectId: string | null;
|
|
20083
20142
|
}
|
|
20084
20143
|
/**
|
|
20085
20144
|
* Props passed to a `settingsSection` component.
|
|
20086
20145
|
*
|
|
20087
|
-
*
|
|
20146
|
+
* Deliberately empty while sections read live app state through SDK hooks;
|
|
20147
|
+
* versioned additive like the other slot props.
|
|
20088
20148
|
*/
|
|
20089
20149
|
interface PluginSettingsSectionProps {
|
|
20090
|
-
/**
|
|
20091
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
20092
|
-
* Set only when the setup guide renders the section; call it when the user
|
|
20093
|
-
* starts setting it up.
|
|
20094
|
-
*/
|
|
20095
|
-
internal_DO_NOT_USE_onSetupStarted?: () => void;
|
|
20096
|
-
/**
|
|
20097
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
20098
|
-
* Set only when the setup guide renders the section; call it when a setup
|
|
20099
|
-
* attempt fails, with the stage that failed and, when known, why.
|
|
20100
|
-
*/
|
|
20101
|
-
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
20102
20150
|
}
|
|
20103
20151
|
/**
|
|
20104
20152
|
* Stage of a setup guide section's setup attempt that failed.
|
|
@@ -20334,7 +20382,8 @@ interface ExperimentalSidebarNavigationItem {
|
|
|
20334
20382
|
isVisible: boolean;
|
|
20335
20383
|
/**
|
|
20336
20384
|
* A plugin panel remembered from the last session whose bundle has not
|
|
20337
|
-
* registered yet. Activating it
|
|
20385
|
+
* registered yet. Activating it opens the panel's page, which shows the
|
|
20386
|
+
* panel once the bundle loads.
|
|
20338
20387
|
*/
|
|
20339
20388
|
isLoading: boolean;
|
|
20340
20389
|
/**
|
|
@@ -20526,13 +20575,6 @@ interface PluginThreadListProps {
|
|
|
20526
20575
|
* Call after the user opens a thread. It closes the mobile sidebar drawer.
|
|
20527
20576
|
*/
|
|
20528
20577
|
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
20578
|
}
|
|
20537
20579
|
/** JavaScript world a Browser page expression runs in. */
|
|
20538
20580
|
type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
|
|
@@ -20563,7 +20605,12 @@ interface ExperimentalPluginBrowserPage {
|
|
|
20563
20605
|
onMessage(listener: (data: JsonValue$1) => void): () => void;
|
|
20564
20606
|
}
|
|
20565
20607
|
interface ExperimentalPluginBrowserToolbarActionProps {
|
|
20566
|
-
/**
|
|
20608
|
+
/**
|
|
20609
|
+
* Owner of the Browser tab. In a thread's side panel it is the thread id. On
|
|
20610
|
+
* the New thread screen and plugin pages it is an opaque panel key that is
|
|
20611
|
+
* not a thread id. Pass it with `tabId` as the `threadId` of
|
|
20612
|
+
* `sdk.experimental_desktopBrowsers` calls to reach this tab.
|
|
20613
|
+
*/
|
|
20567
20614
|
threadId: string;
|
|
20568
20615
|
/** Browser tab currently rendering the action. */
|
|
20569
20616
|
tabId: string;
|
|
@@ -21024,11 +21071,9 @@ interface PluginNavPanelRegistration {
|
|
|
21024
21071
|
* The action is thread-only and is never offered on the root New thread
|
|
21025
21072
|
* screen, so `threadId` is always present.
|
|
21026
21073
|
*/
|
|
21027
|
-
interface ExperimentalThreadTabActionContext {
|
|
21074
|
+
interface ExperimentalThreadTabActionContext extends ExperimentalPluginActionContext {
|
|
21028
21075
|
/** The thread whose panel launcher invoked the action. */
|
|
21029
21076
|
threadId: string;
|
|
21030
|
-
/** The side panel of the thread view that invoked the action. */
|
|
21031
|
-
experimental_panel: ExperimentalPanelController;
|
|
21032
21077
|
}
|
|
21033
21078
|
/** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
|
|
21034
21079
|
type ExperimentalTabContext = {
|
|
@@ -21060,9 +21105,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
|
|
|
21060
21105
|
}>;
|
|
21061
21106
|
/** Default persisted params when opened without explicit params. */
|
|
21062
21107
|
params?: JsonValue$1;
|
|
21063
|
-
run?(context: Context &
|
|
21064
|
-
experimental_panel: ExperimentalPanelController;
|
|
21065
|
-
}): void | Promise<void>;
|
|
21108
|
+
run?(context: Context & ExperimentalPluginActionContext): void | Promise<void>;
|
|
21066
21109
|
};
|
|
21067
21110
|
type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
|
|
21068
21111
|
kind: "thread";
|
|
@@ -21086,9 +21129,7 @@ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" |
|
|
|
21086
21129
|
params: JsonValue$1 | null;
|
|
21087
21130
|
}>;
|
|
21088
21131
|
params?: JsonValue$1;
|
|
21089
|
-
run?(context: ExperimentalTabContextProps<C> &
|
|
21090
|
-
experimental_panel: ExperimentalPanelController;
|
|
21091
|
-
}): void | Promise<void>;
|
|
21132
|
+
run?(context: ExperimentalTabContextProps<C> & ExperimentalPluginActionContext): void | Promise<void>;
|
|
21092
21133
|
experimental_target?: never;
|
|
21093
21134
|
});
|
|
21094
21135
|
/** One registration for pinned destinations and actions opening closable instances. */
|
|
@@ -21117,14 +21158,13 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
|
|
|
21117
21158
|
experimental_target?: ExperimentalFixedTabTargetContract<JsonValue$1>;
|
|
21118
21159
|
}))));
|
|
21119
21160
|
/** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
|
|
21120
|
-
|
|
21161
|
+
/**
|
|
21162
|
+
* `panel` is the New thread screen's side panel. Address this
|
|
21163
|
+
* action's tab as `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
21164
|
+
*/
|
|
21165
|
+
interface PluginNewThreadPanelActionContext extends ExperimentalPluginActionContext {
|
|
21121
21166
|
/** Project selected in the root composer; null in projectless compose. */
|
|
21122
21167
|
projectId: string | null;
|
|
21123
|
-
/**
|
|
21124
|
-
* The New thread screen's side panel. Address this action's tab as
|
|
21125
|
-
* `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
21126
|
-
*/
|
|
21127
|
-
experimental_panel: ExperimentalPanelController;
|
|
21128
21168
|
}
|
|
21129
21169
|
/** Registration for the root New thread screen's panel Actions list. */
|
|
21130
21170
|
interface PluginNewThreadPanelActionRegistration {
|
|
@@ -21159,8 +21199,11 @@ interface PluginPendingInteractionRegistration {
|
|
|
21159
21199
|
id: string;
|
|
21160
21200
|
component: ComponentType<PluginPendingInteractionProps>;
|
|
21161
21201
|
}
|
|
21162
|
-
/**
|
|
21163
|
-
|
|
21202
|
+
/**
|
|
21203
|
+
* Context handed to a `sidebarFooterAction`'s `run`. `navigate` and
|
|
21204
|
+
* `panel` act on the focused surface, as for commands.
|
|
21205
|
+
*/
|
|
21206
|
+
interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
21164
21207
|
/**
|
|
21165
21208
|
* Navigate to this plugin's detail page in Tools, where declarative settings
|
|
21166
21209
|
* and `settingsSection` slots render.
|
|
@@ -21186,8 +21229,11 @@ interface PluginSidebarFooterActionRegistration {
|
|
|
21186
21229
|
*/
|
|
21187
21230
|
run(context: PluginSidebarFooterActionContext): void | Promise<void>;
|
|
21188
21231
|
}
|
|
21189
|
-
/**
|
|
21190
|
-
|
|
21232
|
+
/**
|
|
21233
|
+
* Context handed to an experimental sidebar-footer action. `navigate` and
|
|
21234
|
+
* `panel` act on the focused surface, as for commands.
|
|
21235
|
+
*/
|
|
21236
|
+
interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
21191
21237
|
/** Navigate to this plugin's detail page in Tools. */
|
|
21192
21238
|
openPluginDetails(): void;
|
|
21193
21239
|
}
|
|
@@ -21652,8 +21698,8 @@ interface PluginSidebarThreadDraftState {
|
|
|
21652
21698
|
* the content-script context's `experimental_setThreadRowStatus` (see
|
|
21653
21699
|
* {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
|
|
21654
21700
|
* place of the draft glyph while it is set; a replaced list should do the
|
|
21655
|
-
* same so a status
|
|
21656
|
-
*
|
|
21701
|
+
* same so a status another plugin set does not vanish when the list changes
|
|
21702
|
+
* hands. No bundled plugin sets one; only content scripts can.
|
|
21657
21703
|
*/
|
|
21658
21704
|
type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
|
|
21659
21705
|
/**
|
|
@@ -21952,8 +21998,12 @@ type ExperimentalThreadContextKind = "banner" | "card";
|
|
|
21952
21998
|
* `experimental_threadInfoRow`. Render one or more
|
|
21953
21999
|
* `experimental_ThreadContextCardRow` elements, or null to show nothing for
|
|
21954
22000
|
* this thread. bb draws the card and places it, and mounts rows only in panes
|
|
21955
|
-
* whose thread context kind is `card`.
|
|
21956
|
-
*
|
|
22001
|
+
* whose thread context kind is `card`. The card is behind the "Thread context
|
|
22002
|
+
* card" experiment, off by default, and never shows on a phone (a compact
|
|
22003
|
+
* viewport with a coarse pointer); every other pane uses the `banner` kind, so
|
|
22004
|
+
* register an `experimental_threadContextSegment` or
|
|
22005
|
+
* `experimental_threadInfoRow` as well to reach it. A crash removes only this
|
|
22006
|
+
* row for that thread.
|
|
21957
22007
|
*/
|
|
21958
22008
|
interface ExperimentalThreadContextCardRowRegistration {
|
|
21959
22009
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
@@ -21970,16 +22020,20 @@ interface ExperimentalThreadContextCardRowRegistration {
|
|
|
21970
22020
|
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
21971
22021
|
}
|
|
21972
22022
|
/**
|
|
21973
|
-
* A
|
|
21974
|
-
* counterpart of `experimental_threadInfoSection`.
|
|
21975
|
-
*
|
|
21976
|
-
*
|
|
22023
|
+
* A section of the thread context card, below its rows; the card's
|
|
22024
|
+
* counterpart of `experimental_threadInfoSection`. Render one
|
|
22025
|
+
* `experimental_InfoSection`, or null to hide the section for this thread. In
|
|
22026
|
+
* the card, bb draws the section's label as a button that folds it and a
|
|
22027
|
+
* divider above it. Sections start open; bb remembers the ones the person folds
|
|
22028
|
+
* by `pluginId/id` across threads and restarts. While folded, the component
|
|
22029
|
+
* stays mounted and the `experimental_InfoSection` children unmount. Like
|
|
22030
|
+
* card rows, sections mount only where the card shows: behind the "Thread
|
|
22031
|
+
* context card" experiment, off by default, and never on a phone. A crash
|
|
22032
|
+
* removes only this section for that thread.
|
|
21977
22033
|
*/
|
|
21978
22034
|
interface ExperimentalThreadContextCardSectionRegistration {
|
|
21979
22035
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
21980
22036
|
id: string;
|
|
21981
|
-
/** Heading bb draws above the section's rows. */
|
|
21982
|
-
title: string;
|
|
21983
22037
|
/**
|
|
21984
22038
|
* Sections sort by `group` (string compare), then by `order` within a group
|
|
21985
22039
|
* (unset sorts last), then by registration order, with bb's own sections
|
|
@@ -22095,6 +22149,11 @@ interface PluginThreadActionTarget {
|
|
|
22095
22149
|
pinnedAt: number | null;
|
|
22096
22150
|
sectionId: string | null;
|
|
22097
22151
|
isUnread: boolean;
|
|
22152
|
+
/**
|
|
22153
|
+
* True for threads bb keeps out of its own list, such as side chats; pins
|
|
22154
|
+
* and sections on them have no visible effect.
|
|
22155
|
+
*/
|
|
22156
|
+
isHidden: boolean;
|
|
22098
22157
|
status: ThreadStatus;
|
|
22099
22158
|
/**
|
|
22100
22159
|
* The thread's environment when a new thread can reuse it, null otherwise.
|
|
@@ -22172,36 +22231,25 @@ interface PluginThreadActionDataInput {
|
|
|
22172
22231
|
threadIds: readonly string[];
|
|
22173
22232
|
}
|
|
22174
22233
|
/** What a registration's `item` receives for each thread it is shown for. */
|
|
22175
|
-
|
|
22234
|
+
/**
|
|
22235
|
+
* `panel` is the focused surface's side panel, as for plugin
|
|
22236
|
+
* commands. Thread menus are not inside a side panel, so calls return false
|
|
22237
|
+
* when the focused surface has no such tab.
|
|
22238
|
+
*/
|
|
22239
|
+
interface PluginThreadActionItemInput<Data> extends ExperimentalPluginActionContext {
|
|
22176
22240
|
thread: PluginThreadActionTarget;
|
|
22177
22241
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
22178
22242
|
data: Data;
|
|
22179
|
-
/** The registering plugin's `useSdk()` client. */
|
|
22180
|
-
sdk: PluginBrowserBbSdk;
|
|
22181
|
-
/** The registering plugin's `useBbNavigate()`. */
|
|
22182
|
-
navigate: BbNavigate;
|
|
22183
|
-
/**
|
|
22184
|
-
* The focused surface's side panel, as for plugin commands. Thread menus
|
|
22185
|
-
* are not inside a side panel, so calls return false when the focused
|
|
22186
|
-
* surface has no such tab.
|
|
22187
|
-
*/
|
|
22188
|
-
experimental_panel: ExperimentalPanelController;
|
|
22189
22243
|
}
|
|
22190
22244
|
/**
|
|
22191
22245
|
* What a registration's `experimental_bulkItem` receives for a selection
|
|
22192
22246
|
* of several threads.
|
|
22193
22247
|
*/
|
|
22194
|
-
interface PluginThreadActionBulkItemInput<Data> {
|
|
22248
|
+
interface PluginThreadActionBulkItemInput<Data> extends ExperimentalPluginActionContext {
|
|
22195
22249
|
/** The selected threads in the surface's list order; always two or more. */
|
|
22196
22250
|
threads: readonly PluginThreadActionTarget[];
|
|
22197
22251
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
22198
22252
|
data: Data;
|
|
22199
|
-
/** The registering plugin's `useSdk()` client. */
|
|
22200
|
-
sdk: PluginBrowserBbSdk;
|
|
22201
|
-
/** The registering plugin's `useBbNavigate()`, as for `item`. */
|
|
22202
|
-
navigate: BbNavigate;
|
|
22203
|
-
/** The focused surface's side panel, as for `item`. */
|
|
22204
|
-
experimental_panel: ExperimentalPanelController;
|
|
22205
22253
|
}
|
|
22206
22254
|
/**
|
|
22207
22255
|
* Add an action to every thread actions menu: the thread header's menu, the
|
|
@@ -22247,7 +22295,8 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
22247
22295
|
* (see {@link PluginThreadActionsContextMenuProps}). Pure and
|
|
22248
22296
|
* synchronous like `item`, with every selected thread in `useData`'s
|
|
22249
22297
|
* `threadIds`; `run` acts on all of them. Omit it, or return null, to leave
|
|
22250
|
-
* the action out of selection menus.
|
|
22298
|
+
* the action out of selection menus. Unused with `placement: "header"`,
|
|
22299
|
+
* which selection menus leave out. Experimental: see docs/api_to_audit.md.
|
|
22251
22300
|
*/
|
|
22252
22301
|
experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
|
|
22253
22302
|
}
|
|
@@ -22255,9 +22304,11 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
22255
22304
|
* Where a thread action shows.
|
|
22256
22305
|
*
|
|
22257
22306
|
* - `"menu"`: every thread actions menu and the quick-action picker.
|
|
22258
|
-
* - `"header"`: only the open thread's header, as an outline button
|
|
22259
|
-
*
|
|
22260
|
-
*
|
|
22307
|
+
* - `"header"`: only the open thread's header, as an outline button with the
|
|
22308
|
+
* action's `icon` and `label`, after the workspace's Open button. `detail`
|
|
22309
|
+
* is the button's tooltip and `variant: "destructive"` colors it. Several
|
|
22310
|
+
* header actions share one split button, the first as its main action and
|
|
22311
|
+
* the rest as menu rows drawn like the thread menu's. At
|
|
22261
22312
|
* compact width and in narrow split panes the buttons fold into the
|
|
22262
22313
|
* header's thread menu as rows at its top, after Open. `group` and `order`
|
|
22263
22314
|
* sort header actions among themselves. Header actions never appear in
|
|
@@ -23246,8 +23297,71 @@ interface ExperimentalMessageMetadataRegistration {
|
|
|
23246
23297
|
}
|
|
23247
23298
|
/** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
|
|
23248
23299
|
type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
|
|
23300
|
+
/**
|
|
23301
|
+
* bb's own Archive and Delete flows, the ones its thread menus and selection
|
|
23302
|
+
* menu run. Each takes thread ids, fetches any thread the app has not loaded,
|
|
23303
|
+
* counts child threads on the server, and confirms once for the whole list:
|
|
23304
|
+
* Delete always, Archive when a tree has child threads outside the list and
|
|
23305
|
+
* archive confirmation is on in Settings → General. Archive then removes the
|
|
23306
|
+
* threads, closes their split panes, leaves a route that showed one of them,
|
|
23307
|
+
* and shows one Undo toast that restores the threads and the route. Delete
|
|
23308
|
+
* cleans up panes and routes the same way and has no Undo.
|
|
23309
|
+
*
|
|
23310
|
+
* The promise resolves once the flow settles: done, cancelled in the dialog,
|
|
23311
|
+
* or failed after bb has shown its error toast. It never rejects. Archive
|
|
23312
|
+
* skips threads that are already archived. Server code should call
|
|
23313
|
+
* `bb.sdk.threads.archive` instead, which has no confirmation or Undo.
|
|
23314
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23315
|
+
*/
|
|
23316
|
+
interface ExperimentalThreadRequests {
|
|
23317
|
+
requestArchive(threadIds: readonly string[]): Promise<void>;
|
|
23318
|
+
requestDelete(threadIds: readonly string[]): Promise<void>;
|
|
23319
|
+
}
|
|
23320
|
+
/**
|
|
23321
|
+
* What every plugin callback's context carries besides its own fields:
|
|
23322
|
+
* commands, message actions, thread actions, panel and New thread panel
|
|
23323
|
+
* actions, sidebar footer actions, and composer commands and menu items.
|
|
23324
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23325
|
+
*/
|
|
23326
|
+
interface ExperimentalPluginActionContext {
|
|
23327
|
+
/** The registering plugin's `useSdk()` client. */
|
|
23328
|
+
sdk: PluginBrowserBbSdk;
|
|
23329
|
+
/**
|
|
23330
|
+
* The registering plugin's `useBbNavigate()`, bound to the surface that
|
|
23331
|
+
* invoked the callback, so terminals, files and links open there.
|
|
23332
|
+
*/
|
|
23333
|
+
navigate: BbNavigate;
|
|
23334
|
+
/** The side panel of the surface that invoked the callback. */
|
|
23335
|
+
panel: ExperimentalPanelController;
|
|
23336
|
+
/**
|
|
23337
|
+
* The composer this callback acts on, bound to this plugin like
|
|
23338
|
+
* `useComposers()` handles. A composer command or menu item gets the
|
|
23339
|
+
* handling composer; a message action gets the composer of the message's
|
|
23340
|
+
* thread. Every other callback gets the focused surface's active composer:
|
|
23341
|
+
* the one holding the caret, or the one that held it before focus moved into
|
|
23342
|
+
* the command palette, a dialog, a popover or an overlay; otherwise the
|
|
23343
|
+
* surface's main composer; otherwise null, as on a plugin page without a
|
|
23344
|
+
* composer. Read in app-wide components with
|
|
23345
|
+
* `experimental_useActiveComposer()`. Experimental: see docs/api_to_audit.md.
|
|
23346
|
+
*/
|
|
23347
|
+
composer: PluginComposerApi | null;
|
|
23348
|
+
/**
|
|
23349
|
+
* bb's own Archive and Delete flows (see {@link ExperimentalThreadRequests}),
|
|
23350
|
+
* the same object `experimental_useThreadRequests()` returns in components.
|
|
23351
|
+
*/
|
|
23352
|
+
threadRequests: ExperimentalThreadRequests;
|
|
23353
|
+
}
|
|
23354
|
+
/**
|
|
23355
|
+
* Context handed to a composer command's or composer menu item's `run`.
|
|
23356
|
+
* `navigate` and `panel` act on the surface showing the
|
|
23357
|
+
* composer.
|
|
23358
|
+
*/
|
|
23359
|
+
interface ExperimentalComposerActionContext extends ExperimentalPluginActionContext {
|
|
23360
|
+
/** The handling composer, bound to this plugin like `useComposer()`. */
|
|
23361
|
+
composer: PluginComposerApi;
|
|
23362
|
+
}
|
|
23249
23363
|
/** Context handed to a `messageAction`'s `run`. */
|
|
23250
|
-
interface PluginMessageActionContext {
|
|
23364
|
+
interface PluginMessageActionContext extends ExperimentalPluginActionContext {
|
|
23251
23365
|
/** The thread whose timeline surfaced the action. */
|
|
23252
23366
|
threadId: string;
|
|
23253
23367
|
message: ThreadChatMessageReference;
|
|
@@ -23256,8 +23370,6 @@ interface PluginMessageActionContext {
|
|
|
23256
23370
|
* the exact text the user highlighted inside `message`.
|
|
23257
23371
|
*/
|
|
23258
23372
|
selectedText?: string;
|
|
23259
|
-
/** The side panel of the thread view whose timeline surfaced the action. */
|
|
23260
|
-
experimental_panel: ExperimentalPanelController;
|
|
23261
23373
|
/**
|
|
23262
23374
|
* The composer of the thread the message is in, or null when that thread's
|
|
23263
23375
|
* composer is not available on this surface. The same handle
|
|
@@ -23292,21 +23404,20 @@ interface PluginMessageActionRegistration {
|
|
|
23292
23404
|
*/
|
|
23293
23405
|
run(context: PluginMessageActionContext): void | Promise<void>;
|
|
23294
23406
|
}
|
|
23295
|
-
/**
|
|
23296
|
-
|
|
23407
|
+
/**
|
|
23408
|
+
* Current context for palette and keyboard command invocations. `navigate`
|
|
23409
|
+
* and `panel` act on the focused surface: the thread view or
|
|
23410
|
+
* New thread screen in focus, or the focused plugin page. On the New thread
|
|
23411
|
+
* screen, a `{ context: { kind: "thread" }, availability: "action" }` tab
|
|
23412
|
+
* resolves against `experimental_newThreadPanelAction` with the same id, so
|
|
23413
|
+
* register both slots with the same id to support commands on both screens.
|
|
23414
|
+
* Panel calls return false when the focused surface has no such tab or no
|
|
23415
|
+
* side panel; guard with `isAvailable` rather than assuming.
|
|
23416
|
+
*/
|
|
23417
|
+
interface PluginCommandContext extends ExperimentalPluginActionContext {
|
|
23297
23418
|
/** The thread in view, or null on a surface without one. */
|
|
23298
23419
|
threadId: string | null;
|
|
23299
23420
|
projectId: string | null;
|
|
23300
|
-
/**
|
|
23301
|
-
* The focused surface's side panel: the thread view or New thread screen
|
|
23302
|
-
* in focus, or the focused plugin page. On the New thread screen, a
|
|
23303
|
-
* `{ context: { kind: "thread" }, availability: "action" }` tab resolves
|
|
23304
|
-
* against `experimental_newThreadPanelAction` with the same id, so register
|
|
23305
|
-
* both slots with the same id to support commands on both screens. Calls
|
|
23306
|
-
* return false when the focused surface has no such tab or no side panel;
|
|
23307
|
-
* guard with `isAvailable` rather than assuming.
|
|
23308
|
-
*/
|
|
23309
|
-
experimental_panel: ExperimentalPanelController;
|
|
23310
23421
|
}
|
|
23311
23422
|
/** A default keyboard shortcut. Omitted modifiers are false. */
|
|
23312
23423
|
interface PluginCommandShortcut {
|
|
@@ -23369,9 +23480,7 @@ interface ExperimentalComposerCommandRegistration {
|
|
|
23369
23480
|
* Runs with the handling composer, bound to this plugin like `useComposer()`.
|
|
23370
23481
|
* Errors (sync or async) are contained and logged.
|
|
23371
23482
|
*/
|
|
23372
|
-
run(context:
|
|
23373
|
-
composer: PluginComposerApi;
|
|
23374
|
-
}): void | Promise<void>;
|
|
23483
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23375
23484
|
}
|
|
23376
23485
|
/** Registers commands for bb's command palette. */
|
|
23377
23486
|
interface PluginAppCommands {
|
|
@@ -23642,13 +23751,13 @@ interface PluginAppSlots {
|
|
|
23642
23751
|
*/
|
|
23643
23752
|
experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
|
|
23644
23753
|
/**
|
|
23645
|
-
* Add a row to the thread context card
|
|
23754
|
+
* Add a row to the thread context card, in panes that show one (see
|
|
23646
23755
|
* {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
|
|
23647
23756
|
* docs/api_to_audit.md.
|
|
23648
23757
|
*/
|
|
23649
23758
|
experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
|
|
23650
23759
|
/**
|
|
23651
|
-
* Add a
|
|
23760
|
+
* Add a section to the thread context card, in panes that show one (see
|
|
23652
23761
|
* {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
|
|
23653
23762
|
* see docs/api_to_audit.md.
|
|
23654
23763
|
*/
|
|
@@ -23888,7 +23997,13 @@ type PluginComposerScope = {
|
|
|
23888
23997
|
interface ComposerCustomization {
|
|
23889
23998
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
23890
23999
|
id: string;
|
|
23891
|
-
/**
|
|
24000
|
+
/**
|
|
24001
|
+
* Composer kinds where this customization is active; omit for all kinds.
|
|
24002
|
+
* The sent-message editor reports `"thread"` and runs only what the user
|
|
24003
|
+
* invokes there: `plusMenu` rows, the popups they open, and composer
|
|
24004
|
+
* commands. It mounts no `actions`, `banners`, `sendMenu` rows or
|
|
24005
|
+
* `richText` effects.
|
|
24006
|
+
*/
|
|
23892
24007
|
scopes?: readonly PluginComposerScope["kind"][];
|
|
23893
24008
|
/**
|
|
23894
24009
|
* Controls rendered in the composer's action row, before the voice, stop
|
|
@@ -23932,9 +24047,7 @@ interface ComposerPlusMenuItem {
|
|
|
23932
24047
|
/** Accessible description for the host-rendered row. */
|
|
23933
24048
|
description?: string;
|
|
23934
24049
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
23935
|
-
run(context:
|
|
23936
|
-
composer: PluginComposerApi;
|
|
23937
|
-
}): void | Promise<void>;
|
|
24050
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23938
24051
|
}
|
|
23939
24052
|
/**
|
|
23940
24053
|
* Host-rendered row in the menu next to the composer's send button, for
|
|
@@ -23949,9 +24062,7 @@ interface ComposerSendMenuItem {
|
|
|
23949
24062
|
/** Accessible description for the host-rendered row. */
|
|
23950
24063
|
description?: string;
|
|
23951
24064
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
23952
|
-
run(context:
|
|
23953
|
-
composer: PluginComposerApi;
|
|
23954
|
-
}): void | Promise<void>;
|
|
24065
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
23955
24066
|
}
|
|
23956
24067
|
interface ComposerRichTextSpec {
|
|
23957
24068
|
/** Content-derived paint: match ranges receive `className`; text is never mutated. */
|
|
@@ -24344,7 +24455,7 @@ interface ThreadChatMessageAction {
|
|
|
24344
24455
|
* Props of the host-owned `ThreadChat` component — one thread's chat
|
|
24345
24456
|
* (timeline, and for the composer variants the full send/queue/draft
|
|
24346
24457
|
* engine), rendered by the BB app inside a plugin slot. This is the
|
|
24347
|
-
* deliberate exception to the no-host-components rule
|
|
24458
|
+
* deliberate exception to the no-host-components rule: a stable
|
|
24348
24459
|
* product capability, not a UI kit. Versioned additive like slot props;
|
|
24349
24460
|
* internal timeline rows, query hooks, and prompt-box configuration are
|
|
24350
24461
|
* deliberately not exposed.
|
|
@@ -24559,7 +24670,7 @@ interface NewThreadRequest {
|
|
|
24559
24670
|
* rendered by the BB app inside a plugin slot.
|
|
24560
24671
|
*
|
|
24561
24672
|
* It is the create-side counterpart to `ThreadChat`: same deliberate
|
|
24562
|
-
* exception to the no-host-components rule
|
|
24673
|
+
* exception to the no-host-components rule, same additive versioning.
|
|
24563
24674
|
*/
|
|
24564
24675
|
interface NewThreadComposerProps {
|
|
24565
24676
|
/**
|
|
@@ -24881,10 +24992,23 @@ interface ExperimentalPanelTabIconProps {
|
|
|
24881
24992
|
/** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
|
|
24882
24993
|
tabKey: string;
|
|
24883
24994
|
}
|
|
24995
|
+
/** A plugin nav panel page; see {@link BbContext.experimental_pluginPanel}. */
|
|
24996
|
+
interface ExperimentalPluginPanelPage {
|
|
24997
|
+
pluginId: string;
|
|
24998
|
+
/** The panel's registered `path`. */
|
|
24999
|
+
path: string;
|
|
25000
|
+
/** The location inside the panel, percent-encoded like the component's `subPath` prop; empty at the panel's root. */
|
|
25001
|
+
subPath: string;
|
|
25002
|
+
}
|
|
24884
25003
|
/** Current app selection, derived from the route. */
|
|
24885
25004
|
interface BbContext {
|
|
24886
25005
|
projectId: string | null;
|
|
24887
25006
|
threadId: string | null;
|
|
25007
|
+
/**
|
|
25008
|
+
* The plugin nav panel the route shows (any plugin's), or null on other
|
|
25009
|
+
* pages. Experimental: see docs/api_to_audit.md.
|
|
25010
|
+
*/
|
|
25011
|
+
experimental_pluginPanel: ExperimentalPluginPanelPage | null;
|
|
24888
25012
|
}
|
|
24889
25013
|
interface BbNavigate {
|
|
24890
25014
|
/**
|
|
@@ -24910,14 +25034,17 @@ interface BbNavigate {
|
|
|
24910
25034
|
}): void;
|
|
24911
25035
|
/**
|
|
24912
25036
|
* Navigate to the root compose surface (the new-thread screen). Pass
|
|
24913
|
-
* `initialPrompt` to seed the composer draft (serialized
|
|
24914
|
-
* and section mention tokens become pills) and
|
|
24915
|
-
* composer on arrival — the pairing behind
|
|
24916
|
-
* points that drop the user into chat with a
|
|
24917
|
-
* `projectId` makes that project the composer's
|
|
24918
|
-
* files the new thread in a section and pin state
|
|
24919
|
-
*
|
|
24920
|
-
*
|
|
25037
|
+
* `initialPrompt` to seed the composer draft when it is empty (serialized
|
|
25038
|
+
* thread, project, and section mention tokens become pills) and
|
|
25039
|
+
* `focusPrompt` to focus the composer on arrival — the pairing behind
|
|
25040
|
+
* "Create via chat" style entry points that drop the user into chat with a
|
|
25041
|
+
* prefilled prompt. `projectId` makes that project the composer's
|
|
25042
|
+
* selection; `placement` files the new thread in a section and pin state.
|
|
25043
|
+
* Without `placement`, the screen keeps the placement it already shows,
|
|
25044
|
+
* unless `environmentId` or `hostId` is set, which resets it to unpinned
|
|
25045
|
+
* and outside sections. `environmentId` reuses that environment and
|
|
25046
|
+
* `hostId` picks a machine for a new one (`environmentId` wins when both
|
|
25047
|
+
* are set).
|
|
24921
25048
|
*/
|
|
24922
25049
|
toCompose(options?: {
|
|
24923
25050
|
projectId?: string;
|
|
@@ -25052,6 +25179,13 @@ interface ExperimentalServers {
|
|
|
25052
25179
|
servers: readonly ExperimentalServer[];
|
|
25053
25180
|
/** Switch this client to the server and reload the page on it, unloading every plugin. Ignores the active server and unknown ids. */
|
|
25054
25181
|
switchTo(id: string): void;
|
|
25182
|
+
/** 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. */
|
|
25183
|
+
addServer: (() => void) | null;
|
|
25184
|
+
/** 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. */
|
|
25185
|
+
accountSignIn: {
|
|
25186
|
+
label: string;
|
|
25187
|
+
start(): void;
|
|
25188
|
+
} | null;
|
|
25055
25189
|
}
|
|
25056
25190
|
/**
|
|
25057
25191
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
@@ -25167,6 +25301,13 @@ interface PluginSdkApp {
|
|
|
25167
25301
|
* offers. Null when the client keeps no server list: any web browser.
|
|
25168
25302
|
*/
|
|
25169
25303
|
experimental_useServers(): ExperimentalServers | null;
|
|
25304
|
+
/**
|
|
25305
|
+
* True on clients that keep a server list (bb Desktop and the mobile app),
|
|
25306
|
+
* where `experimental_useServers()` returns a value; false in a web browser.
|
|
25307
|
+
* Fixed for the life of the page, so a plugin can read it inside
|
|
25308
|
+
* `definePluginApp` to register server controls only where they work.
|
|
25309
|
+
*/
|
|
25310
|
+
experimental_hasServers(): boolean;
|
|
25170
25311
|
/**
|
|
25171
25312
|
* The side panel of the surface the calling component renders in: the
|
|
25172
25313
|
* thread view, the plugin page, or the New thread screen.
|
|
@@ -25197,6 +25338,18 @@ interface PluginSdkApp {
|
|
|
25197
25338
|
* changes.
|
|
25198
25339
|
*/
|
|
25199
25340
|
useComposers(): readonly PluginComposerApi[];
|
|
25341
|
+
/**
|
|
25342
|
+
* The focused surface's active composer, the value plain commands read as
|
|
25343
|
+
* `context.composer`: the composer holding the caret, or the one that held
|
|
25344
|
+
* it before focus moved into the command palette, a dialog, a popover or an
|
|
25345
|
+
* overlay; otherwise the surface's main composer; otherwise null. For
|
|
25346
|
+
* app-wide components such as overlays and plugin pages; inside a composer
|
|
25347
|
+
* slot use `useComposer()`. The handle names the same composer as the
|
|
25348
|
+
* `useComposers()` entry with its `key`. The calling component re-renders
|
|
25349
|
+
* when the active composer or its draft changes. Experimental: see
|
|
25350
|
+
* docs/api_to_audit.md.
|
|
25351
|
+
*/
|
|
25352
|
+
experimental_useActiveComposer(): PluginComposerApi | null;
|
|
25200
25353
|
/**
|
|
25201
25354
|
* The sidebar's live thread view (see {@link PluginSidebarThreadsState}).
|
|
25202
25355
|
* Reads the host's own cache and realtime subscriptions, so it costs no
|
|
@@ -25216,6 +25369,13 @@ interface PluginSdkApp {
|
|
|
25216
25369
|
/** Defaults to active threads only. An empty selection also means active. */
|
|
25217
25370
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
25218
25371
|
}): PluginSidebarThreadsState;
|
|
25372
|
+
/**
|
|
25373
|
+
* bb's Archive and Delete flows for any thread ids, with its confirmation,
|
|
25374
|
+
* child counts, Undo and error toast (see
|
|
25375
|
+
* {@link ExperimentalThreadRequests}). Callbacks get the same object as
|
|
25376
|
+
* their context's `threadRequests`. Experimental: see docs/api_to_audit.md.
|
|
25377
|
+
*/
|
|
25378
|
+
experimental_useThreadRequests(): ExperimentalThreadRequests;
|
|
25219
25379
|
/**
|
|
25220
25380
|
* Archive an environment's active thread trees the way bb's own list does:
|
|
25221
25381
|
* optimistic removal, closing their split panes, leaving a route that shows
|
|
@@ -25464,9 +25624,9 @@ interface PluginSdkApp {
|
|
|
25464
25624
|
*/
|
|
25465
25625
|
experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
|
|
25466
25626
|
/**
|
|
25467
|
-
* The host-owned chat component (see {@link ThreadChatProps})
|
|
25468
|
-
*
|
|
25469
|
-
*
|
|
25627
|
+
* The host-owned chat component (see {@link ThreadChatProps}): bb's own
|
|
25628
|
+
* chat, not a generic UI kit. Generic primitives stay vendored from the BB
|
|
25629
|
+
* registry.
|
|
25470
25630
|
*/
|
|
25471
25631
|
ThreadChat: ComponentType<ThreadChatProps>;
|
|
25472
25632
|
/**
|
|
@@ -25549,10 +25709,12 @@ interface PluginSdkApp {
|
|
|
25549
25709
|
*/
|
|
25550
25710
|
experimental_Diff: ComponentType<DiffProps>;
|
|
25551
25711
|
/**
|
|
25552
|
-
* The thread Info tab
|
|
25712
|
+
* The section frame of the thread Info tab and the thread context card (see
|
|
25553
25713
|
* {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
|
|
25554
|
-
* Inside an `experimental_threadInfoSection` it collapses, and
|
|
25555
|
-
*
|
|
25714
|
+
* Inside an `experimental_threadInfoSection` it collapses, and inside an
|
|
25715
|
+
* `experimental_threadContextCardSection` it folds in the card's style; the
|
|
25716
|
+
* host remembers either per registration. Experimental: see
|
|
25717
|
+
* docs/api_to_audit.md.
|
|
25556
25718
|
*/
|
|
25557
25719
|
experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
|
|
25558
25720
|
/**
|
|
@@ -25754,10 +25916,12 @@ declare const useBbNavigate: () => BbNavigate;
|
|
|
25754
25916
|
declare const experimental_useCanOpenFileExternally: (target: ExperimentalLiveFileTarget) => boolean;
|
|
25755
25917
|
declare const experimental_useTabVisible: () => boolean;
|
|
25756
25918
|
declare const experimental_useServers: () => ExperimentalServers | null;
|
|
25919
|
+
declare const experimental_hasServers: () => boolean;
|
|
25757
25920
|
declare const experimental_useAppPanel: () => ExperimentalPanelController;
|
|
25758
25921
|
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
25759
25922
|
declare const useComposer: () => PluginComposerApi;
|
|
25760
25923
|
declare const useComposers: () => readonly PluginComposerApi[];
|
|
25924
|
+
declare const experimental_useActiveComposer: () => PluginComposerApi | null;
|
|
25761
25925
|
declare const experimental_useComposerRenderer: () => ExperimentalComposerRendererApi;
|
|
25762
25926
|
declare const experimental_useThreadTitleDisplayText: (title: string) => string;
|
|
25763
25927
|
declare const experimental_useComposerContributions: () => ExperimentalComposerContributions;
|
|
@@ -25781,6 +25945,7 @@ declare const experimental_useSidebarThreads: (options?: {
|
|
|
25781
25945
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
25782
25946
|
}) => PluginSidebarThreadsState;
|
|
25783
25947
|
declare const experimental_useThreadActions: (thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions) => readonly PluginThreadActionEntry[];
|
|
25948
|
+
declare const experimental_useThreadRequests: () => ExperimentalThreadRequests;
|
|
25784
25949
|
declare const experimental_useArchiveEnvironmentThreads: () => (environmentId: string) => Promise<void>;
|
|
25785
25950
|
declare const experimental_useThreadActionRegistrations: () => readonly PluginThreadActionRegistrationInfo[];
|
|
25786
25951
|
declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadActionsMenuProps>;
|
|
@@ -25813,5 +25978,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
25813
25978
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
25814
25979
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
25815
25980
|
|
|
25816
|
-
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 };
|
|
25817
|
-
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, 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, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, 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 };
|
|
25981
|
+
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 };
|
|
25982
|
+
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 };
|