@openclaw/ai 2026.8.1 → 2026.8.33

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 (70) hide show
  1. package/dist/{anthropic-Djj7L1rx.mjs → anthropic-BNeFhAh3.mjs} +197 -185
  2. package/dist/{anthropic-compaction-replay-CY4tkD4V.mjs → anthropic-compaction-replay-B6sEzXhr.mjs} +24 -7
  3. package/dist/{anthropic-payload-policy-i_5_inWe.d.mts → anthropic-payload-policy-kkq8L7tJ.d.mts} +2 -2
  4. package/dist/{api-registry-C9-wZd_W.d.mts → api-registry-CAK4bNkq.d.mts} +2 -2
  5. package/dist/{azure-openai-responses-Bj3czHNa.mjs → azure-openai-responses-CPvqFff1.mjs} +6 -5
  6. package/dist/diagnostics.mjs +1 -1
  7. package/dist/event-stream-CDHaMazK.d.mts +1 -0
  8. package/dist/{event-stream-UhnxHuqt.d.mts → event-stream-DcQzYRWO.d.mts} +1 -1
  9. package/dist/event-stream.d.mts +2 -2
  10. package/dist/{google-0Ca6TYbw.mjs → google-B6pXyWB0.mjs} +7 -5
  11. package/dist/{google-shared-DVfL9COU.mjs → google-shared-C_3CT37v.mjs} +25 -23
  12. package/dist/{google-vertex-5dAMxprN.mjs → google-vertex-BA2c1toq.mjs} +7 -5
  13. package/dist/{host-DoPJJ1KD.d.mts → host-DL2Zd9ep.d.mts} +3 -3
  14. package/dist/{host-D51fmkH6.mjs → host-DhlhmyR6.mjs} +17 -2
  15. package/dist/index-DcGDVDnC.d.mts +118 -0
  16. package/dist/index.d.mts +7 -7
  17. package/dist/index.mjs +4 -4
  18. package/dist/internal/anthropic.d.mts +11 -6
  19. package/dist/internal/anthropic.mjs +5 -5
  20. package/dist/internal/openai-responses-payload-policy.d.mts +1 -1
  21. package/dist/internal/openai-responses-payload-policy.mjs +1 -1
  22. package/dist/internal/openai.d.mts +7 -7
  23. package/dist/internal/openai.mjs +10 -10
  24. package/dist/internal/runtime.d.mts +5 -5
  25. package/dist/internal/runtime.mjs +3 -3
  26. package/dist/internal/shared.d.mts +2 -2
  27. package/dist/internal/shared.mjs +3 -3
  28. package/dist/{mistral-BCnrI-kV.mjs → mistral-CTcM9TGz.mjs} +18 -13
  29. package/dist/{openai-chatgpt-responses-CGBGWSqr.mjs → openai-chatgpt-responses-QqHf1o9v.mjs} +17 -16
  30. package/dist/{openai-completions-BaTuwID7.mjs → openai-completions-BCmKwgsc.mjs} +17 -14
  31. package/dist/{openai-completions-compat-DB7FFq7k.d.mts → openai-completions-compat-BJE92duO.d.mts} +3 -3
  32. package/dist/{openai-completions-stream-Bpns6uNc.mjs → openai-completions-stream-0mm4YUag.mjs} +30 -27
  33. package/dist/openai-prompt-cache-BUJI5cW-.d.mts +16 -0
  34. package/dist/openai-prompt-cache-CGnVB74a.mjs +21 -0
  35. package/dist/{openai-responses-compaction-window-DwydGZI8.mjs → openai-responses-compaction-window-vuCaZYLS.mjs} +3 -3
  36. package/dist/{openai-responses-contracts-DgaR3t5T.d.mts → openai-responses-contracts-DFJOyjd1.d.mts} +6 -3
  37. package/dist/{openai-responses-1GBcQujk.mjs → openai-responses-pMJVxhHW.mjs} +11 -12
  38. package/dist/{openai-responses-prompt-observer-internal-_nhGTn2b.mjs → openai-responses-prompt-observer-internal-COaImuDp.mjs} +3 -3
  39. package/dist/{openai-responses-shared-zPmKnhF5.mjs → openai-responses-shared-CZTRmOFP.mjs} +27 -26
  40. package/dist/{openai-tool-schema-Dgl4H2MU.mjs → openai-tool-schema-DjS9-DHe.mjs} +14 -12
  41. package/dist/{provider-error-jZP5NMTZ.mjs → provider-error-BI8kIViN.mjs} +11 -11
  42. package/dist/{provider-options-HvA_slFa.d.mts → provider-options-CedgbINH.d.mts} +2 -2
  43. package/dist/{provider-transcript-transform-C01bQ5a3.mjs → provider-transcript-transform-BnsgCK8K.mjs} +1 -1
  44. package/dist/provider-types.d.mts +6 -6
  45. package/dist/providers.d.mts +2 -2
  46. package/dist/providers.mjs +10 -10
  47. package/dist/{reasoning-tag-text-partitioner-CwzKb0bA.mjs → reasoning-tag-text-partitioner-BsUX44Tq.mjs} +29 -19
  48. package/dist/{sanitize-unicode-DCkltN94.mjs → sanitize-unicode-Cfcaqa9V.mjs} +2 -8
  49. package/dist/{simple-options-DKx86yX9.mjs → simple-options-Bwi0x0bX.mjs} +2 -2
  50. package/dist/{src-Bu3FiFAG.mjs → src-BhgSqnbz.mjs} +88 -2
  51. package/dist/{tool-schema-json-projection-qvTEs5Am.mjs → tool-schema-json-projection-_gcOC21Y.mjs} +21 -31
  52. package/dist/{transport-stream-shared-NjwWNaRY.d.mts → transport-stream-shared-B38NWYTa.d.mts} +4 -4
  53. package/dist/{transport-stream-shared-CT5ycdzn.mjs → transport-stream-shared-y1YR1k5K.mjs} +2 -2
  54. package/dist/{transport-utils-BHx9z8Cl.mjs → transport-utils-DdLjoPMb.mjs} +2 -2
  55. package/dist/transports.d.mts +12 -9
  56. package/dist/transports.mjs +91 -73
  57. package/dist/types-DmdQ-xcq.d.mts +1 -0
  58. package/dist/{types-h38Azne1.d.mts → types-DmeScJQe.d.mts} +25 -13
  59. package/dist/types.d.mts +6 -6
  60. package/dist/types.mjs +3 -3
  61. package/dist/{validation-B61OhAio.mjs → validation-CJZtym2g.mjs} +7 -5
  62. package/dist/{validation-C68lP2uy.d.mts → validation-DPDgbaD3.d.mts} +1 -1
  63. package/dist/validation.d.mts +1 -1
  64. package/dist/validation.mjs +1 -1
  65. package/package.json +2 -2
  66. package/dist/event-stream-C988TSLe.d.mts +0 -1
  67. package/dist/index-N3zr6__t.d.mts +0 -105
  68. package/dist/openai-prompt-cache-2uo_1OR1.d.mts +0 -7
  69. package/dist/openai-prompt-cache-mZTCdRPo.mjs +0 -12
  70. package/dist/types-DtGu2d3C.d.mts +0 -1
@@ -1,105 +0,0 @@
1
- import { a as extractDiagnosticError, i as createAssistantMessageDiagnostic, n as DiagnosticErrorInfo, o as formatThrownValue, r as appendAssistantMessageDiagnostic, t as AssistantMessageDiagnostic } from "./diagnostics-BaTA9eVl.mjs";
2
- import { $ as Transport, A as OpenAIResponsesCompat, B as StopReason, C as KnownImagesApi, D as Model, E as Message, F as ProviderImagesOptions, G as TextSignatureV1, H as StreamFunction, I as ProviderReplayState, J as ThinkingLevel, K as ThinkingBudgets, L as ProviderResponse, M as PROVIDER_FAILURE_WITH_OUTPUT_ERROR_CODE, N as PROVIDER_POST_DISPATCH_AMBIGUITY_ERROR_CODE, O as ModelThinkingLevel, P as Provider, Q as ToolResultMessage, R as ProviderStreamOptions, S as KnownApi, T as MaybePromise, U as StreamOptions, V as StreamFn, W as TextContent, X as Tool, Y as ThinkingLevelMap, Z as ToolCall, _ as ImagesModel, a as AssistantMessage, b as ImagesProvider, c as AssistantMessageEventStreamLike, d as Context, et as Usage, f as ImageContent, g as ImagesInputContent, h as ImagesFunction, i as AssistantImages, j as OpenRouterRouting, k as OpenAICompletionsCompat, l as CacheRetention, m as ImagesContext, n as Api, nt as ValidateToolArgumentsFn, o as AssistantMessageEvent, p as ImagesApi, q as ThinkingContent, r as AssistantDeliveryTtsFacts, rt as VercelGatewayRouting, s as AssistantMessageEventStreamContract, t as AnthropicMessagesCompat, tt as UserMessage, u as CompleteSimpleFn, v as ImagesOptions, w as KnownImagesProvider, x as ImagesStopReason, y as ImagesOutputContent, z as SimpleStreamOptions } from "./types-h38Azne1.mjs";
3
- import { n as EventStream, r as createAssistantMessageEventStream, t as AssistantMessageEventStream } from "./event-stream-UhnxHuqt.mjs";
4
- import { n as validateToolCall, t as validateToolArguments } from "./validation-C68lP2uy.mjs";
5
- //#region packages/llm-core/src/model-contracts/anthropic.d.ts
6
- type ClaudeModelRef = {
7
- id?: string;
8
- params?: Record<string, unknown>;
9
- };
10
- type ClaudeEffortModelRef = ClaudeModelRef & {
11
- thinkingLevelMap?: Record<string, string | null | undefined>;
12
- };
13
- declare const CLAUDE_FABLE_5_THINKING_PROFILE: {
14
- readonly levels: readonly [{
15
- readonly id: "minimal";
16
- }, {
17
- readonly id: "low";
18
- }, {
19
- readonly id: "medium";
20
- }, {
21
- readonly id: "high";
22
- }, {
23
- readonly id: "xhigh";
24
- }, {
25
- readonly id: "adaptive";
26
- }, {
27
- readonly id: "max";
28
- }];
29
- readonly defaultLevel: "high";
30
- readonly preserveWhenCatalogReasoningFalse: true;
31
- };
32
- declare const CLAUDE_SONNET_5_THINKING_PROFILE: {
33
- readonly levels: readonly [{
34
- readonly id: "off";
35
- }, {
36
- readonly id: "minimal";
37
- }, {
38
- readonly id: "low";
39
- }, {
40
- readonly id: "medium";
41
- }, {
42
- readonly id: "high";
43
- }, {
44
- readonly id: "xhigh";
45
- }, {
46
- readonly id: "adaptive";
47
- }, {
48
- readonly id: "max";
49
- }];
50
- readonly defaultLevel: "high";
51
- };
52
- declare const CLAUDE_OPUS_5_THINKING_PROFILE: {
53
- readonly levels: readonly [{
54
- readonly id: "off";
55
- }, {
56
- readonly id: "minimal";
57
- }, {
58
- readonly id: "low";
59
- }, {
60
- readonly id: "medium";
61
- }, {
62
- readonly id: "high";
63
- }, {
64
- readonly id: "xhigh";
65
- }, {
66
- readonly id: "adaptive";
67
- }, {
68
- readonly id: "max";
69
- }];
70
- readonly defaultLevel: "high";
71
- };
72
- /** Resolve the canonical normalized Claude model id for one runtime model ref. */
73
- declare function resolveClaudeModelIdentity(ref: ClaudeModelRef): string;
74
- /** Resolve Claude Fable 5 through direct ids, cloud ids, or deployment metadata. */
75
- declare function resolveClaudeFable5ModelIdentity(ref: ClaudeModelRef): string | undefined;
76
- /** Resolve Claude Mythos 5 through direct ids, cloud ids, or deployment metadata. */
77
- declare function resolveClaudeMythos5ModelIdentity(ref: ClaudeModelRef): string | undefined;
78
- /** Return whether a Claude model requires adaptive thinking instead of manual budgets. */
79
- declare function requiresClaudeMandatoryAdaptiveThinking(ref: ClaudeModelRef): boolean;
80
- /** Resolve Claude Sonnet 5 through direct ids, cloud ids, or deployment metadata. */
81
- declare function resolveClaudeSonnet5ModelIdentity(ref: ClaudeModelRef): string | undefined;
82
- /** Resolve Claude Opus 5 through aliases, direct ids, cloud ids, or deployment metadata. */
83
- declare function resolveClaudeOpus5ModelIdentity(ref: ClaudeModelRef): string | undefined;
84
- /** Return whether a Claude model supports adaptive thinking. */
85
- declare function supportsClaudeAdaptiveThinking(ref: ClaudeModelRef): boolean;
86
- /** Return whether a Claude model has a native 1M-token context window. */
87
- declare function supportsClaude1MContext(ref: ClaudeModelRef): boolean;
88
- /** Return whether a Claude model supports Anthropic's native fast mode. */
89
- declare function supportsClaudeFastMode(ref: ClaudeModelRef): boolean;
90
- /** Return whether a Claude model supports native max effort. */
91
- declare function supportsClaudeNativeMaxEffort(ref: ClaudeModelRef): boolean;
92
- /** Return whether a Claude model supports native xhigh effort. */
93
- declare function supportsClaudeNativeXhighEffort(ref: ClaudeModelRef): boolean;
94
- /** Return whether a Claude model rejects caller-selected sampling parameters. */
95
- declare function requiresClaudeDefaultSampling(ref: ClaudeModelRef): boolean;
96
- /**
97
- * Fill native Claude effort mappings only when the provider did not publish a
98
- * narrower route-specific contract.
99
- */
100
- declare function resolveClaudeNativeThinkingLevelMap(ref: ClaudeEffortModelRef): Record<string, string | null | undefined> | undefined;
101
- declare namespace index_d_exports {
102
- export { AnthropicMessagesCompat, Api, AssistantDeliveryTtsFacts, AssistantImages, AssistantMessage, AssistantMessageDiagnostic, AssistantMessageEvent, AssistantMessageEventStream, AssistantMessageEventStreamContract, AssistantMessageEventStreamLike, CLAUDE_FABLE_5_THINKING_PROFILE, CLAUDE_OPUS_5_THINKING_PROFILE, CLAUDE_SONNET_5_THINKING_PROFILE, CacheRetention, CompleteSimpleFn, Context, DiagnosticErrorInfo, EventStream, ImageContent, ImagesApi, ImagesContext, ImagesFunction, ImagesInputContent, ImagesModel, ImagesOptions, ImagesOutputContent, ImagesProvider, ImagesStopReason, KnownApi, KnownImagesApi, KnownImagesProvider, MaybePromise, Message, Model, ModelThinkingLevel, OpenAICompletionsCompat, OpenAIResponsesCompat, OpenRouterRouting, PROVIDER_FAILURE_WITH_OUTPUT_ERROR_CODE, PROVIDER_POST_DISPATCH_AMBIGUITY_ERROR_CODE, Provider, ProviderImagesOptions, ProviderReplayState, ProviderResponse, ProviderStreamOptions, SimpleStreamOptions, StopReason, StreamFn, StreamFunction, StreamOptions, TextContent, TextSignatureV1, ThinkingBudgets, ThinkingContent, ThinkingLevel, ThinkingLevelMap, Tool, ToolCall, ToolResultMessage, Transport, Usage, UserMessage, ValidateToolArgumentsFn, VercelGatewayRouting, appendAssistantMessageDiagnostic, createAssistantMessageDiagnostic, createAssistantMessageEventStream, extractDiagnosticError, formatThrownValue, requiresClaudeDefaultSampling, requiresClaudeMandatoryAdaptiveThinking, resolveClaudeFable5ModelIdentity, resolveClaudeModelIdentity, resolveClaudeMythos5ModelIdentity, resolveClaudeNativeThinkingLevelMap, resolveClaudeOpus5ModelIdentity, resolveClaudeSonnet5ModelIdentity, supportsClaude1MContext, supportsClaudeAdaptiveThinking, supportsClaudeFastMode, supportsClaudeNativeMaxEffort, supportsClaudeNativeXhighEffort, validateToolArguments, validateToolCall };
103
- }
104
- //#endregion
105
- export { supportsClaudeNativeXhighEffort as _, requiresClaudeDefaultSampling as a, resolveClaudeModelIdentity as c, resolveClaudeOpus5ModelIdentity as d, resolveClaudeSonnet5ModelIdentity as f, supportsClaudeNativeMaxEffort as g, supportsClaudeFastMode as h, CLAUDE_SONNET_5_THINKING_PROFILE as i, resolveClaudeMythos5ModelIdentity as l, supportsClaudeAdaptiveThinking as m, CLAUDE_FABLE_5_THINKING_PROFILE as n, requiresClaudeMandatoryAdaptiveThinking as o, supportsClaude1MContext as p, CLAUDE_OPUS_5_THINKING_PROFILE as r, resolveClaudeFable5ModelIdentity as s, index_d_exports as t, resolveClaudeNativeThinkingLevelMap as u };
@@ -1,7 +0,0 @@
1
- //#region packages/ai/src/providers/openai-prompt-cache.d.ts
2
- /** Maximum prompt cache key length accepted by OpenAI-compatible request metadata. */
3
- declare const OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH = 64;
4
- /** Truncates a prompt cache key by Unicode code point count. */
5
- declare function clampOpenAIPromptCacheKey(key: string | undefined): string | undefined;
6
- //#endregion
7
- export { clampOpenAIPromptCacheKey as n, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH as t };
@@ -1,12 +0,0 @@
1
- //#region packages/ai/src/providers/openai-prompt-cache.ts
2
- /** Maximum prompt cache key length accepted by OpenAI-compatible request metadata. */
3
- const OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH = 64;
4
- /** Truncates a prompt cache key by Unicode code point count. */
5
- function clampOpenAIPromptCacheKey(key) {
6
- if (key === void 0) return;
7
- const chars = Array.from(key);
8
- if (chars.length <= 64) return key;
9
- return chars.slice(0, 64).join("");
10
- }
11
- //#endregion
12
- export { clampOpenAIPromptCacheKey as n, OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH as t };
@@ -1 +0,0 @@
1
- import "./index-N3zr6__t.mjs";