@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.
@@ -29,78 +29,13 @@ type ReadonlyJsonValue = string | number | boolean | null | readonly ReadonlyJso
29
29
  readonly [key: string]: ReadonlyJsonValue;
30
30
  };
31
31
 
32
- /** A JSON-safe path segment reported by a Standard Schema validation issue. */
33
- type PluginRpcIssuePathSegment = string | number;
34
- /** Validator-neutral validation detail carried by an RPC error envelope. */
35
- interface PluginRpcValidationIssue {
36
- message: string;
37
- path?: PluginRpcIssuePathSegment[];
38
- }
39
- /** Stable wire error categories for plugin RPC. */
40
- type PluginRpcErrorCode = "handler_error" | "invalid_input" | "invalid_json" | "invalid_output" | "non_json_result" | "unknown_method";
41
- /** Structured RPC failure returned as `{ ok: false, error }`. */
42
- interface PluginRpcError {
43
- code: PluginRpcErrorCode;
44
- message: string;
45
- issues?: PluginRpcValidationIssue[];
46
- }
47
- /**
48
- * The validator-neutral subset of Standard Schema v1 used by plugin contracts.
49
- * Zod 4 schemas implement this interface directly; other validators can do
50
- * the same without becoming part of BB's public protocol.
51
- */
52
- interface StandardSchemaV1<Input = unknown, Output = Input> {
53
- readonly "~standard": {
54
- readonly version: 1;
55
- readonly vendor: string;
56
- readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
57
- readonly jsonSchema?: {
58
- readonly input: (options: {
59
- target: string;
60
- }) => Record<string, unknown>;
61
- readonly output: (options: {
62
- target: string;
63
- }) => Record<string, unknown>;
64
- };
65
- readonly types?: {
66
- readonly input: Input;
67
- readonly output: Output;
68
- };
69
- };
70
- }
71
- type StandardSchemaV1Result<Output> = {
72
- readonly value: Output;
73
- readonly issues?: undefined;
74
- } | {
75
- readonly issues: readonly StandardSchemaV1Issue[];
76
- };
77
- interface StandardSchemaV1Issue {
78
- readonly message: string;
79
- readonly path?: PropertyKey | readonly (PropertyKey | {
80
- readonly key: PropertyKey;
81
- })[];
82
- }
83
- type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
84
- type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
85
- interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> {
86
- readonly experimental_description?: string;
87
- readonly input: InputSchema;
88
- readonly output: OutputSchema;
89
- }
90
- type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
91
- type PluginRpcHandlers<Contract extends PluginRpcContract> = {
92
- [Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
93
- };
94
- type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
95
- type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
96
- type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
97
-
98
32
  declare const appSettingsSchema: z$1.ZodObject<{
99
33
  allowFastServiceTier: z$1.ZodBoolean;
100
34
  confirmThreadArchive: z$1.ZodBoolean;
101
35
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
102
36
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
103
37
  earlyAdopter: z$1.ZodBoolean;
38
+ idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>;
104
39
  keepHistoryAfterContextClear: z$1.ZodBoolean;
105
40
  machineGitCredentialsEnabled: z$1.ZodBoolean;
106
41
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -127,6 +62,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
127
62
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
128
63
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
129
64
  earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
65
+ idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
130
66
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
131
67
  machineGitCredentialsEnabled: z$1.ZodBoolean;
132
68
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -152,6 +88,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
152
88
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
153
89
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
154
90
  earlyAdopter: z$1.ZodOptional<z$1.ZodBoolean>;
91
+ idleProviderSessionTimeoutMinutes: z$1.ZodOptional<z$1.ZodLiteral<0 | 5 | 10 | 30 | 60>>;
155
92
  keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
156
93
  machineGitCredentialsEnabled: z$1.ZodBoolean;
157
94
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -434,6 +371,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
434
371
  type: z$1.ZodLiteral<"changed">;
435
372
  }, z$1.core.$strict>, z$1.ZodObject<{
436
373
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
374
+ "diff-viewed-changed": "diff-viewed-changed";
437
375
  "environment-created": "environment-created";
438
376
  "environment-deleted": "environment-deleted";
439
377
  "git-refs-changed": "git-refs-changed";
@@ -464,10 +402,18 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
464
402
  "plugins-changed": "plugins-changed";
465
403
  "provider-registrations-changed": "provider-registrations-changed";
466
404
  "server-move-changed": "server-move-changed";
467
- "ui-preferences-changed": "ui-preferences-changed";
468
405
  }>>>;
469
406
  entity: z$1.ZodLiteral<"system">;
470
407
  type: z$1.ZodLiteral<"changed">;
408
+ }, z$1.core.$strict>, z$1.ZodObject<{
409
+ entity: z$1.ZodLiteral<"tags">;
410
+ tags: z$1.ZodArray<z$1.ZodString>;
411
+ type: z$1.ZodLiteral<"changed">;
412
+ }, z$1.core.$strict>, z$1.ZodObject<{
413
+ entity: z$1.ZodLiteral<"plugin">;
414
+ pluginId: z$1.ZodString;
415
+ tags: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
416
+ type: z$1.ZodLiteral<"changed">;
471
417
  }, z$1.core.$strict>], "entity">;
472
418
  type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
473
419
 
@@ -4255,6 +4201,17 @@ declare const threadRuntimeDisplayStatusSchema: z$1.ZodEnum<{
4255
4201
  starting: "starting";
4256
4202
  stopping: "stopping";
4257
4203
  }>;
4204
+
4205
+ /**
4206
+ * The three additions to {@link threadStatusValues} are display-only: they
4207
+ * refine `active`/`idle` with host and workspace facts the durable status does
4208
+ * not record.
4209
+ *
4210
+ * A never-started thread needs no such refinement — `pending` is a real thread
4211
+ * status now, so it travels to the client as itself. It used to arrive as a
4212
+ * separate `held` display status, derived from an `idle` thread holding a live
4213
+ * dispatch hold; that derivation and the holds behind it are both gone.
4214
+ */
4258
4215
  type ThreadRuntimeDisplayStatus = z$1.infer<typeof threadRuntimeDisplayStatusSchema>;
4259
4216
  declare const threadQueuedMessageSchema: z$1.ZodObject<{
4260
4217
  content: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -4426,6 +4383,104 @@ declare const mobileAppDownloads: {
4426
4383
  android: string;
4427
4384
  };
4428
4385
 
4386
+ interface ContractTagDeclarations<Input, Output> {
4387
+ tags?(input: Input, output: Output): readonly string[];
4388
+ keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
4389
+ invalidates?(input: Input, output: Output): readonly string[];
4390
+ }
4391
+
4392
+ /** A JSON-safe path segment reported by a Standard Schema validation issue. */
4393
+ type PluginRpcIssuePathSegment = string | number;
4394
+ /** Validator-neutral validation detail carried by an RPC error envelope. */
4395
+ interface PluginRpcValidationIssue {
4396
+ message: string;
4397
+ path?: PluginRpcIssuePathSegment[];
4398
+ }
4399
+ 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"];
4400
+ /** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
4401
+ type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
4402
+ /** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
4403
+ declare class experimental_PluginRpcCallError extends Error {
4404
+ /** Recognizes errors across the packed SDK's separately bundled entries. */
4405
+ static [Symbol.hasInstance](value: unknown): boolean;
4406
+ readonly code: PluginRpcErrorCode;
4407
+ readonly issues?: PluginRpcValidationIssue[];
4408
+ readonly status?: number;
4409
+ readonly serverCode?: string;
4410
+ constructor(args: PluginRpcError & {
4411
+ status?: number;
4412
+ serverCode?: string;
4413
+ });
4414
+ /** Normalize failures at the RPC boundary; preserves an existing client error. */
4415
+ static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
4416
+ }
4417
+ /** Structured RPC failure returned as `{ ok: false, error }`. */
4418
+ interface PluginRpcError {
4419
+ code: PluginRpcErrorCode;
4420
+ message: string;
4421
+ issues?: PluginRpcValidationIssue[];
4422
+ }
4423
+ /**
4424
+ * The validator-neutral subset of Standard Schema v1 used by plugin contracts.
4425
+ * Zod 4 schemas implement this interface directly; other validators can do
4426
+ * the same without becoming part of BB's public protocol.
4427
+ */
4428
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
4429
+ readonly "~standard": {
4430
+ readonly version: 1;
4431
+ readonly vendor: string;
4432
+ readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
4433
+ readonly jsonSchema?: {
4434
+ readonly input: (options: {
4435
+ target: string;
4436
+ }) => Record<string, unknown>;
4437
+ readonly output: (options: {
4438
+ target: string;
4439
+ }) => Record<string, unknown>;
4440
+ };
4441
+ readonly types?: {
4442
+ readonly input: Input;
4443
+ readonly output: Output;
4444
+ };
4445
+ };
4446
+ }
4447
+ type StandardSchemaV1Result<Output> = {
4448
+ readonly value: Output;
4449
+ readonly issues?: undefined;
4450
+ } | {
4451
+ readonly issues: readonly StandardSchemaV1Issue[];
4452
+ };
4453
+ interface StandardSchemaV1Issue {
4454
+ readonly message: string;
4455
+ readonly path?: PropertyKey | readonly (PropertyKey | {
4456
+ readonly key: PropertyKey;
4457
+ })[];
4458
+ }
4459
+ type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
4460
+ type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
4461
+ interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
4462
+ readonly experimental_description?: string;
4463
+ readonly input: InputSchema;
4464
+ readonly output: OutputSchema;
4465
+ }
4466
+ type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
4467
+ /** Methods callable with only keys and returning one value per string key. */
4468
+ type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
4469
+ [Method in keyof Contract & string]: {
4470
+ keys: string[];
4471
+ } extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
4472
+ keys: string[];
4473
+ } ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
4474
+ }[keyof Contract & string];
4475
+ /** One keyed method's inferred row value. */
4476
+ type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
4477
+ type PluginRpcHandlers<Contract extends PluginRpcContract> = {
4478
+ [Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
4479
+ };
4480
+ type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
4481
+ type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
4482
+ type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
4483
+
4429
4484
  declare const threadContextResponseSchema: z$1.ZodObject<{
4430
4485
  usage: z$1.ZodNullable<z$1.ZodObject<{
4431
4486
  compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
@@ -5795,6 +5850,7 @@ declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
5795
5850
  }>;
5796
5851
  path: z$1.ZodString;
5797
5852
  previousPath: z$1.ZodNullable<z$1.ZodString>;
5853
+ revision: z$1.ZodString;
5798
5854
  }, z$1.core.$strip>>;
5799
5855
  initialPatches: z$1.ZodArray<z$1.ZodObject<{
5800
5856
  patch: z$1.ZodString;
@@ -5857,6 +5913,7 @@ declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
5857
5913
  }, z$1.core.$strict>], "outcome">;
5858
5914
  type EnvironmentDiffPatchResponse = z$1.infer<typeof environmentDiffPatchResponseSchema>;
5859
5915
  declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
5916
+ ignoreWhitespace: z$1.ZodOptional<z$1.ZodBoolean>;
5860
5917
  paths: z$1.ZodArray<z$1.ZodString>;
5861
5918
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5862
5919
  type: z$1.ZodLiteral<"uncommitted">;
@@ -5872,6 +5929,46 @@ declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
5872
5929
  }, z$1.core.$strip>], "type">;
5873
5930
  }, z$1.core.$strict>;
5874
5931
  type EnvironmentDiffPatchRequest = z$1.infer<typeof environmentDiffPatchRequestSchema>;
5932
+ declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
5933
+ files: z$1.ZodArray<z$1.ZodObject<{
5934
+ path: z$1.ZodString;
5935
+ revision: z$1.ZodString;
5936
+ }, z$1.core.$strict>>;
5937
+ }, z$1.core.$strict>;
5938
+ type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
5939
+ declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
5940
+ path: z$1.ZodString;
5941
+ revision: z$1.ZodString;
5942
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5943
+ type: z$1.ZodLiteral<"uncommitted">;
5944
+ }, z$1.core.$strip>, z$1.ZodObject<{
5945
+ mergeBaseBranch: z$1.ZodString;
5946
+ type: z$1.ZodLiteral<"branch_committed">;
5947
+ }, z$1.core.$strip>, z$1.ZodObject<{
5948
+ mergeBaseBranch: z$1.ZodString;
5949
+ type: z$1.ZodLiteral<"all">;
5950
+ }, z$1.core.$strip>, z$1.ZodObject<{
5951
+ sha: z$1.ZodString;
5952
+ type: z$1.ZodLiteral<"commit">;
5953
+ }, z$1.core.$strip>], "type">;
5954
+ }, z$1.core.$strict>;
5955
+ type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
5956
+ declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
5957
+ path: z$1.ZodOptional<z$1.ZodString>;
5958
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5959
+ type: z$1.ZodLiteral<"uncommitted">;
5960
+ }, z$1.core.$strip>, z$1.ZodObject<{
5961
+ mergeBaseBranch: z$1.ZodString;
5962
+ type: z$1.ZodLiteral<"branch_committed">;
5963
+ }, z$1.core.$strip>, z$1.ZodObject<{
5964
+ mergeBaseBranch: z$1.ZodString;
5965
+ type: z$1.ZodLiteral<"all">;
5966
+ }, z$1.core.$strip>, z$1.ZodObject<{
5967
+ sha: z$1.ZodString;
5968
+ type: z$1.ZodLiteral<"commit">;
5969
+ }, z$1.core.$strip>], "type">;
5970
+ }, z$1.core.$strict>;
5971
+ type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
5875
5972
  type EnvironmentStatusResponse = z$1.infer<typeof environmentStatusResponseSchema>;
5876
5973
 
5877
5974
  declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -5913,6 +6010,12 @@ interface HostDaemonCommandDescriptor<Type extends string, Schema extends z$1.Zo
5913
6010
  envLane: HostDaemonCommandEnvironmentLane | null;
5914
6011
  }
5915
6012
  declare const hostDaemonCommandRegistry: {
6013
+ "desktop.broker.prove": HostDaemonCommandDescriptor<"desktop.broker.prove", z$1.ZodObject<{
6014
+ challenge: z$1.ZodString;
6015
+ type: z$1.ZodLiteral<"desktop.broker.prove">;
6016
+ }, z$1.core.$strict>, z$1.ZodObject<{
6017
+ proof: z$1.ZodString;
6018
+ }, z$1.core.$strict>, "onlineRpc", false>;
5916
6019
  "desktop.browser.list_instances": HostDaemonCommandDescriptor<"desktop.browser.list_instances", z$1.ZodObject<{
5917
6020
  type: z$1.ZodLiteral<"desktop.browser.list_instances">;
5918
6021
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -7538,6 +7641,16 @@ declare const hostDaemonCommandRegistry: {
7538
7641
  timeoutMs: z$1.ZodNumber;
7539
7642
  type: z$1.ZodLiteral<"environment.hook.run">;
7540
7643
  }, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "onlineRpc", false>;
7644
+ "environment.inspect_cleanup": HostDaemonCommandDescriptor<"environment.inspect_cleanup", z$1.ZodObject<{
7645
+ environmentId: z$1.ZodString;
7646
+ path: z$1.ZodString;
7647
+ type: z$1.ZodLiteral<"environment.inspect_cleanup">;
7648
+ }, z$1.core.$strict>, z$1.ZodObject<{
7649
+ active: z$1.ZodBoolean;
7650
+ pids: z$1.ZodArray<z$1.ZodNumber>;
7651
+ supported: z$1.ZodBoolean;
7652
+ unreadablePids: z$1.ZodArray<z$1.ZodNumber>;
7653
+ }, z$1.core.$strict>, "onlineRpc", true>;
7541
7654
  "environment.hook.cancel": HostDaemonCommandDescriptor<"environment.hook.cancel", z$1.ZodObject<{
7542
7655
  operationId: z$1.ZodString;
7543
7656
  type: z$1.ZodLiteral<"environment.hook.cancel">;
@@ -8636,6 +8749,7 @@ declare const hostDaemonCommandRegistry: {
8636
8749
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8637
8750
  "workspace.diffFiles": HostDaemonCommandDescriptor<"workspace.diffFiles", z$1.ZodObject<{
8638
8751
  environmentId: z$1.ZodString;
8752
+ ignoreWhitespace: z$1.ZodBoolean;
8639
8753
  maxFiles: z$1.ZodNumber;
8640
8754
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8641
8755
  type: z$1.ZodLiteral<"uncommitted">;
@@ -8664,6 +8778,7 @@ declare const hostDaemonCommandRegistry: {
8664
8778
  }>;
8665
8779
  path: z$1.ZodString;
8666
8780
  previousPath: z$1.ZodNullable<z$1.ZodString>;
8781
+ revision: z$1.ZodString;
8667
8782
  statusLetter: z$1.ZodEnum<{
8668
8783
  A: "A";
8669
8784
  C: "C";
@@ -8694,6 +8809,7 @@ declare const hostDaemonCommandRegistry: {
8694
8809
  }, z$1.core.$strict>], "outcome">, "onlineRpc", true>;
8695
8810
  "workspace.diffPatch": HostDaemonCommandDescriptor<"workspace.diffPatch", z$1.ZodObject<{
8696
8811
  environmentId: z$1.ZodString;
8812
+ ignoreWhitespace: z$1.ZodBoolean;
8697
8813
  maxBytesPerFile: z$1.ZodNumber;
8698
8814
  paths: z$1.ZodArray<z$1.ZodString>;
8699
8815
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -10269,6 +10385,50 @@ declare const publishedPluginRpcMethodSchema: z$1.ZodObject<{
10269
10385
  }, z$1.core.$strip>;
10270
10386
  type PublishedPluginRpcMethod = z$1.infer<typeof publishedPluginRpcMethodSchema>;
10271
10387
 
10388
+ declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
10389
+ text: z$1.ZodString;
10390
+ }, z$1.core.$strip>;
10391
+
10392
+ declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
10393
+ acceptsEmptyInputs: z$1.ZodBoolean;
10394
+ availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10395
+ status: z$1.ZodLiteral<"available">;
10396
+ }, z$1.core.$strip>, z$1.ZodObject<{
10397
+ message: z$1.ZodString;
10398
+ status: z$1.ZodLiteral<"setup-required">;
10399
+ }, z$1.core.$strip>, z$1.ZodObject<{
10400
+ message: z$1.ZodString;
10401
+ status: z$1.ZodLiteral<"unavailable">;
10402
+ }, z$1.core.$strip>], "status">>;
10403
+ description: z$1.ZodNullable<z$1.ZodString>;
10404
+ displayName: z$1.ZodString;
10405
+ environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
10406
+ icon: z$1.ZodNullable<z$1.ZodString>;
10407
+ id: z$1.ZodString;
10408
+ inputs: z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
10409
+ logoUrl: z$1.ZodNullable<z$1.ZodString>;
10410
+ machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
10411
+ machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10412
+ status: z$1.ZodLiteral<"available">;
10413
+ }, z$1.core.$strip>, z$1.ZodObject<{
10414
+ message: z$1.ZodString;
10415
+ status: z$1.ZodLiteral<"setup-required">;
10416
+ }, z$1.core.$strip>, z$1.ZodObject<{
10417
+ message: z$1.ZodString;
10418
+ status: z$1.ZodLiteral<"unavailable">;
10419
+ }, z$1.core.$strip>], "status">>>;
10420
+ machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
10421
+ machineProviderId: z$1.ZodNullable<z$1.ZodString>;
10422
+ machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
10423
+ pluginId: z$1.ZodString;
10424
+ requires: z$1.ZodObject<{
10425
+ gitCheckout: z$1.ZodBoolean;
10426
+ gitRemote: z$1.ZodBoolean;
10427
+ projectCheckout: z$1.ZodBoolean;
10428
+ projectless: z$1.ZodBoolean;
10429
+ }, z$1.core.$strip>;
10430
+ }, z$1.core.$strip>;
10431
+
10272
10432
  declare const machineEnvironmentReplaceSchema: z$1.ZodObject<{
10273
10433
  variables: z$1.ZodArray<z$1.ZodObject<{
10274
10434
  name: z$1.ZodString;
@@ -10491,9 +10651,6 @@ declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
10491
10651
  }>>;
10492
10652
  }, z$1.core.$strip>;
10493
10653
  type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
10494
- declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
10495
- text: z$1.ZodString;
10496
- }, z$1.core.$strip>;
10497
10654
  type SystemVoiceTranscriptionResponse = z$1.infer<typeof systemVoiceTranscriptionResponseSchema>;
10498
10655
  declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
10499
10656
  providers: z$1.ZodArray<z$1.ZodObject<{
@@ -10863,6 +11020,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10863
11020
  timelinePush: "timelinePush";
10864
11021
  }>, z$1.ZodBoolean>;
10865
11022
  featureFlags: z$1.ZodObject<{
11023
+ initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
10866
11024
  placeholder: z$1.ZodBoolean;
10867
11025
  timelineWindowEventBudget: z$1.ZodNumber;
10868
11026
  }, z$1.core.$strip>;
@@ -10872,6 +11030,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10872
11030
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10873
11031
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10874
11032
  earlyAdopter: z$1.ZodBoolean;
11033
+ idleProviderSessionTimeoutMinutes: z$1.ZodLiteral<0 | 5 | 60 | 10 | 30>;
10875
11034
  keepHistoryAfterContextClear: z$1.ZodBoolean;
10876
11035
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10877
11036
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -11351,45 +11510,6 @@ declare const systemInstallCliSkillsResponseSchema: z$1.ZodObject<{
11351
11510
  }, z$1.core.$strip>;
11352
11511
  type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
11353
11512
  type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
11354
- declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
11355
- acceptsEmptyInputs: z$1.ZodBoolean;
11356
- availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11357
- status: z$1.ZodLiteral<"available">;
11358
- }, z$1.core.$strip>, z$1.ZodObject<{
11359
- message: z$1.ZodString;
11360
- status: z$1.ZodLiteral<"setup-required">;
11361
- }, z$1.core.$strip>, z$1.ZodObject<{
11362
- message: z$1.ZodString;
11363
- status: z$1.ZodLiteral<"unavailable">;
11364
- }, z$1.core.$strip>], "status">>;
11365
- description: z$1.ZodNullable<z$1.ZodString>;
11366
- displayName: z$1.ZodString;
11367
- environmentProviderId: z$1.ZodOptional<z$1.ZodString>;
11368
- icon: z$1.ZodNullable<z$1.ZodString>;
11369
- id: z$1.ZodString;
11370
- inputs: z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
11371
- logoUrl: z$1.ZodNullable<z$1.ZodString>;
11372
- machineAcceptsEmptyInputs: z$1.ZodOptional<z$1.ZodBoolean>;
11373
- machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11374
- status: z$1.ZodLiteral<"available">;
11375
- }, z$1.core.$strip>, z$1.ZodObject<{
11376
- message: z$1.ZodString;
11377
- status: z$1.ZodLiteral<"setup-required">;
11378
- }, z$1.core.$strip>, z$1.ZodObject<{
11379
- message: z$1.ZodString;
11380
- status: z$1.ZodLiteral<"unavailable">;
11381
- }, z$1.core.$strip>], "status">>>;
11382
- machineInputs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
11383
- machineProviderId: z$1.ZodNullable<z$1.ZodString>;
11384
- machineProviderPluginId: z$1.ZodOptional<z$1.ZodString>;
11385
- pluginId: z$1.ZodString;
11386
- requires: z$1.ZodObject<{
11387
- gitCheckout: z$1.ZodBoolean;
11388
- gitRemote: z$1.ZodBoolean;
11389
- projectCheckout: z$1.ZodBoolean;
11390
- projectless: z$1.ZodBoolean;
11391
- }, z$1.core.$strip>;
11392
- }, z$1.core.$strip>;
11393
11513
  type SystemEnvironmentProvider = z$1.infer<typeof systemEnvironmentProviderSchema>;
11394
11514
  declare const systemMachineProviderSchema: z$1.ZodObject<{
11395
11515
  acceptsEmptyInputs: z$1.ZodBoolean;
@@ -11589,6 +11709,7 @@ declare const terminalListResponseSchema: z$1.ZodObject<{
11589
11709
  type TerminalListResponse = z$1.infer<typeof terminalListResponseSchema>;
11590
11710
  declare const createTerminalRequestSchema: z$1.ZodObject<{
11591
11711
  cols: z$1.ZodNumber;
11712
+ id: z$1.ZodOptional<z$1.ZodString>;
11592
11713
  rows: z$1.ZodNumber;
11593
11714
  start: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11594
11715
  mode: z$1.ZodLiteral<"shell">;
@@ -12835,6 +12956,21 @@ interface TimelineTurnRow extends TimelineRowBase {
12835
12956
  type TimelineSourceRow = TimelineConversationRow | TimelineWorkRow | TimelineSystemRow;
12836
12957
  type TimelineRow = TimelineSourceRow | TimelineTurnRow;
12837
12958
 
12959
+ declare const threadOpenSplitSchema: z$1.ZodEnum<{
12960
+ down: "down";
12961
+ left: "left";
12962
+ replace: "replace";
12963
+ right: "right";
12964
+ top: "top";
12965
+ }>;
12966
+ declare const threadPaneActionSchema: z$1.ZodEnum<{
12967
+ "clear-spotlight": "clear-spotlight";
12968
+ maximize: "maximize";
12969
+ restore: "restore";
12970
+ spotlight: "spotlight";
12971
+ toggle: "toggle";
12972
+ }>;
12973
+
12838
12974
  declare const createExecutionInputSourcesSchema: z$1.ZodObject<{
12839
12975
  model: z$1.ZodOptional<z$1.ZodEnum<{
12840
12976
  "client-preference": "client-preference";
@@ -13047,6 +13183,7 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
13047
13183
  reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
13048
13184
  sectionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
13049
13185
  sendAt: z$1.ZodOptional<z$1.ZodNumber>;
13186
+ senderThreadId: z$1.ZodOptional<z$1.ZodString>;
13050
13187
  serviceTier: z$1.ZodOptional<z$1.ZodString>;
13051
13188
  sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
13052
13189
  sourceSeqEnd: z$1.ZodOptional<z$1.ZodNumber>;
@@ -13431,6 +13568,7 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
13431
13568
  steer: "steer";
13432
13569
  }>;
13433
13570
  model: z$1.ZodOptional<z$1.ZodString>;
13571
+ originPluginId: z$1.ZodOptional<z$1.ZodString>;
13434
13572
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13435
13573
  "accept-edits": "accept-edits";
13436
13574
  auto: "auto";
@@ -13728,6 +13866,7 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
13728
13866
  }, z$1.core.$strip>], "type">>;
13729
13867
  model: z$1.ZodOptional<z$1.ZodString>;
13730
13868
  operationId: z$1.ZodString;
13869
+ originPluginId: z$1.ZodOptional<z$1.ZodString>;
13731
13870
  permissionMode: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodEnum<{
13732
13871
  "accept-edits": "accept-edits";
13733
13872
  auto: "auto";
@@ -15199,13 +15338,6 @@ declare const reorderPinnedThreadRequestSchema: z$1.ZodObject<{
15199
15338
  previousThreadId: z$1.ZodNullable<z$1.ZodString>;
15200
15339
  }, z$1.core.$strip>;
15201
15340
  type ReorderPinnedThreadRequest = z$1.infer<typeof reorderPinnedThreadRequestSchema>;
15202
- declare const threadOpenSplitSchema: z$1.ZodEnum<{
15203
- down: "down";
15204
- left: "left";
15205
- replace: "replace";
15206
- right: "right";
15207
- top: "top";
15208
- }>;
15209
15341
  type ThreadOpenSplit = z$1.infer<typeof threadOpenSplitSchema>;
15210
15342
  declare const threadOpenFileSchema: z$1.ZodObject<{
15211
15343
  lineNumber: z$1.ZodNullable<z$1.ZodNumber>;
@@ -15220,13 +15352,6 @@ declare const threadOpenResponseSchema: z$1.ZodObject<{
15220
15352
  delivered: z$1.ZodNumber;
15221
15353
  }, z$1.core.$strip>;
15222
15354
  type ThreadOpenResponse = z$1.infer<typeof threadOpenResponseSchema>;
15223
- declare const threadPaneActionSchema: z$1.ZodEnum<{
15224
- "clear-spotlight": "clear-spotlight";
15225
- maximize: "maximize";
15226
- restore: "restore";
15227
- spotlight: "spotlight";
15228
- toggle: "toggle";
15229
- }>;
15230
15355
  type ThreadPaneAction = z$1.infer<typeof threadPaneActionSchema>;
15231
15356
  declare const threadPaneActionResponseSchema: z$1.ZodObject<{
15232
15357
  delivered: z$1.ZodNumber;
@@ -15237,6 +15362,10 @@ declare const threadArchiveAllResponseSchema: z$1.ZodObject<{
15237
15362
  ok: z$1.ZodLiteral<true>;
15238
15363
  }, z$1.core.$strip>;
15239
15364
  type ThreadArchiveAllResponse = z$1.infer<typeof threadArchiveAllResponseSchema>;
15365
+ /**
15366
+ * Reads the `threadIds` list filter. The empty string is the empty set, so a
15367
+ * caller with no IDs gets no threads instead of every thread.
15368
+ */
15240
15369
  declare const threadListQuerySchema: z$1.ZodObject<{
15241
15370
  archived: z$1.ZodOptional<z$1.ZodEnum<{
15242
15371
  false: "false";
@@ -16984,6 +17113,9 @@ type EnvironmentDiffArgs = EnvironmentDiffQuery & {
16984
17113
  environmentId: string;
16985
17114
  signal?: AbortSignal;
16986
17115
  };
17116
+ type EnvironmentDiffFilesArgs = EnvironmentDiffArgs & {
17117
+ ignoreWhitespace?: boolean;
17118
+ };
16987
17119
  type EnvironmentDiffFileArgs = EnvironmentDiffFileQuery & {
16988
17120
  environmentId: string;
16989
17121
  signal?: AbortSignal;
@@ -17003,6 +17135,12 @@ type EnvironmentDiffPatchArgs = EnvironmentDiffPatchRequest & {
17003
17135
  environmentId: string;
17004
17136
  signal?: AbortSignal;
17005
17137
  };
17138
+ type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
17139
+ environmentId: string;
17140
+ };
17141
+ type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
17142
+ environmentId: string;
17143
+ };
17006
17144
  interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
17007
17145
  environmentId: string;
17008
17146
  signal?: AbortSignal;
@@ -17014,6 +17152,7 @@ type EnvironmentDiffBranchesResult = EnvironmentDiffBranchesResponse;
17014
17152
  type EnvironmentDiffFileResult = EnvironmentDiffFileResponse;
17015
17153
  type EnvironmentDiffFilesResult = EnvironmentDiffFilesResponse;
17016
17154
  type EnvironmentDiffPatchResult = EnvironmentDiffPatchResponse;
17155
+ type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
17017
17156
  type EnvironmentGetResult = Environment;
17018
17157
  type EnvironmentMarkPullRequestDraftResult = PullRequestDraftActionResponse;
17019
17158
  type EnvironmentMarkPullRequestReadyResult = PullRequestReadyActionResponse;
@@ -17047,7 +17186,9 @@ interface EnvironmentListProvidersArgs {
17047
17186
  }
17048
17187
  type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
17049
17188
  interface EnvironmentsArea {
17050
- experimental_cleanup(args: EnvironmentActionArgs): Promise<{
17189
+ experimental_cleanup(args: EnvironmentActionArgs & {
17190
+ recover?: boolean;
17191
+ }): Promise<{
17051
17192
  ok: true;
17052
17193
  }>;
17053
17194
  archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
@@ -17055,8 +17196,17 @@ interface EnvironmentsArea {
17055
17196
  diff(args: EnvironmentDiffArgs): Promise<EnvironmentDiffResult>;
17056
17197
  diffBranches(args: EnvironmentDiffBranchesArgs): Promise<EnvironmentDiffBranchesResult>;
17057
17198
  diffFile(args: EnvironmentDiffFileArgs): Promise<EnvironmentDiffFileResult>;
17058
- diffFiles(args: EnvironmentDiffArgs): Promise<EnvironmentDiffFilesResult>;
17199
+ diffFiles(args: EnvironmentDiffFilesArgs): Promise<EnvironmentDiffFilesResult>;
17059
17200
  diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
17201
+ experimental_diffViewed(args: EnvironmentDiffArgs & {
17202
+ paths?: string[];
17203
+ }): Promise<EnvironmentDiffViewedResult>;
17204
+ experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
17205
+ ok: true;
17206
+ }>;
17207
+ experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
17208
+ ok: true;
17209
+ }>;
17060
17210
  get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
17061
17211
  list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
17062
17212
  listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
@@ -17148,6 +17298,7 @@ interface HostGetArgs {
17148
17298
  }
17149
17299
  interface HostDeleteArgs {
17150
17300
  hostId: string;
17301
+ force?: boolean;
17151
17302
  }
17152
17303
  interface HostUpdateArgs extends UpdateHostRequest {
17153
17304
  hostId: string;
@@ -18000,6 +18151,7 @@ interface TerminalListArgs {
18000
18151
  }
18001
18152
  interface TerminalCreateArgs {
18002
18153
  cols: number;
18154
+ id?: CreateTerminalRequest["id"];
18003
18155
  rows: number;
18004
18156
  scope: TerminalCreateScope;
18005
18157
  start?: CreateTerminalRequest["start"];
@@ -18621,6 +18773,20 @@ interface PluginSettingsSectionProps {
18621
18773
  */
18622
18774
  interface ExperimentalAppOverlayProps {
18623
18775
  }
18776
+ type ExperimentalPageTitle = ({
18777
+ title: string;
18778
+ breadcrumbs?: never;
18779
+ } | {
18780
+ title?: never;
18781
+ breadcrumbs: readonly ExperimentalPageBreadcrumb[];
18782
+ }) & {
18783
+ windowTitle?: string;
18784
+ };
18785
+ interface ExperimentalPageBreadcrumb {
18786
+ label: string;
18787
+ /** Absolute app route, starting with a single slash. */
18788
+ to?: string;
18789
+ }
18624
18790
  /** Props passed to a `navPanel` component (it owns its whole route). */
18625
18791
  interface PluginNavPanelProps {
18626
18792
  /**
@@ -18797,9 +18963,14 @@ interface ExperimentalSidebarNavigationItem {
18797
18963
  */
18798
18964
  badge: ExperimentalBadge | null;
18799
18965
  }
18966
+ /**
18967
+ * Where the host opens a sidebar navigation destination: `current` in the
18968
+ * current view, `split` in a pane with browser-tab fallback, `tab` in a new browser tab.
18969
+ */
18970
+ type ExperimentalSidebarNavigationTarget = "current" | "split" | "tab";
18800
18971
  /** How the host should activate a sidebar navigation item. */
18801
18972
  interface ExperimentalSidebarNavigationActivationOptions {
18802
- openInSplit: boolean;
18973
+ target: ExperimentalSidebarNavigationTarget;
18803
18974
  }
18804
18975
  /**
18805
18976
  * Host behavior for sidebar navigation items (see
@@ -18808,22 +18979,28 @@ interface ExperimentalSidebarNavigationActivationOptions {
18808
18979
  */
18809
18980
  interface ExperimentalSidebarNavigationActions {
18810
18981
  /**
18811
- * Run the item's host behavior. Plugin panels close the mobile sidebar
18812
- * drawer; Plugins and Skills swap the list beside the navigation.
18813
- * `openInSplit` opens Plugins and Skills in a browser tab because those
18814
- * destinations do not support splits. New thread and plugin panels retain
18815
- * their split placement rules, including in-place navigation on compact
18816
- * screens. Search remains a command. Disabled or loading items do nothing.
18817
- * Browser-tab activation must run synchronously from a user gesture;
18818
- * native shells handle the new-window request using their existing policy.
18982
+ * Run the item's host behavior at `target`. Plugin panels close the
18983
+ * mobile sidebar drawer; Plugins and Skills swap the list beside the
18984
+ * navigation. `split` opens a pane, or focuses the destination's existing
18985
+ * pane. At the pane limit it replaces the focused pane. If the destination
18986
+ * cannot be a pane, splitting is disabled, the viewport is compact, or no
18987
+ * split layout exists, it opens a browser tab instead. Callers do not need
18988
+ * to check availability. Search remains a
18989
+ * command at every target. Disabled or loading items do nothing. `split` and `tab`
18990
+ * must run synchronously from a user gesture; native shells handle the
18991
+ * new-window request using their existing policy.
18819
18992
  */
18820
18993
  activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
18821
18994
  /**
18822
18995
  * Return to the thread list and the last thread or new thread screen the
18823
18996
  * user had open before visiting Settings, Plugins, Skills, or a plugin
18824
- * panel.
18997
+ * panel. Target `tab` instead opens the new thread screen in a browser
18998
+ * tab, with the same user-gesture requirement as `activate`. Omitting
18999
+ * `options` navigates in place.
18825
19000
  */
18826
- goHome(): void;
19001
+ goHome(options?: {
19002
+ target: Exclude<ExperimentalSidebarNavigationTarget, "split">;
19003
+ }): void;
18827
19004
  /** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
18828
19005
  setVisible(itemId: string, isVisible: boolean): void;
18829
19006
  /**
@@ -19394,6 +19571,25 @@ interface PluginNavPanelRegistration {
19394
19571
  /** URL segment under `/plugins/<pluginId>/`; letters, digits, `-`, `_`. */
19395
19572
  path: string;
19396
19573
  component: ComponentType<PluginNavPanelProps>;
19574
+ /**
19575
+ * Sidebar shown instead of the thread list while this panel's route is
19576
+ * active, in the same section sidebar as Settings, Plugins and Skills. BB
19577
+ * keeps the navigation rail, top chrome and resize handle; in the top-list
19578
+ * layout it adds a "Back to app" row and the panel title, and Back to app
19579
+ * (Escape) returns to the last app page. Receives the page's current
19580
+ * subPath. Other routes keep their usual sidebar. A crash shows a crash
19581
+ * notice until the subPath or plugin generation changes.
19582
+ * Experimental: see docs/api_to_audit.md.
19583
+ */
19584
+ experimental_sidebar?: ComponentType<PluginNavPanelProps>;
19585
+ /**
19586
+ * React hook evaluated in each pane's plugin scope with its current subPath.
19587
+ * Returns text after the panel icon/name and the focused pane's window title.
19588
+ * Null restores the default panel title. May use SDK hooks to load data.
19589
+ * A crash or invalid result clears the title without crashing the page;
19590
+ * navigation or plugin reload retries the hook. Experimental.
19591
+ */
19592
+ experimental_usePageTitle?: (props: PluginNavPanelProps) => ExperimentalPageTitle | null;
19397
19593
  /**
19398
19594
  * Ordered, non-closable tabs shown in this page's host-owned right panel.
19399
19595
  * BB owns selection and persistence and always includes its native Browser
@@ -20390,8 +20586,8 @@ interface PluginThreadListRegistration {
20390
20586
  *
20391
20587
  * - `rail`: a fixed-width column on the sidebar's left edge that stays when
20392
20588
  * the sidebar collapses. bb draws Settings at the bottom of the column;
20393
- * draw Home with `actions.goHome()`. On macOS, wide windows frame the
20394
- * sidebar and page below a title bar.
20589
+ * draw Home with `actions.goHome({ target })`. On macOS, wide windows
20590
+ * frame the sidebar and page below a title bar.
20395
20591
  * - `list` (the default): the area above the thread list. Settings is a
20396
20592
  * footer action, the Settings, Plugins, and Skills lists start with a Back
20397
20593
  * to app row, and collapsing hides the whole sidebar.
@@ -21419,29 +21615,41 @@ interface PluginComposerApi {
21419
21615
  /** Focus the composer caret at the end of the draft. */
21420
21616
  focus(): void;
21421
21617
  /**
21422
- * Submit this composer's draft exactly as pressing Enter would: the same
21423
- * checks and the same action (send, or queue while the thread is busy; a
21424
- * provider handoff creates a new thread). The draft's attachments and
21618
+ * Submit this composer's draft through the composer's own send and steer
21619
+ * handlers, the ones Enter and modifier+Enter run, including a
21620
+ * provider handoff that creates a new thread. The draft's attachments and
21425
21621
  * @-mentions, and — in the new-thread composer — the provider, model,
21426
21622
  * reasoning level, service tier, permission mode and environment the user
21427
21623
  * has selected on screen, all travel with it.
21428
21624
  *
21429
- * While attachments are uploading it waits for them, then checks again; it
21430
- * rejects if an upload fails. Otherwise, when submitting is blocked it
21431
- * rejects with `submittingBlockedReason`, a message safe to show to the
21432
- * user. The queued-message and sent-message editors save edits and reject.
21625
+ * It submits only the draft, so it rejects an empty one, even where the
21626
+ * shortcut would steer the next queued message instead. Otherwise it runs
21627
+ * only when the matching shortcut would. While attachments are uploading it
21628
+ * waits for them, then checks again; it rejects if an upload fails. When
21629
+ * the shortcut could not submit, it rejects with the reason, a message safe
21630
+ * to show to the user. The composer must be on screen. The queued-message
21631
+ * and sent-message editors reject.
21433
21632
  *
21434
- * `sendAt` queues the submission until that time. `experimental_data` is
21435
- * opaque JSON delivered to dispatch hooks together with the calling plugin's
21436
- * id on this initial attempt. Hooks run before operational core waits. If a
21437
- * hook queues the message, its existing plugin wait identifies the owner on
21438
- * later attempts; core does not persist or interpret the opaque data.
21633
+ * Every option combines with the others. `experimental_mode` uses the
21634
+ * names `bb.sdk.threads.send` uses. Without it, submit does what Enter
21635
+ * does for this user, which may be to queue or to steer.
21636
+ * `"queue-if-active"` queues behind the running turn, or starts a turn.
21637
+ * `"steer-if-active"` adds the message to the running turn. Where nothing
21638
+ * can be steered, such as on an idle thread, it starts a turn.
21639
+ * `sendAt` makes the chosen action wait until the given time; a scheduled
21640
+ * steer steers whatever turn is running then. `experimental_data` is
21641
+ * opaque JSON delivered to dispatch hooks together with the calling
21642
+ * plugin's id on this initial attempt. Hooks run before operational core
21643
+ * waits. If a hook queues the message, its existing plugin wait identifies
21644
+ * the owner on later attempts; core does not persist or interpret the
21645
+ * opaque data.
21439
21646
  *
21440
- * Resolves once the host has accepted the submission and cleared the draft.
21441
- * Failures of the underlying request are reported by bb's own submit error
21442
- * handling and restore the draft, exactly as an interactive failure does.
21647
+ * Resolves once the composer has accepted the submission and cleared the
21648
+ * draft. Failures of the underlying request show bb's usual error toast
21649
+ * and restore the draft, exactly as an interactive failure does, and then
21650
+ * reject with the toast's message.
21443
21651
  */
21444
- submit(options: ComposerSubmitOptions): Promise<void>;
21652
+ submit(options?: ComposerSubmitOptions): Promise<void>;
21445
21653
  /**
21446
21654
  * Set this composer's pickers as if each value had been picked by hand.
21447
21655
  *
@@ -21520,20 +21728,22 @@ interface ComposerSelection {
21520
21728
  serviceTier?: ServiceTier;
21521
21729
  permissionMode?: PermissionMode;
21522
21730
  }
21523
- /**
21524
- * What `submit` does differently from pressing Enter.
21525
- *
21526
- * `experimental_data` is opaque JSON delivered to dispatch hooks. The runtime
21527
- * associates it with the calling plugin automatically for the initial
21528
- * dispatch attempt.
21529
- */
21530
- type ComposerSubmitOptions = {
21531
- sendAt: number;
21731
+ /** What `submit` adds to pressing Enter. Every field combines with the others. */
21732
+ interface ComposerSubmitOptions {
21733
+ /**
21734
+ * `"queue-if-active"` queues behind the running turn and
21735
+ * `"steer-if-active"` adds to it; both start a turn when none is running.
21736
+ * Omitted, it does what Enter does for this user.
21737
+ */
21738
+ experimental_mode?: "queue-if-active" | "steer-if-active";
21739
+ /** Epoch ms in the future; the action waits until then. */
21740
+ sendAt?: number;
21741
+ /**
21742
+ * Opaque JSON delivered to dispatch hooks with the calling plugin's id on
21743
+ * the initial dispatch attempt.
21744
+ */
21532
21745
  experimental_data?: JsonValue$1;
21533
- } | {
21534
- experimental_data: JsonValue$1;
21535
- sendAt?: never;
21536
- };
21746
+ }
21537
21747
  /**
21538
21748
  * A consumer-supplied action on the messages of one `ThreadChat` instance,
21539
21749
  * rendered in the embedded timeline's per-message action bar alongside the
@@ -22052,12 +22262,96 @@ interface BbNavigate {
22052
22262
  terminalId: string;
22053
22263
  }): Promise<boolean>;
22054
22264
  }
22265
+ /**
22266
+ * BB live reads are fresh for two seconds, with no polling when freshness expires.
22267
+ * Focus does not refetch while BB's realtime connection is healthy. While
22268
+ * disconnected, focus/browser-online events recheck stale active reads; BB
22269
+ * reconnect invalidates all plugin reads regardless of freshness. Page hiding
22270
+ * cancels active attempts; resuming restarts those cancelled reads.
22271
+ * Invalidations refresh immediately. Network/abort failures retry twice at
22272
+ * 250 ms; HTTP failures, including refusals, do not retry. Writes never retry
22273
+ * automatically.
22274
+ */
22275
+ interface ExperimentalRpcQueryState<T> {
22276
+ /** 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. */
22277
+ data: T | undefined;
22278
+ /** Last completed read failure, or null. Success clears it; retrying a first load clears the old error while loading. Refresh errors preserve data. */
22279
+ error: experimental_PluginRpcCallError | null;
22280
+ /** 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. */
22281
+ isLoading: boolean;
22282
+ /** A read attempt is active, including background refreshes. Keyed consumers share this activity for their method; offline-paused reads are not fetching. */
22283
+ isFetching: boolean;
22284
+ /** 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. */
22285
+ refetch(): Promise<void>;
22286
+ }
22287
+ interface ExperimentalRpcKeyedQueryState<T, Selection = Record<string, T>> extends ExperimentalRpcQueryState<Selection> {
22288
+ }
22289
+ interface ExperimentalRpcQueryOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
22290
+ contract: Contract;
22291
+ pluginId?: string;
22292
+ method: Method;
22293
+ input: StandardSchemaV1InferInput<Contract[Method]["input"]>;
22294
+ enabled?: boolean;
22295
+ }
22296
+ /**
22297
+ * Predict loaded reads with pure, synchronous update callbacks. Callbacks passed
22298
+ * to `update` and `updateKey` may run many times as pending predictions replay
22299
+ * over a new confirmed base or another prediction rolls back. Return a new
22300
+ * value without mutating `current` or captured inputs, performing side effects,
22301
+ * or generating IDs, timestamps, or random values. Generate any such values
22302
+ * once before calling `mutate` and include them in the mutation input.
22303
+ */
22304
+ interface ExperimentalRpcOptimisticCache<Contract extends PluginRpcContract> {
22305
+ update<Method extends keyof Contract & string>(method: Method, input: StandardSchemaV1InferInput<Contract[Method]["input"]>, update: (current: PluginRpcResult<Contract[Method]>) => PluginRpcResult<Contract[Method]>): void;
22306
+ 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;
22307
+ }
22308
+ interface ExperimentalRpcMutationOptions<Contract extends PluginRpcContract, Method extends keyof Contract & string> {
22309
+ contract: Contract;
22310
+ pluginId?: string;
22311
+ method: Method;
22312
+ /** Predict loaded reads synchronously; shared predictions survive accepted writes whose refresh fails. */
22313
+ optimistic?(input: StandardSchemaV1InferInput<Contract[Method]["input"]>, cache: ExperimentalRpcOptimisticCache<Contract>): void;
22314
+ }
22315
+ /**
22316
+ * One mutation hook's state. `mutate` calls the RPC, invalidates the
22317
+ * response's `invalidated` tags on this client immediately, and resolves when
22318
+ * the server acknowledges the write. Matched reads refresh in the background. `error` holds the last failure
22319
+ * until the next `mutate` or `reset`.
22320
+ */
22321
+ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
22322
+ /** Resolves at write acknowledgement; rejects with experimental_PluginRpcCallError. Refreshes continue in the background without releasing predictions before confirmed reads. */
22323
+ mutate(...args: PluginRpcCallArgs<Method>): Promise<PluginRpcResult<Method>>;
22324
+ isPending: boolean;
22325
+ /** Inputs of every pending call made by this hook, until server acknowledgement. Refreshes are excluded; other hook instances are excluded. */
22326
+ pendingInputs: readonly StandardSchemaV1InferInput<Method["input"]>[];
22327
+ error: experimental_PluginRpcCallError | null;
22328
+ reset(): void;
22329
+ }
22055
22330
  /**
22056
22331
  * Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
22057
22332
  * the real implementation and `satisfies` this interface; `bb plugin build`
22058
22333
  * shims the specifier to that object on `globalThis.__bbPluginRuntime`.
22059
22334
  */
22060
22335
  interface PluginSdkApp {
22336
+ experimental_PluginRpcCallError: typeof experimental_PluginRpcCallError;
22337
+ experimental_useRpcRefresh(): {
22338
+ refresh(): void;
22339
+ isRefreshing: boolean;
22340
+ };
22341
+ /** Read tagged plugin data through BB's shared query cache and realtime lifecycle. */
22342
+ experimental_useRpcQuery<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>): ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
22343
+ /** Call a mutating RPC through BB's query client; pending until the server acknowledges the write; matched reads refresh in the background. */
22344
+ experimental_useRpcMutation<Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>): ExperimentalRpcMutationState<Contract[Method]>;
22345
+ /** Cache each key independently and batch missing or invalidated keys in the same render. */
22346
+ experimental_useRpcKeyedQuery<Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
22347
+ contract: Contract;
22348
+ pluginId?: string;
22349
+ method: Method;
22350
+ keys: readonly string[];
22351
+ enabled?: boolean;
22352
+ /** Pure projection; the selection type is inferred from its return value. */
22353
+ select?(data: Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>): Selection;
22354
+ }): ExperimentalRpcKeyedQueryState<ExperimentalRpcKeyedValue<Contract[Method]>, Selection>;
22061
22355
  experimental_Icon: ComponentType<ExperimentalIconProps>;
22062
22356
  /**
22063
22357
  * Render provider slot override, then its logo, then its glyph, then fallback.
@@ -22445,6 +22739,20 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
22445
22739
  declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
22446
22740
  declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
22447
22741
  declare const experimental_Diff: react.ComponentType<DiffProps>;
22742
+ declare const experimental_useRpcQuery: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>) => ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
22743
+ declare const experimental_useRpcKeyedQuery: <Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
22744
+ contract: Contract;
22745
+ pluginId?: string;
22746
+ method: Method;
22747
+ keys: readonly string[];
22748
+ enabled?: boolean;
22749
+ select?(data: Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>): Selection;
22750
+ }) => ExperimentalRpcKeyedQueryState<ExperimentalRpcKeyedValue<Contract[Method]>, Selection>;
22751
+ declare const experimental_useRpcMutation: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcMutationOptions<Contract, Method>) => ExperimentalRpcMutationState<Contract[Method]>;
22752
+ declare const experimental_useRpcRefresh: () => {
22753
+ refresh(): void;
22754
+ isRefreshing: boolean;
22755
+ };
22448
22756
  declare const useRpc: <Contract extends PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract<StandardSchemaV1<unknown, unknown>, StandardSchemaV1<unknown, unknown>>>>>() => PluginRpcClient<Contract>;
22449
22757
  declare const useRealtime: (channel: string, handler: (payload: unknown) => void) => void;
22450
22758
  declare const useRealtimeConnectionState: () => PluginRealtimeConnectionState;
@@ -22486,5 +22794,5 @@ declare const experimental_useCodeTheme: () => PluginCodeThemeState;
22486
22794
  declare const experimental_copyToClipboard: (content: ExperimentalClipboardContent) => Promise<boolean>;
22487
22795
  declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => Promise<ExperimentalSaveFileOutcome>;
22488
22796
 
22489
- export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
22490
- export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, 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$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
22797
+ export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_Diff, experimental_FileLink, experimental_Icon, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginRpcCallError, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadStatusGlyph, experimental_VoiceInputTextarea, experimental_copyToClipboard, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useThreadActionRegistrations, experimental_useThreadActions, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
22798
+ export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, 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$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };