@openclaw/ai 2026.10.3 → 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-Cq3Igfi3.mjs → openai-chatgpt-responses-vk4XdUjX.mjs} +3 -5
- package/dist/{openai-completions-BxQw4S-A.mjs → openai-completions-XvUwdvJc.mjs} +1 -1
- package/dist/{openai-completions-transport-D_ZhLzh_.mjs → openai-completions-transport-QYABn8Uz.mjs} +1170 -13
- 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
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { o as isRecord } from "./record-coerce-CNDovvft.mjs";
|
|
2
|
-
//#region packages/ai/src/transports/openai-responses-request-lifecycle.ts
|
|
3
|
-
const lifecycleKey = Symbol("openclaw.responsesRequestLifecycle");
|
|
4
|
-
/** Private transport carrier: serialized options cannot mint host authority. */
|
|
5
|
-
const responsesRequestLifecycle = {
|
|
6
|
-
set(options, lifecycle) {
|
|
7
|
-
Object.defineProperty(options, lifecycleKey, {
|
|
8
|
-
value: lifecycle,
|
|
9
|
-
enumerable: true
|
|
10
|
-
});
|
|
11
|
-
},
|
|
12
|
-
get(options) {
|
|
13
|
-
if (!options) return;
|
|
14
|
-
return Reflect.get(options, lifecycleKey);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
/** A transport receipt must settle before model output can authorize later work. */
|
|
18
|
-
function withResponsesRequestAcceptance(events, lifecycle, signal) {
|
|
19
|
-
if (!lifecycle) return events;
|
|
20
|
-
return { async *[Symbol.asyncIterator]() {
|
|
21
|
-
for await (const event of events) {
|
|
22
|
-
if (isRecord(event) && event.type === "response.created") {
|
|
23
|
-
const response = isRecord(event.response) ? event.response : void 0;
|
|
24
|
-
if (typeof response?.id !== "string" || !response.id.trim()) throw new Error("Provider continuation response has no identity");
|
|
25
|
-
signal?.throwIfAborted();
|
|
26
|
-
lifecycle.assertCurrent();
|
|
27
|
-
await lifecycle.accepted(response.id, signal);
|
|
28
|
-
signal?.throwIfAborted();
|
|
29
|
-
lifecycle.assertCurrent();
|
|
30
|
-
}
|
|
31
|
-
yield event;
|
|
32
|
-
}
|
|
33
|
-
} };
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { withResponsesRequestAcceptance as n, responsesRequestLifecycle as t };
|