@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.
Files changed (21) hide show
  1. package/dist/{anthropic-C4qygbtf.mjs → anthropic-DloU96D6.mjs} +2 -2
  2. package/dist/{anthropic-stream-reducer-CWyWE21W.mjs → anthropic-stream-reducer-Djl4yqrc.mjs} +2 -3
  3. package/dist/{assistant-text-phase-DVZOxbuR.mjs → assistant-text-phase-DzvV7Oso.mjs} +1 -1
  4. package/dist/{azure-openai-responses-DO-Fv8ha.mjs → azure-openai-responses-CAyTrcy6.mjs} +1 -2
  5. package/dist/internal/anthropic.mjs +2 -2
  6. package/dist/internal/openai.mjs +5 -7
  7. package/dist/{openai-chatgpt-responses-CHdn8YJ_.mjs → openai-chatgpt-responses-vk4XdUjX.mjs} +6 -7
  8. package/dist/{openai-completions-BZfHIaZ7.mjs → openai-completions-XvUwdvJc.mjs} +1 -1
  9. package/dist/{openai-completions-transport-CuoQfnKV.mjs → openai-completions-transport-QYABn8Uz.mjs} +1180 -29
  10. package/dist/{openai-responses-BhAZFsL9.mjs → openai-responses-DNWY56mK.mjs} +2 -3
  11. package/dist/{openai-responses-prompt-observer-internal-CefUzh8M.mjs → openai-responses-request-lifecycle-Dskvtz_Z.mjs} +36 -1
  12. package/dist/{openai-responses-shared-CKNmC3vC.mjs → openai-responses-shared-BMx2NAS-.mjs} +805 -67
  13. package/dist/{provider-transport-turn-state-BX6TfCyW.mjs → provider-transport-turn-state-1T3vwTvn.mjs} +1 -1
  14. package/dist/providers.mjs +5 -5
  15. package/dist/{text-signature-D_vRrx-z.mjs → text-signature-CbqxIB8B.mjs} +25 -2
  16. package/dist/transports.mjs +11 -1148
  17. package/package.json +1 -1
  18. package/dist/openai-responses-request-lifecycle-Fsag-IGZ.mjs +0 -36
  19. package/dist/openai-transport-params-D7JMUPjf.mjs +0 -735
  20. package/dist/openai-web-search-tools-Cfu0uLyN.mjs +0 -14
  21. package/dist/provider-replay-context-CO_Eplnc.mjs +0 -25
@@ -1,14 +0,0 @@
1
- import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
2
- //#region packages/ai/src/providers/openai-web-search-tools.ts
3
- function hasResponsesWebSearchTool(tools) {
4
- if (!Array.isArray(tools)) return false;
5
- return tools.some((tool) => {
6
- if (!isRecord(tool)) return false;
7
- if (tool.type === "web_search") return true;
8
- if (tool.type === "function" && tool.name === "web_search") return true;
9
- const fn = tool.function;
10
- return isRecord(fn) && fn.name === "web_search";
11
- });
12
- }
13
- //#endregion
14
- export { hasResponsesWebSearchTool as t };
@@ -1,25 +0,0 @@
1
- import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
2
- import { A as shortHash } from "./transport-stream-shared-CCR7hSW0.mjs";
3
- //#region packages/ai/src/transports/provider-replay-context.ts
4
- function isProviderReplayContext(value) {
5
- 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");
6
- }
7
- function hashReplayContextValue(value) {
8
- const normalized = value?.trim();
9
- return normalized ? shortHash(normalized) : void 0;
10
- }
11
- function buildProviderReplayContext(model, options) {
12
- return {
13
- provider: model.provider,
14
- api: model.api,
15
- model: model.id,
16
- baseUrlHash: hashReplayContextValue(model.baseUrl),
17
- sessionHash: hashReplayContextValue(options?.sessionId),
18
- authProfileHash: hashReplayContextValue(options?.authProfileId)
19
- };
20
- }
21
- function providerReplayContextMatches(state, context) {
22
- 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;
23
- }
24
- //#endregion
25
- export { isProviderReplayContext as n, providerReplayContextMatches as r, buildProviderReplayContext as t };