@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,14 +1,14 @@
1
1
  import { o as getEventStreamCompletion } from "../event-stream-X2gmsUWv.mjs";
2
- import { r as createApiRegistry, t as createLlmRuntime } from "../stream-DM-q0y5H.mjs";
3
- import { A as applyProviderReportedUsageCost, M as clampThinkingLevel, N as getSupportedThinkingLevels, P as modelsAreEqual, j as calculateCost, k as headersToRecord } from "../host-DqX-64Pb.mjs";
2
+ import { r as createApiRegistry, t as createLlmRuntime } from "../stream-WbisbzUF.mjs";
3
+ import { A as applyProviderReportedUsageCost, M as clampThinkingLevel, N as getSupportedThinkingLevels, P as modelsAreEqual, j as calculateCost, k as headersToRecord } from "../host-DZ29cEYd.mjs";
4
4
  import { n as getSessionResourceOwnerId, r as registerSessionResourceCleanup, t as cleanupSessionResources } from "../session-resources-vKvGIE3J.mjs";
5
5
  import { t as sanitizeSurrogates } from "../sanitize-unicode-CRGuMONI.mjs";
6
- import { A as parseStreamingJson, D as shortHash, O as createToolArgumentPreviewSchedule, _ as parseTerminalToolCallArguments, j as repairJson, k as parseJsonWithRepair } from "../transport-stream-shared-CBVh6QEc.mjs";
6
+ import { A as parseStreamingJson, D as shortHash, O as createToolArgumentPreviewSchedule, _ as parseTerminalToolCallArguments, j as repairJson, k as parseJsonWithRepair } from "../transport-stream-shared-DtOk207K.mjs";
7
7
  import { n as getEnvApiKey, t as findEnvKeys } from "../env-api-keys-BuHc86ya.mjs";
8
8
  import { t as createDeferredEventBuffer } from "../deferred-event-buffer-tIGkTkTm.mjs";
9
9
  import { n as onLlmRequestActivity, t as notifyLlmRequestActivity } from "../llm-request-activity-DzaHoRAU.mjs";
10
- import { a as withFirstStreamEventTimeout, i as getFirstStreamEventTimeoutMs, n as createFirstStreamEventTimeoutError, r as getFirstStreamEventTimeoutHandler, t as createFirstStreamEventAbortController } from "../stream-first-event-timeout-B7RcufAV.mjs";
11
10
  import { n as createSseByteGuard, t as boundResponseBody } from "../streaming-byte-guard-DBXr1XYn.mjs";
11
+ import { a as withFirstStreamEventTimeout, i as getFirstStreamEventTimeoutMs, n as createFirstStreamEventTimeoutError, r as getFirstStreamEventTimeoutHandler, t as createFirstStreamEventAbortController } from "../stream-first-event-timeout-B7RcufAV.mjs";
12
12
  import { n as resolveOpenAICodexAccountId, t as decodeOpenAICodexJwtPayload } from "../openai-chatgpt-jwt-KWcgd0d_.mjs";
13
13
  import { t as isContextOverflow } from "../overflow-CpApyjG2.mjs";
14
14
  //#region packages/ai/src/internal/default-runtime.ts
@@ -1,13 +1,13 @@
1
- import { O as Message, a as AssistantMessage, ct as ThinkingBudgets, d as Context, k as Model, n as Api, tt as SimpleStreamOptions, ut as ThinkingLevel, z as PreparedSystemPrompt } from "../types-BVdTf0YV.mjs";
2
- import "../index-Bczt0MnO.mjs";
3
- import { a as readAssistantThinkingAppend } from "../event-stream-BYmtRe8-.mjs";
4
- import "../types-Cb3-5WM9.mjs";
5
- import { u as ProviderStreamOptions } from "../provider-types-B1e98js5.mjs";
6
- import { f as preparedRequestSuffix } from "../provider-options-BQ2Msop2.mjs";
1
+ import { O as Message, a as AssistantMessage, ct as ThinkingBudgets, d as Context, k as Model, n as Api, tt as SimpleStreamOptions, ut as ThinkingLevel, z as PreparedSystemPrompt } from "../types-DrqxFIh9.mjs";
2
+ import "../index-DkF8J4yH.mjs";
3
+ import { a as readAssistantThinkingAppend } from "../event-stream-CDyUvxkI.mjs";
4
+ import "../types-g3molYjD.mjs";
5
+ import { u as ProviderStreamOptions } from "../provider-types-wHqA9oSz.mjs";
6
+ import { f as preparedRequestSuffix } from "../provider-options-Bo0XJEeK.mjs";
7
7
  import { serializeModelRequestBody } from "./model-request-body.mjs";
8
- import { r as matchesContextOverflowMessage, t as sanitizeSurrogates } from "../sanitize-unicode-BISmUlUv.mjs";
8
+ import { r as matchesContextOverflowMessage, t as sanitizeSurrogates } from "../sanitize-unicode-D0B2CDXP.mjs";
9
9
  import { i as projectProviderError } from "../provider-error-CnaWYTRY.mjs";
10
- import { m as iterateSseFrames } from "../transport-stream-shared-D3IAU4jn.mjs";
10
+ import { m as iterateSseFrames } from "../transport-stream-shared-Cwd9ZIqy.mjs";
11
11
  import { i as projectPreparedDiagnosticValue, n as isCredentialFieldName } from "../credential-redaction-DrgndwTJ.mjs";
12
12
  import { n as normalizeStructuredPromptSection, r as sortPromptCacheToolsByName, t as normalizePromptCapabilityIds } from "../prompt-cache-stability-Cwcjv_fx.mjs";
13
13
  //#region packages/ai/src/providers/simple-options.d.ts
@@ -1,10 +1,10 @@
1
1
  import { s as readAssistantThinkingAppend } from "../event-stream-X2gmsUWv.mjs";
2
- import { F as hasMediaPayload, I as isImageWithMediaPayload, c as transformMessages, d as hasOnlyAssistantReasoningContent, f as isReasoningOnlyLengthAssistantTurn, l as FAILED_ASSISTANT_REPLAY_TEXT, m as resolveFailedAssistantReplay, p as isStreamErrorFallbackContent, u as STREAM_ERROR_FALLBACK_TEXT } from "../host-DqX-64Pb.mjs";
2
+ import { F as hasMediaPayload, I as isImageWithMediaPayload, c as transformMessages, d as hasOnlyAssistantReasoningContent, f as isReasoningOnlyLengthAssistantTurn, l as FAILED_ASSISTANT_REPLAY_TEXT, m as resolveFailedAssistantReplay, p as isStreamErrorFallbackContent, u as STREAM_ERROR_FALLBACK_TEXT } from "../host-DZ29cEYd.mjs";
3
3
  import { i as isCredentialFieldName, n as projectProviderError, o as projectPreparedDiagnosticValue } from "../provider-error-DD-fo4Rz.mjs";
4
4
  import { t as sanitizeSurrogates } from "../sanitize-unicode-CRGuMONI.mjs";
5
5
  import { n as normalizeStructuredPromptSection, r as sortPromptCacheToolsByName, t as normalizePromptCapabilityIds } from "../prompt-cache-stability-w-ICeyOI.mjs";
6
- import { C as stripSystemPromptCacheBoundary, S as splitSystemPromptRelocatableBoundary, _ as createSystemPromptCacheBoundaryStripper, a as describeToolResultMediaPlaceholder, b as prependSystemPromptAdditionAfterCacheBoundary, c as extractToolResultText, f as preparedRequestSuffix, g as SYSTEM_PROMPT_RELOCATABLE_BOUNDARY_END, h as SYSTEM_PROMPT_RELOCATABLE_BOUNDARY, i as clampReasoning, l as formatToolResultText, m as SYSTEM_PROMPT_CACHE_BOUNDARY, n as buildBaseOptions, o as describeUnsupportedToolResultMedia, r as clampMaxTokensToModel, s as extractToolResultBlockText, t as adjustMaxTokensForThinking, v as ensureSystemPromptCacheBoundary, w as stripSystemPromptRelocatableBoundary, x as splitSystemPromptCacheBoundary, y as prepareSystemPrompt } from "../simple-options-CQNPKCEb.mjs";
7
- import { f as iterateSseFrames } from "../transport-stream-shared-CBVh6QEc.mjs";
6
+ import { C as stripSystemPromptCacheBoundary, S as splitSystemPromptRelocatableBoundary, _ as createSystemPromptCacheBoundaryStripper, a as describeToolResultMediaPlaceholder, b as prependSystemPromptAdditionAfterCacheBoundary, c as extractToolResultText, f as preparedRequestSuffix, g as SYSTEM_PROMPT_RELOCATABLE_BOUNDARY_END, h as SYSTEM_PROMPT_RELOCATABLE_BOUNDARY, i as clampReasoning, l as formatToolResultText, m as SYSTEM_PROMPT_CACHE_BOUNDARY, n as buildBaseOptions, o as describeUnsupportedToolResultMedia, r as clampMaxTokensToModel, s as extractToolResultBlockText, t as adjustMaxTokensForThinking, v as ensureSystemPromptCacheBoundary, w as stripSystemPromptRelocatableBoundary, x as splitSystemPromptCacheBoundary, y as prepareSystemPrompt } from "../simple-options-BPzChce1.mjs";
7
+ import { f as iterateSseFrames } from "../transport-stream-shared-DtOk207K.mjs";
8
8
  import { serializeModelRequestBody } from "./model-request-body.mjs";
9
9
  import { t as projectCopilotRequestFacts } from "../github-copilot-request-facts-BZ_EMo7X.mjs";
10
10
  import { n as matchesContextOverflowMessage } from "../overflow-CpApyjG2.mjs";
@@ -1,5 +1,5 @@
1
- import { h as OpenAIToolProjection } from "../provider-options-BQ2Msop2.mjs";
2
- import { a as prepareAnthropicInputSchema } from "../anthropic-tool-projection-DKAlondV.mjs";
1
+ import { h as OpenAIToolProjection } from "../provider-options-Bo0XJEeK.mjs";
2
+ import { a as prepareAnthropicInputSchema } from "../anthropic-tool-projection-DX_igbpX.mjs";
3
3
  import { TSchema } from "typebox";
4
4
  //#region packages/ai/src/providers/agent-tools-parameter-schema.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { d as MAX_TOOL_SCHEMA_DEPTH, f as inheritToolSchemaTruncation, g as wasToolSchemaTruncated, h as truncateToolSchemaDepth, i as publishRuntimeToolInputSchema, m as toolSchemaChildPosition, p as reportToolSchemaTruncation, r as projectRuntimeToolInputSchema, t as getPublishedRuntimeToolInputSchema, v as SCHEMA_MAP_KEYS, y as SCHEMA_NESTED_KEYS } from "../tool-schema-json-projection-BSHb4gaJ.mjs";
2
- import { r as prepareAnthropicInputSchema } from "../anthropic-tool-projection-DcvsDiyX.mjs";
3
- import { _ as cleanSchemaForLlamacppGbnf, a as resolveOpenAIProjectedToolsStrictToolFlag, b as cleanSchemaForGemini, c as normalizeOpenAIStrictCompatSchema, d as resolveUnsupportedToolSchemaKeywords, f as shouldOmitEmptyArrayItems, g as LLAMACPP_GBNF_MAX_REPETITION_THRESHOLD, h as stripUnsupportedSchemaKeywords, i as normalizeStrictOpenAIJsonSchema, l as extractToolSchemaModelCompat, n as isStrictOpenAIJsonSchemaCompatible, o as findCompatClosedObjectPaths, r as normalizeOpenAIStrictToolParameters, s as findOpenAIStrictSchemaViolations, t as findOpenAIStrictToolProjectionDiagnostics, u as normalizeToolParameterSchema, v as findLlamacppGbnfSchemaViolations, x as prepareOpenAIFunctionTool, y as GEMINI_UNSUPPORTED_SCHEMA_KEYWORDS } from "../openai-tool-schema-CvxySRyf.mjs";
1
+ import { d as MAX_TOOL_SCHEMA_DEPTH, f as inheritToolSchemaTruncation, g as wasToolSchemaTruncated, h as truncateToolSchemaDepth, i as publishRuntimeToolInputSchema, m as toolSchemaChildPosition, p as reportToolSchemaTruncation, r as projectRuntimeToolInputSchema, t as getPublishedRuntimeToolInputSchema, v as SCHEMA_MAP_KEYS, y as SCHEMA_NESTED_KEYS } from "../tool-schema-json-projection-C9KSjPuG.mjs";
2
+ import { r as prepareAnthropicInputSchema } from "../anthropic-tool-projection-DpN77rtb.mjs";
3
+ import { _ as LLAMACPP_GBNF_MAX_REPETITION_THRESHOLD, a as normalizeStrictOpenAIJsonSchema, b as GEMINI_UNSUPPORTED_SCHEMA_KEYWORDS, c as findOpenAIStrictSchemaViolations, d as normalizeToolParameterSchema, f as resolveUnsupportedToolSchemaKeywords, g as stripUnsupportedSchemaKeywords, i as normalizeOpenAIStrictToolParameters, l as normalizeOpenAIStrictCompatSchema, n as findOpenAIStrictToolProjectionDiagnostics, o as resolveOpenAIProjectedToolsStrictToolFlag, p as shouldOmitEmptyArrayItems, r as isStrictOpenAIJsonSchemaCompatible, s as findCompatClosedObjectPaths, t as prepareOpenAIFunctionTool, u as extractToolSchemaModelCompat, v as cleanSchemaForLlamacppGbnf, x as cleanSchemaForGemini, y as findLlamacppGbnfSchemaViolations } from "../openai-function-tool-DUT14vv6.mjs";
4
4
  export { GEMINI_UNSUPPORTED_SCHEMA_KEYWORDS, LLAMACPP_GBNF_MAX_REPETITION_THRESHOLD, MAX_TOOL_SCHEMA_DEPTH, SCHEMA_MAP_KEYS, SCHEMA_NESTED_KEYS, cleanSchemaForGemini, cleanSchemaForLlamacppGbnf, extractToolSchemaModelCompat, findCompatClosedObjectPaths, findLlamacppGbnfSchemaViolations, findOpenAIStrictSchemaViolations, findOpenAIStrictToolProjectionDiagnostics, getPublishedRuntimeToolInputSchema, inheritToolSchemaTruncation, isStrictOpenAIJsonSchemaCompatible, normalizeOpenAIStrictCompatSchema, normalizeOpenAIStrictToolParameters, normalizeStrictOpenAIJsonSchema, normalizeToolParameterSchema, prepareAnthropicInputSchema, prepareOpenAIFunctionTool, projectRuntimeToolInputSchema, publishRuntimeToolInputSchema, reportToolSchemaTruncation, resolveOpenAIProjectedToolsStrictToolFlag, resolveUnsupportedToolSchemaKeywords, shouldOmitEmptyArrayItems, stripUnsupportedSchemaKeywords, toolSchemaChildPosition, truncateToolSchemaDepth, wasToolSchemaTruncated };
@@ -2,15 +2,15 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import "./src-CQ7nH2mL.mjs";
3
3
  import { t as omitNullRequestHeaders } from "./request-headers-DO4Mqhw1.mjs";
4
4
  import { r as appendAssistantThinking, t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
5
- import { I as isImageWithMediaPayload, M as clampThinkingLevel, j as calculateCost, r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
5
+ import { I as isImageWithMediaPayload, M as clampThinkingLevel, j as calculateCost, r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
6
6
  import { t as sanitizeSurrogates } from "./sanitize-unicode-CRGuMONI.mjs";
7
7
  import { r as sortPromptCacheToolsByName } from "./prompt-cache-stability-w-ICeyOI.mjs";
8
- import { C as stripSystemPromptCacheBoundary, a as describeToolResultMediaPlaceholder, c as extractToolResultText, l as formatToolResultText, n as buildBaseOptions, r as clampMaxTokensToModel } from "./simple-options-CQNPKCEb.mjs";
9
- import { A as parseStreamingJson, D as shortHash, O as createToolArgumentPreviewSchedule, h as notifyProviderHttpResponse, l as finalizeTerminalToolCallArguments, n as assignTransportErrorDetails, p as mergeTransportHeaders, u as finalizeTransportStream } from "./transport-stream-shared-CBVh6QEc.mjs";
10
- import { t as getPublishedRuntimeToolInputSchema } from "./tool-schema-json-projection-BSHb4gaJ.mjs";
8
+ import { C as stripSystemPromptCacheBoundary, a as describeToolResultMediaPlaceholder, c as extractToolResultText, l as formatToolResultText, n as buildBaseOptions, r as clampMaxTokensToModel } from "./simple-options-BPzChce1.mjs";
9
+ import { A as parseStreamingJson, D as shortHash, O as createToolArgumentPreviewSchedule, h as notifyProviderHttpResponse, l as finalizeTerminalToolCallArguments, n as assignTransportErrorDetails, p as mergeTransportHeaders, u as finalizeTransportStream } from "./transport-stream-shared-DtOk207K.mjs";
10
+ import { t as getPublishedRuntimeToolInputSchema } from "./tool-schema-json-projection-C9KSjPuG.mjs";
11
11
  import { t as notifyLlmRequestActivity } from "./llm-request-activity-DzaHoRAU.mjs";
12
- import { t as transformProviderMessages } from "./provider-transcript-transform-Hr1kCoMX.mjs";
13
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
12
+ import { t as transformProviderMessages } from "./provider-transcript-transform-BA4B0NIr.mjs";
13
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
14
14
  import { t as boundResponseBody } from "./streaming-byte-guard-DBXr1XYn.mjs";
15
15
  import { t as mapOpenAIStopReason } from "./openai-stop-reason-8s70vDXj.mjs";
16
16
  import { t as requireApiKey } from "./required-api-key-2zZTkmsi.mjs";
@@ -2433,7 +2433,7 @@ let telemetryModule;
2433
2433
  async function getObservabilityModule() {
2434
2434
  if (observabilityModule !== void 0) return observabilityModule;
2435
2435
  try {
2436
- observabilityModule = await import("./otel-B2u5HGvm.mjs");
2436
+ observabilityModule = await import("./otel-VKlSbm9p.mjs");
2437
2437
  } catch {
2438
2438
  observabilityModule = null;
2439
2439
  }
@@ -2442,7 +2442,7 @@ async function getObservabilityModule() {
2442
2442
  async function getTelemetryModule() {
2443
2443
  if (telemetryModule !== void 0) return telemetryModule;
2444
2444
  try {
2445
- telemetryModule = await import("./telemetry-DJibfNKZ.mjs");
2445
+ telemetryModule = await import("./telemetry-BS2h0FVa.mjs");
2446
2446
  } catch {
2447
2447
  telemetryModule = null;
2448
2448
  }
@@ -4,22 +4,22 @@ import { t as omitNullRequestHeaders } from "./request-headers-DO4Mqhw1.mjs";
4
4
  import { t as AssistantMessageEventStream } from "./event-stream-X2gmsUWv.mjs";
5
5
  import { o as isRecord } from "./record-coerce-BQaoiN3r.mjs";
6
6
  import { i as clampPositiveTimerTimeoutMs } from "./number-coercion-C7HsBgUL.mjs";
7
- import { a as resolveAiTransportHeaderSentinels, k as headersToRecord, r as getAiTransportHost } from "./host-DqX-64Pb.mjs";
8
- import { N as supportsOpenAITemperature, v as responsesPromptObserver } from "./openai-responses-contracts-xU-n9AJJ.mjs";
7
+ import { a as resolveAiTransportHeaderSentinels, k as headersToRecord, r as getAiTransportHost } from "./host-DZ29cEYd.mjs";
8
+ import { N as supportsOpenAITemperature, v as responsesPromptObserver } from "./openai-responses-contracts-BpyK1Ygq.mjs";
9
9
  import { r as registerSessionResourceCleanup } from "./session-resources-vKvGIE3J.mjs";
10
10
  import "./src-BUsVkrNt.mjs";
11
- import { n as clampOpenAIPromptCacheKey } from "./openai-prompt-cache-3H_Fz0ya.mjs";
11
+ import { n as clampOpenAIPromptCacheKey } from "./openai-prompt-cache-DV1t-7dP.mjs";
12
12
  import { S as toErrorObject, s as WEBSOCKET_NON_RETRYABLE_CLOSE_ERROR_CODE, x as extractErrorCodeOrErrno } from "./diagnostics-CloVGQiK.mjs";
13
- import { a as streamFragmentError, s as consumeResponseBytes, t as MALFORMED_STREAMING_FRAGMENT_ERROR_MESSAGE } from "./transport-utils-rxOHnq9y.mjs";
13
+ import { a as streamFragmentError, s as consumeResponseBytes, t as MALFORMED_STREAMING_FRAGMENT_ERROR_MESSAGE } from "./transport-utils-Czu6bnbQ.mjs";
14
14
  import { parseRetryAfterHeadersSeconds } from "./internal/retry-after.mjs";
15
- import { u as resolveOpenAIResponsesTextFormat } from "./openai-completions-compat-CS3dlDBR.mjs";
16
- import { n as buildManagedModelFetch } from "./host-policy-Bk85E9ue.mjs";
17
- import { n as buildBaseOptions, y as prepareSystemPrompt } from "./simple-options-CQNPKCEb.mjs";
18
- import { C as withProviderResponseHook, g as notifyProviderStreamOpened, n as assignTransportErrorDetails, p as mergeTransportHeaders, x as transportAbortError } from "./transport-stream-shared-CBVh6QEc.mjs";
19
- import { t as createAssistantOutput } from "./assistant-output-C3czmoN4.mjs";
20
- import { C as isInvalidEncryptedContentError, D as ResponsesStreamFailure, Dt as createResponseModelTracker, E as resolveNextResponsesEncryptedContentAttempt, Et as createOpenAIResponseHook, F as convertProviderResponsesMessages, Tt as createOpenAIProviderAcceptanceHook, _t as resolveOpenAIRequestReasoning, i as convertResponsesToolPayload, j as recordResponsesContextUsage, n as applyResponsesServiceTierPricing, o as readOpenAIMisalignmentReview, ot as suppressOpenAIResponsesCompaction, rt as buildOpenAIResponsesReasoningReplayMetadata, s as processResponsesStream, vt as resolveOpenAISimpleReasoningEffort, x as commitResponsesEncryptedContentAttempt } from "./openai-responses-shared-En3Jf0Vg.mjs";
15
+ import { u as resolveOpenAIResponsesTextFormat } from "./openai-completions-compat-CmyT3piu.mjs";
16
+ import { n as buildManagedModelFetch } from "./host-policy-DqFgGiV6.mjs";
17
+ import { n as buildBaseOptions, y as prepareSystemPrompt } from "./simple-options-BPzChce1.mjs";
18
+ import { C as withProviderResponseHook, g as notifyProviderStreamOpened, n as assignTransportErrorDetails, p as mergeTransportHeaders, x as transportAbortError } from "./transport-stream-shared-DtOk207K.mjs";
19
+ import { t as createAssistantOutput } from "./assistant-output-BEE6TWdj.mjs";
20
+ import { At as createOpenAIResponseHook, Ct as buildOpenAIResponsesReasoningReplayMetadata, Dt as suppressOpenAIResponsesCompaction, H as resolveOpenAISimpleReasoningEffort, T as recordResponsesContextUsage, V as resolveOpenAIRequestReasoning, dt as resolveNextResponsesEncryptedContentAttempt, i as convertResponsesToolPayload, it as commitResponsesEncryptedContentAttempt, jt as createResponseModelTracker, kt as createOpenAIProviderAcceptanceHook, mt as convertProviderResponsesMessages, n as applyResponsesServiceTierPricing, o as readOpenAIMisalignmentReview, s as processResponsesStream, st as isInvalidEncryptedContentError, x as ResponsesStreamFailure } from "./openai-responses-shared-BE2zSjin.mjs";
21
21
  import { a as withFirstStreamEventTimeout, i as getFirstStreamEventTimeoutMs, r as getFirstStreamEventTimeoutHandler, t as createFirstStreamEventAbortController } from "./stream-first-event-timeout-B7RcufAV.mjs";
22
- import { a as createResponsesV2CompactionCollector, i as createResponsesPromptEgressObserver, n as responsesRequestLifecycle, o as claimResponsesCompactRequest, r as withResponsesRequestAcceptance, s as copyResponsesCompactRequest, t as independentResponsesRequest } from "./openai-responses-request-lifecycle-C_3FKkl7.mjs";
22
+ import { a as createResponsesV2CompactionCollector, i as createResponsesPromptEgressObserver, n as responsesRequestLifecycle, o as claimResponsesCompactRequest, r as withResponsesRequestAcceptance, s as copyResponsesCompactRequest, t as independentResponsesRequest } from "./openai-responses-request-lifecycle-pjoJ2KB8.mjs";
23
23
  import { t as requireApiKey } from "./required-api-key-2zZTkmsi.mjs";
24
24
  import { n as resolveOpenAICodexAccountId } from "./openai-chatgpt-jwt-KWcgd0d_.mjs";
25
25
  //#region packages/ai/src/providers/openai-chatgpt-request-headers.ts
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { M as clampThinkingLevel } from "./host-DqX-64Pb.mjs";
3
- import { n as buildBaseOptions } from "./simple-options-CQNPKCEb.mjs";
4
- import { n as streamOpenAICompletionsRequest, s as convertMessages } from "./openai-completions-transport-DHTFq-BM.mjs";
2
+ import { M as clampThinkingLevel } from "./host-DZ29cEYd.mjs";
3
+ import { n as buildBaseOptions } from "./simple-options-BPzChce1.mjs";
4
+ import { l as convertMessages, n as streamOpenAICompletionsRequest } from "./openai-completions-transport-BGoKrb3z.mjs";
5
5
  import { t as requireApiKey } from "./required-api-key-2zZTkmsi.mjs";
6
6
  //#region packages/ai/src/providers/openai-completions.ts
7
7
  var openai_completions_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- import { P as OpenAICompletionsCompat, k as Model } from "./types-BVdTf0YV.mjs";
2
- import "./index-Bczt0MnO.mjs";
3
- import { a as AiProviderRequestPolicyInput, i as AiProviderRequestCapabilities } from "./host-ccbwPC3A.mjs";
1
+ import { P as OpenAICompletionsCompat, k as Model } from "./types-DrqxFIh9.mjs";
2
+ import "./index-DkF8J4yH.mjs";
3
+ import { a as AiProviderRequestPolicyInput, i as AiProviderRequestCapabilities } from "./host-C2_6_j-L.mjs";
4
4
  //#region packages/ai/src/transports/openai-completions-compat.d.ts
5
5
  type OpenAICompletionsSessionAffinity = "none" | "openai" | "openrouter";
6
6
  type OpenAICompletionsCompatDefaults = {
@@ -1,7 +1,7 @@
1
1
  import { o as isRecord } from "./record-coerce-BQaoiN3r.mjs";
2
2
  import { r as normalizeLowercaseStringOrEmpty } from "./string-coerce-BCuWMIrk.mjs";
3
- import { A as resolveOpenAIReasoningEffortMapping, M as supportsOpenAIReasoningEffort } from "./openai-responses-contracts-xU-n9AJJ.mjs";
4
- import { a as resolveProviderRequestCapabilities, i as resolveProviderEndpoint } from "./host-policy-Bk85E9ue.mjs";
3
+ import { A as resolveOpenAIReasoningEffortMapping, M as supportsOpenAIReasoningEffort } from "./openai-responses-contracts-BpyK1Ygq.mjs";
4
+ import { a as resolveProviderRequestCapabilities, i as resolveProviderEndpoint } from "./host-policy-DqFgGiV6.mjs";
5
5
  //#region packages/model-catalog-core/src/provider-model-id-normalize.ts
6
6
  function normalizeOpenRouterModelFamilyId(modelId) {
7
7
  if (typeof modelId !== "string") return;