@get-bb/plugin-sdk 0.6.109 → 0.6.116
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 +146 -9
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +316 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +10 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +10 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk.d.ts +169 -12
- package/dist/app.js +108 -0
- package/dist/index.js +161 -1
- package/dist/internal/plugin-app-collector.js +11 -0
- package/dist/internal/rpc-query-host.js +4 -2
- package/dist/internal/thread-status.js +111 -0
- package/dist/provider-bridge-acp-next.js +30 -22
- package/dist/provider-bridge-acp.js +30 -22
- package/dist/replay-provider-child.mjs +21 -22
- package/dist/testing/app.js +123 -2
- package/package.json +7 -1
|
@@ -609,6 +609,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
609
609
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
610
610
|
applicationLinks: "applicationLinks";
|
|
611
611
|
compactExpiredCache: "compactExpiredCache";
|
|
612
|
+
narrowPluginCss: "narrowPluginCss";
|
|
612
613
|
performanceDiagnostics: "performanceDiagnostics";
|
|
613
614
|
pluginUpdates: "pluginUpdates";
|
|
614
615
|
serverMove: "serverMove";
|
|
@@ -624,6 +625,7 @@ type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
|
624
625
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
625
626
|
applicationLinks: "applicationLinks";
|
|
626
627
|
compactExpiredCache: "compactExpiredCache";
|
|
628
|
+
narrowPluginCss: "narrowPluginCss";
|
|
627
629
|
performanceDiagnostics: "performanceDiagnostics";
|
|
628
630
|
pluginUpdates: "pluginUpdates";
|
|
629
631
|
serverMove: "serverMove";
|
|
@@ -4498,6 +4500,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4498
4500
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4499
4501
|
pluginId: z$1.ZodString;
|
|
4500
4502
|
reason: z$1.ZodString;
|
|
4503
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4504
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
4501
4505
|
}, z$1.core.$strip>], "kind">>;
|
|
4502
4506
|
}, z$1.core.$strip>;
|
|
4503
4507
|
type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -9914,6 +9918,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
|
|
|
9914
9918
|
declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
|
|
9915
9919
|
environmentId: z$1.ZodOptional<z$1.ZodString>;
|
|
9916
9920
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
9921
|
+
preferCached: z$1.ZodOptional<z$1.ZodEnum<{
|
|
9922
|
+
false: "false";
|
|
9923
|
+
true: "true";
|
|
9924
|
+
}>>;
|
|
9917
9925
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
9918
9926
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
9919
9927
|
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -10043,6 +10051,7 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10043
10051
|
name: z$1.ZodLiteral<"recommendation">;
|
|
10044
10052
|
properties: z$1.ZodObject<{
|
|
10045
10053
|
action: z$1.ZodEnum<{
|
|
10054
|
+
deselected: "deselected";
|
|
10046
10055
|
selected: "selected";
|
|
10047
10056
|
shown: "shown";
|
|
10048
10057
|
}>;
|
|
@@ -10136,6 +10145,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10136
10145
|
started: "started";
|
|
10137
10146
|
}>;
|
|
10138
10147
|
}, z$1.core.$strict>;
|
|
10148
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10149
|
+
name: z$1.ZodLiteral<"onboarding_exposed">;
|
|
10150
|
+
properties: z$1.ZodObject<{
|
|
10151
|
+
entry: z$1.ZodEnum<{
|
|
10152
|
+
first_run: "first_run";
|
|
10153
|
+
replay: "replay";
|
|
10154
|
+
}>;
|
|
10155
|
+
}, z$1.core.$strict>;
|
|
10139
10156
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10140
10157
|
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10141
10158
|
properties: z$1.ZodObject<{
|
|
@@ -10216,6 +10233,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10216
10233
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10217
10234
|
}, z$1.core.$strict>], "name">;
|
|
10218
10235
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10236
|
+
declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
|
|
10237
|
+
featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
10238
|
+
variant: z$1.ZodEnum<{
|
|
10239
|
+
control: "control";
|
|
10240
|
+
new: "new";
|
|
10241
|
+
}>;
|
|
10242
|
+
}, z$1.core.$strip>;
|
|
10243
|
+
type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
|
|
10219
10244
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10220
10245
|
appearance: z$1.ZodObject<{
|
|
10221
10246
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10375,6 +10400,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10375
10400
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10376
10401
|
applicationLinks: "applicationLinks";
|
|
10377
10402
|
compactExpiredCache: "compactExpiredCache";
|
|
10403
|
+
narrowPluginCss: "narrowPluginCss";
|
|
10378
10404
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10379
10405
|
pluginUpdates: "pluginUpdates";
|
|
10380
10406
|
serverMove: "serverMove";
|
|
@@ -13133,6 +13159,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13133
13159
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13134
13160
|
pluginId: z$1.ZodString;
|
|
13135
13161
|
reason: z$1.ZodString;
|
|
13162
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13163
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13136
13164
|
}, z$1.core.$strip>], "kind">>;
|
|
13137
13165
|
}, z$1.core.$strip>;
|
|
13138
13166
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -13304,6 +13332,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
|
|
|
13304
13332
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13305
13333
|
pluginId: z$1.ZodString;
|
|
13306
13334
|
reason: z$1.ZodString;
|
|
13335
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13336
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13307
13337
|
}, z$1.core.$strip>], "kind">;
|
|
13308
13338
|
}, z$1.core.$strip>], "delivery">;
|
|
13309
13339
|
type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
|
|
@@ -13429,7 +13459,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13429
13459
|
type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
|
|
13430
13460
|
declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
13431
13461
|
expectedUpdatedAt: z$1.ZodNumber;
|
|
13432
|
-
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13462
|
+
input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13433
13463
|
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13434
13464
|
end: z$1.ZodNumber;
|
|
13435
13465
|
resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -13518,7 +13548,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13518
13548
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13519
13549
|
"agent-only": "agent-only";
|
|
13520
13550
|
}>>;
|
|
13521
|
-
}, z$1.core.$strip>], "type"
|
|
13551
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13552
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
13553
|
+
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
13554
|
+
"accept-edits": "accept-edits";
|
|
13555
|
+
auto: "auto";
|
|
13556
|
+
full: "full";
|
|
13557
|
+
}>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
|
|
13558
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
13559
|
+
sendAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
13560
|
+
serviceTier: z$1.ZodOptional<z$1.ZodString>;
|
|
13522
13561
|
}, z$1.core.$strip>;
|
|
13523
13562
|
type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
|
|
13524
13563
|
declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
|
|
@@ -13704,6 +13743,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13704
13743
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13705
13744
|
pluginId: z$1.ZodString;
|
|
13706
13745
|
reason: z$1.ZodString;
|
|
13746
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13747
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13707
13748
|
}, z$1.core.$strip>], "kind">>;
|
|
13708
13749
|
}, z$1.core.$strip>;
|
|
13709
13750
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -14699,6 +14740,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14699
14740
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14700
14741
|
pluginId: z$1.ZodString;
|
|
14701
14742
|
reason: z$1.ZodString;
|
|
14743
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14744
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
14702
14745
|
}, z$1.core.$strip>], "kind">>;
|
|
14703
14746
|
}, z$1.core.$strip>>;
|
|
14704
14747
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
@@ -17678,6 +17721,7 @@ type ProviderModelsArgs = ({
|
|
|
17678
17721
|
projectId?: string;
|
|
17679
17722
|
}) & {
|
|
17680
17723
|
providerId?: string;
|
|
17724
|
+
preferCached?: boolean;
|
|
17681
17725
|
signal?: AbortSignal;
|
|
17682
17726
|
};
|
|
17683
17727
|
type ProviderListResult = ProviderInfo[];
|
|
@@ -18063,7 +18107,8 @@ interface SystemAttentionArgs {
|
|
|
18063
18107
|
interface SystemConfigArgs {
|
|
18064
18108
|
signal?: AbortSignal;
|
|
18065
18109
|
}
|
|
18066
|
-
interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
|
|
18110
|
+
interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
|
|
18111
|
+
preferCached?: boolean;
|
|
18067
18112
|
signal?: AbortSignal;
|
|
18068
18113
|
}
|
|
18069
18114
|
interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
|
|
@@ -18100,6 +18145,10 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
|
18100
18145
|
interface SystemRecordTelemetryEventResult {
|
|
18101
18146
|
ok: true;
|
|
18102
18147
|
}
|
|
18148
|
+
interface SystemSetupGuideArgs {
|
|
18149
|
+
signal?: AbortSignal;
|
|
18150
|
+
}
|
|
18151
|
+
type SystemSetupGuideResult = SystemSetupGuideResponse;
|
|
18103
18152
|
interface SystemAiServicesArgs {
|
|
18104
18153
|
signal?: AbortSignal;
|
|
18105
18154
|
}
|
|
@@ -18156,6 +18205,7 @@ interface SystemArea {
|
|
|
18156
18205
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
18157
18206
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
18158
18207
|
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
18208
|
+
experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
|
|
18159
18209
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
18160
18210
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
18161
18211
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -18865,6 +18915,16 @@ interface PluginSettingsSectionProps {
|
|
|
18865
18915
|
*/
|
|
18866
18916
|
interface ExperimentalAppOverlayProps {
|
|
18867
18917
|
}
|
|
18918
|
+
/**
|
|
18919
|
+
* Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
|
|
18920
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
18921
|
+
*/
|
|
18922
|
+
interface InternalDoNotUseSetupGuideSectionProps {
|
|
18923
|
+
/** True when the setup guide is open on a phone. */
|
|
18924
|
+
onPhone: boolean;
|
|
18925
|
+
/** Call when the user starts setting up this section. */
|
|
18926
|
+
onSetupStarted: () => void;
|
|
18927
|
+
}
|
|
18868
18928
|
type ExperimentalPageTitle = ({
|
|
18869
18929
|
title: string;
|
|
18870
18930
|
breadcrumbs?: never;
|
|
@@ -19582,6 +19642,15 @@ interface ExperimentalAppOverlayRegistration {
|
|
|
19582
19642
|
id: string;
|
|
19583
19643
|
component: ComponentType<ExperimentalAppOverlayProps>;
|
|
19584
19644
|
}
|
|
19645
|
+
/**
|
|
19646
|
+
* Render one row in the first-run setup guide's "Where you use bb" group.
|
|
19647
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19648
|
+
*/
|
|
19649
|
+
interface InternalDoNotUseSetupGuideSectionRegistration {
|
|
19650
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19651
|
+
id: string;
|
|
19652
|
+
component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
|
|
19653
|
+
}
|
|
19585
19654
|
/**
|
|
19586
19655
|
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
19587
19656
|
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
@@ -19914,7 +19983,9 @@ interface ExperimentalSidebarFooter {
|
|
|
19914
19983
|
/**
|
|
19915
19984
|
* The one status bb would paint for a thread, already resolved through the
|
|
19916
19985
|
* host's precedence (attention before work; plan and goal before the generic
|
|
19917
|
-
* spinner). Draw
|
|
19986
|
+
* spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
|
|
19987
|
+
* or resolve a row that folds in more through
|
|
19988
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus}.
|
|
19918
19989
|
*
|
|
19919
19990
|
* Treat an unrecognized value as "none": bb adds kinds over time, and an
|
|
19920
19991
|
* older plugin must degrade to drawing nothing rather than throwing.
|
|
@@ -20230,11 +20301,61 @@ interface PluginThreadTitleProps {
|
|
|
20230
20301
|
/** A thread in the sidebar's live view; renders nothing for an unknown id. */
|
|
20231
20302
|
threadId: string;
|
|
20232
20303
|
}
|
|
20304
|
+
/**
|
|
20305
|
+
* The fields of a {@link PluginSidebarThread} that
|
|
20306
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
|
|
20307
|
+
*/
|
|
20308
|
+
type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
|
|
20309
|
+
/** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
|
|
20310
|
+
interface PluginThreadStatusInput {
|
|
20311
|
+
/**
|
|
20312
|
+
* The row's own thread, or null for a group row (a collapsed section,
|
|
20313
|
+
* project, or environment) that stands only for `hiddenThreads`.
|
|
20314
|
+
*/
|
|
20315
|
+
thread: PluginThreadStatusThread | null;
|
|
20316
|
+
/**
|
|
20317
|
+
* Threads the row stands for while they are hidden, such as a collapsed
|
|
20318
|
+
* parent's sub-threads. Their attention and work count toward the row;
|
|
20319
|
+
* their queued messages do not. Pass an empty array when nothing is hidden.
|
|
20320
|
+
*/
|
|
20321
|
+
hiddenThreads: readonly PluginThreadStatusThread[];
|
|
20322
|
+
/**
|
|
20323
|
+
* Whether the composer holds an unsent draft for `thread` or any of
|
|
20324
|
+
* `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
|
|
20325
|
+
*/
|
|
20326
|
+
hasUnsubmittedDraft: boolean;
|
|
20327
|
+
/**
|
|
20328
|
+
* The status another plugin set on the row (see
|
|
20329
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
|
|
20330
|
+
*/
|
|
20331
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
20332
|
+
}
|
|
20333
|
+
/** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
|
|
20334
|
+
interface PluginThreadStatus {
|
|
20335
|
+
indicator: PluginSidebarThreadIndicator;
|
|
20336
|
+
/**
|
|
20337
|
+
* The input `rowStatus` when it shows in place of `indicator`: it replaces
|
|
20338
|
+
* every indicator except "runtime", "unread-error", and
|
|
20339
|
+
* "waiting-for-input". Null otherwise.
|
|
20340
|
+
*/
|
|
20341
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
20342
|
+
/**
|
|
20343
|
+
* The accessible label for what shows: `rowStatus`'s label, else the
|
|
20344
|
+
* indicator's; null when nothing shows.
|
|
20345
|
+
*/
|
|
20346
|
+
label: string | null;
|
|
20347
|
+
/**
|
|
20348
|
+
* Whether the row's thread or a hidden thread is working, or the input
|
|
20349
|
+
* `rowStatus` has the "running" tone.
|
|
20350
|
+
*/
|
|
20351
|
+
isWorking: boolean;
|
|
20352
|
+
}
|
|
20233
20353
|
/**
|
|
20234
20354
|
* Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
|
|
20235
|
-
* status glyph, the one its own lists draw.
|
|
20236
|
-
*
|
|
20237
|
-
*
|
|
20355
|
+
* status glyph, the one its own lists draw. Pass the `indicator` and
|
|
20356
|
+
* `rowStatus` from {@link PluginSdkApp.experimental_resolveThreadStatus} to
|
|
20357
|
+
* fold in state a sidebar thread's `indicator` leaves out, such as collapsed
|
|
20358
|
+
* children or a client-local draft.
|
|
20238
20359
|
*/
|
|
20239
20360
|
interface PluginThreadStatusGlyphProps {
|
|
20240
20361
|
/** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
|
|
@@ -22130,6 +22251,12 @@ interface PluginAppSlots {
|
|
|
22130
22251
|
* docs/api_to_audit.md.
|
|
22131
22252
|
*/
|
|
22132
22253
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
22254
|
+
/**
|
|
22255
|
+
* Render a setup guide row (see
|
|
22256
|
+
* {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
|
|
22257
|
+
* docs/api_to_audit.md.
|
|
22258
|
+
*/
|
|
22259
|
+
internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
|
|
22133
22260
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
22134
22261
|
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
22135
22262
|
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
@@ -23879,6 +24006,13 @@ interface PluginSdkApp {
|
|
|
23879
24006
|
* Experimental: see docs/api_to_audit.md.
|
|
23880
24007
|
*/
|
|
23881
24008
|
experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
|
|
24009
|
+
/**
|
|
24010
|
+
* Resolves what bb's lists draw for a row through bb's own status
|
|
24011
|
+
* precedence, folding in hidden threads, a draft, and another plugin's row
|
|
24012
|
+
* status (see {@link PluginThreadStatusInput}). A pure function, not a
|
|
24013
|
+
* hook. Experimental: see docs/api_to_audit.md.
|
|
24014
|
+
*/
|
|
24015
|
+
experimental_resolveThreadStatus(input: PluginThreadStatusInput): PluginThreadStatus;
|
|
23882
24016
|
/**
|
|
23883
24017
|
* Every `experimental_threadRowMetadata` contribution for one thread row (see
|
|
23884
24018
|
* {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
|
|
@@ -24166,6 +24300,8 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
24166
24300
|
readonly storage: "3_storage";
|
|
24167
24301
|
};
|
|
24168
24302
|
|
|
24303
|
+
declare function experimental_resolveThreadStatus({ thread, hiddenThreads, hasUnsubmittedDraft, rowStatus, }: PluginThreadStatusInput): PluginThreadStatus;
|
|
24304
|
+
|
|
24169
24305
|
declare const experimental_Icon: react.ComponentType<ExperimentalIconProps>;
|
|
24170
24306
|
declare const experimental_ProviderIcon: react.ComponentType<ExperimentalProviderIconProps>;
|
|
24171
24307
|
declare const definePluginApp: PluginSdkApp["definePluginApp"];
|
|
@@ -24258,6 +24394,7 @@ declare const useSidebarSplitLayout: () => PluginSidebarSplitLayout | null;
|
|
|
24258
24394
|
declare const useSidebarThreadShortcut: (threadId: string) => PluginSidebarThreadShortcut | null;
|
|
24259
24395
|
declare const ThreadTitle: react.ComponentType<PluginThreadTitleProps>;
|
|
24260
24396
|
declare const experimental_ThreadStatusGlyph: react.ComponentType<PluginThreadStatusGlyphProps>;
|
|
24397
|
+
|
|
24261
24398
|
declare const experimental_ThreadRowMetadata: react.ComponentType<ExperimentalThreadRowMetadataLineProps>;
|
|
24262
24399
|
declare const useEnvironmentProviders: () => PluginEnvironmentProvidersState;
|
|
24263
24400
|
declare const useSdk: () => PluginBrowserBbSdk;
|
|
@@ -24268,5 +24405,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
24268
24405
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
24269
24406
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24270
24407
|
|
|
24271
|
-
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 };
|
|
24272
|
-
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 };
|
|
24408
|
+
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 };
|
|
24409
|
+
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, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -472,6 +472,8 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
472
472
|
kind: z.ZodLiteral<"plugin">;
|
|
473
473
|
pluginId: z.ZodString;
|
|
474
474
|
reason: z.ZodString;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
kind: z.ZodLiteral<"superseded">;
|
|
475
477
|
}, z.core.$strip>], "kind">>;
|
|
476
478
|
}, z.core.$strip>;
|
|
477
479
|
type ThreadQueuedMessage = z.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -1052,9 +1054,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
|
|
|
1052
1054
|
*
|
|
1053
1055
|
* It runs identically whether the attempt is inline (someone just sent) or
|
|
1054
1056
|
* from a drain (a queued row became eligible again), and whether the message
|
|
1055
|
-
* is a thread's first, a follow-up, a steer,
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1057
|
+
* is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
|
|
1058
|
+
* of core's own notices to a thread (a child finished, needs attention, or
|
|
1059
|
+
* changed owner), which arrives with `initiator: "system"`. Compaction and an
|
|
1060
|
+
* edited message's re-send operate on the existing conversation and do not
|
|
1061
|
+
* pass through it. A handler must therefore be idempotent for one logical
|
|
1062
|
+
* dispatch: passes re-run on every drain, on restart, and on retry.
|
|
1058
1063
|
*/
|
|
1059
1064
|
interface MessageDispatchHookContext {
|
|
1060
1065
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType } from 'react';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -94,6 +94,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
94
94
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
95
95
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
96
96
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
97
|
+
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
97
98
|
navPanels: LegacyNavPanelRegistration[];
|
|
98
99
|
tabs: ExperimentalTabRegistration[];
|
|
99
100
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|