@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
|
@@ -300,7 +300,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
300
300
|
}, z$1.core.$strict>]>;
|
|
301
301
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
302
302
|
|
|
303
|
-
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"];
|
|
303
|
+
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"];
|
|
304
304
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
305
305
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
306
306
|
schema: Schema;
|
|
@@ -339,6 +339,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
339
339
|
readonly "sidebar.updates.skipped": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
340
340
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
341
341
|
readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
|
|
342
|
+
readonly "threadContextCard.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
342
343
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
343
344
|
};
|
|
344
345
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
@@ -435,6 +436,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
435
436
|
"thread.rename": "thread.rename";
|
|
436
437
|
"thread.search": "thread.search";
|
|
437
438
|
"window.find": "window.find";
|
|
439
|
+
"window.forceReload": "window.forceReload";
|
|
438
440
|
"window.new": "window.new";
|
|
439
441
|
"window.reload": "window.reload";
|
|
440
442
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -616,6 +618,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
616
618
|
}, z$1.core.$strict>], "entity">;
|
|
617
619
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
618
620
|
|
|
621
|
+
declare const environmentHolderSchema: z$1.ZodLiteral<"user">;
|
|
622
|
+
type EnvironmentHolder = z$1.infer<typeof environmentHolderSchema>;
|
|
619
623
|
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
620
624
|
creating: "creating";
|
|
621
625
|
destroyed: "destroyed";
|
|
@@ -654,6 +658,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
654
658
|
type: z$1.ZodLiteral<"new">;
|
|
655
659
|
}, z$1.core.$strip>], "type">;
|
|
656
660
|
}, z$1.core.$strip>>;
|
|
661
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
657
662
|
hostId: z$1.ZodString;
|
|
658
663
|
hostLifecycle: z$1.ZodEnum<{
|
|
659
664
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -695,6 +700,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
695
700
|
provisioning: "provisioning";
|
|
696
701
|
ready: "ready";
|
|
697
702
|
}>;
|
|
703
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
698
704
|
updatedAt: z$1.ZodNumber;
|
|
699
705
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
700
706
|
"managed-worktree": "managed-worktree";
|
|
@@ -5212,7 +5218,7 @@ declare const skillListResponseSchema: z$1.ZodObject<{
|
|
|
5212
5218
|
manageable: z$1.ZodBoolean;
|
|
5213
5219
|
name: z$1.ZodString;
|
|
5214
5220
|
pluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
5215
|
-
|
|
5221
|
+
providers: z$1.ZodArray<z$1.ZodString>;
|
|
5216
5222
|
registrySkillId: z$1.ZodNullable<z$1.ZodString>;
|
|
5217
5223
|
scope: z$1.ZodEnum<{
|
|
5218
5224
|
"bb-builtin": "bb-builtin";
|
|
@@ -7976,7 +7982,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7976
7982
|
rootPath: z$1.ZodString;
|
|
7977
7983
|
type: z$1.ZodLiteral<"host.read_file_chunk">;
|
|
7978
7984
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7979
|
-
content: z$1.
|
|
7985
|
+
content: z$1.ZodInstanceOf<Uint8Array<ArrayBuffer>>;
|
|
7980
7986
|
mimeType: z$1.ZodNullable<z$1.ZodString>;
|
|
7981
7987
|
modifiedAtMs: z$1.ZodNumber;
|
|
7982
7988
|
offset: z$1.ZodNumber;
|
|
@@ -10069,8 +10075,10 @@ declare const pluginCatalogInstallPlanSchema: z$1.ZodDiscriminatedUnion<[z$1.Zod
|
|
|
10069
10075
|
}, z$1.core.$strip>], "kind">;
|
|
10070
10076
|
type PluginCatalogInstallPlan = z$1.infer<typeof pluginCatalogInstallPlanSchema>;
|
|
10071
10077
|
declare const pluginMarketplaceSchema: z$1.ZodObject<{
|
|
10078
|
+
canDisable: z$1.ZodBoolean;
|
|
10072
10079
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
10073
10080
|
displayName: z$1.ZodString;
|
|
10081
|
+
enabled: z$1.ZodBoolean;
|
|
10074
10082
|
entryCount: z$1.ZodNumber;
|
|
10075
10083
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
10076
10084
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10090,8 +10098,10 @@ type PluginMarketplace = z$1.infer<typeof pluginMarketplaceSchema>;
|
|
|
10090
10098
|
declare const pluginMarketplaceRefreshResultSchema: z$1.ZodObject<{
|
|
10091
10099
|
error: z$1.ZodNullable<z$1.ZodString>;
|
|
10092
10100
|
marketplace: z$1.ZodObject<{
|
|
10101
|
+
canDisable: z$1.ZodBoolean;
|
|
10093
10102
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
10094
10103
|
displayName: z$1.ZodString;
|
|
10104
|
+
enabled: z$1.ZodBoolean;
|
|
10095
10105
|
entryCount: z$1.ZodNumber;
|
|
10096
10106
|
lastAttemptAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
10097
10107
|
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10961,6 +10971,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10961
10971
|
"thread.rename": "thread.rename";
|
|
10962
10972
|
"thread.search": "thread.search";
|
|
10963
10973
|
"window.find": "window.find";
|
|
10974
|
+
"window.forceReload": "window.forceReload";
|
|
10964
10975
|
"window.new": "window.new";
|
|
10965
10976
|
"window.reload": "window.reload";
|
|
10966
10977
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -11139,6 +11150,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
11139
11150
|
"thread.rename": "thread.rename";
|
|
11140
11151
|
"thread.search": "thread.search";
|
|
11141
11152
|
"window.find": "window.find";
|
|
11153
|
+
"window.forceReload": "window.forceReload";
|
|
11142
11154
|
"window.new": "window.new";
|
|
11143
11155
|
"window.reload": "window.reload";
|
|
11144
11156
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -11242,6 +11254,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
11242
11254
|
"thread.rename": "thread.rename";
|
|
11243
11255
|
"thread.search": "thread.search";
|
|
11244
11256
|
"window.find": "window.find";
|
|
11257
|
+
"window.forceReload": "window.forceReload";
|
|
11245
11258
|
"window.new": "window.new";
|
|
11246
11259
|
"window.reload": "window.reload";
|
|
11247
11260
|
"workspace.openPreferred": "workspace.openPreferred";
|
|
@@ -14691,6 +14704,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14691
14704
|
}, z$1.core.$strip>;
|
|
14692
14705
|
}, z$1.core.$strict>>;
|
|
14693
14706
|
total: z$1.ZodNumber;
|
|
14707
|
+
totalCapped: z$1.ZodBoolean;
|
|
14694
14708
|
}, z$1.core.$strict>;
|
|
14695
14709
|
archived: z$1.ZodObject<{
|
|
14696
14710
|
results: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -14787,6 +14801,7 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
14787
14801
|
}, z$1.core.$strip>;
|
|
14788
14802
|
}, z$1.core.$strict>>;
|
|
14789
14803
|
total: z$1.ZodNumber;
|
|
14804
|
+
totalCapped: z$1.ZodBoolean;
|
|
14790
14805
|
}, z$1.core.$strict>;
|
|
14791
14806
|
}, z$1.core.$strict>;
|
|
14792
14807
|
type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
|
|
@@ -14912,6 +14927,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14912
14927
|
type: z$1.ZodLiteral<"new">;
|
|
14913
14928
|
}, z$1.core.$strip>], "type">;
|
|
14914
14929
|
}, z$1.core.$strip>>;
|
|
14930
|
+
heldBy: z$1.ZodNullable<z$1.ZodLiteral<"user">>;
|
|
14915
14931
|
hostId: z$1.ZodString;
|
|
14916
14932
|
hostLifecycle: z$1.ZodEnum<{
|
|
14917
14933
|
"cleanup-failed": "cleanup-failed";
|
|
@@ -14953,6 +14969,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
14953
14969
|
provisioning: "provisioning";
|
|
14954
14970
|
ready: "ready";
|
|
14955
14971
|
}>;
|
|
14972
|
+
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
14956
14973
|
updatedAt: z$1.ZodNumber;
|
|
14957
14974
|
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
14958
14975
|
"managed-worktree": "managed-worktree";
|
|
@@ -18659,9 +18676,16 @@ type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
|
18659
18676
|
type EnvironmentUpdateResult = Environment;
|
|
18660
18677
|
interface EnvironmentListArgs {
|
|
18661
18678
|
environmentProviderId?: string;
|
|
18679
|
+
/** Only environments with this holder: `"user"` or `"plugin:<pluginId>"`. */
|
|
18680
|
+
heldBy?: EnvironmentHolder;
|
|
18662
18681
|
hostId?: string;
|
|
18663
18682
|
instanceKey?: string;
|
|
18664
|
-
|
|
18683
|
+
/**
|
|
18684
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
18685
|
+
* page comes back shorter than its `limit`.
|
|
18686
|
+
*/
|
|
18687
|
+
limit: number;
|
|
18688
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
18665
18689
|
offset?: number;
|
|
18666
18690
|
path?: string;
|
|
18667
18691
|
projectId?: string;
|
|
@@ -18669,6 +18693,25 @@ interface EnvironmentListArgs {
|
|
|
18669
18693
|
status?: EnvironmentStatus;
|
|
18670
18694
|
}
|
|
18671
18695
|
type EnvironmentListResult = Environment[];
|
|
18696
|
+
interface EnvironmentCreateBaseArgs {
|
|
18697
|
+
projectId: string;
|
|
18698
|
+
/** Defaults to the project's default checkout machine. */
|
|
18699
|
+
hostId?: string;
|
|
18700
|
+
/** Defaults to the Worktree provider (Personal workspace for the personal project). */
|
|
18701
|
+
provider?: {
|
|
18702
|
+
id: string;
|
|
18703
|
+
inputs?: JsonValue$1;
|
|
18704
|
+
};
|
|
18705
|
+
name?: string;
|
|
18706
|
+
}
|
|
18707
|
+
/**
|
|
18708
|
+
* `hold: "user"` keeps the environment until the user deletes it and lets
|
|
18709
|
+
* threads join it.
|
|
18710
|
+
*/
|
|
18711
|
+
type EnvironmentCreateArgs = EnvironmentCreateBaseArgs & {
|
|
18712
|
+
hold: "user";
|
|
18713
|
+
};
|
|
18714
|
+
type EnvironmentCreateResult = Environment;
|
|
18672
18715
|
interface EnvironmentDeleteArgs {
|
|
18673
18716
|
environmentId: string;
|
|
18674
18717
|
}
|
|
@@ -18680,13 +18723,15 @@ interface EnvironmentListProvidersArgs {
|
|
|
18680
18723
|
}
|
|
18681
18724
|
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
18682
18725
|
interface EnvironmentsArea {
|
|
18726
|
+
/** Create an environment before any thread exists; setup runs as for a thread. Experimental: see docs/api_to_audit.md. */
|
|
18727
|
+
experimental_create(args: EnvironmentCreateArgs): Promise<EnvironmentCreateResult>;
|
|
18683
18728
|
experimental_cleanup(args: EnvironmentActionArgs & {
|
|
18684
18729
|
recover?: boolean;
|
|
18685
18730
|
}): Promise<OperationResponse>;
|
|
18686
18731
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
18687
18732
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
18688
18733
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
18689
|
-
list(args
|
|
18734
|
+
list(args: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
18690
18735
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
18691
18736
|
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
18692
18737
|
paths(args: EnvironmentPathsArgs): Promise<EnvironmentPathsResult>;
|
|
@@ -19181,6 +19226,10 @@ interface PluginMarketplaceRefreshArgs {
|
|
|
19181
19226
|
interface PluginMarketplaceRemoveArgs {
|
|
19182
19227
|
name: string;
|
|
19183
19228
|
}
|
|
19229
|
+
interface PluginMarketplaceSetEnabledArgs {
|
|
19230
|
+
name: string;
|
|
19231
|
+
enabled: boolean;
|
|
19232
|
+
}
|
|
19184
19233
|
interface PluginReloadArgs {
|
|
19185
19234
|
pluginId?: string;
|
|
19186
19235
|
}
|
|
@@ -19254,6 +19303,7 @@ type PluginCatalogInstallPlanResult = PluginCatalogInstallPlan;
|
|
|
19254
19303
|
type PluginMarketplaceListResult = PluginMarketplace[];
|
|
19255
19304
|
type PluginMarketplaceAddResult = PluginMarketplace;
|
|
19256
19305
|
type PluginMarketplaceRefreshResult = PluginMarketplaceRefreshResult$1[];
|
|
19306
|
+
type PluginMarketplaceSetEnabledResult = PluginMarketplace;
|
|
19257
19307
|
interface PluginMarketplaceRemoveResult {
|
|
19258
19308
|
convertedPluginIds: string[];
|
|
19259
19309
|
}
|
|
@@ -19269,6 +19319,7 @@ interface PluginMarketplacesArea {
|
|
|
19269
19319
|
list(args?: PluginMarketplaceListArgs): Promise<PluginMarketplaceListResult>;
|
|
19270
19320
|
refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
|
|
19271
19321
|
remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
|
|
19322
|
+
setEnabled(args: PluginMarketplaceSetEnabledArgs): Promise<PluginMarketplaceSetEnabledResult>;
|
|
19272
19323
|
}
|
|
19273
19324
|
interface PluginInstallJobsArea {
|
|
19274
19325
|
cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
@@ -19733,7 +19784,12 @@ interface ThreadListArgs {
|
|
|
19733
19784
|
sectionId?: string;
|
|
19734
19785
|
hasParent?: boolean;
|
|
19735
19786
|
includeHidden?: boolean;
|
|
19736
|
-
|
|
19787
|
+
/**
|
|
19788
|
+
* Page size. A caller that needs every row pages with `offset` until a
|
|
19789
|
+
* page comes back shorter than its `limit`.
|
|
19790
|
+
*/
|
|
19791
|
+
limit: number;
|
|
19792
|
+
/** Rows to skip, in the list's own order; defaults to 0. */
|
|
19737
19793
|
offset?: number;
|
|
19738
19794
|
originKind?: ThreadListQuery["originKind"];
|
|
19739
19795
|
originPluginId?: string;
|
|
@@ -20194,7 +20250,7 @@ interface ThreadsArea {
|
|
|
20194
20250
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
20195
20251
|
queue: ThreadQueueArea;
|
|
20196
20252
|
interactions: ThreadInteractionsArea;
|
|
20197
|
-
list(args
|
|
20253
|
+
list(args: ThreadListArgs): Promise<ThreadListResult>;
|
|
20198
20254
|
listRunning(args?: {
|
|
20199
20255
|
signal?: AbortSignal;
|
|
20200
20256
|
}): Promise<ThreadRunningResult>;
|
|
@@ -20296,6 +20352,27 @@ interface BbSdk extends BbSdkAreas {
|
|
|
20296
20352
|
guide: GuideArea;
|
|
20297
20353
|
}
|
|
20298
20354
|
|
|
20355
|
+
interface BbHttpErrorArgs {
|
|
20356
|
+
body: unknown;
|
|
20357
|
+
code: string | null;
|
|
20358
|
+
message: string;
|
|
20359
|
+
status: number;
|
|
20360
|
+
}
|
|
20361
|
+
/**
|
|
20362
|
+
* A non-2xx response from the bb server API. `status` is the HTTP status,
|
|
20363
|
+
* `code` the server's error code (`thread_not_found`, `forbidden`, ...) when
|
|
20364
|
+
* the body carried one, and `body` the parsed response body. `instanceof`
|
|
20365
|
+
* recognizes errors thrown by any copy of the SDK, so a plugin's bundled copy
|
|
20366
|
+
* matches the errors `bb.sdk` throws from the host.
|
|
20367
|
+
*/
|
|
20368
|
+
declare class BbHttpError extends Error {
|
|
20369
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
20370
|
+
readonly body: unknown;
|
|
20371
|
+
readonly code: string | null;
|
|
20372
|
+
readonly status: number;
|
|
20373
|
+
constructor(args: BbHttpErrorArgs);
|
|
20374
|
+
}
|
|
20375
|
+
|
|
20299
20376
|
/**
|
|
20300
20377
|
* A value that survives a JSON round trip without coercion or data loss.
|
|
20301
20378
|
*
|
|
@@ -20392,17 +20469,16 @@ interface PluginMachineProviderDefinition<S extends PluginMachineProviderInputsS
|
|
|
20392
20469
|
|
|
20393
20470
|
type PluginEnvironmentProviderInputsSchema = StandardSchemaV1$1 | undefined;
|
|
20394
20471
|
type Fact<R, K extends PropertyKey, T> = R extends Record<K, true> ? T : T | null;
|
|
20472
|
+
/** `ownsPath`: bb cloned this checkout, so a provider may own work there. */
|
|
20473
|
+
interface ProjectCheckout {
|
|
20474
|
+
path: string;
|
|
20475
|
+
ownsPath: boolean;
|
|
20476
|
+
}
|
|
20395
20477
|
type Checkout<R> = R extends {
|
|
20396
20478
|
projectCheckout: true;
|
|
20397
20479
|
} | {
|
|
20398
20480
|
gitCheckout: true;
|
|
20399
|
-
} ?
|
|
20400
|
-
path: string;
|
|
20401
|
-
experimental_ownsPath: boolean;
|
|
20402
|
-
} : {
|
|
20403
|
-
path: string;
|
|
20404
|
-
experimental_ownsPath: boolean;
|
|
20405
|
-
} | null;
|
|
20481
|
+
} ? ProjectCheckout : ProjectCheckout | null;
|
|
20406
20482
|
type InputsValue<S> = S extends StandardSchemaV1$1 ? StandardSchemaV1InferOutput$1<S> : null;
|
|
20407
20483
|
/** Attempt-scoped updates; core persists each update before this call returns. */
|
|
20408
20484
|
interface PluginEnvironmentProviderProgress {
|
|
@@ -20416,6 +20492,15 @@ interface PluginEnvironmentProviderValidateContext<R extends PluginEnvironmentPr
|
|
|
20416
20492
|
gitRemote: Fact<R, "gitRemote", string>;
|
|
20417
20493
|
inputs: InputsValue<S>;
|
|
20418
20494
|
}
|
|
20495
|
+
interface PluginEnvironmentProviderLocation {
|
|
20496
|
+
path: string;
|
|
20497
|
+
reuse: boolean;
|
|
20498
|
+
}
|
|
20499
|
+
interface PluginEnvironmentProviderLocateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
20500
|
+
host: Host;
|
|
20501
|
+
projectCheckout: Checkout<R>;
|
|
20502
|
+
inputs: InputsValue<S>;
|
|
20503
|
+
}
|
|
20419
20504
|
interface PluginEnvironmentProviderAvailabilityContext {
|
|
20420
20505
|
project: Project;
|
|
20421
20506
|
host: Host;
|
|
@@ -20433,28 +20518,46 @@ type PluginEnvironmentProviderAvailability = {
|
|
|
20433
20518
|
status: "unavailable";
|
|
20434
20519
|
message: string;
|
|
20435
20520
|
};
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20521
|
+
/** The environment a create or restore produces a workspace for. */
|
|
20522
|
+
interface PluginEnvironmentProviderEnvironment {
|
|
20523
|
+
id: string;
|
|
20524
|
+
name: string | null;
|
|
20525
|
+
projectId: string;
|
|
20526
|
+
}
|
|
20527
|
+
/** Core's create steps, which a provider calls in the order it needs. */
|
|
20528
|
+
interface PluginEnvironmentProviderSteps {
|
|
20529
|
+
/**
|
|
20530
|
+
* The name for a branch this operation makes. A thread's environment
|
|
20531
|
+
* resolves to `<prefix><slug(title)>-<threadId>` once the thread's title
|
|
20532
|
+
* settles (generated, provided, or the fallback); a thread-less one resolves
|
|
20533
|
+
* at once to `<prefix><slug(name)>-<id>`, or `<prefix><id>` without a name.
|
|
20534
|
+
* Core generates the title while create runs, so await it as late as
|
|
20535
|
+
* possible. Repeated calls return the same name.
|
|
20536
|
+
*/
|
|
20537
|
+
branchName(): Promise<string>;
|
|
20538
|
+
/**
|
|
20539
|
+
* Claims `path` as this environment's provider-owned workspace and asks core
|
|
20540
|
+
* to run setup there; resolves once the request is recorded, while setup
|
|
20541
|
+
* runs alongside the rest of create. The environment becomes ready only
|
|
20542
|
+
* after create returns `created` with the same path and `ownsPath: true`.
|
|
20543
|
+
* Without a call, core runs setup after create returns.
|
|
20544
|
+
*/
|
|
20545
|
+
setup(path: string): Promise<void>;
|
|
20546
|
+
}
|
|
20547
|
+
interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S>, PluginEnvironmentProviderSteps {
|
|
20548
|
+
environment: PluginEnvironmentProviderEnvironment;
|
|
20439
20549
|
attempt: number;
|
|
20440
20550
|
pathKey: string;
|
|
20441
|
-
experimental_claimPath(path: string): Promise<boolean>;
|
|
20442
20551
|
report: PluginEnvironmentProviderProgress;
|
|
20443
20552
|
signal: AbortSignal;
|
|
20444
20553
|
}
|
|
20445
20554
|
/** Rebuilds a thread's destroyed environment; `inputs` are the ones it was created with. */
|
|
20446
|
-
interface PluginEnvironmentProviderRestoreContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends
|
|
20447
|
-
thread: ThreadResponse;
|
|
20448
|
-
attempt: number;
|
|
20449
|
-
pathKey: string;
|
|
20450
|
-
experimental_claimPath(path: string): Promise<boolean>;
|
|
20555
|
+
interface PluginEnvironmentProviderRestoreContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderCreateContext<R, S> {
|
|
20451
20556
|
/** Resource is private to this provider; null after completed removal. */
|
|
20452
20557
|
previous: {
|
|
20453
20558
|
environment: Environment;
|
|
20454
20559
|
resource: JsonValue$2 | null;
|
|
20455
20560
|
};
|
|
20456
|
-
report: PluginEnvironmentProviderProgress;
|
|
20457
|
-
signal: AbortSignal;
|
|
20458
20561
|
}
|
|
20459
20562
|
type PluginEnvironmentProviderCreateResult = {
|
|
20460
20563
|
status: "created";
|
|
@@ -20487,11 +20590,25 @@ type PluginEnvironmentProviderRemoveResult = {
|
|
|
20487
20590
|
interface PluginEnvironmentProviderPolicy {
|
|
20488
20591
|
/** Default five minutes; null keeps the environment indefinitely. */
|
|
20489
20592
|
retireGraceMs: number | null;
|
|
20490
|
-
/**
|
|
20491
|
-
|
|
20593
|
+
/**
|
|
20594
|
+
* Default per-environment: one key for the environment's workspace, stable
|
|
20595
|
+
* across retries. Core derives it from the driving thread when there is one
|
|
20596
|
+
* and from the environment otherwise, so thread workspaces keep their
|
|
20597
|
+
* names. Replacement environments use a fresh key to avoid dead paths.
|
|
20598
|
+
*/
|
|
20599
|
+
pathKeys: "per-attempt" | "per-environment";
|
|
20492
20600
|
}
|
|
20493
|
-
/**
|
|
20601
|
+
/**
|
|
20602
|
+
* Resource operations only. Core owns durable launches, retries and
|
|
20603
|
+
* retirement. Contexts carry the `environment` being created rather than a
|
|
20604
|
+
* thread, so core can also create environments before any thread exists.
|
|
20605
|
+
*/
|
|
20494
20606
|
interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
20607
|
+
/**
|
|
20608
|
+
* The context shape `create` and `restore` receive. Required: bb still runs
|
|
20609
|
+
* providers built before it with the earlier, thread-based contexts.
|
|
20610
|
+
*/
|
|
20611
|
+
apiVersion: 2;
|
|
20495
20612
|
id: string;
|
|
20496
20613
|
displayName: string;
|
|
20497
20614
|
/** Short explanation shown in environment choices. */
|
|
@@ -20504,10 +20621,18 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
20504
20621
|
/** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
|
|
20505
20622
|
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
20506
20623
|
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision$1 | Promise<PluginEnvironmentValidateDecision$1>;
|
|
20507
|
-
/**
|
|
20508
|
-
|
|
20624
|
+
/**
|
|
20625
|
+
* Where an environment for these inputs lives, if the provider knows before
|
|
20626
|
+
* creating anything; null asks for a new environment. Core claims the path
|
|
20627
|
+
* for the operation. With `reuse: true`, a thread joins the environment
|
|
20628
|
+
* recorded at `path` as it is. Otherwise create runs on a fresh
|
|
20629
|
+
* reservation, which core refuses while another live thread uses an
|
|
20630
|
+
* environment at `path`, and core folds the result into that environment
|
|
20631
|
+
* when create returns the same path.
|
|
20632
|
+
*/
|
|
20633
|
+
locate?(context: PluginEnvironmentProviderLocateContext<R, S>): PluginEnvironmentProviderLocation | null | Promise<PluginEnvironmentProviderLocation | null>;
|
|
20509
20634
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
20510
|
-
/** Experimental: rebuild a destroyed environment when
|
|
20635
|
+
/** Experimental: rebuild a destroyed environment when a thread asks for it back. Without it, core never rebuilds this provider's destroyed environments: see docs/api_to_audit.md. */
|
|
20511
20636
|
restore?(context: PluginEnvironmentProviderRestoreContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
20512
20637
|
remove(context: PluginEnvironmentProviderRemoveContext): Promise<PluginEnvironmentProviderRemoveResult>;
|
|
20513
20638
|
}
|
|
@@ -20761,6 +20886,15 @@ interface PluginStorage {
|
|
|
20761
20886
|
* Append-only — never reorder or edit shipped statements.
|
|
20762
20887
|
*/
|
|
20763
20888
|
migrate(db: Database.Database, statements: string[]): void;
|
|
20889
|
+
/**
|
|
20890
|
+
* The plugin's own directory for files, at
|
|
20891
|
+
* <dataDir>/plugins/<id>/files. Created (mode 0700) on each call if it does
|
|
20892
|
+
* not exist, so call it where the path is needed. bb snapshots it with
|
|
20893
|
+
* `data.db` and secrets before a git: or npm: update, restores it on
|
|
20894
|
+
* rollback, and deletes it when the plugin is uninstalled; `data.db` and
|
|
20895
|
+
* logs survive uninstall. Experimental: see docs/api_to_audit.md.
|
|
20896
|
+
*/
|
|
20897
|
+
experimental_directory(): string;
|
|
20764
20898
|
}
|
|
20765
20899
|
/**
|
|
20766
20900
|
* One terminal outcome of the work on a thread, in a single union so a plugin
|
|
@@ -20850,7 +20984,7 @@ interface PluginTurnFailedEvent {
|
|
|
20850
20984
|
originPluginId: string | null;
|
|
20851
20985
|
}
|
|
20852
20986
|
/**
|
|
20853
|
-
* Lifecycle events a plugin can observe with `bb.events.on
|
|
20987
|
+
* Lifecycle events a plugin can observe with `bb.events.on`.
|
|
20854
20988
|
*
|
|
20855
20989
|
* **Events are announcements core makes.** Something already happened; a
|
|
20856
20990
|
* handler is told about it and whatever it returns is IGNORED. Handlers run
|
|
@@ -21047,7 +21181,9 @@ type PluginEnvironmentProviderDeclaration<Requires extends PluginEnvironmentProv
|
|
|
21047
21181
|
interface PluginEnvironments {
|
|
21048
21182
|
/**
|
|
21049
21183
|
* Offer a place threads can run. Registering an id this plugin already
|
|
21050
|
-
* registered replaces it.
|
|
21184
|
+
* registered replaces it. Providers receive the environment being created,
|
|
21185
|
+
* so core can also create environments before any thread exists.
|
|
21186
|
+
* Experimental: see docs/api_to_audit.md.
|
|
21051
21187
|
*/
|
|
21052
21188
|
register<const Requires extends PluginEnvironmentProviderRequirements, const Inputs extends PluginEnvironmentProviderInputsSchema = undefined>(declaration: PluginEnvironmentProviderDeclaration<Requires, Inputs> | {
|
|
21053
21189
|
id: string;
|
|
@@ -21144,12 +21280,14 @@ type PluginDispatchEnvironmentIntent = {
|
|
|
21144
21280
|
*
|
|
21145
21281
|
* `proceed` lets the attempt continue. `wait` QUEUES the message as a row
|
|
21146
21282
|
* whose `waitingOn` names this plugin and carries `reason` verbatim; the
|
|
21147
|
-
* row stays queued until `
|
|
21283
|
+
* row stays queued until `recheckAt` comes due, capacity frees, the user sends
|
|
21148
21284
|
* it now, or the orphan sweep clears it because this plugin is no longer
|
|
21149
|
-
* running. `
|
|
21150
|
-
*
|
|
21151
|
-
*
|
|
21152
|
-
*
|
|
21285
|
+
* running. `recheckAt` (epoch ms) is when core's due sweep re-asks, without
|
|
21286
|
+
* the plugin holding a timer of its own — which is what a rate-limit window
|
|
21287
|
+
* wants. It is not the message's schedule: the row's `sendAt` stays the
|
|
21288
|
+
* sender's time, and a message the sender scheduled never dispatches before
|
|
21289
|
+
* that time, even when this hook proceeds earlier. `reject` refuses the attempt outright:
|
|
21290
|
+
* `message` is shown to the user verbatim.
|
|
21153
21291
|
*
|
|
21154
21292
|
* There is deliberately no "handled it myself" answer and no amendment arm —
|
|
21155
21293
|
* a hook is a decision, never an owner or an author of the work.
|
|
@@ -21159,7 +21297,7 @@ type MessageDispatchHookDecision = {
|
|
|
21159
21297
|
} | {
|
|
21160
21298
|
action: "wait";
|
|
21161
21299
|
reason: string;
|
|
21162
|
-
|
|
21300
|
+
recheckAt?: number | null;
|
|
21163
21301
|
} | {
|
|
21164
21302
|
action: "reject";
|
|
21165
21303
|
message: string;
|
|
@@ -21349,7 +21487,7 @@ interface PluginHooks {
|
|
|
21349
21487
|
*
|
|
21350
21488
|
* Fail-closed: a handler that throws or exceeds the 10 second decision box
|
|
21351
21489
|
* FAILS THE ATTEMPT with this plugin named. Decide in milliseconds — if the
|
|
21352
|
-
* answer needs real work, return `wait` with a `
|
|
21490
|
+
* answer needs real work, return `wait` with a `recheckAt` and answer again on
|
|
21353
21491
|
* the re-attempt.
|
|
21354
21492
|
*
|
|
21355
21493
|
* The whole pass runs under one server-wide lock, so a counting handler never
|
|
@@ -21368,7 +21506,7 @@ interface PluginHooks {
|
|
|
21368
21506
|
*
|
|
21369
21507
|
* **The pair to `on`.** `on` answers the question core asks; `recheck`
|
|
21370
21508
|
* asks core to ask it again. Core owns the re-draining and the clock — the
|
|
21371
|
-
* `
|
|
21509
|
+
* `recheckAt` due sweep is still core's — and a plugin owns every other
|
|
21372
21510
|
* condition its own waits depend on. When that condition changes, say so
|
|
21373
21511
|
* here and answer the hook again on the re-attempt; there is no way to
|
|
21374
21512
|
* release a specific row, and there does not need to be.
|
|
@@ -21610,8 +21748,8 @@ interface PluginCli {
|
|
|
21610
21748
|
*/
|
|
21611
21749
|
register(registration: PluginCliRegistration): void;
|
|
21612
21750
|
}
|
|
21613
|
-
/** Per-turn context handed to bb.agents context providers
|
|
21614
|
-
/** MCP-style content parts a native tool may return
|
|
21751
|
+
/** Per-turn context handed to bb.agents context providers. */
|
|
21752
|
+
/** MCP-style content parts a native tool may return. */
|
|
21615
21753
|
type PluginAgentToolContentPart = {
|
|
21616
21754
|
type: "text";
|
|
21617
21755
|
text: string;
|
|
@@ -21624,7 +21762,7 @@ type PluginAgentToolResult = string | {
|
|
|
21624
21762
|
content: PluginAgentToolContentPart[];
|
|
21625
21763
|
isError?: boolean;
|
|
21626
21764
|
};
|
|
21627
|
-
/** Per-call context handed to a native tool's execute
|
|
21765
|
+
/** Per-call context handed to a native tool's execute. */
|
|
21628
21766
|
interface PluginAgentToolContext {
|
|
21629
21767
|
threadId: string;
|
|
21630
21768
|
projectId: string;
|
|
@@ -22176,7 +22314,7 @@ interface PluginAgents {
|
|
|
22176
22314
|
*/
|
|
22177
22315
|
configure(provider: (context: PluginAgentConfigurationContext) => PluginAgentConfiguration): void;
|
|
22178
22316
|
/**
|
|
22179
|
-
* Register a native dynamic tool
|
|
22317
|
+
* Register a native dynamic tool. `parameters` is either a
|
|
22180
22318
|
* zod schema (validated per call; execute receives the parsed value) or a
|
|
22181
22319
|
* plain JSON-schema object (no validation; execute receives the raw
|
|
22182
22320
|
* arguments as `unknown`). Tool-set changes apply on the NEXT session
|
|
@@ -22263,7 +22401,7 @@ interface ExperimentalPluginProviderEnvHealth {
|
|
|
22263
22401
|
statusMessage: string;
|
|
22264
22402
|
}
|
|
22265
22403
|
type PluginMentionTrigger = "!" | "#" | "$" | "@" | "~";
|
|
22266
|
-
/** Search context handed to a mention provider
|
|
22404
|
+
/** Search context handed to a mention provider. `projectId`/
|
|
22267
22405
|
* `threadId` are null when the composer has not committed one yet. */
|
|
22268
22406
|
interface PluginMentionSearchContext {
|
|
22269
22407
|
trigger: PluginMentionTrigger;
|
|
@@ -22341,7 +22479,7 @@ interface PluginUi {
|
|
|
22341
22479
|
signal?: AbortSignal;
|
|
22342
22480
|
}): Promise<PluginInteractionResult>;
|
|
22343
22481
|
/**
|
|
22344
|
-
* Register a mention provider for the shipped app's composer
|
|
22482
|
+
* Register a mention provider for the shipped app's composer.
|
|
22345
22483
|
* Providers default to the `@` trigger and may opt into `#`, `$`, `!`, or
|
|
22346
22484
|
* `~` with `triggers`. Items group under `label` in the mention menu; a
|
|
22347
22485
|
* picked item becomes a `{ kind: "plugin" }` mention resource whose context
|
|
@@ -22382,23 +22520,24 @@ interface PluginServerApi {
|
|
|
22382
22520
|
* its repo root and instance id, so a plugin that guesses `~/.bb` reads the
|
|
22383
22521
|
* production file while the dev server reads another one.
|
|
22384
22522
|
*
|
|
22385
|
-
*
|
|
22386
|
-
*
|
|
22387
|
-
*
|
|
22523
|
+
* Read-only, for migrating off files bb used to manage, or comparing paths
|
|
22524
|
+
* against it. Never write under it: a plugin's own files go in
|
|
22525
|
+
* `bb.storage.experimental_directory()`, and its other state in
|
|
22526
|
+
* `bb.storage`.
|
|
22388
22527
|
*/
|
|
22389
22528
|
readonly experimental_dataDir: string;
|
|
22390
22529
|
}
|
|
22391
22530
|
/** Options for one `complete` call. */
|
|
22392
22531
|
interface PluginAiCompleteOptions {
|
|
22393
22532
|
/**
|
|
22394
|
-
* Aborted when bb stops waiting: the task timed out (
|
|
22533
|
+
* Aborted when bb stops waiting: the task timed out (8 seconds for titles
|
|
22395
22534
|
* and commit messages) or the request was cancelled. Pass it to `fetch`.
|
|
22396
22535
|
*/
|
|
22397
22536
|
readonly signal: AbortSignal;
|
|
22398
22537
|
}
|
|
22399
22538
|
/** Options for one `transcribe` call. */
|
|
22400
22539
|
interface PluginAiTranscribeOptions {
|
|
22401
|
-
/** Aborted when bb stops waiting (
|
|
22540
|
+
/** Aborted when bb stops waiting (70 seconds) or the request was cancelled. */
|
|
22402
22541
|
readonly signal: AbortSignal;
|
|
22403
22542
|
/**
|
|
22404
22543
|
* Vocabulary the speaker is likely to use (names, identifiers), for
|
|
@@ -22495,11 +22634,13 @@ interface PluginHosts {
|
|
|
22495
22634
|
}
|
|
22496
22635
|
interface PluginStatusApi {
|
|
22497
22636
|
/**
|
|
22498
|
-
* Mark this plugin `needs-configuration`
|
|
22499
|
-
*
|
|
22500
|
-
*
|
|
22501
|
-
*
|
|
22502
|
-
*
|
|
22637
|
+
* Mark this plugin `needs-configuration` instead of failing — e.g. a
|
|
22638
|
+
* factory or service that finds no API key configured. `bb plugin list`
|
|
22639
|
+
* shows the message; the plugin's page shows it only when the plugin has no
|
|
22640
|
+
* settings, and otherwise links to its settings instead. Cleared on the next
|
|
22641
|
+
* load. Saving settings that change a value reloads a plugin in this state,
|
|
22642
|
+
* so the factory runs again with the new values; without settings, the
|
|
22643
|
+
* user reloads it from the plugin's page or with `bb plugin reload <id>`.
|
|
22503
22644
|
*/
|
|
22504
22645
|
needsConfiguration(message: string): void;
|
|
22505
22646
|
}
|
|
@@ -22527,7 +22668,7 @@ type PluginBbSdk = Omit<BbSdk, "threads"> & {
|
|
|
22527
22668
|
};
|
|
22528
22669
|
};
|
|
22529
22670
|
/**
|
|
22530
|
-
* The API object handed to a plugin's factory
|
|
22671
|
+
* The API object handed to a plugin's factory. Implemented by
|
|
22531
22672
|
* the BB server; this contract is what plugin `server.ts` files compile
|
|
22532
22673
|
* against.
|
|
22533
22674
|
*/
|
|
@@ -22538,28 +22679,28 @@ interface BbPluginApi {
|
|
|
22538
22679
|
readonly pluginId: string;
|
|
22539
22680
|
/** Leveled, plugin-scoped logger. */
|
|
22540
22681
|
readonly log: PluginLogger;
|
|
22541
|
-
/** Declarative settings
|
|
22682
|
+
/** Declarative settings. */
|
|
22542
22683
|
readonly settings: PluginSettings;
|
|
22543
|
-
/** Namespaced KV + per-plugin database
|
|
22684
|
+
/** Namespaced KV + per-plugin database. */
|
|
22544
22685
|
readonly storage: PluginStorage;
|
|
22545
|
-
/** HTTP routes under /api/v1/plugins/<id>/http
|
|
22686
|
+
/** HTTP routes under /api/v1/plugins/<id>/http/*. */
|
|
22546
22687
|
readonly http: PluginHttp;
|
|
22547
|
-
/** RPC methods under /api/v1/plugins/<id>/rpc/<method
|
|
22688
|
+
/** RPC methods under /api/v1/plugins/<id>/rpc/<method>. */
|
|
22548
22689
|
readonly rpc: PluginRpc;
|
|
22549
|
-
/** Ephemeral push to connected frontends
|
|
22690
|
+
/** Ephemeral push to connected frontends. */
|
|
22550
22691
|
readonly realtime: PluginRealtime;
|
|
22551
|
-
/** Long-lived services + cron schedules
|
|
22692
|
+
/** Long-lived services + cron schedules. */
|
|
22552
22693
|
readonly background: PluginBackground;
|
|
22553
|
-
/** Agent-facing `bb` CLI subcommand
|
|
22694
|
+
/** Agent-facing `bb` CLI subcommand. */
|
|
22554
22695
|
readonly cli: PluginCli;
|
|
22555
|
-
/** Per-turn agent context contributions
|
|
22696
|
+
/** Per-turn agent context contributions. */
|
|
22556
22697
|
readonly agents: PluginAgents;
|
|
22557
22698
|
/** Agent provider registration (docs/provider-plugin-api.md §1). */
|
|
22558
22699
|
readonly providers: PluginProviders;
|
|
22559
|
-
/** Host-rendered UI contributions
|
|
22700
|
+
/** Host-rendered UI contributions. */
|
|
22560
22701
|
readonly ui: PluginUi;
|
|
22561
22702
|
/**
|
|
22562
|
-
* Additive plugin lifecycle listeners
|
|
22703
|
+
* Additive plugin lifecycle listeners. Announcements core
|
|
22563
22704
|
* makes: a handler's return value is ignored.
|
|
22564
22705
|
*/
|
|
22565
22706
|
readonly events: PluginEvents;
|
|
@@ -22572,7 +22713,7 @@ interface BbPluginApi {
|
|
|
22572
22713
|
readonly experimental_hooks: PluginHooks;
|
|
22573
22714
|
/**
|
|
22574
22715
|
* Environment targets: places a thread can run that this plugin
|
|
22575
|
-
* provisions
|
|
22716
|
+
* provisions. Experimental: see
|
|
22576
22717
|
* docs/api_to_audit.md.
|
|
22577
22718
|
*/
|
|
22578
22719
|
readonly experimental_environments: PluginEnvironments;
|
|
@@ -22591,7 +22732,7 @@ interface BbPluginApi {
|
|
|
22591
22732
|
*/
|
|
22592
22733
|
readonly experimental_aiServices: PluginAiServices;
|
|
22593
22734
|
/**
|
|
22594
|
-
* The full BB SDK, bound to this server over loopback
|
|
22735
|
+
* The full BB SDK, bound to this server over loopback.
|
|
22595
22736
|
* Bind-gated: reading this before the host binds the SDK throws. The real
|
|
22596
22737
|
* server binds it before loading plugins, so it is available from the
|
|
22597
22738
|
* moment factories run there — but isolated harnesses may not, so prefer
|
|
@@ -22620,7 +22761,7 @@ interface BbPluginApi {
|
|
|
22620
22761
|
}
|
|
22621
22762
|
|
|
22622
22763
|
/**
|
|
22623
|
-
* The `@get-bb/plugin-sdk/app` contract
|
|
22764
|
+
* The `@get-bb/plugin-sdk/app` contract — pure types with no
|
|
22624
22765
|
* side effects. The BB app imports these to keep its real implementation in
|
|
22625
22766
|
* sync (`satisfies PluginSdkApp`). Plugin authors import the same shapes through
|
|
22626
22767
|
* `@get-bb/plugin-sdk/app`.
|
|
@@ -22629,27 +22770,19 @@ interface BbPluginApi {
|
|
|
22629
22770
|
*/
|
|
22630
22771
|
/** Props passed to a `homepageSection` component. */
|
|
22631
22772
|
interface PluginHomepageSectionProps {
|
|
22632
|
-
/**
|
|
22773
|
+
/**
|
|
22774
|
+
* Project selected in the New thread composer; null when the composer is
|
|
22775
|
+
* set to "No project".
|
|
22776
|
+
*/
|
|
22633
22777
|
projectId: string | null;
|
|
22634
22778
|
}
|
|
22635
22779
|
/**
|
|
22636
22780
|
* Props passed to a `settingsSection` component.
|
|
22637
22781
|
*
|
|
22638
|
-
*
|
|
22782
|
+
* Deliberately empty while sections read live app state through SDK hooks;
|
|
22783
|
+
* versioned additive like the other slot props.
|
|
22639
22784
|
*/
|
|
22640
22785
|
interface PluginSettingsSectionProps {
|
|
22641
|
-
/**
|
|
22642
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
22643
|
-
* Set only when the setup guide renders the section; call it when the user
|
|
22644
|
-
* starts setting it up.
|
|
22645
|
-
*/
|
|
22646
|
-
internal_DO_NOT_USE_onSetupStarted?: () => void;
|
|
22647
|
-
/**
|
|
22648
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
22649
|
-
* Set only when the setup guide renders the section; call it when a setup
|
|
22650
|
-
* attempt fails, with the stage that failed and, when known, why.
|
|
22651
|
-
*/
|
|
22652
|
-
internal_DO_NOT_USE_onSetupFailed?: (stage: InternalDoNotUseSetupFailureStage, detail?: InternalDoNotUseSetupFailureDetail) => void;
|
|
22653
22786
|
}
|
|
22654
22787
|
/**
|
|
22655
22788
|
* Stage of a setup guide section's setup attempt that failed.
|
|
@@ -22885,7 +23018,8 @@ interface ExperimentalSidebarNavigationItem {
|
|
|
22885
23018
|
isVisible: boolean;
|
|
22886
23019
|
/**
|
|
22887
23020
|
* A plugin panel remembered from the last session whose bundle has not
|
|
22888
|
-
* registered yet. Activating it
|
|
23021
|
+
* registered yet. Activating it opens the panel's page, which shows the
|
|
23022
|
+
* panel once the bundle loads.
|
|
22889
23023
|
*/
|
|
22890
23024
|
isLoading: boolean;
|
|
22891
23025
|
/**
|
|
@@ -23077,13 +23211,6 @@ interface PluginThreadListProps {
|
|
|
23077
23211
|
* Call after the user opens a thread. It closes the mobile sidebar drawer.
|
|
23078
23212
|
*/
|
|
23079
23213
|
onNavigate: () => void;
|
|
23080
|
-
/**
|
|
23081
|
-
* Compatibility value for the former sidebar search field. BB now searches
|
|
23082
|
-
* threads in the quick palette, so the host always supplies "".
|
|
23083
|
-
*
|
|
23084
|
-
* @deprecated The quick palette owns thread search. Ignore this value.
|
|
23085
|
-
*/
|
|
23086
|
-
searchQuery: string;
|
|
23087
23214
|
}
|
|
23088
23215
|
/** JavaScript world a Browser page expression runs in. */
|
|
23089
23216
|
type ExperimentalPluginBrowserPageWorld = "isolated" | "main";
|
|
@@ -23114,7 +23241,12 @@ interface ExperimentalPluginBrowserPage {
|
|
|
23114
23241
|
onMessage(listener: (data: JsonValue) => void): () => void;
|
|
23115
23242
|
}
|
|
23116
23243
|
interface ExperimentalPluginBrowserToolbarActionProps {
|
|
23117
|
-
/**
|
|
23244
|
+
/**
|
|
23245
|
+
* Owner of the Browser tab. In a thread's side panel it is the thread id. On
|
|
23246
|
+
* the New thread screen and plugin pages it is an opaque panel key that is
|
|
23247
|
+
* not a thread id. Pass it with `tabId` as the `threadId` of
|
|
23248
|
+
* `sdk.experimental_desktopBrowsers` calls to reach this tab.
|
|
23249
|
+
*/
|
|
23118
23250
|
threadId: string;
|
|
23119
23251
|
/** Browser tab currently rendering the action. */
|
|
23120
23252
|
tabId: string;
|
|
@@ -23575,11 +23707,9 @@ interface PluginNavPanelRegistration {
|
|
|
23575
23707
|
* The action is thread-only and is never offered on the root New thread
|
|
23576
23708
|
* screen, so `threadId` is always present.
|
|
23577
23709
|
*/
|
|
23578
|
-
interface ExperimentalThreadTabActionContext {
|
|
23710
|
+
interface ExperimentalThreadTabActionContext extends ExperimentalPluginActionContext {
|
|
23579
23711
|
/** The thread whose panel launcher invoked the action. */
|
|
23580
23712
|
threadId: string;
|
|
23581
|
-
/** The side panel of the thread view that invoked the action. */
|
|
23582
|
-
experimental_panel: ExperimentalPanelController;
|
|
23583
23713
|
}
|
|
23584
23714
|
/** Where a plugin tab belongs. Navigation panels are owned by the registering plugin. */
|
|
23585
23715
|
type ExperimentalTabContext = {
|
|
@@ -23611,9 +23741,7 @@ type ExperimentalTabLifecycle<Props, Context> = {
|
|
|
23611
23741
|
}>;
|
|
23612
23742
|
/** Default persisted params when opened without explicit params. */
|
|
23613
23743
|
params?: JsonValue;
|
|
23614
|
-
run?(context: Context &
|
|
23615
|
-
experimental_panel: ExperimentalPanelController;
|
|
23616
|
-
}): void | Promise<void>;
|
|
23744
|
+
run?(context: Context & ExperimentalPluginActionContext): void | Promise<void>;
|
|
23617
23745
|
};
|
|
23618
23746
|
type ExperimentalTabContextProps<C extends ExperimentalTabContext> = C extends {
|
|
23619
23747
|
kind: "thread";
|
|
@@ -23637,9 +23765,7 @@ type ExperimentalTabInput<C extends ExperimentalTabContext, A extends "action" |
|
|
|
23637
23765
|
params: JsonValue | null;
|
|
23638
23766
|
}>;
|
|
23639
23767
|
params?: JsonValue;
|
|
23640
|
-
run?(context: ExperimentalTabContextProps<C> &
|
|
23641
|
-
experimental_panel: ExperimentalPanelController;
|
|
23642
|
-
}): void | Promise<void>;
|
|
23768
|
+
run?(context: ExperimentalTabContextProps<C> & ExperimentalPluginActionContext): void | Promise<void>;
|
|
23643
23769
|
experimental_target?: never;
|
|
23644
23770
|
});
|
|
23645
23771
|
/** One registration for pinned destinations and actions opening closable instances. */
|
|
@@ -23668,14 +23794,13 @@ type ExperimentalTabRegistration = ExperimentalTabCommon & (({
|
|
|
23668
23794
|
experimental_target?: ExperimentalFixedTabTargetContract<JsonValue>;
|
|
23669
23795
|
}))));
|
|
23670
23796
|
/** Context handed to an `experimental_newThreadPanelAction`'s `run`. */
|
|
23671
|
-
|
|
23797
|
+
/**
|
|
23798
|
+
* `panel` is the New thread screen's side panel. Address this
|
|
23799
|
+
* action's tab as `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
23800
|
+
*/
|
|
23801
|
+
interface PluginNewThreadPanelActionContext extends ExperimentalPluginActionContext {
|
|
23672
23802
|
/** Project selected in the root composer; null in projectless compose. */
|
|
23673
23803
|
projectId: string | null;
|
|
23674
|
-
/**
|
|
23675
|
-
* The New thread screen's side panel. Address this action's tab as
|
|
23676
|
-
* `{ id, context: { kind: "thread" }, availability: "action" }`.
|
|
23677
|
-
*/
|
|
23678
|
-
experimental_panel: ExperimentalPanelController;
|
|
23679
23804
|
}
|
|
23680
23805
|
/** Registration for the root New thread screen's panel Actions list. */
|
|
23681
23806
|
interface PluginNewThreadPanelActionRegistration {
|
|
@@ -23710,8 +23835,11 @@ interface PluginPendingInteractionRegistration {
|
|
|
23710
23835
|
id: string;
|
|
23711
23836
|
component: ComponentType<PluginPendingInteractionProps>;
|
|
23712
23837
|
}
|
|
23713
|
-
/**
|
|
23714
|
-
|
|
23838
|
+
/**
|
|
23839
|
+
* Context handed to a `sidebarFooterAction`'s `run`. `navigate` and
|
|
23840
|
+
* `panel` act on the focused surface, as for commands.
|
|
23841
|
+
*/
|
|
23842
|
+
interface PluginSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
23715
23843
|
/**
|
|
23716
23844
|
* Navigate to this plugin's detail page in Tools, where declarative settings
|
|
23717
23845
|
* and `settingsSection` slots render.
|
|
@@ -23737,8 +23865,11 @@ interface PluginSidebarFooterActionRegistration {
|
|
|
23737
23865
|
*/
|
|
23738
23866
|
run(context: PluginSidebarFooterActionContext): void | Promise<void>;
|
|
23739
23867
|
}
|
|
23740
|
-
/**
|
|
23741
|
-
|
|
23868
|
+
/**
|
|
23869
|
+
* Context handed to an experimental sidebar-footer action. `navigate` and
|
|
23870
|
+
* `panel` act on the focused surface, as for commands.
|
|
23871
|
+
*/
|
|
23872
|
+
interface ExperimentalSidebarFooterActionContext extends ExperimentalPluginActionContext {
|
|
23742
23873
|
/** Navigate to this plugin's detail page in Tools. */
|
|
23743
23874
|
openPluginDetails(): void;
|
|
23744
23875
|
}
|
|
@@ -24203,8 +24334,8 @@ interface PluginSidebarThreadDraftState {
|
|
|
24203
24334
|
* the content-script context's `experimental_setThreadRowStatus` (see
|
|
24204
24335
|
* {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
|
|
24205
24336
|
* place of the draft glyph while it is set; a replaced list should do the
|
|
24206
|
-
* same so a status
|
|
24207
|
-
*
|
|
24337
|
+
* same so a status another plugin set does not vanish when the list changes
|
|
24338
|
+
* hands. No bundled plugin sets one; only content scripts can.
|
|
24208
24339
|
*/
|
|
24209
24340
|
type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
|
|
24210
24341
|
/**
|
|
@@ -24503,8 +24634,12 @@ type ExperimentalThreadContextKind = "banner" | "card";
|
|
|
24503
24634
|
* `experimental_threadInfoRow`. Render one or more
|
|
24504
24635
|
* `experimental_ThreadContextCardRow` elements, or null to show nothing for
|
|
24505
24636
|
* this thread. bb draws the card and places it, and mounts rows only in panes
|
|
24506
|
-
* whose thread context kind is `card`.
|
|
24507
|
-
*
|
|
24637
|
+
* whose thread context kind is `card`. The card is behind the "Thread context
|
|
24638
|
+
* card" experiment, off by default, and never shows on a phone (a compact
|
|
24639
|
+
* viewport with a coarse pointer); every other pane uses the `banner` kind, so
|
|
24640
|
+
* register an `experimental_threadContextSegment` or
|
|
24641
|
+
* `experimental_threadInfoRow` as well to reach it. A crash removes only this
|
|
24642
|
+
* row for that thread.
|
|
24508
24643
|
*/
|
|
24509
24644
|
interface ExperimentalThreadContextCardRowRegistration {
|
|
24510
24645
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
@@ -24521,16 +24656,20 @@ interface ExperimentalThreadContextCardRowRegistration {
|
|
|
24521
24656
|
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
24522
24657
|
}
|
|
24523
24658
|
/**
|
|
24524
|
-
* A
|
|
24525
|
-
* counterpart of `experimental_threadInfoSection`.
|
|
24526
|
-
*
|
|
24527
|
-
*
|
|
24659
|
+
* A section of the thread context card, below its rows; the card's
|
|
24660
|
+
* counterpart of `experimental_threadInfoSection`. Render one
|
|
24661
|
+
* `experimental_InfoSection`, or null to hide the section for this thread. In
|
|
24662
|
+
* the card, bb draws the section's label as a button that folds it and a
|
|
24663
|
+
* divider above it. Sections start open; bb remembers the ones the person folds
|
|
24664
|
+
* by `pluginId/id` across threads and restarts. While folded, the component
|
|
24665
|
+
* stays mounted and the `experimental_InfoSection` children unmount. Like
|
|
24666
|
+
* card rows, sections mount only where the card shows: behind the "Thread
|
|
24667
|
+
* context card" experiment, off by default, and never on a phone. A crash
|
|
24668
|
+
* removes only this section for that thread.
|
|
24528
24669
|
*/
|
|
24529
24670
|
interface ExperimentalThreadContextCardSectionRegistration {
|
|
24530
24671
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
24531
24672
|
id: string;
|
|
24532
|
-
/** Heading bb draws above the section's rows. */
|
|
24533
|
-
title: string;
|
|
24534
24673
|
/**
|
|
24535
24674
|
* Sections sort by `group` (string compare), then by `order` within a group
|
|
24536
24675
|
* (unset sorts last), then by registration order, with bb's own sections
|
|
@@ -24646,6 +24785,11 @@ interface PluginThreadActionTarget {
|
|
|
24646
24785
|
pinnedAt: number | null;
|
|
24647
24786
|
sectionId: string | null;
|
|
24648
24787
|
isUnread: boolean;
|
|
24788
|
+
/**
|
|
24789
|
+
* True for threads bb keeps out of its own list, such as side chats; pins
|
|
24790
|
+
* and sections on them have no visible effect.
|
|
24791
|
+
*/
|
|
24792
|
+
isHidden: boolean;
|
|
24649
24793
|
status: ThreadStatus;
|
|
24650
24794
|
/**
|
|
24651
24795
|
* The thread's environment when a new thread can reuse it, null otherwise.
|
|
@@ -24723,36 +24867,25 @@ interface PluginThreadActionDataInput {
|
|
|
24723
24867
|
threadIds: readonly string[];
|
|
24724
24868
|
}
|
|
24725
24869
|
/** What a registration's `item` receives for each thread it is shown for. */
|
|
24726
|
-
|
|
24870
|
+
/**
|
|
24871
|
+
* `panel` is the focused surface's side panel, as for plugin
|
|
24872
|
+
* commands. Thread menus are not inside a side panel, so calls return false
|
|
24873
|
+
* when the focused surface has no such tab.
|
|
24874
|
+
*/
|
|
24875
|
+
interface PluginThreadActionItemInput<Data> extends ExperimentalPluginActionContext {
|
|
24727
24876
|
thread: PluginThreadActionTarget;
|
|
24728
24877
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
24729
24878
|
data: Data;
|
|
24730
|
-
/** The registering plugin's `useSdk()` client. */
|
|
24731
|
-
sdk: PluginBrowserBbSdk;
|
|
24732
|
-
/** The registering plugin's `useBbNavigate()`. */
|
|
24733
|
-
navigate: BbNavigate;
|
|
24734
|
-
/**
|
|
24735
|
-
* The focused surface's side panel, as for plugin commands. Thread menus
|
|
24736
|
-
* are not inside a side panel, so calls return false when the focused
|
|
24737
|
-
* surface has no such tab.
|
|
24738
|
-
*/
|
|
24739
|
-
experimental_panel: ExperimentalPanelController;
|
|
24740
24879
|
}
|
|
24741
24880
|
/**
|
|
24742
24881
|
* What a registration's `experimental_bulkItem` receives for a selection
|
|
24743
24882
|
* of several threads.
|
|
24744
24883
|
*/
|
|
24745
|
-
interface PluginThreadActionBulkItemInput<Data> {
|
|
24884
|
+
interface PluginThreadActionBulkItemInput<Data> extends ExperimentalPluginActionContext {
|
|
24746
24885
|
/** The selected threads in the surface's list order; always two or more. */
|
|
24747
24886
|
threads: readonly PluginThreadActionTarget[];
|
|
24748
24887
|
/** What `useData` last returned; undefined when the registration has none. */
|
|
24749
24888
|
data: Data;
|
|
24750
|
-
/** The registering plugin's `useSdk()` client. */
|
|
24751
|
-
sdk: PluginBrowserBbSdk;
|
|
24752
|
-
/** The registering plugin's `useBbNavigate()`, as for `item`. */
|
|
24753
|
-
navigate: BbNavigate;
|
|
24754
|
-
/** The focused surface's side panel, as for `item`. */
|
|
24755
|
-
experimental_panel: ExperimentalPanelController;
|
|
24756
24889
|
}
|
|
24757
24890
|
/**
|
|
24758
24891
|
* Add an action to every thread actions menu: the thread header's menu, the
|
|
@@ -24798,7 +24931,8 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
24798
24931
|
* (see {@link PluginThreadActionsContextMenuProps}). Pure and
|
|
24799
24932
|
* synchronous like `item`, with every selected thread in `useData`'s
|
|
24800
24933
|
* `threadIds`; `run` acts on all of them. Omit it, or return null, to leave
|
|
24801
|
-
* the action out of selection menus.
|
|
24934
|
+
* the action out of selection menus. Unused with `placement: "header"`,
|
|
24935
|
+
* which selection menus leave out. Experimental: see docs/api_to_audit.md.
|
|
24802
24936
|
*/
|
|
24803
24937
|
experimental_bulkItem?(input: PluginThreadActionBulkItemInput<Data>): PluginThreadAction | null;
|
|
24804
24938
|
}
|
|
@@ -24806,9 +24940,11 @@ interface PluginThreadActionRegistration<Data = undefined> {
|
|
|
24806
24940
|
* Where a thread action shows.
|
|
24807
24941
|
*
|
|
24808
24942
|
* - `"menu"`: every thread actions menu and the quick-action picker.
|
|
24809
|
-
* - `"header"`: only the open thread's header, as an outline button
|
|
24810
|
-
*
|
|
24811
|
-
*
|
|
24943
|
+
* - `"header"`: only the open thread's header, as an outline button with the
|
|
24944
|
+
* action's `icon` and `label`, after the workspace's Open button. `detail`
|
|
24945
|
+
* is the button's tooltip and `variant: "destructive"` colors it. Several
|
|
24946
|
+
* header actions share one split button, the first as its main action and
|
|
24947
|
+
* the rest as menu rows drawn like the thread menu's. At
|
|
24812
24948
|
* compact width and in narrow split panes the buttons fold into the
|
|
24813
24949
|
* header's thread menu as rows at its top, after Open. `group` and `order`
|
|
24814
24950
|
* sort header actions among themselves. Header actions never appear in
|
|
@@ -25797,8 +25933,71 @@ interface ExperimentalMessageMetadataRegistration {
|
|
|
25797
25933
|
}
|
|
25798
25934
|
/** A timeline a `messageAction` can show in; see {@link PluginMessageActionRegistration.experimental_surfaces}. */
|
|
25799
25935
|
type ExperimentalMessageActionSurface = "embedded-chat" | "thread-view";
|
|
25936
|
+
/**
|
|
25937
|
+
* bb's own Archive and Delete flows, the ones its thread menus and selection
|
|
25938
|
+
* menu run. Each takes thread ids, fetches any thread the app has not loaded,
|
|
25939
|
+
* counts child threads on the server, and confirms once for the whole list:
|
|
25940
|
+
* Delete always, Archive when a tree has child threads outside the list and
|
|
25941
|
+
* archive confirmation is on in Settings → General. Archive then removes the
|
|
25942
|
+
* threads, closes their split panes, leaves a route that showed one of them,
|
|
25943
|
+
* and shows one Undo toast that restores the threads and the route. Delete
|
|
25944
|
+
* cleans up panes and routes the same way and has no Undo.
|
|
25945
|
+
*
|
|
25946
|
+
* The promise resolves once the flow settles: done, cancelled in the dialog,
|
|
25947
|
+
* or failed after bb has shown its error toast. It never rejects. Archive
|
|
25948
|
+
* skips threads that are already archived. Server code should call
|
|
25949
|
+
* `bb.sdk.threads.archive` instead, which has no confirmation or Undo.
|
|
25950
|
+
* Experimental: see docs/api_to_audit.md.
|
|
25951
|
+
*/
|
|
25952
|
+
interface ExperimentalThreadRequests {
|
|
25953
|
+
requestArchive(threadIds: readonly string[]): Promise<void>;
|
|
25954
|
+
requestDelete(threadIds: readonly string[]): Promise<void>;
|
|
25955
|
+
}
|
|
25956
|
+
/**
|
|
25957
|
+
* What every plugin callback's context carries besides its own fields:
|
|
25958
|
+
* commands, message actions, thread actions, panel and New thread panel
|
|
25959
|
+
* actions, sidebar footer actions, and composer commands and menu items.
|
|
25960
|
+
* Experimental: see docs/api_to_audit.md.
|
|
25961
|
+
*/
|
|
25962
|
+
interface ExperimentalPluginActionContext {
|
|
25963
|
+
/** The registering plugin's `useSdk()` client. */
|
|
25964
|
+
sdk: PluginBrowserBbSdk;
|
|
25965
|
+
/**
|
|
25966
|
+
* The registering plugin's `useBbNavigate()`, bound to the surface that
|
|
25967
|
+
* invoked the callback, so terminals, files and links open there.
|
|
25968
|
+
*/
|
|
25969
|
+
navigate: BbNavigate;
|
|
25970
|
+
/** The side panel of the surface that invoked the callback. */
|
|
25971
|
+
panel: ExperimentalPanelController;
|
|
25972
|
+
/**
|
|
25973
|
+
* The composer this callback acts on, bound to this plugin like
|
|
25974
|
+
* `useComposers()` handles. A composer command or menu item gets the
|
|
25975
|
+
* handling composer; a message action gets the composer of the message's
|
|
25976
|
+
* thread. Every other callback gets the focused surface's active composer:
|
|
25977
|
+
* the one holding the caret, or the one that held it before focus moved into
|
|
25978
|
+
* the command palette, a dialog, a popover or an overlay; otherwise the
|
|
25979
|
+
* surface's main composer; otherwise null, as on a plugin page without a
|
|
25980
|
+
* composer. Read in app-wide components with
|
|
25981
|
+
* `experimental_useActiveComposer()`. Experimental: see docs/api_to_audit.md.
|
|
25982
|
+
*/
|
|
25983
|
+
composer: PluginComposerApi | null;
|
|
25984
|
+
/**
|
|
25985
|
+
* bb's own Archive and Delete flows (see {@link ExperimentalThreadRequests}),
|
|
25986
|
+
* the same object `experimental_useThreadRequests()` returns in components.
|
|
25987
|
+
*/
|
|
25988
|
+
threadRequests: ExperimentalThreadRequests;
|
|
25989
|
+
}
|
|
25990
|
+
/**
|
|
25991
|
+
* Context handed to a composer command's or composer menu item's `run`.
|
|
25992
|
+
* `navigate` and `panel` act on the surface showing the
|
|
25993
|
+
* composer.
|
|
25994
|
+
*/
|
|
25995
|
+
interface ExperimentalComposerActionContext extends ExperimentalPluginActionContext {
|
|
25996
|
+
/** The handling composer, bound to this plugin like `useComposer()`. */
|
|
25997
|
+
composer: PluginComposerApi;
|
|
25998
|
+
}
|
|
25800
25999
|
/** Context handed to a `messageAction`'s `run`. */
|
|
25801
|
-
interface PluginMessageActionContext {
|
|
26000
|
+
interface PluginMessageActionContext extends ExperimentalPluginActionContext {
|
|
25802
26001
|
/** The thread whose timeline surfaced the action. */
|
|
25803
26002
|
threadId: string;
|
|
25804
26003
|
message: ThreadChatMessageReference;
|
|
@@ -25807,8 +26006,6 @@ interface PluginMessageActionContext {
|
|
|
25807
26006
|
* the exact text the user highlighted inside `message`.
|
|
25808
26007
|
*/
|
|
25809
26008
|
selectedText?: string;
|
|
25810
|
-
/** The side panel of the thread view whose timeline surfaced the action. */
|
|
25811
|
-
experimental_panel: ExperimentalPanelController;
|
|
25812
26009
|
/**
|
|
25813
26010
|
* The composer of the thread the message is in, or null when that thread's
|
|
25814
26011
|
* composer is not available on this surface. The same handle
|
|
@@ -25843,21 +26040,20 @@ interface PluginMessageActionRegistration {
|
|
|
25843
26040
|
*/
|
|
25844
26041
|
run(context: PluginMessageActionContext): void | Promise<void>;
|
|
25845
26042
|
}
|
|
25846
|
-
/**
|
|
25847
|
-
|
|
26043
|
+
/**
|
|
26044
|
+
* Current context for palette and keyboard command invocations. `navigate`
|
|
26045
|
+
* and `panel` act on the focused surface: the thread view or
|
|
26046
|
+
* New thread screen in focus, or the focused plugin page. On the New thread
|
|
26047
|
+
* screen, a `{ context: { kind: "thread" }, availability: "action" }` tab
|
|
26048
|
+
* resolves against `experimental_newThreadPanelAction` with the same id, so
|
|
26049
|
+
* register both slots with the same id to support commands on both screens.
|
|
26050
|
+
* Panel calls return false when the focused surface has no such tab or no
|
|
26051
|
+
* side panel; guard with `isAvailable` rather than assuming.
|
|
26052
|
+
*/
|
|
26053
|
+
interface PluginCommandContext extends ExperimentalPluginActionContext {
|
|
25848
26054
|
/** The thread in view, or null on a surface without one. */
|
|
25849
26055
|
threadId: string | null;
|
|
25850
26056
|
projectId: string | null;
|
|
25851
|
-
/**
|
|
25852
|
-
* The focused surface's side panel: the thread view or New thread screen
|
|
25853
|
-
* in focus, or the focused plugin page. On the New thread screen, a
|
|
25854
|
-
* `{ context: { kind: "thread" }, availability: "action" }` tab resolves
|
|
25855
|
-
* against `experimental_newThreadPanelAction` with the same id, so register
|
|
25856
|
-
* both slots with the same id to support commands on both screens. Calls
|
|
25857
|
-
* return false when the focused surface has no such tab or no side panel;
|
|
25858
|
-
* guard with `isAvailable` rather than assuming.
|
|
25859
|
-
*/
|
|
25860
|
-
experimental_panel: ExperimentalPanelController;
|
|
25861
26057
|
}
|
|
25862
26058
|
/** A default keyboard shortcut. Omitted modifiers are false. */
|
|
25863
26059
|
interface PluginCommandShortcut {
|
|
@@ -25920,9 +26116,7 @@ interface ExperimentalComposerCommandRegistration {
|
|
|
25920
26116
|
* Runs with the handling composer, bound to this plugin like `useComposer()`.
|
|
25921
26117
|
* Errors (sync or async) are contained and logged.
|
|
25922
26118
|
*/
|
|
25923
|
-
run(context:
|
|
25924
|
-
composer: PluginComposerApi;
|
|
25925
|
-
}): void | Promise<void>;
|
|
26119
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
25926
26120
|
}
|
|
25927
26121
|
/** Registers commands for bb's command palette. */
|
|
25928
26122
|
interface PluginAppCommands {
|
|
@@ -26193,13 +26387,13 @@ interface PluginAppSlots {
|
|
|
26193
26387
|
*/
|
|
26194
26388
|
experimental_threadHeaderTitle(registration: ExperimentalThreadHeaderTitleRegistration): void;
|
|
26195
26389
|
/**
|
|
26196
|
-
* Add a row to the thread context card
|
|
26390
|
+
* Add a row to the thread context card, in panes that show one (see
|
|
26197
26391
|
* {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
|
|
26198
26392
|
* docs/api_to_audit.md.
|
|
26199
26393
|
*/
|
|
26200
26394
|
experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
|
|
26201
26395
|
/**
|
|
26202
|
-
* Add a
|
|
26396
|
+
* Add a section to the thread context card, in panes that show one (see
|
|
26203
26397
|
* {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
|
|
26204
26398
|
* see docs/api_to_audit.md.
|
|
26205
26399
|
*/
|
|
@@ -26439,7 +26633,13 @@ type PluginComposerScope = {
|
|
|
26439
26633
|
interface ComposerCustomization {
|
|
26440
26634
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
26441
26635
|
id: string;
|
|
26442
|
-
/**
|
|
26636
|
+
/**
|
|
26637
|
+
* Composer kinds where this customization is active; omit for all kinds.
|
|
26638
|
+
* The sent-message editor reports `"thread"` and runs only what the user
|
|
26639
|
+
* invokes there: `plusMenu` rows, the popups they open, and composer
|
|
26640
|
+
* commands. It mounts no `actions`, `banners`, `sendMenu` rows or
|
|
26641
|
+
* `richText` effects.
|
|
26642
|
+
*/
|
|
26443
26643
|
scopes?: readonly PluginComposerScope["kind"][];
|
|
26444
26644
|
/**
|
|
26445
26645
|
* Controls rendered in the composer's action row, before the voice, stop
|
|
@@ -26483,9 +26683,7 @@ interface ComposerPlusMenuItem {
|
|
|
26483
26683
|
/** Accessible description for the host-rendered row. */
|
|
26484
26684
|
description?: string;
|
|
26485
26685
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
26486
|
-
run(context:
|
|
26487
|
-
composer: PluginComposerApi;
|
|
26488
|
-
}): void | Promise<void>;
|
|
26686
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
26489
26687
|
}
|
|
26490
26688
|
/**
|
|
26491
26689
|
* Host-rendered row in the menu next to the composer's send button, for
|
|
@@ -26500,9 +26698,7 @@ interface ComposerSendMenuItem {
|
|
|
26500
26698
|
/** Accessible description for the host-rendered row. */
|
|
26501
26699
|
description?: string;
|
|
26502
26700
|
disabled?: boolean | ((composer: PluginComposerApi) => boolean);
|
|
26503
|
-
run(context:
|
|
26504
|
-
composer: PluginComposerApi;
|
|
26505
|
-
}): void | Promise<void>;
|
|
26701
|
+
run(context: ExperimentalComposerActionContext): void | Promise<void>;
|
|
26506
26702
|
}
|
|
26507
26703
|
interface ComposerRichTextSpec {
|
|
26508
26704
|
/** Content-derived paint: match ranges receive `className`; text is never mutated. */
|
|
@@ -26895,7 +27091,7 @@ interface ThreadChatMessageAction {
|
|
|
26895
27091
|
* Props of the host-owned `ThreadChat` component — one thread's chat
|
|
26896
27092
|
* (timeline, and for the composer variants the full send/queue/draft
|
|
26897
27093
|
* engine), rendered by the BB app inside a plugin slot. This is the
|
|
26898
|
-
* deliberate exception to the no-host-components rule
|
|
27094
|
+
* deliberate exception to the no-host-components rule: a stable
|
|
26899
27095
|
* product capability, not a UI kit. Versioned additive like slot props;
|
|
26900
27096
|
* internal timeline rows, query hooks, and prompt-box configuration are
|
|
26901
27097
|
* deliberately not exposed.
|
|
@@ -27110,7 +27306,7 @@ interface NewThreadRequest {
|
|
|
27110
27306
|
* rendered by the BB app inside a plugin slot.
|
|
27111
27307
|
*
|
|
27112
27308
|
* It is the create-side counterpart to `ThreadChat`: same deliberate
|
|
27113
|
-
* exception to the no-host-components rule
|
|
27309
|
+
* exception to the no-host-components rule, same additive versioning.
|
|
27114
27310
|
*/
|
|
27115
27311
|
interface NewThreadComposerProps {
|
|
27116
27312
|
/**
|
|
@@ -27432,10 +27628,23 @@ interface ExperimentalPanelTabIconProps {
|
|
|
27432
27628
|
/** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
|
|
27433
27629
|
tabKey: string;
|
|
27434
27630
|
}
|
|
27631
|
+
/** A plugin nav panel page; see {@link BbContext.experimental_pluginPanel}. */
|
|
27632
|
+
interface ExperimentalPluginPanelPage {
|
|
27633
|
+
pluginId: string;
|
|
27634
|
+
/** The panel's registered `path`. */
|
|
27635
|
+
path: string;
|
|
27636
|
+
/** The location inside the panel, percent-encoded like the component's `subPath` prop; empty at the panel's root. */
|
|
27637
|
+
subPath: string;
|
|
27638
|
+
}
|
|
27435
27639
|
/** Current app selection, derived from the route. */
|
|
27436
27640
|
interface BbContext {
|
|
27437
27641
|
projectId: string | null;
|
|
27438
27642
|
threadId: string | null;
|
|
27643
|
+
/**
|
|
27644
|
+
* The plugin nav panel the route shows (any plugin's), or null on other
|
|
27645
|
+
* pages. Experimental: see docs/api_to_audit.md.
|
|
27646
|
+
*/
|
|
27647
|
+
experimental_pluginPanel: ExperimentalPluginPanelPage | null;
|
|
27439
27648
|
}
|
|
27440
27649
|
interface BbNavigate {
|
|
27441
27650
|
/**
|
|
@@ -27461,14 +27670,17 @@ interface BbNavigate {
|
|
|
27461
27670
|
}): void;
|
|
27462
27671
|
/**
|
|
27463
27672
|
* Navigate to the root compose surface (the new-thread screen). Pass
|
|
27464
|
-
* `initialPrompt` to seed the composer draft (serialized
|
|
27465
|
-
* and section mention tokens become pills) and
|
|
27466
|
-
* composer on arrival — the pairing behind
|
|
27467
|
-
* points that drop the user into chat with a
|
|
27468
|
-
* `projectId` makes that project the composer's
|
|
27469
|
-
* files the new thread in a section and pin state
|
|
27470
|
-
*
|
|
27471
|
-
*
|
|
27673
|
+
* `initialPrompt` to seed the composer draft when it is empty (serialized
|
|
27674
|
+
* thread, project, and section mention tokens become pills) and
|
|
27675
|
+
* `focusPrompt` to focus the composer on arrival — the pairing behind
|
|
27676
|
+
* "Create via chat" style entry points that drop the user into chat with a
|
|
27677
|
+
* prefilled prompt. `projectId` makes that project the composer's
|
|
27678
|
+
* selection; `placement` files the new thread in a section and pin state.
|
|
27679
|
+
* Without `placement`, the screen keeps the placement it already shows,
|
|
27680
|
+
* unless `environmentId` or `hostId` is set, which resets it to unpinned
|
|
27681
|
+
* and outside sections. `environmentId` reuses that environment and
|
|
27682
|
+
* `hostId` picks a machine for a new one (`environmentId` wins when both
|
|
27683
|
+
* are set).
|
|
27472
27684
|
*/
|
|
27473
27685
|
toCompose(options?: {
|
|
27474
27686
|
projectId?: string;
|
|
@@ -27603,6 +27815,13 @@ interface ExperimentalServers {
|
|
|
27603
27815
|
servers: readonly ExperimentalServer[];
|
|
27604
27816
|
/** Switch this client to the server and reload the page on it, unloading every plugin. Ignores the active server and unknown ids. */
|
|
27605
27817
|
switchTo(id: string): void;
|
|
27818
|
+
/** 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. */
|
|
27819
|
+
addServer: (() => void) | null;
|
|
27820
|
+
/** 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. */
|
|
27821
|
+
accountSignIn: {
|
|
27822
|
+
label: string;
|
|
27823
|
+
start(): void;
|
|
27824
|
+
} | null;
|
|
27606
27825
|
}
|
|
27607
27826
|
/**
|
|
27608
27827
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
@@ -27718,6 +27937,13 @@ interface PluginSdkApp {
|
|
|
27718
27937
|
* offers. Null when the client keeps no server list: any web browser.
|
|
27719
27938
|
*/
|
|
27720
27939
|
experimental_useServers(): ExperimentalServers | null;
|
|
27940
|
+
/**
|
|
27941
|
+
* True on clients that keep a server list (bb Desktop and the mobile app),
|
|
27942
|
+
* where `experimental_useServers()` returns a value; false in a web browser.
|
|
27943
|
+
* Fixed for the life of the page, so a plugin can read it inside
|
|
27944
|
+
* `definePluginApp` to register server controls only where they work.
|
|
27945
|
+
*/
|
|
27946
|
+
experimental_hasServers(): boolean;
|
|
27721
27947
|
/**
|
|
27722
27948
|
* The side panel of the surface the calling component renders in: the
|
|
27723
27949
|
* thread view, the plugin page, or the New thread screen.
|
|
@@ -27748,6 +27974,18 @@ interface PluginSdkApp {
|
|
|
27748
27974
|
* changes.
|
|
27749
27975
|
*/
|
|
27750
27976
|
useComposers(): readonly PluginComposerApi[];
|
|
27977
|
+
/**
|
|
27978
|
+
* The focused surface's active composer, the value plain commands read as
|
|
27979
|
+
* `context.composer`: the composer holding the caret, or the one that held
|
|
27980
|
+
* it before focus moved into the command palette, a dialog, a popover or an
|
|
27981
|
+
* overlay; otherwise the surface's main composer; otherwise null. For
|
|
27982
|
+
* app-wide components such as overlays and plugin pages; inside a composer
|
|
27983
|
+
* slot use `useComposer()`. The handle names the same composer as the
|
|
27984
|
+
* `useComposers()` entry with its `key`. The calling component re-renders
|
|
27985
|
+
* when the active composer or its draft changes. Experimental: see
|
|
27986
|
+
* docs/api_to_audit.md.
|
|
27987
|
+
*/
|
|
27988
|
+
experimental_useActiveComposer(): PluginComposerApi | null;
|
|
27751
27989
|
/**
|
|
27752
27990
|
* The sidebar's live thread view (see {@link PluginSidebarThreadsState}).
|
|
27753
27991
|
* Reads the host's own cache and realtime subscriptions, so it costs no
|
|
@@ -27767,6 +28005,13 @@ interface PluginSdkApp {
|
|
|
27767
28005
|
/** Defaults to active threads only. An empty selection also means active. */
|
|
27768
28006
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
27769
28007
|
}): PluginSidebarThreadsState;
|
|
28008
|
+
/**
|
|
28009
|
+
* bb's Archive and Delete flows for any thread ids, with its confirmation,
|
|
28010
|
+
* child counts, Undo and error toast (see
|
|
28011
|
+
* {@link ExperimentalThreadRequests}). Callbacks get the same object as
|
|
28012
|
+
* their context's `threadRequests`. Experimental: see docs/api_to_audit.md.
|
|
28013
|
+
*/
|
|
28014
|
+
experimental_useThreadRequests(): ExperimentalThreadRequests;
|
|
27770
28015
|
/**
|
|
27771
28016
|
* Archive an environment's active thread trees the way bb's own list does:
|
|
27772
28017
|
* optimistic removal, closing their split panes, leaving a route that shows
|
|
@@ -28015,9 +28260,9 @@ interface PluginSdkApp {
|
|
|
28015
28260
|
*/
|
|
28016
28261
|
experimental_saveFile(request: ExperimentalSaveFileRequest): Promise<ExperimentalSaveFileOutcome>;
|
|
28017
28262
|
/**
|
|
28018
|
-
* The host-owned chat component (see {@link ThreadChatProps})
|
|
28019
|
-
*
|
|
28020
|
-
*
|
|
28263
|
+
* The host-owned chat component (see {@link ThreadChatProps}): bb's own
|
|
28264
|
+
* chat, not a generic UI kit. Generic primitives stay vendored from the BB
|
|
28265
|
+
* registry.
|
|
28021
28266
|
*/
|
|
28022
28267
|
ThreadChat: ComponentType<ThreadChatProps>;
|
|
28023
28268
|
/**
|
|
@@ -28100,10 +28345,12 @@ interface PluginSdkApp {
|
|
|
28100
28345
|
*/
|
|
28101
28346
|
experimental_Diff: ComponentType<DiffProps>;
|
|
28102
28347
|
/**
|
|
28103
|
-
* The thread Info tab
|
|
28348
|
+
* The section frame of the thread Info tab and the thread context card (see
|
|
28104
28349
|
* {@link ExperimentalInfoSectionProps}), the one bb's own sections use.
|
|
28105
|
-
* Inside an `experimental_threadInfoSection` it collapses, and
|
|
28106
|
-
*
|
|
28350
|
+
* Inside an `experimental_threadInfoSection` it collapses, and inside an
|
|
28351
|
+
* `experimental_threadContextCardSection` it folds in the card's style; the
|
|
28352
|
+
* host remembers either per registration. Experimental: see
|
|
28353
|
+
* docs/api_to_audit.md.
|
|
28107
28354
|
*/
|
|
28108
28355
|
experimental_InfoSection: ComponentType<ExperimentalInfoSectionProps>;
|
|
28109
28356
|
/**
|
|
@@ -28488,5 +28735,5 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
28488
28735
|
|
|
28489
28736
|
declare function sliceUtf16Head(value: string, maxChars: number): string;
|
|
28490
28737
|
|
|
28491
|
-
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath, sliceUtf16Head as experimental_sliceUtf16Head };
|
|
28492
|
-
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, 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, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadSettledEvent, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
28738
|
+
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, BbHttpError as experimental_BbHttpError, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath, sliceUtf16Head as experimental_sliceUtf16Head };
|
|
28739
|
+
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, 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, ExperimentalPluginMentionImage, ExperimentalPluginPanelPage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadSettledEvent, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|