@openclaw/ai 2026.10.2 → 2026.10.4
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/{anthropic-C4qygbtf.mjs → anthropic-DloU96D6.mjs} +2 -2
- package/dist/{anthropic-stream-reducer-CWyWE21W.mjs → anthropic-stream-reducer-Djl4yqrc.mjs} +2 -3
- package/dist/{assistant-text-phase-DVZOxbuR.mjs → assistant-text-phase-DzvV7Oso.mjs} +1 -1
- package/dist/{azure-openai-responses-DO-Fv8ha.mjs → azure-openai-responses-CAyTrcy6.mjs} +1 -2
- package/dist/internal/anthropic.mjs +2 -2
- package/dist/internal/openai.mjs +5 -7
- package/dist/{openai-chatgpt-responses-CHdn8YJ_.mjs → openai-chatgpt-responses-vk4XdUjX.mjs} +6 -7
- package/dist/{openai-completions-BZfHIaZ7.mjs → openai-completions-XvUwdvJc.mjs} +1 -1
- package/dist/{openai-completions-transport-CuoQfnKV.mjs → openai-completions-transport-QYABn8Uz.mjs} +1180 -29
- package/dist/{openai-responses-BhAZFsL9.mjs → openai-responses-DNWY56mK.mjs} +2 -3
- package/dist/{openai-responses-prompt-observer-internal-CefUzh8M.mjs → openai-responses-request-lifecycle-Dskvtz_Z.mjs} +36 -1
- package/dist/{openai-responses-shared-CKNmC3vC.mjs → openai-responses-shared-BMx2NAS-.mjs} +805 -67
- package/dist/{provider-transport-turn-state-BX6TfCyW.mjs → provider-transport-turn-state-1T3vwTvn.mjs} +1 -1
- package/dist/providers.mjs +5 -5
- package/dist/{text-signature-D_vRrx-z.mjs → text-signature-CbqxIB8B.mjs} +25 -2
- package/dist/transports.mjs +11 -1148
- package/package.json +1 -1
- package/dist/openai-responses-request-lifecycle-Fsag-IGZ.mjs +0 -36
- package/dist/openai-transport-params-D7JMUPjf.mjs +0 -735
- package/dist/openai-web-search-tools-Cfu0uLyN.mjs +0 -14
- package/dist/provider-replay-context-CO_Eplnc.mjs +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as getAiTransportHost } from "./host-u3o8XiAp.mjs";
|
|
2
2
|
import { n as resolveCloudflareBaseUrl, t as isCloudflareProvider } from "./cloudflare-5qSGvIUH.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Nt as resolveOpenAIClientBaseUrl } from "./openai-responses-shared-BMx2NAS-.mjs";
|
|
4
4
|
import { n as resolveOpencodeSessionHeaders, t as hasOpencodeSessionHeader } from "./session-affinity-DA4WHv1h.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import OpenAI from "openai";
|
package/dist/providers.mjs
CHANGED
|
@@ -50,11 +50,11 @@ function createLazyRegistration(api, importModule, select) {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
const registerBuiltIns = [
|
|
53
|
-
createLazyRegistration("anthropic-messages", () => import("./anthropic-
|
|
53
|
+
createLazyRegistration("anthropic-messages", () => import("./anthropic-DloU96D6.mjs").then((n) => n.t), (module) => ({
|
|
54
54
|
stream: module.streamAnthropic,
|
|
55
55
|
streamSimple: module.streamSimpleAnthropic
|
|
56
56
|
})),
|
|
57
|
-
createLazyRegistration("openai-completions", () => import("./openai-completions-
|
|
57
|
+
createLazyRegistration("openai-completions", () => import("./openai-completions-XvUwdvJc.mjs").then((n) => n.t), (module) => ({
|
|
58
58
|
stream: module.streamOpenAICompletions,
|
|
59
59
|
streamSimple: module.streamSimpleOpenAICompletions
|
|
60
60
|
})),
|
|
@@ -62,15 +62,15 @@ const registerBuiltIns = [
|
|
|
62
62
|
stream: module.streamMistral,
|
|
63
63
|
streamSimple: module.streamSimpleMistral
|
|
64
64
|
})),
|
|
65
|
-
createLazyRegistration("openai-responses", () => import("./openai-responses-
|
|
65
|
+
createLazyRegistration("openai-responses", () => import("./openai-responses-DNWY56mK.mjs").then((n) => n.t), (module) => ({
|
|
66
66
|
stream: module.streamOpenAIResponses,
|
|
67
67
|
streamSimple: module.streamSimpleOpenAIResponses
|
|
68
68
|
})),
|
|
69
|
-
createLazyRegistration("azure-openai-responses", () => import("./azure-openai-responses-
|
|
69
|
+
createLazyRegistration("azure-openai-responses", () => import("./azure-openai-responses-CAyTrcy6.mjs"), (module) => ({
|
|
70
70
|
stream: module.streamAzureOpenAIResponses,
|
|
71
71
|
streamSimple: module.streamSimpleAzureOpenAIResponses
|
|
72
72
|
})),
|
|
73
|
-
createLazyRegistration("openai-chatgpt-responses", () => import("./openai-chatgpt-responses-
|
|
73
|
+
createLazyRegistration("openai-chatgpt-responses", () => import("./openai-chatgpt-responses-vk4XdUjX.mjs"), (module) => ({
|
|
74
74
|
stream: module.streamOpenAICodexResponses,
|
|
75
75
|
streamSimple: module.streamSimpleOpenAICodexResponses
|
|
76
76
|
})),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
|
|
1
2
|
import { r as getAiTransportHost } from "./host-u3o8XiAp.mjs";
|
|
2
3
|
import { o as truncateUtf16Safe } from "./provider-error-DQBE1bUQ.mjs";
|
|
3
4
|
import "./internal/retry-after.mjs";
|
|
4
|
-
import { N as raceWithTimeout } from "./transport-stream-shared-CCR7hSW0.mjs";
|
|
5
|
+
import { A as shortHash, N as raceWithTimeout } from "./transport-stream-shared-CCR7hSW0.mjs";
|
|
5
6
|
import "./positive-integer-CwLi8LUL.mjs";
|
|
6
7
|
//#region packages/normalization-core/src/response-bytes.ts
|
|
7
8
|
async function consumeResponseBytes(options) {
|
|
@@ -105,6 +106,28 @@ async function readResponseTextSnippet(response, options) {
|
|
|
105
106
|
return truncated ? `${collapsed}…` : collapsed;
|
|
106
107
|
}
|
|
107
108
|
//#endregion
|
|
109
|
+
//#region packages/ai/src/transports/provider-replay-context.ts
|
|
110
|
+
function isProviderReplayContext(value) {
|
|
111
|
+
return isRecord(value) && typeof value.provider === "string" && typeof value.api === "string" && typeof value.model === "string" && (value.baseUrlHash === void 0 || typeof value.baseUrlHash === "string") && (value.sessionHash === void 0 || typeof value.sessionHash === "string") && (value.authProfileHash === void 0 || typeof value.authProfileHash === "string");
|
|
112
|
+
}
|
|
113
|
+
function hashReplayContextValue(value) {
|
|
114
|
+
const normalized = value?.trim();
|
|
115
|
+
return normalized ? shortHash(normalized) : void 0;
|
|
116
|
+
}
|
|
117
|
+
function buildProviderReplayContext(model, options) {
|
|
118
|
+
return {
|
|
119
|
+
provider: model.provider,
|
|
120
|
+
api: model.api,
|
|
121
|
+
model: model.id,
|
|
122
|
+
baseUrlHash: hashReplayContextValue(model.baseUrl),
|
|
123
|
+
sessionHash: hashReplayContextValue(options?.sessionId),
|
|
124
|
+
authProfileHash: hashReplayContextValue(options?.authProfileId)
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function providerReplayContextMatches(state, context) {
|
|
128
|
+
return state.provider === context.provider && state.api === context.api && state.model === context.model && state.baseUrlHash === context.baseUrlHash && state.sessionHash === context.sessionHash && state.authProfileHash === context.authProfileHash;
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
108
131
|
//#region packages/ai/src/utils/text-signature.ts
|
|
109
132
|
function encodeTextSignatureV1(id, phase) {
|
|
110
133
|
return JSON.stringify({
|
|
@@ -114,4 +137,4 @@ function encodeTextSignatureV1(id, phase) {
|
|
|
114
137
|
});
|
|
115
138
|
}
|
|
116
139
|
//#endregion
|
|
117
|
-
export {
|
|
140
|
+
export { MALFORMED_STREAMING_FRAGMENT_ERROR_MESSAGE as a, readResponseTextSnippet as c, supportsModelTools as d, providerReplayContextMatches as i, redactSensitiveText as l, buildProviderReplayContext as n, estimateStringChars as o, isProviderReplayContext as r, isCodeModeModelVisibleToolName as s, encodeTextSignatureV1 as t, resolveModelHeaderSentinels as u };
|