@get-bb/plugin-sdk 0.6.105 → 0.6.112
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/bundled-types/bb-plugin-sdk-app.d.ts +162 -12
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +316 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk.d.ts +168 -11
- package/dist/app.js +108 -0
- package/dist/internal/rpc-query-host.js +4 -0
- package/dist/internal/thread-status.js +111 -0
- package/dist/provider-bridge-acp-next.js +2712 -2707
- package/dist/provider-bridge-acp.js +2712 -2707
- package/dist/provider-bridge-testing.js +1294 -1289
- package/dist/provider-bridge.js +1366 -1361
- package/dist/testing/app.js +112 -0
- package/dist/testing/index.js +4 -0
- package/package.json +7 -1
|
@@ -608,8 +608,8 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
608
608
|
|
|
609
609
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
610
610
|
applicationLinks: "applicationLinks";
|
|
611
|
-
changelogPreview: "changelogPreview";
|
|
612
611
|
compactExpiredCache: "compactExpiredCache";
|
|
612
|
+
narrowPluginCss: "narrowPluginCss";
|
|
613
613
|
performanceDiagnostics: "performanceDiagnostics";
|
|
614
614
|
pluginUpdates: "pluginUpdates";
|
|
615
615
|
serverMove: "serverMove";
|
|
@@ -624,8 +624,8 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
624
624
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
625
625
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
626
626
|
applicationLinks: "applicationLinks";
|
|
627
|
-
changelogPreview: "changelogPreview";
|
|
628
627
|
compactExpiredCache: "compactExpiredCache";
|
|
628
|
+
narrowPluginCss: "narrowPluginCss";
|
|
629
629
|
performanceDiagnostics: "performanceDiagnostics";
|
|
630
630
|
pluginUpdates: "pluginUpdates";
|
|
631
631
|
serverMove: "serverMove";
|
|
@@ -3141,6 +3141,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3141
3141
|
"agent-only": "agent-only";
|
|
3142
3142
|
}>>;
|
|
3143
3143
|
}, z$1.core.$strip>], "type">>>>;
|
|
3144
|
+
originPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
3144
3145
|
request: z$1.ZodObject<{
|
|
3145
3146
|
method: z$1.ZodEnum<{
|
|
3146
3147
|
"thread/start": "thread/start";
|
|
@@ -9915,6 +9916,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
|
|
|
9915
9916
|
declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
|
|
9916
9917
|
environmentId: z$1.ZodOptional<z$1.ZodString>;
|
|
9917
9918
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
9919
|
+
preferCached: z$1.ZodOptional<z$1.ZodEnum<{
|
|
9920
|
+
false: "false";
|
|
9921
|
+
true: "true";
|
|
9922
|
+
}>>;
|
|
9918
9923
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
9919
9924
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
9920
9925
|
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -10041,6 +10046,56 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
10041
10046
|
}, z$1.core.$strip>], "ok">;
|
|
10042
10047
|
type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
|
|
10043
10048
|
declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10049
|
+
name: z$1.ZodLiteral<"recommendation">;
|
|
10050
|
+
properties: z$1.ZodObject<{
|
|
10051
|
+
action: z$1.ZodEnum<{
|
|
10052
|
+
selected: "selected";
|
|
10053
|
+
shown: "shown";
|
|
10054
|
+
}>;
|
|
10055
|
+
entry: z$1.ZodEnum<{
|
|
10056
|
+
first_run: "first_run";
|
|
10057
|
+
replay: "replay";
|
|
10058
|
+
}>;
|
|
10059
|
+
recommendation_id: z$1.ZodString;
|
|
10060
|
+
resource_id: z$1.ZodString;
|
|
10061
|
+
resource_type: z$1.ZodEnum<{
|
|
10062
|
+
plugin: "plugin";
|
|
10063
|
+
}>;
|
|
10064
|
+
surface: z$1.ZodEnum<{
|
|
10065
|
+
onboarding: "onboarding";
|
|
10066
|
+
}>;
|
|
10067
|
+
}, z$1.core.$strict>;
|
|
10068
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10069
|
+
name: z$1.ZodLiteral<"onboarding_operation">;
|
|
10070
|
+
properties: z$1.ZodObject<{
|
|
10071
|
+
entry: z$1.ZodEnum<{
|
|
10072
|
+
first_run: "first_run";
|
|
10073
|
+
replay: "replay";
|
|
10074
|
+
}>;
|
|
10075
|
+
item_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10076
|
+
operation: z$1.ZodEnum<{
|
|
10077
|
+
add_machine: "add_machine";
|
|
10078
|
+
import: "import";
|
|
10079
|
+
install: "install";
|
|
10080
|
+
remote_access: "remote_access";
|
|
10081
|
+
scan: "scan";
|
|
10082
|
+
update: "update";
|
|
10083
|
+
}>;
|
|
10084
|
+
outcome: z$1.ZodEnum<{
|
|
10085
|
+
failed: "failed";
|
|
10086
|
+
started: "started";
|
|
10087
|
+
succeeded: "succeeded";
|
|
10088
|
+
}>;
|
|
10089
|
+
resource_id: z$1.ZodOptional<z$1.ZodString>;
|
|
10090
|
+
step: z$1.ZodEnum<{
|
|
10091
|
+
agent: "agent";
|
|
10092
|
+
devices: "devices";
|
|
10093
|
+
plugins: "plugins";
|
|
10094
|
+
projects: "projects";
|
|
10095
|
+
}>;
|
|
10096
|
+
succeeded_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10097
|
+
}, z$1.core.$strict>;
|
|
10098
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10044
10099
|
name: z$1.ZodLiteral<"onboarding_agent_state">;
|
|
10045
10100
|
properties: z$1.ZodObject<{
|
|
10046
10101
|
agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
@@ -10065,6 +10120,19 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10065
10120
|
started: "started";
|
|
10066
10121
|
}>;
|
|
10067
10122
|
}, z$1.core.$strict>;
|
|
10123
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10124
|
+
name: z$1.ZodLiteral<"new_thread_blocker">;
|
|
10125
|
+
properties: z$1.ZodObject<{
|
|
10126
|
+
reason: z$1.ZodEnum<{
|
|
10127
|
+
agent_missing: "agent_missing";
|
|
10128
|
+
agent_update: "agent_update";
|
|
10129
|
+
model_selection: "model_selection";
|
|
10130
|
+
model_unavailable: "model_unavailable";
|
|
10131
|
+
project_setup: "project_setup";
|
|
10132
|
+
provider_selection: "provider_selection";
|
|
10133
|
+
sign_in: "sign_in";
|
|
10134
|
+
}>;
|
|
10135
|
+
}, z$1.core.$strict>;
|
|
10068
10136
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10069
10137
|
name: z$1.ZodLiteral<"new_thread_submit">;
|
|
10070
10138
|
properties: z$1.ZodObject<{
|
|
@@ -10140,6 +10208,15 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10140
10208
|
skipped: "skipped";
|
|
10141
10209
|
}>;
|
|
10142
10210
|
}, z$1.core.$strict>;
|
|
10211
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10212
|
+
name: z$1.ZodLiteral<"release_notes_opened">;
|
|
10213
|
+
properties: z$1.ZodObject<{
|
|
10214
|
+
release_version: z$1.ZodString;
|
|
10215
|
+
view: z$1.ZodEnum<{
|
|
10216
|
+
inline: "inline";
|
|
10217
|
+
web: "web";
|
|
10218
|
+
}>;
|
|
10219
|
+
}, z$1.core.$strict>;
|
|
10143
10220
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10144
10221
|
name: z$1.ZodLiteral<"plugin_creation_started">;
|
|
10145
10222
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
@@ -10303,8 +10380,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10303
10380
|
}, z$1.core.$strict>>;
|
|
10304
10381
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10305
10382
|
applicationLinks: "applicationLinks";
|
|
10306
|
-
changelogPreview: "changelogPreview";
|
|
10307
10383
|
compactExpiredCache: "compactExpiredCache";
|
|
10384
|
+
narrowPluginCss: "narrowPluginCss";
|
|
10308
10385
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10309
10386
|
pluginUpdates: "pluginUpdates";
|
|
10310
10387
|
serverMove: "serverMove";
|
|
@@ -13359,7 +13436,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13359
13436
|
type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
|
|
13360
13437
|
declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
13361
13438
|
expectedUpdatedAt: z$1.ZodNumber;
|
|
13362
|
-
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13439
|
+
input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13363
13440
|
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13364
13441
|
end: z$1.ZodNumber;
|
|
13365
13442
|
resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -13448,7 +13525,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13448
13525
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13449
13526
|
"agent-only": "agent-only";
|
|
13450
13527
|
}>>;
|
|
13451
|
-
}, z$1.core.$strip>], "type"
|
|
13528
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13529
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
13530
|
+
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
13531
|
+
"accept-edits": "accept-edits";
|
|
13532
|
+
auto: "auto";
|
|
13533
|
+
full: "full";
|
|
13534
|
+
}>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
|
|
13535
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
13536
|
+
sendAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
13537
|
+
serviceTier: z$1.ZodOptional<z$1.ZodString>;
|
|
13452
13538
|
}, z$1.core.$strip>;
|
|
13453
13539
|
type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
|
|
13454
13540
|
declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
|
|
@@ -17608,6 +17694,7 @@ type ProviderModelsArgs = ({
|
|
|
17608
17694
|
projectId?: string;
|
|
17609
17695
|
}) & {
|
|
17610
17696
|
providerId?: string;
|
|
17697
|
+
preferCached?: boolean;
|
|
17611
17698
|
signal?: AbortSignal;
|
|
17612
17699
|
};
|
|
17613
17700
|
type ProviderListResult = ProviderInfo[];
|
|
@@ -17993,7 +18080,8 @@ interface SystemAttentionArgs {
|
|
|
17993
18080
|
interface SystemConfigArgs {
|
|
17994
18081
|
signal?: AbortSignal;
|
|
17995
18082
|
}
|
|
17996
|
-
interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
|
|
18083
|
+
interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
|
|
18084
|
+
preferCached?: boolean;
|
|
17997
18085
|
signal?: AbortSignal;
|
|
17998
18086
|
}
|
|
17999
18087
|
interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
|
|
@@ -19844,7 +19932,9 @@ interface ExperimentalSidebarFooter {
|
|
|
19844
19932
|
/**
|
|
19845
19933
|
* The one status bb would paint for a thread, already resolved through the
|
|
19846
19934
|
* host's precedence (attention before work; plan and goal before the generic
|
|
19847
|
-
* spinner). Draw
|
|
19935
|
+
* spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
|
|
19936
|
+
* or resolve a row that folds in more through
|
|
19937
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus}.
|
|
19848
19938
|
*
|
|
19849
19939
|
* Treat an unrecognized value as "none": bb adds kinds over time, and an
|
|
19850
19940
|
* older plugin must degrade to drawing nothing rather than throwing.
|
|
@@ -20160,11 +20250,61 @@ interface PluginThreadTitleProps {
|
|
|
20160
20250
|
/** A thread in the sidebar's live view; renders nothing for an unknown id. */
|
|
20161
20251
|
threadId: string;
|
|
20162
20252
|
}
|
|
20253
|
+
/**
|
|
20254
|
+
* The fields of a {@link PluginSidebarThread} that
|
|
20255
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
|
|
20256
|
+
*/
|
|
20257
|
+
type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
|
|
20258
|
+
/** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
|
|
20259
|
+
interface PluginThreadStatusInput {
|
|
20260
|
+
/**
|
|
20261
|
+
* The row's own thread, or null for a group row (a collapsed section,
|
|
20262
|
+
* project, or environment) that stands only for `hiddenThreads`.
|
|
20263
|
+
*/
|
|
20264
|
+
thread: PluginThreadStatusThread | null;
|
|
20265
|
+
/**
|
|
20266
|
+
* Threads the row stands for while they are hidden, such as a collapsed
|
|
20267
|
+
* parent's sub-threads. Their attention and work count toward the row;
|
|
20268
|
+
* their queued messages do not. Pass an empty array when nothing is hidden.
|
|
20269
|
+
*/
|
|
20270
|
+
hiddenThreads: readonly PluginThreadStatusThread[];
|
|
20271
|
+
/**
|
|
20272
|
+
* Whether the composer holds an unsent draft for `thread` or any of
|
|
20273
|
+
* `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
|
|
20274
|
+
*/
|
|
20275
|
+
hasUnsubmittedDraft: boolean;
|
|
20276
|
+
/**
|
|
20277
|
+
* The status another plugin set on the row (see
|
|
20278
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
|
|
20279
|
+
*/
|
|
20280
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
20281
|
+
}
|
|
20282
|
+
/** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
|
|
20283
|
+
interface PluginThreadStatus {
|
|
20284
|
+
indicator: PluginSidebarThreadIndicator;
|
|
20285
|
+
/**
|
|
20286
|
+
* The input `rowStatus` when it shows in place of `indicator`: it replaces
|
|
20287
|
+
* every indicator except "runtime", "unread-error", and
|
|
20288
|
+
* "waiting-for-input". Null otherwise.
|
|
20289
|
+
*/
|
|
20290
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
20291
|
+
/**
|
|
20292
|
+
* The accessible label for what shows: `rowStatus`'s label, else the
|
|
20293
|
+
* indicator's; null when nothing shows.
|
|
20294
|
+
*/
|
|
20295
|
+
label: string | null;
|
|
20296
|
+
/**
|
|
20297
|
+
* Whether the row's thread or a hidden thread is working, or the input
|
|
20298
|
+
* `rowStatus` has the "running" tone.
|
|
20299
|
+
*/
|
|
20300
|
+
isWorking: boolean;
|
|
20301
|
+
}
|
|
20163
20302
|
/**
|
|
20164
20303
|
* Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
|
|
20165
|
-
* status glyph, the one its own lists draw.
|
|
20166
|
-
*
|
|
20167
|
-
*
|
|
20304
|
+
* status glyph, the one its own lists draw. Pass the `indicator` and
|
|
20305
|
+
* `rowStatus` from {@link PluginSdkApp.experimental_resolveThreadStatus} to
|
|
20306
|
+
* fold in state a sidebar thread's `indicator` leaves out, such as collapsed
|
|
20307
|
+
* children or a client-local draft.
|
|
20168
20308
|
*/
|
|
20169
20309
|
interface PluginThreadStatusGlyphProps {
|
|
20170
20310
|
/** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
|
|
@@ -23809,6 +23949,13 @@ interface PluginSdkApp {
|
|
|
23809
23949
|
* Experimental: see docs/api_to_audit.md.
|
|
23810
23950
|
*/
|
|
23811
23951
|
experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
|
|
23952
|
+
/**
|
|
23953
|
+
* Resolves what bb's lists draw for a row through bb's own status
|
|
23954
|
+
* precedence, folding in hidden threads, a draft, and another plugin's row
|
|
23955
|
+
* status (see {@link PluginThreadStatusInput}). A pure function, not a
|
|
23956
|
+
* hook. Experimental: see docs/api_to_audit.md.
|
|
23957
|
+
*/
|
|
23958
|
+
experimental_resolveThreadStatus(input: PluginThreadStatusInput): PluginThreadStatus;
|
|
23812
23959
|
/**
|
|
23813
23960
|
* Every `experimental_threadRowMetadata` contribution for one thread row (see
|
|
23814
23961
|
* {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
|
|
@@ -24096,6 +24243,8 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
24096
24243
|
readonly storage: "3_storage";
|
|
24097
24244
|
};
|
|
24098
24245
|
|
|
24246
|
+
declare function experimental_resolveThreadStatus({ thread, hiddenThreads, hasUnsubmittedDraft, rowStatus, }: PluginThreadStatusInput): PluginThreadStatus;
|
|
24247
|
+
|
|
24099
24248
|
declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
|
|
24100
24249
|
declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
|
|
24101
24250
|
declare const definePluginApp: PluginSdkApp["definePluginApp"];
|
|
@@ -24188,6 +24337,7 @@ declare const useSidebarSplitLayout: () => PluginSidebarSplitLayout | null;
|
|
|
24188
24337
|
declare const useSidebarThreadShortcut: (threadId: string) => PluginSidebarThreadShortcut | null;
|
|
24189
24338
|
declare const ThreadTitle: react.ComponentType<PluginThreadTitleProps>;
|
|
24190
24339
|
declare const experimental_ThreadStatusGlyph: react.ComponentType<PluginThreadStatusGlyphProps>;
|
|
24340
|
+
|
|
24191
24341
|
declare const experimental_ThreadRowMetadata: react.ComponentType<ExperimentalThreadRowMetadataLineProps>;
|
|
24192
24342
|
declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
|
|
24193
24343
|
declare const useSdk: () => PluginBrowserBbSdk;
|
|
@@ -24198,5 +24348,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
24198
24348
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
24199
24349
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24200
24350
|
|
|
24201
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24202
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, 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, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
24351
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24352
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, 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, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// Portable type declarations for `@get-bb/plugin-sdk`. Unpublished BB
|
|
2
|
+
// workspace contracts are flattened; public subpaths may reuse the
|
|
3
|
+
// package root without requiring any other @bb/* package.
|
|
4
|
+
//
|
|
5
|
+
// Confused by the API, or need a symbol that isn't here? Clone the BB repo
|
|
6
|
+
// and read the real source: https://github.com/get-bb/bb
|
|
7
|
+
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
|
|
10
|
+
declare const environmentWorkspaceDisplayKindSchema: z.ZodEnum<{
|
|
11
|
+
"managed-worktree": "managed-worktree";
|
|
12
|
+
"unmanaged-worktree": "unmanaged-worktree";
|
|
13
|
+
other: "other";
|
|
14
|
+
}>;
|
|
15
|
+
type EnvironmentWorkspaceDisplayKind = z.infer<typeof environmentWorkspaceDisplayKindSchema>;
|
|
16
|
+
|
|
17
|
+
declare const threadStatusSchema: z.ZodEnum<{
|
|
18
|
+
active: "active";
|
|
19
|
+
error: "error";
|
|
20
|
+
idle: "idle";
|
|
21
|
+
pending: "pending";
|
|
22
|
+
starting: "starting";
|
|
23
|
+
stopping: "stopping";
|
|
24
|
+
}>;
|
|
25
|
+
type ThreadStatus = z.infer<typeof threadStatusSchema>;
|
|
26
|
+
|
|
27
|
+
declare const threadParentNotificationsSchema: z.ZodEnum<{
|
|
28
|
+
auto: "auto";
|
|
29
|
+
off: "off";
|
|
30
|
+
stuck: "stuck";
|
|
31
|
+
}>;
|
|
32
|
+
type ThreadParentNotifications = z.infer<typeof threadParentNotificationsSchema>;
|
|
33
|
+
|
|
34
|
+
declare const threadRuntimeDisplayStatusSchema: z.ZodEnum<{
|
|
35
|
+
"waiting-for-host": "waiting-for-host";
|
|
36
|
+
active: "active";
|
|
37
|
+
error: "error";
|
|
38
|
+
idle: "idle";
|
|
39
|
+
pending: "pending";
|
|
40
|
+
provisioning: "provisioning";
|
|
41
|
+
starting: "starting";
|
|
42
|
+
stopping: "stopping";
|
|
43
|
+
}>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The three additions to {@link threadStatusValues} are display-only: they
|
|
47
|
+
* refine `active`/`idle` with host and workspace facts the durable status does
|
|
48
|
+
* not record.
|
|
49
|
+
*
|
|
50
|
+
* A never-started thread needs no such refinement — `pending` is a real thread
|
|
51
|
+
* status now, so it travels to the client as itself. It used to arrive as a
|
|
52
|
+
* separate `held` display status, derived from an `idle` thread holding a live
|
|
53
|
+
* dispatch hold; that derivation and the holds behind it are both gone.
|
|
54
|
+
*/
|
|
55
|
+
type ThreadRuntimeDisplayStatus = z.infer<typeof threadRuntimeDisplayStatusSchema>;
|
|
56
|
+
declare const threadQueuedWorkSchema: z.ZodEnum<{
|
|
57
|
+
failed: "failed";
|
|
58
|
+
none: "none";
|
|
59
|
+
waiting: "waiting";
|
|
60
|
+
}>;
|
|
61
|
+
type ThreadQueuedWork = z.infer<typeof threadQueuedWorkSchema>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
65
|
+
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
66
|
+
* name (`"Zap"`), then a namespaced `"<pluginId>/<name>"` glyph naming an
|
|
67
|
+
* entry of that plugin's manifest `bb.branding.experimental_icons` map. A
|
|
68
|
+
* registration therefore shadows a built-in, and either shadows a declared
|
|
69
|
+
* icon of the same name. Names that resolve to none of the three fall back to
|
|
70
|
+
* the surface's generic icon.
|
|
71
|
+
*
|
|
72
|
+
* Declared icons and registrations are one vocabulary here: the same name
|
|
73
|
+
* works in `experimental_Icon`, in every field below, and — for a declared
|
|
74
|
+
* icon — in the tool, provider and bridge-row declarations that accept one.
|
|
75
|
+
* Declared icons need no frontend bundle and survive the plugin being stopped;
|
|
76
|
+
* registrations can be any React component but live only while the plugin's
|
|
77
|
+
* app bundle is loaded.
|
|
78
|
+
*/
|
|
79
|
+
type BbIconName = string;
|
|
80
|
+
/**
|
|
81
|
+
* The one status bb would paint for a thread, already resolved through the
|
|
82
|
+
* host's precedence (attention before work; plan and goal before the generic
|
|
83
|
+
* spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
|
|
84
|
+
* or resolve a row that folds in more through
|
|
85
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus}.
|
|
86
|
+
*
|
|
87
|
+
* Treat an unrecognized value as "none": bb adds kinds over time, and an
|
|
88
|
+
* older plugin must degrade to drawing nothing rather than throwing.
|
|
89
|
+
*
|
|
90
|
+
* "draft" and "working-draft" are never reported here: an unsubmitted composer
|
|
91
|
+
* draft is per-client state the host reads per row, which an array-wide view
|
|
92
|
+
* cannot. A thread holding a draft reports whatever it would report without
|
|
93
|
+
* one. "queued-failed" and "queued-waiting" are reported, with the same
|
|
94
|
+
* precedence bb's list uses (a failed send outranks the unread dot; a waiting
|
|
95
|
+
* message ranks just below it).
|
|
96
|
+
*/
|
|
97
|
+
type PluginSidebarThreadIndicator = "background-agent" | "background-command" | "draft" | "goal" | "none" | "plan-mode" | "queued-failed" | "queued-waiting" | "runtime" | "unread-error" | "unread-success" | "waiting-for-input" | "workflow" | "working-draft";
|
|
98
|
+
/** Live work counts on a thread. All zero means nothing is running. */
|
|
99
|
+
interface PluginSidebarThreadActivity {
|
|
100
|
+
workflows: number;
|
|
101
|
+
backgroundAgents: number;
|
|
102
|
+
backgroundCommands: number;
|
|
103
|
+
planMode: number;
|
|
104
|
+
goals: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* One thread in the sidebar's live view.
|
|
108
|
+
*
|
|
109
|
+
* A deliberate copy of the fields a sidebar needs — not a re-export of the
|
|
110
|
+
* host's internal thread row type, which changes whenever the app needs a
|
|
111
|
+
* field. Timestamps are epoch milliseconds.
|
|
112
|
+
*/
|
|
113
|
+
interface PluginSidebarThread {
|
|
114
|
+
id: string;
|
|
115
|
+
projectId: string;
|
|
116
|
+
/** Null while a thread is still unnamed; pair with `titleFallback`. */
|
|
117
|
+
title: string | null;
|
|
118
|
+
titleFallback: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* What bb shows for this thread as plain text: `title`, else
|
|
121
|
+
* `titleFallback`, else a short id, with any `@project:`, `@section:`, and
|
|
122
|
+
* `@thread:` mentions in it resolved to their names. Sort on it and use it
|
|
123
|
+
* for accessible names; render {@link PluginSdkApp.ThreadTitle} for the
|
|
124
|
+
* same text with mention chips.
|
|
125
|
+
*/
|
|
126
|
+
displayTitle: string;
|
|
127
|
+
/** The thread this one was forked from or spawned under; null at the root. */
|
|
128
|
+
parentThreadId: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* The thread whose lifecycle this one follows (a delegated child stops
|
|
131
|
+
* when its owner stops); null when the thread owns its own lifecycle.
|
|
132
|
+
*/
|
|
133
|
+
lifecycleOwnerThreadId: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Which of this child's outcomes wake its parent: "auto" (every outcome),
|
|
136
|
+
* "stuck" (failures, interruptions, and blockers), or "off".
|
|
137
|
+
*/
|
|
138
|
+
parentNotifications: ThreadParentNotifications;
|
|
139
|
+
/** The thread this one was forked from; null unless `originKind` is "fork". */
|
|
140
|
+
sourceThreadId: string | null;
|
|
141
|
+
sectionId: string | null;
|
|
142
|
+
/** How this thread came to exist under its parent; null for root threads. */
|
|
143
|
+
originKind: "fork" | null;
|
|
144
|
+
/** The plugin that spawned it, or null for non-plugin origins. */
|
|
145
|
+
originPluginId: string | null;
|
|
146
|
+
/** The agent provider this thread runs on; resolve it through
|
|
147
|
+
* {@link PluginSdkApp.experimental_useProviders} for a name and icon. */
|
|
148
|
+
providerId: string;
|
|
149
|
+
/**
|
|
150
|
+
* The thread's execution status. bb's list sorts busy threads ("starting",
|
|
151
|
+
* "active", "stopping") above idle ones. Treat an unknown value as "idle".
|
|
152
|
+
*/
|
|
153
|
+
status: ThreadStatus;
|
|
154
|
+
/**
|
|
155
|
+
* `status` refined by host and environment state: adds "provisioning" and
|
|
156
|
+
* "waiting-for-host" for a thread whose machine is not ready. Treat an
|
|
157
|
+
* unknown value as `status`.
|
|
158
|
+
*/
|
|
159
|
+
runtimeStatus: ThreadRuntimeDisplayStatus;
|
|
160
|
+
/**
|
|
161
|
+
* Whether a message is queued behind the running turn ("waiting") or a
|
|
162
|
+
* queued message failed to send ("failed"). "none" otherwise.
|
|
163
|
+
*/
|
|
164
|
+
queuedWork: ThreadQueuedWork;
|
|
165
|
+
/** The agent is blocked on the user: an approval or a question. */
|
|
166
|
+
hasPendingInteraction: boolean;
|
|
167
|
+
activity: PluginSidebarThreadActivity;
|
|
168
|
+
indicator: PluginSidebarThreadIndicator;
|
|
169
|
+
/**
|
|
170
|
+
* The host's accessible label for `indicator`, e.g. "Thread needs user
|
|
171
|
+
* input"; null when the indicator is "none". Use it for `aria-label` so
|
|
172
|
+
* screen-reader text stays consistent across sidebars.
|
|
173
|
+
*/
|
|
174
|
+
indicatorLabel: string | null;
|
|
175
|
+
isUnread: boolean;
|
|
176
|
+
isPinned: boolean;
|
|
177
|
+
/** When the thread was pinned (epoch ms); null when unpinned. */
|
|
178
|
+
pinnedAt: number | null;
|
|
179
|
+
/**
|
|
180
|
+
* The user's manual order among pinned threads (lexicographic, ascending);
|
|
181
|
+
* null for an unpinned thread or a pin that has never been reordered, which
|
|
182
|
+
* bb's list sorts after keyed pins by `pinnedAt`.
|
|
183
|
+
*/
|
|
184
|
+
pinSortKey: string | null;
|
|
185
|
+
isArchived: boolean;
|
|
186
|
+
/** When the thread was archived (epoch ms); null when not archived. */
|
|
187
|
+
archivedAt: number | null;
|
|
188
|
+
/**
|
|
189
|
+
* The app-relative URL bb opens for this thread, e.g.
|
|
190
|
+
* `/projects/<projectId>/threads/<id>`. Put it on your row's anchor: the
|
|
191
|
+
* host routes a plain click in place, and middle-click, copy-link, and
|
|
192
|
+
* open-in-new-window work without further code.
|
|
193
|
+
*/
|
|
194
|
+
href: string;
|
|
195
|
+
/**
|
|
196
|
+
* True for threads bb keeps out of its own list (internal helper threads a
|
|
197
|
+
* plugin spawned with `visibility: "hidden"`). The array includes them so a
|
|
198
|
+
* list that wants them can show them; bb's list filters them out.
|
|
199
|
+
*/
|
|
200
|
+
isHidden: boolean;
|
|
201
|
+
environment: {
|
|
202
|
+
id: string | null;
|
|
203
|
+
name: string | null;
|
|
204
|
+
branchName: string | null;
|
|
205
|
+
/** The checkout's absolute path on its host; null when unknown. */
|
|
206
|
+
path: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* True when the environment is a git worktree, which is what bb's
|
|
209
|
+
* "group by environment" clusters; false for a plain checkout; null when
|
|
210
|
+
* unknown.
|
|
211
|
+
*/
|
|
212
|
+
isWorktree: boolean | null;
|
|
213
|
+
/**
|
|
214
|
+
* The id of the environment provider that produced this environment, or
|
|
215
|
+
* null for a project's own checkout. Resolve it against
|
|
216
|
+
* `GET /system/environment-providers` for a display name and icon.
|
|
217
|
+
*/
|
|
218
|
+
providerId: string | null;
|
|
219
|
+
/** @deprecated Use providerId and the environment provider catalog instead. */
|
|
220
|
+
workspaceDisplayKind: EnvironmentWorkspaceDisplayKind | null;
|
|
221
|
+
} | null;
|
|
222
|
+
/**
|
|
223
|
+
* The machine this thread's work runs on, with the name resolved for you.
|
|
224
|
+
* Null when the thread has no environment yet, or when its host is not in
|
|
225
|
+
* the known-hosts list. Useful where a thread has no branch to show — a
|
|
226
|
+
* personal-project thread has a machine but no worktree.
|
|
227
|
+
*/
|
|
228
|
+
host: {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
} | null;
|
|
232
|
+
createdAt: number;
|
|
233
|
+
updatedAt: number;
|
|
234
|
+
lastReadAt: number | null;
|
|
235
|
+
latestAttentionAt: number;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* The fields of a {@link PluginSidebarThread} that
|
|
239
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
|
|
240
|
+
*/
|
|
241
|
+
type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
|
|
242
|
+
/** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
|
|
243
|
+
interface PluginThreadStatusInput {
|
|
244
|
+
/**
|
|
245
|
+
* The row's own thread, or null for a group row (a collapsed section,
|
|
246
|
+
* project, or environment) that stands only for `hiddenThreads`.
|
|
247
|
+
*/
|
|
248
|
+
thread: PluginThreadStatusThread | null;
|
|
249
|
+
/**
|
|
250
|
+
* Threads the row stands for while they are hidden, such as a collapsed
|
|
251
|
+
* parent's sub-threads. Their attention and work count toward the row;
|
|
252
|
+
* their queued messages do not. Pass an empty array when nothing is hidden.
|
|
253
|
+
*/
|
|
254
|
+
hiddenThreads: readonly PluginThreadStatusThread[];
|
|
255
|
+
/**
|
|
256
|
+
* Whether the composer holds an unsent draft for `thread` or any of
|
|
257
|
+
* `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
|
|
258
|
+
*/
|
|
259
|
+
hasUnsubmittedDraft: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* The status another plugin set on the row (see
|
|
262
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
|
|
263
|
+
*/
|
|
264
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
265
|
+
}
|
|
266
|
+
/** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
|
|
267
|
+
interface PluginThreadStatus {
|
|
268
|
+
indicator: PluginSidebarThreadIndicator;
|
|
269
|
+
/**
|
|
270
|
+
* The input `rowStatus` when it shows in place of `indicator`: it replaces
|
|
271
|
+
* every indicator except "runtime", "unread-error", and
|
|
272
|
+
* "waiting-for-input". Null otherwise.
|
|
273
|
+
*/
|
|
274
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
275
|
+
/**
|
|
276
|
+
* The accessible label for what shows: `rowStatus`'s label, else the
|
|
277
|
+
* indicator's; null when nothing shows.
|
|
278
|
+
*/
|
|
279
|
+
label: string | null;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the row's thread or a hidden thread is working, or the input
|
|
282
|
+
* `rowStatus` has the "running" tone.
|
|
283
|
+
*/
|
|
284
|
+
isWorking: boolean;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* The status another plugin's app-wide script set on a thread's row through
|
|
288
|
+
* the content-script context's `experimental_setThreadRowStatus` (see
|
|
289
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
|
|
290
|
+
* place of the draft glyph while it is set; a replaced list should do the
|
|
291
|
+
* same so a status set by, say, the drafts or workflows plugin does not
|
|
292
|
+
* vanish when the list changes hands.
|
|
293
|
+
*/
|
|
294
|
+
type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
|
|
295
|
+
/** Host-rendered status that temporarily replaces a thread's draft glyph. */
|
|
296
|
+
interface PluginComposerThreadRowStatus {
|
|
297
|
+
/**
|
|
298
|
+
* Always drawn as given: unlike the plugin-badged surfaces, this one has no
|
|
299
|
+
* preference for the plugin's own `bb.branding.icon`.
|
|
300
|
+
*/
|
|
301
|
+
icon: BbIconName;
|
|
302
|
+
/** Accessible label for the status glyph. */
|
|
303
|
+
label: string;
|
|
304
|
+
/**
|
|
305
|
+
* Semantic host treatment for the status glyph. `running` automatically
|
|
306
|
+
* shimmers; terminal `success` and `error` tones are static. Defaults to the
|
|
307
|
+
* neutral tone.
|
|
308
|
+
*/
|
|
309
|
+
tone?: "default" | "error" | "running" | "success";
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare function threadIndicatorLabel(indicator: PluginSidebarThreadIndicator): string | null;
|
|
313
|
+
declare function visibleThreadRowStatus(indicator: PluginSidebarThreadIndicator, rowStatus: PluginSidebarThreadRowStatus | null): PluginSidebarThreadRowStatus | null;
|
|
314
|
+
declare function experimental_resolveThreadStatus({ thread, hiddenThreads, hasUnsubmittedDraft, rowStatus, }: PluginThreadStatusInput): PluginThreadStatus;
|
|
315
|
+
|
|
316
|
+
export { experimental_resolveThreadStatus, threadIndicatorLabel, visibleThreadRowStatus };
|