@omnicross/core 0.1.9 → 0.1.10

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 (39) hide show
  1. package/dist/{chunk-EPN67EGP.cjs → chunk-5UK3KLE2.cjs} +9 -1
  2. package/dist/chunk-6D4W22P4.js +150 -0
  3. package/dist/{chunk-UAPBLNN2.js → chunk-AQDON6MB.js} +8 -0
  4. package/dist/{chunk-CQIJCPMF.js → chunk-FEBAQI5A.js} +78 -15
  5. package/dist/{chunk-7C7DET6S.js → chunk-GXEZ2R3E.js} +156 -1
  6. package/dist/chunk-QUSEZNYS.cjs +150 -0
  7. package/dist/{chunk-XELFM7KL.cjs → chunk-TIT74RIL.cjs} +235 -172
  8. package/dist/{chunk-XPIOJQS2.cjs → chunk-UWDW6PN3.cjs} +159 -4
  9. package/dist/completion/CompletionService.cjs +5 -5
  10. package/dist/completion/CompletionService.js +4 -4
  11. package/dist/completion.cjs +5 -5
  12. package/dist/completion.js +4 -4
  13. package/dist/index.cjs +5 -5
  14. package/dist/index.js +4 -4
  15. package/dist/outbound-api/auditCapture.cjs +2 -2
  16. package/dist/outbound-api/auditCapture.d.cts +6 -0
  17. package/dist/outbound-api/auditCapture.d.ts +6 -0
  18. package/dist/outbound-api/auditCapture.js +1 -1
  19. package/dist/outbound-api.cjs +5 -5
  20. package/dist/outbound-api.d.cts +2 -1
  21. package/dist/outbound-api.d.ts +2 -1
  22. package/dist/outbound-api.js +4 -4
  23. package/dist/provider-proxy/ProviderProxy.cjs +5 -5
  24. package/dist/provider-proxy/ProviderProxy.js +4 -4
  25. package/dist/provider-proxy/ingress/providerProxyShared.cjs +5 -5
  26. package/dist/provider-proxy/ingress/providerProxyShared.js +4 -4
  27. package/dist/provider-proxy.cjs +5 -5
  28. package/dist/provider-proxy.js +4 -4
  29. package/dist/usage/usage-recorder.cjs +2 -2
  30. package/dist/usage/usage-recorder.d.cts +12 -2
  31. package/dist/usage/usage-recorder.d.ts +12 -2
  32. package/dist/usage/usage-recorder.js +1 -1
  33. package/dist/usage.cjs +20 -3
  34. package/dist/usage.d.cts +149 -0
  35. package/dist/usage.d.ts +149 -0
  36. package/dist/usage.js +20 -3
  37. package/package.json +2 -2
  38. package/dist/chunk-7VU7V2E4.js +0 -0
  39. package/dist/chunk-EYZYXJTJ.cjs +0 -1
@@ -11,6 +11,156 @@ var _chunkXSVNC2UDcjs = require('./chunk-XSVNC2UD.cjs');
11
11
 
12
12
  // src/outbound-api/auditCapture.ts
13
13
  var _crypto = require('crypto');
14
+
15
+ // src/outbound-api/auditSseCompact.ts
16
+ var MERGED_FRAMES_FIELD = "_omnicrossMergedFrames";
17
+ function asObject(value) {
18
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
19
+ }
20
+ function scalar(value) {
21
+ return typeof value === "string" || typeof value === "number" ? String(value) : "";
22
+ }
23
+ function classify(payload) {
24
+ const type = scalar(payload["type"]);
25
+ if (type === "content_block_delta") {
26
+ const delta = asObject(payload["delta"]);
27
+ const deltaType = scalar(_optionalChain([delta, 'optionalAccess', _ => _["type"]]));
28
+ const field = deltaType === "text_delta" ? "text" : deltaType === "thinking_delta" ? "thinking" : deltaType === "input_json_delta" ? "partial_json" : null;
29
+ if (!delta || !field || typeof delta[field] !== "string") return null;
30
+ return {
31
+ channel: "anthropic:" + scalar(payload["index"]) + ":" + deltaType,
32
+ text: delta[field],
33
+ payload,
34
+ textPath: ["delta", field]
35
+ };
36
+ }
37
+ if (type.endsWith(".delta") && typeof payload["delta"] === "string") {
38
+ const channel = [
39
+ "responses",
40
+ type,
41
+ scalar(payload["item_id"]),
42
+ scalar(payload["output_index"]),
43
+ scalar(payload["content_index"])
44
+ ].join(":");
45
+ return { channel, text: payload["delta"], payload, textPath: ["delta"] };
46
+ }
47
+ const choices = payload["choices"];
48
+ if (Array.isArray(choices) && choices.length === 1) {
49
+ const choice = asObject(choices[0]);
50
+ const delta = asObject(_optionalChain([choice, 'optionalAccess', _2 => _2["delta"]]));
51
+ if (choice && delta && typeof delta["content"] === "string" && choice["finish_reason"] == null && delta["tool_calls"] === void 0 && delta["function_call"] === void 0) {
52
+ return {
53
+ channel: "chat:" + scalar(choice["index"]),
54
+ text: delta["content"],
55
+ payload,
56
+ textPath: ["choices", "0", "delta", "content"]
57
+ };
58
+ }
59
+ }
60
+ return null;
61
+ }
62
+ function withMergedText(frame, text, mergedCount) {
63
+ const clone = JSON.parse(JSON.stringify(frame.payload));
64
+ let cursor = clone;
65
+ for (let i = 0; i < frame.textPath.length - 1; i += 1) {
66
+ const step = frame.textPath[i];
67
+ const next = Array.isArray(cursor) ? cursor[Number(step)] : cursor[step];
68
+ if (next === null || typeof next !== "object") return clone;
69
+ cursor = next;
70
+ }
71
+ const leaf = frame.textPath[frame.textPath.length - 1];
72
+ if (Array.isArray(cursor)) cursor[Number(leaf)] = text;
73
+ else cursor[leaf] = text;
74
+ clone[MERGED_FRAMES_FIELD] = mergedCount;
75
+ return clone;
76
+ }
77
+ function splitBlocks(text, nl) {
78
+ const blocks = [];
79
+ let head = [];
80
+ let data = null;
81
+ let raw = [];
82
+ const flush = () => {
83
+ if (raw.length === 0) return;
84
+ blocks.push({ head, data, raw: raw.join(nl) });
85
+ head = [];
86
+ data = null;
87
+ raw = [];
88
+ };
89
+ for (const line of text.split(nl)) {
90
+ if (line.trim() === "") {
91
+ flush();
92
+ continue;
93
+ }
94
+ raw.push(line);
95
+ if (line.startsWith("data:")) {
96
+ const payload = line.slice("data:".length).trimStart();
97
+ data = data === null ? payload : data + nl + payload;
98
+ } else {
99
+ head.push(line);
100
+ }
101
+ }
102
+ flush();
103
+ return blocks;
104
+ }
105
+ function compactSseBody(text) {
106
+ if (!text || !text.includes("data:")) return text;
107
+ const nl = "\n";
108
+ const blocks = splitBlocks(text, nl);
109
+ if (blocks.length === 0) return text;
110
+ const out = [];
111
+ let runFrame = null;
112
+ let runBlock = null;
113
+ let runText = "";
114
+ let runCount = 0;
115
+ let merged = 0;
116
+ const flushRun = () => {
117
+ if (runFrame === null || runBlock === null) return;
118
+ if (runCount === 1) {
119
+ out.push(runBlock.raw);
120
+ } else {
121
+ const payload = withMergedText(runFrame, runText, runCount);
122
+ out.push([...runBlock.head, "data: " + JSON.stringify(payload)].join(nl));
123
+ merged += runCount;
124
+ }
125
+ runFrame = null;
126
+ runBlock = null;
127
+ runText = "";
128
+ runCount = 0;
129
+ };
130
+ for (const block of blocks) {
131
+ let frame = null;
132
+ if (block.data !== null && block.data !== "[DONE]") {
133
+ try {
134
+ const parsed = asObject(JSON.parse(block.data));
135
+ if (parsed) frame = classify(parsed);
136
+ } catch (e) {
137
+ frame = null;
138
+ }
139
+ }
140
+ if (frame === null) {
141
+ flushRun();
142
+ out.push(block.raw);
143
+ continue;
144
+ }
145
+ const open = runFrame;
146
+ if (open !== null && open.channel === frame.channel) {
147
+ runText += frame.text;
148
+ runCount += 1;
149
+ continue;
150
+ }
151
+ flushRun();
152
+ runFrame = frame;
153
+ runBlock = block;
154
+ runText = frame.text;
155
+ runCount = 1;
156
+ }
157
+ flushRun();
158
+ if (merged === 0) return text;
159
+ const trailer = /\s$/.test(text) ? nl + nl : "";
160
+ return out.join(nl + nl) + trailer;
161
+ }
162
+
163
+ // src/outbound-api/auditCapture.ts
14
164
  function completeUtf8PrefixLength(buf) {
15
165
  if (buf.length === 0) return 0;
16
166
  let leadIndex = buf.length - 1;
@@ -39,11 +189,11 @@ function resolveClientIp(req, trustForwardedFor) {
39
189
  const xff = req.headers["x-forwarded-for"];
40
190
  const raw = Array.isArray(xff) ? xff[0] : xff;
41
191
  if (typeof raw === "string" && raw.trim()) {
42
- const first = _optionalChain([raw, 'access', _ => _.split, 'call', _2 => _2(","), 'access', _3 => _3[0], 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()]);
192
+ const first = _optionalChain([raw, 'access', _3 => _3.split, 'call', _4 => _4(","), 'access', _5 => _5[0], 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
43
193
  if (first) return first;
44
194
  }
45
195
  }
46
- return _nullishCoalesce(_optionalChain([req, 'access', _6 => _6.socket, 'optionalAccess', _7 => _7.remoteAddress]), () => ( void 0));
196
+ return _nullishCoalesce(_optionalChain([req, 'access', _8 => _8.socket, 'optionalAccess', _9 => _9.remoteAddress]), () => ( void 0));
47
197
  }
48
198
  function beginAuditCapture(req, res, now) {
49
199
  const config = _chunkAEOZIDEBcjs.getAuditCaptureConfig.call(void 0, );
@@ -112,18 +262,23 @@ function beginAuditCapture(req, res, now) {
112
262
  if (!record.provider && usage.provider) record.provider = usage.provider;
113
263
  }
114
264
  if (ctx.error) record.error = _chunkFCR77GYMcjs.redactAuditText.call(void 0, ctx.error);
265
+ if (ctx.sessionKey) record.sessionKey = ctx.sessionKey;
115
266
  if (config.captureBodies) {
116
267
  if (requestBody != null && requestBody.length > 0) {
117
268
  record.requestBody = requestBody;
118
269
  }
119
270
  if (responseChunks.length > 0) {
120
271
  const captured = Buffer.concat(responseChunks, responseBytes);
121
- const body = decodeCapturedBody(captured, responseTruncated);
272
+ const decoded = decodeCapturedBody(captured, responseTruncated);
273
+ const body = config.compactStreamingBodies ? compactSseBody(decoded) : decoded;
122
274
  record.responseBody = truncateToBytes(_chunkFCR77GYMcjs.redactAuditText.call(void 0, body), config.maxBodyBytes);
123
275
  }
276
+ if (record.requestBody !== void 0 || record.responseBody !== void 0) {
277
+ record.hasBody = true;
278
+ }
124
279
  }
125
280
  _chunkAEOZIDEBcjs.recordAudit.call(void 0, record);
126
- } catch (e) {
281
+ } catch (e2) {
127
282
  }
128
283
  };
129
284
  res.once("close", finalize);
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXELFM7KLcjs = require('../chunk-XELFM7KL.cjs');
3
+ var _chunkTIT74RILcjs = require('../chunk-TIT74RIL.cjs');
4
4
  require('../chunk-HQP3K7PU.cjs');
5
5
  require('../chunk-QVOB2DNX.cjs');
6
6
  require('../chunk-P7EM6BND.cjs');
@@ -9,9 +9,9 @@ require('../chunk-5LNYGCIW.cjs');
9
9
  require('../chunk-CMVXX7ON.cjs');
10
10
  require('../chunk-5RSZYQJH.cjs');
11
11
  require('../chunk-56QD3YW6.cjs');
12
- require('../chunk-EYZYXJTJ.cjs');
12
+ require('../chunk-QUSEZNYS.cjs');
13
13
  require('../chunk-2E42SAW3.cjs');
14
- require('../chunk-EPN67EGP.cjs');
14
+ require('../chunk-5UK3KLE2.cjs');
15
15
  require('../chunk-IIRPUVPH.cjs');
16
16
  require('../chunk-GBHYAGX3.cjs');
17
17
  require('../chunk-3OPYJG76.cjs');
@@ -38,7 +38,7 @@ require('../chunk-4VZX5F4T.cjs');
38
38
  require('../chunk-QBZJ7P2T.cjs');
39
39
  require('../chunk-4IH4EL7M.cjs');
40
40
  require('../chunk-A2YMUCBT.cjs');
41
- require('../chunk-XPIOJQS2.cjs');
41
+ require('../chunk-UWDW6PN3.cjs');
42
42
  require('../chunk-FCR77GYM.cjs');
43
43
  require('../chunk-AEOZIDEB.cjs');
44
44
  require('../chunk-XSVNC2UD.cjs');
@@ -57,4 +57,4 @@ require('../chunk-GMMT7RVN.cjs');
57
57
  require('../chunk-UNEFIWXI.cjs');
58
58
 
59
59
 
60
- exports.CompletionService = _chunkXELFM7KLcjs.CompletionService;
60
+ exports.CompletionService = _chunkTIT74RILcjs.CompletionService;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompletionService
3
- } from "../chunk-CQIJCPMF.js";
3
+ } from "../chunk-FEBAQI5A.js";
4
4
  import "../chunk-VVEHS2LI.js";
5
5
  import "../chunk-WTQMX2Q6.js";
6
6
  import "../chunk-NGYOO5TO.js";
@@ -9,9 +9,9 @@ import "../chunk-55FMGZ3L.js";
9
9
  import "../chunk-45FHEOKW.js";
10
10
  import "../chunk-FU7EAR73.js";
11
11
  import "../chunk-CCVRRJOX.js";
12
- import "../chunk-7VU7V2E4.js";
12
+ import "../chunk-6D4W22P4.js";
13
13
  import "../chunk-FXR6N3SR.js";
14
- import "../chunk-UAPBLNN2.js";
14
+ import "../chunk-AQDON6MB.js";
15
15
  import "../chunk-WNKWAEUR.js";
16
16
  import "../chunk-MZNPGW5Q.js";
17
17
  import "../chunk-DK4A7DLE.js";
@@ -38,7 +38,7 @@ import "../chunk-EBLFCNPY.js";
38
38
  import "../chunk-AQ5TNQB7.js";
39
39
  import "../chunk-XEKD23J5.js";
40
40
  import "../chunk-H5JUT3KV.js";
41
- import "../chunk-7C7DET6S.js";
41
+ import "../chunk-GXEZ2R3E.js";
42
42
  import "../chunk-K5NM7VAH.js";
43
43
  import "../chunk-WNY4WMRF.js";
44
44
  import "../chunk-OZFM4X3S.js";
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkXELFM7KLcjs = require('./chunk-XELFM7KL.cjs');
12
+ var _chunkTIT74RILcjs = require('./chunk-TIT74RIL.cjs');
13
13
  require('./chunk-HQP3K7PU.cjs');
14
14
  require('./chunk-QVOB2DNX.cjs');
15
15
  require('./chunk-P7EM6BND.cjs');
@@ -18,9 +18,9 @@ require('./chunk-5LNYGCIW.cjs');
18
18
  require('./chunk-CMVXX7ON.cjs');
19
19
  require('./chunk-5RSZYQJH.cjs');
20
20
  require('./chunk-56QD3YW6.cjs');
21
- require('./chunk-EYZYXJTJ.cjs');
21
+ require('./chunk-QUSEZNYS.cjs');
22
22
  require('./chunk-2E42SAW3.cjs');
23
- require('./chunk-EPN67EGP.cjs');
23
+ require('./chunk-5UK3KLE2.cjs');
24
24
  require('./chunk-IIRPUVPH.cjs');
25
25
  require('./chunk-GBHYAGX3.cjs');
26
26
  require('./chunk-3OPYJG76.cjs');
@@ -59,7 +59,7 @@ require('./chunk-4IH4EL7M.cjs');
59
59
 
60
60
 
61
61
  var _chunkA2YMUCBTcjs = require('./chunk-A2YMUCBT.cjs');
62
- require('./chunk-XPIOJQS2.cjs');
62
+ require('./chunk-UWDW6PN3.cjs');
63
63
  require('./chunk-FCR77GYM.cjs');
64
64
  require('./chunk-AEOZIDEB.cjs');
65
65
  require('./chunk-XSVNC2UD.cjs');
@@ -112,4 +112,4 @@ require('./chunk-UNEFIWXI.cjs');
112
112
 
113
113
 
114
114
 
115
- exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkXELFM7KLcjs.CompletionService; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.addOpenRouterProviderToRequest = _chunkXELFM7KLcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkXELFM7KLcjs.attach; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.convertMessageToAnthropic = _chunkXELFM7KLcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkXELFM7KLcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkXELFM7KLcjs.convertMessageToOpenAI; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.emitStreamEvent = _chunkXELFM7KLcjs.emit; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterProviderConfig = _chunkXELFM7KLcjs.getOpenRouterProviderConfig; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.registerStreamEventBuffer = _chunkXELFM7KLcjs.register; exports.releaseStreamEventBuffer = _chunkXELFM7KLcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint;
115
+ exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkTIT74RILcjs.CompletionService; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.addOpenRouterProviderToRequest = _chunkTIT74RILcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkTIT74RILcjs.attach; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.convertMessageToAnthropic = _chunkTIT74RILcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkTIT74RILcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkTIT74RILcjs.convertMessageToOpenAI; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.emitStreamEvent = _chunkTIT74RILcjs.emit; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterProviderConfig = _chunkTIT74RILcjs.getOpenRouterProviderConfig; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.registerStreamEventBuffer = _chunkTIT74RILcjs.register; exports.releaseStreamEventBuffer = _chunkTIT74RILcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint;
@@ -9,7 +9,7 @@ import {
9
9
  getOpenRouterProviderConfig,
10
10
  register,
11
11
  release
12
- } from "./chunk-CQIJCPMF.js";
12
+ } from "./chunk-FEBAQI5A.js";
13
13
  import "./chunk-VVEHS2LI.js";
14
14
  import "./chunk-WTQMX2Q6.js";
15
15
  import "./chunk-NGYOO5TO.js";
@@ -18,9 +18,9 @@ import "./chunk-55FMGZ3L.js";
18
18
  import "./chunk-45FHEOKW.js";
19
19
  import "./chunk-FU7EAR73.js";
20
20
  import "./chunk-CCVRRJOX.js";
21
- import "./chunk-7VU7V2E4.js";
21
+ import "./chunk-6D4W22P4.js";
22
22
  import "./chunk-FXR6N3SR.js";
23
- import "./chunk-UAPBLNN2.js";
23
+ import "./chunk-AQDON6MB.js";
24
24
  import "./chunk-WNKWAEUR.js";
25
25
  import "./chunk-MZNPGW5Q.js";
26
26
  import "./chunk-DK4A7DLE.js";
@@ -59,7 +59,7 @@ import {
59
59
  resolveApiFormat,
60
60
  resolveProviderEndpoint
61
61
  } from "./chunk-H5JUT3KV.js";
62
- import "./chunk-7C7DET6S.js";
62
+ import "./chunk-GXEZ2R3E.js";
63
63
  import "./chunk-K5NM7VAH.js";
64
64
  import "./chunk-WNY4WMRF.js";
65
65
  import "./chunk-OZFM4X3S.js";
package/dist/index.cjs CHANGED
@@ -107,7 +107,7 @@
107
107
 
108
108
 
109
109
 
110
- var _chunkXELFM7KLcjs = require('./chunk-XELFM7KL.cjs');
110
+ var _chunkTIT74RILcjs = require('./chunk-TIT74RIL.cjs');
111
111
 
112
112
 
113
113
 
@@ -121,13 +121,13 @@ require('./chunk-5LNYGCIW.cjs');
121
121
  require('./chunk-CMVXX7ON.cjs');
122
122
  require('./chunk-5RSZYQJH.cjs');
123
123
  require('./chunk-56QD3YW6.cjs');
124
- require('./chunk-EYZYXJTJ.cjs');
124
+ require('./chunk-QUSEZNYS.cjs');
125
125
 
126
126
 
127
127
  var _chunk2E42SAW3cjs = require('./chunk-2E42SAW3.cjs');
128
128
 
129
129
 
130
- var _chunkEPN67EGPcjs = require('./chunk-EPN67EGP.cjs');
130
+ var _chunk5UK3KLE2cjs = require('./chunk-5UK3KLE2.cjs');
131
131
 
132
132
 
133
133
  var _chunkIIRPUVPHcjs = require('./chunk-IIRPUVPH.cjs');
@@ -197,7 +197,7 @@ var _chunk4IH4EL7Mcjs = require('./chunk-4IH4EL7M.cjs');
197
197
  var _chunkA2YMUCBTcjs = require('./chunk-A2YMUCBT.cjs');
198
198
 
199
199
 
200
- var _chunkXPIOJQS2cjs = require('./chunk-XPIOJQS2.cjs');
200
+ var _chunkUWDW6PN3cjs = require('./chunk-UWDW6PN3.cjs');
201
201
 
202
202
 
203
203
 
@@ -411,4 +411,4 @@ var _chunkUNEFIWXIcjs = require('./chunk-UNEFIWXI.cjs');
411
411
 
412
412
 
413
413
 
414
- exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkXELFM7KLcjs.CompletionService; exports.ConcurrencyQueueFullError = _chunkXELFM7KLcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkXELFM7KLcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkXELFM7KLcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkXELFM7KLcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkXELFM7KLcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkXELFM7KLcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkXELFM7KLcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkXELFM7KLcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_ROUTE_IDLE_MS = _chunkXELFM7KLcjs.DEFAULT_ROUTE_IDLE_MS; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkXELFM7KLcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkXELFM7KLcjs.KeySpendTracker; exports.KeyedMutex = _chunkXELFM7KLcjs.KeyedMutex; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.OPENROUTER_APP_HEADERS = _chunkUNEFIWXIcjs.OPENROUTER_APP_HEADERS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkXELFM7KLcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkXELFM7KLcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkXELFM7KLcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkXELFM7KLcjs.OutboundRateLimiter; exports.PricingEngine = _chunk2E42SAW3cjs.PricingEngine; exports.ProviderProxy = _chunkXELFM7KLcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkXELFM7KLcjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkXELFM7KLcjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkXELFM7KLcjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkXELFM7KLcjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkXELFM7KLcjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkXELFM7KLcjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkXELFM7KLcjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkXELFM7KLcjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkXELFM7KLcjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkXELFM7KLcjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkXELFM7KLcjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkXELFM7KLcjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.RouteLeaseError = _chunkXELFM7KLcjs.RouteLeaseError; exports.RouteLeaseManager = _chunkXELFM7KLcjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkXELFM7KLcjs.RouteLeaseTargetResolver; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkXELFM7KLcjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.SerialQueueTimeoutError = _chunkXELFM7KLcjs.SerialQueueTimeoutError; exports.TransformerChainExecutor = _chunkIIRPUVPHcjs.TransformerChainExecutor; exports.TransformerService = _chunk3OPYJG76cjs.TransformerService; exports.UsageRecorder = _chunkEPN67EGPcjs.UsageRecorder; exports.UserMessageSerialQueue = _chunkXELFM7KLcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkXELFM7KLcjs.__resetOutboundApiServerForTests; exports.__resetProviderProxyForTests = _chunkXELFM7KLcjs.__resetProviderProxyForTests; exports.addOpenRouterProviderToRequest = _chunkXELFM7KLcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkXELFM7KLcjs.attach; exports.beginAuditCapture = _chunkXPIOJQS2cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.candidateBackgroundModelIds = _chunkXELFM7KLcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkXELFM7KLcjs.candidateGatewayBindings; exports.canonicalizeRouteLeasePayload = _chunkXELFM7KLcjs.canonicalizeRouteLeasePayload; exports.checkKeyQuota = _chunkXELFM7KLcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkXELFM7KLcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkXELFM7KLcjs.computeVoucherGrant; exports.convertAnthropicRequestToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicRequestToOpenAI; exports.convertAnthropicStreamToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicStreamToOpenAI; exports.convertAnthropicToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicToOpenAI; exports.convertAnthropicToOpenAIWithThinking = _chunkGDIXXKF2cjs.convertAnthropicToOpenAIWithThinking; exports.convertMessageToAnthropic = _chunkXELFM7KLcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkXELFM7KLcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkXELFM7KLcjs.convertMessageToOpenAI; exports.convertOpenAIResponseToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIResponseToAnthropic; exports.convertOpenAIStreamToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIStreamToAnthropic; exports.convertOpenAIToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIToAnthropic; exports.convertOpenAIToAnthropicWithThinking = _chunkGDIXXKF2cjs.convertOpenAIToAnthropicWithThinking; exports.createIntegrationKey = _chunkXELFM7KLcjs.createIntegrationKey; exports.createNamedKey = _chunkXELFM7KLcjs.createNamedKey; exports.createSSEParser = _chunkHQP3K7PUcjs.createSSEParser; exports.defaultServerConfig = _chunkXELFM7KLcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.emitStreamEvent = _chunkXELFM7KLcjs.emit; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.extractRouteToken = _chunkXELFM7KLcjs.extractRouteToken; exports.formatUrls = _chunkXELFM7KLcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkXELFM7KLcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkXELFM7KLcjs.generateVoucherCode; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterAppIdentity = _chunkUNEFIWXIcjs.getOpenRouterAppIdentity; exports.getOpenRouterProviderConfig = _chunkXELFM7KLcjs.getOpenRouterProviderConfig; exports.getOutboundApiServer = _chunkXELFM7KLcjs.getOutboundApiServer; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.getProviderProxy = _chunkXELFM7KLcjs.getProviderProxy; exports.handleVoucherRedeem = _chunkXELFM7KLcjs.handleVoucherRedeem; exports.hasImageContent = _chunkGDIXXKF2cjs.hasImageContent; exports.hasThinkingEnabled = _chunkGDIXXKF2cjs.hasThinkingEnabled; exports.hashKey = _chunkXELFM7KLcjs.hashKey; exports.hashRouteLeasePayload = _chunkXELFM7KLcjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkXELFM7KLcjs.hashRouteLeaseSessionId; exports.hashVoucherCode = _chunkXELFM7KLcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunkXELFM7KLcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isLoopbackAddress = _chunkXELFM7KLcjs.isLoopbackAddress; exports.isOpenRouterProvider = _chunkUNEFIWXIcjs.isOpenRouterProvider; exports.isRedeemRequest = _chunkXELFM7KLcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkXELFM7KLcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkXELFM7KLcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkXELFM7KLcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkXELFM7KLcjs.loadServerConfig; exports.mergeServerConfig = _chunkXELFM7KLcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkXELFM7KLcjs.newVoucherId; exports.normalizeAccountProbe = _chunkXELFM7KLcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkXELFM7KLcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkXELFM7KLcjs.normalizeAudit; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.normalizeBilling = _chunkXELFM7KLcjs.normalizeBilling; exports.normalizeFingerprint = _chunkXELFM7KLcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkXELFM7KLcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunkXELFM7KLcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkXELFM7KLcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkXELFM7KLcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkXELFM7KLcjs.normalizeQueueSegments; exports.normalizeRouteLeaseIdempotencyKey = _chunkXELFM7KLcjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkXELFM7KLcjs.normalizeRouteLeaseTtl; exports.normalizeServerConfig = _chunkXELFM7KLcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkXELFM7KLcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkXELFM7KLcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkXELFM7KLcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.parseRouteLeaseCreate = _chunkXELFM7KLcjs.parseRouteLeaseCreate; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunkXELFM7KLcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.registerBuiltinTransformers = _chunkP7EM6BNDcjs.registerBuiltinTransformers; exports.registerStreamEventBuffer = _chunkXELFM7KLcjs.register; exports.releaseStreamEventBuffer = _chunkXELFM7KLcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolveGatewayBinding = _chunkXELFM7KLcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.routeLeaseRuntime = _chunkXELFM7KLcjs.routeLeaseRuntime; exports.saveServerConfig = _chunkXELFM7KLcjs.saveServerConfig; exports.serializeError = _chunkSVNDB62Dcjs.serializeError; exports.setOpenRouterAppIdentity = _chunkUNEFIWXIcjs.setOpenRouterAppIdentity; exports.startOfLocalDay = _chunkXELFM7KLcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkXELFM7KLcjs.startOfLocalWeek; exports.streamSSEResponse = _chunkHQP3K7PUcjs.streamSSEResponse; exports.toVoucherInfo = _chunkXELFM7KLcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunkXELFM7KLcjs.verifyKey; exports.verifyPresentedKey = _chunkXELFM7KLcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkXELFM7KLcjs.voucherCodePrefix;
414
+ exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkTIT74RILcjs.CompletionService; exports.ConcurrencyQueueFullError = _chunkTIT74RILcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkTIT74RILcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkTIT74RILcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkTIT74RILcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkTIT74RILcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkTIT74RILcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkTIT74RILcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkTIT74RILcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_ROUTE_IDLE_MS = _chunkTIT74RILcjs.DEFAULT_ROUTE_IDLE_MS; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkTIT74RILcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkTIT74RILcjs.KeySpendTracker; exports.KeyedMutex = _chunkTIT74RILcjs.KeyedMutex; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.OPENROUTER_APP_HEADERS = _chunkUNEFIWXIcjs.OPENROUTER_APP_HEADERS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkTIT74RILcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkTIT74RILcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkTIT74RILcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkTIT74RILcjs.OutboundRateLimiter; exports.PricingEngine = _chunk2E42SAW3cjs.PricingEngine; exports.ProviderProxy = _chunkTIT74RILcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkTIT74RILcjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkTIT74RILcjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkTIT74RILcjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkTIT74RILcjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkTIT74RILcjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkTIT74RILcjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkTIT74RILcjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkTIT74RILcjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkTIT74RILcjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkTIT74RILcjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkTIT74RILcjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkTIT74RILcjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.RouteLeaseError = _chunkTIT74RILcjs.RouteLeaseError; exports.RouteLeaseManager = _chunkTIT74RILcjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkTIT74RILcjs.RouteLeaseTargetResolver; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkTIT74RILcjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.SerialQueueTimeoutError = _chunkTIT74RILcjs.SerialQueueTimeoutError; exports.TransformerChainExecutor = _chunkIIRPUVPHcjs.TransformerChainExecutor; exports.TransformerService = _chunk3OPYJG76cjs.TransformerService; exports.UsageRecorder = _chunk5UK3KLE2cjs.UsageRecorder; exports.UserMessageSerialQueue = _chunkTIT74RILcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkTIT74RILcjs.__resetOutboundApiServerForTests; exports.__resetProviderProxyForTests = _chunkTIT74RILcjs.__resetProviderProxyForTests; exports.addOpenRouterProviderToRequest = _chunkTIT74RILcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkTIT74RILcjs.attach; exports.beginAuditCapture = _chunkUWDW6PN3cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.candidateBackgroundModelIds = _chunkTIT74RILcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkTIT74RILcjs.candidateGatewayBindings; exports.canonicalizeRouteLeasePayload = _chunkTIT74RILcjs.canonicalizeRouteLeasePayload; exports.checkKeyQuota = _chunkTIT74RILcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkTIT74RILcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkTIT74RILcjs.computeVoucherGrant; exports.convertAnthropicRequestToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicRequestToOpenAI; exports.convertAnthropicStreamToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicStreamToOpenAI; exports.convertAnthropicToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicToOpenAI; exports.convertAnthropicToOpenAIWithThinking = _chunkGDIXXKF2cjs.convertAnthropicToOpenAIWithThinking; exports.convertMessageToAnthropic = _chunkTIT74RILcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkTIT74RILcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkTIT74RILcjs.convertMessageToOpenAI; exports.convertOpenAIResponseToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIResponseToAnthropic; exports.convertOpenAIStreamToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIStreamToAnthropic; exports.convertOpenAIToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIToAnthropic; exports.convertOpenAIToAnthropicWithThinking = _chunkGDIXXKF2cjs.convertOpenAIToAnthropicWithThinking; exports.createIntegrationKey = _chunkTIT74RILcjs.createIntegrationKey; exports.createNamedKey = _chunkTIT74RILcjs.createNamedKey; exports.createSSEParser = _chunkHQP3K7PUcjs.createSSEParser; exports.defaultServerConfig = _chunkTIT74RILcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.emitStreamEvent = _chunkTIT74RILcjs.emit; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.extractRouteToken = _chunkTIT74RILcjs.extractRouteToken; exports.formatUrls = _chunkTIT74RILcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkTIT74RILcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkTIT74RILcjs.generateVoucherCode; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterAppIdentity = _chunkUNEFIWXIcjs.getOpenRouterAppIdentity; exports.getOpenRouterProviderConfig = _chunkTIT74RILcjs.getOpenRouterProviderConfig; exports.getOutboundApiServer = _chunkTIT74RILcjs.getOutboundApiServer; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.getProviderProxy = _chunkTIT74RILcjs.getProviderProxy; exports.handleVoucherRedeem = _chunkTIT74RILcjs.handleVoucherRedeem; exports.hasImageContent = _chunkGDIXXKF2cjs.hasImageContent; exports.hasThinkingEnabled = _chunkGDIXXKF2cjs.hasThinkingEnabled; exports.hashKey = _chunkTIT74RILcjs.hashKey; exports.hashRouteLeasePayload = _chunkTIT74RILcjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkTIT74RILcjs.hashRouteLeaseSessionId; exports.hashVoucherCode = _chunkTIT74RILcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunkTIT74RILcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isLoopbackAddress = _chunkTIT74RILcjs.isLoopbackAddress; exports.isOpenRouterProvider = _chunkUNEFIWXIcjs.isOpenRouterProvider; exports.isRedeemRequest = _chunkTIT74RILcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkTIT74RILcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkTIT74RILcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkTIT74RILcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkTIT74RILcjs.loadServerConfig; exports.mergeServerConfig = _chunkTIT74RILcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkTIT74RILcjs.newVoucherId; exports.normalizeAccountProbe = _chunkTIT74RILcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkTIT74RILcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkTIT74RILcjs.normalizeAudit; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.normalizeBilling = _chunkTIT74RILcjs.normalizeBilling; exports.normalizeFingerprint = _chunkTIT74RILcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkTIT74RILcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunkTIT74RILcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkTIT74RILcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkTIT74RILcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkTIT74RILcjs.normalizeQueueSegments; exports.normalizeRouteLeaseIdempotencyKey = _chunkTIT74RILcjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkTIT74RILcjs.normalizeRouteLeaseTtl; exports.normalizeServerConfig = _chunkTIT74RILcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkTIT74RILcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkTIT74RILcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkTIT74RILcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.parseRouteLeaseCreate = _chunkTIT74RILcjs.parseRouteLeaseCreate; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunkTIT74RILcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.registerBuiltinTransformers = _chunkP7EM6BNDcjs.registerBuiltinTransformers; exports.registerStreamEventBuffer = _chunkTIT74RILcjs.register; exports.releaseStreamEventBuffer = _chunkTIT74RILcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolveGatewayBinding = _chunkTIT74RILcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.routeLeaseRuntime = _chunkTIT74RILcjs.routeLeaseRuntime; exports.saveServerConfig = _chunkTIT74RILcjs.saveServerConfig; exports.serializeError = _chunkSVNDB62Dcjs.serializeError; exports.setOpenRouterAppIdentity = _chunkUNEFIWXIcjs.setOpenRouterAppIdentity; exports.startOfLocalDay = _chunkTIT74RILcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkTIT74RILcjs.startOfLocalWeek; exports.streamSSEResponse = _chunkHQP3K7PUcjs.streamSSEResponse; exports.toVoucherInfo = _chunkTIT74RILcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunkTIT74RILcjs.verifyKey; exports.verifyPresentedKey = _chunkTIT74RILcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkTIT74RILcjs.voucherCodePrefix;
package/dist/index.js CHANGED
@@ -107,7 +107,7 @@ import {
107
107
  verifyKey,
108
108
  verifyPresentedKey,
109
109
  voucherCodePrefix
110
- } from "./chunk-CQIJCPMF.js";
110
+ } from "./chunk-FEBAQI5A.js";
111
111
  import {
112
112
  createSSEParser,
113
113
  streamSSEResponse
@@ -121,13 +121,13 @@ import "./chunk-55FMGZ3L.js";
121
121
  import "./chunk-45FHEOKW.js";
122
122
  import "./chunk-FU7EAR73.js";
123
123
  import "./chunk-CCVRRJOX.js";
124
- import "./chunk-7VU7V2E4.js";
124
+ import "./chunk-6D4W22P4.js";
125
125
  import {
126
126
  PricingEngine
127
127
  } from "./chunk-FXR6N3SR.js";
128
128
  import {
129
129
  UsageRecorder
130
- } from "./chunk-UAPBLNN2.js";
130
+ } from "./chunk-AQDON6MB.js";
131
131
  import {
132
132
  TransformerChainExecutor
133
133
  } from "./chunk-WNKWAEUR.js";
@@ -197,7 +197,7 @@ import {
197
197
  } from "./chunk-H5JUT3KV.js";
198
198
  import {
199
199
  beginAuditCapture
200
- } from "./chunk-7C7DET6S.js";
200
+ } from "./chunk-GXEZ2R3E.js";
201
201
  import {
202
202
  AUDIT_REDACTED,
203
203
  redactAuditText
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXPIOJQS2cjs = require('../chunk-XPIOJQS2.cjs');
3
+ var _chunkUWDW6PN3cjs = require('../chunk-UWDW6PN3.cjs');
4
4
  require('../chunk-FCR77GYM.cjs');
5
5
  require('../chunk-AEOZIDEB.cjs');
6
6
  require('../chunk-XSVNC2UD.cjs');
7
7
 
8
8
 
9
- exports.beginAuditCapture = _chunkXPIOJQS2cjs.beginAuditCapture;
9
+ exports.beginAuditCapture = _chunkUWDW6PN3cjs.beginAuditCapture;
@@ -40,6 +40,12 @@ interface AuditCaptureContext {
40
40
  provider?: string;
41
41
  /** Sanitized error message (set on a relay/dispatch failure). */
42
42
  error?: string;
43
+ /**
44
+ * Derived conversation-session key (set by the router once the request body is
45
+ * parsed). Shards the audit body store and anchors its per-turn delta chain.
46
+ * A truncated digest — NEVER a raw client id.
47
+ */
48
+ sessionKey?: string;
43
49
  /** Stash the raw request body for capture (a no-op unless `captureBodies`). */
44
50
  setRequestBody(raw: string): void;
45
51
  }
@@ -40,6 +40,12 @@ interface AuditCaptureContext {
40
40
  provider?: string;
41
41
  /** Sanitized error message (set on a relay/dispatch failure). */
42
42
  error?: string;
43
+ /**
44
+ * Derived conversation-session key (set by the router once the request body is
45
+ * parsed). Shards the audit body store and anchors its per-turn delta chain.
46
+ * A truncated digest — NEVER a raw client id.
47
+ */
48
+ sessionKey?: string;
43
49
  /** Stash the raw request body for capture (a no-op unless `captureBodies`). */
44
50
  setRequestBody(raw: string): void;
45
51
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  beginAuditCapture
3
- } from "../chunk-7C7DET6S.js";
3
+ } from "../chunk-GXEZ2R3E.js";
4
4
  import "../chunk-K5NM7VAH.js";
5
5
  import "../chunk-WNY4WMRF.js";
6
6
  import "../chunk-OZFM4X3S.js";
@@ -63,7 +63,7 @@
63
63
 
64
64
 
65
65
 
66
- var _chunkXELFM7KLcjs = require('./chunk-XELFM7KL.cjs');
66
+ var _chunkTIT74RILcjs = require('./chunk-TIT74RIL.cjs');
67
67
  require('./chunk-HQP3K7PU.cjs');
68
68
  require('./chunk-QVOB2DNX.cjs');
69
69
  require('./chunk-P7EM6BND.cjs');
@@ -72,9 +72,9 @@ require('./chunk-5LNYGCIW.cjs');
72
72
  require('./chunk-CMVXX7ON.cjs');
73
73
  require('./chunk-5RSZYQJH.cjs');
74
74
  require('./chunk-56QD3YW6.cjs');
75
- require('./chunk-EYZYXJTJ.cjs');
75
+ require('./chunk-QUSEZNYS.cjs');
76
76
  require('./chunk-2E42SAW3.cjs');
77
- require('./chunk-EPN67EGP.cjs');
77
+ require('./chunk-5UK3KLE2.cjs');
78
78
  require('./chunk-IIRPUVPH.cjs');
79
79
  require('./chunk-GBHYAGX3.cjs');
80
80
  require('./chunk-3OPYJG76.cjs');
@@ -126,7 +126,7 @@ var _chunk4IH4EL7Mcjs = require('./chunk-4IH4EL7M.cjs');
126
126
  require('./chunk-A2YMUCBT.cjs');
127
127
 
128
128
 
129
- var _chunkXPIOJQS2cjs = require('./chunk-XPIOJQS2.cjs');
129
+ var _chunkUWDW6PN3cjs = require('./chunk-UWDW6PN3.cjs');
130
130
 
131
131
 
132
132
 
@@ -233,4 +233,4 @@ require('./chunk-UNEFIWXI.cjs');
233
233
 
234
234
 
235
235
 
236
- exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunkXELFM7KLcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkXELFM7KLcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkXELFM7KLcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkXELFM7KLcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkXELFM7KLcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkXELFM7KLcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkXELFM7KLcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkXELFM7KLcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkXELFM7KLcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkXELFM7KLcjs.KeySpendTracker; exports.KeyedMutex = _chunkXELFM7KLcjs.KeyedMutex; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkXELFM7KLcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkXELFM7KLcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkXELFM7KLcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkXELFM7KLcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkXELFM7KLcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkXELFM7KLcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkXELFM7KLcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkXPIOJQS2cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunkXELFM7KLcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkXELFM7KLcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkXELFM7KLcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkXELFM7KLcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkXELFM7KLcjs.computeVoucherGrant; exports.createIntegrationKey = _chunkXELFM7KLcjs.createIntegrationKey; exports.createNamedKey = _chunkXELFM7KLcjs.createNamedKey; exports.defaultServerConfig = _chunkXELFM7KLcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.formatUrls = _chunkXELFM7KLcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkXELFM7KLcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkXELFM7KLcjs.generateVoucherCode; exports.getOutboundApiServer = _chunkXELFM7KLcjs.getOutboundApiServer; exports.handleVoucherRedeem = _chunkXELFM7KLcjs.handleVoucherRedeem; exports.hashKey = _chunkXELFM7KLcjs.hashKey; exports.hashVoucherCode = _chunkXELFM7KLcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunkXELFM7KLcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkXELFM7KLcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkXELFM7KLcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkXELFM7KLcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkXELFM7KLcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkXELFM7KLcjs.loadServerConfig; exports.mergeServerConfig = _chunkXELFM7KLcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkXELFM7KLcjs.newVoucherId; exports.normalizeAccountProbe = _chunkXELFM7KLcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkXELFM7KLcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkXELFM7KLcjs.normalizeAudit; exports.normalizeBilling = _chunkXELFM7KLcjs.normalizeBilling; exports.normalizeFingerprint = _chunkXELFM7KLcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkXELFM7KLcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunkXELFM7KLcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkXELFM7KLcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkXELFM7KLcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkXELFM7KLcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunkXELFM7KLcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkXELFM7KLcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkXELFM7KLcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkXELFM7KLcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunkXELFM7KLcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.resolveGatewayBinding = _chunkXELFM7KLcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.saveServerConfig = _chunkXELFM7KLcjs.saveServerConfig; exports.startOfLocalDay = _chunkXELFM7KLcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkXELFM7KLcjs.startOfLocalWeek; exports.toVoucherInfo = _chunkXELFM7KLcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunkXELFM7KLcjs.verifyKey; exports.verifyPresentedKey = _chunkXELFM7KLcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkXELFM7KLcjs.voucherCodePrefix;
236
+ exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.ConcurrencyQueueFullError = _chunkTIT74RILcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkTIT74RILcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkTIT74RILcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkTIT74RILcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkTIT74RILcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkTIT74RILcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkTIT74RILcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkTIT74RILcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkTIT74RILcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkTIT74RILcjs.KeySpendTracker; exports.KeyedMutex = _chunkTIT74RILcjs.KeyedMutex; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkTIT74RILcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkTIT74RILcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkTIT74RILcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkTIT74RILcjs.OutboundRateLimiter; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkTIT74RILcjs.SerialQueueTimeoutError; exports.UserMessageSerialQueue = _chunkTIT74RILcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkTIT74RILcjs.__resetOutboundApiServerForTests; exports.beginAuditCapture = _chunkUWDW6PN3cjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.candidateBackgroundModelIds = _chunkTIT74RILcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkTIT74RILcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkTIT74RILcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkTIT74RILcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkTIT74RILcjs.computeVoucherGrant; exports.createIntegrationKey = _chunkTIT74RILcjs.createIntegrationKey; exports.createNamedKey = _chunkTIT74RILcjs.createNamedKey; exports.defaultServerConfig = _chunkTIT74RILcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.formatUrls = _chunkTIT74RILcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkTIT74RILcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkTIT74RILcjs.generateVoucherCode; exports.getOutboundApiServer = _chunkTIT74RILcjs.getOutboundApiServer; exports.handleVoucherRedeem = _chunkTIT74RILcjs.handleVoucherRedeem; exports.hashKey = _chunkTIT74RILcjs.hashKey; exports.hashVoucherCode = _chunkTIT74RILcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunkTIT74RILcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isRedeemRequest = _chunkTIT74RILcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkTIT74RILcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkTIT74RILcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkTIT74RILcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkTIT74RILcjs.loadServerConfig; exports.mergeServerConfig = _chunkTIT74RILcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkTIT74RILcjs.newVoucherId; exports.normalizeAccountProbe = _chunkTIT74RILcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkTIT74RILcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkTIT74RILcjs.normalizeAudit; exports.normalizeBilling = _chunkTIT74RILcjs.normalizeBilling; exports.normalizeFingerprint = _chunkTIT74RILcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkTIT74RILcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunkTIT74RILcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkTIT74RILcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkTIT74RILcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkTIT74RILcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunkTIT74RILcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkTIT74RILcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkTIT74RILcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkTIT74RILcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunkTIT74RILcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.resolveGatewayBinding = _chunkTIT74RILcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.saveServerConfig = _chunkTIT74RILcjs.saveServerConfig; exports.startOfLocalDay = _chunkTIT74RILcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkTIT74RILcjs.startOfLocalWeek; exports.toVoucherInfo = _chunkTIT74RILcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunkTIT74RILcjs.verifyKey; exports.verifyPresentedKey = _chunkTIT74RILcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkTIT74RILcjs.voucherCodePrefix;
@@ -197,7 +197,8 @@ declare function normalizeAccountProbe(raw: Partial<OutboundApiServerConfig> | u
197
197
  * (request-audit-log, design D2). Lenient like the other segment normalizers:
198
198
  * `enabled`/`captureBodies`/`trustForwardedFor` coerce to booleans (default
199
199
  * false). `maxBodyBytes:-1` means unlimited; other finite values clamp to
200
- * `[0, 1_048_576]`. `retentionDays` clamps to `[1, 365]`. Default (all-off) ⇒
200
+ * `[0, 1_048_576]`. `retentionDays` clamps to `[1, 365]`;
201
+ * `compactStreamingBodies` coerces to a boolean (default false). Default (all-off) ⇒
201
202
  * no capture ⇒ zero regression.
202
203
  */
203
204
  declare function normalizeAudit(raw: Partial<OutboundApiServerConfig> | undefined | null): AuditConfig;
@@ -197,7 +197,8 @@ declare function normalizeAccountProbe(raw: Partial<OutboundApiServerConfig> | u
197
197
  * (request-audit-log, design D2). Lenient like the other segment normalizers:
198
198
  * `enabled`/`captureBodies`/`trustForwardedFor` coerce to booleans (default
199
199
  * false). `maxBodyBytes:-1` means unlimited; other finite values clamp to
200
- * `[0, 1_048_576]`. `retentionDays` clamps to `[1, 365]`. Default (all-off) ⇒
200
+ * `[0, 1_048_576]`. `retentionDays` clamps to `[1, 365]`;
201
+ * `compactStreamingBodies` coerces to a boolean (default false). Default (all-off) ⇒
201
202
  * no capture ⇒ zero regression.
202
203
  */
203
204
  declare function normalizeAudit(raw: Partial<OutboundApiServerConfig> | undefined | null): AuditConfig;
@@ -63,7 +63,7 @@ import {
63
63
  verifyKey,
64
64
  verifyPresentedKey,
65
65
  voucherCodePrefix
66
- } from "./chunk-CQIJCPMF.js";
66
+ } from "./chunk-FEBAQI5A.js";
67
67
  import "./chunk-VVEHS2LI.js";
68
68
  import "./chunk-WTQMX2Q6.js";
69
69
  import "./chunk-NGYOO5TO.js";
@@ -72,9 +72,9 @@ import "./chunk-55FMGZ3L.js";
72
72
  import "./chunk-45FHEOKW.js";
73
73
  import "./chunk-FU7EAR73.js";
74
74
  import "./chunk-CCVRRJOX.js";
75
- import "./chunk-7VU7V2E4.js";
75
+ import "./chunk-6D4W22P4.js";
76
76
  import "./chunk-FXR6N3SR.js";
77
- import "./chunk-UAPBLNN2.js";
77
+ import "./chunk-AQDON6MB.js";
78
78
  import "./chunk-WNKWAEUR.js";
79
79
  import "./chunk-MZNPGW5Q.js";
80
80
  import "./chunk-DK4A7DLE.js";
@@ -126,7 +126,7 @@ import {
126
126
  import "./chunk-H5JUT3KV.js";
127
127
  import {
128
128
  beginAuditCapture
129
- } from "./chunk-7C7DET6S.js";
129
+ } from "./chunk-GXEZ2R3E.js";
130
130
  import {
131
131
  AUDIT_REDACTED,
132
132
  redactAuditText