@theokit/agents 16.0.0 → 16.1.1

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +47 -1
  3. package/dist/{agent-compiler-BMpuJFAI.d.ts → agent-compiler-JSYkHpa7.d.ts} +2 -2
  4. package/dist/{delegation-scoring-CURe4oSL.d.ts → agent-orchestrator-BFWg2URC.d.ts} +11 -426
  5. package/dist/agent-runner-BUJKNNuI.d.ts +364 -0
  6. package/dist/agent-sse-handler-BRp9vHrb.d.ts +348 -0
  7. package/dist/{bridge-entry-BxJWDpQP.d.ts → bridge-entry-BNWDrPzg.d.ts} +8 -422
  8. package/dist/bridge.d.ts +8 -5
  9. package/dist/bridge.js +19 -15
  10. package/dist/{chunk-4PHZ25JN.js → chunk-A7RXWJZE.js} +62 -1137
  11. package/dist/chunk-A7RXWJZE.js.map +1 -0
  12. package/dist/{chunk-FIGLHWR2.js → chunk-CJMYZKUL.js} +7 -7
  13. package/dist/chunk-MB23MSOK.js +353 -0
  14. package/dist/chunk-MB23MSOK.js.map +1 -0
  15. package/dist/chunk-SAKSZKVK.js +799 -0
  16. package/dist/chunk-SAKSZKVK.js.map +1 -0
  17. package/dist/delegation-scoring-Cn5eM4lQ.d.ts +79 -0
  18. package/dist/evals.d.ts +84 -0
  19. package/dist/evals.js +191 -0
  20. package/dist/evals.js.map +1 -0
  21. package/dist/handoff.d.ts +91 -0
  22. package/dist/handoff.js +268 -0
  23. package/dist/handoff.js.map +1 -0
  24. package/dist/index.d.ts +19 -369
  25. package/dist/index.js +36 -32
  26. package/dist/index.js.map +1 -1
  27. package/dist/mcp-health.d.ts +1 -1
  28. package/dist/sdk-adapter-DQnKx7bA.d.ts +435 -0
  29. package/dist/testing.d.ts +2 -2
  30. package/dist/tools.d.ts +5 -3
  31. package/dist/tools.js +10 -6
  32. package/dist/tools.js.map +1 -1
  33. package/dist/{types-DdltPCj2.d.ts → types-D5cHmSLi.d.ts} +1 -1
  34. package/docs/capability-map.md +31 -1
  35. package/package.json +12 -2
  36. package/dist/chunk-4PHZ25JN.js.map +0 -1
  37. /package/dist/{chunk-FIGLHWR2.js.map → chunk-CJMYZKUL.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,26 +1,29 @@
1
- import { PluginsSettings, Plugin, ProviderRoutingSettings, AgentDefinition, BudgetTracker, CustomTool, GoalLoopAgent, GoalOptions, runGoalLoop, GoalEvent, GoalResult, InlineSkill, Agent as Agent$1, ListAgentsOptions, ListResult, SDKAgentInfo } from '@theokit/sdk';
1
+ import { GoalLoopAgent, GoalOptions, runGoalLoop, GoalEvent, GoalResult, InlineSkill, Agent as Agent$1, ListAgentsOptions, ListResult, SDKAgentInfo } from '@theokit/sdk';
2
2
  export { BudgetTracker, CustomTool, DiagnosticsSink, GenerateObjectError, GoalEvent, GoalLoopAgent, GoalOptions, GoalResult, InlineSkill, JudgeCredentialError, JudgeResult, LayerOrderError, McpAuthConfig, McpHttpServerConfig, McpOAuthConfig, McpServerConfig, McpStdioServerConfig, Plugin, PluginsSettings, Provider, ProviderRoutingSettings, RunEvent, SDKAgent, SessionRecord, SessionStore, Squad, StreamObjectError, Tool, ToolError, ToolResultContentBlock, TrustLevel, TrustPosture, TrustPostureInput, TrustSource, UngatedCapabilityError, Verdict, WiredEntity, applySecurityFloor, auditEnvReachability, foldLayers, recordWiring, resolveTrustPosture, setDiagnosticsSink, verifyLayerOrdering } from '@theokit/sdk';
3
- import { b as MainLoopMeta, B as BudgetOptions, R as ReasoningEffort, T as ToolOptions, A as ApprovalOptions, H as HumanInTheLoopOptions } from './types-DdltPCj2.js';
4
- export { c as AgentOptions, d as MainLoopOptions, M as McpServersMap, e as PolicyHandler, f as TimeoutAction, g as ToolboxOptions } from './types-DdltPCj2.js';
5
- import { C as ContextWindowOptions, S as SkillsOptions, A as AgentManifestEntry, H as HitlDecision, s as streamAgentUIMessages, a as ApprovalPosture, b as AgentModule } from './bridge-entry-BxJWDpQP.js';
6
- export { c as APPROVAL_MODES, d as AfterToolCallContext, e as AgentBuilder, f as AgentDefinitionError, g as AgentExecutionContext, h as AgentManifest, i as AgentManifestSource, j as AgentManifestTool, k as AgentRoute, l as AgentRouteContext, m as AgentRunInfo, n as AgentsPluginOptions, o as ApiErrorContext, p as ApiErrorDecision, q as ApiErrorPolicy, r as ApprovalMode, t as ApprovalRequest, B as BeforeToolCallContext, u as CompiledContextWindow, v as ContextualTool, D as DefinitionOrThunk, w as DelegationTimeoutError, E as EphemeralAgent, L as LLMCallContext, M as McpApprovalSpec, x as McpFileError, y as McpRegistryConfig, z as McpRequestContext, F as McpSelection, P as PermissionsPluginOptions, G as ProcessInputContext, R as RuntimeOverrides, I as SdkAgentHandle, J as SdkMessage, K as SdkSendOptions, N as SdkTurnHandle, O as Segment, Q as ShouldAutoApproveOptions, T as ToolCallVeto, U as ToolHooks, V as ToolHooksPlugin, W as WRITE_SCOPED_TOOLS, X as agentsPlugin, Y as applyPosture, Z as buildModelSelection, _ as compileAgentModule, $ as compileContextWindow, a0 as compileLoadedAgentModule, a1 as compileProjectContext, a2 as compileSkills, a3 as createAgentExecutionContext, a4 as createApiErrorHandler, a5 as createPermissionsPlugin, a6 as createSdkAgentStream, a7 as createThinkTagExtractor, a8 as createToolHooksPlugin, a9 as extractThinkTagStream, aa as generateAgentManifest, ab as generateAgentRoutes, ac as isAgentContext, ad as loadMcpJson, ae as loadPersonalMcpServers, af as mcpRegistry, ag as mcpToolApprovals, ah as projectContextMetadataOnlyKnobs, ai as reasoningEffortOf, aj as resolveMcpServers, ak as runWithApiErrorHandling, al as shouldAutoApprove, am as toAgentFactory, an as translateSdkEvent, ao as withClockCap, ap as withEphemeralAgent } from './bridge-entry-BxJWDpQP.js';
3
+ import { R as ReasoningEffort, T as ToolOptions, A as ApprovalOptions, H as HumanInTheLoopOptions } from './types-D5cHmSLi.js';
4
+ export { c as AgentOptions, B as BudgetOptions, M as MainLoopMeta, d as MainLoopOptions, a as McpServersMap, e as PolicyHandler, f as TimeoutAction, g as ToolboxOptions } from './types-D5cHmSLi.js';
5
+ import { H as HitlDecision, A as ApprovalPosture } from './sdk-adapter-DQnKx7bA.js';
6
+ export { a as ApprovalRequest, D as DefinitionOrThunk, R as RuntimeOverrides, S as SdkAgentHandle, b as SdkSendOptions, c as SdkTurnHandle, d as applyPosture, e as createSdkAgentStream, t as toAgentFactory } from './sdk-adapter-DQnKx7bA.js';
7
7
  import { TheokitAgentError } from '@theokit/sdk/errors';
8
8
  export * from '@theokit/sdk/errors';
9
9
  export { ConfigurationError, BudgetExceededError as WindowBudgetExceededError } from '@theokit/sdk/errors';
10
- import { G as Guardrail, C as CompiledAgentOptions, a as CompiledTool } from './agent-compiler-BMpuJFAI.js';
11
- export { b as AGENT_BRAND, A as AgentDefinition, c as CompatImportUnsupportedError, d as CostBudgetExceededError, D as DefineAgentConfig, e as GuardrailAction, f as GuardrailError, g as GuardrailPhase, h as GuardrailResult, i as GuardrailViolationError, H as HookApprovalGate, j as HookApprovalRequest, k as HookGateUnsupportedError, I as InferAgentInput, l as InferAgentToolNames, M as MalformedGuardrailResultError, S as SkillsRequestContext, m as SkillsSelection, T as ToolWalkResult, n as ToolboxWalkResult, U as UnreadableTextPayloadError, o as compileAgentDefinition, p as compileTools, q as isAgentDefinition, r as resolveEnabledSkills } from './agent-compiler-BMpuJFAI.js';
10
+ import { G as Guardrail, a as CompiledAgentOptions, C as CompiledTool } from './agent-compiler-JSYkHpa7.js';
11
+ export { b as AGENT_BRAND, A as AgentDefinition, c as CompatImportUnsupportedError, d as CostBudgetExceededError, D as DefineAgentConfig, e as GuardrailAction, f as GuardrailError, g as GuardrailPhase, h as GuardrailResult, i as GuardrailViolationError, H as HookApprovalGate, j as HookApprovalRequest, k as HookGateUnsupportedError, I as InferAgentInput, l as InferAgentToolNames, M as MalformedGuardrailResultError, S as SkillsRequestContext, m as SkillsSelection, T as ToolWalkResult, n as ToolboxWalkResult, U as UnreadableTextPayloadError, o as compileAgentDefinition, p as compileTools, q as isAgentDefinition, r as resolveEnabledSkills } from './agent-compiler-JSYkHpa7.js';
12
+ import { C as ContextWindowOptions, S as SkillsOptions, A as AgentManifestEntry, s as streamAgentUIMessages, a as AgentModule } from './bridge-entry-BNWDrPzg.js';
13
+ export { b as APPROVAL_MODES, c as AfterToolCallContext, d as AgentBuilder, e as AgentDefinitionError, f as AgentExecutionContext, g as AgentManifest, h as AgentManifestSource, i as AgentManifestTool, j as AgentRoute, k as AgentRouteContext, l as AgentRunInfo, m as AgentsPluginOptions, n as ApiErrorContext, o as ApiErrorDecision, p as ApiErrorPolicy, q as ApprovalMode, B as BeforeToolCallContext, r as CompiledContextWindow, t as ContextualTool, D as DelegationTimeoutError, E as EphemeralAgent, L as LLMCallContext, M as McpApprovalSpec, u as McpFileError, v as McpRegistryConfig, w as McpRequestContext, x as McpSelection, P as PermissionsPluginOptions, y as ProcessInputContext, z as SdkMessage, F as Segment, G as ShouldAutoApproveOptions, T as ToolCallVeto, H as ToolHooks, I as ToolHooksPlugin, W as WRITE_SCOPED_TOOLS, J as agentsPlugin, K as buildModelSelection, N as compileAgentModule, O as compileContextWindow, Q as compileLoadedAgentModule, R as compileProjectContext, U as compileSkills, V as createAgentExecutionContext, X as createApiErrorHandler, Y as createPermissionsPlugin, Z as createThinkTagExtractor, _ as createToolHooksPlugin, $ as extractThinkTagStream, a0 as generateAgentManifest, a1 as generateAgentRoutes, a2 as isAgentContext, a3 as loadMcpJson, a4 as loadPersonalMcpServers, a5 as mcpRegistry, a6 as mcpToolApprovals, a7 as projectContextMetadataOnlyKnobs, a8 as reasoningEffortOf, a9 as resolveMcpServers, aa as runWithApiErrorHandling, ab as shouldAutoApprove, ac as translateSdkEvent, ad as withClockCap, ae as withEphemeralAgent } from './bridge-entry-BNWDrPzg.js';
12
14
  import { S as SettingSourcesSelection } from './setting-sources-gate-BJJiKq33.js';
13
15
  export { C as CompatSurface, a as GatedCompatSource, G as GatedSettingSource, P as ProjectSettingsGrant, R as ResolvedCompatSource, b as SettingSourceCapability, U as UntrustedSettingSourceError, r as resolveCompatSources, c as resolveSettingSources } from './setting-sources-gate-BJJiKq33.js';
14
- import { L as LoopStrategy, R as ReflectionStrategy, b as RoundStreamFactory, S as StreamEvent, c as DelegationResult } from './delegation-scoring-CURe4oSL.js';
15
- export { A as AgentStopReason, d as AgentStreamEvent, e as AgentTurnMetadata, f as ApprovalRequiredEvent, g as ArtifactChunkEvent, h as ArtifactStartEvent, B as BackgroundDelegation, i as BudgetExceededError, C as CheckpointSavedEvent, j as DEFAULT_MAX_ITERATIONS, k as DelegateFn, a as DelegateOptions, l as DelegationBudgetCostUnknownError, m as DelegationBudgetExceededError, n as DelegationError, o as DelegationPort, D as DelegationTarget, p as DoneEvent, E as ErrorEvent, F as FileEditEvent, I as IterationEvent, q as LoopFinishReason, r as LoopOutcome, s as LoopStrategyConfig, P as PartialToolCallEvent, t as ReflectionContext, u as ReflectionResult, v as ReflectionStrategyConfig, w as RunStartedEvent, x as ScoreVerdict, y as ScoredDelegation, z as Scorer, G as StateUpdateEvent, T as TextDeltaEvent, H as ThinkingEvent, J as ToolCallEvent, K as ToolResultEvent, M as delegate, N as delegateBackground, O as delegateWithScoring, Q as isApprovalRequired, U as isDone, V as isError, W as isPartialToolCall, X as isTextDelta, Y as isToolCall, Z as isToolResult, _ as ladderReflectionStrategy, $ as loopStrategyConfigSchema, a0 as noopReflectionStrategy, a1 as presentUIMessageStream, a2 as reflectionStrategyConfigSchema, a3 as resolveLoopStrategy, a4 as streamAgentResponse } from './delegation-scoring-CURe4oSL.js';
16
- import { RetryOptions } from '@theokit/sdk/retry';
17
- export * from '@theokit/sdk/retry';
18
- export { RetryOptions } from '@theokit/sdk/retry';
16
+ export { a as AgentStopReason, b as AgentStreamEvent, c as AgentTurnMetadata, A as ApprovalRequiredEvent, d as ArtifactChunkEvent, e as ArtifactStartEvent, C as CheckpointSavedEvent, D as DoneEvent, E as ErrorEvent, F as FileEditEvent, I as IterationEvent, P as PartialToolCallEvent, R as RunStartedEvent, f as StateUpdateEvent, S as StreamEvent, T as TextDeltaEvent, g as ThinkingEvent, h as ToolCallEvent, i as ToolResultEvent, j as isApprovalRequired, k as isDone, l as isError, m as isPartialToolCall, n as isTextDelta, o as isToolCall, p as isToolResult, q as presentUIMessageStream, s as streamAgentResponse } from './agent-sse-handler-BRp9vHrb.js';
17
+ export { B as BudgetExceededError, c as DEFAULT_MAX_ITERATIONS, a as DelegateOptions, d as DelegationBudgetCostUnknownError, e as DelegationBudgetExceededError, f as DelegationError, D as DelegationResult, g as LoopFinishReason, h as LoopOutcome, L as LoopStrategy, i as LoopStrategyConfig, j as ReflectionContext, k as ReflectionResult, b as ReflectionStrategy, l as ReflectionStrategyConfig, R as RoundStreamFactory, m as delegate, n as ladderReflectionStrategy, o as loopStrategyConfigSchema, p as noopReflectionStrategy, r as reflectionStrategyConfigSchema, q as resolveLoopStrategy } from './agent-orchestrator-BFWg2URC.js';
18
+ export { B as BackgroundDelegation, a as DelegateFn, b as DelegationPort, D as DelegationTarget, S as ScoreVerdict, c as ScoredDelegation, d as Scorer, e as delegateBackground, f as delegateWithScoring } from './delegation-scoring-Cn5eM4lQ.js';
19
+ import { T as TranscriptCompactionStrategy } from './agent-runner-BUJKNNuI.js';
20
+ export { a as AgentRunner, b as AgentRunnerBuilder, A as AgentRunnerRunOptions, C as CompactionCallOptions, c as CompactionStrategyConfig, D as DEFAULT_KEEP_TOKENS, S as Summarize, d as compactionStrategyConfigSchema, r as resolveCompactionStrategy, t as tokenBudgetCompactionStrategy } from './agent-runner-BUJKNNuI.js';
19
21
  import { CompressibleMessage } from '@theokit/sdk/compaction';
20
22
  export { CONTEXT_WINDOW_FLOOR, CONTEXT_WINDOW_MARGIN, CompressibleMessage, ContextWindowMarginError, ContextWindowSource, EffectiveContextWindow, resolveEffectiveContextWindow } from '@theokit/sdk/compaction';
21
- import { z } from 'zod';
22
23
  export { SubAgent } from '@theokit/sdk/a2a';
23
24
  export { assertNoSymlinkEscape, isForbiddenPath, safePathJoin } from '@theokit/sdk/path-safety';
25
+ export * from '@theokit/sdk/retry';
26
+ export { RetryOptions } from '@theokit/sdk/retry';
24
27
  export * from '@theokit/sdk/concurrency';
25
28
  export * from '@theokit/sdk/messages';
26
29
  export * from '@theokit/sdk/models';
@@ -30,8 +33,9 @@ export { H as HookHandlers } from './hook-handlers-Cw2FsnE5.js';
30
33
  import { WireChunk } from '@theokit/presenter/wire';
31
34
  export { WireChunk, WireDataPart } from '@theokit/presenter/wire';
32
35
  export { ContentChunk, LifecycleItem, LifecycleVocabulary, TurnLifecycle, TurnOutcome, foldTurnLifecycle } from '@theokit/presenter';
33
- import '@theokit/http';
36
+ import 'zod';
34
37
  import '@theokit/sdk/sandbox';
38
+ import '@theokit/http';
35
39
 
36
40
  /**
37
41
  * M9 (theokit-ai-first) — built-in guardrail detectors.
@@ -206,360 +210,6 @@ declare function textPayloadExtractor<E extends {
206
210
  type?: unknown;
207
211
  }>(kind: string, read: (event: E) => unknown): (event: E) => string | undefined;
208
212
 
209
- /**
210
- * TranscriptCompactionStrategy — a named, callable transcript-compaction authoring layer
211
- * (Strategy pattern, V4-F). Mirrors `ReflectionStrategy`/`LoopStrategy`: interface
212
- * + zod config schema + a `'token-budget'` default + `resolveCompactionStrategy`.
213
- *
214
- * The `'token-budget'` strategy DELEGATES to the SDK's `compactTranscript` (ADR D2 /
215
- * G2 / sdk-runtime.md — the SDK owns the algorithm; agents owns the named interface;
216
- * no reimplementation). Per ADR D1 it is CALLABLE by the app (exposed as
217
- * `AgentRunner.compaction`), NOT auto-invoked by the reflective loop — the SDK owns
218
- * per-turn context, so the app decides WHEN to compact and supplies the `summarize`
219
- * callback (its own LLM). EC-6: consumers whose transcript rows carry roles outside
220
- * the SDK's `CompressibleMessage` union (e.g. `'tool'`) cast at the call site, exactly
221
- * as the SDK's own type contract requires.
222
- */
223
-
224
- /** Token budget mirrored from theocode's proven `DEFAULT_KEEP_TOKENS` (server/lib/compaction.ts). */
225
- declare const DEFAULT_KEEP_TOKENS = 8000;
226
- /**
227
- * App-supplied summarizer: collapse the older window into one turn (the app's LLM).
228
- * Signature matches the SDK `compactTranscript` contract — receives the older window
229
- * AND the (optionally overridden) summary template.
230
- */
231
- type Summarize = (older: CompressibleMessage[], template: string) => Promise<CompressibleMessage>;
232
- /**
233
- * Per-call options for {@link TranscriptCompactionStrategy.compact} — a faithful
234
- * pass-through of the SDK `CompactTranscriptOptions` knobs the app controls. Defaults
235
- * are the SDK's, EXCEPT `failSafe` which defaults `true` here: a thrown `summarize`
236
- * returns the ORIGINAL transcript + a structured warn instead of losing it — compaction
237
- * is an optimization, never a cause of data loss (error-handling discipline). The app
238
- * passes `failSafe: false` to opt into fail-fast propagation.
239
- */
240
- interface CompactionCallOptions {
241
- /** Override the strategy's configured `keepTokens` for this call. */
242
- readonly keepTokens?: number;
243
- /** Summarize the older window; if omitted, the SDK drops it (its documented contract). */
244
- readonly summarize?: Summarize;
245
- /** Checkpoint marker (SDK default when omitted). */
246
- readonly marker?: string;
247
- /** Summary template passed to `summarize` (SDK default when omitted). */
248
- readonly summaryTemplate?: string;
249
- /** When true (DEFAULT here), a thrown `summarize` returns the original transcript + a warn. */
250
- readonly failSafe?: boolean;
251
- }
252
- /** A named, callable compaction strategy. Pure of I/O except the delegated SDK call. */
253
- interface TranscriptCompactionStrategy {
254
- /** Strategy identifier (e.g. `'token-budget'`). */
255
- readonly name: string;
256
- /** The configured token budget (from `@Compaction` / `.compaction()` / default). */
257
- readonly keepTokens: number;
258
- /**
259
- * Compact `messages` to the (optionally overridden) token budget via the SDK's
260
- * `compactTranscript`. Returns the compacted transcript; never mutates the input.
261
- */
262
- compact(messages: CompressibleMessage[], options?: CompactionCallOptions): Promise<CompressibleMessage[]>;
263
- }
264
- /**
265
- * Serializable config for a TranscriptCompactionStrategy (SSoT per type-safety.md / G3).
266
- * `keepTokens` is REQUIRED for `'token-budget'` (EC-2 / G10 — no silent degradation
267
- * to the SDK's turn-count `keepRecent` default; the strategy is named for token budget).
268
- */
269
- declare const compactionStrategyConfigSchema: z.ZodObject<{
270
- name: z.ZodLiteral<"token-budget">;
271
- keepTokens: z.ZodNumber;
272
- }, z.core.$strip>;
273
- type CompactionStrategyConfig = z.infer<typeof compactionStrategyConfigSchema>;
274
- /**
275
- * Resolve a `@Compaction` / `.compaction()` declaration to a concrete strategy.
276
- * Throws (Zod) on an unknown name or a missing/invalid `keepTokens` (EC-2/EC-5 —
277
- * fail-fast, mirrors `resolveLoopStrategy`). The returned strategy's `compact`
278
- * delegates to `compactTranscript`, defaulting `keepTokens` to the configured value.
279
- */
280
- declare function resolveCompactionStrategy(name: string, config: {
281
- keepTokens?: number;
282
- }): TranscriptCompactionStrategy;
283
- /**
284
- * The default `'token-budget'` strategy (what `@Compaction('token-budget')` without
285
- * an explicit budget resolves to). Carries {@link DEFAULT_KEEP_TOKENS}; the app may
286
- * override per call via `compact(messages, { keepTokens })`.
287
- */
288
- declare const tokenBudgetCompactionStrategy: TranscriptCompactionStrategy;
289
-
290
- /**
291
- * AgentRunner — the imperative twin of `@MainLoop` (plan ADR D4, V4-B).
292
- *
293
- * `AgentRunner.fromSpec(spec).reflection().stream().build()` resolves the loop strategy from
294
- * an already-compiled spec (the capability-authored agent). `delegate()` shares the same runtime.
295
- * `build()` is the compile boundary (no I/O, no IoC — standalone, mirrors
296
- * Spring's `ChatClient.builder(...).build()`); `stream()`/`run()` do the I/O via
297
- * `runReflectiveLoopStream` (the SAME loop `delegate()` drains — DRY, ADR 0031).
298
- * V4-D-stream: `stream()` yields events live (SSE-first); `run()` drains it to a result.
299
- */
300
-
301
- /**
302
- * Resolves the credential at the start of the stream, instead of demanding the value ready before the call.
303
- *
304
- * M74 — the credential injection point was ALREADY per run; what blocked it was the type. With a
305
- * `string`, the caller must hold the value beforehand, so the *moment* is per run but the *value* is
306
- * frozen earlier — and a short-lived OAuth bearer crosses the whole run without being re-fetched. It
307
- * was the structural cause of a silent turn in production.
308
- */
309
- type CredentialResolver = () => string | Promise<string>;
310
- /** Options for {@link AgentRunner.run}. */
311
- interface AgentRunnerRunOptions {
312
- /**
313
- * The LLM API key, or a resolver called when the stream starts.
314
- *
315
- * `string` remains valid and is the path for anyone holding an API key — it does not expire, and
316
- * demanding a resolver there would be ceremony with no gain. The resolver exists for credentials
317
- * that EXPIRE.
318
- */
319
- readonly apiKey: string | CredentialResolver;
320
- /** Session id override (default: a fresh isolated id). */
321
- readonly sessionId?: string;
322
- /**
323
- * The run's USD ceiling across rounds: a number, or `{ maxCostUsd }`. The first round always
324
- * runs, because no earlier round exists to project its cost from; when that round alone passes
325
- * the ceiling, the run then stops with `DelegationBudgetExceededError`. Every later round is
326
- * projected at the last round's cost, and the run stops before a round the ceiling cannot cover.
327
- * `window`, and a ceiling (either spelling) that is `NaN` or not a number, are refused at the
328
- * call with a `DelegationError`; a ceiling of 0 or below throws `DelegationBudgetExceededError`
329
- * at the call, before any round; `Infinity` is no ceiling.
330
- */
331
- readonly budget?: number | BudgetOptions;
332
- /** Cancellation — aborts stop the reflective loop from re-entering. */
333
- readonly signal?: AbortSignal;
334
- /**
335
- * V4-J: per-run tool override. When provided, REPLACES the build-time
336
- * `compiled.tools` for this call only (e.g. a consumer that selects tools by
337
- * request mode/permission). Absent ⇒ the agent's compiled tools (unchanged).
338
- */
339
- readonly tools?: readonly CompiledTool[];
340
- /**
341
- * V4-L.2 (Axis-A SWAP): per-run model override. Merge-over-compiled —
342
- * `opts.model ?? compiled.model ?? default`. Absent ⇒ the compiled model.
343
- */
344
- readonly model?: string;
345
- /**
346
- * M1 (Axis-A SWAP): per-run extended-thinking effort. Merge-over-compiled —
347
- * `opts.reasoningEffort ?? compiled.reasoningEffort` (resolved in the adapter, single site).
348
- * Mapped to the SDK `ModelSelection.params` so the provider reasons (surfaced as `thinking`
349
- * StreamEvents). Absent ⇒ the compiled reasoning effort (or none).
350
- */
351
- readonly reasoningEffort?: ReasoningEffort;
352
- /**
353
- * M2 (Axis-A SWAP): per-run opt-in to convert inline `<think>…</think>` text into `thinking`
354
- * events. Merge-over-compiled (`opts.parseThinkTags ?? compiled.parseThinkTags ?? false`). For
355
- * models that emit reasoning as inline tags (qwen/deepseek) instead of a native reasoning param.
356
- */
357
- readonly parseThinkTags?: boolean;
358
- /**
359
- * theocode#32 (Axis-A SWAP): per-run opt-in to strip a leaked Hermes `<function=…></tool_call>`
360
- * tool-call dialect out of the text stream. Merge-over-compiled
361
- * (`opts.stripToolDialect ?? compiled.stripToolDialect ?? false`). For models (qwen/qwen3-coder)
362
- * that leak tool calls as text instead of native `tool_calls`.
363
- */
364
- readonly stripToolDialect?: boolean;
365
- /**
366
- * theokit#58 (Axis-A SWAP): per-run opt-in to RECOVER a leaked Hermes `<function=…></tool_call>`
367
- * tool-call dialect so the call EXECUTES (enables the SDK route's `extractToolCallsFromContent`).
368
- * Merge-over-compiled (`opts.recoverLeakedToolCalls ?? compiled.recoverLeakedToolCalls ?? false`).
369
- * Sibling of {@link stripToolDialect} (display-only); typically enabled together. Has effect only
370
- * when {@link providers} routes a provider.
371
- */
372
- readonly recoverLeakedToolCalls?: boolean;
373
- /**
374
- * V4-L.2 (Axis-A SWAP): per-run working directory, forwarded into
375
- * `Agent.create({ local: { cwd } })` so the SDK populates `SystemPromptContext.cwd`
376
- * (read by a `SystemPromptResolver` / `@ProjectContext`). Absent ⇒ no `local.cwd`.
377
- */
378
- readonly cwd?: string;
379
- /**
380
- * SDK 4.0 (SE40): per-run root of the native `.jsonl` session transcript, forwarded into
381
- * `Agent.create({ local: { baseDir } })`. Absent ⇒ the SDK default (`~/.theokit`).
382
- */
383
- readonly baseDir?: string;
384
- /**
385
- * V4-L.2 (Axis-A SWAP): per-run loop-ceiling override. When provided, the loop
386
- * strategy is re-resolved with this ceiling for this call only (zod-validated —
387
- * `< 1` throws, never a silent unbounded loop). Absent ⇒ the build-time ceiling.
388
- */
389
- readonly maxIterations?: number;
390
- /**
391
- * V4-L.3 (Axis-A SWAP): per-run plugins (e.g. permission gate by request mode).
392
- * Accepts EITHER named-plugin discovery settings (`{ enabled: [...] }`) OR an
393
- * array of code `Plugin` objects (`[permissionPlugin, cachePlugin]`). Both are
394
- * forwarded RAW through the duck-typed `Agent.create` bridge to the SDK runtime,
395
- * which accepts either form (mirrors the @theokit/sdk `AgentOptions.plugins` widen).
396
- */
397
- readonly plugins?: PluginsSettings | readonly Plugin[];
398
- /** V4-L.3 (Axis-A SWAP): per-run provider routing. */
399
- readonly providers?: ProviderRoutingSettings;
400
- /** V4-L.3 (Axis-A SWAP): per-run sub-agent definitions (opts-only; @SubAgents stays deferred). */
401
- readonly agents?: Record<string, AgentDefinition>;
402
- /**
403
- * V4-L.3 (Axis-A SWAP): per-run SDK budget tracker — caps the INNER SDK tool-loop per
404
- * send. Distinct from {@link AgentRunnerRunOptions.budget} (the OUTER reflective-loop USD ceiling).
405
- */
406
- readonly budgetTracker?: BudgetTracker;
407
- /**
408
- * V4-Q: pre-built SDK `CustomTool[]` forwarded RAW to `Agent.create.tools` (appended after the
409
- * agent's compiled tools), bypassing `defineTool`. For an app whose tools come from imperative
410
- * SDK factories (no `@Tool` compile path / no recoverable Zod schema). Distinct from `tools`
411
- * (which REPLACES the compiled `CompiledTool[]`).
412
- */
413
- readonly sdkTools?: readonly CustomTool[];
414
- /**
415
- * V4-R: inject the per-round stream factory, driving the reflective loop with a caller-provided
416
- * stream INSTEAD of the SDK adapter (tests / custom transport). When set, the SDK-create options
417
- * (`tools`/`sdkTools`/`model`/`cwd`/`plugins`/...) are NOT used for this call — the consumer owns
418
- * the stream. Absent ⇒ `createSdkAgentStream` (the default runtime).
419
- */
420
- readonly streamFactory?: RoundStreamFactory;
421
- /**
422
- * V4-P: per-round transient retry. When set, the START of each reflective round (factory
423
- * creation + first event, before any event is yielded) is wrapped in the SDK `withRetry` —
424
- * a 429/5xx/network blip is recovered without re-applying an edit. Absent ⇒ single attempt.
425
- * Default `isRetryable` is the SDK `isTransientError`.
426
- */
427
- readonly retry?: RetryOptions;
428
- }
429
- /**
430
- * A built, runnable agent. Construct via {@link AgentRunner.fromSpec} — the
431
- * constructor takes already-resolved state and is an internal detail.
432
- */
433
- /** Already-resolved state handed to the {@link AgentRunner} constructor (internal). */
434
- interface AgentRunnerState {
435
- readonly compiled: CompiledAgentOptions;
436
- readonly agentName: string;
437
- /** The resolved terminal-decision strategy (parity with `delegate()`). */
438
- readonly loopStrategy: LoopStrategy;
439
- /**
440
- * M54 — true when `loopStrategy` came from `.loopStrategy(custom)` rather than a built-in name.
441
- * A custom must NOT be re-resolved by name (its name is outside the `z.enum`); a per-run
442
- * `maxIterations` override applies to it as a runner ceiling instead (see `stream`). Optional and
443
- * defaults to `false`: a state built directly (tests, `delegate()`) is a by-name built-in.
444
- */
445
- readonly loopStrategyIsCustom?: boolean;
446
- /** The resolved between-round reflection (default or `.reflection(custom)` override). */
447
- readonly reflectionStrategy: ReflectionStrategy;
448
- /** Recorded streaming preference (see {@link AgentRunner.streamEnabled}). */
449
- readonly streamEnabled: boolean;
450
- /** The resolved compaction strategy, or `undefined` when none is declared (EC-4). */
451
- readonly compaction?: TranscriptCompactionStrategy;
452
- }
453
- declare class AgentRunner {
454
- private readonly compiled;
455
- private readonly agentName;
456
- /** The resolved terminal-decision strategy (parity with `delegate()`). */
457
- readonly loopStrategy: LoopStrategy;
458
- /** M54 — whether {@link loopStrategy} is a caller-injected custom (see {@link AgentRunnerState}). */
459
- private readonly loopStrategyIsCustom;
460
- /** The resolved between-round reflection (default or `.reflection(custom)` override). */
461
- readonly reflectionStrategy: ReflectionStrategy;
462
- /**
463
- * Recorded streaming preference. The reflective loop currently always streams via
464
- * the SDK `Run.stream()`; a non-streaming collect mode is future work — the flag is
465
- * captured + exposed here, not yet branched on (honest per G10: documented, not a
466
- * silent no-op).
467
- */
468
- readonly streamEnabled: boolean;
469
- /**
470
- * V4-F: the resolved compaction strategy (from `@Compaction` or `.compaction()`),
471
- * or `undefined` when neither is declared — compaction is opt-in (EC-4). CALLABLE
472
- * by the app (ADR D1: `runner.compaction?.compact(messages, { summarize })`); the
473
- * reflective loop does NOT auto-invoke it (the SDK owns per-turn context).
474
- */
475
- readonly compaction?: TranscriptCompactionStrategy;
476
- constructor(state: AgentRunnerState);
477
- /** Start a fluent builder from an already-compiled spec. */
478
- static fromSpec(spec: AgentRunnerSpec): AgentRunnerBuilder;
479
- /**
480
- * V4-D-stream: stream the agent's events LIVE across the reflective loop, returning
481
- * the aggregated {@link DelegationResult} as the generator's return value. This is the
482
- * on-ramp for streaming-first apps (SSE) — `runReflectiveLoopStream` yields every
483
- * round's events before the loop terminates. `streamEnabled` is honored: when the
484
- * builder set `.stream(false)`, callers should use {@link run} instead.
485
- */
486
- stream(message: string, opts: AgentRunnerRunOptions): AsyncGenerator<StreamEvent, DelegationResult>;
487
- /** The core stream path, after input guardrails have run (M9). */
488
- private streamUnguarded;
489
- /** Run the agent to a terminal result via the shared reflective loop (collect mode). */
490
- /**
491
- * Apply a per-call `maxIterations` override (M54 D4). A custom strategy must NOT be re-resolved by
492
- * name — its name is outside the `z.enum`, which would throw — and its `shouldContinue` closure
493
- * must survive; since the runner enforces the ceiling via `round < loop.maxIterations` (T1.1),
494
- * overriding just that field bounds a custom without touching its logic. A built-in keeps the
495
- * by-name re-resolution (zod fail-loud on `< 1`) — unchanged, zero-behavior.
496
- */
497
- private resolvePerRunLoop;
498
- run(message: string, opts: AgentRunnerRunOptions): Promise<DelegationResult>;
499
- }
500
- /**
501
- * M53 — what the runner actually needs in order to run: an already-compiled agent plus the two
502
- * loop knobs. It used to derive all of this from `walkAgentMetadata`, which chained the runner to
503
- * the decorator surface. `strategy` and `compaction` are the two non-waist channels ADR 0002 keeps
504
- * (the builder's `.compaction()` already outranked the decorator; this just names the input).
505
- */
506
- /**
507
- * The already-compiled agent the runner executes. Field-compatible with `SubAgentSpec` on purpose —
508
- * one spec drives both `AgentRunner.fromSpec` and `delegate`.
509
- */
510
- interface AgentRunnerSpec {
511
- readonly name: string;
512
- readonly compiled: CompiledAgentOptions;
513
- readonly strategy?: MainLoopMeta['strategy'];
514
- readonly maxIterations?: number;
515
- readonly compaction?: {
516
- name: string;
517
- keepTokens?: number;
518
- };
519
- }
520
- /** Fluent builder — accumulates config; `build()` is the compile boundary. */
521
- declare class AgentRunnerBuilder {
522
- private readonly spec;
523
- private reflectionOverride?;
524
- private streamEnabled;
525
- private compactionOverride?;
526
- private loopStrategyOverride?;
527
- constructor(spec: AgentRunnerSpec);
528
- /** Override the default reflection strategy (OCP — plan Drawback #2). No arg ⇒ keep default. */
529
- reflection(strategy?: ReflectionStrategy): this;
530
- /**
531
- * M54 — inject a custom terminal-decision strategy (the fourth OCP axis, alongside
532
- * `.reflection()`/`.compaction()`/`streamFactory`). WINS over the strategy the spec's name would
533
- * resolve to, exactly as `.compaction()` outranks the spec. The runner caps ANY strategy at
534
- * `custom.maxIterations` (T1.1), so a `shouldContinue: () => true` still terminates — never an
535
- * infinite loop.
536
- *
537
- * @example
538
- * ```ts
539
- * // Stop as soon as the confidence in the last round crosses 0.9, else run to the ceiling.
540
- * const stopWhenConfident: LoopStrategy = {
541
- * name: 'confident',
542
- * maxIterations: 8,
543
- * shouldContinue: (o) => !o.responseText.includes('confidence: high'),
544
- * }
545
- * AgentRunner.fromSpec(spec).loopStrategy(stopWhenConfident).build()
546
- * ```
547
- */
548
- loopStrategy(custom: LoopStrategy): this;
549
- /** Record the streaming preference (see {@link AgentRunner.streamEnabled}). */
550
- stream(enabled?: boolean): this;
551
- /**
552
- * V4-F: declare the compaction strategy (e.g. `.compaction('token-budget', { keepTokens: 8000 })`).
553
- * Resolved + validated at {@link build} (EC-5 — fail-fast there, not here). This builder
554
- * call WINS over a `@Compaction` decorator on the same agent (EC-1 — explicit override).
555
- */
556
- compaction(name: string, options?: {
557
- keepTokens?: number;
558
- }): this;
559
- /** Resolve strategies from the spec — the compile→execute boundary (no I/O). */
560
- build(): AgentRunner;
561
- }
562
-
563
213
  /**
564
214
  * M59 — `GoalRunner`, the OO twin of the SDK's free `runGoalLoop`, parallel to {@link AgentRunner}.
565
215
  *
@@ -1674,4 +1324,4 @@ type AgentWithNarrowedList = Omit<typeof Agent$1, 'list'> & {
1674
1324
  type AgentWithNarrowedListAlias = AgentWithNarrowedList;
1675
1325
  declare const Agent: AgentWithNarrowedList;
1676
1326
 
1677
- export { type A2ACapabilities, type A2ASkill, AcpClient, AcpConnectionClosedError, AcpMessageDecoder, AcpProtocolError, type AcpTransport, Agent, type AgentCard, type AgentConfig, AgentConfigCapability, AgentManifestEntry, AgentModule, AgentRunner, AgentRunnerBuilder, type AgentRunnerRunOptions, type AgentShape, type AgentWithNarrowedListAlias, ApprovalOptions, ApprovalPosture, BudgetOptions, type BuildAgentCardOptions, CanUseToolCapability, type Capability, CapabilityConflictError, CapabilityPreset, CapabilityRegistry, CheckpointCapability, type CompactionCallOptions, type CompactionStrategyConfig, CompiledAgentOptions, type CompiledAgentOptionsDraft, CompiledTool, ContextWindowCapability, ContextWindowOptions, type CostGuardOptions, DEFAULT_HANDLER_TIMEOUT_MS, DEFAULT_KEEP_TOKENS, DelegationResult, FieldCapability, type FinalizedDraft, GoalRunner, type GoalRunnerDeps, Guardrail, GuardrailsCapability, HitlDecision, HookApprovalCapability, HumanInTheLoopCapability, HumanInTheLoopOptions, type InProcessApprovalRequest, InProcessApprovalRequiredError, type InProcessAwaitApproval, type ListOptionsWithoutPaginationAlias, LoopStrategy, MCP_PROTOCOL_VERSION, MainLoopCapability, MainLoopMeta, type McpJsonSchema, type McpServerInfo, McpServersCapability, type McpToolDescriptor, MemoryCapability, ModelCapability, type NamedTool, type OutputModerationOptions, type PiiOptions, PluginsCapability, type PreCompactionHandler, PreCompactionHandlerError, type PreCompactionOptions, ProjectContextCapability, type PromptInjectionOptions, type ProvenanceEntry, ReasoningEffort, ReflectionStrategy, RoundStreamFactory, RunContextCapability, SessionStoreCapability, SettingSourcesCapability, SettingSourcesSelection, SkillsCapability, SkillsOptions, SkillsOptionsCapability, SkillsResolverCapability, type StreamAgentTurnDeps, type StreamAgentTurnInProcessInput, StreamEvent, SubAgentsCapability, SubagentsCapability, type Summarize, TelemetryCapability, type ToolComNome, type ToolDeclaration, ToolOptions, ToolboxCapability, type ToolboxSource, ToolsCapability, Toolset, ToolsetError, type TranscriptCompactionStrategy, UnknownCapabilityError, applyCapabilities, buildAgentCard, buildMcpToolDescriptors, compactionStrategyConfigSchema, costGuard, createDraft, declareAgentShape, deriveConversationId, encodeAcpMessage, estimateTokens, formatGoalEvent, listSubagentNames, mcpServerInfo, moderateOutputStream, outputModeration, parseConversationId, piiDetector, promptInjectionDetector, resolveCompactionStrategy, resolveDecomposition, runInputGuards, runOutputGuards, setOnce, streamAgentTurnInProcess, streamAgentUIMessages, textPayloadExtractor, tokenBudgetCompactionStrategy, unicodeNormalizer, wellKnownCardPath, withPreCompaction };
1327
+ export { type A2ACapabilities, type A2ASkill, AcpClient, AcpConnectionClosedError, AcpMessageDecoder, AcpProtocolError, type AcpTransport, Agent, type AgentCard, type AgentConfig, AgentConfigCapability, AgentManifestEntry, AgentModule, type AgentShape, type AgentWithNarrowedListAlias, ApprovalOptions, ApprovalPosture, type BuildAgentCardOptions, CanUseToolCapability, type Capability, CapabilityConflictError, CapabilityPreset, CapabilityRegistry, CheckpointCapability, CompiledAgentOptions, type CompiledAgentOptionsDraft, CompiledTool, ContextWindowCapability, ContextWindowOptions, type CostGuardOptions, DEFAULT_HANDLER_TIMEOUT_MS, FieldCapability, type FinalizedDraft, GoalRunner, type GoalRunnerDeps, Guardrail, GuardrailsCapability, HitlDecision, HookApprovalCapability, HumanInTheLoopCapability, HumanInTheLoopOptions, type InProcessApprovalRequest, InProcessApprovalRequiredError, type InProcessAwaitApproval, type ListOptionsWithoutPaginationAlias, MCP_PROTOCOL_VERSION, MainLoopCapability, type McpJsonSchema, type McpServerInfo, McpServersCapability, type McpToolDescriptor, MemoryCapability, ModelCapability, type NamedTool, type OutputModerationOptions, type PiiOptions, PluginsCapability, type PreCompactionHandler, PreCompactionHandlerError, type PreCompactionOptions, ProjectContextCapability, type PromptInjectionOptions, type ProvenanceEntry, ReasoningEffort, RunContextCapability, SessionStoreCapability, SettingSourcesCapability, SettingSourcesSelection, SkillsCapability, SkillsOptions, SkillsOptionsCapability, SkillsResolverCapability, type StreamAgentTurnDeps, type StreamAgentTurnInProcessInput, SubAgentsCapability, SubagentsCapability, TelemetryCapability, type ToolComNome, type ToolDeclaration, ToolOptions, ToolboxCapability, type ToolboxSource, ToolsCapability, Toolset, ToolsetError, TranscriptCompactionStrategy, UnknownCapabilityError, applyCapabilities, buildAgentCard, buildMcpToolDescriptors, costGuard, createDraft, declareAgentShape, deriveConversationId, encodeAcpMessage, estimateTokens, formatGoalEvent, listSubagentNames, mcpServerInfo, moderateOutputStream, outputModeration, parseConversationId, piiDetector, promptInjectionDetector, resolveDecomposition, runInputGuards, runOutputGuards, setOnce, streamAgentTurnInProcess, streamAgentUIMessages, textPayloadExtractor, unicodeNormalizer, wellKnownCardPath, withPreCompaction };
package/dist/index.js CHANGED
@@ -33,70 +33,78 @@ import {
33
33
  streamAgentResponse,
34
34
  streamAgentUIMessages,
35
35
  toolRuntimeName
36
- } from "./chunk-FIGLHWR2.js";
36
+ } from "./chunk-CJMYZKUL.js";
37
+ import {
38
+ DEFAULT_HANDLER_TIMEOUT_MS,
39
+ DelegationTimeoutError,
40
+ GoalRunner,
41
+ JudgeCredentialError,
42
+ PreCompactionHandlerError,
43
+ delegate,
44
+ delegateBackground,
45
+ delegateWithScoring,
46
+ formatGoalEvent,
47
+ resolveDecomposition,
48
+ withClockCap,
49
+ withEphemeralAgent,
50
+ withPreCompaction
51
+ } from "./chunk-MB23MSOK.js";
52
+ import "./chunk-MJ6FRILJ.js";
37
53
  import {
38
- APPROVAL_MODES,
39
54
  AgentRunner,
40
55
  AgentRunnerBuilder,
41
56
  BudgetExceededError,
42
- CompatImportUnsupportedError,
43
- CostBudgetExceededError,
44
- DEFAULT_HANDLER_TIMEOUT_MS,
45
57
  DEFAULT_KEEP_TOKENS,
46
58
  DEFAULT_MAX_ITERATIONS,
47
59
  DelegationBudgetCostUnknownError,
48
60
  DelegationBudgetExceededError,
49
61
  DelegationError,
50
- DelegationTimeoutError,
51
- GoalRunner,
62
+ compactionStrategyConfigSchema,
63
+ ladderReflectionStrategy,
64
+ loopStrategyConfigSchema,
65
+ noopReflectionStrategy,
66
+ reflectionStrategyConfigSchema,
67
+ resolveCompactionStrategy,
68
+ resolveLoopStrategy,
69
+ tokenBudgetCompactionStrategy
70
+ } from "./chunk-SAKSZKVK.js";
71
+ import {
72
+ APPROVAL_MODES,
73
+ CompatImportUnsupportedError,
74
+ CostBudgetExceededError,
52
75
  GuardrailError,
53
76
  GuardrailViolationError,
54
77
  HookGateUnsupportedError,
55
- JudgeCredentialError,
56
78
  MalformedGuardrailResultError,
57
- PreCompactionHandlerError,
58
79
  UnreadableTextPayloadError,
59
80
  WRITE_SCOPED_TOOLS,
60
81
  applyPosture,
61
82
  buildModelSelection,
62
- compactionStrategyConfigSchema,
63
83
  compileProjectContext,
64
84
  costGuard,
65
85
  createSdkAgentStream,
66
86
  createThinkTagExtractor,
67
87
  createToolHooksPlugin,
68
- delegate,
69
- delegateBackground,
70
- delegateWithScoring,
71
88
  estimateTokens,
72
89
  extractThinkTagStream,
73
- formatGoalEvent,
74
- ladderReflectionStrategy,
75
- loopStrategyConfigSchema,
76
90
  moderateOutputStream,
77
- noopReflectionStrategy,
78
91
  outputModeration,
79
92
  piiDetector,
80
93
  projectContextMetadataOnlyKnobs,
81
94
  promptInjectionDetector,
82
95
  reasoningEffortOf,
83
- reflectionStrategyConfigSchema,
84
- resolveCompactionStrategy,
85
- resolveDecomposition,
86
- resolveLoopStrategy,
87
96
  runInputGuards,
88
97
  runOutputGuards,
89
98
  shouldAutoApprove,
90
99
  textPayloadExtractor,
91
100
  toAgentFactory,
92
- tokenBudgetCompactionStrategy,
93
101
  translateSdkEvent,
94
- unicodeNormalizer,
95
- withClockCap,
96
- withEphemeralAgent,
97
- withPreCompaction
98
- } from "./chunk-4PHZ25JN.js";
99
- import "./chunk-MJ6FRILJ.js";
102
+ unicodeNormalizer
103
+ } from "./chunk-A7RXWJZE.js";
104
+ import "./chunk-M5J3Q6YC.js";
105
+ import {
106
+ ConfigurationError
107
+ } from "./chunk-Q65ZIFNK.js";
100
108
  import {
101
109
  AGENT_BRAND,
102
110
  UntrustedSettingSourceError,
@@ -106,10 +114,6 @@ import {
106
114
  resolveCompatSources,
107
115
  resolveSettingSources
108
116
  } from "./chunk-NIQJ4GZX.js";
109
- import "./chunk-M5J3Q6YC.js";
110
- import {
111
- ConfigurationError
112
- } from "./chunk-Q65ZIFNK.js";
113
117
  import "./chunk-2SP5BB6U.js";
114
118
  import "./chunk-OXNDJSAJ.js";
115
119
  import {