@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.
- package/dist/.source-module-urls/fe058cc430242ce2ab0dfbcbe153e240a52cf9c3072c3dc0a73e5f956b6ba49b.json +1 -1
- package/dist/{anthropic-CNEzO12C.mjs → anthropic-BNkSFJGp.mjs} +5 -5
- package/dist/{anthropic-payload-policy-DVk38bnY.d.mts → anthropic-payload-policy-DxijyMFH.d.mts} +3 -3
- package/dist/{anthropic-stream-lifecycle-DJUtasDB.mjs → anthropic-stream-lifecycle-Dp5TblwC.mjs} +9 -9
- package/dist/{anthropic-tool-projection-DKAlondV.d.mts → anthropic-tool-projection-DX_igbpX.d.mts} +1 -1
- package/dist/{anthropic-tool-projection-DcvsDiyX.mjs → anthropic-tool-projection-DpN77rtb.mjs} +1 -1
- package/dist/{api-registry-DY2MLUyg.d.mts → api-registry-CCdcCPSA.d.mts} +2 -2
- package/dist/{assistant-output-C3czmoN4.mjs → assistant-output-BEE6TWdj.mjs} +1 -1
- package/dist/{azure-openai-responses-client-compat-D0dvJMbZ.mjs → azure-deployment-map-DKJ8Xc4c.mjs} +1 -14
- package/dist/{azure-openai-responses-DRkduRmW.mjs → azure-openai-responses-BjX0owXR.mjs} +6 -5
- package/dist/azure-openai-responses-client-compat-a5PrPIdL.mjs +14 -0
- package/dist/diagnostics.d.mts +3 -3
- package/dist/{event-stream-BYmtRe8-.d.mts → event-stream-CDyUvxkI.d.mts} +1 -1
- package/dist/event-stream-X0f18GAs.d.mts +1 -0
- package/dist/event-stream.d.mts +2 -2
- package/dist/{google-DqG05iBa.mjs → google-BJwjWpAX.mjs} +2 -2
- package/dist/{google-interactions-BE7cxFPc.mjs → google-interactions-BEOEOp0d.mjs} +10 -10
- package/dist/{google-messages-p2iBzsAp.mjs → google-messages-Bja86PP8.mjs} +3 -3
- package/dist/{google-provider-stream-DZ6tqteU.mjs → google-provider-stream-GYgtu60C.mjs} +6 -6
- package/dist/{google-shared-BMYt1xSI.mjs → google-shared-7sAuYDNq.mjs} +5 -5
- package/dist/{google-vertex-CAq2q1Ln.mjs → google-vertex-2zavNJkj.mjs} +2 -2
- package/dist/{host-ccbwPC3A.d.mts → host-C2_6_j-L.d.mts} +3 -3
- package/dist/{host-DqX-64Pb.mjs → host-DZ29cEYd.mjs} +1 -1
- package/dist/{host-policy-Bk85E9ue.mjs → host-policy-DqFgGiV6.mjs} +1 -1
- package/dist/{index-Bczt0MnO.d.mts → index-DkF8J4yH.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +2 -2
- package/dist/internal/anthropic.d.mts +6 -6
- package/dist/internal/anthropic.mjs +4 -4
- package/dist/internal/google.d.mts +3 -3
- package/dist/internal/google.mjs +1 -1
- package/dist/internal/openai-completions-compat.d.mts +1 -1
- package/dist/internal/openai-completions-compat.mjs +1 -1
- package/dist/internal/openai-responses-payload-policy.d.mts +1 -1
- package/dist/internal/openai-responses-payload-policy.mjs +2 -2
- package/dist/internal/openai.d.mts +10 -10
- package/dist/internal/openai.mjs +10 -9
- package/dist/internal/runtime.d.mts +8 -8
- package/dist/internal/runtime.mjs +4 -4
- package/dist/internal/shared.d.mts +8 -8
- package/dist/internal/shared.mjs +3 -3
- package/dist/internal/tool-schema.d.mts +2 -2
- package/dist/internal/tool-schema.mjs +3 -3
- package/dist/{mistral-DIGInqJI.mjs → mistral-CjTsnfIz.mjs} +8 -8
- package/dist/{openai-chatgpt-responses-C6rEZcsZ.mjs → openai-chatgpt-responses-BinD_u6y.mjs} +11 -11
- package/dist/{openai-completions-B93R3N3b.mjs → openai-completions-B380Vg0n.mjs} +3 -3
- package/dist/{openai-completions-compat-CJ-NsDzg.d.mts → openai-completions-compat-CEj778te.d.mts} +3 -3
- package/dist/{openai-completions-compat-CS3dlDBR.mjs → openai-completions-compat-CmyT3piu.mjs} +2 -2
- package/dist/{openai-completions-transport-DHTFq-BM.mjs → openai-completions-transport-BGoKrb3z.mjs} +57 -431
- package/dist/{openai-tool-schema-CvxySRyf.mjs → openai-function-tool-DUT14vv6.mjs} +22 -22
- package/dist/{openai-prompt-cache-BZGaIWYh.d.mts → openai-prompt-cache-C_XCgsDn.d.mts} +2 -2
- package/dist/{openai-prompt-cache-3H_Fz0ya.mjs → openai-prompt-cache-DV1t-7dP.mjs} +1 -1
- package/dist/{openai-responses-DSxPKV0U.mjs → openai-responses-ClgomgWG.mjs} +6 -6
- package/dist/{openai-responses-compaction-replay-DXF5BjD2.d.mts → openai-responses-compaction-replay-6MNmDBBu.d.mts} +6 -5
- package/dist/{openai-responses-contracts-xU-n9AJJ.mjs → openai-responses-contracts-BpyK1Ygq.mjs} +1 -1
- package/dist/{openai-responses-contracts-Cb1IIRRG.d.mts → openai-responses-contracts-D-saZnr_.d.mts} +5 -5
- package/dist/{openai-responses-endpoint-CqO3ejTe.mjs → openai-responses-endpoint-BGwjxesS.mjs} +1 -1
- package/dist/{openai-responses-request-lifecycle-C_3FKkl7.mjs → openai-responses-request-lifecycle-pjoJ2KB8.mjs} +6 -6
- package/dist/{openai-responses-shared-En3Jf0Vg.mjs → openai-responses-shared-BE2zSjin.mjs} +2034 -1918
- package/dist/{openai-responses-terminal-usage-D7IhRA6i.d.mts → openai-responses-terminal-usage-CuXS9TCK.d.mts} +2 -2
- package/dist/openai-responses-websocket-Bzo4ykRX.mjs +385 -0
- package/dist/{otel-B2u5HGvm.mjs → otel-VKlSbm9p.mjs} +1 -1
- package/dist/{provider-options-BQ2Msop2.d.mts → provider-options-Bo0XJEeK.d.mts} +3 -3
- package/dist/{provider-replay-context--QGWotXx.mjs → provider-replay-context-BAwe7OIR.mjs} +1 -1
- package/dist/{provider-transcript-transform-Hr1kCoMX.mjs → provider-transcript-transform-BA4B0NIr.mjs} +1 -1
- package/dist/{provider-transport-turn-state-DyaOKAYm.mjs → provider-transport-turn-state-BU7KCpkK.mjs} +22 -4
- package/dist/{provider-types-B1e98js5.d.mts → provider-types-wHqA9oSz.d.mts} +3 -3
- package/dist/provider-types.d.mts +5 -5
- package/dist/providers.d.mts +2 -2
- package/dist/providers.mjs +10 -10
- package/dist/{sanitize-unicode-BISmUlUv.d.mts → sanitize-unicode-D0B2CDXP.d.mts} +2 -2
- package/dist/{simple-options-CQNPKCEb.mjs → simple-options-BPzChce1.mjs} +3 -3
- package/dist/{stream-DM-q0y5H.mjs → stream-WbisbzUF.mjs} +1 -1
- package/dist/{telemetry-DJibfNKZ.mjs → telemetry-BS2h0FVa.mjs} +2 -2
- package/dist/{tool-schema-json-projection-BSHb4gaJ.mjs → tool-schema-json-projection-C9KSjPuG.mjs} +1 -1
- package/dist/{transport-stream-shared-D3IAU4jn.d.mts → transport-stream-shared-Cwd9ZIqy.d.mts} +4 -4
- package/dist/{transport-stream-shared-CBVh6QEc.mjs → transport-stream-shared-DtOk207K.mjs} +1 -1
- package/dist/{transport-utils-rxOHnq9y.mjs → transport-utils-Czu6bnbQ.mjs} +2 -2
- package/dist/transports.d.mts +15 -13
- package/dist/transports.mjs +14 -14
- package/dist/{types-BVdTf0YV.d.mts → types-DrqxFIh9.d.mts} +5 -0
- package/dist/types-g3molYjD.d.mts +1 -0
- package/dist/types.d.mts +5 -5
- package/dist/{validation-QmyD0E5A.d.mts → validation-ByHJvdN2.d.mts} +1 -1
- package/dist/validation.d.mts +1 -1
- package/package.json +1 -1
- package/dist/event-stream-B4ZcSvsu.d.mts +0 -1
- 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-
|
|
3
|
-
import { A as applyProviderReportedUsageCost, M as clampThinkingLevel, N as getSupportedThinkingLevels, P as modelsAreEqual, j as calculateCost, k as headersToRecord } from "../host-
|
|
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-
|
|
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-
|
|
2
|
-
import "../index-
|
|
3
|
-
import { a as readAssistantThinkingAppend } from "../event-stream-
|
|
4
|
-
import "../types-
|
|
5
|
-
import { u as ProviderStreamOptions } from "../provider-types-
|
|
6
|
-
import { f as preparedRequestSuffix } from "../provider-options-
|
|
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-
|
|
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-
|
|
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
|
package/dist/internal/shared.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
7
|
-
import { f as iterateSseFrames } from "../transport-stream-shared-
|
|
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-
|
|
2
|
-
import { a as prepareAnthropicInputSchema } from "../anthropic-tool-projection-
|
|
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-
|
|
2
|
-
import { r as prepareAnthropicInputSchema } from "../anthropic-tool-projection-
|
|
3
|
-
import { _ as
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
-
import { t as getPublishedRuntimeToolInputSchema } from "./tool-schema-json-projection-
|
|
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-
|
|
13
|
-
import { t as createAssistantOutput } from "./assistant-output-
|
|
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-
|
|
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-
|
|
2445
|
+
telemetryModule = await import("./telemetry-BS2h0FVa.mjs");
|
|
2446
2446
|
} catch {
|
|
2447
2447
|
telemetryModule = null;
|
|
2448
2448
|
}
|
package/dist/{openai-chatgpt-responses-C6rEZcsZ.mjs → openai-chatgpt-responses-BinD_u6y.mjs}
RENAMED
|
@@ -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-
|
|
8
|
-
import { N as supportsOpenAITemperature, v as responsesPromptObserver } from "./openai-responses-contracts-
|
|
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-
|
|
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-
|
|
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-
|
|
16
|
-
import { n as buildManagedModelFetch } from "./host-policy-
|
|
17
|
-
import { n as buildBaseOptions, y as prepareSystemPrompt } from "./simple-options-
|
|
18
|
-
import { C as withProviderResponseHook, g as notifyProviderStreamOpened, n as assignTransportErrorDetails, p as mergeTransportHeaders, x as transportAbortError } from "./transport-stream-shared-
|
|
19
|
-
import { t as createAssistantOutput } from "./assistant-output-
|
|
20
|
-
import {
|
|
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-
|
|
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-
|
|
3
|
-
import { n as buildBaseOptions } from "./simple-options-
|
|
4
|
-
import {
|
|
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({
|
package/dist/{openai-completions-compat-CJ-NsDzg.d.mts → openai-completions-compat-CEj778te.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as OpenAICompletionsCompat, k as Model } from "./types-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as AiProviderRequestPolicyInput, i as AiProviderRequestCapabilities } from "./host-
|
|
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 = {
|
package/dist/{openai-completions-compat-CS3dlDBR.mjs → openai-completions-compat-CmyT3piu.mjs}
RENAMED
|
@@ -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-
|
|
4
|
-
import { a as resolveProviderRequestCapabilities, i as resolveProviderEndpoint } from "./host-policy-
|
|
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;
|