@get-bb/plugin-sdk 0.6.54 → 0.6.60

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.
@@ -118,6 +118,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
118
118
  streamerMode: z$1.ZodBoolean;
119
119
  summarizeShellCommands: z$1.ZodBoolean;
120
120
  telemetryEnabled: z$1.ZodBoolean;
121
+ terminalCopyOnSelect: z$1.ZodBoolean;
121
122
  }, z$1.core.$strict>;
122
123
  type AppSettings = z$1.infer<typeof appSettingsSchema>;
123
124
  declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
@@ -144,6 +145,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
144
145
  streamerMode: z$1.ZodBoolean;
145
146
  summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
146
147
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
148
+ terminalCopyOnSelect: z$1.ZodOptional<z$1.ZodBoolean>;
147
149
  }, z$1.core.$strict>, z$1.ZodObject<{
148
150
  allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
149
151
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -167,6 +169,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
167
169
  streamerMode: z$1.ZodBoolean;
168
170
  summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
169
171
  telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
172
+ terminalCopyOnSelect: z$1.ZodOptional<z$1.ZodBoolean>;
170
173
  }, z$1.core.$strict>]>;
171
174
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
172
175
 
@@ -380,7 +383,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
380
383
  id: z$1.ZodOptional<z$1.ZodString>;
381
384
  metadata: z$1.ZodOptional<z$1.ZodObject<{
382
385
  backgroundActivityChanged: z$1.ZodOptional<z$1.ZodBoolean>;
383
- eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string>>>>>;
386
+ eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/mainRun/updated" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/mainRun/updated" | "turn/plan/updated" | "turn/started", string>>>>>;
384
387
  hasPendingInteraction: z$1.ZodOptional<z$1.ZodBoolean>;
385
388
  projectId: z$1.ZodOptional<z$1.ZodString>;
386
389
  statusChange: z$1.ZodOptional<z$1.ZodObject<{
@@ -861,6 +864,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
861
864
  movePath: z$1.ZodOptional<z$1.ZodString>;
862
865
  path: z$1.ZodString;
863
866
  }, z$1.core.$strip>>;
867
+ error: z$1.ZodOptional<z$1.ZodString>;
864
868
  id: z$1.ZodString;
865
869
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
866
870
  presentation: z$1.ZodOptional<z$1.ZodObject<{
@@ -1627,6 +1631,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1627
1631
  movePath: z$1.ZodOptional<z$1.ZodString>;
1628
1632
  path: z$1.ZodString;
1629
1633
  }, z$1.core.$strip>>;
1634
+ error: z$1.ZodOptional<z$1.ZodString>;
1630
1635
  id: z$1.ZodString;
1631
1636
  parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
1632
1637
  presentation: z$1.ZodOptional<z$1.ZodObject<{
@@ -2687,6 +2692,14 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2687
2692
  providerThreadId: z$1.ZodString;
2688
2693
  threadId: z$1.ZodString;
2689
2694
  type: z$1.ZodLiteral<"turn/plan/updated">;
2695
+ }, z$1.core.$strip>, z$1.ZodObject<{
2696
+ providerThreadId: z$1.ZodString;
2697
+ state: z$1.ZodEnum<{
2698
+ idle: "idle";
2699
+ running: "running";
2700
+ }>;
2701
+ threadId: z$1.ZodString;
2702
+ type: z$1.ZodLiteral<"turn/mainRun/updated">;
2690
2703
  }, z$1.core.$strip>, z$1.ZodObject<{
2691
2704
  diff: z$1.ZodOptional<z$1.ZodString>;
2692
2705
  providerThreadId: z$1.ZodString;
@@ -3077,6 +3090,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3077
3090
  "child-interrupted": "child-interrupted";
3078
3091
  "child-needs-attention": "child-needs-attention";
3079
3092
  "child-outcome-batch": "child-outcome-batch";
3093
+ "environment-directory-updated": "environment-directory-updated";
3080
3094
  "ownership-assigned": "ownership-assigned";
3081
3095
  "ownership-removed": "ownership-removed";
3082
3096
  "tool-result-delivered": "tool-result-delivered";
@@ -3127,6 +3141,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3127
3141
  kind: z$1.ZodLiteral<"tool-call">;
3128
3142
  suppress: z$1.ZodBoolean;
3129
3143
  toolName: z$1.ZodString;
3144
+ }, z$1.core.$strip>, z$1.ZodObject<{
3145
+ kind: z$1.ZodLiteral<"directory">;
3146
+ path: z$1.ZodString;
3130
3147
  }, z$1.core.$strip>], "kind">>>;
3131
3148
  target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3132
3149
  kind: z$1.ZodLiteral<"thread-start">;
@@ -8081,6 +8098,22 @@ declare const hostDaemonCommandRegistry: {
8081
8098
  kind: z$1.ZodLiteral<"artifact">;
8082
8099
  }, z$1.core.$strict>;
8083
8100
  }, z$1.core.$strict>;
8101
+ contributedEnv: z$1.ZodArray<z$1.ZodObject<{
8102
+ name: z$1.ZodString;
8103
+ reason: z$1.ZodString;
8104
+ source: z$1.ZodUnion<readonly [z$1.ZodObject<{
8105
+ plugin: z$1.ZodString;
8106
+ }, z$1.core.$strict>, z$1.ZodObject<{
8107
+ core: z$1.ZodEnum<{
8108
+ "machine-environment": "machine-environment";
8109
+ "machine-git": "machine-git";
8110
+ "project-environment": "project-environment";
8111
+ }>;
8112
+ }, z$1.core.$strict>]>;
8113
+ value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
8114
+ serverPath: z$1.ZodString;
8115
+ }, z$1.core.$strict>]>;
8116
+ }, z$1.core.$strict>>;
8084
8117
  cwd: z$1.ZodOptional<z$1.ZodString>;
8085
8118
  providerId: z$1.ZodString;
8086
8119
  type: z$1.ZodLiteral<"provider.list_models">;
@@ -8168,6 +8201,43 @@ declare const hostDaemonCommandRegistry: {
8168
8201
  }, z$1.core.$strip>>>;
8169
8202
  }, z$1.core.$strip>>;
8170
8203
  }, z$1.core.$strip>, "onlineRpc", true>;
8204
+ "provider.list_commands": HostDaemonCommandDescriptor<"provider.list_commands", z$1.ZodObject<{
8205
+ bridgeLaunch: z$1.ZodObject<{
8206
+ capabilities: z$1.ZodObject<{
8207
+ fork: z$1.ZodEnum<{
8208
+ checkpoint: "checkpoint";
8209
+ none: "none";
8210
+ tip: "tip";
8211
+ }>;
8212
+ permissionModes: z$1.ZodArray<z$1.ZodEnum<{
8213
+ "accept-edits": "accept-edits";
8214
+ auto: "auto";
8215
+ full: "full";
8216
+ }>>;
8217
+ providerInstallation: z$1.ZodBoolean;
8218
+ supportsServiceTier: z$1.ZodBoolean;
8219
+ supportsThreadArchive: z$1.ZodBoolean;
8220
+ supportsThreadRename: z$1.ZodBoolean;
8221
+ }, z$1.core.$strict>;
8222
+ envPassthrough: z$1.ZodArray<z$1.ZodString>;
8223
+ pluginId: z$1.ZodString;
8224
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
8225
+ source: z$1.ZodObject<{
8226
+ byteLength: z$1.ZodNumber;
8227
+ digest: z$1.ZodString;
8228
+ kind: z$1.ZodLiteral<"artifact">;
8229
+ }, z$1.core.$strict>;
8230
+ }, z$1.core.$strict>;
8231
+ cwd: z$1.ZodNullable<z$1.ZodString>;
8232
+ providerId: z$1.ZodString;
8233
+ type: z$1.ZodLiteral<"provider.list_commands">;
8234
+ }, z$1.core.$strict>, z$1.ZodObject<{
8235
+ commands: z$1.ZodArray<z$1.ZodObject<{
8236
+ description: z$1.ZodString;
8237
+ inputHint: z$1.ZodOptional<z$1.ZodString>;
8238
+ name: z$1.ZodString;
8239
+ }, z$1.core.$strip>>;
8240
+ }, z$1.core.$strip>, "onlineRpc", true>;
8171
8241
  "provider.health": HostDaemonCommandDescriptor<"provider.health", z$1.ZodObject<{
8172
8242
  bridgeLaunch: z$1.ZodObject<{
8173
8243
  capabilities: z$1.ZodObject<{
@@ -10820,6 +10890,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10820
10890
  streamerMode: z$1.ZodBoolean;
10821
10891
  summarizeShellCommands: z$1.ZodBoolean;
10822
10892
  telemetryEnabled: z$1.ZodBoolean;
10893
+ terminalCopyOnSelect: z$1.ZodBoolean;
10823
10894
  }, z$1.core.$strict>;
10824
10895
  hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
10825
10896
  keybindingOverrides: z$1.ZodArray<z$1.ZodObject<{
@@ -11696,6 +11767,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11696
11767
  "child-interrupted": "child-interrupted";
11697
11768
  "child-needs-attention": "child-needs-attention";
11698
11769
  "child-outcome-batch": "child-outcome-batch";
11770
+ "environment-directory-updated": "environment-directory-updated";
11699
11771
  "ownership-assigned": "ownership-assigned";
11700
11772
  "ownership-removed": "ownership-removed";
11701
11773
  "tool-result-delivered": "tool-result-delivered";
@@ -11746,6 +11818,9 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
11746
11818
  kind: z$1.ZodLiteral<"tool-call">;
11747
11819
  suppress: z$1.ZodBoolean;
11748
11820
  toolName: z$1.ZodString;
11821
+ }, z$1.core.$strip>, z$1.ZodObject<{
11822
+ kind: z$1.ZodLiteral<"directory">;
11823
+ path: z$1.ZodString;
11749
11824
  }, z$1.core.$strip>], "kind">>;
11750
11825
  text: z$1.ZodString;
11751
11826
  threadId: z$1.ZodString;
@@ -14399,6 +14474,7 @@ type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
14399
14474
  declare const threadResponseSchema: z$1.ZodObject<{
14400
14475
  activeBackgroundAgentCount: z$1.ZodNumber;
14401
14476
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
14477
+ canEditMessages: z$1.ZodBoolean;
14402
14478
  canRestoreEnvironment: z$1.ZodBoolean;
14403
14479
  canSpawnChild: z$1.ZodBoolean;
14404
14480
  createdAt: z$1.ZodNumber;
@@ -14482,6 +14558,7 @@ type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListRespo
14482
14558
  declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14483
14559
  activeBackgroundAgentCount: z$1.ZodNumber;
14484
14560
  archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
14561
+ canEditMessages: z$1.ZodBoolean;
14485
14562
  canRestoreEnvironment: z$1.ZodBoolean;
14486
14563
  canSpawnChild: z$1.ZodBoolean;
14487
14564
  createdAt: z$1.ZodNumber;
@@ -15350,6 +15427,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15350
15427
  "child-interrupted": "child-interrupted";
15351
15428
  "child-needs-attention": "child-needs-attention";
15352
15429
  "child-outcome-batch": "child-outcome-batch";
15430
+ "environment-directory-updated": "environment-directory-updated";
15353
15431
  "ownership-assigned": "ownership-assigned";
15354
15432
  "ownership-removed": "ownership-removed";
15355
15433
  "tool-result-delivered": "tool-result-delivered";
@@ -15400,6 +15478,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15400
15478
  kind: z$1.ZodLiteral<"tool-call">;
15401
15479
  suppress: z$1.ZodBoolean;
15402
15480
  toolName: z$1.ZodString;
15481
+ }, z$1.core.$strip>, z$1.ZodObject<{
15482
+ kind: z$1.ZodLiteral<"directory">;
15483
+ path: z$1.ZodString;
15403
15484
  }, z$1.core.$strip>], "kind">>;
15404
15485
  text: z$1.ZodString;
15405
15486
  threadId: z$1.ZodString;
@@ -15535,6 +15616,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15535
15616
  "child-interrupted": "child-interrupted";
15536
15617
  "child-needs-attention": "child-needs-attention";
15537
15618
  "child-outcome-batch": "child-outcome-batch";
15619
+ "environment-directory-updated": "environment-directory-updated";
15538
15620
  "ownership-assigned": "ownership-assigned";
15539
15621
  "ownership-removed": "ownership-removed";
15540
15622
  "tool-result-delivered": "tool-result-delivered";
@@ -15585,6 +15667,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15585
15667
  kind: z$1.ZodLiteral<"tool-call">;
15586
15668
  suppress: z$1.ZodBoolean;
15587
15669
  toolName: z$1.ZodString;
15670
+ }, z$1.core.$strip>, z$1.ZodObject<{
15671
+ kind: z$1.ZodLiteral<"directory">;
15672
+ path: z$1.ZodString;
15588
15673
  }, z$1.core.$strip>], "kind">>;
15589
15674
  text: z$1.ZodString;
15590
15675
  threadId: z$1.ZodString;
@@ -15720,6 +15805,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15720
15805
  "child-interrupted": "child-interrupted";
15721
15806
  "child-needs-attention": "child-needs-attention";
15722
15807
  "child-outcome-batch": "child-outcome-batch";
15808
+ "environment-directory-updated": "environment-directory-updated";
15723
15809
  "ownership-assigned": "ownership-assigned";
15724
15810
  "ownership-removed": "ownership-removed";
15725
15811
  "tool-result-delivered": "tool-result-delivered";
@@ -15770,6 +15856,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
15770
15856
  kind: z$1.ZodLiteral<"tool-call">;
15771
15857
  suppress: z$1.ZodBoolean;
15772
15858
  toolName: z$1.ZodString;
15859
+ }, z$1.core.$strip>, z$1.ZodObject<{
15860
+ kind: z$1.ZodLiteral<"directory">;
15861
+ path: z$1.ZodString;
15773
15862
  }, z$1.core.$strip>], "kind">>;
15774
15863
  text: z$1.ZodString;
15775
15864
  threadId: z$1.ZodString;
@@ -18721,8 +18810,12 @@ interface ExperimentalSidebarNavigationActions {
18721
18810
  /**
18722
18811
  * Run the item's host behavior. Plugin panels close the mobile sidebar
18723
18812
  * drawer; Plugins and Skills swap the list beside the navigation.
18724
- * `openInSplit` is ignored where splits are unavailable, and disabled or
18725
- * loading items do nothing.
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.
18726
18819
  */
18727
18820
  activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
18728
18821
  /**
@@ -20340,7 +20433,7 @@ interface PluginFileOpenerRegistration {
20340
20433
  id: string;
20341
20434
  /** Label in the "Open with" menu (e.g. "Notes editor"). */
20342
20435
  title: string;
20343
- /** Lowercase extensions without the dot (e.g. ["md", "mdx"]). */
20436
+ /** Lowercase alphanumeric extensions without the dot; single underscores or hyphens may separate segments. */
20344
20437
  extensions: readonly string[];
20345
20438
  component: ComponentType<PluginFileOpenerProps>;
20346
20439
  }
@@ -142,6 +142,7 @@ type Project = z.infer<typeof projectSchema>;
142
142
  declare const threadResponseSchema: z.ZodObject<{
143
143
  activeBackgroundAgentCount: z.ZodNumber;
144
144
  archivedAt: z.ZodNullable<z.ZodNumber>;
145
+ canEditMessages: z.ZodBoolean;
145
146
  canRestoreEnvironment: z.ZodBoolean;
146
147
  canSpawnChild: z.ZodBoolean;
147
148
  createdAt: z.ZodNumber;
@@ -267,7 +268,8 @@ type PluginEnvironmentProviderCreateResult = {
267
268
  status: "created";
268
269
  path: string;
269
270
  ownsPath: boolean;
270
- mergeBaseBranch?: string;
271
+ /** Ref the workspace's changes are compared against. Null clears the value recorded on a reused environment; omit to keep it. */
272
+ mergeBaseBranch?: string | null;
271
273
  resource?: JsonValue$1;
272
274
  } | {
273
275
  status: "failed";
@@ -623,6 +623,15 @@ interface PortableOutputChildProcess extends PortableChildProcess {
623
623
  }
624
624
  declare function spawnPortableOutputProcess(request: PortablePipedSpawnRequest): PortableOutputChildProcess;
625
625
 
626
+ type VcsProcessPriority = "background" | "interactive" | "status";
627
+ interface VcsProcessOptions {
628
+ priority?: VcsProcessPriority;
629
+ signal?: AbortSignal;
630
+ slots?: number;
631
+ }
632
+ type Command = "gh" | "git";
633
+ declare function runVcsProcess<T>(command: Command, args: readonly string[], operation: () => Promise<T>, options?: VcsProcessOptions): Promise<T>;
634
+
626
635
  interface ProcessWithCwd {
627
636
  pid: number;
628
637
  cwd: string;
@@ -666,5 +675,5 @@ interface ExperimentalProcessIdentity {
666
675
  */
667
676
  declare function experimental_readProcessIdentity(pid: number): Promise<ExperimentalProcessIdentity | null>;
668
677
 
669
- export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
670
- export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
678
+ export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, runVcsProcess as experimental_runVcsProcess, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
679
+ export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, VcsProcessOptions as ExperimentalVcsProcessOptions, VcsProcessPriority as ExperimentalVcsProcessPriority, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
@@ -480,6 +480,7 @@ type ExecutionInputFieldSource = CallerExecutionInputSource;
480
480
  declare const threadResponseSchema: z.ZodObject<{
481
481
  activeBackgroundAgentCount: z.ZodNumber;
482
482
  archivedAt: z.ZodNullable<z.ZodNumber>;
483
+ canEditMessages: z.ZodBoolean;
483
484
  canRestoreEnvironment: z.ZodBoolean;
484
485
  canSpawnChild: z.ZodBoolean;
485
486
  createdAt: z.ZodNumber;
@@ -605,7 +606,8 @@ type PluginEnvironmentProviderCreateResult = {
605
606
  status: "created";
606
607
  path: string;
607
608
  ownsPath: boolean;
608
- mergeBaseBranch?: string;
609
+ /** Ref the workspace's changes are compared against. Null clears the value recorded on a reused environment; omit to keep it. */
610
+ mergeBaseBranch?: string | null;
609
611
  resource?: JsonValue$2;
610
612
  } | {
611
613
  status: "failed";
@@ -5,7 +5,9 @@
5
5
  // Confused by the API, or need a symbol that isn't here? Clone the BB repo
6
6
  // and read the real source: https://github.com/get-bb/bb
7
7
 
8
+ import * as zod from 'zod';
8
9
  import { z } from 'zod';
10
+ import * as zod_v4_core from 'zod/v4/core';
9
11
 
10
12
  interface JsonObject {
11
13
  [key: string]: JsonValue;
@@ -299,8 +301,6 @@ declare const providerUsageResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
301
  }, z.core.$loose>], "supported">;
300
302
  type ProviderUsageResult = z.infer<typeof providerUsageResultSchema>;
301
303
 
302
- declare const experimental_providerBridge: ProviderBridgeEntry;
303
-
304
304
  interface AcpMaintenanceDialect {
305
305
  loginCommand: string;
306
306
  installer(): {
@@ -462,7 +462,6 @@ type AcpAgentProbe = {
462
462
  reason: string;
463
463
  };
464
464
  declare function probeAcpAgent(request: AcpAgentProbeRequest): Promise<AcpAgentProbe>;
465
- declare const acpAgentProbeSchema: z.ZodType<AcpAgentProbe>;
466
465
 
467
466
  declare const acpLaunchSpecSchema: z.ZodObject<{
468
467
  args: z.ZodArray<z.ZodString>;
@@ -530,10 +529,7 @@ interface AgentModelCatalog {
530
529
  }
531
530
 
532
531
  /**
533
- * `@get-bb/plugin-sdk/provider-bridge/acp-next` — a preview of the rebuilt
534
- * ACP bridge kit, published beside `provider-bridge/acp` until it replaces it
535
- * (docs/api_to_audit.md). The exports match the original kit, plus
536
- * `experimental_registerAcpDialect`.
532
+ * `@get-bb/plugin-sdk/provider-bridge/acp` — the published ACP bridge kit.
537
533
  *
538
534
  * The Agent Client Protocol (https://agentclientprotocol.com) is one wire
539
535
  * protocol spoken by many agents, so bb runs all of them through one generic
@@ -545,7 +541,7 @@ interface AgentModelCatalog {
545
541
  * ```ts
546
542
  * // host.ts (the plugin's `bb.host` entry)
547
543
  * export { experimental_acpProviderBridge as experimental_providerBridge }
548
- * from "@get-bb/plugin-sdk/provider-bridge/acp-next";
544
+ * from "@get-bb/plugin-sdk/provider-bridge/acp";
549
545
  *
550
546
  * // server.ts
551
547
  * bb.providers.register({
@@ -553,7 +549,7 @@ interface AgentModelCatalog {
553
549
  * displayName: "Amp",
554
550
  * experimental_bridgeOptions: {
555
551
  * acpLaunchSpec: { displayName: "Amp", command: "amp", args: ["acp"], env: {} },
556
- * acpDialect: "generic",
552
+ * acpDialect: "acp",
557
553
  * },
558
554
  * // …the rest of the declaration
559
555
  * })
@@ -574,7 +570,7 @@ interface AgentModelCatalog {
574
570
  * // host.ts
575
571
  * import {
576
572
  * experimental_registerAcpDialect,
577
- * } from "@get-bb/plugin-sdk/provider-bridge/acp-next";
573
+ * } from "@get-bb/plugin-sdk/provider-bridge/acp";
578
574
  *
579
575
  * experimental_registerAcpDialect({
580
576
  * id: "amp",
@@ -603,5 +599,69 @@ interface AgentModelCatalog {
603
599
  */
604
600
  type AcpAgentProfile = AcpLaunchSpec;
605
601
 
606
- export { acpAgentProbeSchema as experimental_acpAgentProbeSchema, acpLaunchSpecSchema as experimental_acpLaunchSpecSchema, experimental_providerBridge as experimental_acpProviderBridge, probeAcpAgent as experimental_probeAcpAgent, registerAcpDialect as experimental_registerAcpDialect };
602
+ /** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
603
+ declare const experimental_acpAgentProbeSchema: zod.ZodType<AcpAgentProbe, unknown, zod_v4_core.$ZodTypeInternals<AcpAgentProbe, unknown>>;
604
+ /** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
605
+ declare const experimental_acpLaunchSpecSchema: zod.ZodObject<{
606
+ args: zod.ZodArray<zod.ZodString>;
607
+ command: zod.ZodString;
608
+ cwd: zod.ZodOptional<zod.ZodString>;
609
+ displayName: zod.ZodString;
610
+ env: zod.ZodRecord<zod.ZodString, zod.ZodString>;
611
+ modelCli: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
612
+ listArgs: zod.ZodArray<zod.ZodString>;
613
+ primaryModels: zod.ZodArray<zod.ZodString>;
614
+ selectFlag: zod.ZodOptional<zod.ZodString>;
615
+ }, zod_v4_core.$strict>, zod.ZodTransform<{
616
+ listArgs: string[];
617
+ primaryModels: string[];
618
+ selectFlag?: string | undefined;
619
+ } | undefined, {
620
+ listArgs: string[];
621
+ primaryModels: string[];
622
+ selectFlag?: string | undefined;
623
+ }>>>;
624
+ nativeReasoning: zod.ZodOptional<zod.ZodObject<{
625
+ configId: zod.ZodString;
626
+ defaultLevel: zod.ZodOptional<zod.ZodString>;
627
+ levelValues: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
628
+ supportedLevels: zod.ZodArray<zod.ZodString>;
629
+ }, zod_v4_core.$strict>>;
630
+ nativeSkillRoots: zod.ZodOptional<zod.ZodObject<{
631
+ project: zod.ZodDefault<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodObject<{
632
+ ancestors: zod.ZodOptional<zod.ZodBoolean>;
633
+ namePrefix: zod.ZodOptional<zod.ZodString>;
634
+ path: zod.ZodString;
635
+ recursive: zod.ZodOptional<zod.ZodBoolean>;
636
+ skipIfManifest: zod.ZodOptional<zod.ZodString>;
637
+ }, zod_v4_core.$strict>]>>>;
638
+ user: zod.ZodDefault<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodObject<{
639
+ ancestors: zod.ZodOptional<zod.ZodBoolean>;
640
+ namePrefix: zod.ZodOptional<zod.ZodString>;
641
+ path: zod.ZodString;
642
+ recursive: zod.ZodOptional<zod.ZodBoolean>;
643
+ skipIfManifest: zod.ZodOptional<zod.ZodString>;
644
+ }, zod_v4_core.$strict>]>>>;
645
+ }, zod_v4_core.$strict>>;
646
+ permissionCli: zod.ZodOptional<zod.ZodObject<{
647
+ full: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
648
+ insertAfterArgs: zod.ZodOptional<zod.ZodNumber>;
649
+ readonly: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
650
+ workspaceWrite: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
651
+ }, zod_v4_core.$strict>>;
652
+ reasoningCli: zod.ZodOptional<zod.ZodObject<{
653
+ defaultLevel: zod.ZodOptional<zod.ZodString>;
654
+ flag: zod.ZodString;
655
+ levelValues: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
656
+ supportedLevels: zod.ZodArray<zod.ZodString>;
657
+ }, zod_v4_core.$strict>>;
658
+ }, zod_v4_core.$strict>;
659
+ /** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
660
+ declare const experimental_acpProviderBridge: ProviderBridgeEntry;
661
+ /** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
662
+ declare const experimental_probeAcpAgent: typeof probeAcpAgent;
663
+ /** @deprecated Import from `@get-bb/plugin-sdk/provider-bridge/acp`. */
664
+ declare const experimental_registerAcpDialect: typeof registerAcpDialect;
665
+
666
+ export { experimental_acpAgentProbeSchema, experimental_acpLaunchSpecSchema, experimental_acpProviderBridge, experimental_probeAcpAgent, experimental_registerAcpDialect };
607
667
  export type { AgentModelCatalog as AcpAgentModelCatalog, AcpAgentProbe, AcpAgentProbeRequest, AcpAgentProfile, AcpClassifiedToolCall, AcpClientRequestOutcome, AcpDelegationReport, AcpDialect, AcpLaunchSpec, AcpToolCallContent, AcpToolCallStatus, AcpToolCallUpdateEvent, AcpToolIdentity, AcpToolKind };
@@ -437,6 +437,7 @@ interface AcpDialect {
437
437
  classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
438
438
  commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
439
439
  normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
440
+ readonly clientRequestMethods?: readonly string[];
440
441
  handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
441
442
  maintenance?: AcpMaintenanceDialect;
442
443
  }
@@ -444,6 +445,7 @@ interface AcpClientRequestOutcome {
444
445
  result: Record<string, unknown>;
445
446
  delegation?: AcpDelegationReport;
446
447
  }
448
+ declare function registerAcpDialect(dialect: AcpDialect): void;
447
449
 
448
450
  interface AcpAgentProbeRequest {
449
451
  command: string;
@@ -548,7 +550,7 @@ interface AgentModelCatalog {
548
550
  * displayName: "Amp",
549
551
  * experimental_bridgeOptions: {
550
552
  * acpLaunchSpec: { displayName: "Amp", command: "amp", args: ["acp"], env: {} },
551
- * acpDialect: "generic",
553
+ * acpDialect: "acp",
552
554
  * },
553
555
  * // …the rest of the declaration
554
556
  * })
@@ -559,11 +561,28 @@ interface AgentModelCatalog {
559
561
  * agent from another lives beside the protocol: grok stamps
560
562
  * `_meta["x.ai/tool"]` on every tool event, Cursor reports sub-agents
561
563
  * through a vendor `cursor/task` request. A dialect is a small module that
562
- * reads those channels; the bridge ships `generic`, `cursor` and `grok`,
563
- * named by id in the registration's bridge options (`acpDialect`). The
564
- * dialect registry itself is not public yet: no plugin has needed to supply
565
- * one, and its shape (process-global, unversioned hooks) is still open — see
566
- * docs/api_to_audit.md.
564
+ * reads those channels; the bridge ships `acp` (the generic one), `cursor`,
565
+ * `grok`, `omp` and `opencode`, named by id in the registration's bridge
566
+ * options (`acpDialect`). A plugin supplies its own with
567
+ * `experimental_registerAcpDialect`, called at module load in the same
568
+ * `bb.host` artifact that re-exports the bridge:
569
+ *
570
+ * ```ts
571
+ * // host.ts
572
+ * import {
573
+ * experimental_registerAcpDialect,
574
+ * } from "@get-bb/plugin-sdk/provider-bridge/acp";
575
+ *
576
+ * experimental_registerAcpDialect({
577
+ * id: "amp",
578
+ * toolIdentity: (event) => readAmpToolName(event),
579
+ * });
580
+ * ```
581
+ *
582
+ * The registration then names it: `acpDialect: "amp"`. A built-in id cannot
583
+ * be replaced, and an id nothing registered falls back to the generic
584
+ * dialect. The registry is one per host artifact, and a dialect's hooks are
585
+ * unversioned — see docs/api_to_audit.md.
567
586
  *
568
587
  * Curated by hand — named exports only, never `export *`. Value exports
569
588
  * carry the `experimental_` prefix every new plugin API member ships with
@@ -581,5 +600,5 @@ interface AgentModelCatalog {
581
600
  */
582
601
  type AcpAgentProfile = AcpLaunchSpec;
583
602
 
584
- export { acpAgentProbeSchema as experimental_acpAgentProbeSchema, acpLaunchSpecSchema as experimental_acpLaunchSpecSchema, experimental_providerBridge as experimental_acpProviderBridge, probeAcpAgent as experimental_probeAcpAgent };
603
+ export { acpAgentProbeSchema as experimental_acpAgentProbeSchema, acpLaunchSpecSchema as experimental_acpLaunchSpecSchema, experimental_providerBridge as experimental_acpProviderBridge, probeAcpAgent as experimental_probeAcpAgent, registerAcpDialect as experimental_registerAcpDialect };
585
604
  export type { AgentModelCatalog as AcpAgentModelCatalog, AcpAgentProbe, AcpAgentProbeRequest, AcpAgentProfile, AcpClassifiedToolCall, AcpClientRequestOutcome, AcpDelegationReport, AcpDialect, AcpLaunchSpec, AcpToolCallContent, AcpToolCallStatus, AcpToolCallUpdateEvent, AcpToolIdentity, AcpToolKind };
@@ -555,6 +555,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
555
555
  movePath: z.ZodOptional<z.ZodString>;
556
556
  path: z.ZodString;
557
557
  }, z.core.$strip>>;
558
+ error: z.ZodOptional<z.ZodString>;
558
559
  id: z.ZodString;
559
560
  parentToolCallId: z.ZodOptional<z.ZodString>;
560
561
  presentation: z.ZodOptional<z.ZodObject<{
@@ -1387,6 +1388,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
1387
1388
  movePath: z.ZodOptional<z.ZodString>;
1388
1389
  path: z.ZodString;
1389
1390
  }, z.core.$strip>>;
1391
+ error: z.ZodOptional<z.ZodString>;
1390
1392
  id: z.ZodString;
1391
1393
  parentToolCallId: z.ZodOptional<z.ZodString>;
1392
1394
  presentation: z.ZodOptional<z.ZodObject<{
@@ -2153,6 +2155,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
2153
2155
  movePath: z.ZodOptional<z.ZodString>;
2154
2156
  path: z.ZodString;
2155
2157
  }, z.core.$strip>>;
2158
+ error: z.ZodOptional<z.ZodString>;
2156
2159
  id: z.ZodString;
2157
2160
  parentToolCallId: z.ZodOptional<z.ZodString>;
2158
2161
  presentation: z.ZodOptional<z.ZodObject<{
@@ -3213,6 +3216,14 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
3213
3216
  providerThreadId: z.ZodString;
3214
3217
  threadId: z.ZodString;
3215
3218
  type: z.ZodLiteral<"turn/plan/updated">;
3219
+ }, z.core.$strip>, z.ZodObject<{
3220
+ providerThreadId: z.ZodString;
3221
+ state: z.ZodEnum<{
3222
+ idle: "idle";
3223
+ running: "running";
3224
+ }>;
3225
+ threadId: z.ZodString;
3226
+ type: z.ZodLiteral<"turn/mainRun/updated">;
3216
3227
  }, z.core.$strip>, z.ZodObject<{
3217
3228
  diff: z.ZodOptional<z.ZodString>;
3218
3229
  providerThreadId: z.ZodString;
@@ -3603,6 +3614,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
3603
3614
  "child-interrupted": "child-interrupted";
3604
3615
  "child-needs-attention": "child-needs-attention";
3605
3616
  "child-outcome-batch": "child-outcome-batch";
3617
+ "environment-directory-updated": "environment-directory-updated";
3606
3618
  "ownership-assigned": "ownership-assigned";
3607
3619
  "ownership-removed": "ownership-removed";
3608
3620
  "tool-result-delivered": "tool-result-delivered";
@@ -3653,6 +3665,9 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
3653
3665
  kind: z.ZodLiteral<"tool-call">;
3654
3666
  suppress: z.ZodBoolean;
3655
3667
  toolName: z.ZodString;
3668
+ }, z.core.$strip>, z.ZodObject<{
3669
+ kind: z.ZodLiteral<"directory">;
3670
+ path: z.ZodString;
3656
3671
  }, z.core.$strip>], "kind">>>;
3657
3672
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3658
3673
  kind: z.ZodLiteral<"thread-start">;
@@ -4215,6 +4230,12 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4215
4230
  kind: z.ZodLiteral<"turn.open">;
4216
4231
  parentRef: z.ZodOptional<z.ZodString>;
4217
4232
  providerTurnId: z.ZodOptional<z.ZodString>;
4233
+ }, z.core.$strip>, z.ZodObject<{
4234
+ kind: z.ZodLiteral<"turn.mainRun">;
4235
+ state: z.ZodEnum<{
4236
+ idle: "idle";
4237
+ running: "running";
4238
+ }>;
4218
4239
  }, z.core.$strip>, z.ZodObject<{
4219
4240
  claimIfIdle: z.ZodOptional<z.ZodBoolean>;
4220
4241
  error: z.ZodOptional<z.ZodObject<{