@get-bb/plugin-sdk 0.6.157 → 0.6.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +1010 -353
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +9 -6
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +10 -4
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1001 -0
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +45 -8
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk-testing.d.ts +14 -19
- package/bundled-types/bb-plugin-sdk.d.ts +1043 -436
- package/dist/app.js +8 -0
- package/dist/host.js +27 -3
- package/dist/index.js +19 -1
- package/dist/internal/host-policy.js +34 -13
- package/dist/internal/plugin-app-collector.js +35 -3
- package/dist/internal/rpc-query-host.js +1 -0
- package/dist/internal/thread-event-gate.js +95 -0
- package/dist/process.js +7 -1
- package/dist/provider-bridge-acp-next.js +503 -144
- package/dist/provider-bridge-acp.js +503 -144
- package/dist/provider-bridge-testing.js +12 -4
- package/dist/provider-bridge.js +115 -34
- package/dist/replay-provider-child.mjs +158 -31
- package/dist/testing/app.js +647 -351
- package/dist/testing/index.js +184 -77
- package/package.json +8 -1
|
@@ -287,8 +287,8 @@ interface PluginThreadStatus {
|
|
|
287
287
|
* the content-script context's `experimental_setThreadRowStatus` (see
|
|
288
288
|
* {@link PluginSdkApp.useSidebarThreadRowStatus}). bb's row draws it in
|
|
289
289
|
* place of the draft glyph while it is set; a replaced list should do the
|
|
290
|
-
* same so a status
|
|
291
|
-
*
|
|
290
|
+
* same so a status another plugin set does not vanish when the list changes
|
|
291
|
+
* hands. No bundled plugin sets one; only content scripts can.
|
|
292
292
|
*/
|
|
293
293
|
type PluginSidebarThreadRowStatus = PluginComposerThreadRowStatus;
|
|
294
294
|
/** Host-rendered status that temporarily replaces a thread's draft glyph. */
|
|
@@ -359,7 +359,7 @@ declare const acpToolCallContentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
359
359
|
}, z.core.$loose>]>;
|
|
360
360
|
type AcpToolCallContent = z.infer<typeof acpToolCallContentSchema>;
|
|
361
361
|
declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
362
|
-
content: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
|
|
362
|
+
content: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
|
|
363
363
|
[x: string]: unknown;
|
|
364
364
|
type: "content";
|
|
365
365
|
content: {
|
|
@@ -380,7 +380,49 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
380
380
|
[x: string]: unknown;
|
|
381
381
|
type: "terminal";
|
|
382
382
|
terminalId: string;
|
|
383
|
-
})[], unknown[]
|
|
383
|
+
})[], unknown[]>>>, z.ZodTransform<({
|
|
384
|
+
[x: string]: unknown;
|
|
385
|
+
type: "content";
|
|
386
|
+
content: {
|
|
387
|
+
[x: string]: unknown;
|
|
388
|
+
type: "text";
|
|
389
|
+
text: string;
|
|
390
|
+
} | {
|
|
391
|
+
[x: string]: unknown;
|
|
392
|
+
type: string;
|
|
393
|
+
};
|
|
394
|
+
} | {
|
|
395
|
+
[x: string]: unknown;
|
|
396
|
+
type: "diff";
|
|
397
|
+
path: string;
|
|
398
|
+
newText: string;
|
|
399
|
+
oldText?: string | null | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
[x: string]: unknown;
|
|
402
|
+
type: "terminal";
|
|
403
|
+
terminalId: string;
|
|
404
|
+
})[] | undefined, ({
|
|
405
|
+
[x: string]: unknown;
|
|
406
|
+
type: "content";
|
|
407
|
+
content: {
|
|
408
|
+
[x: string]: unknown;
|
|
409
|
+
type: "text";
|
|
410
|
+
text: string;
|
|
411
|
+
} | {
|
|
412
|
+
[x: string]: unknown;
|
|
413
|
+
type: string;
|
|
414
|
+
};
|
|
415
|
+
} | {
|
|
416
|
+
[x: string]: unknown;
|
|
417
|
+
type: "diff";
|
|
418
|
+
path: string;
|
|
419
|
+
newText: string;
|
|
420
|
+
oldText?: string | null | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
type: "terminal";
|
|
424
|
+
terminalId: string;
|
|
425
|
+
})[] | null>>>;
|
|
384
426
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
385
427
|
delete: "delete";
|
|
386
428
|
edit: "edit";
|
|
@@ -393,11 +435,19 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
393
435
|
switch_mode: "switch_mode";
|
|
394
436
|
think: "think";
|
|
395
437
|
}>>;
|
|
396
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
438
|
+
locations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
397
439
|
line: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
398
440
|
path: z.ZodString;
|
|
399
|
-
}, z.core.$loose
|
|
400
|
-
|
|
441
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
442
|
+
[x: string]: unknown;
|
|
443
|
+
path: string;
|
|
444
|
+
line?: number | null | undefined;
|
|
445
|
+
}[] | undefined, {
|
|
446
|
+
[x: string]: unknown;
|
|
447
|
+
path: string;
|
|
448
|
+
line?: number | null | undefined;
|
|
449
|
+
}[] | null>>>;
|
|
450
|
+
name: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
401
451
|
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
402
452
|
rawKind: z.ZodOptional<z.ZodString>;
|
|
403
453
|
rawOutput: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -412,7 +462,7 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
412
462
|
in_progress: "in_progress";
|
|
413
463
|
pending: "pending";
|
|
414
464
|
}>>;
|
|
415
|
-
title: z.ZodOptional<z.ZodString
|
|
465
|
+
title: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
416
466
|
toolCallId: z.ZodString;
|
|
417
467
|
}, z.core.$loose>, unknown>;
|
|
418
468
|
type AcpToolCallUpdateEvent = z.infer<typeof acpToolCallUpdateEventSchema>;
|
|
@@ -359,7 +359,7 @@ declare const acpToolCallContentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
359
359
|
}, z.core.$loose>]>;
|
|
360
360
|
type AcpToolCallContent = z.infer<typeof acpToolCallContentSchema>;
|
|
361
361
|
declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
362
|
-
content: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
|
|
362
|
+
content: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
|
|
363
363
|
[x: string]: unknown;
|
|
364
364
|
type: "content";
|
|
365
365
|
content: {
|
|
@@ -380,7 +380,49 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
380
380
|
[x: string]: unknown;
|
|
381
381
|
type: "terminal";
|
|
382
382
|
terminalId: string;
|
|
383
|
-
})[], unknown[]
|
|
383
|
+
})[], unknown[]>>>, z.ZodTransform<({
|
|
384
|
+
[x: string]: unknown;
|
|
385
|
+
type: "content";
|
|
386
|
+
content: {
|
|
387
|
+
[x: string]: unknown;
|
|
388
|
+
type: "text";
|
|
389
|
+
text: string;
|
|
390
|
+
} | {
|
|
391
|
+
[x: string]: unknown;
|
|
392
|
+
type: string;
|
|
393
|
+
};
|
|
394
|
+
} | {
|
|
395
|
+
[x: string]: unknown;
|
|
396
|
+
type: "diff";
|
|
397
|
+
path: string;
|
|
398
|
+
newText: string;
|
|
399
|
+
oldText?: string | null | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
[x: string]: unknown;
|
|
402
|
+
type: "terminal";
|
|
403
|
+
terminalId: string;
|
|
404
|
+
})[] | undefined, ({
|
|
405
|
+
[x: string]: unknown;
|
|
406
|
+
type: "content";
|
|
407
|
+
content: {
|
|
408
|
+
[x: string]: unknown;
|
|
409
|
+
type: "text";
|
|
410
|
+
text: string;
|
|
411
|
+
} | {
|
|
412
|
+
[x: string]: unknown;
|
|
413
|
+
type: string;
|
|
414
|
+
};
|
|
415
|
+
} | {
|
|
416
|
+
[x: string]: unknown;
|
|
417
|
+
type: "diff";
|
|
418
|
+
path: string;
|
|
419
|
+
newText: string;
|
|
420
|
+
oldText?: string | null | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
type: "terminal";
|
|
424
|
+
terminalId: string;
|
|
425
|
+
})[] | null>>>;
|
|
384
426
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
385
427
|
delete: "delete";
|
|
386
428
|
edit: "edit";
|
|
@@ -393,11 +435,19 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
393
435
|
switch_mode: "switch_mode";
|
|
394
436
|
think: "think";
|
|
395
437
|
}>>;
|
|
396
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
438
|
+
locations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
397
439
|
line: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
398
440
|
path: z.ZodString;
|
|
399
|
-
}, z.core.$loose
|
|
400
|
-
|
|
441
|
+
}, z.core.$loose>>>, z.ZodTransform<{
|
|
442
|
+
[x: string]: unknown;
|
|
443
|
+
path: string;
|
|
444
|
+
line?: number | null | undefined;
|
|
445
|
+
}[] | undefined, {
|
|
446
|
+
[x: string]: unknown;
|
|
447
|
+
path: string;
|
|
448
|
+
line?: number | null | undefined;
|
|
449
|
+
}[] | null>>>;
|
|
450
|
+
name: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
401
451
|
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
402
452
|
rawKind: z.ZodOptional<z.ZodString>;
|
|
403
453
|
rawOutput: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -412,7 +462,7 @@ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
412
462
|
in_progress: "in_progress";
|
|
413
463
|
pending: "pending";
|
|
414
464
|
}>>;
|
|
415
|
-
title: z.ZodOptional<z.ZodString
|
|
465
|
+
title: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | undefined, string | null>>>;
|
|
416
466
|
toolCallId: z.ZodString;
|
|
417
467
|
}, z.core.$loose>, unknown>;
|
|
418
468
|
type AcpToolCallUpdateEvent = z.infer<typeof acpToolCallUpdateEventSchema>;
|
|
@@ -1598,7 +1598,7 @@ declare function reasoningEffortsForLevels(levels: readonly ReasoningLevel[]): M
|
|
|
1598
1598
|
|
|
1599
1599
|
declare function toOptionalString(value: unknown): string | undefined;
|
|
1600
1600
|
declare function toOptionalRecord(value: unknown): Record<string, unknown> | undefined;
|
|
1601
|
-
declare function buildShellEnvOverrides(envVars?: Record<string, string
|
|
1601
|
+
declare function buildShellEnvOverrides(envVars?: Readonly<Record<string, string>>): Record<string, string>;
|
|
1602
1602
|
declare function toNonNegativeNumber(value: unknown): number;
|
|
1603
1603
|
declare function normalizeProviderCommandOutput(args: {
|
|
1604
1604
|
emptyPlaceholders: readonly string[];
|
|
@@ -1707,6 +1707,7 @@ declare function experimental_recordProviderChildIo(child: BridgeRecorderChildSt
|
|
|
1707
1707
|
}): void;
|
|
1708
1708
|
|
|
1709
1709
|
declare function withoutBridgeRuntimeEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
1710
|
+
declare function buildProviderCliEnv(envVars: Readonly<Record<string, string>> | undefined): NodeJS.ProcessEnv;
|
|
1710
1711
|
|
|
1711
1712
|
interface BridgeToolCallRequest {
|
|
1712
1713
|
jsonrpc: "2.0";
|
|
@@ -4053,6 +4054,7 @@ declare function experimental_defineProviderBridge(definition: ProviderBridgeDef
|
|
|
4053
4054
|
|
|
4054
4055
|
declare const providerMaintenanceParamsSchema: z.ZodObject<{
|
|
4055
4056
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4057
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4056
4058
|
providerId: z.ZodString;
|
|
4057
4059
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4058
4060
|
}, z.core.$loose>;
|
|
@@ -4064,6 +4066,7 @@ type ProviderInstallationRequirement = z.infer<typeof providerInstallationRequir
|
|
|
4064
4066
|
declare const providerInstallationStatusParamsSchema: z.ZodObject<{
|
|
4065
4067
|
checkUpdates: z.ZodDefault<z.ZodBoolean>;
|
|
4066
4068
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4069
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4067
4070
|
providerId: z.ZodString;
|
|
4068
4071
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4069
4072
|
requirement: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4243,6 +4246,7 @@ declare const providerInstallationRunParamsSchema: z.ZodObject<{
|
|
|
4243
4246
|
update: "update";
|
|
4244
4247
|
}>;
|
|
4245
4248
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4249
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4246
4250
|
providerId: z.ZodString;
|
|
4247
4251
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4248
4252
|
}, z.core.$loose>;
|
|
@@ -4285,20 +4289,20 @@ declare const providerInstallationRunResultSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
4285
4289
|
}, z.core.$loose>], "available">;
|
|
4286
4290
|
type ProviderInstallationRunResult = z.infer<typeof providerInstallationRunResultSchema>;
|
|
4287
4291
|
|
|
4288
|
-
declare function resolveExecutablePath(command: string): Promise<string | null>;
|
|
4289
|
-
declare function commandOutput(command: string, args: readonly string[]): Promise<string | null>;
|
|
4292
|
+
declare function resolveExecutablePath(command: string, env?: NodeJS.ProcessEnv): Promise<string | null>;
|
|
4293
|
+
declare function commandOutput(command: string, args: readonly string[], env?: NodeJS.ProcessEnv): Promise<string | null>;
|
|
4290
4294
|
declare function versionFrom(value: string | null): string | null;
|
|
4291
|
-
declare function readCliVersion(command: string): Promise<string | null>;
|
|
4295
|
+
declare function readCliVersion(command: string, env?: NodeJS.ProcessEnv): Promise<string | null>;
|
|
4292
4296
|
declare function compareVersions(left: string, right: string): number;
|
|
4293
4297
|
declare function npmCommand(): string;
|
|
4294
4298
|
declare function formatCommand(command: string, args: readonly string[]): string;
|
|
4295
4299
|
declare function npmGlobalInstallCommand(npmPackage: string): ProviderInstallationCommand;
|
|
4296
|
-
declare function npmLatestVersion(npmPackage: string): Promise<string | null>;
|
|
4300
|
+
declare function npmLatestVersion(npmPackage: string, env?: NodeJS.ProcessEnv): Promise<string | null>;
|
|
4297
4301
|
interface NpmGlobalPackageProbe {
|
|
4298
4302
|
npmBin: string | null;
|
|
4299
4303
|
npmGlobalPackageVersion: string | null;
|
|
4300
4304
|
}
|
|
4301
|
-
declare function probeNpmGlobalPackage(npmPackage: string): Promise<NpmGlobalPackageProbe>;
|
|
4305
|
+
declare function probeNpmGlobalPackage(npmPackage: string, env?: NodeJS.ProcessEnv): Promise<NpmGlobalPackageProbe>;
|
|
4302
4306
|
declare function npmGlobalInstallSource(args: {
|
|
4303
4307
|
installed: boolean;
|
|
4304
4308
|
executablePath: string | null;
|
|
@@ -4332,6 +4336,7 @@ declare class ProviderResponseEncodeError extends Error {
|
|
|
4332
4336
|
readonly code = -32602;
|
|
4333
4337
|
constructor(message: string);
|
|
4334
4338
|
}
|
|
4339
|
+
declare function serializeJsonRpcLine(message: object): string;
|
|
4335
4340
|
|
|
4336
4341
|
type ProviderRawEventCoverage = "noise" | "normalized" | "unknown";
|
|
4337
4342
|
interface ProviderRawEventDescription {
|
|
@@ -4369,6 +4374,36 @@ declare const textBlockSchema: z.ZodObject<{
|
|
|
4369
4374
|
type: z.ZodLiteral<"text">;
|
|
4370
4375
|
}, z.core.$strip>;
|
|
4371
4376
|
|
|
4377
|
+
type UnansweredInteractionCause = {
|
|
4378
|
+
kind: "unshowable-request";
|
|
4379
|
+
detail: string;
|
|
4380
|
+
} | {
|
|
4381
|
+
kind: "runtime-error";
|
|
4382
|
+
message: string;
|
|
4383
|
+
} | {
|
|
4384
|
+
kind: "unreadable-resolution";
|
|
4385
|
+
} | {
|
|
4386
|
+
kind: "unmappable-answer";
|
|
4387
|
+
detail: string;
|
|
4388
|
+
} | {
|
|
4389
|
+
kind: "withdrawn";
|
|
4390
|
+
detail: string;
|
|
4391
|
+
};
|
|
4392
|
+
type UnansweredInteractionAnswer = {
|
|
4393
|
+
kind: "error";
|
|
4394
|
+
} | {
|
|
4395
|
+
kind: "value";
|
|
4396
|
+
value: string;
|
|
4397
|
+
};
|
|
4398
|
+
interface UnansweredInteractionWarningArgs {
|
|
4399
|
+
cause: UnansweredInteractionCause;
|
|
4400
|
+
answer: UnansweredInteractionAnswer;
|
|
4401
|
+
}
|
|
4402
|
+
declare function unansweredInteractionErrorMessage(cause: UnansweredInteractionCause): string;
|
|
4403
|
+
declare function unansweredInteractionWarning(args: UnansweredInteractionWarningArgs): Extract<ThreadDelta, {
|
|
4404
|
+
kind: "provider.warning";
|
|
4405
|
+
}>;
|
|
4406
|
+
|
|
4372
4407
|
declare const PROVIDER_BRIDGE_PROTOCOL_VERSION: 2;
|
|
4373
4408
|
declare const THREAD_DELTA_GRAMMAR_V2: 2;
|
|
4374
4409
|
declare const THREAD_DELTA_GRAMMAR_V3: 3;
|
|
@@ -4507,6 +4542,7 @@ declare const modelListParamsSchema: z.ZodObject<{
|
|
|
4507
4542
|
}, z.core.$loose>;
|
|
4508
4543
|
declare const commandListParamsSchema: z.ZodObject<{
|
|
4509
4544
|
cwd: z.ZodString;
|
|
4545
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4510
4546
|
}, z.core.$loose>;
|
|
4511
4547
|
declare const commandListResultSchema: z.ZodObject<{
|
|
4512
4548
|
commands: z.ZodArray<z.ZodObject<{
|
|
@@ -5118,6 +5154,7 @@ declare const BRIDGE_NOTIFICATION_METHODS: {
|
|
|
5118
5154
|
readonly providerRaw: "provider/raw";
|
|
5119
5155
|
readonly providerRecovery: "provider/recovery";
|
|
5120
5156
|
readonly error: "error";
|
|
5157
|
+
readonly requestCancelled: "notifications/cancelled";
|
|
5121
5158
|
};
|
|
5122
5159
|
declare const providerRecoveryNotificationSchema: z.ZodObject<{
|
|
5123
5160
|
kind: z.ZodEnum<{
|
|
@@ -5294,5 +5331,5 @@ declare function selectedSkillMentions(input: {
|
|
|
5294
5331
|
mentions: readonly SkillMentionCandidate[];
|
|
5295
5332
|
}): SelectedSkillMention[];
|
|
5296
5333
|
|
|
5297
|
-
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, scanSkillFiles as experimental_scanSkillFiles, searchPresentation as experimental_searchPresentation, selectedSkillMentions as experimental_selectedSkillMentions, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5298
|
-
export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, IndexedSkillFile as ExperimentalIndexedSkillFile, SkillScanRoot as ExperimentalSkillScanRoot, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
|
|
5334
|
+
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, buildProviderCliEnv as experimental_buildProviderCliEnv, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, scanSkillFiles as experimental_scanSkillFiles, searchPresentation as experimental_searchPresentation, selectedSkillMentions as experimental_selectedSkillMentions, serializeJsonRpcLine as experimental_serializeJsonRpcLine, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, unansweredInteractionErrorMessage as experimental_unansweredInteractionErrorMessage, unansweredInteractionWarning as experimental_unansweredInteractionWarning, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5335
|
+
export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, IndexedSkillFile as ExperimentalIndexedSkillFile, SkillScanRoot as ExperimentalSkillScanRoot, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UnansweredInteractionAnswer, UnansweredInteractionCause, UnansweredInteractionWarningArgs, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
|
|
@@ -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 { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration,
|
|
9
|
+
import { ExperimentalSidebarFooterItemRegistration, PluginNavPanelRegistration, ExperimentalThreadContextCardSectionRegistration, PluginProviderIconRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, ComposerDraftSnapshot, PluginComposerScope, ComposerSelection, PluginComposerTextEffect, PluginComposerMention, ComposerSubmitOptions, ExperimentalClipboardContent, PluginComposerThreadRowStatus, BbNavigate, ExperimentalFilePreviewOptions, ExperimentalFileOpenOptions, PluginAppDefinition, PluginRpcContract, StandardSchemaV1InferInput, PluginRpcResult, PluginBrowserBbSdk, ExperimentalPluginPanelPage, PluginRealtimeConnectionState, ComposerMention, ComposerAttachment, PluginSidebarThreadsState, PluginProvidersState, PluginCodeThemeState, BranchesState, CheckoutState, ExperimentalThreadContextKind, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarSplitLayout, ExperimentalComposerRendererApi, ExperimentalSidebarNavigationItem, PluginThreadActionTarget, PluginThreadActionEntry, PluginThreadActionRegistrationInfo, PluginEnvironmentProvidersState, ExperimentalLiveFileTarget, ExperimentalFilePreviewFile, ExperimentalServers, ExperimentalPanelController, ExperimentalPanelTabs, JsonValue, ExperimentalPageTitle, ExperimentalOpenTabOptions, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationTarget } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType, ReactNode } from 'react';
|
|
11
11
|
import { RenderResult } from '@testing-library/react';
|
|
12
12
|
|
|
@@ -56,6 +56,9 @@ type PluginNavPanelFixedTabRegistration = {
|
|
|
56
56
|
layout?: "flush" | "padded";
|
|
57
57
|
experimental_target?: _get_bb_plugin_sdk.ExperimentalFixedTabTargetContract<_get_bb_plugin_sdk.JsonValue>;
|
|
58
58
|
};
|
|
59
|
+
interface CollectedThreadContextCardSectionRegistration extends ExperimentalThreadContextCardSectionRegistration {
|
|
60
|
+
legacyTitle: string | null;
|
|
61
|
+
}
|
|
59
62
|
type CollectedPluginProviderIconRegistration = Omit<PluginProviderIconRegistration, "providerKind"> & {
|
|
60
63
|
providerKind: PluginProviderIconRegistration["providerKind"] | "all";
|
|
61
64
|
};
|
|
@@ -247,7 +250,7 @@ interface CapturedPluginApp {
|
|
|
247
250
|
threadHeaderRows: ExperimentalThreadHeaderRowRegistration[];
|
|
248
251
|
threadHeaderTitles: ExperimentalThreadHeaderTitleRegistration[];
|
|
249
252
|
threadContextCardRows: ExperimentalThreadContextCardRowRegistration[];
|
|
250
|
-
threadContextCardSections:
|
|
253
|
+
threadContextCardSections: CollectedThreadContextCardSectionRegistration[];
|
|
251
254
|
threadActions: PluginThreadActionRegistration<unknown>[];
|
|
252
255
|
browserToolbarActions: ExperimentalPluginBrowserToolbarActionRegistration[];
|
|
253
256
|
fileOpeners: PluginFileOpenerRegistration[];
|
|
@@ -331,10 +334,11 @@ interface RenderSlotOptions<Contract extends PluginRpcContract = PluginRpcContra
|
|
|
331
334
|
experimental_rpcContract?: NoInfer<Contract>;
|
|
332
335
|
/** `useSettings()` values; omitted → `{ values: undefined, isLoading: false }`. */
|
|
333
336
|
settings?: Record<string, string | number | boolean>;
|
|
334
|
-
/** `useBbContext()` selection;
|
|
337
|
+
/** `useBbContext()` selection; each defaults to null. */
|
|
335
338
|
context?: {
|
|
336
339
|
projectId?: string | null;
|
|
337
340
|
threadId?: string | null;
|
|
341
|
+
experimental_pluginPanel?: ExperimentalPluginPanelPage | null;
|
|
338
342
|
};
|
|
339
343
|
/** `experimental_usePluginId()` value; defaults to `test-plugin`. */
|
|
340
344
|
pluginId?: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Confused by the API, or need a symbol that isn't here? Clone the BB repo
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
|
-
import { StandardSchemaV1 as StandardSchemaV1$1, StandardSchemaV1InferOutput as StandardSchemaV1InferOutput$1, PluginMachineValidateDecision, JsonValue as JsonValue$2, PluginEnvironmentProviderRequirements as PluginEnvironmentProviderRequirements$1, PluginEnvironmentValidateDecision, BbPluginApi, PluginSettingValue as PluginSettingValue$1, PluginSharedPortTunnelIdentity, PluginRowPresentation, PluginAgentToolContext, PluginAgentToolResult, PluginCliCommandInfo, PluginCliContext, PluginCliResult, PluginHttpAuthMode, PluginHttpHandler, PluginMentionTrigger, PluginMentionSearchContext, PluginMentionItem, PluginMentionProviderRegistration, ExperimentalPluginRpcCaller, PluginCliExecutionResult, PluginThreadEventName, PluginThreadEventPayloads, PluginAgentConfigurationContext, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginProviderEnvHealth, PluginSettingDescriptors, ExperimentalPluginWebSocketHandler, PluginAgentConfiguration, PluginHookName, PluginHookHandler, PluginAiServiceDeclaration,
|
|
8
|
+
import { StandardSchemaV1 as StandardSchemaV1$1, StandardSchemaV1InferOutput as StandardSchemaV1InferOutput$1, PluginMachineValidateDecision, JsonValue as JsonValue$2, PluginEnvironmentProviderRequirements as PluginEnvironmentProviderRequirements$1, PluginEnvironmentValidateDecision, BbPluginApi, PluginSettingValue as PluginSettingValue$1, PluginSharedPortTunnelIdentity, PluginRowPresentation, PluginAgentToolContext, PluginAgentToolResult, PluginCliCommandInfo, PluginCliContext, PluginCliResult, PluginHttpAuthMode, PluginHttpHandler, PluginMentionTrigger, PluginMentionSearchContext, PluginMentionItem, PluginMentionProviderRegistration, ExperimentalPluginRpcCaller, PluginCliExecutionResult, PluginThreadEventName, PluginThreadEventPayloads, PluginAgentConfigurationContext, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginProviderEnvHealth, PluginSettingDescriptors, ExperimentalPluginWebSocketHandler, PluginAgentConfiguration, PluginHookName, PluginHookHandler, PluginAiServiceDeclaration, PluginInteractionRequest, ExperimentalPanelController, MessageDispatchHookContext } from '@get-bb/plugin-sdk';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { ChildProcess } from 'node:child_process';
|
|
11
11
|
|
|
@@ -181,6 +181,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
181
181
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
182
182
|
attempt: z.ZodNumber;
|
|
183
183
|
message: z.ZodOptional<z.ZodString>;
|
|
184
|
+
needsRecovery: z.ZodBoolean;
|
|
184
185
|
status: z.ZodEnum<{
|
|
185
186
|
failed: "failed";
|
|
186
187
|
removed: "removed";
|
|
@@ -229,6 +230,8 @@ declare const hostSchema: z.ZodObject<{
|
|
|
229
230
|
suspendedAt: z.ZodNullable<z.ZodNumber>;
|
|
230
231
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
231
232
|
attempt: z.ZodNumber;
|
|
233
|
+
blockedByEnvironmentId: z.ZodNullable<z.ZodString>;
|
|
234
|
+
needsRecovery: z.ZodBoolean;
|
|
232
235
|
status: z.ZodEnum<{
|
|
233
236
|
failed: "failed";
|
|
234
237
|
removed: "removed";
|
|
@@ -1105,6 +1108,7 @@ interface FakeSdkHarness {
|
|
|
1105
1108
|
declare function createFakeSdk(options: {
|
|
1106
1109
|
pluginId: string;
|
|
1107
1110
|
overrides?: FakeSdkOverrides;
|
|
1111
|
+
trackThreadCreation?: <T>(call: () => Promise<T>) => Promise<T>;
|
|
1108
1112
|
}): {
|
|
1109
1113
|
sdk: BbSdk;
|
|
1110
1114
|
harness: FakeSdkHarness;
|
|
@@ -1260,13 +1264,6 @@ interface FakePluginRegistrations {
|
|
|
1260
1264
|
* (normalized declarations, registration order; dispose removes). */
|
|
1261
1265
|
aiServiceRegistrations: PluginAiServiceDeclaration[];
|
|
1262
1266
|
}
|
|
1263
|
-
/** One handle opened through `bb.server.internal_DO_NOT_USE_openTunnelIngress`. */
|
|
1264
|
-
interface InternalDoNotUseFakeTunnelIngress {
|
|
1265
|
-
readonly audience: string;
|
|
1266
|
-
readonly baseUrl: string;
|
|
1267
|
-
/** True once the plugin closed the handle or the host disposed it. */
|
|
1268
|
-
readonly closed: boolean;
|
|
1269
|
-
}
|
|
1270
1267
|
/** Read-only state for assertions after a plugin registers or handles work. */
|
|
1271
1268
|
interface FakePluginInspectionState {
|
|
1272
1269
|
readonly pluginId: string;
|
|
@@ -1295,19 +1292,10 @@ interface FakePluginInspectionState {
|
|
|
1295
1292
|
/** Recorded `bb.sdk` calls + stub control. */
|
|
1296
1293
|
readonly sdk: FakeSdkHarness;
|
|
1297
1294
|
readonly registrations: FakePluginRegistrations;
|
|
1298
|
-
/** Every `bb.server.internal_DO_NOT_USE_openTunnelIngress` handle, in order. */
|
|
1299
|
-
readonly internal_DO_NOT_USE_tunnelIngresses: readonly InternalDoNotUseFakeTunnelIngress[];
|
|
1300
1295
|
readonly sharedPortDeclarations: Array<{
|
|
1301
1296
|
hostId: string;
|
|
1302
1297
|
ports: number[];
|
|
1303
1298
|
}>;
|
|
1304
|
-
/** The last `bb.hosts.internal_DO_NOT_USE_setNextTunnels` config, or null. */
|
|
1305
|
-
readonly internal_DO_NOT_USE_nextTunnelConfig: InternalDoNotUsePluginNextTunnelConfig | null;
|
|
1306
|
-
/**
|
|
1307
|
-
* Replace what `bb.hosts.internal_DO_NOT_USE_nextTunnelStatuses` returns and call
|
|
1308
|
-
* every `internal_DO_NOT_USE_onNextTunnelStatusChange` listener.
|
|
1309
|
-
*/
|
|
1310
|
-
internal_DO_NOT_USE_setNextTunnelStatuses(statuses: readonly InternalDoNotUsePluginHostNextTunnelStatus[]): void;
|
|
1311
1299
|
/** Calls made through bb.hosts.experimental_client, after input validation. */
|
|
1312
1300
|
readonly experimental_hostRpcCalls: readonly ExperimentalFakeHostRpcCall[];
|
|
1313
1301
|
readonly pendingInteractions: readonly (PluginInteractionRequest & {
|
|
@@ -1385,7 +1373,14 @@ interface FakePluginBehaviorDrivers {
|
|
|
1385
1373
|
/**
|
|
1386
1374
|
* Deliver a thread lifecycle event to every `bb.events.on` handler. Handlers run
|
|
1387
1375
|
* sequentially; errors are caught and logged like the host's
|
|
1388
|
-
* fire-and-forget dispatch, and returned for assertions.
|
|
1376
|
+
* fire-and-forget dispatch, and returned for assertions. As on the server,
|
|
1377
|
+
* an event for a thread whose `createdAt` is at or after the start of a
|
|
1378
|
+
* pending `bb.sdk.threads.spawn` or `bb.sdk.threads.fork` waits until that
|
|
1379
|
+
* call has returned to the plugin, and the promise resolves once the
|
|
1380
|
+
* handlers have run. `thread.idle`, `thread.failed`, `thread.archived` and
|
|
1381
|
+
* `thread.deleted` are followed by their `experimental_thread.settled`
|
|
1382
|
+
* event as on the server; `message.cancelled` is not, because the fake has
|
|
1383
|
+
* no thread to attach, so emit the `cancelled` outcome directly.
|
|
1389
1384
|
*/
|
|
1390
1385
|
emitThreadEvent<E extends PluginThreadEventName>(event: E, payload: PluginThreadEventPayloads[E]): Promise<{
|
|
1391
1386
|
errors: unknown[];
|
|
@@ -1693,4 +1688,4 @@ type ExperimentalDescendantPipe = DescendantPipe;
|
|
|
1693
1688
|
declare function experimental_createDescendantPipe(): Promise<ExperimentalDescendantPipe>;
|
|
1694
1689
|
|
|
1695
1690
|
export { PluginContextStaleError, createFakePluginHost, createFakeSdk, experimental_createDescendantPipe, experimental_createProcessLifeline, makePanelController as experimental_makePanelController, scanPublicSdkOnly as experimental_scanPublicSdkOnly, experimental_trackChildProcesses, makeHostResponse, makeMessageDispatchHookContext, makePluginAgentConfigurationContext, makeQueueEntry, makeThreadResponse, makeTurnFailedEvent };
|
|
1696
|
-
export type { CreateFakePluginHostOptions, ExperimentalChildProcessTracker, ExperimentalDescendantPipe, ExperimentalFakeHostRpcCall, ExperimentalLifelineHolder, ExperimentalProcessLifeline, FakeAgentToolRecord, FakeCliRecord, FakeHttpRouteRecord, FakeLogEntry, FakeLogLevel, FakeMentionProviderRecord, FakePluginBehaviorDrivers, FakePluginHarness, FakePluginHost, FakePluginInspectionState, FakePluginLifecycleControls, FakePluginRegistrations, FakeRealtimeSignal, FakeScheduleRecord, FakeSdkCall, FakeSdkHarness, FakeSdkOverrides, FakeServiceRecord,
|
|
1691
|
+
export type { CreateFakePluginHostOptions, ExperimentalChildProcessTracker, ExperimentalDescendantPipe, ExperimentalFakeHostRpcCall, ExperimentalLifelineHolder, ExperimentalProcessLifeline, FakeAgentToolRecord, FakeCliRecord, FakeHttpRouteRecord, FakeLogEntry, FakeLogLevel, FakeMentionProviderRecord, FakePluginBehaviorDrivers, FakePluginHarness, FakePluginHost, FakePluginInspectionState, FakePluginLifecycleControls, FakePluginRegistrations, FakeRealtimeSignal, FakeScheduleRecord, FakeSdkCall, FakeSdkHarness, FakeSdkOverrides, FakeServiceRecord, PublicSdkOnlyScan, PublicSdkOnlyScanOptions, PublicSdkOnlyViolation };
|