@openclaw/ai 2026.9.1-beta.1 → 2026.9.2

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/{anthropic-DI4PZKKB.mjs → anthropic-BDdqdVLK.mjs} +222 -216
  2. package/dist/{anthropic-compaction-replay-nhKaCXu6.mjs → anthropic-compaction-replay-DB2FGLQc.mjs} +160 -68
  3. package/dist/{anthropic-payload-policy-B_0n0enE.d.mts → anthropic-payload-policy-d46X2pR0.d.mts} +28 -4
  4. package/dist/{api-registry-CTd8NzcD.d.mts → api-registry-DWtPjzyn.d.mts} +2 -2
  5. package/dist/{azure-openai-responses-D8dI0ekg.mjs → azure-openai-responses-C5bZRfAP.mjs} +12 -9
  6. package/dist/{number-coercion-H9qHik3g.mjs → base64-CEFBpSkN.mjs} +73 -1
  7. package/dist/{diagnostics-COpOtRwq.mjs → diagnostics-CPeq9F7y.mjs} +5 -1
  8. package/dist/diagnostics-DfFyKeX_.mjs +136 -0
  9. package/dist/{diagnostics-BaTA9eVl.d.mts → diagnostics-DnPnOui6.d.mts} +5 -1
  10. package/dist/diagnostics.d.mts +8 -3
  11. package/dist/diagnostics.mjs +4 -3
  12. package/dist/{env-api-keys-DrgeBuva.mjs → env-api-keys-bktO00EJ.mjs} +2 -15
  13. package/dist/{event-stream-uSMZJ3FA.mjs → event-stream-BgDvQeum.mjs} +3 -9
  14. package/dist/{event-stream-LiXePESD.d.mts → event-stream-BhT5T1Ay.d.mts} +1 -1
  15. package/dist/event-stream-zctLx0yr.d.mts +1 -0
  16. package/dist/event-stream.d.mts +2 -2
  17. package/dist/event-stream.mjs +1 -1
  18. package/dist/{google-Od-LLdVK.mjs → google-4qeuE8iX.mjs} +9 -7
  19. package/dist/{google-shared-Bgr9lFPw.mjs → google-shared-CWeG8RIl.mjs} +27 -23
  20. package/dist/{google-vertex-aerRSXc4.mjs → google-vertex-O9BcnB6X.mjs} +8 -6
  21. package/dist/{host-D51fmkH6.mjs → host-CEvLw30U.mjs} +54 -9
  22. package/dist/{host-DsbPMFU6.d.mts → host-DjzGmdZ2.d.mts} +3 -3
  23. package/dist/index-FnHM2FcI.d.mts +117 -0
  24. package/dist/index.d.mts +10 -11
  25. package/dist/index.mjs +6 -6
  26. package/dist/internal/anthropic.d.mts +59 -55
  27. package/dist/internal/anthropic.mjs +5 -5
  28. package/dist/internal/openai-responses-payload-policy.d.mts +3 -3
  29. package/dist/internal/openai-responses-payload-policy.mjs +2 -3
  30. package/dist/internal/openai.d.mts +66 -64
  31. package/dist/internal/openai.mjs +10 -10
  32. package/dist/internal/retry-after.d.mts +2 -3
  33. package/dist/internal/runtime.d.mts +43 -43
  34. package/dist/internal/runtime.mjs +10 -8
  35. package/dist/internal/shared.d.mts +25 -25
  36. package/dist/internal/shared.mjs +95 -4
  37. package/dist/{mistral-EiHdymeb.mjs → mistral-Tb6oalqH.mjs} +30 -23
  38. package/dist/{openai-chatgpt-responses-DHpF9o1e.mjs → openai-chatgpt-responses-yUXjPNfu.mjs} +76 -137
  39. package/dist/{openai-completions-EFPiUGfS.mjs → openai-completions-BIUV3RDT.mjs} +26 -22
  40. package/dist/{openai-completions-compat-BefmHT26.d.mts → openai-completions-compat-CpjYUArk.d.mts} +5 -5
  41. package/dist/{openai-completions-stream-DUlGwRMz.mjs → openai-completions-stream-BsrBe3Gg.mjs} +103 -96
  42. package/dist/openai-prompt-cache-CGnVB74a.mjs +21 -0
  43. package/dist/openai-prompt-cache-CNoIfHYC.d.mts +16 -0
  44. package/dist/{openai-responses-BogP8OjX.mjs → openai-responses-CCL41ALM.mjs} +15 -14
  45. package/dist/openai-responses-compaction-window-BMVHFOtq.mjs +697 -0
  46. package/dist/{openai-responses-contracts-Dvj_UtPy.d.mts → openai-responses-contracts-rF5DDRNS.d.mts} +23 -6
  47. package/dist/{openai-responses-payload-policy-CNGFT9zr.d.mts → openai-responses-payload-policy-rLRPsSmB.d.mts} +1 -0
  48. package/dist/{openai-responses-prompt-observer-internal-Cd4hJG-S.mjs → openai-responses-prompt-observer-internal-D0bhBfgL.mjs} +4 -18
  49. package/dist/{openai-responses-shared-DJThc6jW.mjs → openai-responses-shared-Bmma_3Qc.mjs} +438 -309
  50. package/dist/{openai-tool-schema-ho-hIkQf.mjs → openai-tool-schema-_pTAJqKF.mjs} +30 -40
  51. package/dist/{provider-error-DDOs_Bz0.mjs → provider-error-9TraxGvt.mjs} +20 -92
  52. package/dist/{provider-options-MdMBLzlU.d.mts → provider-options-Bcc_p-TU.d.mts} +26 -6
  53. package/dist/provider-replay-context-BuSUaAk5.mjs +21 -0
  54. package/dist/{provider-transcript-transform-C01bQ5a3.mjs → provider-transcript-transform-BaMbI1hr.mjs} +1 -1
  55. package/dist/provider-types.d.mts +19 -20
  56. package/dist/providers.d.mts +6 -6
  57. package/dist/providers.mjs +11 -11
  58. package/dist/{reasoning-tag-text-partitioner-5ygO2rZc.mjs → reasoning-tag-text-partitioner-DLCNXki6.mjs} +158 -94
  59. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  60. package/dist/{sanitize-unicode-DCkltN94.mjs → sanitize-unicode-D6xUvZaS.mjs} +2 -8
  61. package/dist/{simple-options-CFj7x3J4.mjs → simple-options-BjHCCh4v.mjs} +42 -6
  62. package/dist/{src-Bu3FiFAG.mjs → src-2qBGKg8O.mjs} +83 -2
  63. package/dist/{stream-first-event-timeout-MK28puvq.mjs → stream-first-event-timeout-DcNjoFQE.mjs} +1 -1
  64. package/dist/{tool-schema-json-projection-qvTEs5Am.mjs → tool-schema-json-projection-mJhXDcyz.mjs} +21 -31
  65. package/dist/{transport-stream-shared-ljShVIZB.mjs → transport-stream-shared-CZqMhfIw.mjs} +19 -6
  66. package/dist/{transport-stream-shared-rvaCyFYt.d.mts → transport-stream-shared-xnaqxmbP.d.mts} +5 -5
  67. package/dist/{transport-utils-LJ1_rbi-.mjs → transport-utils-7il795_9.mjs} +5 -8
  68. package/dist/transports.d.mts +121 -85
  69. package/dist/transports.mjs +747 -464
  70. package/dist/types-3Lnm-QSJ.d.mts +1 -0
  71. package/dist/{types-DhLoJbFm.d.mts → types-CJ1-Ht7A.d.mts} +55 -19
  72. package/dist/types.d.mts +7 -7
  73. package/dist/types.mjs +5 -5
  74. package/dist/{validation-Dk7q7NMN.d.mts → validation-AKZBDGQd.d.mts} +1 -1
  75. package/dist/{validation-B61OhAio.mjs → validation-CJZtym2g.mjs} +7 -5
  76. package/dist/validation.d.mts +1 -1
  77. package/dist/validation.mjs +1 -1
  78. package/package.json +5 -5
  79. package/dist/anthropic-BECQCNdF.d.mts +0 -98
  80. package/dist/event-stream-BKp4fOt_.d.mts +0 -1
  81. package/dist/index-Qbej8io0.d.mts +0 -3
  82. package/dist/openai-prompt-cache-2uo_1OR1.d.mts +0 -7
  83. package/dist/openai-prompt-cache-mZTCdRPo.mjs +0 -12
  84. package/dist/openai-responses-contracts-QUY12X0B.mjs +0 -233
  85. package/dist/openai-responses-payload-policy-D8EdimYe.mjs +0 -204
  86. package/dist/provider-options-AvldWZt8.mjs +0 -21
  87. package/dist/tls-certificate-errors-DXSpluKI.mjs +0 -93
  88. package/dist/types-GiAjXatj.d.mts +0 -1
@@ -1,7 +1,16 @@
1
- import { n as Api } from "./types-DhLoJbFm.mjs";
2
- import "./index-Qbej8io0.mjs";
3
- import { h as OpenAIReasoningEffort, i as BaseOpenAIStreamOptions, m as OpenAIApiReasoningEffort } from "./provider-options-MdMBLzlU.mjs";
4
- import { FunctionTool, ResponseCompactionItem, ResponseCreateParamsStreaming, ResponseInput } from "openai/resources/responses/responses.js";
1
+ import "./index-FnHM2FcI.mjs";
2
+ import { D as Model, n as Api } from "./types-CJ1-Ht7A.mjs";
3
+ import { _ as OpenAIReasoningEffort, a as BaseOpenAIStreamOptions, g as OpenAIApiReasoningEffort } from "./provider-options-Bcc_p-TU.mjs";
4
+ import { FunctionTool, ResponseCompactionItem, ResponseCreateParamsStreaming, ResponseInput, ResponseInputItem } from "openai/resources/responses/responses.js";
5
+ //#region packages/ai/src/transports/openai-responses-compaction-window.d.ts
6
+ type OpenAIResponsesCompactionOutput = Array<ResponseInputItem.Message | ReplayableResponseCompactionItem>;
7
+ /** Read the saved canonical window only when it still matches its opaque checkpoint. */
8
+ declare function readOpenAIResponsesCompactionWindow(replay: {
9
+ data: string;
10
+ id?: string;
11
+ compactedWindow?: unknown;
12
+ }, model?: Model): OpenAIResponsesCompactionOutput | undefined;
13
+ //#endregion
5
14
  //#region packages/ai/src/transports/openai-responses-contracts.d.ts
6
15
  declare const OPENAI_RESPONSES_APIS: ReadonlySet<Api>;
7
16
  type ReplayableResponseCompactionItem = Omit<ResponseCompactionItem, "id"> & {
@@ -46,6 +55,9 @@ type OpenAIResponsesRequestParams = {
46
55
  instructions?: string;
47
56
  prompt_cache_key?: string;
48
57
  prompt_cache_retention?: "24h";
58
+ prompt_cache_options?: {
59
+ ttl: "30m";
60
+ };
49
61
  metadata?: Record<string, string>;
50
62
  previous_response_id?: string;
51
63
  store?: boolean;
@@ -54,7 +66,12 @@ type OpenAIResponsesRequestParams = {
54
66
  top_p?: number;
55
67
  text?: ResponseCreateParamsStreaming["text"];
56
68
  service_tier?: ResponseCreateParamsStreaming["service_tier"];
57
- tools?: FunctionTool[];
69
+ tools?: Array<FunctionTool & {
70
+ async?: boolean;
71
+ }>;
72
+ multi_agent?: {
73
+ enabled?: boolean;
74
+ };
58
75
  tool_choice?: ResponseCreateParamsStreaming["tool_choice"];
59
76
  reasoning?: {
60
77
  effort: OpenAIApiReasoningEffort;
@@ -65,4 +82,4 @@ type OpenAIResponsesRequestParams = {
65
82
  include?: string[];
66
83
  };
67
84
  //#endregion
68
- export { ReplayableResponseCompactionItem as a, OpenAIResponsesRequestParams as i, OpenAIResponsesOptions as n, ResponsesPromptObservation as o, OpenAIResponsesReasoningReplayMetadata as r, responsesPromptObserver as s, OPENAI_RESPONSES_APIS as t };
85
+ export { ReplayableResponseCompactionItem as a, OpenAIResponsesCompactionOutput as c, OpenAIResponsesRequestParams as i, readOpenAIResponsesCompactionWindow as l, OpenAIResponsesOptions as n, ResponsesPromptObservation as o, OpenAIResponsesReasoningReplayMetadata as r, responsesPromptObserver as s, OPENAI_RESPONSES_APIS as t };
@@ -23,6 +23,7 @@ type OpenAIResponsesPayloadPolicy = {
23
23
  shouldStripPromptCache: boolean;
24
24
  shouldStripStore: boolean;
25
25
  useServerCompaction: boolean;
26
+ usesInstructionsField: boolean;
26
27
  };
27
28
  /** Resolve the server-compaction gate and effective threshold for a Responses route. */
28
29
  declare function resolveOpenAIResponsesServerCompactionPlan(model: OpenAIResponsesPayloadModel, extraParams?: Record<string, unknown>): {
@@ -1,20 +1,6 @@
1
- import { l as stripSystemPromptCacheBoundary } from "./simple-options-CFj7x3J4.mjs";
2
- import { g as sanitizeTransportPayloadText } from "./transport-stream-shared-ljShVIZB.mjs";
3
- import { m as responsesPromptObserver } from "./openai-responses-contracts-QUY12X0B.mjs";
4
- //#region packages/normalization-core/src/error-coercion.ts
5
- /**
6
- * Normalizes an unknown thrown value into an Error. Non-Error objects become
7
- * the `cause` and have their enumerable fields copied so structured details
8
- * (codes, statuses) survive the coercion.
9
- */
10
- function toErrorObject(value, fallbackMessage) {
11
- if (value instanceof Error) return value;
12
- if (typeof value === "string") return new Error(value);
13
- const error = new Error(fallbackMessage, { cause: value });
14
- if (typeof value === "object" && value !== null || typeof value === "function") Object.assign(error, value);
15
- return error;
16
- }
17
- //#endregion
1
+ import { d as stripSystemPromptCacheBoundary } from "./simple-options-BjHCCh4v.mjs";
2
+ import { g as sanitizeTransportPayloadText } from "./transport-stream-shared-CZqMhfIw.mjs";
3
+ import { S as responsesPromptObserver } from "./openai-responses-compaction-window-BMVHFOtq.mjs";
18
4
  //#region packages/ai/src/transports/openai-responses-prompt-observer-internal.ts
19
5
  function readFinalResponsesPrompt(request) {
20
6
  if (typeof request.instructions === "string") return ["instructions", request.instructions];
@@ -43,4 +29,4 @@ function createResponsesPromptEgressObserver(options, assembledPrompt) {
43
29
  };
44
30
  }
45
31
  //#endregion
46
- export { toErrorObject as n, createResponsesPromptEgressObserver as t };
32
+ export { createResponsesPromptEgressObserver as t };