@openclaw/ai 2026.11.5 → 2026.11.6

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 (88) hide show
  1. package/dist/.source-module-urls/fe058cc430242ce2ab0dfbcbe153e240a52cf9c3072c3dc0a73e5f956b6ba49b.json +1 -1
  2. package/dist/{anthropic-CNEzO12C.mjs → anthropic-BNkSFJGp.mjs} +5 -5
  3. package/dist/{anthropic-payload-policy-DVk38bnY.d.mts → anthropic-payload-policy-DxijyMFH.d.mts} +3 -3
  4. package/dist/{anthropic-stream-lifecycle-DJUtasDB.mjs → anthropic-stream-lifecycle-Dp5TblwC.mjs} +9 -9
  5. package/dist/{anthropic-tool-projection-DKAlondV.d.mts → anthropic-tool-projection-DX_igbpX.d.mts} +1 -1
  6. package/dist/{anthropic-tool-projection-DcvsDiyX.mjs → anthropic-tool-projection-DpN77rtb.mjs} +1 -1
  7. package/dist/{api-registry-DY2MLUyg.d.mts → api-registry-CCdcCPSA.d.mts} +2 -2
  8. package/dist/{assistant-output-C3czmoN4.mjs → assistant-output-BEE6TWdj.mjs} +1 -1
  9. package/dist/{azure-openai-responses-client-compat-D0dvJMbZ.mjs → azure-deployment-map-DKJ8Xc4c.mjs} +1 -14
  10. package/dist/{azure-openai-responses-DRkduRmW.mjs → azure-openai-responses-BjX0owXR.mjs} +6 -5
  11. package/dist/azure-openai-responses-client-compat-a5PrPIdL.mjs +14 -0
  12. package/dist/diagnostics.d.mts +3 -3
  13. package/dist/{event-stream-BYmtRe8-.d.mts → event-stream-CDyUvxkI.d.mts} +1 -1
  14. package/dist/event-stream-X0f18GAs.d.mts +1 -0
  15. package/dist/event-stream.d.mts +2 -2
  16. package/dist/{google-DqG05iBa.mjs → google-BJwjWpAX.mjs} +2 -2
  17. package/dist/{google-interactions-BE7cxFPc.mjs → google-interactions-BEOEOp0d.mjs} +10 -10
  18. package/dist/{google-messages-p2iBzsAp.mjs → google-messages-Bja86PP8.mjs} +3 -3
  19. package/dist/{google-provider-stream-DZ6tqteU.mjs → google-provider-stream-GYgtu60C.mjs} +6 -6
  20. package/dist/{google-shared-BMYt1xSI.mjs → google-shared-7sAuYDNq.mjs} +5 -5
  21. package/dist/{google-vertex-CAq2q1Ln.mjs → google-vertex-2zavNJkj.mjs} +2 -2
  22. package/dist/{host-ccbwPC3A.d.mts → host-C2_6_j-L.d.mts} +3 -3
  23. package/dist/{host-DqX-64Pb.mjs → host-DZ29cEYd.mjs} +1 -1
  24. package/dist/{host-policy-Bk85E9ue.mjs → host-policy-DqFgGiV6.mjs} +1 -1
  25. package/dist/{index-Bczt0MnO.d.mts → index-DkF8J4yH.d.mts} +3 -3
  26. package/dist/index.d.mts +6 -6
  27. package/dist/index.mjs +2 -2
  28. package/dist/internal/anthropic.d.mts +6 -6
  29. package/dist/internal/anthropic.mjs +4 -4
  30. package/dist/internal/google.d.mts +3 -3
  31. package/dist/internal/google.mjs +1 -1
  32. package/dist/internal/openai-completions-compat.d.mts +1 -1
  33. package/dist/internal/openai-completions-compat.mjs +1 -1
  34. package/dist/internal/openai-responses-payload-policy.d.mts +1 -1
  35. package/dist/internal/openai-responses-payload-policy.mjs +2 -2
  36. package/dist/internal/openai.d.mts +10 -10
  37. package/dist/internal/openai.mjs +10 -9
  38. package/dist/internal/runtime.d.mts +8 -8
  39. package/dist/internal/runtime.mjs +4 -4
  40. package/dist/internal/shared.d.mts +8 -8
  41. package/dist/internal/shared.mjs +3 -3
  42. package/dist/internal/tool-schema.d.mts +2 -2
  43. package/dist/internal/tool-schema.mjs +3 -3
  44. package/dist/{mistral-DIGInqJI.mjs → mistral-CjTsnfIz.mjs} +8 -8
  45. package/dist/{openai-chatgpt-responses-C6rEZcsZ.mjs → openai-chatgpt-responses-BinD_u6y.mjs} +11 -11
  46. package/dist/{openai-completions-B93R3N3b.mjs → openai-completions-B380Vg0n.mjs} +3 -3
  47. package/dist/{openai-completions-compat-CJ-NsDzg.d.mts → openai-completions-compat-CEj778te.d.mts} +3 -3
  48. package/dist/{openai-completions-compat-CS3dlDBR.mjs → openai-completions-compat-CmyT3piu.mjs} +2 -2
  49. package/dist/{openai-completions-transport-DHTFq-BM.mjs → openai-completions-transport-BGoKrb3z.mjs} +57 -431
  50. package/dist/{openai-tool-schema-CvxySRyf.mjs → openai-function-tool-DUT14vv6.mjs} +22 -22
  51. package/dist/{openai-prompt-cache-BZGaIWYh.d.mts → openai-prompt-cache-C_XCgsDn.d.mts} +2 -2
  52. package/dist/{openai-prompt-cache-3H_Fz0ya.mjs → openai-prompt-cache-DV1t-7dP.mjs} +1 -1
  53. package/dist/{openai-responses-DSxPKV0U.mjs → openai-responses-ClgomgWG.mjs} +6 -6
  54. package/dist/{openai-responses-compaction-replay-DXF5BjD2.d.mts → openai-responses-compaction-replay-6MNmDBBu.d.mts} +6 -5
  55. package/dist/{openai-responses-contracts-xU-n9AJJ.mjs → openai-responses-contracts-BpyK1Ygq.mjs} +1 -1
  56. package/dist/{openai-responses-contracts-Cb1IIRRG.d.mts → openai-responses-contracts-D-saZnr_.d.mts} +5 -5
  57. package/dist/{openai-responses-endpoint-CqO3ejTe.mjs → openai-responses-endpoint-BGwjxesS.mjs} +1 -1
  58. package/dist/{openai-responses-request-lifecycle-C_3FKkl7.mjs → openai-responses-request-lifecycle-pjoJ2KB8.mjs} +6 -6
  59. package/dist/{openai-responses-shared-En3Jf0Vg.mjs → openai-responses-shared-BE2zSjin.mjs} +2034 -1918
  60. package/dist/{openai-responses-terminal-usage-D7IhRA6i.d.mts → openai-responses-terminal-usage-CuXS9TCK.d.mts} +2 -2
  61. package/dist/openai-responses-websocket-Bzo4ykRX.mjs +385 -0
  62. package/dist/{otel-B2u5HGvm.mjs → otel-VKlSbm9p.mjs} +1 -1
  63. package/dist/{provider-options-BQ2Msop2.d.mts → provider-options-Bo0XJEeK.d.mts} +3 -3
  64. package/dist/{provider-replay-context--QGWotXx.mjs → provider-replay-context-BAwe7OIR.mjs} +1 -1
  65. package/dist/{provider-transcript-transform-Hr1kCoMX.mjs → provider-transcript-transform-BA4B0NIr.mjs} +1 -1
  66. package/dist/{provider-transport-turn-state-DyaOKAYm.mjs → provider-transport-turn-state-BU7KCpkK.mjs} +22 -4
  67. package/dist/{provider-types-B1e98js5.d.mts → provider-types-wHqA9oSz.d.mts} +3 -3
  68. package/dist/provider-types.d.mts +5 -5
  69. package/dist/providers.d.mts +2 -2
  70. package/dist/providers.mjs +10 -10
  71. package/dist/{sanitize-unicode-BISmUlUv.d.mts → sanitize-unicode-D0B2CDXP.d.mts} +2 -2
  72. package/dist/{simple-options-CQNPKCEb.mjs → simple-options-BPzChce1.mjs} +3 -3
  73. package/dist/{stream-DM-q0y5H.mjs → stream-WbisbzUF.mjs} +1 -1
  74. package/dist/{telemetry-DJibfNKZ.mjs → telemetry-BS2h0FVa.mjs} +2 -2
  75. package/dist/{tool-schema-json-projection-BSHb4gaJ.mjs → tool-schema-json-projection-C9KSjPuG.mjs} +1 -1
  76. package/dist/{transport-stream-shared-D3IAU4jn.d.mts → transport-stream-shared-Cwd9ZIqy.d.mts} +4 -4
  77. package/dist/{transport-stream-shared-CBVh6QEc.mjs → transport-stream-shared-DtOk207K.mjs} +1 -1
  78. package/dist/{transport-utils-rxOHnq9y.mjs → transport-utils-Czu6bnbQ.mjs} +2 -2
  79. package/dist/transports.d.mts +15 -13
  80. package/dist/transports.mjs +14 -14
  81. package/dist/{types-BVdTf0YV.d.mts → types-DrqxFIh9.d.mts} +5 -0
  82. package/dist/types-g3molYjD.d.mts +1 -0
  83. package/dist/types.d.mts +5 -5
  84. package/dist/{validation-QmyD0E5A.d.mts → validation-ByHJvdN2.d.mts} +1 -1
  85. package/dist/validation.d.mts +1 -1
  86. package/package.json +1 -1
  87. package/dist/event-stream-B4ZcSvsu.d.mts +0 -1
  88. package/dist/types-Cb3-5WM9.d.mts +0 -1
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { w as supportsClaudeAdaptiveThinking } from "./src-CQ7nH2mL.mjs";
3
3
  import { t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
4
- import { _ as buildAnthropicClaudeCodeIdentity, a as resolveAiTransportHeaderSentinels, b as prepareClaudeNoPrefillRequestContext, r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
5
- import { a as streamFragmentError } from "./transport-utils-rxOHnq9y.mjs";
6
- import { B as usesFoundryBearerAuth, R as isAnthropicOAuthApiKey, j as supportsAnthropicServerSideFallback, n as applyAnthropicThinkingOptions, t as runAnthropicStreamLifecycle, w as isDirectAnthropicModel, z as omitFoundryBearerCredentialHeaders } from "./anthropic-stream-lifecycle-DJUtasDB.mjs";
4
+ import { _ as buildAnthropicClaudeCodeIdentity, a as resolveAiTransportHeaderSentinels, b as prepareClaudeNoPrefillRequestContext, r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
5
+ import { a as streamFragmentError } from "./transport-utils-Czu6bnbQ.mjs";
6
+ import { B as usesFoundryBearerAuth, R as isAnthropicOAuthApiKey, j as supportsAnthropicServerSideFallback, n as applyAnthropicThinkingOptions, t as runAnthropicStreamLifecycle, w as isDirectAnthropicModel, z as omitFoundryBearerCredentialHeaders } from "./anthropic-stream-lifecycle-Dp5TblwC.mjs";
7
7
  import { i as resolveCacheRetention, n as resolveCloudflareBaseUrl, r as buildCopilotDynamicHeaders } from "./cloudflare-BJ2_Xabx.mjs";
8
- import { n as buildBaseOptions, r as clampMaxTokensToModel } from "./simple-options-CQNPKCEb.mjs";
9
- import { k as parseJsonWithRepair } from "./transport-stream-shared-CBVh6QEc.mjs";
8
+ import { n as buildBaseOptions, r as clampMaxTokensToModel } from "./simple-options-BPzChce1.mjs";
9
+ import { k as parseJsonWithRepair } from "./transport-stream-shared-DtOk207K.mjs";
10
10
  import { n as getEnvApiKey } from "./env-api-keys-BuHc86ya.mjs";
11
11
  import { t as notifyLlmRequestActivity } from "./llm-request-activity-DzaHoRAU.mjs";
12
12
  import { withModelRequestBodyBytes } from "./internal/model-request-body.mjs";
@@ -1,6 +1,6 @@
1
- import { k as Model, tt as SimpleStreamOptions } from "./types-BVdTf0YV.mjs";
2
- import "./index-Bczt0MnO.mjs";
3
- import { r as AnthropicOptions, t as AnthropicContextManagementOptions } from "./provider-options-BQ2Msop2.mjs";
1
+ import { k as Model, tt as SimpleStreamOptions } from "./types-DrqxFIh9.mjs";
2
+ import "./index-DkF8J4yH.mjs";
3
+ import { r as AnthropicOptions, t as AnthropicContextManagementOptions } from "./provider-options-Bo0XJEeK.mjs";
4
4
  import { TextBlockParam } from "@anthropic-ai/sdk/resources/messages.js";
5
5
  //#region packages/ai/src/transports/anthropic-transport-options.d.ts
6
6
  /** Keep both entry points on one thinking mode while retaining their output-budget policies. */
@@ -4,22 +4,22 @@ import { r as appendAssistantThinking } from "./event-stream-X2gmsUWv.mjs";
4
4
  import { a as asRecord, c as readStringField, o as isRecord, r as asOptionalObjectRecord } from "./record-coerce-BQaoiN3r.mjs";
5
5
  import { a as normalizeOptionalLowercaseString, i as normalizeNullableString } from "./string-coerce-BCuWMIrk.mjs";
6
6
  import { n as asNonNegativeFiniteNumber } from "./number-coercion-C7HsBgUL.mjs";
7
- import { C as readRequiredClaudeCodeVersion, D as usesClaudeFable5MessagesContract, E as resolveAnthropicThinkingEffort, I as isImageWithMediaPayload, O as usesClaudeStreamingRefusalContract, S as raiseClaudeCodeVersionFloor, g as applyClaudeRequestContract, h as ANTHROPIC_CLAUDE_CODE_VERSION, j as calculateCost, r as getAiTransportHost, u as STREAM_ERROR_FALLBACK_TEXT, v as defaultsClaudeAdaptiveThinking, w as requiresClaudeAdaptiveThinking, y as mapAnthropicStopReason } from "./host-DqX-64Pb.mjs";
8
- import "./transport-utils-rxOHnq9y.mjs";
7
+ import { C as readRequiredClaudeCodeVersion, D as usesClaudeFable5MessagesContract, E as resolveAnthropicThinkingEffort, I as isImageWithMediaPayload, O as usesClaudeStreamingRefusalContract, S as raiseClaudeCodeVersionFloor, g as applyClaudeRequestContract, h as ANTHROPIC_CLAUDE_CODE_VERSION, j as calculateCost, r as getAiTransportHost, u as STREAM_ERROR_FALLBACK_TEXT, v as defaultsClaudeAdaptiveThinking, w as requiresClaudeAdaptiveThinking, y as mapAnthropicStopReason } from "./host-DZ29cEYd.mjs";
8
+ import "./transport-utils-Czu6bnbQ.mjs";
9
9
  import { n as estimateBase64DecodedBytes } from "./base64-C8CdcsjU.mjs";
10
- import { a as resolveProviderRequestCapabilities, i as resolveProviderEndpoint } from "./host-policy-Bk85E9ue.mjs";
10
+ import { a as resolveProviderRequestCapabilities, i as resolveProviderEndpoint } from "./host-policy-DqFgGiV6.mjs";
11
11
  import { i as resolveCacheRetention } from "./cloudflare-BJ2_Xabx.mjs";
12
12
  import { t as sanitizeSurrogates } from "./sanitize-unicode-CRGuMONI.mjs";
13
- import { C as stripSystemPromptCacheBoundary, a as describeToolResultMediaPlaceholder, c as extractToolResultText, f as preparedRequestSuffix, s as extractToolResultBlockText, t as adjustMaxTokensForThinking, w as stripSystemPromptRelocatableBoundary, x as splitSystemPromptCacheBoundary } from "./simple-options-CQNPKCEb.mjs";
14
- import { A as parseStreamingJson, O as createToolArgumentPreviewSchedule, c as failTransportStream, d as iterateModelStream, h as notifyProviderHttpResponse, i as copyProviderAcceptanceObserver, l as finalizeTerminalToolCallArguments, r as coerceTransportToolCallArguments, u as finalizeTransportStream, w as parseJsonObjectPreservingUnsafeIntegers, x as transportAbortError, y as sanitizeTransportPayloadText } from "./transport-stream-shared-CBVh6QEc.mjs";
13
+ import { C as stripSystemPromptCacheBoundary, a as describeToolResultMediaPlaceholder, c as extractToolResultText, f as preparedRequestSuffix, s as extractToolResultBlockText, t as adjustMaxTokensForThinking, w as stripSystemPromptRelocatableBoundary, x as splitSystemPromptCacheBoundary } from "./simple-options-BPzChce1.mjs";
14
+ import { A as parseStreamingJson, O as createToolArgumentPreviewSchedule, c as failTransportStream, d as iterateModelStream, h as notifyProviderHttpResponse, i as copyProviderAcceptanceObserver, l as finalizeTerminalToolCallArguments, r as coerceTransportToolCallArguments, u as finalizeTransportStream, w as parseJsonObjectPreservingUnsafeIntegers, x as transportAbortError, y as sanitizeTransportPayloadText } from "./transport-stream-shared-DtOk207K.mjs";
15
15
  import { t as parsePositiveInteger } from "./positive-integer-DiqE5vNi.mjs";
16
- import { a as reconcileAnthropicToolChoice, i as projectAnthropicTools, n as normalizeAnthropicToolChoice, o as resolveOriginalAnthropicToolName, s as toClaudeCodeToolName, t as normalizeAnthropicToolCallId } from "./anthropic-tool-projection-DcvsDiyX.mjs";
16
+ import { a as reconcileAnthropicToolChoice, i as projectAnthropicTools, n as normalizeAnthropicToolChoice, o as resolveOriginalAnthropicToolName, s as toClaudeCodeToolName, t as normalizeAnthropicToolCallId } from "./anthropic-tool-projection-DpN77rtb.mjs";
17
17
  import { t as createDeferredEventBuffer } from "./deferred-event-buffer-tIGkTkTm.mjs";
18
18
  import { t as notifyLlmRequestActivity } from "./llm-request-activity-DzaHoRAU.mjs";
19
- import { n as isProviderReplayContext, r as providerReplayContextMatches, t as buildProviderReplayContext } from "./provider-replay-context--QGWotXx.mjs";
20
- import { t as transformProviderMessages } from "./provider-transcript-transform-Hr1kCoMX.mjs";
19
+ import { n as isProviderReplayContext, r as providerReplayContextMatches, t as buildProviderReplayContext } from "./provider-replay-context-BAwe7OIR.mjs";
20
+ import { t as transformProviderMessages } from "./provider-transcript-transform-BA4B0NIr.mjs";
21
21
  import { markEncodedModelRequestBody } from "./internal/model-request-body.mjs";
22
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
22
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
23
23
  import { isProxy } from "node:util/types";
24
24
  //#region packages/ai/src/providers/anthropic-auth-headers.ts
25
25
  /** Inspect resolved credential shape for auth routing without exposing its value. */
@@ -1,4 +1,4 @@
1
- import { r as AnthropicOptions } from "./provider-options-BQ2Msop2.mjs";
1
+ import { r as AnthropicOptions } from "./provider-options-Bo0XJEeK.mjs";
2
2
  import { Tool } from "@anthropic-ai/sdk/resources/messages.js";
3
3
  //#region packages/ai/src/providers/anthropic-tool-projection.d.ts
4
4
  type AnthropicProjectedTool = {
@@ -1,6 +1,6 @@
1
1
  import { o as isRecord, s as isStringArray } from "./record-coerce-BQaoiN3r.mjs";
2
2
  import { r as sortPromptCacheToolsByName } from "./prompt-cache-stability-w-ICeyOI.mjs";
3
- import { _ as SCHEMA_ARRAY_KEYS, b as SCHEMA_OBJECT_KEYS, f as inheritToolSchemaTruncation, i as publishRuntimeToolInputSchema, r as projectRuntimeToolInputSchema, t as getPublishedRuntimeToolInputSchema, v as SCHEMA_MAP_KEYS } from "./tool-schema-json-projection-BSHb4gaJ.mjs";
3
+ import { _ as SCHEMA_ARRAY_KEYS, b as SCHEMA_OBJECT_KEYS, f as inheritToolSchemaTruncation, i as publishRuntimeToolInputSchema, r as projectRuntimeToolInputSchema, t as getPublishedRuntimeToolInputSchema, v as SCHEMA_MAP_KEYS } from "./tool-schema-json-projection-C9KSjPuG.mjs";
4
4
  //#region packages/ai/src/providers/anthropic-tool-projection.ts
5
5
  const CLAUDE_CODE_TOOL_LOOKUP = new Map([
6
6
  "Read",
@@ -1,5 +1,5 @@
1
- import { at as StreamOptions, it as StreamFunction, n as Api, tt as SimpleStreamOptions } from "./types-BVdTf0YV.mjs";
2
- import "./index-Bczt0MnO.mjs";
1
+ import { at as StreamOptions, it as StreamFunction, n as Api, tt as SimpleStreamOptions } from "./types-DrqxFIh9.mjs";
2
+ import "./index-DkF8J4yH.mjs";
3
3
  //#region packages/ai/src/api-registry.d.ts
4
4
  /** Runtime stream adapter signature stored in the API provider registry. */
5
5
  type ApiStreamFunction = StreamFunction;
@@ -1,4 +1,4 @@
1
- import { a as createEmptyTransportUsage } from "./transport-stream-shared-CBVh6QEc.mjs";
1
+ import { a as createEmptyTransportUsage } from "./transport-stream-shared-DtOk207K.mjs";
2
2
  //#region packages/ai/src/transports/assistant-output.ts
3
3
  function createAssistantOutput(model, api = model.api) {
4
4
  return {
@@ -39,17 +39,4 @@ function resolveAzureDeploymentNameFromMap(params) {
39
39
  return exact.get(params.modelId) ?? folded.get(params.modelId.toLowerCase()) ?? params.modelId;
40
40
  }
41
41
  //#endregion
42
- //#region packages/ai/src/providers/azure-openai-responses-client-compat.ts
43
- function isTraditionalAzureOpenAIHost(hostname) {
44
- return hostname.endsWith(".openai.azure.com") || hostname.endsWith(".cognitiveservices.azure.com");
45
- }
46
- function isOpenAICompatibleAzureResponsesBaseUrl(baseUrl) {
47
- const url = URL.parse(baseUrl);
48
- if (!url || isTraditionalAzureOpenAIHost(url.hostname)) return false;
49
- const hostname = url.hostname.toLowerCase();
50
- if (!(hostname.endsWith(".services.ai.azure.com") || hostname.endsWith(".api.cognitive.microsoft.com"))) return false;
51
- const normalizedPath = url.pathname.replace(/\/+$/, "");
52
- return normalizedPath === "/openai/v1" || normalizedPath.endsWith("/openai/v1");
53
- }
54
- //#endregion
55
- export { resolveAzureDeploymentNameFromMap as i, isTraditionalAzureOpenAIHost as n, parseAzureDeploymentNameMap as r, isOpenAICompatibleAzureResponsesBaseUrl as t };
42
+ export { resolveAzureDeploymentNameFromMap as n, parseAzureDeploymentNameMap as t };
@@ -1,10 +1,11 @@
1
1
  import { t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
2
- import { r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
3
- import { n as buildBaseOptions } from "./simple-options-CQNPKCEb.mjs";
2
+ import { r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
3
+ import { n as buildBaseOptions } from "./simple-options-BPzChce1.mjs";
4
4
  import { n as getEnvApiKey } from "./env-api-keys-BuHc86ya.mjs";
5
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
6
- import { F as convertProviderResponsesMessages, It as resolvePromptCacheKey, Lt as withOpenAIErrorResponseHook, r as runResponsesStreamLifecycle, t as applyCommonResponsesParams, vt as resolveOpenAISimpleReasoningEffort } from "./openai-responses-shared-En3Jf0Vg.mjs";
7
- import { i as resolveAzureDeploymentNameFromMap, n as isTraditionalAzureOpenAIHost, t as isOpenAICompatibleAzureResponsesBaseUrl } from "./azure-openai-responses-client-compat-D0dvJMbZ.mjs";
5
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
6
+ import { Bt as resolvePromptCacheKey, H as resolveOpenAISimpleReasoningEffort, Vt as withOpenAIErrorResponseHook, mt as convertProviderResponsesMessages, r as runResponsesStreamLifecycle, t as applyCommonResponsesParams } from "./openai-responses-shared-BE2zSjin.mjs";
7
+ import { n as isTraditionalAzureOpenAIHost, t as isOpenAICompatibleAzureResponsesBaseUrl } from "./azure-openai-responses-client-compat-a5PrPIdL.mjs";
8
+ import { n as resolveAzureDeploymentNameFromMap } from "./azure-deployment-map-DKJ8Xc4c.mjs";
8
9
  import { t as requireApiKey } from "./required-api-key-2zZTkmsi.mjs";
9
10
  import OpenAI, { AzureOpenAI } from "openai";
10
11
  //#region packages/ai/src/providers/azure-openai-responses.ts
@@ -0,0 +1,14 @@
1
+ //#region packages/ai/src/providers/azure-openai-responses-client-compat.ts
2
+ function isTraditionalAzureOpenAIHost(hostname) {
3
+ return hostname.endsWith(".openai.azure.com") || hostname.endsWith(".cognitiveservices.azure.com");
4
+ }
5
+ function isOpenAICompatibleAzureResponsesBaseUrl(baseUrl) {
6
+ const url = URL.parse(baseUrl);
7
+ if (!url || isTraditionalAzureOpenAIHost(url.hostname)) return false;
8
+ const hostname = url.hostname.toLowerCase();
9
+ if (!(hostname.endsWith(".services.ai.azure.com") || hostname.endsWith(".api.cognitive.microsoft.com"))) return false;
10
+ const normalizedPath = url.pathname.replace(/\/+$/, "");
11
+ return normalizedPath === "/openai/v1" || normalizedPath.endsWith("/openai/v1");
12
+ }
13
+ //#endregion
14
+ export { isTraditionalAzureOpenAIHost as n, isOpenAICompatibleAzureResponsesBaseUrl as t };
@@ -1,6 +1,6 @@
1
- import { At as DiagnosticErrorInfo, Ft as formatThrownValue, It as isProviderRefusalAssistantError, Lt as readProviderRefusalReview, Mt as appendAssistantMessageDiagnostic, Nt as createAssistantMessageDiagnostic, Pt as extractDiagnosticError, Rt as recordSuppressedReasoning, a as AssistantMessage, jt as ProviderRefusalReview, kt as AssistantMessageDiagnostic } from "./types-BVdTf0YV.mjs";
2
- import "./types-Cb3-5WM9.mjs";
3
- import { r as isResponsesOutputLimitToolCallError } from "./openai-responses-terminal-usage-D7IhRA6i.mjs";
1
+ import { At as DiagnosticErrorInfo, Ft as formatThrownValue, It as isProviderRefusalAssistantError, Lt as readProviderRefusalReview, Mt as appendAssistantMessageDiagnostic, Nt as createAssistantMessageDiagnostic, Pt as extractDiagnosticError, Rt as recordSuppressedReasoning, a as AssistantMessage, jt as ProviderRefusalReview, kt as AssistantMessageDiagnostic } from "./types-DrqxFIh9.mjs";
2
+ import "./types-g3molYjD.mjs";
3
+ import { r as isResponsesOutputLimitToolCallError } from "./openai-responses-terminal-usage-CuXS9TCK.mjs";
4
4
  import { n as ProviderErrorRedactor, r as configureProviderErrorRedactor } from "./provider-error-CnaWYTRY.mjs";
5
5
  import { r as projectDiagnosticValue, t as DiagnosticProjectionPolicy } from "./credential-redaction-DrgndwTJ.mjs";
6
6
  import { i as emitModelTransportError, n as formatModelTransportDebugUrl, r as emitModelTransportDebug, t as formatModelTransportDebugBaseUrl } from "./model-transport-url-BdksnBqu.mjs";
@@ -1,4 +1,4 @@
1
- import { a as AssistantMessage, lt as ThinkingContent, o as AssistantMessageEvent, s as AssistantMessageEventStreamContract } from "./types-BVdTf0YV.mjs";
1
+ import { a as AssistantMessage, lt as ThinkingContent, o as AssistantMessageEvent, s as AssistantMessageEventStreamContract } from "./types-DrqxFIh9.mjs";
2
2
  //#region packages/llm-core/src/utils/event-stream.d.ts
3
3
  /** Returns only an append whose current and previously observed snapshots still match. */
4
4
  declare function readAssistantThinkingAppend(block: ThinkingContent, previous: string): string | undefined;
@@ -0,0 +1 @@
1
+ import "./event-stream-CDyUvxkI.mjs";
@@ -1,3 +1,3 @@
1
- import { n as EventStream, r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-BYmtRe8-.mjs";
2
- import "./event-stream-B4ZcSvsu.mjs";
1
+ import { n as EventStream, r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-CDyUvxkI.mjs";
2
+ import "./event-stream-X0f18GAs.mjs";
3
3
  export { AssistantMessageEventStream, EventStream, createAssistantMessageEventStream };
@@ -1,8 +1,8 @@
1
- import { r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
1
+ import { r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
2
2
  import { n as getEnvApiKey } from "./env-api-keys-BuHc86ya.mjs";
3
3
  import { n as resolveOpencodeSessionHeaders } from "./session-affinity-DA4WHv1h.mjs";
4
4
  import { t as requireApiKey } from "./required-api-key-2zZTkmsi.mjs";
5
- import { n as buildGoogleHttpOptions, t as createGoogleGenerateContentStreams } from "./google-provider-stream-DZ6tqteU.mjs";
5
+ import { n as buildGoogleHttpOptions, t as createGoogleGenerateContentStreams } from "./google-provider-stream-GYgtu60C.mjs";
6
6
  import { GoogleGenAI } from "@google/genai";
7
7
  //#region packages/ai/src/providers/google.ts
8
8
  const { stream: streamGoogle, streamSimple: streamSimpleGoogle } = createGoogleGenerateContentStreams("google-generative-ai", (model, options) => {
@@ -2,21 +2,21 @@ import "./src-CQ7nH2mL.mjs";
2
2
  import { t as omitNullRequestHeaders } from "./request-headers-DO4Mqhw1.mjs";
3
3
  import { t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
4
4
  import { a as asRecord, c as readStringField, i as asOptionalRecord } from "./record-coerce-BQaoiN3r.mjs";
5
- import { a as resolveAiTransportHeaderSentinels, j as calculateCost, r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
6
- import { a as streamFragmentError } from "./transport-utils-rxOHnq9y.mjs";
7
- import { t as buildGuardedModelFetch } from "./host-policy-Bk85E9ue.mjs";
5
+ import { a as resolveAiTransportHeaderSentinels, j as calculateCost, r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
6
+ import { a as streamFragmentError } from "./transport-utils-Czu6bnbQ.mjs";
7
+ import { t as buildGuardedModelFetch } from "./host-policy-DqFgGiV6.mjs";
8
8
  import { t as sanitizeSurrogates } from "./sanitize-unicode-CRGuMONI.mjs";
9
- import { C as stripSystemPromptCacheBoundary, n as buildBaseOptions } from "./simple-options-CQNPKCEb.mjs";
10
- import { T as parseJsonPreservingUnsafeIntegers, _ as parseTerminalToolCallArguments, c as failTransportStream, f as iterateSseFrames, g as notifyProviderStreamOpened, h as notifyProviderHttpResponse, x as transportAbortError } from "./transport-stream-shared-CBVh6QEc.mjs";
9
+ import { C as stripSystemPromptCacheBoundary, n as buildBaseOptions } from "./simple-options-BPzChce1.mjs";
10
+ import { T as parseJsonPreservingUnsafeIntegers, _ as parseTerminalToolCallArguments, c as failTransportStream, f as iterateSseFrames, g as notifyProviderStreamOpened, h as notifyProviderHttpResponse, x as transportAbortError } from "./transport-stream-shared-DtOk207K.mjs";
11
11
  import { n as getEnvApiKey } from "./env-api-keys-BuHc86ya.mjs";
12
- import { t as transformProviderMessages } from "./provider-transcript-transform-Hr1kCoMX.mjs";
12
+ import { t as transformProviderMessages } from "./provider-transcript-transform-BA4B0NIr.mjs";
13
13
  import { PROVIDER_MODEL_INPUT, resolveProviderContext } from "./provider-types.mjs";
14
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
15
- import { a as googleToolParameters, o as mapGoogleToolArguments } from "./google-messages-p2iBzsAp.mjs";
14
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
15
+ import { a as googleToolParameters, o as mapGoogleToolArguments } from "./google-messages-Bja86PP8.mjs";
16
16
  import { n as createGoogleVideoPlaceholder, r as materializeGoogleVideoSlots, t as GOOGLE_VIDEO_SLOT_OMISSION } from "./google-video-slots-Bxt-OXO8.mjs";
17
- import { r as buildGoogleInteractionsSimpleThinking } from "./google-shared-BMYt1xSI.mjs";
17
+ import { r as buildGoogleInteractionsSimpleThinking } from "./google-shared-7sAuYDNq.mjs";
18
18
  //#region packages/ai/package.json
19
- var version = "2026.11.5";
19
+ var version = "2026.11.6";
20
20
  //#endregion
21
21
  //#region packages/ai/src/providers/google-interactions-request.ts
22
22
  let packageVersionMemo;
@@ -1,11 +1,11 @@
1
1
  import { p as hasRuntimeContextMarker } from "./types-OVEWUaDh.mjs";
2
2
  import { r as appendAssistantThinking } from "./event-stream-X2gmsUWv.mjs";
3
3
  import { a as asRecord, s as isStringArray } from "./record-coerce-BQaoiN3r.mjs";
4
- import { I as isImageWithMediaPayload, j as calculateCost } from "./host-DqX-64Pb.mjs";
4
+ import { I as isImageWithMediaPayload, j as calculateCost } from "./host-DZ29cEYd.mjs";
5
5
  import { t as sanitizeSurrogates } from "./sanitize-unicode-CRGuMONI.mjs";
6
6
  import { r as sortPromptCacheToolsByName } from "./prompt-cache-stability-w-ICeyOI.mjs";
7
- import { a as describeToolResultMediaPlaceholder, c as extractToolResultText } from "./simple-options-CQNPKCEb.mjs";
8
- import { a as createEmptyTransportUsage, r as coerceTransportToolCallArguments, x as transportAbortError, y as sanitizeTransportPayloadText } from "./transport-stream-shared-CBVh6QEc.mjs";
7
+ import { a as describeToolResultMediaPlaceholder, c as extractToolResultText } from "./simple-options-BPzChce1.mjs";
8
+ import { a as createEmptyTransportUsage, r as coerceTransportToolCallArguments, x as transportAbortError, y as sanitizeTransportPayloadText } from "./transport-stream-shared-DtOk207K.mjs";
9
9
  import { t as notifyLlmRequestActivity } from "./llm-request-activity-DzaHoRAU.mjs";
10
10
  import { isGoogleGemini4Model } from "./internal/google-model-family.mjs";
11
11
  import "./types.mjs";
@@ -2,12 +2,12 @@ import "./src-CQ7nH2mL.mjs";
2
2
  import { t as omitNullRequestHeaders } from "./request-headers-DO4Mqhw1.mjs";
3
3
  import { t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
4
4
  import { a as asRecord } from "./record-coerce-BQaoiN3r.mjs";
5
- import { a as resolveAiTransportHeaderSentinels, r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
6
- import { n as buildManagedModelFetch } from "./host-policy-Bk85E9ue.mjs";
7
- import { n as buildBaseOptions } from "./simple-options-CQNPKCEb.mjs";
8
- import { p as mergeTransportHeaders } from "./transport-stream-shared-CBVh6QEc.mjs";
9
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
10
- import { a as runGoogleGenerateContentLifecycle, i as buildGoogleSimpleThinking, t as buildGoogleGenerateContentParams } from "./google-shared-BMYt1xSI.mjs";
5
+ import { a as resolveAiTransportHeaderSentinels, r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
6
+ import { n as buildManagedModelFetch } from "./host-policy-DqFgGiV6.mjs";
7
+ import { n as buildBaseOptions } from "./simple-options-BPzChce1.mjs";
8
+ import { p as mergeTransportHeaders } from "./transport-stream-shared-DtOk207K.mjs";
9
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
10
+ import { a as runGoogleGenerateContentLifecycle, i as buildGoogleSimpleThinking, t as buildGoogleGenerateContentParams } from "./google-shared-7sAuYDNq.mjs";
11
11
  import { ResourceScope } from "@google/genai";
12
12
  //#region packages/ai/src/providers/google-http-options.ts
13
13
  function buildGoogleHttpOptions(model, optionsHeaders, profile) {
@@ -1,10 +1,10 @@
1
- import { M as clampThinkingLevel } from "./host-DqX-64Pb.mjs";
1
+ import { M as clampThinkingLevel } from "./host-DZ29cEYd.mjs";
2
2
  import { t as sanitizeSurrogates } from "./sanitize-unicode-CRGuMONI.mjs";
3
- import { C as stripSystemPromptCacheBoundary, t as adjustMaxTokensForThinking } from "./simple-options-CQNPKCEb.mjs";
4
- import { c as failTransportStream, g as notifyProviderStreamOpened, x as transportAbortError } from "./transport-stream-shared-CBVh6QEc.mjs";
5
- import { t as transformProviderMessages } from "./provider-transcript-transform-Hr1kCoMX.mjs";
3
+ import { C as stripSystemPromptCacheBoundary, t as adjustMaxTokensForThinking } from "./simple-options-BPzChce1.mjs";
4
+ import { c as failTransportStream, g as notifyProviderStreamOpened, x as transportAbortError } from "./transport-stream-shared-DtOk207K.mjs";
5
+ import { t as transformProviderMessages } from "./provider-transcript-transform-BA4B0NIr.mjs";
6
6
  import { isGoogleGemini3ProModel, isGoogleGemini3ThinkingLevelModel } from "./internal/google-model-family.mjs";
7
- import { i as consumeGoogleGenerateContentStream, n as projectGoogleMessages, r as requiresGoogleToolCallId, s as googleFlashSupportsMinimalThinking, t as convertGoogleTools } from "./google-messages-p2iBzsAp.mjs";
7
+ import { i as consumeGoogleGenerateContentStream, n as projectGoogleMessages, r as requiresGoogleToolCallId, s as googleFlashSupportsMinimalThinking, t as convertGoogleTools } from "./google-messages-Bja86PP8.mjs";
8
8
  import { FunctionCallingConfigMode, ThinkingLevel } from "@google/genai";
9
9
  //#region packages/ai/src/providers/google-shared.ts
10
10
  async function runGoogleGenerateContentLifecycle(params) {
@@ -1,6 +1,6 @@
1
1
  import { o as normalizeOptionalString } from "./string-coerce-BCuWMIrk.mjs";
2
- import { r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
3
- import { n as buildGoogleHttpOptions, t as createGoogleGenerateContentStreams } from "./google-provider-stream-DZ6tqteU.mjs";
2
+ import { r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
3
+ import { n as buildGoogleHttpOptions, t as createGoogleGenerateContentStreams } from "./google-provider-stream-GYgtu60C.mjs";
4
4
  import { GoogleGenAI } from "@google/genai";
5
5
  //#region packages/ai/src/providers/google-vertex.ts
6
6
  const API_VERSION = "v1";
@@ -1,6 +1,6 @@
1
- import { M as ModelRequestHeaders, d as Context, k as Model, n as Api, rt as StreamFn } from "./types-BVdTf0YV.mjs";
2
- import "./index-Bczt0MnO.mjs";
3
- import { n as ApiRegistry } from "./api-registry-DY2MLUyg.mjs";
1
+ import { M as ModelRequestHeaders, d as Context, k as Model, n as Api, rt as StreamFn } from "./types-DrqxFIh9.mjs";
2
+ import "./index-DkF8J4yH.mjs";
3
+ import { n as ApiRegistry } from "./api-registry-CCdcCPSA.mjs";
4
4
  //#region packages/ai/src/host.d.ts
5
5
  /** Provider capability facts needed by the package-owned transports. */
6
6
  interface AiProviderRequestCapabilities {
@@ -2,7 +2,7 @@ import { D as supportsClaudeNativeMaxEffort, O as supportsClaudeNativeXhighEffor
2
2
  import { t as DEFAULT_MISSING_TOOL_RESULT_TEXT } from "./types-OVEWUaDh.mjs";
3
3
  import { i as asOptionalRecord, o as isRecord } from "./record-coerce-BQaoiN3r.mjs";
4
4
  import { r as normalizeLowercaseStringOrEmpty } from "./string-coerce-BCuWMIrk.mjs";
5
- import { F as MODEL_CATALOG_THINKING_LEVELS, I as listMappedModelThinkingLevels, O as resolveOpenAIModelReasoningEfforts, R as resolveOpenAIThinkingApi, i as OPENAI_RESPONSES_APIS } from "./openai-responses-contracts-xU-n9AJJ.mjs";
5
+ import { F as MODEL_CATALOG_THINKING_LEVELS, I as listMappedModelThinkingLevels, O as resolveOpenAIModelReasoningEfforts, R as resolveOpenAIThinkingApi, i as OPENAI_RESPONSES_APIS } from "./openai-responses-contracts-BpyK1Ygq.mjs";
6
6
  //#region packages/ai/src/media-payload.ts
7
7
  /** Media metadata alone is not an attachment; provider emitters need inline bytes. */
8
8
  function hasMediaPayload(block) {
@@ -1,4 +1,4 @@
1
- import { r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
1
+ import { r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
2
2
  //#region packages/ai/src/transports/host-policy.ts
3
3
  function buildGuardedModelFetch(model, timeoutMs, options) {
4
4
  const host = getAiTransportHost();
@@ -1,6 +1,6 @@
1
- import { A as ModelCostConfig, M as ModelRequestHeaders, Q as RawModelCostConfig, a as AssistantMessage, gt as Usage } from "./types-BVdTf0YV.mjs";
2
- import "./event-stream-BYmtRe8-.mjs";
3
- import "./validation-QmyD0E5A.mjs";
1
+ import { A as ModelCostConfig, M as ModelRequestHeaders, Q as RawModelCostConfig, a as AssistantMessage, gt as Usage } from "./types-DrqxFIh9.mjs";
2
+ import "./event-stream-CDyUvxkI.mjs";
3
+ import "./validation-ByHJvdN2.mjs";
4
4
  //#region packages/llm-core/src/usage-cost.d.ts
5
5
  declare function normalizeModelCostConfig(cost: RawModelCostConfig): ModelCostConfig;
6
6
  declare function normalizeResolvedPricing(cost: Partial<RawModelCostConfig>): ModelCostConfig;
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { C as supportsClaudeFastMode, D as supportsClaudeServerCompaction, E as supportsClaudeNativeXhighEffort, S as supportsClaudeAdaptiveThinking, T as supportsClaudeNativeMaxEffort, _ as resolveClaudeOpus55ModelIdentity, a as CLAUDE_OPUS_5_THINKING_PROFILE, b as resolveClaudeSonnet5ModelIdentity, c as bindsClaudeThinkingPrefix, d as requiresClaudeMandatoryAdaptiveThinking, f as resolveClaudeFable5ModelIdentity, g as resolveClaudeNativeThinkingLevelMap, h as resolveClaudeMythos5ModelIdentity, i as CLAUDE_OPUS_55_THINKING_PROFILE, l as requiresClaudeBetweenToolsThinking, m as resolveClaudeModelIdentity, n as CLAUDE_FABLE_5_THINKING_PROFILE, o as CLAUDE_SONNET_55_THINKING_PROFILE, p as resolveClaudeHaiku55ModelIdentity, r as CLAUDE_HAIKU_55_THINKING_PROFILE, s as CLAUDE_SONNET_5_THINKING_PROFILE, t as observeAsyncIterator, u as requiresClaudeDefaultSampling, v as resolveClaudeOpus5ModelIdentity, w as supportsClaudeInHistorySystemMessages, x as supportsClaude1MContext, y as resolveClaudeSonnet55ModelIdentity } from "./observe-async-iterator-AlARO5wS.mjs";
2
- import { $ as RawPricingTier, A as ModelCostConfig, At as DiagnosticErrorInfo, B as PricingTier, C as KnownApi, Ct as isRuntimeContextMessage, D as MaybePromise, Dt as runtimeContextContentToText, E as MALFORMED_TOOL_CALL_ARGUMENTS_ERROR_CODE, Et as readRuntimeContextMetadata, F as OpenAIResponsesCompat, Ft as formatThrownValue, G as ProviderStreamOptions, H as ProviderImagesOptions, I as OpenRouterRouting, It as isProviderRefusalAssistantError, J as RUNTIME_CONTEXT_CUSTOM_TYPE, K as REPETITIVE_OUTPUT_ERROR_CODE, L as PROVIDER_FAILURE_WITH_OUTPUT_ERROR_CODE, Lt as readProviderRefusalReview, M as ModelRequestHeaders, Mt as appendAssistantMessageDiagnostic, N as ModelThinkingLevel, Nt as createAssistantMessageDiagnostic, O as Message, Ot as setRuntimeContextRetention, P as OpenAICompletionsCompat, Pt as extractDiagnosticError, Q as RawModelCostConfig, R as PROVIDER_POST_DISPATCH_AMBIGUITY_ERROR_CODE, Rt as recordSuppressedReasoning, S as ImagesStopReason, St as hasRuntimeContextMarker, T as KnownImagesProvider, Tt as labelRuntimeContextText, U as ProviderReplayState, V as Provider, W as ProviderResponse, X as RUNTIME_CONTEXT_FOOTER, Y as RUNTIME_CONTEXT_END_MARKER, Z as RUNTIME_CONTEXT_HEADER, _ as ImagesInputContent, _t as UserMessage, a as AssistantMessage, at as StreamOptions, b as ImagesOutputContent, bt as escapeRuntimeContextFooter, c as AssistantMessageEventStreamLike, ct as ThinkingBudgets, d as Context, dt as ThinkingLevelMap, et as RuntimeContextMessage, f as DEFAULT_MISSING_TOOL_RESULT_TEXT, ft as Tool, g as ImagesFunction, gt as Usage, h as ImagesContext, ht as Transport, i as AssistantImages, it as StreamFunction, j as ModelCostRates, jt as ProviderRefusalReview, k as Model, kt as AssistantMessageDiagnostic, l as CacheRetention, lt as ThinkingContent, m as ImagesApi, mt as ToolResultMessage, n as Api, nt as StopReason, o as AssistantMessageEvent, ot as TextContent, p as ImageContent, pt as ToolCall, q as RUNTIME_CONTEXT_BEGIN_MARKER, r as AssistantDeliveryTtsFacts, rt as StreamFn, s as AssistantMessageEventStreamContract, st as TextSignatureV1, t as AnthropicMessagesCompat, tt as SimpleStreamOptions, u as CompleteSimpleFn, ut as ThinkingLevel, v as ImagesModel, vt as ValidateToolArgumentsFn, w as KnownImagesApi, wt as labelRuntimeContextContent, x as ImagesProvider, xt as hasLegacyRuntimeContextEnvelope, y as ImagesOptions, yt as VercelGatewayRouting, z as PreparedSystemPrompt } from "./types-BVdTf0YV.mjs";
3
- import { a as normalizeResolvedPricing, i as normalizeModelCostConfig, n as appendTextDeltaToAssistantMessage, r as calculateUsageCost, t as omitNullRequestHeaders } from "./index-Bczt0MnO.mjs";
4
- import { n as EventStream, r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-BYmtRe8-.mjs";
5
- import { n as validateToolCall, t as validateToolArguments } from "./validation-QmyD0E5A.mjs";
6
- import { a as RegisteredApiProvider, i as ApiStreamSimpleFunction, n as ApiRegistry, o as createApiRegistry, r as ApiStreamFunction, t as ApiProvider } from "./api-registry-DY2MLUyg.mjs";
7
- import { _ as supportsScopedAiTransportHosts, a as AiProviderRequestPolicyInput, c as AiTransportHost, d as configureAiTransportHost, f as createAiTransportHost, g as runWithAiTransportHost, h as resolveAiTransportHeaderSentinels, i as AiProviderRequestCapabilities, l as AiTransportPluginHost, m as getDefaultAiTransportHost, n as AiInlineImageBlock, o as AiProviderStreamHookContext, p as getAiTransportHost, r as AiInlineTextBlock, s as AiTransformTransportMessages, t as AiInlineContentBlock, u as OpenAIStrictToolSettingOptions } from "./host-ccbwPC3A.mjs";
2
+ import { $ as RawPricingTier, A as ModelCostConfig, At as DiagnosticErrorInfo, B as PricingTier, C as KnownApi, Ct as isRuntimeContextMessage, D as MaybePromise, Dt as runtimeContextContentToText, E as MALFORMED_TOOL_CALL_ARGUMENTS_ERROR_CODE, Et as readRuntimeContextMetadata, F as OpenAIResponsesCompat, Ft as formatThrownValue, G as ProviderStreamOptions, H as ProviderImagesOptions, I as OpenRouterRouting, It as isProviderRefusalAssistantError, J as RUNTIME_CONTEXT_CUSTOM_TYPE, K as REPETITIVE_OUTPUT_ERROR_CODE, L as PROVIDER_FAILURE_WITH_OUTPUT_ERROR_CODE, Lt as readProviderRefusalReview, M as ModelRequestHeaders, Mt as appendAssistantMessageDiagnostic, N as ModelThinkingLevel, Nt as createAssistantMessageDiagnostic, O as Message, Ot as setRuntimeContextRetention, P as OpenAICompletionsCompat, Pt as extractDiagnosticError, Q as RawModelCostConfig, R as PROVIDER_POST_DISPATCH_AMBIGUITY_ERROR_CODE, Rt as recordSuppressedReasoning, S as ImagesStopReason, St as hasRuntimeContextMarker, T as KnownImagesProvider, Tt as labelRuntimeContextText, U as ProviderReplayState, V as Provider, W as ProviderResponse, X as RUNTIME_CONTEXT_FOOTER, Y as RUNTIME_CONTEXT_END_MARKER, Z as RUNTIME_CONTEXT_HEADER, _ as ImagesInputContent, _t as UserMessage, a as AssistantMessage, at as StreamOptions, b as ImagesOutputContent, bt as escapeRuntimeContextFooter, c as AssistantMessageEventStreamLike, ct as ThinkingBudgets, d as Context, dt as ThinkingLevelMap, et as RuntimeContextMessage, f as DEFAULT_MISSING_TOOL_RESULT_TEXT, ft as Tool, g as ImagesFunction, gt as Usage, h as ImagesContext, ht as Transport, i as AssistantImages, it as StreamFunction, j as ModelCostRates, jt as ProviderRefusalReview, k as Model, kt as AssistantMessageDiagnostic, l as CacheRetention, lt as ThinkingContent, m as ImagesApi, mt as ToolResultMessage, n as Api, nt as StopReason, o as AssistantMessageEvent, ot as TextContent, p as ImageContent, pt as ToolCall, q as RUNTIME_CONTEXT_BEGIN_MARKER, r as AssistantDeliveryTtsFacts, rt as StreamFn, s as AssistantMessageEventStreamContract, st as TextSignatureV1, t as AnthropicMessagesCompat, tt as SimpleStreamOptions, u as CompleteSimpleFn, ut as ThinkingLevel, v as ImagesModel, vt as ValidateToolArgumentsFn, w as KnownImagesApi, wt as labelRuntimeContextContent, x as ImagesProvider, xt as hasLegacyRuntimeContextEnvelope, y as ImagesOptions, yt as VercelGatewayRouting, z as PreparedSystemPrompt } from "./types-DrqxFIh9.mjs";
3
+ import { a as normalizeResolvedPricing, i as normalizeModelCostConfig, n as appendTextDeltaToAssistantMessage, r as calculateUsageCost, t as omitNullRequestHeaders } from "./index-DkF8J4yH.mjs";
4
+ import { n as EventStream, r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-CDyUvxkI.mjs";
5
+ import { n as validateToolCall, t as validateToolArguments } from "./validation-ByHJvdN2.mjs";
6
+ import { a as RegisteredApiProvider, i as ApiStreamSimpleFunction, n as ApiRegistry, o as createApiRegistry, r as ApiStreamFunction, t as ApiProvider } from "./api-registry-CCdcCPSA.mjs";
7
+ import { _ as supportsScopedAiTransportHosts, a as AiProviderRequestPolicyInput, c as AiTransportHost, d as configureAiTransportHost, f as createAiTransportHost, g as runWithAiTransportHost, h as resolveAiTransportHeaderSentinels, i as AiProviderRequestCapabilities, l as AiTransportPluginHost, m as getDefaultAiTransportHost, n as AiInlineImageBlock, o as AiProviderStreamHookContext, p as getAiTransportHost, r as AiInlineTextBlock, s as AiTransformTransportMessages, t as AiInlineContentBlock, u as OpenAIStrictToolSettingOptions } from "./host-C2_6_j-L.mjs";
8
8
  //#region packages/ai/src/stream.d.ts
9
9
  /** Creates an isolated LLM runtime backed by the supplied provider registry. */
10
10
  export declare function createLlmRuntime(registry?: ApiRegistry): {
package/dist/index.mjs CHANGED
@@ -6,6 +6,6 @@ import { t as omitNullRequestHeaders } from "./request-headers-DO4Mqhw1.mjs";
6
6
  import { a as createAssistantMessageEventStream, n as EventStream, t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
7
7
  import { n as validateToolCall, t as validateToolArguments } from "./validation-DGXqfvkj.mjs";
8
8
  import { t as observeAsyncIterator } from "./observe-async-iterator-DgmegcZR.mjs";
9
- import { n as createNodeLlmRuntime, r as createApiRegistry, t as createLlmRuntime } from "./stream-DM-q0y5H.mjs";
10
- import { a as resolveAiTransportHeaderSentinels, i as getDefaultAiTransportHost, n as createAiTransportHost, o as runWithAiTransportHost, r as getAiTransportHost, s as supportsScopedAiTransportHosts, t as configureAiTransportHost } from "./host-DqX-64Pb.mjs";
9
+ import { n as createNodeLlmRuntime, r as createApiRegistry, t as createLlmRuntime } from "./stream-WbisbzUF.mjs";
10
+ import { a as resolveAiTransportHeaderSentinels, i as getDefaultAiTransportHost, n as createAiTransportHost, o as runWithAiTransportHost, r as getAiTransportHost, s as supportsScopedAiTransportHosts, t as configureAiTransportHost } from "./host-DZ29cEYd.mjs";
11
11
  export { AssistantMessageEventStream, CLAUDE_FABLE_5_THINKING_PROFILE, CLAUDE_HAIKU_55_THINKING_PROFILE, CLAUDE_OPUS_55_THINKING_PROFILE, CLAUDE_OPUS_5_THINKING_PROFILE, CLAUDE_SONNET_55_THINKING_PROFILE, CLAUDE_SONNET_5_THINKING_PROFILE, DEFAULT_MISSING_TOOL_RESULT_TEXT, EventStream, MALFORMED_TOOL_CALL_ARGUMENTS_ERROR_CODE, PROVIDER_FAILURE_WITH_OUTPUT_ERROR_CODE, PROVIDER_POST_DISPATCH_AMBIGUITY_ERROR_CODE, REPETITIVE_OUTPUT_ERROR_CODE, RUNTIME_CONTEXT_BEGIN_MARKER, RUNTIME_CONTEXT_CUSTOM_TYPE, RUNTIME_CONTEXT_END_MARKER, RUNTIME_CONTEXT_FOOTER, RUNTIME_CONTEXT_HEADER, appendAssistantMessageDiagnostic, appendTextDeltaToAssistantMessage, bindsClaudeThinkingPrefix, calculateUsageCost, configureAiTransportHost, createAiTransportHost, createApiRegistry, createAssistantMessageDiagnostic, createAssistantMessageEventStream, createLlmRuntime, createNodeLlmRuntime, escapeRuntimeContextFooter, extractDiagnosticError, formatThrownValue, getAiTransportHost, getDefaultAiTransportHost, hasLegacyRuntimeContextEnvelope, hasRuntimeContextMarker, isProviderRefusalAssistantError, isRuntimeContextMessage, labelRuntimeContextContent, labelRuntimeContextText, normalizeModelCostConfig, normalizeResolvedPricing, observeAsyncIterator, omitNullRequestHeaders, readProviderRefusalReview, readRuntimeContextMetadata, recordSuppressedReasoning, requiresClaudeBetweenToolsThinking, requiresClaudeDefaultSampling, requiresClaudeMandatoryAdaptiveThinking, resolveAiTransportHeaderSentinels, resolveClaudeFable5ModelIdentity, resolveClaudeHaiku55ModelIdentity, resolveClaudeModelIdentity, resolveClaudeMythos5ModelIdentity, resolveClaudeNativeThinkingLevelMap, resolveClaudeOpus55ModelIdentity, resolveClaudeOpus5ModelIdentity, resolveClaudeSonnet55ModelIdentity, resolveClaudeSonnet5ModelIdentity, runWithAiTransportHost, runtimeContextContentToText, setRuntimeContextRetention, supportsClaude1MContext, supportsClaudeAdaptiveThinking, supportsClaudeFastMode, supportsClaudeInHistorySystemMessages, supportsClaudeNativeMaxEffort, supportsClaudeNativeXhighEffort, supportsClaudeServerCompaction, supportsScopedAiTransportHosts, validateToolArguments, validateToolCall };
@@ -1,10 +1,10 @@
1
1
  import { E as supportsClaudeNativeXhighEffort, S as supportsClaudeAdaptiveThinking, T as supportsClaudeNativeMaxEffort, _ as resolveClaudeOpus55ModelIdentity, b as resolveClaudeSonnet5ModelIdentity, c as bindsClaudeThinkingPrefix, d as requiresClaudeMandatoryAdaptiveThinking, f as resolveClaudeFable5ModelIdentity, g as resolveClaudeNativeThinkingLevelMap, h as resolveClaudeMythos5ModelIdentity, l as requiresClaudeBetweenToolsThinking, m as resolveClaudeModelIdentity, p as resolveClaudeHaiku55ModelIdentity, u as requiresClaudeDefaultSampling, v as resolveClaudeOpus5ModelIdentity, y as resolveClaudeSonnet55ModelIdentity } from "../observe-async-iterator-AlARO5wS.mjs";
2
- import { M as ModelRequestHeaders, d as Context, gt as Usage, it as StreamFunction, k as Model, kt as AssistantMessageDiagnostic, nt as StopReason, tt as SimpleStreamOptions } from "../types-BVdTf0YV.mjs";
3
- import "../index-Bczt0MnO.mjs";
4
- import "../types-Cb3-5WM9.mjs";
5
- import { i as AnthropicThinkingDisplay, n as AnthropicEffort, r as AnthropicOptions, t as AnthropicContextManagementOptions } from "../provider-options-BQ2Msop2.mjs";
6
- import { a as prepareAnthropicInputSchema, c as resolveOriginalAnthropicToolName, i as normalizeAnthropicToolChoice, l as toClaudeCodeToolName, n as AnthropicToolProjection, o as projectAnthropicTools, r as normalizeAnthropicToolCallId, s as reconcileAnthropicToolChoice, t as AnthropicProjectedToolChoice } from "../anthropic-tool-projection-DKAlondV.mjs";
7
- import { a as buildAnthropicSystemBlocks, h as applyAnthropicThinkingOptions, p as resolveAnthropicServerCompactionPlan, s as isDirectAnthropicModel } from "../anthropic-payload-policy-DVk38bnY.mjs";
2
+ import { M as ModelRequestHeaders, d as Context, gt as Usage, it as StreamFunction, k as Model, kt as AssistantMessageDiagnostic, nt as StopReason, tt as SimpleStreamOptions } from "../types-DrqxFIh9.mjs";
3
+ import "../index-DkF8J4yH.mjs";
4
+ import "../types-g3molYjD.mjs";
5
+ import { i as AnthropicThinkingDisplay, n as AnthropicEffort, r as AnthropicOptions, t as AnthropicContextManagementOptions } from "../provider-options-Bo0XJEeK.mjs";
6
+ import { a as prepareAnthropicInputSchema, c as resolveOriginalAnthropicToolName, i as normalizeAnthropicToolChoice, l as toClaudeCodeToolName, n as AnthropicToolProjection, o as projectAnthropicTools, r as normalizeAnthropicToolCallId, s as reconcileAnthropicToolChoice, t as AnthropicProjectedToolChoice } from "../anthropic-tool-projection-DX_igbpX.mjs";
7
+ import { a as buildAnthropicSystemBlocks, h as applyAnthropicThinkingOptions, p as resolveAnthropicServerCompactionPlan, s as isDirectAnthropicModel } from "../anthropic-payload-policy-DxijyMFH.mjs";
8
8
  //#region packages/ai/src/providers/anthropic.d.ts
9
9
  type AnthropicCompactionOptions = AnthropicOptions & {
10
10
  authProfileId?: string;
@@ -1,6 +1,6 @@
1
1
  import { D as supportsClaudeNativeMaxEffort, O as supportsClaudeNativeXhighEffort, S as resolveClaudeSonnet5ModelIdentity, _ as resolveClaudeMythos5ModelIdentity, b as resolveClaudeOpus5ModelIdentity, d as requiresClaudeBetweenToolsThinking, f as requiresClaudeDefaultSampling, g as resolveClaudeModelIdentity, h as resolveClaudeHaiku55ModelIdentity, m as resolveClaudeFable5ModelIdentity, p as requiresClaudeMandatoryAdaptiveThinking, u as bindsClaudeThinkingPrefix, v as resolveClaudeNativeThinkingLevelMap, w as supportsClaudeAdaptiveThinking, x as resolveClaudeSonnet55ModelIdentity, y as resolveClaudeOpus55ModelIdentity } from "../src-CQ7nH2mL.mjs";
2
- import { C as readRequiredClaudeCodeVersion, D as usesClaudeFable5MessagesContract, E as resolveAnthropicThinkingEffort, O as usesClaudeStreamingRefusalContract, S as raiseClaudeCodeVersionFloor, T as resetLearnedClaudeCodeVersionForTest, _ as buildAnthropicClaudeCodeIdentity, b as prepareClaudeNoPrefillRequestContext, g as applyClaudeRequestContract, h as ANTHROPIC_CLAUDE_CODE_VERSION, v as defaultsClaudeAdaptiveThinking, w as requiresClaudeAdaptiveThinking, x as prepareModelBoundThinkingReplay, y as mapAnthropicStopReason } from "../host-DqX-64Pb.mjs";
3
- import { A as resolveAnthropicServerCompactionPlan, B as usesFoundryBearerAuth, F as applyAnthropicFallbackBoundary, I as readAnthropicFallbackBoundary, L as resolveAnthropicFallbackServingModelCost, M as ANTHROPIC_SERVER_SIDE_FALLBACKS, N as ANTHROPIC_SERVER_SIDE_FALLBACK_BETA, P as CLAUDE_OPUS_FALLBACK_MODEL_COST, R as isAnthropicOAuthApiKey, S as buildAnthropicSystemBlocks, _ as applyAnthropicRefusal, c as readAnthropicCacheWriteUsage, d as readLastAnthropicIterationUsage, f as ANTHROPIC_OMITTED_REASONING_TEXT, g as readAnthropicInputTransformations, h as logAnthropicThinkingDrops, l as readAnthropicPromptUsageSnapshot, m as findActiveAnthropicToolTurnAssistantIndex, n as applyAnthropicThinkingOptions, o as applyAnthropicMessageDeltaUsage, p as applyAnthropicThinkingBindingControls, s as applyAnthropicMessageStartUsage, u as readAnthropicUsageTokenCount, w as isDirectAnthropicModel, z as omitFoundryBearerCredentialHeaders } from "../anthropic-stream-lifecycle-DJUtasDB.mjs";
4
- import { a as reconcileAnthropicToolChoice, i as projectAnthropicTools, n as normalizeAnthropicToolChoice, o as resolveOriginalAnthropicToolName, r as prepareAnthropicInputSchema, s as toClaudeCodeToolName, t as normalizeAnthropicToolCallId } from "../anthropic-tool-projection-DcvsDiyX.mjs";
5
- import { n as streamAnthropic, r as streamSimpleAnthropic } from "../anthropic-CNEzO12C.mjs";
2
+ import { C as readRequiredClaudeCodeVersion, D as usesClaudeFable5MessagesContract, E as resolveAnthropicThinkingEffort, O as usesClaudeStreamingRefusalContract, S as raiseClaudeCodeVersionFloor, T as resetLearnedClaudeCodeVersionForTest, _ as buildAnthropicClaudeCodeIdentity, b as prepareClaudeNoPrefillRequestContext, g as applyClaudeRequestContract, h as ANTHROPIC_CLAUDE_CODE_VERSION, v as defaultsClaudeAdaptiveThinking, w as requiresClaudeAdaptiveThinking, x as prepareModelBoundThinkingReplay, y as mapAnthropicStopReason } from "../host-DZ29cEYd.mjs";
3
+ import { A as resolveAnthropicServerCompactionPlan, B as usesFoundryBearerAuth, F as applyAnthropicFallbackBoundary, I as readAnthropicFallbackBoundary, L as resolveAnthropicFallbackServingModelCost, M as ANTHROPIC_SERVER_SIDE_FALLBACKS, N as ANTHROPIC_SERVER_SIDE_FALLBACK_BETA, P as CLAUDE_OPUS_FALLBACK_MODEL_COST, R as isAnthropicOAuthApiKey, S as buildAnthropicSystemBlocks, _ as applyAnthropicRefusal, c as readAnthropicCacheWriteUsage, d as readLastAnthropicIterationUsage, f as ANTHROPIC_OMITTED_REASONING_TEXT, g as readAnthropicInputTransformations, h as logAnthropicThinkingDrops, l as readAnthropicPromptUsageSnapshot, m as findActiveAnthropicToolTurnAssistantIndex, n as applyAnthropicThinkingOptions, o as applyAnthropicMessageDeltaUsage, p as applyAnthropicThinkingBindingControls, s as applyAnthropicMessageStartUsage, u as readAnthropicUsageTokenCount, w as isDirectAnthropicModel, z as omitFoundryBearerCredentialHeaders } from "../anthropic-stream-lifecycle-Dp5TblwC.mjs";
4
+ import { a as reconcileAnthropicToolChoice, i as projectAnthropicTools, n as normalizeAnthropicToolChoice, o as resolveOriginalAnthropicToolName, r as prepareAnthropicInputSchema, s as toClaudeCodeToolName, t as normalizeAnthropicToolCallId } from "../anthropic-tool-projection-DpN77rtb.mjs";
5
+ import { n as streamAnthropic, r as streamSimpleAnthropic } from "../anthropic-BNkSFJGp.mjs";
6
6
  export { ANTHROPIC_CLAUDE_CODE_VERSION, ANTHROPIC_OMITTED_REASONING_TEXT, ANTHROPIC_SERVER_SIDE_FALLBACKS, ANTHROPIC_SERVER_SIDE_FALLBACK_BETA, CLAUDE_OPUS_FALLBACK_MODEL_COST, applyAnthropicFallbackBoundary, applyAnthropicMessageDeltaUsage, applyAnthropicMessageStartUsage, applyAnthropicRefusal, applyAnthropicThinkingBindingControls, applyAnthropicThinkingOptions, applyClaudeRequestContract, bindsClaudeThinkingPrefix, buildAnthropicClaudeCodeIdentity, buildAnthropicSystemBlocks, defaultsClaudeAdaptiveThinking, findActiveAnthropicToolTurnAssistantIndex, isAnthropicOAuthApiKey, isDirectAnthropicModel, logAnthropicThinkingDrops, mapAnthropicStopReason, normalizeAnthropicToolCallId, normalizeAnthropicToolChoice, omitFoundryBearerCredentialHeaders, prepareAnthropicInputSchema, prepareClaudeNoPrefillRequestContext, prepareModelBoundThinkingReplay, projectAnthropicTools, raiseClaudeCodeVersionFloor, readAnthropicCacheWriteUsage, readAnthropicFallbackBoundary, readAnthropicInputTransformations, readAnthropicPromptUsageSnapshot, readAnthropicUsageTokenCount, readLastAnthropicIterationUsage, readRequiredClaudeCodeVersion, reconcileAnthropicToolChoice, requiresClaudeAdaptiveThinking, requiresClaudeBetweenToolsThinking, requiresClaudeDefaultSampling, requiresClaudeMandatoryAdaptiveThinking, resetLearnedClaudeCodeVersionForTest, resolveAnthropicFallbackServingModelCost, resolveAnthropicServerCompactionPlan, resolveAnthropicThinkingEffort, resolveClaudeFable5ModelIdentity, resolveClaudeHaiku55ModelIdentity, resolveClaudeModelIdentity, resolveClaudeMythos5ModelIdentity, resolveClaudeNativeThinkingLevelMap, resolveClaudeOpus55ModelIdentity, resolveClaudeOpus5ModelIdentity, resolveClaudeSonnet55ModelIdentity, resolveClaudeSonnet5ModelIdentity, resolveOriginalAnthropicToolName, streamAnthropic, streamSimpleAnthropic, supportsClaudeAdaptiveThinking, supportsClaudeNativeMaxEffort, supportsClaudeNativeXhighEffort, toClaudeCodeToolName, usesClaudeFable5MessagesContract, usesClaudeStreamingRefusalContract, usesFoundryBearerAuth };
@@ -1,6 +1,6 @@
1
- import { k as Model, tt as SimpleStreamOptions } from "../types-BVdTf0YV.mjs";
2
- import "../types-Cb3-5WM9.mjs";
3
- import "../event-stream-B4ZcSvsu.mjs";
1
+ import { k as Model, tt as SimpleStreamOptions } from "../types-DrqxFIh9.mjs";
2
+ import "../types-g3molYjD.mjs";
3
+ import "../event-stream-X0f18GAs.mjs";
4
4
  import { GenerateContentConfig, ThinkingLevel } from "@google/genai";
5
5
  //#region packages/ai/src/providers/google-shared.d.ts
6
6
  type GoogleThinkingOptions = {
@@ -1 +1 @@
1
- export { n as buildGoogleGenerationConfig, i as buildGoogleSimpleThinking } from "../google-shared-BMYt1xSI.mjs";
1
+ export { n as buildGoogleGenerationConfig, i as buildGoogleSimpleThinking } from "../google-shared-7sAuYDNq.mjs";
@@ -1,4 +1,4 @@
1
- import { o as resolveOpenAICompletionsCompat } from "../openai-completions-compat-CJ-NsDzg.mjs";
1
+ import { o as resolveOpenAICompletionsCompat } from "../openai-completions-compat-CEj778te.mjs";
2
2
  //#region packages/ai/src/transports/openai-completions-reasoning-replay.d.ts
3
3
  /** Shared by history sanitization and wire replay, including stale model metadata. */
4
4
  export declare function requiresReasoningContentReplay(modelId: unknown): boolean;
@@ -1,3 +1,3 @@
1
- import { a as resolveOpenAICompletionsCompat } from "../openai-completions-compat-CS3dlDBR.mjs";
1
+ import { a as resolveOpenAICompletionsCompat } from "../openai-completions-compat-CmyT3piu.mjs";
2
2
  import { t as requiresReasoningContentReplay } from "../openai-completions-reasoning-replay-BwT1xwRI.mjs";
3
3
  export { requiresReasoningContentReplay, resolveOpenAICompletionsCompat };
@@ -1,4 +1,4 @@
1
- import { d as readOpenAIResponsesCompactionWindow, t as OPENAI_RESPONSES_APIS, u as OpenAIResponsesCompactionOutput } from "../openai-responses-contracts-Cb1IIRRG.mjs";
1
+ import { d as readOpenAIResponsesCompactionWindow, t as OPENAI_RESPONSES_APIS, u as OpenAIResponsesCompactionOutput } from "../openai-responses-contracts-D-saZnr_.mjs";
2
2
  import { c as resolveOpenAIResponsesServerCompactionPlan, i as normalizeOpenAIServiceTier, o as resolveOpenAIResponsesPayloadPolicy, s as resolveOpenAIResponsesRequestContextTokens, t as OpenAIServiceTier } from "../openai-responses-payload-policy-BsQaD-gD.mjs";
3
3
  //#region packages/ai/src/transports/openai-responses-endpoint.d.ts
4
4
  export declare function supportsNativeOpenAIResponsesEndpoint(params: {
@@ -1,3 +1,3 @@
1
- import { i as OPENAI_RESPONSES_APIS } from "../openai-responses-contracts-xU-n9AJJ.mjs";
2
- import { d as normalizeOpenAIServiceTier, h as resolveOpenAIResponsesServerCompactionPlan, m as resolveOpenAIResponsesRequestContextTokens, n as supportsNativeOpenAIResponsesEndpoint, o as readOpenAIResponsesCompactionWindow, p as resolveOpenAIResponsesPayloadPolicy } from "../openai-responses-endpoint-CqO3ejTe.mjs";
1
+ import { i as OPENAI_RESPONSES_APIS } from "../openai-responses-contracts-BpyK1Ygq.mjs";
2
+ import { d as normalizeOpenAIServiceTier, h as resolveOpenAIResponsesServerCompactionPlan, m as resolveOpenAIResponsesRequestContextTokens, n as supportsNativeOpenAIResponsesEndpoint, o as readOpenAIResponsesCompactionWindow, p as resolveOpenAIResponsesPayloadPolicy } from "../openai-responses-endpoint-BGwjxesS.mjs";
3
3
  export { OPENAI_RESPONSES_APIS, normalizeOpenAIServiceTier, readOpenAIResponsesCompactionWindow, resolveOpenAIResponsesPayloadPolicy, resolveOpenAIResponsesRequestContextTokens, resolveOpenAIResponsesServerCompactionPlan, supportsNativeOpenAIResponsesEndpoint };
@@ -1,13 +1,13 @@
1
- import { d as Context, it as StreamFunction, nt as StopReason, tt as SimpleStreamOptions } from "../types-BVdTf0YV.mjs";
2
- import "../index-Bczt0MnO.mjs";
3
- import "../types-Cb3-5WM9.mjs";
4
- import { a as ProviderContext, c as ProviderModel } from "../provider-types-B1e98js5.mjs";
5
- import { A as resolveOpenAISupportedReasoningEfforts, C as isOpenAIGpt55Model, D as resolveOpenAIModelReasoningEfforts, E as normalizeOpenAIReasoningEffort, M as supportsOpenAITemperature, O as resolveOpenAIReasoningEffortForModel, S as isOpenAIGpt54MiniModel, T as isOpenAIGpt6Model, _ as reconcileOpenAICompletionsToolChoice, a as BaseOpenAIStreamOptions, b as OpenAIReasoningEffort, c as OpenAICompletionsOptions, d as measuredRequestPressure, g as projectOpenAITools, h as OpenAIToolProjection, j as supportsOpenAIReasoningEffort, k as resolveOpenAIReasoningEffortMapping, m as OpenAICompletionsToolChoice, o as CodeModeToolSurfaceObservation, p as reasoningTagTextPolicy, u as codeModeToolSurfaceObserver, v as reconcileOpenAIResponsesToolChoice, w as isOpenAIGpt56Model, x as applyOpenAICompletionsToolReasoning, y as OpenAIApiReasoningEffort } from "../provider-options-BQ2Msop2.mjs";
6
- import { t as ResolvedOpenAICompletionsCompat } from "../openai-completions-compat-CJ-NsDzg.mjs";
7
- import { c as responsesPromptObserver, f as OpenAIRequestReasoningEffort, l as responsesServiceTierObserver, o as ResponsesPromptObservation, s as ResponsesServiceTierObservation } from "../openai-responses-contracts-Cb1IIRRG.mjs";
8
- import { n as clampOpenAIPromptCacheKey, r as resolveOpenAIPromptCacheParams, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "../openai-prompt-cache-BZGaIWYh.mjs";
9
- import { a as readResponsesReasoningTokens, i as mapResponsesTerminalUsage, n as applyResponsesCacheWritePricing, o as resolveResponsesTerminalStopReason, r as isResponsesOutputLimitToolCallError, t as ResponsesTerminalUsagePayload } from "../openai-responses-terminal-usage-D7IhRA6i.mjs";
10
- import "../openai-responses-compaction-replay-DXF5BjD2.mjs";
1
+ import { d as Context, it as StreamFunction, nt as StopReason, tt as SimpleStreamOptions } from "../types-DrqxFIh9.mjs";
2
+ import "../index-DkF8J4yH.mjs";
3
+ import "../types-g3molYjD.mjs";
4
+ import { a as ProviderContext, c as ProviderModel } from "../provider-types-wHqA9oSz.mjs";
5
+ import { A as resolveOpenAISupportedReasoningEfforts, C as isOpenAIGpt55Model, D as resolveOpenAIModelReasoningEfforts, E as normalizeOpenAIReasoningEffort, M as supportsOpenAITemperature, O as resolveOpenAIReasoningEffortForModel, S as isOpenAIGpt54MiniModel, T as isOpenAIGpt6Model, _ as reconcileOpenAICompletionsToolChoice, a as BaseOpenAIStreamOptions, b as OpenAIReasoningEffort, c as OpenAICompletionsOptions, d as measuredRequestPressure, g as projectOpenAITools, h as OpenAIToolProjection, j as supportsOpenAIReasoningEffort, k as resolveOpenAIReasoningEffortMapping, m as OpenAICompletionsToolChoice, o as CodeModeToolSurfaceObservation, p as reasoningTagTextPolicy, u as codeModeToolSurfaceObserver, v as reconcileOpenAIResponsesToolChoice, w as isOpenAIGpt56Model, x as applyOpenAICompletionsToolReasoning, y as OpenAIApiReasoningEffort } from "../provider-options-Bo0XJEeK.mjs";
6
+ import { t as ResolvedOpenAICompletionsCompat } from "../openai-completions-compat-CEj778te.mjs";
7
+ import { c as responsesPromptObserver, f as OpenAIRequestReasoningEffort, l as responsesServiceTierObserver, o as ResponsesPromptObservation, s as ResponsesServiceTierObservation } from "../openai-responses-contracts-D-saZnr_.mjs";
8
+ import { n as clampOpenAIPromptCacheKey, r as resolveOpenAIPromptCacheParams, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "../openai-prompt-cache-C_XCgsDn.mjs";
9
+ import { a as readResponsesReasoningTokens, i as mapResponsesTerminalUsage, n as applyResponsesCacheWritePricing, o as resolveResponsesTerminalStopReason, r as isResponsesOutputLimitToolCallError, t as ResponsesTerminalUsagePayload } from "../openai-responses-terminal-usage-CuXS9TCK.mjs";
10
+ import "../openai-responses-compaction-replay-6MNmDBBu.mjs";
11
11
  import { encodedModelRequestBodyStream, modelRequestBodyState } from "./model-request-body.mjs";
12
12
  import { ResponseCreateParamsStreaming, ResponseInputItem } from "openai/resources/responses/responses.js";
13
13
  import { ChatCompletionMessageParam } from "openai/resources/chat/completions.js";
@@ -1,13 +1,14 @@
1
- import { A as resolveOpenAIReasoningEffortMapping, C as isOpenAIGpt54MiniModel, D as normalizeOpenAIReasoningEffort, E as isOpenAIGpt6Model, M as supportsOpenAIReasoningEffort, N as supportsOpenAITemperature, O as resolveOpenAIModelReasoningEfforts, S as applyOpenAICompletionsToolReasoning, T as isOpenAIGpt56Model, j as resolveOpenAISupportedReasoningEfforts, k as resolveOpenAIReasoningEffortForModel, v as responsesPromptObserver, w as isOpenAIGpt55Model, y as responsesServiceTierObserver } from "../openai-responses-contracts-xU-n9AJJ.mjs";
2
- import { n as clampOpenAIPromptCacheKey, r as resolveOpenAIPromptCacheParams, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "../openai-prompt-cache-3H_Fz0ya.mjs";
1
+ import { A as resolveOpenAIReasoningEffortMapping, C as isOpenAIGpt54MiniModel, D as normalizeOpenAIReasoningEffort, E as isOpenAIGpt6Model, M as supportsOpenAIReasoningEffort, N as supportsOpenAITemperature, O as resolveOpenAIModelReasoningEfforts, S as applyOpenAICompletionsToolReasoning, T as isOpenAIGpt56Model, j as resolveOpenAISupportedReasoningEfforts, k as resolveOpenAIReasoningEffortForModel, v as responsesPromptObserver, w as isOpenAIGpt55Model, y as responsesServiceTierObserver } from "../openai-responses-contracts-BpyK1Ygq.mjs";
2
+ import { n as clampOpenAIPromptCacheKey, r as resolveOpenAIPromptCacheParams, t as OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH } from "../openai-prompt-cache-DV1t-7dP.mjs";
3
3
  import { _ as isResponsesOutputLimitToolCallError, b as resolveResponsesTerminalStopReason, g as applyResponsesCacheWritePricing, v as mapResponsesTerminalUsage, y as readResponsesReasoningTokens } from "../diagnostics-CloVGQiK.mjs";
4
- import { d as measuredRequestPressure, p as reasoningTagTextPolicy, u as codeModeToolSurfaceObserver } from "../simple-options-CQNPKCEb.mjs";
4
+ import { d as measuredRequestPressure, p as reasoningTagTextPolicy, u as codeModeToolSurfaceObserver } from "../simple-options-BPzChce1.mjs";
5
5
  import { encodedModelRequestBodyStream, modelRequestBodyState } from "./model-request-body.mjs";
6
- import { a as hasResponsesWebSearchTool, s as convertMessages } from "../openai-completions-transport-DHTFq-BM.mjs";
7
- import { N as bindResponsesInputMessage, St as reconcileOpenAIResponsesToolChoice, _ as isAzureResponsesTextDeltaEventType, b as resolveResponsesMessageSnapshotCollapse, bt as projectOpenAITools, f as AZURE_RESPONSES_TEXT_CONTENT_PART_TYPE, g as isAzureResponsesTextDeltaEvent, h as OPENAI_RESPONSES_OUTPUT_TEXT_DELTA_EVENT_TYPE, l as createResponsesToolCallTracker, m as OPENAI_RESPONSES_OUTPUT_TEXT_CONTENT_PART_TYPE, p as AZURE_RESPONSES_TEXT_DELTA_EVENT_TYPE, u as readResponsesToolCallItemIdentity, v as isResponsesTextContentPartType, xt as reconcileOpenAICompletionsToolChoice, y as isResponsesTextDeltaEventType } from "../openai-responses-shared-En3Jf0Vg.mjs";
6
+ import { l as convertMessages, s as hasResponsesWebSearchTool } from "../openai-completions-transport-BGoKrb3z.mjs";
7
+ import { G as reconcileOpenAICompletionsToolChoice, K as reconcileOpenAIResponsesToolChoice, W as projectOpenAITools, _ as isAzureResponsesTextDeltaEventType, b as resolveResponsesMessageSnapshotCollapse, f as AZURE_RESPONSES_TEXT_CONTENT_PART_TYPE, ft as bindResponsesInputMessage, g as isAzureResponsesTextDeltaEvent, h as OPENAI_RESPONSES_OUTPUT_TEXT_DELTA_EVENT_TYPE, l as createResponsesToolCallTracker, m as OPENAI_RESPONSES_OUTPUT_TEXT_CONTENT_PART_TYPE, p as AZURE_RESPONSES_TEXT_DELTA_EVENT_TYPE, u as readResponsesToolCallItemIdentity, v as isResponsesTextContentPartType, y as isResponsesTextDeltaEventType } from "../openai-responses-shared-BE2zSjin.mjs";
8
+ import { n as isTraditionalAzureOpenAIHost, t as isOpenAICompatibleAzureResponsesBaseUrl } from "../azure-openai-responses-client-compat-a5PrPIdL.mjs";
8
9
  import { t as mapOpenAIStopReason } from "../openai-stop-reason-8s70vDXj.mjs";
9
- import { i as resolveAzureDeploymentNameFromMap, n as isTraditionalAzureOpenAIHost, r as parseAzureDeploymentNameMap, t as isOpenAICompatibleAzureResponsesBaseUrl } from "../azure-openai-responses-client-compat-D0dvJMbZ.mjs";
10
- import { n as responsesRequestLifecycle, t as independentResponsesRequest } from "../openai-responses-request-lifecycle-C_3FKkl7.mjs";
11
- import { n as streamOpenAICompletions, r as streamSimpleOpenAICompletions } from "../openai-completions-B93R3N3b.mjs";
12
- import { n as streamOpenAIResponses, r as streamSimpleOpenAIResponses } from "../openai-responses-DSxPKV0U.mjs";
10
+ import { n as resolveAzureDeploymentNameFromMap, t as parseAzureDeploymentNameMap } from "../azure-deployment-map-DKJ8Xc4c.mjs";
11
+ import { n as responsesRequestLifecycle, t as independentResponsesRequest } from "../openai-responses-request-lifecycle-pjoJ2KB8.mjs";
12
+ import { n as streamOpenAICompletions, r as streamSimpleOpenAICompletions } from "../openai-completions-B380Vg0n.mjs";
13
+ import { n as streamOpenAIResponses, r as streamSimpleOpenAIResponses } from "../openai-responses-ClgomgWG.mjs";
13
14
  export { AZURE_RESPONSES_TEXT_CONTENT_PART_TYPE, AZURE_RESPONSES_TEXT_DELTA_EVENT_TYPE, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH, OPENAI_RESPONSES_OUTPUT_TEXT_CONTENT_PART_TYPE, OPENAI_RESPONSES_OUTPUT_TEXT_DELTA_EVENT_TYPE, applyOpenAICompletionsToolReasoning, applyResponsesCacheWritePricing, bindResponsesInputMessage, clampOpenAIPromptCacheKey, codeModeToolSurfaceObserver, convertMessages, createResponsesToolCallTracker, encodedModelRequestBodyStream, hasResponsesWebSearchTool, independentResponsesRequest, isAzureResponsesTextDeltaEvent, isAzureResponsesTextDeltaEventType, isOpenAICompatibleAzureResponsesBaseUrl, isOpenAIGpt54MiniModel, isOpenAIGpt55Model, isOpenAIGpt56Model, isOpenAIGpt6Model, isResponsesOutputLimitToolCallError, isResponsesTextContentPartType, isResponsesTextDeltaEventType, isTraditionalAzureOpenAIHost, mapOpenAIStopReason, mapResponsesTerminalUsage, measuredRequestPressure, modelRequestBodyState, normalizeOpenAIReasoningEffort, parseAzureDeploymentNameMap, projectOpenAITools, readResponsesReasoningTokens, readResponsesToolCallItemIdentity, reasoningTagTextPolicy, reconcileOpenAICompletionsToolChoice, reconcileOpenAIResponsesToolChoice, resolveAzureDeploymentNameFromMap, resolveOpenAIModelReasoningEfforts, resolveOpenAIPromptCacheParams, resolveOpenAIReasoningEffortForModel, resolveOpenAIReasoningEffortMapping, resolveOpenAISupportedReasoningEfforts, resolveResponsesMessageSnapshotCollapse, resolveResponsesTerminalStopReason, responsesPromptObserver, responsesRequestLifecycle, responsesServiceTierObserver, streamOpenAICompletions, streamOpenAIResponses, streamSimpleOpenAICompletions, streamSimpleOpenAIResponses, supportsOpenAIReasoningEffort, supportsOpenAITemperature };
@@ -1,11 +1,11 @@
1
- import { G as ProviderStreamOptions, N as ModelThinkingLevel, a as AssistantMessage, at as StreamOptions, d as Context, gt as Usage, k as Model, n as Api, s as AssistantMessageEventStreamContract, tt as SimpleStreamOptions } from "../types-BVdTf0YV.mjs";
2
- import "../index-Bczt0MnO.mjs";
3
- import { i as getEventStreamCompletion } from "../event-stream-BYmtRe8-.mjs";
4
- import { a as RegisteredApiProvider, t as ApiProvider } from "../api-registry-DY2MLUyg.mjs";
5
- import { m as getDefaultAiTransportHost } from "../host-ccbwPC3A.mjs";
6
- import "../types-Cb3-5WM9.mjs";
7
- import { n as isContextOverflow, t as sanitizeSurrogates } from "../sanitize-unicode-BISmUlUv.mjs";
8
- import { y as parseTerminalToolCallArguments } from "../transport-stream-shared-D3IAU4jn.mjs";
1
+ import { G as ProviderStreamOptions, N as ModelThinkingLevel, a as AssistantMessage, at as StreamOptions, d as Context, gt as Usage, k as Model, n as Api, s as AssistantMessageEventStreamContract, tt as SimpleStreamOptions } from "../types-DrqxFIh9.mjs";
2
+ import "../index-DkF8J4yH.mjs";
3
+ import { i as getEventStreamCompletion } from "../event-stream-CDyUvxkI.mjs";
4
+ import { a as RegisteredApiProvider, t as ApiProvider } from "../api-registry-CCdcCPSA.mjs";
5
+ import { m as getDefaultAiTransportHost } from "../host-C2_6_j-L.mjs";
6
+ import "../types-g3molYjD.mjs";
7
+ import { n as isContextOverflow, t as sanitizeSurrogates } from "../sanitize-unicode-D0B2CDXP.mjs";
8
+ import { y as parseTerminalToolCallArguments } from "../transport-stream-shared-Cwd9ZIqy.mjs";
9
9
  //#region packages/ai/src/internal/default-runtime.d.ts
10
10
  export declare const defaultApiRegistry: {
11
11
  registerApiProvider: <TApi extends Api, TOptions extends StreamOptions>(provider: ApiProvider<TApi, TOptions>, sourceId?: string) => void;