@get-bb/plugin-sdk 0.6.59 → 0.6.65
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 +342 -84
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-host.d.ts +196 -214
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +19 -8
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +192 -0
- package/bundled-types/bb-plugin-sdk-internal-rpc-tags.d.ts +23 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +7 -2
- package/bundled-types/bb-plugin-sdk-testing.d.ts +14 -5
- package/bundled-types/bb-plugin-sdk.d.ts +395 -111
- package/dist/app.js +98 -0
- package/dist/host.js +12 -0
- package/dist/index.js +81 -0
- package/dist/internal/host-policy.js +33 -1
- package/dist/internal/plugin-app-collector.js +18 -2
- package/dist/internal/rpc-query-host.js +922 -0
- package/dist/internal/rpc-tags.js +18 -0
- package/dist/provider-bridge-acp-next.js +214 -75
- package/dist/provider-bridge-acp.js +214 -75
- package/dist/provider-bridge.js +21 -20
- package/dist/replay-provider-child.mjs +6 -2
- package/dist/testing/app.js +1130 -102
- package/dist/testing/index.js +247 -104
- package/package.json +18 -4
|
@@ -50,6 +50,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
50
50
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
51
51
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
52
52
|
earlyAdopter: z$1.ZodBoolean;
|
|
53
|
+
idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>;
|
|
53
54
|
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
54
55
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
55
56
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -76,6 +77,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
76
77
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
77
78
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
78
79
|
earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
80
|
+
idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
|
|
79
81
|
keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
80
82
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
81
83
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -101,6 +103,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
101
103
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
102
104
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
103
105
|
earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
106
|
+
idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
|
|
104
107
|
keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
105
108
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
106
109
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -383,6 +386,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
383
386
|
type: z$1.ZodLiteral<"changed">;
|
|
384
387
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
385
388
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
389
|
+
"diff-viewed-changed": "diff-viewed-changed";
|
|
386
390
|
"environment-created": "environment-created";
|
|
387
391
|
"environment-deleted": "environment-deleted";
|
|
388
392
|
"git-refs-changed": "git-refs-changed";
|
|
@@ -413,10 +417,18 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
413
417
|
"plugins-changed": "plugins-changed";
|
|
414
418
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
415
419
|
"server-move-changed": "server-move-changed";
|
|
416
|
-
"ui-preferences-changed": "ui-preferences-changed";
|
|
417
420
|
}>>>;
|
|
418
421
|
entity: z$1.ZodLiteral<"system">;
|
|
419
422
|
type: z$1.ZodLiteral<"changed">;
|
|
423
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
424
|
+
entity: z$1.ZodLiteral<"tags">;
|
|
425
|
+
tags: z$1.ZodArray<z$1.ZodString>;
|
|
426
|
+
type: z$1.ZodLiteral<"changed">;
|
|
427
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
428
|
+
entity: z$1.ZodLiteral<"plugin">;
|
|
429
|
+
pluginId: z$1.ZodString;
|
|
430
|
+
tags: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
431
|
+
type: z$1.ZodLiteral<"changed">;
|
|
420
432
|
}, z$1.core.$strict>], "entity">;
|
|
421
433
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
422
434
|
|
|
@@ -4485,6 +4497,165 @@ interface EnvironmentRemoval {
|
|
|
4485
4497
|
providerOwnedPath: boolean;
|
|
4486
4498
|
}
|
|
4487
4499
|
|
|
4500
|
+
interface ContractTagDeclarations<Input, Output> {
|
|
4501
|
+
tags?(input: Input, output: Output): readonly string[];
|
|
4502
|
+
keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
|
|
4503
|
+
invalidates?(input: Input, output: Output): readonly string[];
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
4507
|
+
type PluginRpcIssuePathSegment = string | number;
|
|
4508
|
+
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
4509
|
+
interface PluginRpcValidationIssue {
|
|
4510
|
+
message: string;
|
|
4511
|
+
path?: PluginRpcIssuePathSegment[];
|
|
4512
|
+
}
|
|
4513
|
+
declare const rpcErrorCodes: readonly ["forbidden", "not_found", "conflict", "invalid", "invalid_json", "invalid_input", "handler_error", "invalid_output", "non_json_result", "unknown_method", "transport_error", "invalid_response", "unknown_error"];
|
|
4514
|
+
/** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
|
|
4515
|
+
type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
|
|
4516
|
+
/** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
|
|
4517
|
+
declare class experimental_PluginRpcCallError extends Error {
|
|
4518
|
+
/** Recognizes errors across the packed SDK's separately bundled entries. */
|
|
4519
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
4520
|
+
readonly code: PluginRpcErrorCode;
|
|
4521
|
+
readonly issues?: PluginRpcValidationIssue[];
|
|
4522
|
+
readonly status?: number;
|
|
4523
|
+
readonly serverCode?: string;
|
|
4524
|
+
constructor(args: PluginRpcError & {
|
|
4525
|
+
status?: number;
|
|
4526
|
+
serverCode?: string;
|
|
4527
|
+
});
|
|
4528
|
+
/** Normalize failures at the RPC boundary; preserves an existing client error. */
|
|
4529
|
+
static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
|
|
4530
|
+
}
|
|
4531
|
+
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
4532
|
+
interface PluginRpcError {
|
|
4533
|
+
code: PluginRpcErrorCode;
|
|
4534
|
+
message: string;
|
|
4535
|
+
issues?: PluginRpcValidationIssue[];
|
|
4536
|
+
}
|
|
4537
|
+
declare const refusalBrand: unique symbol;
|
|
4538
|
+
/** Expected handler refusal; reaches callers without recording a plugin crash. */
|
|
4539
|
+
declare class experimental_PluginRpcRefusal extends Error {
|
|
4540
|
+
readonly [refusalBrand] = true;
|
|
4541
|
+
readonly code: "conflict" | "forbidden" | "invalid" | "not_found";
|
|
4542
|
+
readonly issues?: PluginRpcValidationIssue[];
|
|
4543
|
+
constructor(args: {
|
|
4544
|
+
code: experimental_PluginRpcRefusal["code"];
|
|
4545
|
+
message: string;
|
|
4546
|
+
issues?: PluginRpcValidationIssue[];
|
|
4547
|
+
});
|
|
4548
|
+
}
|
|
4549
|
+
/**
|
|
4550
|
+
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
4551
|
+
* Zod 4 schemas implement this interface directly; other validators can do
|
|
4552
|
+
* the same without becoming part of BB's public protocol.
|
|
4553
|
+
*/
|
|
4554
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
4555
|
+
readonly "~standard": {
|
|
4556
|
+
readonly version: 1;
|
|
4557
|
+
readonly vendor: string;
|
|
4558
|
+
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
4559
|
+
readonly jsonSchema?: {
|
|
4560
|
+
readonly input: (options: {
|
|
4561
|
+
target: string;
|
|
4562
|
+
}) => Record<string, unknown>;
|
|
4563
|
+
readonly output: (options: {
|
|
4564
|
+
target: string;
|
|
4565
|
+
}) => Record<string, unknown>;
|
|
4566
|
+
};
|
|
4567
|
+
readonly types?: {
|
|
4568
|
+
readonly input: Input;
|
|
4569
|
+
readonly output: Output;
|
|
4570
|
+
};
|
|
4571
|
+
};
|
|
4572
|
+
}
|
|
4573
|
+
type StandardSchemaV1Result<Output> = {
|
|
4574
|
+
readonly value: Output;
|
|
4575
|
+
readonly issues?: undefined;
|
|
4576
|
+
} | {
|
|
4577
|
+
readonly issues: readonly StandardSchemaV1Issue[];
|
|
4578
|
+
};
|
|
4579
|
+
interface StandardSchemaV1Issue {
|
|
4580
|
+
readonly message: string;
|
|
4581
|
+
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
4582
|
+
readonly key: PropertyKey;
|
|
4583
|
+
})[];
|
|
4584
|
+
}
|
|
4585
|
+
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
4586
|
+
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
4587
|
+
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
|
|
4588
|
+
readonly experimental_description?: string;
|
|
4589
|
+
readonly input: InputSchema;
|
|
4590
|
+
readonly output: OutputSchema;
|
|
4591
|
+
}
|
|
4592
|
+
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
4593
|
+
/** Methods callable with only keys and returning one value per string key. */
|
|
4594
|
+
type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
|
|
4595
|
+
[Method in keyof Contract & string]: {
|
|
4596
|
+
keys: string[];
|
|
4597
|
+
} extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
|
|
4598
|
+
keys: string[];
|
|
4599
|
+
} ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
|
|
4600
|
+
}[keyof Contract & string];
|
|
4601
|
+
/** One keyed method's inferred row value. */
|
|
4602
|
+
type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
|
|
4603
|
+
type KeyedContractShape<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
4604
|
+
readonly [Method in keyof Inputs]: StandardSchemaV1InferOutput<Inputs[Method]> extends {
|
|
4605
|
+
keys: string[];
|
|
4606
|
+
} ? string extends keyof StandardSchemaV1InferOutput<Outputs[Method & keyof Outputs]> ? unknown : {
|
|
4607
|
+
keyTags?: never;
|
|
4608
|
+
} : {
|
|
4609
|
+
keyTags?: never;
|
|
4610
|
+
};
|
|
4611
|
+
};
|
|
4612
|
+
type PluginRpcContractDefinition<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
4613
|
+
readonly [Method in keyof Outputs]: {
|
|
4614
|
+
readonly output: Outputs[Method];
|
|
4615
|
+
};
|
|
4616
|
+
} & {
|
|
4617
|
+
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
4618
|
+
} & NoInfer<KeyedContractShape<Inputs, Outputs>>;
|
|
4619
|
+
/**
|
|
4620
|
+
* Define a shared RPC contract while preserving exact method/schema types.
|
|
4621
|
+
* `tags`, `keyTags` and `invalidates` receive each method's parsed input and
|
|
4622
|
+
* output types. A method declaring keyTags must accept parsed keys: string[]
|
|
4623
|
+
* and return a string-indexed record.
|
|
4624
|
+
*/
|
|
4625
|
+
declare function defineRpcContract<const Inputs extends Record<string, StandardSchemaV1>, const Outputs extends Record<string, StandardSchemaV1>>(contract: PluginRpcContractDefinition<Inputs, Outputs>): {
|
|
4626
|
+
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
4627
|
+
} & KeyedContractShape<Inputs, Outputs>;
|
|
4628
|
+
/**
|
|
4629
|
+
* Who invoked an rpc method. `plugin` means another loaded plugin (or this
|
|
4630
|
+
* one) called through its own `bb.sdk.plugins.callRpc`; the host verifies
|
|
4631
|
+
* that with a per-load token only the server knows. Every other caller — the
|
|
4632
|
+
* app, the `bb` CLI, agents, and bb itself — is `client`.
|
|
4633
|
+
*/
|
|
4634
|
+
type ExperimentalPluginRpcCaller = {
|
|
4635
|
+
readonly kind: "plugin";
|
|
4636
|
+
readonly pluginId: string;
|
|
4637
|
+
} | {
|
|
4638
|
+
readonly kind: "client";
|
|
4639
|
+
};
|
|
4640
|
+
/** Second argument of every rpc handler. */
|
|
4641
|
+
interface ExperimentalPluginRpcHandlerContext {
|
|
4642
|
+
readonly experimental_caller: ExperimentalPluginRpcCaller;
|
|
4643
|
+
}
|
|
4644
|
+
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
4645
|
+
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
4646
|
+
};
|
|
4647
|
+
/**
|
|
4648
|
+
* Handlers as `bb.rpc.register` calls them: the validated input, then the
|
|
4649
|
+
* call's context. A `PluginRpcHandlers` map is assignable to this type, so
|
|
4650
|
+
* handlers that ignore the context keep their one-argument signature.
|
|
4651
|
+
*/
|
|
4652
|
+
type ExperimentalPluginRpcHandlersWithContext<Contract extends PluginRpcContract> = {
|
|
4653
|
+
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>, context: ExperimentalPluginRpcHandlerContext) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
4654
|
+
};
|
|
4655
|
+
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
4656
|
+
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
4657
|
+
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
4658
|
+
|
|
4488
4659
|
declare const threadContextResponseSchema: z$1.ZodObject<{
|
|
4489
4660
|
usage: z$1.ZodNullable<z$1.ZodObject<{
|
|
4490
4661
|
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
@@ -5854,6 +6025,7 @@ declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5854
6025
|
}>;
|
|
5855
6026
|
path: z$1.ZodString;
|
|
5856
6027
|
previousPath: z$1.ZodNullable<z$1.ZodString>;
|
|
6028
|
+
revision: z$1.ZodString;
|
|
5857
6029
|
}, z$1.core.$strip>>;
|
|
5858
6030
|
initialPatches: z$1.ZodArray<z$1.ZodObject<{
|
|
5859
6031
|
patch: z$1.ZodString;
|
|
@@ -5916,6 +6088,7 @@ declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5916
6088
|
}, z$1.core.$strict>], "outcome">;
|
|
5917
6089
|
type EnvironmentDiffPatchResponse = z$1.infer<typeof environmentDiffPatchResponseSchema>;
|
|
5918
6090
|
declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
|
|
6091
|
+
ignoreWhitespace: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
5919
6092
|
paths: z$1.ZodArray<z$1.ZodString>;
|
|
5920
6093
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5921
6094
|
type: z$1.ZodLiteral<"uncommitted">;
|
|
@@ -5931,6 +6104,46 @@ declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
|
|
|
5931
6104
|
}, z$1.core.$strip>], "type">;
|
|
5932
6105
|
}, z$1.core.$strict>;
|
|
5933
6106
|
type EnvironmentDiffPatchRequest = z$1.infer<typeof environmentDiffPatchRequestSchema>;
|
|
6107
|
+
declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
|
|
6108
|
+
files: z$1.ZodArray<z$1.ZodObject<{
|
|
6109
|
+
path: z$1.ZodString;
|
|
6110
|
+
revision: z$1.ZodString;
|
|
6111
|
+
}, z$1.core.$strict>>;
|
|
6112
|
+
}, z$1.core.$strict>;
|
|
6113
|
+
type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
|
|
6114
|
+
declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
|
|
6115
|
+
path: z$1.ZodString;
|
|
6116
|
+
revision: z$1.ZodString;
|
|
6117
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6118
|
+
type: z$1.ZodLiteral<"uncommitted">;
|
|
6119
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6120
|
+
mergeBaseBranch: z$1.ZodString;
|
|
6121
|
+
type: z$1.ZodLiteral<"branch_committed">;
|
|
6122
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6123
|
+
mergeBaseBranch: z$1.ZodString;
|
|
6124
|
+
type: z$1.ZodLiteral<"all">;
|
|
6125
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6126
|
+
sha: z$1.ZodString;
|
|
6127
|
+
type: z$1.ZodLiteral<"commit">;
|
|
6128
|
+
}, z$1.core.$strip>], "type">;
|
|
6129
|
+
}, z$1.core.$strict>;
|
|
6130
|
+
type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
|
|
6131
|
+
declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
|
|
6132
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
6133
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6134
|
+
type: z$1.ZodLiteral<"uncommitted">;
|
|
6135
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6136
|
+
mergeBaseBranch: z$1.ZodString;
|
|
6137
|
+
type: z$1.ZodLiteral<"branch_committed">;
|
|
6138
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6139
|
+
mergeBaseBranch: z$1.ZodString;
|
|
6140
|
+
type: z$1.ZodLiteral<"all">;
|
|
6141
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6142
|
+
sha: z$1.ZodString;
|
|
6143
|
+
type: z$1.ZodLiteral<"commit">;
|
|
6144
|
+
}, z$1.core.$strip>], "type">;
|
|
6145
|
+
}, z$1.core.$strict>;
|
|
6146
|
+
type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
|
|
5934
6147
|
type EnvironmentStatusResponse = z$1.infer<typeof environmentStatusResponseSchema>;
|
|
5935
6148
|
|
|
5936
6149
|
declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -8695,6 +8908,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8695
8908
|
}, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
|
|
8696
8909
|
"workspace.diffFiles": HostDaemonCommandDescriptor<"workspace.diffFiles", z$1.ZodObject<{
|
|
8697
8910
|
environmentId: z$1.ZodString;
|
|
8911
|
+
ignoreWhitespace: z$1.ZodBoolean;
|
|
8698
8912
|
maxFiles: z$1.ZodNumber;
|
|
8699
8913
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8700
8914
|
type: z$1.ZodLiteral<"uncommitted">;
|
|
@@ -8723,6 +8937,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8723
8937
|
}>;
|
|
8724
8938
|
path: z$1.ZodString;
|
|
8725
8939
|
previousPath: z$1.ZodNullable<z$1.ZodString>;
|
|
8940
|
+
revision: z$1.ZodString;
|
|
8726
8941
|
statusLetter: z$1.ZodEnum<{
|
|
8727
8942
|
A: "A";
|
|
8728
8943
|
C: "C";
|
|
@@ -8753,6 +8968,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8753
8968
|
}, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
|
|
8754
8969
|
"workspace.diffPatch": HostDaemonCommandDescriptor<"workspace.diffPatch", z$1.ZodObject<{
|
|
8755
8970
|
environmentId: z$1.ZodString;
|
|
8971
|
+
ignoreWhitespace: z$1.ZodBoolean;
|
|
8756
8972
|
maxBytesPerFile: z$1.ZodNumber;
|
|
8757
8973
|
paths: z$1.ZodArray<z$1.ZodString>;
|
|
8758
8974
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -10922,6 +11138,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10922
11138
|
timelinePush: "timelinePush";
|
|
10923
11139
|
}>, z$1.ZodBoolean>;
|
|
10924
11140
|
featureFlags: z$1.ZodObject<{
|
|
11141
|
+
initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
10925
11142
|
placeholder: z$1.ZodBoolean;
|
|
10926
11143
|
timelineWindowEventBudget: z$1.ZodNumber;
|
|
10927
11144
|
}, z$1.core.$strip>;
|
|
@@ -10931,6 +11148,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10931
11148
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10932
11149
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10933
11150
|
earlyAdopter: z$1.ZodBoolean;
|
|
11151
|
+
idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 60 | 10 | 30>;
|
|
10934
11152
|
keepHistoryAfterContextClear: z$1.ZodBoolean;
|
|
10935
11153
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
10936
11154
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -11648,6 +11866,7 @@ declare const terminalListResponseSchema: z$1.ZodObject<{
|
|
|
11648
11866
|
type TerminalListResponse = z$1.infer<typeof terminalListResponseSchema>;
|
|
11649
11867
|
declare const createTerminalRequestSchema: z$1.ZodObject<{
|
|
11650
11868
|
cols: z$1.ZodNumber;
|
|
11869
|
+
id: z$1.ZodOptional<z$1.ZodString>;
|
|
11651
11870
|
rows: z$1.ZodNumber;
|
|
11652
11871
|
start: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11653
11872
|
mode: z$1.ZodLiteral<"shell">;
|
|
@@ -13107,6 +13326,7 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
13107
13326
|
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
13108
13327
|
sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13109
13328
|
sendAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13329
|
+
senderThreadId: z$1.ZodOptional<z$1.ZodString>;
|
|
13110
13330
|
serviceTier: z$1.ZodOptional<z$1.ZodString>;
|
|
13111
13331
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
13112
13332
|
sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -13491,6 +13711,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
|
|
|
13491
13711
|
steer: "steer";
|
|
13492
13712
|
}>;
|
|
13493
13713
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
13714
|
+
originPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
13494
13715
|
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
13495
13716
|
"accept-edits": "accept-edits";
|
|
13496
13717
|
auto: "auto";
|
|
@@ -13788,6 +14009,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
|
|
|
13788
14009
|
}, z$1.core.$strip>], "type">>;
|
|
13789
14010
|
model: z$1.ZodOptional<z$1.ZodString>;
|
|
13790
14011
|
operationId: z$1.ZodString;
|
|
14012
|
+
originPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
13791
14013
|
permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
13792
14014
|
"accept-edits": "accept-edits";
|
|
13793
14015
|
auto: "auto";
|
|
@@ -17044,6 +17266,9 @@ type EnvironmentDiffArgs = EnvironmentDiffQuery & {
|
|
|
17044
17266
|
environmentId: string;
|
|
17045
17267
|
signal?: AbortSignal;
|
|
17046
17268
|
};
|
|
17269
|
+
type EnvironmentDiffFilesArgs = EnvironmentDiffArgs & {
|
|
17270
|
+
ignoreWhitespace?: boolean;
|
|
17271
|
+
};
|
|
17047
17272
|
type EnvironmentDiffFileArgs = EnvironmentDiffFileQuery & {
|
|
17048
17273
|
environmentId: string;
|
|
17049
17274
|
signal?: AbortSignal;
|
|
@@ -17063,6 +17288,12 @@ type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
|
|
|
17063
17288
|
environmentId: string;
|
|
17064
17289
|
signal?: AbortSignal;
|
|
17065
17290
|
};
|
|
17291
|
+
type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
|
|
17292
|
+
environmentId: string;
|
|
17293
|
+
};
|
|
17294
|
+
type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
|
|
17295
|
+
environmentId: string;
|
|
17296
|
+
};
|
|
17066
17297
|
interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
|
|
17067
17298
|
environmentId: string;
|
|
17068
17299
|
signal?: AbortSignal;
|
|
@@ -17074,6 +17305,7 @@ type EnvironmentDiffBranchesResult = EnvironmentDiffBranchesResponse;
|
|
|
17074
17305
|
type EnvironmentDiffFileResult = EnvironmentDiffFileResponse;
|
|
17075
17306
|
type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
|
|
17076
17307
|
type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
|
|
17308
|
+
type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
|
|
17077
17309
|
type EnvironmentGetResult = Environment;
|
|
17078
17310
|
type EnvironmentMarkPullRequestDraftResult = PullRequestDraftActionResponse;
|
|
17079
17311
|
type EnvironmentMarkPullRequestReadyResult = PullRequestReadyActionResponse;
|
|
@@ -17115,8 +17347,17 @@ interface EnvironmentsArea {
|
|
|
17115
17347
|
diff(args: EnvironmentDiffArgs): Promise<EnvironmentDiffResult>;
|
|
17116
17348
|
diffBranches(args: EnvironmentDiffBranchesArgs): Promise<EnvironmentDiffBranchesResult>;
|
|
17117
17349
|
diffFile(args: EnvironmentDiffFileArgs): Promise<EnvironmentDiffFileResult>;
|
|
17118
|
-
diffFiles(args:
|
|
17350
|
+
diffFiles(args: EnvironmentDiffFilesArgs): Promise<EnvironmentDiffFilesResult>;
|
|
17119
17351
|
diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
|
|
17352
|
+
experimental_diffViewed(args: EnvironmentDiffArgs & {
|
|
17353
|
+
paths?: string[];
|
|
17354
|
+
}): Promise<EnvironmentDiffViewedResult>;
|
|
17355
|
+
experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
|
|
17356
|
+
ok: true;
|
|
17357
|
+
}>;
|
|
17358
|
+
experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
|
|
17359
|
+
ok: true;
|
|
17360
|
+
}>;
|
|
17120
17361
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
17121
17362
|
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
17122
17363
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
@@ -17219,6 +17460,7 @@ interface HostGetArgs {
|
|
|
17219
17460
|
}
|
|
17220
17461
|
interface HostDeleteArgs {
|
|
17221
17462
|
hostId: string;
|
|
17463
|
+
force?: boolean;
|
|
17222
17464
|
}
|
|
17223
17465
|
interface HostUpdateArgs extends UpdateHostRequest {
|
|
17224
17466
|
hostId: string;
|
|
@@ -18071,6 +18313,7 @@ interface TerminalListArgs {
|
|
|
18071
18313
|
}
|
|
18072
18314
|
interface TerminalCreateArgs {
|
|
18073
18315
|
cols: number;
|
|
18316
|
+
id?: CreateTerminalRequest["id"];
|
|
18074
18317
|
rows: number;
|
|
18075
18318
|
scope: TerminalCreateScope;
|
|
18076
18319
|
start?: CreateTerminalRequest["start"];
|
|
@@ -18685,98 +18928,6 @@ type ReadonlyJsonValue = string | number | boolean | null | readonly ReadonlyJso
|
|
|
18685
18928
|
readonly [key: string]: ReadonlyJsonValue;
|
|
18686
18929
|
};
|
|
18687
18930
|
|
|
18688
|
-
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
18689
|
-
type PluginRpcIssuePathSegment = string | number;
|
|
18690
|
-
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
18691
|
-
interface PluginRpcValidationIssue {
|
|
18692
|
-
message: string;
|
|
18693
|
-
path?: PluginRpcIssuePathSegment[];
|
|
18694
|
-
}
|
|
18695
|
-
/** Stable wire error categories for plugin RPC. */
|
|
18696
|
-
type PluginRpcErrorCode = "handler_error" | "invalid_input" | "invalid_json" | "invalid_output" | "non_json_result" | "unknown_method";
|
|
18697
|
-
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
18698
|
-
interface PluginRpcError {
|
|
18699
|
-
code: PluginRpcErrorCode;
|
|
18700
|
-
message: string;
|
|
18701
|
-
issues?: PluginRpcValidationIssue[];
|
|
18702
|
-
}
|
|
18703
|
-
/**
|
|
18704
|
-
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
18705
|
-
* Zod 4 schemas implement this interface directly; other validators can do
|
|
18706
|
-
* the same without becoming part of BB's public protocol.
|
|
18707
|
-
*/
|
|
18708
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
18709
|
-
readonly "~standard": {
|
|
18710
|
-
readonly version: 1;
|
|
18711
|
-
readonly vendor: string;
|
|
18712
|
-
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
18713
|
-
readonly jsonSchema?: {
|
|
18714
|
-
readonly input: (options: {
|
|
18715
|
-
target: string;
|
|
18716
|
-
}) => Record<string, unknown>;
|
|
18717
|
-
readonly output: (options: {
|
|
18718
|
-
target: string;
|
|
18719
|
-
}) => Record<string, unknown>;
|
|
18720
|
-
};
|
|
18721
|
-
readonly types?: {
|
|
18722
|
-
readonly input: Input;
|
|
18723
|
-
readonly output: Output;
|
|
18724
|
-
};
|
|
18725
|
-
};
|
|
18726
|
-
}
|
|
18727
|
-
type StandardSchemaV1Result<Output> = {
|
|
18728
|
-
readonly value: Output;
|
|
18729
|
-
readonly issues?: undefined;
|
|
18730
|
-
} | {
|
|
18731
|
-
readonly issues: readonly StandardSchemaV1Issue[];
|
|
18732
|
-
};
|
|
18733
|
-
interface StandardSchemaV1Issue {
|
|
18734
|
-
readonly message: string;
|
|
18735
|
-
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
18736
|
-
readonly key: PropertyKey;
|
|
18737
|
-
})[];
|
|
18738
|
-
}
|
|
18739
|
-
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
18740
|
-
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
18741
|
-
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> {
|
|
18742
|
-
readonly experimental_description?: string;
|
|
18743
|
-
readonly input: InputSchema;
|
|
18744
|
-
readonly output: OutputSchema;
|
|
18745
|
-
}
|
|
18746
|
-
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
18747
|
-
/** Define a shared RPC contract while preserving exact method/schema types. */
|
|
18748
|
-
declare function defineRpcContract<const Contract extends PluginRpcContract>(contract: Contract): Contract;
|
|
18749
|
-
/**
|
|
18750
|
-
* Who invoked an rpc method. `plugin` means another loaded plugin (or this
|
|
18751
|
-
* one) called through its own `bb.sdk.plugins.callRpc`; the host verifies
|
|
18752
|
-
* that with a per-load token only the server knows. Every other caller — the
|
|
18753
|
-
* app, the `bb` CLI, agents, and bb itself — is `client`.
|
|
18754
|
-
*/
|
|
18755
|
-
type ExperimentalPluginRpcCaller = {
|
|
18756
|
-
readonly kind: "plugin";
|
|
18757
|
-
readonly pluginId: string;
|
|
18758
|
-
} | {
|
|
18759
|
-
readonly kind: "client";
|
|
18760
|
-
};
|
|
18761
|
-
/** Second argument of every rpc handler. */
|
|
18762
|
-
interface ExperimentalPluginRpcHandlerContext {
|
|
18763
|
-
readonly experimental_caller: ExperimentalPluginRpcCaller;
|
|
18764
|
-
}
|
|
18765
|
-
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
18766
|
-
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
18767
|
-
};
|
|
18768
|
-
/**
|
|
18769
|
-
* Handlers as `bb.rpc.register` calls them: the validated input, then the
|
|
18770
|
-
* call's context. A `PluginRpcHandlers` map is assignable to this type, so
|
|
18771
|
-
* handlers that ignore the context keep their one-argument signature.
|
|
18772
|
-
*/
|
|
18773
|
-
type ExperimentalPluginRpcHandlersWithContext<Contract extends PluginRpcContract> = {
|
|
18774
|
-
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>, context: ExperimentalPluginRpcHandlerContext) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
18775
|
-
};
|
|
18776
|
-
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
18777
|
-
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
18778
|
-
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
18779
|
-
|
|
18780
18931
|
/**
|
|
18781
18932
|
* The `@get-bb/plugin-sdk/app` contract (plugin design §5.2) — pure types with no
|
|
18782
18933
|
* side effects. The BB app imports these to keep its real implementation in
|
|
@@ -18805,6 +18956,20 @@ interface PluginSettingsSectionProps {
|
|
|
18805
18956
|
*/
|
|
18806
18957
|
interface ExperimentalAppOverlayProps {
|
|
18807
18958
|
}
|
|
18959
|
+
type ExperimentalPageTitle = ({
|
|
18960
|
+
title: string;
|
|
18961
|
+
breadcrumbs?: never;
|
|
18962
|
+
} | {
|
|
18963
|
+
title?: never;
|
|
18964
|
+
breadcrumbs: readonly ExperimentalPageBreadcrumb[];
|
|
18965
|
+
}) & {
|
|
18966
|
+
windowTitle?: string;
|
|
18967
|
+
};
|
|
18968
|
+
interface ExperimentalPageBreadcrumb {
|
|
18969
|
+
label: string;
|
|
18970
|
+
/** Absolute app route, starting with a single slash. */
|
|
18971
|
+
to?: string;
|
|
18972
|
+
}
|
|
18808
18973
|
/** Props passed to a `navPanel` component (it owns its whole route). */
|
|
18809
18974
|
interface PluginNavPanelProps {
|
|
18810
18975
|
/**
|
|
@@ -18981,9 +19146,14 @@ interface ExperimentalSidebarNavigationItem {
|
|
|
18981
19146
|
*/
|
|
18982
19147
|
badge: ExperimentalBadge | null;
|
|
18983
19148
|
}
|
|
19149
|
+
/**
|
|
19150
|
+
* Where the host opens a sidebar navigation destination: `current` in the
|
|
19151
|
+
* current view, `split` in a pane with browser-tab fallback, `tab` in a new browser tab.
|
|
19152
|
+
*/
|
|
19153
|
+
type ExperimentalSidebarNavigationTarget = "current" | "split" | "tab";
|
|
18984
19154
|
/** How the host should activate a sidebar navigation item. */
|
|
18985
19155
|
interface ExperimentalSidebarNavigationActivationOptions {
|
|
18986
|
-
|
|
19156
|
+
target: ExperimentalSidebarNavigationTarget;
|
|
18987
19157
|
}
|
|
18988
19158
|
/**
|
|
18989
19159
|
* Host behavior for sidebar navigation items (see
|
|
@@ -18992,22 +19162,28 @@ interface ExperimentalSidebarNavigationActivationOptions {
|
|
|
18992
19162
|
*/
|
|
18993
19163
|
interface ExperimentalSidebarNavigationActions {
|
|
18994
19164
|
/**
|
|
18995
|
-
* Run the item's host behavior
|
|
18996
|
-
* drawer; Plugins and Skills swap the list beside the
|
|
18997
|
-
* `
|
|
18998
|
-
*
|
|
18999
|
-
*
|
|
19000
|
-
*
|
|
19001
|
-
*
|
|
19002
|
-
*
|
|
19165
|
+
* Run the item's host behavior at `target`. Plugin panels close the
|
|
19166
|
+
* mobile sidebar drawer; Plugins and Skills swap the list beside the
|
|
19167
|
+
* navigation. `split` opens a pane, or focuses the destination's existing
|
|
19168
|
+
* pane. At the pane limit it replaces the focused pane. If the destination
|
|
19169
|
+
* cannot be a pane, splitting is disabled, the viewport is compact, or no
|
|
19170
|
+
* split layout exists, it opens a browser tab instead. Callers do not need
|
|
19171
|
+
* to check availability. Search remains a
|
|
19172
|
+
* command at every target. Disabled or loading items do nothing. `split` and `tab`
|
|
19173
|
+
* must run synchronously from a user gesture; native shells handle the
|
|
19174
|
+
* new-window request using their existing policy.
|
|
19003
19175
|
*/
|
|
19004
19176
|
activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
|
|
19005
19177
|
/**
|
|
19006
19178
|
* Return to the thread list and the last thread or new thread screen the
|
|
19007
19179
|
* user had open before visiting Settings, Plugins, Skills, or a plugin
|
|
19008
|
-
* panel.
|
|
19180
|
+
* panel. Target `tab` instead opens the new thread screen in a browser
|
|
19181
|
+
* tab, with the same user-gesture requirement as `activate`. Omitting
|
|
19182
|
+
* `options` navigates in place.
|
|
19009
19183
|
*/
|
|
19010
|
-
goHome(
|
|
19184
|
+
goHome(options?: {
|
|
19185
|
+
target: Exclude<ExperimentalSidebarNavigationTarget, "split">;
|
|
19186
|
+
}): void;
|
|
19011
19187
|
/** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
|
|
19012
19188
|
setVisible(itemId: string, isVisible: boolean): void;
|
|
19013
19189
|
/**
|
|
@@ -19578,6 +19754,25 @@ interface PluginNavPanelRegistration {
|
|
|
19578
19754
|
/** URL segment under `/plugins/<pluginId>/`; letters, digits, `-`, `_`. */
|
|
19579
19755
|
path: string;
|
|
19580
19756
|
component: ComponentType<PluginNavPanelProps>;
|
|
19757
|
+
/**
|
|
19758
|
+
* Sidebar shown instead of the thread list while this panel's route is
|
|
19759
|
+
* active, in the same section sidebar as Settings, Plugins and Skills. BB
|
|
19760
|
+
* keeps the navigation rail, top chrome and resize handle; in the top-list
|
|
19761
|
+
* layout it adds a "Back to app" row and the panel title, and Back to app
|
|
19762
|
+
* (Escape) returns to the last app page. Receives the page's current
|
|
19763
|
+
* subPath. Other routes keep their usual sidebar. A crash shows a crash
|
|
19764
|
+
* notice until the subPath or plugin generation changes.
|
|
19765
|
+
* Experimental: see docs/api_to_audit.md.
|
|
19766
|
+
*/
|
|
19767
|
+
experimental_sidebar?: ComponentType<PluginNavPanelProps>;
|
|
19768
|
+
/**
|
|
19769
|
+
* React hook evaluated in each pane's plugin scope with its current subPath.
|
|
19770
|
+
* Returns text after the panel icon/name and the focused pane's window title.
|
|
19771
|
+
* Null restores the default panel title. May use SDK hooks to load data.
|
|
19772
|
+
* A crash or invalid result clears the title without crashing the page;
|
|
19773
|
+
* navigation or plugin reload retries the hook. Experimental.
|
|
19774
|
+
*/
|
|
19775
|
+
experimental_usePageTitle?: (props: PluginNavPanelProps) => ExperimentalPageTitle | null;
|
|
19581
19776
|
/**
|
|
19582
19777
|
* Ordered, non-closable tabs shown in this page's host-owned right panel.
|
|
19583
19778
|
* BB owns selection and persistence and always includes its native Browser
|
|
@@ -20574,8 +20769,8 @@ interface PluginThreadListRegistration {
|
|
|
20574
20769
|
*
|
|
20575
20770
|
* - `rail`: a fixed-width column on the sidebar's left edge that stays when
|
|
20576
20771
|
* the sidebar collapses. bb draws Settings at the bottom of the column;
|
|
20577
|
-
* draw Home with `actions.goHome()`. On macOS, wide windows
|
|
20578
|
-
* sidebar and page below a title bar.
|
|
20772
|
+
* draw Home with `actions.goHome({ target })`. On macOS, wide windows
|
|
20773
|
+
* frame the sidebar and page below a title bar.
|
|
20579
20774
|
* - `list` (the default): the area above the thread list. Settings is a
|
|
20580
20775
|
* footer action, the Settings, Plugins, and Skills lists start with a Back
|
|
20581
20776
|
* to app row, and collapsing hides the whole sidebar.
|
|
@@ -20617,7 +20812,7 @@ interface PluginFileOpenerRegistration {
|
|
|
20617
20812
|
id: string;
|
|
20618
20813
|
/** Label in the "Open with" menu (e.g. "Notes editor"). */
|
|
20619
20814
|
title: string;
|
|
20620
|
-
/** Lowercase extensions without the dot
|
|
20815
|
+
/** Lowercase alphanumeric extensions without the dot; single underscores or hyphens may separate segments. */
|
|
20621
20816
|
extensions: readonly string[];
|
|
20622
20817
|
component: ComponentType<PluginFileOpenerProps>;
|
|
20623
20818
|
}
|
|
@@ -22236,12 +22431,96 @@ interface BbNavigate {
|
|
|
22236
22431
|
terminalId: string;
|
|
22237
22432
|
}): Promise<boolean>;
|
|
22238
22433
|
}
|
|
22434
|
+
/**
|
|
22435
|
+
* BB live reads are fresh for two seconds, with no polling when freshness expires.
|
|
22436
|
+
* Focus does not refetch while BB's realtime connection is healthy. While
|
|
22437
|
+
* disconnected, focus/browser-online events recheck stale active reads; BB
|
|
22438
|
+
* reconnect invalidates all plugin reads regardless of freshness. Page hiding
|
|
22439
|
+
* cancels active attempts; resuming restarts those cancelled reads.
|
|
22440
|
+
* Invalidations refresh immediately. Network/abort failures retry twice at
|
|
22441
|
+
* 250 ms; HTTP failures, including refusals, do not retry. Writes never retry
|
|
22442
|
+
* automatically.
|
|
22443
|
+
*/
|
|
22444
|
+
interface ExperimentalRpcQueryState<T> {
|
|
22445
|
+
/** Latest successful value plus shared predictions; retained during refresh and refresh errors. Plain reads are undefined before first success; keyed reads expose loaded rows (initially an empty record) through select. */
|
|
22446
|
+
data: T | undefined;
|
|
22447
|
+
/** Last completed read failure, or null. Success clears it; retrying a first load clears the old error while loading. Refresh errors preserve data. */
|
|
22448
|
+
error: experimental_PluginRpcCallError | null;
|
|
22449
|
+
/** An enabled read is fetching data it has never loaded. For keyed reads this includes missing requested rows; empty/disabled keyed reads are not loading. */
|
|
22450
|
+
isLoading: boolean;
|
|
22451
|
+
/** A read attempt is active, including background refreshes. Keyed consumers share this activity for their method; offline-paused reads are not fetching. */
|
|
22452
|
+
isFetching: boolean;
|
|
22453
|
+
/** Force a read regardless of freshness and wait for its attempt/retries. Keyed reads refresh the method's subscribed keys. Failures update error and retain data; this promise resolves rather than rejecting. */
|
|
22454
|
+
refetch(): Promise<void>;
|
|
22455
|
+
}
|
|
22456
|
+
interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
|
|
22457
|
+
}
|
|
22458
|
+
interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
|
|
22459
|
+
contract: Contract;
|
|
22460
|
+
pluginId?: string;
|
|
22461
|
+
method: Method;
|
|
22462
|
+
input: StandardSchemaV1InferInput<Contract[Method]["input"]>;
|
|
22463
|
+
enabled?: boolean;
|
|
22464
|
+
}
|
|
22465
|
+
/**
|
|
22466
|
+
* Predict loaded reads with pure, synchronous update callbacks. Callbacks passed
|
|
22467
|
+
* to `update` and `updateKey` may run many times as pending predictions replay
|
|
22468
|
+
* over a new confirmed base or another prediction rolls back. Return a new
|
|
22469
|
+
* value without mutating `current` or captured inputs, performing side effects,
|
|
22470
|
+
* or generating IDs, timestamps, or random values. Generate any such values
|
|
22471
|
+
* once before calling `mutate` and include them in the mutation input.
|
|
22472
|
+
*/
|
|
22473
|
+
interface ExperimentalRpcOptimisticCache<Contract extends PluginRpcContract> {
|
|
22474
|
+
update<Method extends keyof Contract & string>(method: Method, input: StandardSchemaV1InferInput<Contract[Method]["input"]>, update: (current: PluginRpcResult<Contract[Method]>) => PluginRpcResult<Contract[Method]>): void;
|
|
22475
|
+
updateKey<Method extends ExperimentalRpcKeyedMethod<Contract>>(method: Method, key: string, update: (current: PluginRpcResult<Contract[Method]> extends Record<string, infer Value> ? Value : never) => PluginRpcResult<Contract[Method]> extends Record<string, infer Value> ? Value : never): void;
|
|
22476
|
+
}
|
|
22477
|
+
interface ExperimentalRpcMutationOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
|
|
22478
|
+
contract: Contract;
|
|
22479
|
+
pluginId?: string;
|
|
22480
|
+
method: Method;
|
|
22481
|
+
/** Predict loaded reads synchronously; shared predictions survive accepted writes whose refresh fails. */
|
|
22482
|
+
optimistic?(input: StandardSchemaV1InferInput<Contract[Method]["input"]>, cache: ExperimentalRpcOptimisticCache<Contract>): void;
|
|
22483
|
+
}
|
|
22484
|
+
/**
|
|
22485
|
+
* One mutation hook's state. `mutate` calls the RPC, invalidates the
|
|
22486
|
+
* response's `invalidated` tags on this client immediately, and resolves when
|
|
22487
|
+
* the server acknowledges the write. Matched reads refresh in the background. `error` holds the last failure
|
|
22488
|
+
* until the next `mutate` or `reset`.
|
|
22489
|
+
*/
|
|
22490
|
+
interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
22491
|
+
/** Resolves at write acknowledgement; rejects with experimental_PluginRpcCallError. Refreshes continue in the background without releasing predictions before confirmed reads. */
|
|
22492
|
+
mutate(...args: PluginRpcCallArgs<Method>): Promise<PluginRpcResult<Method>>;
|
|
22493
|
+
isPending: boolean;
|
|
22494
|
+
/** Inputs of every pending call made by this hook, until server acknowledgement. Refreshes are excluded; other hook instances are excluded. */
|
|
22495
|
+
pendingInputs: readonly StandardSchemaV1InferInput<Method["input"]>[];
|
|
22496
|
+
error: experimental_PluginRpcCallError | null;
|
|
22497
|
+
reset(): void;
|
|
22498
|
+
}
|
|
22239
22499
|
/**
|
|
22240
22500
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
22241
22501
|
* the real implementation and `satisfies` this interface; `bb plugin build`
|
|
22242
22502
|
* shims the specifier to that object on `globalThis.__bbPluginRuntime`.
|
|
22243
22503
|
*/
|
|
22244
22504
|
interface PluginSdkApp {
|
|
22505
|
+
experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
|
|
22506
|
+
experimental_useRpcRefresh(): {
|
|
22507
|
+
refresh(): void;
|
|
22508
|
+
isRefreshing: boolean;
|
|
22509
|
+
};
|
|
22510
|
+
/** Read tagged plugin data through BB's shared query cache and realtime lifecycle. */
|
|
22511
|
+
experimental_useRpcQuery<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>): ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
|
|
22512
|
+
/** Call a mutating RPC through BB's query client; pending until the server acknowledges the write; matched reads refresh in the background. */
|
|
22513
|
+
experimental_useRpcMutation<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>): ExperimentalRpcMutationState<Contract[Method]>;
|
|
22514
|
+
/** Cache each key independently and batch missing or invalidated keys in the same render. */
|
|
22515
|
+
experimental_useRpcKeyedQuery<Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
|
|
22516
|
+
contract: Contract;
|
|
22517
|
+
pluginId?: string;
|
|
22518
|
+
method: Method;
|
|
22519
|
+
keys: readonly string[];
|
|
22520
|
+
enabled?: boolean;
|
|
22521
|
+
/** Pure projection; the selection type is inferred from its return value. */
|
|
22522
|
+
select?(data: Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>): Selection;
|
|
22523
|
+
}): ExperimentalRpcKeyedQueryState<ExperimentalRpcKeyedValue<Contract[Method]>, Selection>;
|
|
22245
22524
|
experimental_Icon: ComponentType<ExperimentalIconProps>;
|
|
22246
22525
|
/**
|
|
22247
22526
|
* Render provider slot override, then its logo, then its glyph, then fallback.
|
|
@@ -22751,7 +23030,8 @@ type PluginEnvironmentProviderCreateResult = {
|
|
|
22751
23030
|
status: "created";
|
|
22752
23031
|
path: string;
|
|
22753
23032
|
ownsPath: boolean;
|
|
22754
|
-
|
|
23033
|
+
/** Ref the workspace's changes are compared against. Null clears the value recorded on a reused environment; omit to keep it. */
|
|
23034
|
+
mergeBaseBranch?: string | null;
|
|
22755
23035
|
resource?: JsonValue$2;
|
|
22756
23036
|
} | {
|
|
22757
23037
|
status: "failed";
|
|
@@ -23667,6 +23947,10 @@ interface PluginHttp {
|
|
|
23667
23947
|
}): void;
|
|
23668
23948
|
}
|
|
23669
23949
|
interface PluginRpc {
|
|
23950
|
+
/** Refresh reads whose contract tags overlap this nonempty list. */
|
|
23951
|
+
experimental_invalidate(tags: readonly string[]): void;
|
|
23952
|
+
/** Refresh every read of this plugin, including untagged reads. */
|
|
23953
|
+
experimental_invalidateAll(): void;
|
|
23670
23954
|
/**
|
|
23671
23955
|
* Register a Standard Schema-driven rpc contract and its inferred handlers,
|
|
23672
23956
|
* served at POST
|
|
@@ -25054,5 +25338,5 @@ declare const experimental_THREAD_ACTION_GROUPS: {
|
|
|
25054
25338
|
readonly lifecycle: "4_lifecycle";
|
|
25055
25339
|
};
|
|
25056
25340
|
|
|
25057
|
-
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
|
|
25058
|
-
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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, 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, PluginPanelActionOpenOptions, 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, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, 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 };
|
|
25341
|
+
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
|
|
25342
|
+
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, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalVoiceInputTextareaProps, 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, PluginFixedTabDeclaration, PluginFixedTabRegistration, 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, PluginPanelActionOpenOptions, 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, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, 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 };
|