@get-bb/plugin-sdk 0.6.9 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-types/bb-plugin-sdk-app.d.ts +218 -89
- package/bundled-types/bb-plugin-sdk-host.d.ts +4 -2
- package/bundled-types/bb-plugin-sdk-internal-composer-customization-validation.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +17 -10
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -12
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +9 -4
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +6 -4
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +1 -4
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +38 -31
- package/bundled-types/bb-plugin-sdk-testing.d.ts +4 -2
- package/bundled-types/bb-plugin-sdk.d.ts +222 -91
- package/dist/host.js +17 -14
- package/dist/internal/composer-customization-validation.js +20 -6
- package/dist/internal/composer-handle.js +2 -0
- package/dist/internal/host-policy.js +1 -0
- package/dist/internal/plugin-app-collector.js +44 -13
- package/dist/provider-bridge-acp.js +7662 -314
- package/dist/provider-bridge-testing.js +21 -6
- package/dist/provider-bridge-worker-entry.mjs +7 -2
- package/dist/provider-bridge.js +7401 -169
- package/dist/replay-provider-child.mjs +72 -0
- package/dist/testing/app.js +47 -14
- package/dist/testing/index.js +1 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
|
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
|
|
362
|
-
*
|
|
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
|
-
/**
|
|
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.
|
|
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";
|
|
@@ -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.
|
|
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<{
|
|
@@ -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.
|
|
1550
|
-
*
|
|
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 (
|
|
1904
|
-
*
|
|
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
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarHeaderRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, PluginCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, PluginThreadPanelActionRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginSidebarFooterActionRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarHeaderRegistration, PluginThreadListRegistration, PluginThreadHeaderActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, PluginMessageDirectiveRegistration, PluginMessageActionRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
|
|
11
11
|
type ExperimentalSidebarFooterCommandKind = "close" | "open" | "toggle";
|
|
12
12
|
interface ExperimentalSidebarFooterRuntimeSnapshot {
|
|
@@ -49,9 +49,14 @@ declare const commandShortcutSchema: z.ZodObject<{
|
|
|
49
49
|
mod: z.ZodDefault<z.ZodBoolean>;
|
|
50
50
|
shift: z.ZodDefault<z.ZodBoolean>;
|
|
51
51
|
}, z.core.$strict>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
type CollectedCommandShortcut = z.infer<typeof commandShortcutSchema> | null;
|
|
53
|
+
type CollectedPluginCommandRegistration = (Omit<PluginCommandRegistration, "defaultShortcut"> & {
|
|
54
|
+
target: "app";
|
|
55
|
+
defaultShortcut: CollectedCommandShortcut;
|
|
56
|
+
}) | (Omit<ExperimentalComposerCommandRegistration, "defaultShortcut"> & {
|
|
57
|
+
target: "composer";
|
|
58
|
+
defaultShortcut: CollectedCommandShortcut;
|
|
59
|
+
});
|
|
55
60
|
interface CollectedPluginAppRegistrations {
|
|
56
61
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
57
62
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
@@ -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.
|
|
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
|
|
|
@@ -3387,10 +3387,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3387
3387
|
xhigh: "xhigh";
|
|
3388
3388
|
}>;
|
|
3389
3389
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
3390
|
-
serviceTier: z.
|
|
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";
|
|
@@ -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.
|
|
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<{
|
|
@@ -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"];
|
|
@@ -4296,7 +4305,10 @@ declare function npmGlobalInstallSource(args: {
|
|
|
4296
4305
|
npmBin: string | null;
|
|
4297
4306
|
}): ProviderInstallationSource;
|
|
4298
4307
|
declare function installationVerification(status: Pick<ProviderInstallationStatus, "currentVersion" | "latestVersion">, action: "install" | "update"): ProviderInstallationVerification;
|
|
4299
|
-
declare function downloadedInstallerCommand(url: string
|
|
4308
|
+
declare function downloadedInstallerCommand(url: string, options?: {
|
|
4309
|
+
platform?: NodeJS.Platform;
|
|
4310
|
+
powershellUrl?: string;
|
|
4311
|
+
}): ProviderInstallationCommand;
|
|
4300
4312
|
declare function clampPercent(value: number): number;
|
|
4301
4313
|
|
|
4302
4314
|
type JsonRpcObject = Record<string, unknown>;
|
|
@@ -4444,10 +4456,7 @@ declare const bridgeExecutionOptionsSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
4444
4456
|
ultracode: "ultracode";
|
|
4445
4457
|
xhigh: "xhigh";
|
|
4446
4458
|
}>>;
|
|
4447
|
-
serviceTier: z.ZodOptional<z.
|
|
4448
|
-
default: "default";
|
|
4449
|
-
fast: "fast";
|
|
4450
|
-
}>>;
|
|
4459
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
4451
4460
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4452
4461
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
4453
4462
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -4630,10 +4639,7 @@ declare const threadStartParamsSchema: z.ZodObject<{
|
|
|
4630
4639
|
ultracode: "ultracode";
|
|
4631
4640
|
xhigh: "xhigh";
|
|
4632
4641
|
}>>;
|
|
4633
|
-
serviceTier: z.ZodOptional<z.
|
|
4634
|
-
default: "default";
|
|
4635
|
-
fast: "fast";
|
|
4636
|
-
}>>;
|
|
4642
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
4637
4643
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4638
4644
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
4639
4645
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -4711,10 +4717,7 @@ declare const threadResumeParamsSchema: z.ZodObject<{
|
|
|
4711
4717
|
ultracode: "ultracode";
|
|
4712
4718
|
xhigh: "xhigh";
|
|
4713
4719
|
}>>;
|
|
4714
|
-
serviceTier: z.ZodOptional<z.
|
|
4715
|
-
default: "default";
|
|
4716
|
-
fast: "fast";
|
|
4717
|
-
}>>;
|
|
4720
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
4718
4721
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4719
4722
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
4720
4723
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -4793,10 +4796,7 @@ declare const threadForkParamsSchema: z.ZodObject<{
|
|
|
4793
4796
|
ultracode: "ultracode";
|
|
4794
4797
|
xhigh: "xhigh";
|
|
4795
4798
|
}>>;
|
|
4796
|
-
serviceTier: z.ZodOptional<z.
|
|
4797
|
-
default: "default";
|
|
4798
|
-
fast: "fast";
|
|
4799
|
-
}>>;
|
|
4799
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
4800
4800
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4801
4801
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
4802
4802
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -4953,10 +4953,7 @@ declare const turnStartParamsSchema: z.ZodObject<{
|
|
|
4953
4953
|
ultracode: "ultracode";
|
|
4954
4954
|
xhigh: "xhigh";
|
|
4955
4955
|
}>>;
|
|
4956
|
-
serviceTier: z.ZodOptional<z.
|
|
4957
|
-
default: "default";
|
|
4958
|
-
fast: "fast";
|
|
4959
|
-
}>>;
|
|
4956
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
4960
4957
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4961
4958
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
4962
4959
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -5083,10 +5080,7 @@ declare const turnSteerParamsSchema: z.ZodObject<{
|
|
|
5083
5080
|
ultracode: "ultracode";
|
|
5084
5081
|
xhigh: "xhigh";
|
|
5085
5082
|
}>>;
|
|
5086
|
-
serviceTier: z.ZodOptional<z.
|
|
5087
|
-
default: "default";
|
|
5088
|
-
fast: "fast";
|
|
5089
|
-
}>>;
|
|
5083
|
+
serviceTier: z.ZodOptional<z.ZodString>;
|
|
5090
5084
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5091
5085
|
approvalReviewer: z.ZodLiteral<"user">;
|
|
5092
5086
|
permissionEscalation: z.ZodEnum<{
|
|
@@ -5149,6 +5143,19 @@ declare const BRIDGE_INBOUND_REQUEST_METHODS: {
|
|
|
5149
5143
|
readonly interactionRequest: "interaction/request";
|
|
5150
5144
|
};
|
|
5151
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
|
+
|
|
5152
5159
|
interface SanitizeInheritedChildProcessEnvArgs {
|
|
5153
5160
|
env: NodeJS.ProcessEnv;
|
|
5154
5161
|
shellPath?: string;
|
|
@@ -5305,5 +5312,5 @@ declare const claudeTaskToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5305
5312
|
}, z.core.$loose>]>;
|
|
5306
5313
|
type ClaudeTaskToolOutput = z.infer<typeof claudeTaskToolOutputSchema>;
|
|
5307
5314
|
|
|
5308
|
-
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 };
|
|
5309
|
-
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 };
|
|
@@ -842,8 +842,10 @@ interface PluginProviderDeclaration {
|
|
|
842
842
|
/** Provider copy for core surfaces ({@link PluginProviderStrings}). */
|
|
843
843
|
strings?: PluginProviderStrings;
|
|
844
844
|
/** Service tiers this provider accepts, as picker options. Non-empty when
|
|
845
|
-
* present, unique ids.
|
|
846
|
-
*
|
|
845
|
+
* present, unique ids. Ids are open: `"default"` is the provider's standard
|
|
846
|
+
* tier and every other id is passed to the bridge as `serviceTier`. A
|
|
847
|
+
* `model/list` entry narrows the list with `supportedServiceTiers`. The
|
|
848
|
+
* coarse `capabilities.supportsServiceTier` stays until WS2a stabilizes. */
|
|
847
849
|
serviceTiers?: readonly PluginProviderOptionDescriptor[];
|
|
848
850
|
/** Reasoning levels as picker options with labels, beside the coarse
|
|
849
851
|
* `capabilities.reasoningLevels` ladder (ids only). Non-empty when present,
|