@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
|
@@ -700,6 +700,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
700
700
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
701
701
|
applicationLinks: "applicationLinks";
|
|
702
702
|
compactExpiredCache: "compactExpiredCache";
|
|
703
|
+
narrowPluginCss: "narrowPluginCss";
|
|
703
704
|
performanceDiagnostics: "performanceDiagnostics";
|
|
704
705
|
pluginUpdates: "pluginUpdates";
|
|
705
706
|
serverMove: "serverMove";
|
|
@@ -715,6 +716,7 @@ type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
|
715
716
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
716
717
|
applicationLinks: "applicationLinks";
|
|
717
718
|
compactExpiredCache: "compactExpiredCache";
|
|
719
|
+
narrowPluginCss: "narrowPluginCss";
|
|
718
720
|
performanceDiagnostics: "performanceDiagnostics";
|
|
719
721
|
pluginUpdates: "pluginUpdates";
|
|
720
722
|
serverMove: "serverMove";
|
|
@@ -4160,6 +4162,26 @@ type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
|
4160
4162
|
|
|
4161
4163
|
declare const pluginMetadataSchema: z.ZodType<JsonObject, unknown, zod_v4_core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
4162
4164
|
|
|
4165
|
+
interface JoinHostPathArgs {
|
|
4166
|
+
rootPath: string;
|
|
4167
|
+
relativePath: string;
|
|
4168
|
+
}
|
|
4169
|
+
interface IsHostPathWithinArgs {
|
|
4170
|
+
rootPath: string;
|
|
4171
|
+
candidatePath: string;
|
|
4172
|
+
}
|
|
4173
|
+
declare function normalizeHostPath(path: string): string | null;
|
|
4174
|
+
declare function getHostPathComparisonKey(path: string): string | null;
|
|
4175
|
+
declare function isHostPathWithin({ rootPath, candidatePath, }: IsHostPathWithinArgs): boolean;
|
|
4176
|
+
declare function joinHostPath({ rootPath, relativePath, }: JoinHostPathArgs): string | null;
|
|
4177
|
+
declare function resolveHostPath({ rootPath, path, }: {
|
|
4178
|
+
rootPath: string;
|
|
4179
|
+
path: string;
|
|
4180
|
+
}): string | null;
|
|
4181
|
+
declare function getHostPathDirname(path: string): string | null;
|
|
4182
|
+
declare function getHostPathBasename(path: string): string | null;
|
|
4183
|
+
declare function getRelativeHostPath({ rootPath, candidatePath, }: IsHostPathWithinArgs): string | null;
|
|
4184
|
+
|
|
4163
4185
|
declare const projectSchema: z$1.ZodObject<{
|
|
4164
4186
|
createdAt: z$1.ZodNumber;
|
|
4165
4187
|
gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -4685,6 +4707,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4685
4707
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4686
4708
|
pluginId: z$1.ZodString;
|
|
4687
4709
|
reason: z$1.ZodString;
|
|
4710
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4711
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
4688
4712
|
}, z$1.core.$strip>], "kind">>;
|
|
4689
4713
|
}, z$1.core.$strip>;
|
|
4690
4714
|
type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -10109,6 +10133,10 @@ type SystemProvidersQuery = z$1.infer<typeof systemProvidersQuerySchema>;
|
|
|
10109
10133
|
declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
|
|
10110
10134
|
environmentId: z$1.ZodOptional<z$1.ZodString>;
|
|
10111
10135
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
10136
|
+
preferCached: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10137
|
+
false: "false";
|
|
10138
|
+
true: "true";
|
|
10139
|
+
}>>;
|
|
10112
10140
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
10113
10141
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
10114
10142
|
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -10238,6 +10266,7 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10238
10266
|
name: z$1.ZodLiteral<"recommendation">;
|
|
10239
10267
|
properties: z$1.ZodObject<{
|
|
10240
10268
|
action: z$1.ZodEnum<{
|
|
10269
|
+
deselected: "deselected";
|
|
10241
10270
|
selected: "selected";
|
|
10242
10271
|
shown: "shown";
|
|
10243
10272
|
}>;
|
|
@@ -10331,6 +10360,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10331
10360
|
started: "started";
|
|
10332
10361
|
}>;
|
|
10333
10362
|
}, z$1.core.$strict>;
|
|
10363
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10364
|
+
name: z$1.ZodLiteral<"onboarding_exposed">;
|
|
10365
|
+
properties: z$1.ZodObject<{
|
|
10366
|
+
entry: z$1.ZodEnum<{
|
|
10367
|
+
first_run: "first_run";
|
|
10368
|
+
replay: "replay";
|
|
10369
|
+
}>;
|
|
10370
|
+
}, z$1.core.$strict>;
|
|
10334
10371
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10335
10372
|
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10336
10373
|
properties: z$1.ZodObject<{
|
|
@@ -10411,6 +10448,14 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10411
10448
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10412
10449
|
}, z$1.core.$strict>], "name">;
|
|
10413
10450
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10451
|
+
declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
|
|
10452
|
+
featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
10453
|
+
variant: z$1.ZodEnum<{
|
|
10454
|
+
control: "control";
|
|
10455
|
+
new: "new";
|
|
10456
|
+
}>;
|
|
10457
|
+
}, z$1.core.$strip>;
|
|
10458
|
+
type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
|
|
10414
10459
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10415
10460
|
appearance: z$1.ZodObject<{
|
|
10416
10461
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10570,6 +10615,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10570
10615
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10571
10616
|
applicationLinks: "applicationLinks";
|
|
10572
10617
|
compactExpiredCache: "compactExpiredCache";
|
|
10618
|
+
narrowPluginCss: "narrowPluginCss";
|
|
10573
10619
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10574
10620
|
pluginUpdates: "pluginUpdates";
|
|
10575
10621
|
serverMove: "serverMove";
|
|
@@ -13329,6 +13375,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13329
13375
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13330
13376
|
pluginId: z$1.ZodString;
|
|
13331
13377
|
reason: z$1.ZodString;
|
|
13378
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13379
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13332
13380
|
}, z$1.core.$strip>], "kind">>;
|
|
13333
13381
|
}, z$1.core.$strip>;
|
|
13334
13382
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -13500,6 +13548,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
|
|
|
13500
13548
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13501
13549
|
pluginId: z$1.ZodString;
|
|
13502
13550
|
reason: z$1.ZodString;
|
|
13551
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13552
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13503
13553
|
}, z$1.core.$strip>], "kind">;
|
|
13504
13554
|
}, z$1.core.$strip>], "delivery">;
|
|
13505
13555
|
type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
|
|
@@ -13625,7 +13675,7 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13625
13675
|
type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
|
|
13626
13676
|
declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
13627
13677
|
expectedUpdatedAt: z$1.ZodNumber;
|
|
13628
|
-
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13678
|
+
input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13629
13679
|
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13630
13680
|
end: z$1.ZodNumber;
|
|
13631
13681
|
resource: z$1.ZodPreprocess<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -13714,7 +13764,16 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13714
13764
|
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13715
13765
|
"agent-only": "agent-only";
|
|
13716
13766
|
}>>;
|
|
13717
|
-
}, z$1.core.$strip>], "type"
|
|
13767
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13768
|
+
model: z$1.ZodOptional<z$1.ZodString>;
|
|
13769
|
+
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
13770
|
+
"accept-edits": "accept-edits";
|
|
13771
|
+
auto: "auto";
|
|
13772
|
+
full: "full";
|
|
13773
|
+
}>, z$1.ZodLiteral<"workspace-write">]>, z$1.ZodTransform<"accept-edits" | "auto" | "full", "accept-edits" | "auto" | "full" | "workspace-write">>>;
|
|
13774
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
13775
|
+
sendAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
13776
|
+
serviceTier: z$1.ZodOptional<z$1.ZodString>;
|
|
13718
13777
|
}, z$1.core.$strip>;
|
|
13719
13778
|
type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
|
|
13720
13779
|
declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
|
|
@@ -13900,6 +13959,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13900
13959
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13901
13960
|
pluginId: z$1.ZodString;
|
|
13902
13961
|
reason: z$1.ZodString;
|
|
13962
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13963
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13903
13964
|
}, z$1.core.$strip>], "kind">>;
|
|
13904
13965
|
}, z$1.core.$strip>;
|
|
13905
13966
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -14895,6 +14956,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14895
14956
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14896
14957
|
pluginId: z$1.ZodString;
|
|
14897
14958
|
reason: z$1.ZodString;
|
|
14959
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14960
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
14898
14961
|
}, z$1.core.$strip>], "kind">>;
|
|
14899
14962
|
}, z$1.core.$strip>>;
|
|
14900
14963
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
@@ -17885,6 +17948,7 @@ type ProviderModelsArgs = ({
|
|
|
17885
17948
|
projectId?: string;
|
|
17886
17949
|
}) & {
|
|
17887
17950
|
providerId?: string;
|
|
17951
|
+
preferCached?: boolean;
|
|
17888
17952
|
signal?: AbortSignal;
|
|
17889
17953
|
};
|
|
17890
17954
|
type ProviderListResult = ProviderInfo[];
|
|
@@ -18270,7 +18334,8 @@ interface SystemAttentionArgs {
|
|
|
18270
18334
|
interface SystemConfigArgs {
|
|
18271
18335
|
signal?: AbortSignal;
|
|
18272
18336
|
}
|
|
18273
|
-
interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
|
|
18337
|
+
interface SystemExecutionOptionsArgs extends Omit<SystemExecutionOptionsQuery, "preferCached"> {
|
|
18338
|
+
preferCached?: boolean;
|
|
18274
18339
|
signal?: AbortSignal;
|
|
18275
18340
|
}
|
|
18276
18341
|
interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
|
|
@@ -18307,6 +18372,10 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
|
18307
18372
|
interface SystemRecordTelemetryEventResult {
|
|
18308
18373
|
ok: true;
|
|
18309
18374
|
}
|
|
18375
|
+
interface SystemSetupGuideArgs {
|
|
18376
|
+
signal?: AbortSignal;
|
|
18377
|
+
}
|
|
18378
|
+
type SystemSetupGuideResult = SystemSetupGuideResponse;
|
|
18310
18379
|
interface SystemAiServicesArgs {
|
|
18311
18380
|
signal?: AbortSignal;
|
|
18312
18381
|
}
|
|
@@ -18363,6 +18432,7 @@ interface SystemArea {
|
|
|
18363
18432
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
18364
18433
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
18365
18434
|
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
18435
|
+
experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
|
|
18366
18436
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
18367
18437
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
18368
18438
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -19920,9 +19990,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
|
|
|
19920
19990
|
*
|
|
19921
19991
|
* It runs identically whether the attempt is inline (someone just sent) or
|
|
19922
19992
|
* from a drain (a queued row became eligible again), and whether the message
|
|
19923
|
-
* is a thread's first, a follow-up, a steer,
|
|
19924
|
-
*
|
|
19925
|
-
*
|
|
19993
|
+
* is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
|
|
19994
|
+
* of core's own notices to a thread (a child finished, needs attention, or
|
|
19995
|
+
* changed owner), which arrives with `initiator: "system"`. Compaction and an
|
|
19996
|
+
* edited message's re-send operate on the existing conversation and do not
|
|
19997
|
+
* pass through it. A handler must therefore be idempotent for one logical
|
|
19998
|
+
* dispatch: passes re-run on every drain, on restart, and on retry.
|
|
19926
19999
|
*/
|
|
19927
20000
|
interface MessageDispatchHookContext {
|
|
19928
20001
|
/**
|
|
@@ -21426,6 +21499,16 @@ interface PluginSettingsSectionProps {
|
|
|
21426
21499
|
*/
|
|
21427
21500
|
interface ExperimentalAppOverlayProps {
|
|
21428
21501
|
}
|
|
21502
|
+
/**
|
|
21503
|
+
* Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
|
|
21504
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
21505
|
+
*/
|
|
21506
|
+
interface InternalDoNotUseSetupGuideSectionProps {
|
|
21507
|
+
/** True when the setup guide is open on a phone. */
|
|
21508
|
+
onPhone: boolean;
|
|
21509
|
+
/** Call when the user starts setting up this section. */
|
|
21510
|
+
onSetupStarted: () => void;
|
|
21511
|
+
}
|
|
21429
21512
|
type ExperimentalPageTitle = ({
|
|
21430
21513
|
title: string;
|
|
21431
21514
|
breadcrumbs?: never;
|
|
@@ -22143,6 +22226,15 @@ interface ExperimentalAppOverlayRegistration {
|
|
|
22143
22226
|
id: string;
|
|
22144
22227
|
component: ComponentType<ExperimentalAppOverlayProps>;
|
|
22145
22228
|
}
|
|
22229
|
+
/**
|
|
22230
|
+
* Render one row in the first-run setup guide's "Where you use bb" group.
|
|
22231
|
+
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
22232
|
+
*/
|
|
22233
|
+
interface InternalDoNotUseSetupGuideSectionRegistration {
|
|
22234
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
22235
|
+
id: string;
|
|
22236
|
+
component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
|
|
22237
|
+
}
|
|
22146
22238
|
/**
|
|
22147
22239
|
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
22148
22240
|
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
@@ -22475,7 +22567,9 @@ interface ExperimentalSidebarFooter {
|
|
|
22475
22567
|
/**
|
|
22476
22568
|
* The one status bb would paint for a thread, already resolved through the
|
|
22477
22569
|
* host's precedence (attention before work; plan and goal before the generic
|
|
22478
|
-
* spinner). Draw
|
|
22570
|
+
* spinner). Draw it with {@link PluginSdkApp.experimental_ThreadStatusGlyph},
|
|
22571
|
+
* or resolve a row that folds in more through
|
|
22572
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus}.
|
|
22479
22573
|
*
|
|
22480
22574
|
* Treat an unrecognized value as "none": bb adds kinds over time, and an
|
|
22481
22575
|
* older plugin must degrade to drawing nothing rather than throwing.
|
|
@@ -22791,11 +22885,61 @@ interface PluginThreadTitleProps {
|
|
|
22791
22885
|
/** A thread in the sidebar's live view; renders nothing for an unknown id. */
|
|
22792
22886
|
threadId: string;
|
|
22793
22887
|
}
|
|
22888
|
+
/**
|
|
22889
|
+
* The fields of a {@link PluginSidebarThread} that
|
|
22890
|
+
* {@link PluginSdkApp.experimental_resolveThreadStatus} reads.
|
|
22891
|
+
*/
|
|
22892
|
+
type PluginThreadStatusThread = Pick<PluginSidebarThread, "activity" | "hasPendingInteraction" | "isUnread" | "parentThreadId" | "queuedWork" | "runtimeStatus" | "status">;
|
|
22893
|
+
/** Input for {@link PluginSdkApp.experimental_resolveThreadStatus}. */
|
|
22894
|
+
interface PluginThreadStatusInput {
|
|
22895
|
+
/**
|
|
22896
|
+
* The row's own thread, or null for a group row (a collapsed section,
|
|
22897
|
+
* project, or environment) that stands only for `hiddenThreads`.
|
|
22898
|
+
*/
|
|
22899
|
+
thread: PluginThreadStatusThread | null;
|
|
22900
|
+
/**
|
|
22901
|
+
* Threads the row stands for while they are hidden, such as a collapsed
|
|
22902
|
+
* parent's sub-threads. Their attention and work count toward the row;
|
|
22903
|
+
* their queued messages do not. Pass an empty array when nothing is hidden.
|
|
22904
|
+
*/
|
|
22905
|
+
hiddenThreads: readonly PluginThreadStatusThread[];
|
|
22906
|
+
/**
|
|
22907
|
+
* Whether the composer holds an unsent draft for `thread` or any of
|
|
22908
|
+
* `hiddenThreads` (see {@link PluginSdkApp.useSidebarThreadDraft}).
|
|
22909
|
+
*/
|
|
22910
|
+
hasUnsubmittedDraft: boolean;
|
|
22911
|
+
/**
|
|
22912
|
+
* The status another plugin set on the row (see
|
|
22913
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}), or null.
|
|
22914
|
+
*/
|
|
22915
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
22916
|
+
}
|
|
22917
|
+
/** What bb's lists draw for a row (see {@link PluginThreadStatusInput}). */
|
|
22918
|
+
interface PluginThreadStatus {
|
|
22919
|
+
indicator: PluginSidebarThreadIndicator;
|
|
22920
|
+
/**
|
|
22921
|
+
* The input `rowStatus` when it shows in place of `indicator`: it replaces
|
|
22922
|
+
* every indicator except "runtime", "unread-error", and
|
|
22923
|
+
* "waiting-for-input". Null otherwise.
|
|
22924
|
+
*/
|
|
22925
|
+
rowStatus: PluginSidebarThreadRowStatus | null;
|
|
22926
|
+
/**
|
|
22927
|
+
* The accessible label for what shows: `rowStatus`'s label, else the
|
|
22928
|
+
* indicator's; null when nothing shows.
|
|
22929
|
+
*/
|
|
22930
|
+
label: string | null;
|
|
22931
|
+
/**
|
|
22932
|
+
* Whether the row's thread or a hidden thread is working, or the input
|
|
22933
|
+
* `rowStatus` has the "running" tone.
|
|
22934
|
+
*/
|
|
22935
|
+
isWorking: boolean;
|
|
22936
|
+
}
|
|
22794
22937
|
/**
|
|
22795
22938
|
* Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
|
|
22796
|
-
* status glyph, the one its own lists draw.
|
|
22797
|
-
*
|
|
22798
|
-
*
|
|
22939
|
+
* status glyph, the one its own lists draw. Pass the `indicator` and
|
|
22940
|
+
* `rowStatus` from {@link PluginSdkApp.experimental_resolveThreadStatus} to
|
|
22941
|
+
* fold in state a sidebar thread's `indicator` leaves out, such as collapsed
|
|
22942
|
+
* children or a client-local draft.
|
|
22799
22943
|
*/
|
|
22800
22944
|
interface PluginThreadStatusGlyphProps {
|
|
22801
22945
|
/** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
|
|
@@ -24691,6 +24835,12 @@ interface PluginAppSlots {
|
|
|
24691
24835
|
* docs/api_to_audit.md.
|
|
24692
24836
|
*/
|
|
24693
24837
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
24838
|
+
/**
|
|
24839
|
+
* Render a setup guide row (see
|
|
24840
|
+
* {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
|
|
24841
|
+
* docs/api_to_audit.md.
|
|
24842
|
+
*/
|
|
24843
|
+
internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
|
|
24694
24844
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
24695
24845
|
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
24696
24846
|
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
@@ -26440,6 +26590,13 @@ interface PluginSdkApp {
|
|
|
26440
26590
|
* Experimental: see docs/api_to_audit.md.
|
|
26441
26591
|
*/
|
|
26442
26592
|
experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
|
|
26593
|
+
/**
|
|
26594
|
+
* Resolves what bb's lists draw for a row through bb's own status
|
|
26595
|
+
* precedence, folding in hidden threads, a draft, and another plugin's row
|
|
26596
|
+
* status (see {@link PluginThreadStatusInput}). A pure function, not a
|
|
26597
|
+
* hook. Experimental: see docs/api_to_audit.md.
|
|
26598
|
+
*/
|
|
26599
|
+
experimental_resolveThreadStatus(input: PluginThreadStatusInput): PluginThreadStatus;
|
|
26443
26600
|
/**
|
|
26444
26601
|
* Every `experimental_threadRowMetadata` contribution for one thread row (see
|
|
26445
26602
|
* {@link ExperimentalThreadRowMetadataRegistration}), the items bb's sidebar
|
|
@@ -26959,5 +27116,5 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
26959
27116
|
readonly storage: "3_storage";
|
|
26960
27117
|
};
|
|
26961
27118
|
|
|
26962
|
-
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry };
|
|
26963
|
-
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
27119
|
+
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry, getHostPathBasename as experimental_getHostPathBasename, getHostPathComparisonKey as experimental_getHostPathComparisonKey, getHostPathDirname as experimental_getHostPathDirname, getRelativeHostPath as experimental_getRelativeHostPath, isHostPathWithin as experimental_isHostPathWithin, joinHostPath as experimental_joinHostPath, normalizeHostPath as experimental_normalizeHostPath, resolveHostPath as experimental_resolveHostPath };
|
|
27120
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, InternalDoNotUseSetupGuideSectionProps, InternalDoNotUseSetupGuideSectionRegistration, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
package/dist/app.js
CHANGED
|
@@ -106,6 +106,113 @@ var experimental_THREAD_INFO_SECTION_GROUPS = {
|
|
|
106
106
|
storage: "3_storage"
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
+
// src/internal/thread-status.ts
|
|
110
|
+
var INDICATOR_LABELS = {
|
|
111
|
+
"unread-error": "Unread thread failed",
|
|
112
|
+
"waiting-for-input": "Thread needs user input",
|
|
113
|
+
"working-draft": "Thread working with unsubmitted draft",
|
|
114
|
+
workflow: "Workflow running",
|
|
115
|
+
"background-agent": "Background agent running",
|
|
116
|
+
"background-command": "Background command running",
|
|
117
|
+
"plan-mode": "Plan mode active",
|
|
118
|
+
goal: "Goal active",
|
|
119
|
+
runtime: "Thread working",
|
|
120
|
+
"queued-failed": "Queued message failed to send",
|
|
121
|
+
"queued-waiting": "Thread has a message waiting to send",
|
|
122
|
+
draft: "Thread has unsubmitted draft",
|
|
123
|
+
"unread-success": "Unread thread succeeded"
|
|
124
|
+
};
|
|
125
|
+
var RUNNING_RUNTIME_STATUSES = {
|
|
126
|
+
active: true,
|
|
127
|
+
provisioning: true,
|
|
128
|
+
starting: true,
|
|
129
|
+
stopping: true,
|
|
130
|
+
error: false,
|
|
131
|
+
idle: false,
|
|
132
|
+
pending: false,
|
|
133
|
+
"waiting-for-host": false
|
|
134
|
+
};
|
|
135
|
+
var DONE_THREAD_STATUSES = {
|
|
136
|
+
error: true,
|
|
137
|
+
idle: true,
|
|
138
|
+
active: false,
|
|
139
|
+
starting: false,
|
|
140
|
+
stopping: false,
|
|
141
|
+
pending: false
|
|
142
|
+
};
|
|
143
|
+
var INDICATORS_OVER_ROW_STATUS = /* @__PURE__ */ new Set(["runtime", "unread-error", "waiting-for-input"]);
|
|
144
|
+
function threadIndicatorLabel(indicator) {
|
|
145
|
+
return indicator === "none" ? null : INDICATOR_LABELS[indicator];
|
|
146
|
+
}
|
|
147
|
+
function visibleThreadRowStatus(indicator, rowStatus) {
|
|
148
|
+
return INDICATORS_OVER_ROW_STATUS.has(indicator) ? null : rowStatus;
|
|
149
|
+
}
|
|
150
|
+
function isUnreadDoneThread(thread) {
|
|
151
|
+
return thread.parentThreadId === null && thread.isUnread && DONE_THREAD_STATUSES[thread.status];
|
|
152
|
+
}
|
|
153
|
+
function addThreadFlags(flags, thread) {
|
|
154
|
+
const unreadDone = isUnreadDoneThread(thread);
|
|
155
|
+
flags.pending ||= thread.hasPendingInteraction;
|
|
156
|
+
flags.unreadError ||= unreadDone && thread.status === "error";
|
|
157
|
+
flags.unreadSuccess ||= unreadDone && thread.status !== "error";
|
|
158
|
+
flags.runtime ||= RUNNING_RUNTIME_STATUSES[thread.runtimeStatus];
|
|
159
|
+
flags.workflow ||= thread.activity.workflows > 0;
|
|
160
|
+
flags.backgroundAgent ||= thread.activity.backgroundAgents > 0;
|
|
161
|
+
flags.backgroundCommand ||= thread.activity.backgroundCommands > 0;
|
|
162
|
+
flags.planMode ||= thread.activity.planMode > 0;
|
|
163
|
+
flags.goal ||= thread.activity.goals > 0;
|
|
164
|
+
}
|
|
165
|
+
function resolveIndicator(flags, queuedWork, hasUnsubmittedDraft, isWorking) {
|
|
166
|
+
if (flags.unreadError) return "unread-error";
|
|
167
|
+
if (flags.pending) return "waiting-for-input";
|
|
168
|
+
if (hasUnsubmittedDraft && isWorking) return "working-draft";
|
|
169
|
+
if (flags.planMode) return "plan-mode";
|
|
170
|
+
if (flags.goal) return "goal";
|
|
171
|
+
if (flags.runtime) return "runtime";
|
|
172
|
+
if (flags.workflow) return "workflow";
|
|
173
|
+
if (queuedWork === "failed") return "queued-failed";
|
|
174
|
+
if (flags.unreadSuccess) return "unread-success";
|
|
175
|
+
if (flags.backgroundAgent) return "background-agent";
|
|
176
|
+
if (flags.backgroundCommand) return "background-command";
|
|
177
|
+
if (queuedWork === "waiting") return "queued-waiting";
|
|
178
|
+
if (hasUnsubmittedDraft) return "draft";
|
|
179
|
+
return "none";
|
|
180
|
+
}
|
|
181
|
+
function experimental_resolveThreadStatus({
|
|
182
|
+
thread,
|
|
183
|
+
hiddenThreads,
|
|
184
|
+
hasUnsubmittedDraft,
|
|
185
|
+
rowStatus
|
|
186
|
+
}) {
|
|
187
|
+
const flags = {
|
|
188
|
+
pending: false,
|
|
189
|
+
unreadError: false,
|
|
190
|
+
unreadSuccess: false,
|
|
191
|
+
runtime: false,
|
|
192
|
+
workflow: false,
|
|
193
|
+
backgroundAgent: false,
|
|
194
|
+
backgroundCommand: false,
|
|
195
|
+
planMode: false,
|
|
196
|
+
goal: false
|
|
197
|
+
};
|
|
198
|
+
if (thread !== null) addThreadFlags(flags, thread);
|
|
199
|
+
for (const hiddenThread of hiddenThreads) addThreadFlags(flags, hiddenThread);
|
|
200
|
+
const isThreadWorking = flags.runtime || flags.workflow || flags.backgroundAgent || flags.backgroundCommand || flags.planMode || flags.goal;
|
|
201
|
+
const indicator = resolveIndicator(
|
|
202
|
+
flags,
|
|
203
|
+
thread?.queuedWork ?? "none",
|
|
204
|
+
hasUnsubmittedDraft,
|
|
205
|
+
isThreadWorking
|
|
206
|
+
);
|
|
207
|
+
const shownRowStatus = visibleThreadRowStatus(indicator, rowStatus);
|
|
208
|
+
return {
|
|
209
|
+
indicator,
|
|
210
|
+
rowStatus: shownRowStatus,
|
|
211
|
+
label: shownRowStatus?.label ?? threadIndicatorLabel(indicator),
|
|
212
|
+
isWorking: isThreadWorking || rowStatus?.tone === "running"
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
109
216
|
// src/app.ts
|
|
110
217
|
function runtimeHost() {
|
|
111
218
|
return globalThis.__bbPluginRuntime;
|
|
@@ -420,6 +527,7 @@ export {
|
|
|
420
527
|
experimental_getApplicationLinkApprovals,
|
|
421
528
|
experimental_promptMentionClipboardAttributes,
|
|
422
529
|
experimental_readPromptMentionClipboard,
|
|
530
|
+
experimental_resolveThreadStatus,
|
|
423
531
|
experimental_revokeApplicationLinkApproval,
|
|
424
532
|
experimental_saveFile,
|
|
425
533
|
experimental_useAppPanel,
|