@get-bb/plugin-sdk 0.6.60 → 0.6.68

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.
@@ -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
 
@@ -4306,6 +4318,17 @@ declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
4306
4318
  starting: "starting";
4307
4319
  stopping: "stopping";
4308
4320
  }>;
4321
+
4322
+ /**
4323
+ * The three additions to {@link threadStatusValues} are display-only: they
4324
+ * refine `active`/`idle` with host and workspace facts the durable status does
4325
+ * not record.
4326
+ *
4327
+ * A never-started thread needs no such refinement — `pending` is a real thread
4328
+ * status now, so it travels to the client as itself. It used to arrive as a
4329
+ * separate `held` display status, derived from an `idle` thread holding a live
4330
+ * dispatch hold; that derivation and the holds behind it are both gone.
4331
+ */
4309
4332
  type ThreadRuntimeDisplayStatus = z$1.infer<typeof threadRuntimeDisplayStatusSchema>;
4310
4333
  declare const threadQueuedMessageSchema: z$1.ZodObject<{
4311
4334
  content: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -4485,6 +4508,165 @@ interface EnvironmentRemoval {
4485
4508
  providerOwnedPath: boolean;
4486
4509
  }
4487
4510
 
4511
+ interface ContractTagDeclarations<Input, Output> {
4512
+ tags?(input: Input, output: Output): readonly string[];
4513
+ keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
4514
+ invalidates?(input: Input, output: Output): readonly string[];
4515
+ }
4516
+
4517
+ /** A JSON-safe path segment reported by a Standard Schema validation issue. */
4518
+ type PluginRpcIssuePathSegment = string | number;
4519
+ /** Validator-neutral validation detail carried by an RPC error envelope. */
4520
+ interface PluginRpcValidationIssue {
4521
+ message: string;
4522
+ path?: PluginRpcIssuePathSegment[];
4523
+ }
4524
+ 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"];
4525
+ /** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
4526
+ type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
4527
+ /** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
4528
+ declare class experimental_PluginRpcCallError extends Error {
4529
+ /** Recognizes errors across the packed SDK's separately bundled entries. */
4530
+ static [Symbol.hasInstance](value: unknown): boolean;
4531
+ readonly code: PluginRpcErrorCode;
4532
+ readonly issues?: PluginRpcValidationIssue[];
4533
+ readonly status?: number;
4534
+ readonly serverCode?: string;
4535
+ constructor(args: PluginRpcError & {
4536
+ status?: number;
4537
+ serverCode?: string;
4538
+ });
4539
+ /** Normalize failures at the RPC boundary; preserves an existing client error. */
4540
+ static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
4541
+ }
4542
+ /** Structured RPC failure returned as `{ ok: false, error }`. */
4543
+ interface PluginRpcError {
4544
+ code: PluginRpcErrorCode;
4545
+ message: string;
4546
+ issues?: PluginRpcValidationIssue[];
4547
+ }
4548
+ declare const refusalBrand: unique symbol;
4549
+ /** Expected handler refusal; reaches callers without recording a plugin crash. */
4550
+ declare class experimental_PluginRpcRefusal extends Error {
4551
+ readonly [refusalBrand] = true;
4552
+ readonly code: "conflict" | "forbidden" | "invalid" | "not_found";
4553
+ readonly issues?: PluginRpcValidationIssue[];
4554
+ constructor(args: {
4555
+ code: experimental_PluginRpcRefusal["code"];
4556
+ message: string;
4557
+ issues?: PluginRpcValidationIssue[];
4558
+ });
4559
+ }
4560
+ /**
4561
+ * The validator-neutral subset of Standard Schema v1 used by plugin contracts.
4562
+ * Zod 4 schemas implement this interface directly; other validators can do
4563
+ * the same without becoming part of BB's public protocol.
4564
+ */
4565
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
4566
+ readonly "~standard": {
4567
+ readonly version: 1;
4568
+ readonly vendor: string;
4569
+ readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
4570
+ readonly jsonSchema?: {
4571
+ readonly input: (options: {
4572
+ target: string;
4573
+ }) => Record<string, unknown>;
4574
+ readonly output: (options: {
4575
+ target: string;
4576
+ }) => Record<string, unknown>;
4577
+ };
4578
+ readonly types?: {
4579
+ readonly input: Input;
4580
+ readonly output: Output;
4581
+ };
4582
+ };
4583
+ }
4584
+ type StandardSchemaV1Result<Output> = {
4585
+ readonly value: Output;
4586
+ readonly issues?: undefined;
4587
+ } | {
4588
+ readonly issues: readonly StandardSchemaV1Issue[];
4589
+ };
4590
+ interface StandardSchemaV1Issue {
4591
+ readonly message: string;
4592
+ readonly path?: PropertyKey | readonly (PropertyKey | {
4593
+ readonly key: PropertyKey;
4594
+ })[];
4595
+ }
4596
+ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
4597
+ type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
4598
+ interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
4599
+ readonly experimental_description?: string;
4600
+ readonly input: InputSchema;
4601
+ readonly output: OutputSchema;
4602
+ }
4603
+ type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
4604
+ /** Methods callable with only keys and returning one value per string key. */
4605
+ type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
4606
+ [Method in keyof Contract & string]: {
4607
+ keys: string[];
4608
+ } extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
4609
+ keys: string[];
4610
+ } ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
4611
+ }[keyof Contract & string];
4612
+ /** One keyed method's inferred row value. */
4613
+ type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
4614
+ type KeyedContractShape<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
4615
+ readonly [Method in keyof Inputs]: StandardSchemaV1InferOutput<Inputs[Method]> extends {
4616
+ keys: string[];
4617
+ } ? string extends keyof StandardSchemaV1InferOutput<Outputs[Method & keyof Outputs]> ? unknown : {
4618
+ keyTags?: never;
4619
+ } : {
4620
+ keyTags?: never;
4621
+ };
4622
+ };
4623
+ type PluginRpcContractDefinition<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
4624
+ readonly [Method in keyof Outputs]: {
4625
+ readonly output: Outputs[Method];
4626
+ };
4627
+ } & {
4628
+ readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
4629
+ } & NoInfer<KeyedContractShape<Inputs, Outputs>>;
4630
+ /**
4631
+ * Define a shared RPC contract while preserving exact method/schema types.
4632
+ * `tags`, `keyTags` and `invalidates` receive each method's parsed input and
4633
+ * output types. A method declaring keyTags must accept parsed keys: string[]
4634
+ * and return a string-indexed record.
4635
+ */
4636
+ declare function defineRpcContract<const Inputs extends Record<string, StandardSchemaV1>, const Outputs extends Record<string, StandardSchemaV1>>(contract: PluginRpcContractDefinition<Inputs, Outputs>): {
4637
+ readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
4638
+ } & KeyedContractShape<Inputs, Outputs>;
4639
+ /**
4640
+ * Who invoked an rpc method. `plugin` means another loaded plugin (or this
4641
+ * one) called through its own `bb.sdk.plugins.callRpc`; the host verifies
4642
+ * that with a per-load token only the server knows. Every other caller — the
4643
+ * app, the `bb` CLI, agents, and bb itself — is `client`.
4644
+ */
4645
+ type ExperimentalPluginRpcCaller = {
4646
+ readonly kind: "plugin";
4647
+ readonly pluginId: string;
4648
+ } | {
4649
+ readonly kind: "client";
4650
+ };
4651
+ /** Second argument of every rpc handler. */
4652
+ interface ExperimentalPluginRpcHandlerContext {
4653
+ readonly experimental_caller: ExperimentalPluginRpcCaller;
4654
+ }
4655
+ type PluginRpcHandlers<Contract extends PluginRpcContract> = {
4656
+ [Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
4657
+ };
4658
+ /**
4659
+ * Handlers as `bb.rpc.register` calls them: the validated input, then the
4660
+ * call's context. A `PluginRpcHandlers` map is assignable to this type, so
4661
+ * handlers that ignore the context keep their one-argument signature.
4662
+ */
4663
+ type ExperimentalPluginRpcHandlersWithContext<Contract extends PluginRpcContract> = {
4664
+ [Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>, context: ExperimentalPluginRpcHandlerContext) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
4665
+ };
4666
+ type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
4667
+ type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
4668
+ type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
4669
+
4488
4670
  declare const threadContextResponseSchema: z$1.ZodObject<{
4489
4671
  usage: z$1.ZodNullable<z$1.ZodObject<{
4490
4672
  compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
@@ -5854,6 +6036,7 @@ declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
5854
6036
  }>;
5855
6037
  path: z$1.ZodString;
5856
6038
  previousPath: z$1.ZodNullable<z$1.ZodString>;
6039
+ revision: z$1.ZodString;
5857
6040
  }, z$1.core.$strip>>;
5858
6041
  initialPatches: z$1.ZodArray<z$1.ZodObject<{
5859
6042
  patch: z$1.ZodString;
@@ -5916,6 +6099,7 @@ declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
5916
6099
  }, z$1.core.$strict>], "outcome">;
5917
6100
  type EnvironmentDiffPatchResponse = z$1.infer<typeof environmentDiffPatchResponseSchema>;
5918
6101
  declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
6102
+ ignoreWhitespace: z$1.ZodOptional<z$1.ZodBoolean>;
5919
6103
  paths: z$1.ZodArray<z$1.ZodString>;
5920
6104
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5921
6105
  type: z$1.ZodLiteral<"uncommitted">;
@@ -5931,6 +6115,46 @@ declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
5931
6115
  }, z$1.core.$strip>], "type">;
5932
6116
  }, z$1.core.$strict>;
5933
6117
  type EnvironmentDiffPatchRequest = z$1.infer<typeof environmentDiffPatchRequestSchema>;
6118
+ declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
6119
+ files: z$1.ZodArray<z$1.ZodObject<{
6120
+ path: z$1.ZodString;
6121
+ revision: z$1.ZodString;
6122
+ }, z$1.core.$strict>>;
6123
+ }, z$1.core.$strict>;
6124
+ type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
6125
+ declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
6126
+ path: z$1.ZodString;
6127
+ revision: z$1.ZodString;
6128
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6129
+ type: z$1.ZodLiteral<"uncommitted">;
6130
+ }, z$1.core.$strip>, z$1.ZodObject<{
6131
+ mergeBaseBranch: z$1.ZodString;
6132
+ type: z$1.ZodLiteral<"branch_committed">;
6133
+ }, z$1.core.$strip>, z$1.ZodObject<{
6134
+ mergeBaseBranch: z$1.ZodString;
6135
+ type: z$1.ZodLiteral<"all">;
6136
+ }, z$1.core.$strip>, z$1.ZodObject<{
6137
+ sha: z$1.ZodString;
6138
+ type: z$1.ZodLiteral<"commit">;
6139
+ }, z$1.core.$strip>], "type">;
6140
+ }, z$1.core.$strict>;
6141
+ type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
6142
+ declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
6143
+ path: z$1.ZodOptional<z$1.ZodString>;
6144
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6145
+ type: z$1.ZodLiteral<"uncommitted">;
6146
+ }, z$1.core.$strip>, z$1.ZodObject<{
6147
+ mergeBaseBranch: z$1.ZodString;
6148
+ type: z$1.ZodLiteral<"branch_committed">;
6149
+ }, z$1.core.$strip>, z$1.ZodObject<{
6150
+ mergeBaseBranch: z$1.ZodString;
6151
+ type: z$1.ZodLiteral<"all">;
6152
+ }, z$1.core.$strip>, z$1.ZodObject<{
6153
+ sha: z$1.ZodString;
6154
+ type: z$1.ZodLiteral<"commit">;
6155
+ }, z$1.core.$strip>], "type">;
6156
+ }, z$1.core.$strict>;
6157
+ type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
5934
6158
  type EnvironmentStatusResponse = z$1.infer<typeof environmentStatusResponseSchema>;
5935
6159
 
5936
6160
  declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -5972,6 +6196,12 @@ interface HostDaemonCommandDescriptor<Type extends string, Schema extends z$1.Zo
5972
6196
  envLane: HostDaemonCommandEnvironmentLane | null;
5973
6197
  }
5974
6198
  declare const hostDaemonCommandRegistry: {
6199
+ "desktop.broker.prove": HostDaemonCommandDescriptor<"desktop.broker.prove", z$1.ZodObject<{
6200
+ challenge: z$1.ZodString;
6201
+ type: z$1.ZodLiteral<"desktop.broker.prove">;
6202
+ }, z$1.core.$strict>, z$1.ZodObject<{
6203
+ proof: z$1.ZodString;
6204
+ }, z$1.core.$strict>, "onlineRpc", false>;
5975
6205
  "desktop.browser.list_instances": HostDaemonCommandDescriptor<"desktop.browser.list_instances", z$1.ZodObject<{
5976
6206
  type: z$1.ZodLiteral<"desktop.browser.list_instances">;
5977
6207
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -7597,6 +7827,16 @@ declare const hostDaemonCommandRegistry: {
7597
7827
  timeoutMs: z$1.ZodNumber;
7598
7828
  type: z$1.ZodLiteral<"environment.hook.run">;
7599
7829
  }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "onlineRpc", false>;
7830
+ "environment.inspect_cleanup": HostDaemonCommandDescriptor<"environment.inspect_cleanup", z$1.ZodObject<{
7831
+ environmentId: z$1.ZodString;
7832
+ path: z$1.ZodString;
7833
+ type: z$1.ZodLiteral<"environment.inspect_cleanup">;
7834
+ }, z$1.core.$strict>, z$1.ZodObject<{
7835
+ active: z$1.ZodBoolean;
7836
+ pids: z$1.ZodArray<z$1.ZodNumber>;
7837
+ supported: z$1.ZodBoolean;
7838
+ unreadablePids: z$1.ZodArray<z$1.ZodNumber>;
7839
+ }, z$1.core.$strict>, "onlineRpc", true>;
7600
7840
  "environment.hook.cancel": HostDaemonCommandDescriptor<"environment.hook.cancel", z$1.ZodObject<{
7601
7841
  operationId: z$1.ZodString;
7602
7842
  type: z$1.ZodLiteral<"environment.hook.cancel">;
@@ -8695,6 +8935,7 @@ declare const hostDaemonCommandRegistry: {
8695
8935
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8696
8936
  "workspace.diffFiles": HostDaemonCommandDescriptor<"workspace.diffFiles", z$1.ZodObject<{
8697
8937
  environmentId: z$1.ZodString;
8938
+ ignoreWhitespace: z$1.ZodBoolean;
8698
8939
  maxFiles: z$1.ZodNumber;
8699
8940
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8700
8941
  type: z$1.ZodLiteral<"uncommitted">;
@@ -8723,6 +8964,7 @@ declare const hostDaemonCommandRegistry: {
8723
8964
  }>;
8724
8965
  path: z$1.ZodString;
8725
8966
  previousPath: z$1.ZodNullable<z$1.ZodString>;
8967
+ revision: z$1.ZodString;
8726
8968
  statusLetter: z$1.ZodEnum<{
8727
8969
  A: "A";
8728
8970
  C: "C";
@@ -8753,6 +8995,7 @@ declare const hostDaemonCommandRegistry: {
8753
8995
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8754
8996
  "workspace.diffPatch": HostDaemonCommandDescriptor<"workspace.diffPatch", z$1.ZodObject<{
8755
8997
  environmentId: z$1.ZodString;
8998
+ ignoreWhitespace: z$1.ZodBoolean;
8756
8999
  maxBytesPerFile: z$1.ZodNumber;
8757
9000
  paths: z$1.ZodArray<z$1.ZodString>;
8758
9001
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -10328,6 +10571,50 @@ declare const publishedPluginRpcMethodSchema: z$1.ZodObject<{
10328
10571
  }, z$1.core.$strip>;
10329
10572
  type PublishedPluginRpcMethod = z$1.infer<typeof publishedPluginRpcMethodSchema>;
10330
10573
 
10574
+ declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
10575
+ text: z$1.ZodString;
10576
+ }, z$1.core.$strip>;
10577
+
10578
+ declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
10579
+ acceptsEmptyInputs: z$1.ZodBoolean;
10580
+ availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10581
+ status: z$1.ZodLiteral<"available">;
10582
+ }, z$1.core.$strip>, z$1.ZodObject<{
10583
+ message: z$1.ZodString;
10584
+ status: z$1.ZodLiteral<"setup-required">;
10585
+ }, z$1.core.$strip>, z$1.ZodObject<{
10586
+ message: z$1.ZodString;
10587
+ status: z$1.ZodLiteral<"unavailable">;
10588
+ }, z$1.core.$strip>], "status">>;
10589
+ description: z$1.ZodNullable<z$1.ZodString>;
10590
+ displayName: z$1.ZodString;
10591
+ environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
10592
+ icon: z$1.ZodNullable<z$1.ZodString>;
10593
+ id: z$1.ZodString;
10594
+ inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
10595
+ logoUrl: z$1.ZodNullable<z$1.ZodString>;
10596
+ machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
10597
+ machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10598
+ status: z$1.ZodLiteral<"available">;
10599
+ }, z$1.core.$strip>, z$1.ZodObject<{
10600
+ message: z$1.ZodString;
10601
+ status: z$1.ZodLiteral<"setup-required">;
10602
+ }, z$1.core.$strip>, z$1.ZodObject<{
10603
+ message: z$1.ZodString;
10604
+ status: z$1.ZodLiteral<"unavailable">;
10605
+ }, z$1.core.$strip>], "status">>>;
10606
+ machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
10607
+ machineProviderId: z$1.ZodNullable<z$1.ZodString>;
10608
+ machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
10609
+ pluginId: z$1.ZodString;
10610
+ requires: z$1.ZodObject<{
10611
+ gitCheckout: z$1.ZodBoolean;
10612
+ gitRemote: z$1.ZodBoolean;
10613
+ projectCheckout: z$1.ZodBoolean;
10614
+ projectless: z$1.ZodBoolean;
10615
+ }, z$1.core.$strip>;
10616
+ }, z$1.core.$strip>;
10617
+
10331
10618
  declare const machineEnvironmentReplaceSchema: z$1.ZodObject<{
10332
10619
  variables: z$1.ZodArray<z$1.ZodObject<{
10333
10620
  name: z$1.ZodString;
@@ -10550,9 +10837,6 @@ declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
10550
10837
  }>>;
10551
10838
  }, z$1.core.$strip>;
10552
10839
  type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
10553
- declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
10554
- text: z$1.ZodString;
10555
- }, z$1.core.$strip>;
10556
10840
  type SystemVoiceTranscriptionResponse = z$1.infer<typeof systemVoiceTranscriptionResponseSchema>;
10557
10841
  declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
10558
10842
  providers: z$1.ZodArray<z$1.ZodObject<{
@@ -10922,6 +11206,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10922
11206
  timelinePush: "timelinePush";
10923
11207
  }>, z$1.ZodBoolean>;
10924
11208
  featureFlags: z$1.ZodObject<{
11209
+ initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
10925
11210
  placeholder: z$1.ZodBoolean;
10926
11211
  timelineWindowEventBudget: z$1.ZodNumber;
10927
11212
  }, z$1.core.$strip>;
@@ -10931,6 +11216,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10931
11216
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10932
11217
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10933
11218
  earlyAdopter: z$1.ZodBoolean;
11219
+ idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 60 | 10 | 30>;
10934
11220
  keepHistoryAfterContextClear: z$1.ZodBoolean;
10935
11221
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10936
11222
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -11410,45 +11696,6 @@ declare const systemInstallCliSkillsResponseSchema: z$1.ZodObject<{
11410
11696
  }, z$1.core.$strip>;
11411
11697
  type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
11412
11698
  type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
11413
- declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
11414
- acceptsEmptyInputs: z$1.ZodBoolean;
11415
- availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11416
- status: z$1.ZodLiteral<"available">;
11417
- }, z$1.core.$strip>, z$1.ZodObject<{
11418
- message: z$1.ZodString;
11419
- status: z$1.ZodLiteral<"setup-required">;
11420
- }, z$1.core.$strip>, z$1.ZodObject<{
11421
- message: z$1.ZodString;
11422
- status: z$1.ZodLiteral<"unavailable">;
11423
- }, z$1.core.$strip>], "status">>;
11424
- description: z$1.ZodNullable<z$1.ZodString>;
11425
- displayName: z$1.ZodString;
11426
- environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
11427
- icon: z$1.ZodNullable<z$1.ZodString>;
11428
- id: z$1.ZodString;
11429
- inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
11430
- logoUrl: z$1.ZodNullable<z$1.ZodString>;
11431
- machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
11432
- machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11433
- status: z$1.ZodLiteral<"available">;
11434
- }, z$1.core.$strip>, z$1.ZodObject<{
11435
- message: z$1.ZodString;
11436
- status: z$1.ZodLiteral<"setup-required">;
11437
- }, z$1.core.$strip>, z$1.ZodObject<{
11438
- message: z$1.ZodString;
11439
- status: z$1.ZodLiteral<"unavailable">;
11440
- }, z$1.core.$strip>], "status">>>;
11441
- machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
11442
- machineProviderId: z$1.ZodNullable<z$1.ZodString>;
11443
- machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
11444
- pluginId: z$1.ZodString;
11445
- requires: z$1.ZodObject<{
11446
- gitCheckout: z$1.ZodBoolean;
11447
- gitRemote: z$1.ZodBoolean;
11448
- projectCheckout: z$1.ZodBoolean;
11449
- projectless: z$1.ZodBoolean;
11450
- }, z$1.core.$strip>;
11451
- }, z$1.core.$strip>;
11452
11699
  type SystemEnvironmentProvider = z$1.infer<typeof systemEnvironmentProviderSchema>;
11453
11700
  declare const systemMachineProviderSchema: z$1.ZodObject<{
11454
11701
  acceptsEmptyInputs: z$1.ZodBoolean;
@@ -11648,6 +11895,7 @@ declare const terminalListResponseSchema: z$1.ZodObject<{
11648
11895
  type TerminalListResponse = z$1.infer<typeof terminalListResponseSchema>;
11649
11896
  declare const createTerminalRequestSchema: z$1.ZodObject<{
11650
11897
  cols: z$1.ZodNumber;
11898
+ id: z$1.ZodOptional<z$1.ZodString>;
11651
11899
  rows: z$1.ZodNumber;
11652
11900
  start: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11653
11901
  mode: z$1.ZodLiteral<"shell">;
@@ -12894,6 +13142,21 @@ interface TimelineTurnRow extends TimelineRowBase {
12894
13142
  type TimelineSourceRow = TimelineConversationRow | TimelineWorkRow | TimelineSystemRow;
12895
13143
  type TimelineRow = TimelineSourceRow | TimelineTurnRow;
12896
13144
 
13145
+ declare const threadOpenSplitSchema: z$1.ZodEnum<{
13146
+ down: "down";
13147
+ left: "left";
13148
+ replace: "replace";
13149
+ right: "right";
13150
+ top: "top";
13151
+ }>;
13152
+ declare const threadPaneActionSchema: z$1.ZodEnum<{
13153
+ "clear-spotlight": "clear-spotlight";
13154
+ maximize: "maximize";
13155
+ restore: "restore";
13156
+ spotlight: "spotlight";
13157
+ toggle: "toggle";
13158
+ }>;
13159
+
12897
13160
  type ExecutionInputFieldSource = CallerExecutionInputSource;
12898
13161
  declare const createExecutionInputSourcesSchema: z$1.ZodObject<{
12899
13162
  model: z$1.ZodOptional<z$1.ZodEnum<{
@@ -13107,6 +13370,7 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
13107
13370
  reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13108
13371
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
13109
13372
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
13373
+ senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13110
13374
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13111
13375
  sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
13112
13376
  sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
@@ -13491,6 +13755,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13491
13755
  steer: "steer";
13492
13756
  }>;
13493
13757
  model: z$1.ZodOptional<z$1.ZodString>;
13758
+ originPluginId: z$1.ZodOptional<z$1.ZodString>;
13494
13759
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13495
13760
  "accept-edits": "accept-edits";
13496
13761
  auto: "auto";
@@ -13788,6 +14053,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13788
14053
  }, z$1.core.$strip>], "type">>;
13789
14054
  model: z$1.ZodOptional<z$1.ZodString>;
13790
14055
  operationId: z$1.ZodString;
14056
+ originPluginId: z$1.ZodOptional<z$1.ZodString>;
13791
14057
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13792
14058
  "accept-edits": "accept-edits";
13793
14059
  auto: "auto";
@@ -15259,13 +15525,6 @@ declare const reorderPinnedThreadRequestSchema: z$1.ZodObject<{
15259
15525
  previousThreadId: z$1.ZodNullable<z$1.ZodString>;
15260
15526
  }, z$1.core.$strip>;
15261
15527
  type ReorderPinnedThreadRequest = z$1.infer<typeof reorderPinnedThreadRequestSchema>;
15262
- declare const threadOpenSplitSchema: z$1.ZodEnum<{
15263
- down: "down";
15264
- left: "left";
15265
- replace: "replace";
15266
- right: "right";
15267
- top: "top";
15268
- }>;
15269
15528
  type ThreadOpenSplit = z$1.infer<typeof threadOpenSplitSchema>;
15270
15529
  declare const threadOpenFileSchema: z$1.ZodObject<{
15271
15530
  lineNumber: z$1.ZodNullable<z$1.ZodNumber>;
@@ -15280,13 +15539,6 @@ declare const threadOpenResponseSchema: z$1.ZodObject<{
15280
15539
  delivered: z$1.ZodNumber;
15281
15540
  }, z$1.core.$strip>;
15282
15541
  type ThreadOpenResponse = z$1.infer<typeof threadOpenResponseSchema>;
15283
- declare const threadPaneActionSchema: z$1.ZodEnum<{
15284
- "clear-spotlight": "clear-spotlight";
15285
- maximize: "maximize";
15286
- restore: "restore";
15287
- spotlight: "spotlight";
15288
- toggle: "toggle";
15289
- }>;
15290
15542
  type ThreadPaneAction = z$1.infer<typeof threadPaneActionSchema>;
15291
15543
  declare const threadPaneActionResponseSchema: z$1.ZodObject<{
15292
15544
  delivered: z$1.ZodNumber;
@@ -15297,6 +15549,10 @@ declare const threadArchiveAllResponseSchema: z$1.ZodObject<{
15297
15549
  ok: z$1.ZodLiteral<true>;
15298
15550
  }, z$1.core.$strip>;
15299
15551
  type ThreadArchiveAllResponse = z$1.infer<typeof threadArchiveAllResponseSchema>;
15552
+ /**
15553
+ * Reads the `threadIds` list filter. The empty string is the empty set, so a
15554
+ * caller with no IDs gets no threads instead of every thread.
15555
+ */
15300
15556
  declare const threadListQuerySchema: z$1.ZodObject<{
15301
15557
  archived: z$1.ZodOptional<z$1.ZodEnum<{
15302
15558
  false: "false";
@@ -17044,6 +17300,9 @@ type EnvironmentDiffArgs = EnvironmentDiffQuery & {
17044
17300
  environmentId: string;
17045
17301
  signal?: AbortSignal;
17046
17302
  };
17303
+ type EnvironmentDiffFilesArgs = EnvironmentDiffArgs & {
17304
+ ignoreWhitespace?: boolean;
17305
+ };
17047
17306
  type EnvironmentDiffFileArgs = EnvironmentDiffFileQuery & {
17048
17307
  environmentId: string;
17049
17308
  signal?: AbortSignal;
@@ -17063,6 +17322,12 @@ type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
17063
17322
  environmentId: string;
17064
17323
  signal?: AbortSignal;
17065
17324
  };
17325
+ type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
17326
+ environmentId: string;
17327
+ };
17328
+ type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
17329
+ environmentId: string;
17330
+ };
17066
17331
  interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
17067
17332
  environmentId: string;
17068
17333
  signal?: AbortSignal;
@@ -17074,6 +17339,7 @@ type EnvironmentDiffBranchesResult = EnvironmentDiffBranchesResponse;
17074
17339
  type EnvironmentDiffFileResult = EnvironmentDiffFileResponse;
17075
17340
  type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
17076
17341
  type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
17342
+ type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17077
17343
  type EnvironmentGetResult = Environment;
17078
17344
  type EnvironmentMarkPullRequestDraftResult = PullRequestDraftActionResponse;
17079
17345
  type EnvironmentMarkPullRequestReadyResult = PullRequestReadyActionResponse;
@@ -17107,7 +17373,9 @@ interface EnvironmentListProvidersArgs {
17107
17373
  }
17108
17374
  type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
17109
17375
  interface EnvironmentsArea {
17110
- experimental_cleanup(args: EnvironmentActionArgs): Promise<{
17376
+ experimental_cleanup(args: EnvironmentActionArgs & {
17377
+ recover?: boolean;
17378
+ }): Promise<{
17111
17379
  ok: true;
17112
17380
  }>;
17113
17381
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
@@ -17115,8 +17383,17 @@ interface EnvironmentsArea {
17115
17383
  diff(args: EnvironmentDiffArgs): Promise<EnvironmentDiffResult>;
17116
17384
  diffBranches(args: EnvironmentDiffBranchesArgs): Promise<EnvironmentDiffBranchesResult>;
17117
17385
  diffFile(args: EnvironmentDiffFileArgs): Promise<EnvironmentDiffFileResult>;
17118
- diffFiles(args: EnvironmentDiffArgs): Promise<EnvironmentDiffFilesResult>;
17386
+ diffFiles(args: EnvironmentDiffFilesArgs): Promise<EnvironmentDiffFilesResult>;
17119
17387
  diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
17388
+ experimental_diffViewed(args: EnvironmentDiffArgs & {
17389
+ paths?: string[];
17390
+ }): Promise<EnvironmentDiffViewedResult>;
17391
+ experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
17392
+ ok: true;
17393
+ }>;
17394
+ experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
17395
+ ok: true;
17396
+ }>;
17120
17397
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
17121
17398
  list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
17122
17399
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
@@ -17219,6 +17496,7 @@ interface HostGetArgs {
17219
17496
  }
17220
17497
  interface HostDeleteArgs {
17221
17498
  hostId: string;
17499
+ force?: boolean;
17222
17500
  }
17223
17501
  interface HostUpdateArgs extends UpdateHostRequest {
17224
17502
  hostId: string;
@@ -18071,6 +18349,7 @@ interface TerminalListArgs {
18071
18349
  }
18072
18350
  interface TerminalCreateArgs {
18073
18351
  cols: number;
18352
+ id?: CreateTerminalRequest["id"];
18074
18353
  rows: number;
18075
18354
  scope: TerminalCreateScope;
18076
18355
  start?: CreateTerminalRequest["start"];
@@ -18685,98 +18964,6 @@ type ReadonlyJsonValue = string | number | boolean | null | readonly ReadonlyJso
18685
18964
  readonly [key: string]: ReadonlyJsonValue;
18686
18965
  };
18687
18966
 
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
18967
  /**
18781
18968
  * The `@get-bb/plugin-sdk/app` contract (plugin design §5.2) — pure types with no
18782
18969
  * side effects. The BB app imports these to keep its real implementation in
@@ -18805,6 +18992,20 @@ interface PluginSettingsSectionProps {
18805
18992
  */
18806
18993
  interface ExperimentalAppOverlayProps {
18807
18994
  }
18995
+ type ExperimentalPageTitle = ({
18996
+ title: string;
18997
+ breadcrumbs?: never;
18998
+ } | {
18999
+ title?: never;
19000
+ breadcrumbs: readonly ExperimentalPageBreadcrumb[];
19001
+ }) & {
19002
+ windowTitle?: string;
19003
+ };
19004
+ interface ExperimentalPageBreadcrumb {
19005
+ label: string;
19006
+ /** Absolute app route, starting with a single slash. */
19007
+ to?: string;
19008
+ }
18808
19009
  /** Props passed to a `navPanel` component (it owns its whole route). */
18809
19010
  interface PluginNavPanelProps {
18810
19011
  /**
@@ -18981,9 +19182,14 @@ interface ExperimentalSidebarNavigationItem {
18981
19182
  */
18982
19183
  badge: ExperimentalBadge | null;
18983
19184
  }
19185
+ /**
19186
+ * Where the host opens a sidebar navigation destination: `current` in the
19187
+ * current view, `split` in a pane with browser-tab fallback, `tab` in a new browser tab.
19188
+ */
19189
+ type ExperimentalSidebarNavigationTarget = "current" | "split" | "tab";
18984
19190
  /** How the host should activate a sidebar navigation item. */
18985
19191
  interface ExperimentalSidebarNavigationActivationOptions {
18986
- openInSplit: boolean;
19192
+ target: ExperimentalSidebarNavigationTarget;
18987
19193
  }
18988
19194
  /**
18989
19195
  * Host behavior for sidebar navigation items (see
@@ -18992,22 +19198,28 @@ interface ExperimentalSidebarNavigationActivationOptions {
18992
19198
  */
18993
19199
  interface ExperimentalSidebarNavigationActions {
18994
19200
  /**
18995
- * Run the item's host behavior. Plugin panels close the mobile sidebar
18996
- * drawer; Plugins and Skills swap the list beside the navigation.
18997
- * `openInSplit` opens Plugins and Skills in a browser tab because those
18998
- * destinations do not support splits. New thread and plugin panels retain
18999
- * their split placement rules, including in-place navigation on compact
19000
- * screens. Search remains a command. Disabled or loading items do nothing.
19001
- * Browser-tab activation must run synchronously from a user gesture;
19002
- * native shells handle the new-window request using their existing policy.
19201
+ * Run the item's host behavior at `target`. Plugin panels close the
19202
+ * mobile sidebar drawer; Plugins and Skills swap the list beside the
19203
+ * navigation. `split` opens a pane, or focuses the destination's existing
19204
+ * pane. At the pane limit it replaces the focused pane. If the destination
19205
+ * cannot be a pane, splitting is disabled, the viewport is compact, or no
19206
+ * split layout exists, it opens a browser tab instead. Callers do not need
19207
+ * to check availability. Search remains a
19208
+ * command at every target. Disabled or loading items do nothing. `split` and `tab`
19209
+ * must run synchronously from a user gesture; native shells handle the
19210
+ * new-window request using their existing policy.
19003
19211
  */
19004
19212
  activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
19005
19213
  /**
19006
19214
  * Return to the thread list and the last thread or new thread screen the
19007
19215
  * user had open before visiting Settings, Plugins, Skills, or a plugin
19008
- * panel.
19216
+ * panel. Target `tab` instead opens the new thread screen in a browser
19217
+ * tab, with the same user-gesture requirement as `activate`. Omitting
19218
+ * `options` navigates in place.
19009
19219
  */
19010
- goHome(): void;
19220
+ goHome(options?: {
19221
+ target: Exclude<ExperimentalSidebarNavigationTarget, "split">;
19222
+ }): void;
19011
19223
  /** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
19012
19224
  setVisible(itemId: string, isVisible: boolean): void;
19013
19225
  /**
@@ -19578,6 +19790,25 @@ interface PluginNavPanelRegistration {
19578
19790
  /** URL segment under `/plugins/<pluginId>/`; letters, digits, `-`, `_`. */
19579
19791
  path: string;
19580
19792
  component: ComponentType<PluginNavPanelProps>;
19793
+ /**
19794
+ * Sidebar shown instead of the thread list while this panel's route is
19795
+ * active, in the same section sidebar as Settings, Plugins and Skills. BB
19796
+ * keeps the navigation rail, top chrome and resize handle; in the top-list
19797
+ * layout it adds a "Back to app" row and the panel title, and Back to app
19798
+ * (Escape) returns to the last app page. Receives the page's current
19799
+ * subPath. Other routes keep their usual sidebar. A crash shows a crash
19800
+ * notice until the subPath or plugin generation changes.
19801
+ * Experimental: see docs/api_to_audit.md.
19802
+ */
19803
+ experimental_sidebar?: ComponentType<PluginNavPanelProps>;
19804
+ /**
19805
+ * React hook evaluated in each pane's plugin scope with its current subPath.
19806
+ * Returns text after the panel icon/name and the focused pane's window title.
19807
+ * Null restores the default panel title. May use SDK hooks to load data.
19808
+ * A crash or invalid result clears the title without crashing the page;
19809
+ * navigation or plugin reload retries the hook. Experimental.
19810
+ */
19811
+ experimental_usePageTitle?: (props: PluginNavPanelProps) => ExperimentalPageTitle | null;
19581
19812
  /**
19582
19813
  * Ordered, non-closable tabs shown in this page's host-owned right panel.
19583
19814
  * BB owns selection and persistence and always includes its native Browser
@@ -20574,8 +20805,8 @@ interface PluginThreadListRegistration {
20574
20805
  *
20575
20806
  * - `rail`: a fixed-width column on the sidebar's left edge that stays when
20576
20807
  * the sidebar collapses. bb draws Settings at the bottom of the column;
20577
- * draw Home with `actions.goHome()`. On macOS, wide windows frame the
20578
- * sidebar and page below a title bar.
20808
+ * draw Home with `actions.goHome({ target })`. On macOS, wide windows
20809
+ * frame the sidebar and page below a title bar.
20579
20810
  * - `list` (the default): the area above the thread list. Settings is a
20580
20811
  * footer action, the Settings, Plugins, and Skills lists start with a Back
20581
20812
  * to app row, and collapsing hides the whole sidebar.
@@ -21603,29 +21834,41 @@ interface PluginComposerApi {
21603
21834
  /** Focus the composer caret at the end of the draft. */
21604
21835
  focus(): void;
21605
21836
  /**
21606
- * Submit this composer's draft exactly as pressing Enter would: the same
21607
- * checks and the same action (send, or queue while the thread is busy; a
21608
- * provider handoff creates a new thread). The draft's attachments and
21837
+ * Submit this composer's draft through the composer's own send and steer
21838
+ * handlers, the ones Enter and modifier+Enter run, including a
21839
+ * provider handoff that creates a new thread. The draft's attachments and
21609
21840
  * @-mentions, and — in the new-thread composer — the provider, model,
21610
21841
  * reasoning level, service tier, permission mode and environment the user
21611
21842
  * has selected on screen, all travel with it.
21612
21843
  *
21613
- * While attachments are uploading it waits for them, then checks again; it
21614
- * rejects if an upload fails. Otherwise, when submitting is blocked it
21615
- * rejects with `submittingBlockedReason`, a message safe to show to the
21616
- * user. The queued-message and sent-message editors save edits and reject.
21844
+ * It submits only the draft, so it rejects an empty one, even where the
21845
+ * shortcut would steer the next queued message instead. Otherwise it runs
21846
+ * only when the matching shortcut would. While attachments are uploading it
21847
+ * waits for them, then checks again; it rejects if an upload fails. When
21848
+ * the shortcut could not submit, it rejects with the reason, a message safe
21849
+ * to show to the user. The composer must be on screen. The queued-message
21850
+ * and sent-message editors reject.
21617
21851
  *
21618
- * `sendAt` queues the submission until that time. `experimental_data` is
21619
- * opaque JSON delivered to dispatch hooks together with the calling plugin's
21620
- * id on this initial attempt. Hooks run before operational core waits. If a
21621
- * hook queues the message, its existing plugin wait identifies the owner on
21622
- * later attempts; core does not persist or interpret the opaque data.
21852
+ * Every option combines with the others. `experimental_mode` uses the
21853
+ * names `bb.sdk.threads.send` uses. Without it, submit does what Enter
21854
+ * does for this user, which may be to queue or to steer.
21855
+ * `"queue-if-active"` queues behind the running turn, or starts a turn.
21856
+ * `"steer-if-active"` adds the message to the running turn. Where nothing
21857
+ * can be steered, such as on an idle thread, it starts a turn.
21858
+ * `sendAt` makes the chosen action wait until the given time; a scheduled
21859
+ * steer steers whatever turn is running then. `experimental_data` is
21860
+ * opaque JSON delivered to dispatch hooks together with the calling
21861
+ * plugin's id on this initial attempt. Hooks run before operational core
21862
+ * waits. If a hook queues the message, its existing plugin wait identifies
21863
+ * the owner on later attempts; core does not persist or interpret the
21864
+ * opaque data.
21623
21865
  *
21624
- * Resolves once the host has accepted the submission and cleared the draft.
21625
- * Failures of the underlying request are reported by bb's own submit error
21626
- * handling and restore the draft, exactly as an interactive failure does.
21866
+ * Resolves once the composer has accepted the submission and cleared the
21867
+ * draft. Failures of the underlying request show bb's usual error toast
21868
+ * and restore the draft, exactly as an interactive failure does, and then
21869
+ * reject with the toast's message.
21627
21870
  */
21628
- submit(options: ComposerSubmitOptions): Promise<void>;
21871
+ submit(options?: ComposerSubmitOptions): Promise<void>;
21629
21872
  /**
21630
21873
  * Set this composer's pickers as if each value had been picked by hand.
21631
21874
  *
@@ -21704,20 +21947,22 @@ interface ComposerSelection {
21704
21947
  serviceTier?: ServiceTier;
21705
21948
  permissionMode?: PermissionMode;
21706
21949
  }
21707
- /**
21708
- * What `submit` does differently from pressing Enter.
21709
- *
21710
- * `experimental_data` is opaque JSON delivered to dispatch hooks. The runtime
21711
- * associates it with the calling plugin automatically for the initial
21712
- * dispatch attempt.
21713
- */
21714
- type ComposerSubmitOptions = {
21715
- sendAt: number;
21950
+ /** What `submit` adds to pressing Enter. Every field combines with the others. */
21951
+ interface ComposerSubmitOptions {
21952
+ /**
21953
+ * `"queue-if-active"` queues behind the running turn and
21954
+ * `"steer-if-active"` adds to it; both start a turn when none is running.
21955
+ * Omitted, it does what Enter does for this user.
21956
+ */
21957
+ experimental_mode?: "queue-if-active" | "steer-if-active";
21958
+ /** Epoch ms in the future; the action waits until then. */
21959
+ sendAt?: number;
21960
+ /**
21961
+ * Opaque JSON delivered to dispatch hooks with the calling plugin's id on
21962
+ * the initial dispatch attempt.
21963
+ */
21716
21964
  experimental_data?: JsonValue;
21717
- } | {
21718
- experimental_data: JsonValue;
21719
- sendAt?: never;
21720
- };
21965
+ }
21721
21966
  /**
21722
21967
  * A consumer-supplied action on the messages of one `ThreadChat` instance,
21723
21968
  * rendered in the embedded timeline's per-message action bar alongside the
@@ -22236,12 +22481,96 @@ interface BbNavigate {
22236
22481
  terminalId: string;
22237
22482
  }): Promise<boolean>;
22238
22483
  }
22484
+ /**
22485
+ * BB live reads are fresh for two seconds, with no polling when freshness expires.
22486
+ * Focus does not refetch while BB's realtime connection is healthy. While
22487
+ * disconnected, focus/browser-online events recheck stale active reads; BB
22488
+ * reconnect invalidates all plugin reads regardless of freshness. Page hiding
22489
+ * cancels active attempts; resuming restarts those cancelled reads.
22490
+ * Invalidations refresh immediately. Network/abort failures retry twice at
22491
+ * 250 ms; HTTP failures, including refusals, do not retry. Writes never retry
22492
+ * automatically.
22493
+ */
22494
+ interface ExperimentalRpcQueryState<T> {
22495
+ /** 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. */
22496
+ data: T | undefined;
22497
+ /** Last completed read failure, or null. Success clears it; retrying a first load clears the old error while loading. Refresh errors preserve data. */
22498
+ error: experimental_PluginRpcCallError | null;
22499
+ /** 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. */
22500
+ isLoading: boolean;
22501
+ /** A read attempt is active, including background refreshes. Keyed consumers share this activity for their method; offline-paused reads are not fetching. */
22502
+ isFetching: boolean;
22503
+ /** 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. */
22504
+ refetch(): Promise<void>;
22505
+ }
22506
+ interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
22507
+ }
22508
+ interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
22509
+ contract: Contract;
22510
+ pluginId?: string;
22511
+ method: Method;
22512
+ input: StandardSchemaV1InferInput<Contract[Method]["input"]>;
22513
+ enabled?: boolean;
22514
+ }
22515
+ /**
22516
+ * Predict loaded reads with pure, synchronous update callbacks. Callbacks passed
22517
+ * to `update` and `updateKey` may run many times as pending predictions replay
22518
+ * over a new confirmed base or another prediction rolls back. Return a new
22519
+ * value without mutating `current` or captured inputs, performing side effects,
22520
+ * or generating IDs, timestamps, or random values. Generate any such values
22521
+ * once before calling `mutate` and include them in the mutation input.
22522
+ */
22523
+ interface ExperimentalRpcOptimisticCache<Contract extends PluginRpcContract> {
22524
+ update<Method extends keyof Contract & string>(method: Method, input: StandardSchemaV1InferInput<Contract[Method]["input"]>, update: (current: PluginRpcResult<Contract[Method]>) => PluginRpcResult<Contract[Method]>): void;
22525
+ 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;
22526
+ }
22527
+ interface ExperimentalRpcMutationOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
22528
+ contract: Contract;
22529
+ pluginId?: string;
22530
+ method: Method;
22531
+ /** Predict loaded reads synchronously; shared predictions survive accepted writes whose refresh fails. */
22532
+ optimistic?(input: StandardSchemaV1InferInput<Contract[Method]["input"]>, cache: ExperimentalRpcOptimisticCache<Contract>): void;
22533
+ }
22534
+ /**
22535
+ * One mutation hook's state. `mutate` calls the RPC, invalidates the
22536
+ * response's `invalidated` tags on this client immediately, and resolves when
22537
+ * the server acknowledges the write. Matched reads refresh in the background. `error` holds the last failure
22538
+ * until the next `mutate` or `reset`.
22539
+ */
22540
+ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
22541
+ /** Resolves at write acknowledgement; rejects with experimental_PluginRpcCallError. Refreshes continue in the background without releasing predictions before confirmed reads. */
22542
+ mutate(...args: PluginRpcCallArgs<Method>): Promise<PluginRpcResult<Method>>;
22543
+ isPending: boolean;
22544
+ /** Inputs of every pending call made by this hook, until server acknowledgement. Refreshes are excluded; other hook instances are excluded. */
22545
+ pendingInputs: readonly StandardSchemaV1InferInput<Method["input"]>[];
22546
+ error: experimental_PluginRpcCallError | null;
22547
+ reset(): void;
22548
+ }
22239
22549
  /**
22240
22550
  * Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
22241
22551
  * the real implementation and `satisfies` this interface; `bb plugin build`
22242
22552
  * shims the specifier to that object on `globalThis.__bbPluginRuntime`.
22243
22553
  */
22244
22554
  interface PluginSdkApp {
22555
+ experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
22556
+ experimental_useRpcRefresh(): {
22557
+ refresh(): void;
22558
+ isRefreshing: boolean;
22559
+ };
22560
+ /** Read tagged plugin data through BB's shared query cache and realtime lifecycle. */
22561
+ experimental_useRpcQuery<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>): ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
22562
+ /** Call a mutating RPC through BB's query client; pending until the server acknowledges the write; matched reads refresh in the background. */
22563
+ experimental_useRpcMutation<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>): ExperimentalRpcMutationState<Contract[Method]>;
22564
+ /** Cache each key independently and batch missing or invalidated keys in the same render. */
22565
+ experimental_useRpcKeyedQuery<Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
22566
+ contract: Contract;
22567
+ pluginId?: string;
22568
+ method: Method;
22569
+ keys: readonly string[];
22570
+ enabled?: boolean;
22571
+ /** Pure projection; the selection type is inferred from its return value. */
22572
+ select?(data: Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>): Selection;
22573
+ }): ExperimentalRpcKeyedQueryState<ExperimentalRpcKeyedValue<Contract[Method]>, Selection>;
22245
22574
  experimental_Icon: ComponentType<ExperimentalIconProps>;
22246
22575
  /**
22247
22576
  * Render provider slot override, then its logo, then its glyph, then fallback.
@@ -23668,6 +23997,10 @@ interface PluginHttp {
23668
23997
  }): void;
23669
23998
  }
23670
23999
  interface PluginRpc {
24000
+ /** Refresh reads whose contract tags overlap this nonempty list. */
24001
+ experimental_invalidate(tags: readonly string[]): void;
24002
+ /** Refresh every read of this plugin, including untagged reads. */
24003
+ experimental_invalidateAll(): void;
23671
24004
  /**
23672
24005
  * Register a Standard Schema-driven rpc contract and its inferred handlers,
23673
24006
  * served at POST
@@ -24585,6 +24918,36 @@ interface PluginServerApi {
24585
24918
  * not a place to write.
24586
24919
  */
24587
24920
  readonly experimental_dataDir: string;
24921
+ /**
24922
+ * Internal to bb's own connect plugins. Do not use: it is not part of the
24923
+ * plugin API and may change or disappear in any release.
24924
+ *
24925
+ * Open (or share) this server's tunnel ingress for `audience`, a private
24926
+ * listener on 127.0.0.1 with an ephemeral port. For a plugin that runs a
24927
+ * tunnel client for bb connect next: point the client at `baseUrl`.
24928
+ *
24929
+ * Every HTTP request and WebSocket upgrade must carry an
24930
+ * `x-bb-gate-assertion` signed by the bb connect gate for `audience`
24931
+ * (`server:<serverId>`), the request method and the exact path and query;
24932
+ * anything else is answered 401. A verified request reaches the same app
24933
+ * as `loopbackBaseUrl`, authenticated only by the gate's claims.
24934
+ *
24935
+ * Opening the same audience again shares the listener; it stops when every
24936
+ * handle is closed. Handles close when the plugin is disabled or unloaded.
24937
+ */
24938
+ internal_DO_NOT_USE_openTunnelIngress(options: InternalDoNotUsePluginTunnelIngressOptions): Promise<InternalDoNotUsePluginTunnelIngress>;
24939
+ }
24940
+ /** Options for `bb.server.internal_DO_NOT_USE_openTunnelIngress`. */
24941
+ interface InternalDoNotUsePluginTunnelIngressOptions {
24942
+ /** The gate assertion audience this ingress accepts, e.g. `server:<id>`. */
24943
+ audience: string;
24944
+ }
24945
+ /** A handle on an open tunnel ingress. */
24946
+ interface InternalDoNotUsePluginTunnelIngress {
24947
+ /** Base URL of the ingress listener, e.g. "http://127.0.0.1:41234". */
24948
+ readonly baseUrl: string;
24949
+ /** Release this handle; idempotent. */
24950
+ close(): Promise<void>;
24588
24951
  }
24589
24952
  /** Options for one `complete` call. */
24590
24953
  interface PluginAiCompleteOptions {
@@ -24668,6 +25031,45 @@ interface PluginSharedPortTunnelIdentity {
24668
25031
  /** Gate apex without a scheme, e.g. "getbb.app". */
24669
25032
  baseDomain: string;
24670
25033
  }
25034
+ /** The frp server a machine's next tunnel dials. */
25035
+ interface InternalDoNotUsePluginNextTunnelServer {
25036
+ /** `wss` for TLS, `websocket` for plain `ws://` (local runs only). */
25037
+ protocol: "websocket" | "wss";
25038
+ /** Host name without a port, e.g. "tunnel.next.getbb.app". */
25039
+ host: string;
25040
+ port: number;
25041
+ }
25042
+ /** Where every eligible machine serves its port shares through bb connect next. */
25043
+ interface InternalDoNotUsePluginNextTunnelConfig {
25044
+ /**
25045
+ * Next domain without a scheme, with a port only for local runs, e.g.
25046
+ * "next.getbb.app". A share answers at `<machine-label>--<port>.<domain>`.
25047
+ */
25048
+ domain: string;
25049
+ server: InternalDoNotUsePluginNextTunnelServer;
25050
+ }
25051
+ /** One machine's next tunnel, as its daemon last reported it. */
25052
+ interface InternalDoNotUsePluginHostNextTunnelStatus {
25053
+ hostId: string;
25054
+ hostName: string;
25055
+ /**
25056
+ * `idle` while the machine shares no port or next is off, `refused` when
25057
+ * the gate refused the machine credential (retried after five minutes),
25058
+ * `offline` when the gate cannot be reached (retried with backoff),
25059
+ * `error` when the daemon could not start frpc or refused the configuration.
25060
+ */
25061
+ state: "connected" | "connecting" | "error" | "idle" | "offline" | "refused";
25062
+ /** The machine's gate label, or null before the daemon learned it. */
25063
+ label: string | null;
25064
+ lastError: string | null;
25065
+ nextRetryAt: number | null;
25066
+ since: number;
25067
+ shares: Array<{
25068
+ port: number;
25069
+ state: "active" | "pending" | "refused";
25070
+ error: string | null;
25071
+ }>;
25072
+ }
24671
25073
  interface PluginHosts {
24672
25074
  /** Create the owning plugin's typed client for its singular `bb.host` entry. */
24673
25075
  experimental_client<Contract extends PluginRpcContract, Signals extends ExperimentalHostSignals = {}>(args: {
@@ -24690,6 +25092,31 @@ interface PluginHosts {
24690
25092
  * here: it is owned by the daemon's trusted enrollment.
24691
25093
  */
24692
25094
  declareSharedPorts(hostId: string, ports: readonly number[]): void;
25095
+ /**
25096
+ * Internal to bb's own connect plugins. Do not use: it is not part of the
25097
+ * plugin API and may change or disappear in any release.
25098
+ *
25099
+ * Turn bb connect next machine tunnels on (a config) or off (`null`). The
25100
+ * server sends the config to every connected daemon that holds a bb connect
25101
+ * machine credential and speaks a protocol that knows next tunnels; each
25102
+ * such daemon runs frpc with one proxy per port declared with
25103
+ * `declareSharedPorts`, at `<machine-label>--<port>.<domain>`. The daemon
25104
+ * refuses a domain or tunnel server outside its trusted enrollment's
25105
+ * domain. One plugin owns the setting at a time; another plugin's call
25106
+ * throws while it is set. Cleared when the owning plugin is disabled.
25107
+ */
25108
+ internal_DO_NOT_USE_setNextTunnels(config: InternalDoNotUsePluginNextTunnelConfig | null): void;
25109
+ /** Internal to bb's own connect plugins; do not use. The last next-tunnel status of every connected daemon that reported one. */
25110
+ internal_DO_NOT_USE_nextTunnelStatuses(): InternalDoNotUsePluginHostNextTunnelStatus[];
25111
+ /**
25112
+ * Internal to bb's own connect plugins. Do not use: it is not part of the
25113
+ * plugin API and may change or disappear in any release.
25114
+ *
25115
+ * Call `listener` whenever a daemon reports a changed next-tunnel status or
25116
+ * its session ends. Returns an unsubscribe function; plugin disposal also
25117
+ * unsubscribes.
25118
+ */
25119
+ internal_DO_NOT_USE_onNextTunnelStatusChange(listener: () => void): () => void;
24693
25120
  }
24694
25121
  interface PluginStatusApi {
24695
25122
  /**
@@ -25055,5 +25482,5 @@ declare const experimental_THREAD_ACTION_GROUPS: {
25055
25482
  readonly lifecycle: "4_lifecycle";
25056
25483
  };
25057
25484
 
25058
- export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
25059
- 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 };
25485
+ export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
25486
+ 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, 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 };