@get-bb/plugin-sdk 0.6.5 → 0.6.14

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.
@@ -621,6 +621,8 @@ interface PortableOutputChildProcess extends PortableChildProcess {
621
621
  stdout: Readable;
622
622
  stderr: Readable;
623
623
  }
624
+ declare function spawnPortableOutputProcess(request: PortablePipedSpawnRequest): PortableOutputChildProcess;
625
+
624
626
  interface ProcessWithCwd {
625
627
  pid: number;
626
628
  cwd: string;
@@ -629,12 +631,12 @@ interface KillProcessesWithCwdUnderArgs {
629
631
  directory: string;
630
632
  graceMs?: number;
631
633
  }
634
+ declare function killProcessesWithCwdUnder(args: KillProcessesWithCwdUnderArgs): Promise<ProcessWithCwd[]>;
635
+
632
636
  interface SanitizeInheritedChildProcessEnvArgs {
633
637
  env: NodeJS.ProcessEnv;
634
638
  shellPath?: string;
635
639
  }
636
- declare function spawnPortableOutputProcess(request: PortablePipedSpawnRequest): PortableOutputChildProcess;
637
- declare function killProcessesWithCwdUnder(args: KillProcessesWithCwdUnderArgs): Promise<ProcessWithCwd[]>;
638
640
  declare function sanitizeInheritedChildProcessEnv(args: SanitizeInheritedChildProcessEnvArgs): NodeJS.ProcessEnv;
639
641
 
640
642
  export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, killProcessesWithCwdUnder as experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
@@ -40,6 +40,6 @@ declare function requireUniqueId(kind: string, seen: Set<string>, id: string): v
40
40
  * Validate one registration while isolating composer customization failures.
41
41
  * The host and test harness inject their own rejection reporters.
42
42
  */
43
- declare function collectComposerCustomization(registration: unknown, seenIds: Set<string>, onRejected: RejectionReporter): ComposerCustomization | null;
43
+ declare function collectComposerCustomization(registration: unknown, seenIds: Set<string>, onRejected: RejectionReporter, seenPopupIds?: Set<string>): ComposerCustomization | null;
44
44
 
45
45
  export { PLUGIN_SLOT_ID_PATTERN, PLUGIN_TIMELINE_RENDERER_KIND_PATTERN, collectComposerCustomization, normalizePluginThreadRowStatus, requireComponent, requireEnvironmentProviderId, requireMessageDirectiveId, requireNonEmptyString, requireOptionalString, requireProviderId, requireSlotId, requireTimelineRendererKind, requireUniqueId };
@@ -24,10 +24,7 @@ declare const reasoningLevelSchema: z.ZodEnum<{
24
24
  xhigh: "xhigh";
25
25
  }>;
26
26
  type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
27
- declare const serviceTierSchema: z.ZodEnum<{
28
- default: "default";
29
- fast: "fast";
30
- }>;
27
+ declare const serviceTierSchema: z.ZodString;
31
28
  type ServiceTier = z.infer<typeof serviceTierSchema>;
32
29
  declare const permissionModeSchema: z.ZodEnum<{
33
30
  "accept-edits": "accept-edits";
@@ -50,7 +47,7 @@ declare const createThreadEnvironmentArgsSchema: z.ZodDiscriminatedUnion<[z.ZodO
50
47
  baseBranch: z.ZodString;
51
48
  kind: z.ZodLiteral<"new">;
52
49
  }, z.core.$strict>], "kind">>;
53
- path: z.ZodNullable<z.ZodString>;
50
+ path: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
54
51
  type: z.ZodLiteral<"unmanaged">;
55
52
  }, z.core.$strip>, z.ZodObject<{
56
53
  baseBranch: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -223,6 +220,10 @@ interface PluginComposerMention {
223
220
  * text methods log a warning and do nothing.
224
221
  */
225
222
  interface PluginComposerApi {
223
+ /** Open this plugin's registered composer popup by popup id in this mounted composer. Returns false for an unavailable, suppressed or out-of-scope popup. */
224
+ experimental_openPopup(popupId: string): boolean;
225
+ /** Close this plugin's open popup in this composer and restore editor focus. Returns false if this plugin has no open popup. */
226
+ experimental_closePopup(): boolean;
226
227
  scope: PluginComposerScope;
227
228
  /**
228
229
  * Stable identity for this composer's draft: the same across remounts and
@@ -346,8 +347,8 @@ interface PluginComposerApi {
346
347
  * selection as it stands. The result carries only the fields this composer
347
348
  * has, so a missing key means "no such picker here" and a value that
348
349
  * differs from the one passed was reconciled (a reasoning level the model
349
- * does not support, a permission mode above the machine's ceiling, a model
350
- * the provider does not list). A provider the composer does not list is
350
+ * does not support, a service tier the model does not offer, a permission
351
+ * mode above the machine's ceiling, a model the provider does not list). A provider the composer does not list is
351
352
  * ignored together with the model and reasoning level meant for it, so the
352
353
  * stored provider preference never names something the picker could not
353
354
  * have chosen. `environment` is absent while the composer
@@ -358,8 +359,8 @@ interface PluginComposerApi {
358
359
  * Rejects, with a message safe to show to the user, in a composer with no
359
360
  * pickers at all (a queued-message editor, a side chat, a plugin surface
360
361
  * mounted outside any composer), when the calling surface is no longer
361
- * active, and when a value is not a known reasoning level, service tier or
362
- * permission mode.
362
+ * active, and when a value is not a known reasoning level or permission
363
+ * mode, or is an empty service tier.
363
364
  */
364
365
  setSelection(selection: ComposerSelection): Promise<ComposerSelection>;
365
366
  }
@@ -384,7 +385,11 @@ interface ComposerSelection {
384
385
  model?: string;
385
386
  /** Applied only when the composer ends up on the requested provider (or none was requested). */
386
387
  reasoningLevel?: ReasoningLevel;
387
- /** Ignored by a provider with no service tiers. */
388
+ /**
389
+ * A tier id the provider declares (`"default"`, `"fast"`, …). Ignored by a
390
+ * provider with no service tiers; a tier the selected model does not offer
391
+ * becomes `"default"`.
392
+ */
388
393
  serviceTier?: ServiceTier;
389
394
  permissionMode?: PermissionMode;
390
395
  }
@@ -430,6 +435,8 @@ interface ComposerHandleTarget {
430
435
  insertAtCursor(value: ComposerDraft$1, block: boolean): boolean;
431
436
  isAvailable(): boolean;
432
437
  focus(): void;
438
+ openPopup?(pluginId: string, popupId: string): boolean;
439
+ closePopup?(pluginId: string): boolean;
433
440
  submit?(options: ComposerSubmitOptions$1, pluginSubmission: {
434
441
  pluginId: string;
435
442
  data: JsonValue$2;
@@ -203,10 +203,7 @@ declare const reasoningLevelSchema: z.ZodEnum<{
203
203
  xhigh: "xhigh";
204
204
  }>;
205
205
  type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
206
- declare const serviceTierSchema: z.ZodEnum<{
207
- default: "default";
208
- fast: "fast";
209
- }>;
206
+ declare const serviceTierSchema: z.ZodString;
210
207
  type ServiceTier = z.infer<typeof serviceTierSchema>;
211
208
  declare const permissionModeSchema: z.ZodEnum<{
212
209
  "accept-edits": "accept-edits";
@@ -217,7 +214,7 @@ type PermissionMode = z.infer<typeof permissionModeSchema>;
217
214
  declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
218
215
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
219
216
  end: z.ZodNumber;
220
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
217
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
221
218
  kind: z.ZodLiteral<"thread">;
222
219
  label: z.ZodString;
223
220
  projectId: z.ZodOptional<z.ZodString>;
@@ -266,7 +263,7 @@ declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
266
263
  kind: z.ZodLiteral<"plugin">;
267
264
  label: z.ZodString;
268
265
  pluginId: z.ZodString;
269
- }, z.core.$strip>], "kind">>;
266
+ }, z.core.$strip>], "kind">, unknown>;
270
267
  start: z.ZodNumber;
271
268
  }, z.core.$strip>>>;
272
269
  text: z.ZodString;
@@ -325,7 +322,7 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
325
322
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
326
323
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
327
324
  end: z.ZodNumber;
328
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
325
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
329
326
  kind: z.ZodLiteral<"thread">;
330
327
  label: z.ZodString;
331
328
  projectId: z.ZodOptional<z.ZodString>;
@@ -374,7 +371,7 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
374
371
  kind: z.ZodLiteral<"plugin">;
375
372
  label: z.ZodString;
376
373
  pluginId: z.ZodString;
377
- }, z.core.$strip>], "kind">>;
374
+ }, z.core.$strip>], "kind">, unknown>;
378
375
  start: z.ZodNumber;
379
376
  }, z.core.$strip>>>;
380
377
  text: z.ZodString;
@@ -447,10 +444,7 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
447
444
  }>;
448
445
  sendAt: z.ZodNullable<z.ZodNumber>;
449
446
  senderThreadId: z.ZodNullable<z.ZodString>;
450
- serviceTier: z.ZodEnum<{
451
- default: "default";
452
- fast: "fast";
453
- }>;
447
+ serviceTier: z.ZodString;
454
448
  threadId: z.ZodString;
455
449
  updatedAt: z.ZodNumber;
456
450
  waitingOn: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1353,7 +1347,7 @@ interface PluginProviderCapabilities {
1353
1347
  * Provider copy core surfaces render from per-provider tables today (usage
1354
1348
  * banners, sign-in hints, the mobile picker, the agent guide). Declared once
1355
1349
  * here so no core surface keys copy on a provider id. Mirrors
1356
- * `ProviderStrings` in `@bb/domain`, which is the client projection.
1350
+ * `providerStringsSchema` in `@bb/domain`, which is the client projection.
1357
1351
  */
1358
1352
  interface PluginProviderStrings {
1359
1353
  /** How to sign in on the host ("Run `claude` on the machine to sign in."). */
@@ -1546,8 +1540,10 @@ interface PluginProviderDeclaration {
1546
1540
  /** Provider copy for core surfaces ({@link PluginProviderStrings}). */
1547
1541
  strings?: PluginProviderStrings;
1548
1542
  /** Service tiers this provider accepts, as picker options. Non-empty when
1549
- * present, unique ids. The coarse `capabilities.supportsServiceTier` stays
1550
- * until WS2a stabilizes. */
1543
+ * present, unique ids. Ids are open: `"default"` is the provider's standard
1544
+ * tier and every other id is passed to the bridge as `serviceTier`. A
1545
+ * `model/list` entry narrows the list with `supportedServiceTiers`. The
1546
+ * coarse `capabilities.supportsServiceTier` stays until WS2a stabilizes. */
1551
1547
  serviceTiers?: readonly PluginProviderOptionDescriptor[];
1552
1548
  /** Reasoning levels as picker options with labels, beside the coarse
1553
1549
  * `capabilities.reasoningLevels` ladder (ids only). Non-empty when present,
@@ -1900,8 +1896,8 @@ declare function enforcePluginCliOutputLimit(result: Omit<PluginCliExecutionResu
1900
1896
  /**
1901
1897
  * Adopt the value a plugin HTTP route handler returned.
1902
1898
  *
1903
- * Plugin handlers can run in a different realm (jiti-loaded modules, bundled
1904
- * fetch polyfills), so a valid `Response` from a handler can fail
1899
+ * Plugin handlers can run in a different realm (bundled fetch polyfills), so
1900
+ * a valid `Response` from a handler can fail
1905
1901
  * `instanceof Response` in the host (#1661). Both the real host and the fake
1906
1902
  * host accept a structurally valid Response from any realm and re-wrap it
1907
1903
  * into a this-realm `Response`, so Hono always consumes a native object and a
@@ -23,10 +23,7 @@ declare const reasoningLevelSchema: z.ZodEnum<{
23
23
  xhigh: "xhigh";
24
24
  }>;
25
25
  type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
26
- declare const serviceTierSchema: z.ZodEnum<{
27
- default: "default";
28
- fast: "fast";
29
- }>;
26
+ declare const serviceTierSchema: z.ZodString;
30
27
  type ServiceTier = z.infer<typeof serviceTierSchema>;
31
28
 
32
29
  declare const availableModelSchema: z.ZodObject<{
@@ -59,6 +56,11 @@ declare const availableModelSchema: z.ZodObject<{
59
56
  xhigh: "xhigh";
60
57
  }>;
61
58
  }, z.core.$strip>>;
59
+ supportedServiceTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ description: z.ZodOptional<z.ZodString>;
61
+ id: z.ZodString;
62
+ label: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>>>;
62
64
  }, z.core.$strip>;
63
65
  type AvailableModel = z.infer<typeof availableModelSchema>;
64
66
 
@@ -354,7 +356,7 @@ declare const acpToolCallContentSchema: z.ZodUnion<readonly [z.ZodObject<{
354
356
  type: z.ZodLiteral<"terminal">;
355
357
  }, z.core.$loose>]>;
356
358
  type AcpToolCallContent = z.infer<typeof acpToolCallContentSchema>;
357
- declare const acpToolCallUpdateEventSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
359
+ declare const acpToolCallUpdateEventSchema: z.ZodPreprocess<z.ZodObject<{
358
360
  content: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
359
361
  [x: string]: unknown;
360
362
  type: "content";
@@ -410,7 +412,7 @@ declare const acpToolCallUpdateEventSchema: z.ZodPipe<z.ZodTransform<unknown, un
410
412
  }>>;
411
413
  title: z.ZodOptional<z.ZodString>;
412
414
  toolCallId: z.ZodString;
413
- }, z.core.$loose>>;
415
+ }, z.core.$loose>, unknown>;
414
416
  type AcpToolCallUpdateEvent = z.infer<typeof acpToolCallUpdateEventSchema>;
415
417
 
416
418
  interface AcpClassifiedToolCall {
@@ -1189,7 +1189,7 @@ declare const threadEventItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1189
1189
  type: z.ZodLiteral<"extension">;
1190
1190
  }, z.core.$strip>], "type">;
1191
1191
  type ThreadEventItem = z.infer<typeof threadEventItemSchema>;
1192
- declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
1192
+ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
1193
1193
  threadId: z.ZodString;
1194
1194
  type: z.ZodLiteral<"thread/started">;
1195
1195
  }, z.core.$strip>, z.ZodObject<{
@@ -3387,10 +3387,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3387
3387
  xhigh: "xhigh";
3388
3388
  }>;
3389
3389
  seq: z.ZodOptional<z.ZodNumber>;
3390
- serviceTier: z.ZodEnum<{
3391
- default: "default";
3392
- fast: "fast";
3393
- }>;
3390
+ serviceTier: z.ZodString;
3394
3391
  source: z.ZodEnum<{
3395
3392
  "client/thread/start": "client/thread/start";
3396
3393
  "client/turn/requested": "client/turn/requested";
@@ -3405,7 +3402,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3405
3402
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3406
3403
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3407
3404
  end: z.ZodNumber;
3408
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3405
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
3409
3406
  kind: z.ZodLiteral<"thread">;
3410
3407
  label: z.ZodString;
3411
3408
  projectId: z.ZodOptional<z.ZodString>;
@@ -3454,7 +3451,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3454
3451
  kind: z.ZodLiteral<"plugin">;
3455
3452
  label: z.ZodString;
3456
3453
  pluginId: z.ZodString;
3457
- }, z.core.$strip>], "kind">>;
3454
+ }, z.core.$strip>], "kind">, unknown>;
3458
3455
  start: z.ZodNumber;
3459
3456
  }, z.core.$strip>>>;
3460
3457
  text: z.ZodString;
@@ -3487,7 +3484,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3487
3484
  inputGroups: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3488
3485
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3489
3486
  end: z.ZodNumber;
3490
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3487
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
3491
3488
  kind: z.ZodLiteral<"thread">;
3492
3489
  label: z.ZodString;
3493
3490
  projectId: z.ZodOptional<z.ZodString>;
@@ -3536,7 +3533,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3536
3533
  kind: z.ZodLiteral<"plugin">;
3537
3534
  label: z.ZodString;
3538
3535
  pluginId: z.ZodString;
3539
- }, z.core.$strip>], "kind">>;
3536
+ }, z.core.$strip>], "kind">, unknown>;
3540
3537
  start: z.ZodNumber;
3541
3538
  }, z.core.$strip>>>;
3542
3539
  text: z.ZodString;
@@ -3681,8 +3678,6 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
3681
3678
  code: z.ZodOptional<z.ZodString>;
3682
3679
  detail: z.ZodOptional<z.ZodString>;
3683
3680
  message: z.ZodString;
3684
- reconnectAttempt: z.ZodOptional<z.ZodNumber>;
3685
- reconnectTotal: z.ZodOptional<z.ZodNumber>;
3686
3681
  threadId: z.ZodString;
3687
3682
  type: z.ZodLiteral<"system/error">;
3688
3683
  }, z.core.$strip>, z.ZodObject<{
@@ -4091,13 +4086,13 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
4091
4086
  kind: z.ZodLiteral<"turn">;
4092
4087
  turnId: z.ZodString;
4093
4088
  }, z.core.$strip>], "kind">;
4094
- }, z.core.$strip>>]>>;
4089
+ }, z.core.$strip>>]>;
4095
4090
  type ThreadEvent = z.infer<typeof threadEventSchema>;
4096
4091
 
4097
4092
  declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4098
4093
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4099
4094
  end: z.ZodNumber;
4100
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4095
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4101
4096
  kind: z.ZodLiteral<"thread">;
4102
4097
  label: z.ZodString;
4103
4098
  projectId: z.ZodOptional<z.ZodString>;
@@ -4146,7 +4141,7 @@ declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4146
4141
  kind: z.ZodLiteral<"plugin">;
4147
4142
  label: z.ZodString;
4148
4143
  pluginId: z.ZodString;
4149
- }, z.core.$strip>], "kind">>;
4144
+ }, z.core.$strip>], "kind">, unknown>;
4150
4145
  start: z.ZodNumber;
4151
4146
  }, z.core.$strip>>>;
4152
4147
  text: z.ZodString;
@@ -5066,7 +5061,6 @@ interface BridgeDeltaEventCollector {
5066
5061
  }
5067
5062
  declare function createBridgeDeltaEventCollector(providerId?: string): BridgeDeltaEventCollector;
5068
5063
  declare function assembleCapturedThreadEvents(messages: readonly CapturedBridgeNotification[], providerId?: string): ThreadEvent[];
5069
- declare function toConformanceMessages(): never;
5070
5064
 
5071
5065
  interface BridgeConformanceTransport {
5072
5066
  send(line: string): void;
@@ -5333,5 +5327,5 @@ interface RerecordCurrentBridgeLaneResult {
5333
5327
  }
5334
5328
  declare function rerecordCurrentBridgeLane(options: RerecordCurrentBridgeLaneOptions): Promise<RerecordCurrentBridgeLaneResult>;
5335
5329
 
5336
- export { ASSEMBLER_GRAMMAR_VERSIONS, CONFORMANCE_ASSEMBLED_EVENT_METHOD, CURRENT_BRIDGE_LANE_FILE, DEFAULT_REPLAY_PROFILE, PARITY_INITIALIZE_ID, RECORDED_CONFORMANCE_CELLS, assembleCapturedThreadEvents as experimental_assembleCapturedThreadEvents, assembleRecordedEvents as experimental_assembleRecordedEvents, captureBridgeJsonRpcOutput as experimental_captureBridgeJsonRpcOutput, checkRecordedCellReplay as experimental_checkRecordedCellReplay, compareParity as experimental_compareParity, createBridgeDeltaEventCollector as experimental_createBridgeDeltaEventCollector, createBridgeJsonRpcTestHarness as experimental_createBridgeJsonRpcTestHarness, createDeltaAssembler as experimental_createDeltaAssembler, describeCalibrationEvents as experimental_describeCalibrationEvents, formatConformanceReport as experimental_formatConformanceReport, listRecordedCells as experimental_listRecordedCells, normalizeCalibrationEvents as experimental_normalizeCalibrationEvents, readBridgeRecording as experimental_readBridgeRecording, replayRecording as experimental_replayRecording, rerecordCurrentBridgeLane as experimental_rerecordCurrentBridgeLane, resolveProviderBridgeLaunch as experimental_resolveProviderBridgeLaunch, runBridgeConformance as experimental_runBridgeConformance, toConformanceMessages as experimental_toConformanceMessages, withCurrentBridgeLane as experimental_withCurrentBridgeLane };
5330
+ export { ASSEMBLER_GRAMMAR_VERSIONS, CONFORMANCE_ASSEMBLED_EVENT_METHOD, CURRENT_BRIDGE_LANE_FILE, DEFAULT_REPLAY_PROFILE, PARITY_INITIALIZE_ID, RECORDED_CONFORMANCE_CELLS, assembleCapturedThreadEvents as experimental_assembleCapturedThreadEvents, assembleRecordedEvents as experimental_assembleRecordedEvents, captureBridgeJsonRpcOutput as experimental_captureBridgeJsonRpcOutput, checkRecordedCellReplay as experimental_checkRecordedCellReplay, compareParity as experimental_compareParity, createBridgeDeltaEventCollector as experimental_createBridgeDeltaEventCollector, createBridgeJsonRpcTestHarness as experimental_createBridgeJsonRpcTestHarness, createDeltaAssembler as experimental_createDeltaAssembler, describeCalibrationEvents as experimental_describeCalibrationEvents, formatConformanceReport as experimental_formatConformanceReport, listRecordedCells as experimental_listRecordedCells, normalizeCalibrationEvents as experimental_normalizeCalibrationEvents, readBridgeRecording as experimental_readBridgeRecording, replayRecording as experimental_replayRecording, rerecordCurrentBridgeLane as experimental_rerecordCurrentBridgeLane, resolveProviderBridgeLaunch as experimental_resolveProviderBridgeLaunch, runBridgeConformance as experimental_runBridgeConformance, withCurrentBridgeLane as experimental_withCurrentBridgeLane };
5337
5331
  export type { AssembleDeltasArgs, BridgeConformanceTransport, BridgeDeltaEventCollector, BridgeJsonRpcId, BridgeJsonRpcLineHandler, BridgeJsonRpcObject, BridgeJsonRpcOutputMessage, BridgeJsonRpcTestHarness, BridgeRecording, BridgeRecordingDirection, BridgeRecordingEntry, BridgeRecordingManifest, CapturedBridgeJsonRpcOutput, CapturedBridgeNotification, ConformanceCheckResult, ConformanceReport, ConformanceSessionFixture, CreateDeltaAssemblerOptions, CreateParityAssembler, DeltaAssembler, DiffCumulativeTextArgs, DiffCumulativeTextResult, NormalizeCalibrationEventsOptions, ParityAllowlistEntry, ParityAssembler, ParityComparison, ParityGrammarViolation, ParityInputs, ParityLayerDiff, ParityRowProjector, ParityRun, ProviderBridgeLaunch, RecordedCell, RecordedCellReplay, RecordedConformanceCell, ReplayDialect, ReplayProviderProfile, ReplayRecordedCellsOptions, ReplayRecordingOptions, RerecordCurrentBridgeLaneOptions, RerecordCurrentBridgeLaneResult, ResolveProviderBridgeLaunchOptions, RunBridgeConformanceOptions, ThreadEvent, ThreadEventBackgroundTaskItem, ThreadEventDelegationItem, ThreadEventExtensionItem, ThreadEventFileReadItem, ThreadEventItem, ThreadEventItemPresentation, ThreadEventItemPresentationIcon, ThreadEventItemPresentationLabel, ThreadEventItemPresentationTint, ThreadEventPlanStepsItem, ThreadEventSearchItem, ThreadEventWebFetchItem, ThreadEventWebSearchItem };
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { z } from 'zod';
9
9
  import { Writable, Readable } from 'node:stream';
10
+ import { StdioOptions, ChildProcess } from 'node:child_process';
10
11
 
11
12
  declare const contextEntrySchema: z.ZodObject<{
12
13
  id: z.ZodString;
@@ -1380,10 +1381,7 @@ declare const reasoningLevelSchema: z.ZodEnum<{
1380
1381
  xhigh: "xhigh";
1381
1382
  }>;
1382
1383
  type ReasoningLevel = z.infer<typeof reasoningLevelSchema>;
1383
- declare const serviceTierSchema: z.ZodEnum<{
1384
- default: "default";
1385
- fast: "fast";
1386
- }>;
1384
+ declare const serviceTierSchema: z.ZodString;
1387
1385
  type ServiceTier = z.infer<typeof serviceTierSchema>;
1388
1386
  declare const instructionModeValues: readonly ["append", "replace"];
1389
1387
  declare const instructionModeSchema: z.ZodEnum<{
@@ -1411,7 +1409,7 @@ type PromptMentionCommandTrigger = z.infer<typeof promptMentionCommandTriggerSch
1411
1409
  declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
1410
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1413
1411
  end: z.ZodNumber;
1414
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1415
1413
  kind: z.ZodLiteral<"thread">;
1416
1414
  label: z.ZodString;
1417
1415
  projectId: z.ZodOptional<z.ZodString>;
@@ -1460,7 +1458,7 @@ declare const promptInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1460
1458
  kind: z.ZodLiteral<"plugin">;
1461
1459
  label: z.ZodString;
1462
1460
  pluginId: z.ZodString;
1463
- }, z.core.$strip>], "kind">>;
1461
+ }, z.core.$strip>], "kind">, unknown>;
1464
1462
  start: z.ZodNumber;
1465
1463
  }, z.core.$strip>>>;
1466
1464
  text: z.ZodString;
@@ -1548,6 +1546,12 @@ declare const modelReasoningEffortSchema: z.ZodObject<{
1548
1546
  }>;
1549
1547
  }, z.core.$strip>;
1550
1548
  type ModelReasoningEffort = z.infer<typeof modelReasoningEffortSchema>;
1549
+ declare const modelServiceTierSchema: z.ZodObject<{
1550
+ description: z.ZodOptional<z.ZodString>;
1551
+ id: z.ZodString;
1552
+ label: z.ZodOptional<z.ZodString>;
1553
+ }, z.core.$strip>;
1554
+ type ModelServiceTier = z.infer<typeof modelServiceTierSchema>;
1551
1555
  declare const availableModelSchema: z.ZodObject<{
1552
1556
  defaultReasoningEffort: z.ZodEnum<{
1553
1557
  high: "high";
@@ -1578,6 +1582,11 @@ declare const availableModelSchema: z.ZodObject<{
1578
1582
  xhigh: "xhigh";
1579
1583
  }>;
1580
1584
  }, z.core.$strip>>;
1585
+ supportedServiceTiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1586
+ description: z.ZodOptional<z.ZodString>;
1587
+ id: z.ZodString;
1588
+ label: z.ZodOptional<z.ZodString>;
1589
+ }, z.core.$strip>>>;
1581
1590
  }, z.core.$strip>;
1582
1591
  type AvailableModel = z.infer<typeof availableModelSchema>;
1583
1592
  declare const providerRecoveryKindValues: readonly ["sessionArchived", "authRequired", "restartRecommended", "staleTurn", "rateLimited"];
@@ -4057,6 +4066,7 @@ declare const providerInstallationRequirementSchema: z.ZodEnum<{
4057
4066
  }>;
4058
4067
  type ProviderInstallationRequirement = z.infer<typeof providerInstallationRequirementSchema>;
4059
4068
  declare const providerInstallationStatusParamsSchema: z.ZodObject<{
4069
+ checkUpdates: z.ZodDefault<z.ZodBoolean>;
4060
4070
  cwd: z.ZodOptional<z.ZodString>;
4061
4071
  providerId: z.ZodString;
4062
4072
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4295,7 +4305,10 @@ declare function npmGlobalInstallSource(args: {
4295
4305
  npmBin: string | null;
4296
4306
  }): ProviderInstallationSource;
4297
4307
  declare function installationVerification(status: Pick<ProviderInstallationStatus, "currentVersion" | "latestVersion">, action: "install" | "update"): ProviderInstallationVerification;
4298
- declare function downloadedInstallerCommand(url: string): ProviderInstallationCommand;
4308
+ declare function downloadedInstallerCommand(url: string, options?: {
4309
+ platform?: NodeJS.Platform;
4310
+ powershellUrl?: string;
4311
+ }): ProviderInstallationCommand;
4299
4312
  declare function clampPercent(value: number): number;
4300
4313
 
4301
4314
  type JsonRpcObject = Record<string, unknown>;
@@ -4400,7 +4413,7 @@ declare const initializeParamsSchema: z.ZodObject<{
4400
4413
  protocolVersion: z.ZodNumber;
4401
4414
  }, z.core.$loose>;
4402
4415
  declare const initializeResultSchema: z.ZodObject<{
4403
- capabilities: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodObject<{
4416
+ capabilities: z.ZodPreprocess<z.ZodObject<{
4404
4417
  approvalEnforcedBy: z.ZodDefault<z.ZodEnum<{
4405
4418
  provider: "provider";
4406
4419
  runtime: "runtime";
@@ -4422,7 +4435,7 @@ declare const initializeResultSchema: z.ZodObject<{
4422
4435
  threadArchive: z.ZodDefault<z.ZodBoolean>;
4423
4436
  threadGoalClear: z.ZodDefault<z.ZodBoolean>;
4424
4437
  threadRename: z.ZodDefault<z.ZodBoolean>;
4425
- }, z.core.$loose>>;
4438
+ }, z.core.$loose>, unknown>;
4426
4439
  protocolVersion: z.ZodNumber;
4427
4440
  }, z.core.$loose>;
4428
4441
  type InitializeResult = z.infer<typeof initializeResultSchema>;
@@ -4443,10 +4456,7 @@ declare const bridgeExecutionOptionsSchema: z.ZodIntersection<z.ZodObject<{
4443
4456
  ultracode: "ultracode";
4444
4457
  xhigh: "xhigh";
4445
4458
  }>>;
4446
- serviceTier: z.ZodOptional<z.ZodEnum<{
4447
- default: "default";
4448
- fast: "fast";
4449
- }>>;
4459
+ serviceTier: z.ZodOptional<z.ZodString>;
4450
4460
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4451
4461
  approvalReviewer: z.ZodLiteral<"user">;
4452
4462
  permissionEscalation: z.ZodEnum<{
@@ -4530,7 +4540,7 @@ declare const threadStartParamsSchema: z.ZodObject<{
4530
4540
  input: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4531
4541
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4532
4542
  end: z.ZodNumber;
4533
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4543
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4534
4544
  kind: z.ZodLiteral<"thread">;
4535
4545
  label: z.ZodString;
4536
4546
  projectId: z.ZodOptional<z.ZodString>;
@@ -4579,7 +4589,7 @@ declare const threadStartParamsSchema: z.ZodObject<{
4579
4589
  kind: z.ZodLiteral<"plugin">;
4580
4590
  label: z.ZodString;
4581
4591
  pluginId: z.ZodString;
4582
- }, z.core.$strip>], "kind">>;
4592
+ }, z.core.$strip>], "kind">, unknown>;
4583
4593
  start: z.ZodNumber;
4584
4594
  }, z.core.$strip>>>;
4585
4595
  text: z.ZodString;
@@ -4629,10 +4639,7 @@ declare const threadStartParamsSchema: z.ZodObject<{
4629
4639
  ultracode: "ultracode";
4630
4640
  xhigh: "xhigh";
4631
4641
  }>>;
4632
- serviceTier: z.ZodOptional<z.ZodEnum<{
4633
- default: "default";
4634
- fast: "fast";
4635
- }>>;
4642
+ serviceTier: z.ZodOptional<z.ZodString>;
4636
4643
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4637
4644
  approvalReviewer: z.ZodLiteral<"user">;
4638
4645
  permissionEscalation: z.ZodEnum<{
@@ -4710,10 +4717,7 @@ declare const threadResumeParamsSchema: z.ZodObject<{
4710
4717
  ultracode: "ultracode";
4711
4718
  xhigh: "xhigh";
4712
4719
  }>>;
4713
- serviceTier: z.ZodOptional<z.ZodEnum<{
4714
- default: "default";
4715
- fast: "fast";
4716
- }>>;
4720
+ serviceTier: z.ZodOptional<z.ZodString>;
4717
4721
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4718
4722
  approvalReviewer: z.ZodLiteral<"user">;
4719
4723
  permissionEscalation: z.ZodEnum<{
@@ -4792,10 +4796,7 @@ declare const threadForkParamsSchema: z.ZodObject<{
4792
4796
  ultracode: "ultracode";
4793
4797
  xhigh: "xhigh";
4794
4798
  }>>;
4795
- serviceTier: z.ZodOptional<z.ZodEnum<{
4796
- default: "default";
4797
- fast: "fast";
4798
- }>>;
4799
+ serviceTier: z.ZodOptional<z.ZodString>;
4799
4800
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4800
4801
  approvalReviewer: z.ZodLiteral<"user">;
4801
4802
  permissionEscalation: z.ZodEnum<{
@@ -4857,7 +4858,7 @@ declare const turnStartParamsSchema: z.ZodObject<{
4857
4858
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4858
4859
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4859
4860
  end: z.ZodNumber;
4860
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4861
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4861
4862
  kind: z.ZodLiteral<"thread">;
4862
4863
  label: z.ZodString;
4863
4864
  projectId: z.ZodOptional<z.ZodString>;
@@ -4906,7 +4907,7 @@ declare const turnStartParamsSchema: z.ZodObject<{
4906
4907
  kind: z.ZodLiteral<"plugin">;
4907
4908
  label: z.ZodString;
4908
4909
  pluginId: z.ZodString;
4909
- }, z.core.$strip>], "kind">>;
4910
+ }, z.core.$strip>], "kind">, unknown>;
4910
4911
  start: z.ZodNumber;
4911
4912
  }, z.core.$strip>>>;
4912
4913
  text: z.ZodString;
@@ -4952,10 +4953,7 @@ declare const turnStartParamsSchema: z.ZodObject<{
4952
4953
  ultracode: "ultracode";
4953
4954
  xhigh: "xhigh";
4954
4955
  }>>;
4955
- serviceTier: z.ZodOptional<z.ZodEnum<{
4956
- default: "default";
4957
- fast: "fast";
4958
- }>>;
4956
+ serviceTier: z.ZodOptional<z.ZodString>;
4959
4957
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4960
4958
  approvalReviewer: z.ZodLiteral<"user">;
4961
4959
  permissionEscalation: z.ZodEnum<{
@@ -4987,7 +4985,7 @@ declare const turnSteerParamsSchema: z.ZodObject<{
4987
4985
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4988
4986
  mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4989
4987
  end: z.ZodNumber;
4990
- resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4988
+ resource: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4991
4989
  kind: z.ZodLiteral<"thread">;
4992
4990
  label: z.ZodString;
4993
4991
  projectId: z.ZodOptional<z.ZodString>;
@@ -5036,7 +5034,7 @@ declare const turnSteerParamsSchema: z.ZodObject<{
5036
5034
  kind: z.ZodLiteral<"plugin">;
5037
5035
  label: z.ZodString;
5038
5036
  pluginId: z.ZodString;
5039
- }, z.core.$strip>], "kind">>;
5037
+ }, z.core.$strip>], "kind">, unknown>;
5040
5038
  start: z.ZodNumber;
5041
5039
  }, z.core.$strip>>>;
5042
5040
  text: z.ZodString;
@@ -5082,10 +5080,7 @@ declare const turnSteerParamsSchema: z.ZodObject<{
5082
5080
  ultracode: "ultracode";
5083
5081
  xhigh: "xhigh";
5084
5082
  }>>;
5085
- serviceTier: z.ZodOptional<z.ZodEnum<{
5086
- default: "default";
5087
- fast: "fast";
5088
- }>>;
5083
+ serviceTier: z.ZodOptional<z.ZodString>;
5089
5084
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
5090
5085
  approvalReviewer: z.ZodLiteral<"user">;
5091
5086
  permissionEscalation: z.ZodEnum<{
@@ -5148,6 +5143,19 @@ declare const BRIDGE_INBOUND_REQUEST_METHODS: {
5148
5143
  readonly interactionRequest: "interaction/request";
5149
5144
  };
5150
5145
 
5146
+ interface PortableSpawnRequest {
5147
+ command: string;
5148
+ args: string[];
5149
+ cwd?: string;
5150
+ detached?: boolean;
5151
+ env?: NodeJS.ProcessEnv;
5152
+ stdio?: StdioOptions;
5153
+ }
5154
+ type PortableChildProcess = ChildProcess;
5155
+ declare function spawnPortableProcess(request: PortableSpawnRequest): PortableChildProcess;
5156
+
5157
+ declare function killPortableProcess(child: ChildProcess, signal: NodeJS.Signals): void;
5158
+
5151
5159
  interface SanitizeInheritedChildProcessEnvArgs {
5152
5160
  env: NodeJS.ProcessEnv;
5153
5161
  shellPath?: string;
@@ -5304,5 +5312,5 @@ declare const claudeTaskToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
5304
5312
  }, z.core.$loose>]>;
5305
5313
  type ClaudeTaskToolOutput = z.infer<typeof claudeTaskToolOutputSchema>;
5306
5314
 
5307
- export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
5308
- export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
5315
+ export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
5316
+ export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };