@omnicross/core 0.4.2 → 0.4.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/auth/GeminiCodeAssistProjectResolver.cjs +11 -184
- package/dist/auth/GeminiCodeAssistProjectResolver.d.cts +41 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.d.ts +41 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.js +12 -185
- package/dist/{chunk-POUTD5AM.cjs → chunk-47E3I5PF.cjs} +10 -3
- package/dist/chunk-4LSZ7NFM.js +50 -0
- package/dist/{chunk-WX2E2G7H.cjs → chunk-4NAMH4UE.cjs} +79 -51
- package/dist/{chunk-LQYS2N47.js → chunk-4RM22ETG.js} +14 -2
- package/dist/{chunk-YEVWA4C7.cjs → chunk-57Y2EA2G.cjs} +6 -5
- package/dist/chunk-6I4SAWCN.js +24 -0
- package/dist/{chunk-KIQ2HA2A.cjs → chunk-BTSADEX4.cjs} +5 -5
- package/dist/chunk-CGEZQC2G.cjs +67 -0
- package/dist/chunk-E5RCCGE7.cjs +95 -0
- package/dist/chunk-EE7VP4O3.js +230 -0
- package/dist/chunk-F6P4DIBL.js +95 -0
- package/dist/{chunk-BKXC4XM6.cjs → chunk-FORICQ5U.cjs} +15 -11
- package/dist/{chunk-PF7YQBKX.js → chunk-FYPKKMB3.js} +6 -2
- package/dist/chunk-GWC7HCZI.cjs +44 -0
- package/dist/{chunk-LFEH7CEO.js → chunk-IDPMD4B7.js} +22 -0
- package/dist/{chunk-UPQIWJIE.cjs → chunk-INY54AYX.cjs} +14 -2
- package/dist/{chunk-C3NPMQTK.js → chunk-JHJRZ75C.js} +14 -10
- package/dist/chunk-K6J2RIEX.js +67 -0
- package/dist/chunk-KSMK45RD.cjs +45 -0
- package/dist/chunk-LL3MZ7O5.cjs +24 -0
- package/dist/{chunk-PAXJGABW.js → chunk-MPFOC7AT.js} +10 -5
- package/dist/{chunk-DKBXDV5U.cjs → chunk-N3MGNLCU.cjs} +49 -44
- package/dist/chunk-NCZDUBC2.js +44 -0
- package/dist/chunk-NDIBVTBZ.cjs +230 -0
- package/dist/{chunk-5DJSOFEP.js → chunk-NTF7TLT7.js} +1 -1
- package/dist/chunk-ONTTXSRL.js +32 -0
- package/dist/{chunk-HN74IGEO.js → chunk-OXBGNEYR.js} +1 -1
- package/dist/{chunk-5GXOYVLB.js → chunk-QSOHEDKO.js} +44 -39
- package/dist/{chunk-QEOV6Y4E.cjs → chunk-RX3BCX53.cjs} +359 -170
- package/dist/{chunk-TX3AEV6H.cjs → chunk-RXMF7GNF.cjs} +4 -3
- package/dist/chunk-SQU2FGXI.cjs +50 -0
- package/dist/{chunk-EUZRH544.js → chunk-TKZ3DZS5.js} +10 -3
- package/dist/{chunk-MXI2PWIC.cjs → chunk-UKQHBK4Q.cjs} +1 -32
- package/dist/{chunk-3XVDFRCQ.cjs → chunk-UOOLU64V.cjs} +13 -8
- package/dist/{chunk-ZSA44G7J.cjs → chunk-VFFCV4J6.cjs} +3 -3
- package/dist/{chunk-6DDYNS2B.cjs → chunk-VGBJPHHD.cjs} +36 -14
- package/dist/{chunk-2T6D7LWE.cjs → chunk-VYOBVPNB.cjs} +6 -2
- package/dist/chunk-X6GHTNDL.cjs +482 -0
- package/dist/chunk-XBQTVRMK.js +45 -0
- package/dist/{chunk-R4VCO2CB.js → chunk-YEHQ5FXZ.js} +28 -0
- package/dist/{chunk-5TEWZN5J.js → chunk-YV4JSBPA.js} +278 -89
- package/dist/{chunk-HDXSPXIN.js → chunk-ZBDDPWVQ.js} +4 -3
- package/dist/chunk-ZJJBITUN.js +482 -0
- package/dist/{chunk-QRXOLINS.js → chunk-ZMERU7D3.js} +3 -2
- package/dist/completion/CompletionService.cjs +29 -22
- package/dist/completion/CompletionService.js +28 -21
- package/dist/completion.cjs +29 -22
- package/dist/completion.js +28 -21
- package/dist/image-generation.cjs +2 -2
- package/dist/image-generation.d.cts +2 -2
- package/dist/image-generation.d.ts +2 -2
- package/dist/image-generation.js +1 -1
- package/dist/index.cjs +40 -29
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +40 -29
- package/dist/outbound-api/routeResolver.cjs +3 -3
- package/dist/outbound-api/routeResolver.d.cts +3 -3
- package/dist/outbound-api/routeResolver.d.ts +3 -3
- package/dist/outbound-api/routeResolver.js +2 -2
- package/dist/outbound-api/types.cjs +6 -2
- package/dist/outbound-api/types.d.cts +2 -2
- package/dist/outbound-api/types.d.ts +2 -2
- package/dist/outbound-api/types.js +7 -3
- package/dist/outbound-api.cjs +33 -22
- package/dist/outbound-api.d.cts +4 -4
- package/dist/outbound-api.d.ts +4 -4
- package/dist/outbound-api.js +33 -22
- package/dist/pipeline/AccountAllowanceScheduling.cjs +4 -3
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +4 -4
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +4 -4
- package/dist/pipeline/AccountAllowanceScheduling.js +3 -2
- package/dist/pipeline/AccountAllowanceStore.cjs +2 -2
- package/dist/pipeline/AccountAllowanceStore.js +1 -1
- package/dist/pipeline/AuthSource.d.cts +6 -0
- package/dist/pipeline/AuthSource.d.ts +6 -0
- package/dist/pipeline/SubscriptionAuthSource.cjs +5 -4
- package/dist/pipeline/SubscriptionAuthSource.js +4 -3
- package/dist/pipeline/SubscriptionAuthStrategy.d.cts +7 -0
- package/dist/pipeline/SubscriptionAuthStrategy.d.ts +7 -0
- package/dist/pipeline/antigravityQuotaFamily.cjs +16 -0
- package/dist/pipeline/antigravityQuotaFamily.d.cts +52 -0
- package/dist/pipeline/antigravityQuotaFamily.d.ts +52 -0
- package/dist/pipeline/antigravityQuotaFamily.js +16 -0
- package/dist/pipeline/upstreamFetch.cjs +3 -3
- package/dist/pipeline/upstreamFetch.js +2 -2
- package/dist/ports.d.cts +2 -2
- package/dist/ports.d.ts +2 -2
- package/dist/provider-proxy/ProviderProxy.cjs +29 -22
- package/dist/provider-proxy/ProviderProxy.js +28 -21
- package/dist/provider-proxy/identity/codexCliHeaders.cjs +8 -2
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +36 -7
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +36 -7
- package/dist/provider-proxy/identity/codexCliHeaders.js +7 -1
- package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +17 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.d.cts +71 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.d.ts +71 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.js +17 -0
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +29 -22
- package/dist/provider-proxy/ingress/providerProxyShared.js +28 -21
- package/dist/provider-proxy.cjs +29 -22
- package/dist/provider-proxy.d.cts +2 -2
- package/dist/provider-proxy.d.ts +2 -2
- package/dist/provider-proxy.js +28 -21
- package/dist/{routeResolver-STwMz_G4.d.ts → routeResolver-BLTleO4H.d.ts} +1 -1
- package/dist/{routeResolver-Da0yvkL1.d.cts → routeResolver-C2z0pp-q.d.cts} +1 -1
- package/dist/transformer/transformers/AnthropicOpenAIToAnthropicStream.cjs +2 -2
- package/dist/transformer/transformers/AnthropicOpenAIToAnthropicStream.js +1 -1
- package/dist/transformer/transformers/AnthropicTransformer.cjs +3 -3
- package/dist/transformer/transformers/AnthropicTransformer.js +2 -2
- package/dist/transformer/transformers/AntigravityTransformer.cjs +31 -0
- package/dist/transformer/transformers/AntigravityTransformer.d.cts +104 -0
- package/dist/transformer/transformers/AntigravityTransformer.d.ts +104 -0
- package/dist/transformer/transformers/AntigravityTransformer.js +31 -0
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.cjs +3 -3
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.cts +2 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.ts +2 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.js +2 -2
- package/dist/transformer/transformers/GeminiTransformer.cjs +3 -3
- package/dist/transformer/transformers/GeminiTransformer.js +2 -2
- package/dist/transformer/transformers/antigravityFailover.cjs +30 -0
- package/dist/transformer/transformers/antigravityFailover.d.cts +52 -0
- package/dist/transformer/transformers/antigravityFailover.d.ts +52 -0
- package/dist/transformer/transformers/antigravityFailover.js +30 -0
- package/dist/transformer/transformers/antigravityIdentity.cjs +24 -0
- package/dist/transformer/transformers/antigravityIdentity.d.cts +76 -0
- package/dist/transformer/transformers/antigravityIdentity.d.ts +76 -0
- package/dist/transformer/transformers/antigravityIdentity.js +24 -0
- package/dist/transformer/transformers.cjs +61 -9
- package/dist/transformer/transformers.d.cts +7 -2
- package/dist/transformer/transformers.d.ts +7 -2
- package/dist/transformer/transformers.js +61 -9
- package/dist/transformer/types.d.cts +11 -0
- package/dist/transformer/types.d.ts +11 -0
- package/dist/transformer.cjs +21 -12
- package/dist/transformer.d.cts +3 -0
- package/dist/transformer.d.ts +3 -0
- package/dist/transformer.js +20 -11
- package/dist/{types-Be-yt_6T.d.cts → types-BVwJQ9ZS.d.cts} +3 -0
- package/dist/{types-D-oHYusb.d.cts → types-C6m-Db26.d.cts} +25 -4
- package/dist/{types-Dvlpjn0d.d.ts → types-Da735j2d.d.ts} +25 -4
- package/dist/{types-Dm4_36V4.d.ts → types-VAHRysdP.d.ts} +3 -0
- package/package.json +2 -2
- package/dist/chunk-4IH4EL7M.cjs +0 -9
- package/dist/chunk-ECZ3ZE2C.js +0 -63
- package/dist/chunk-XEKD23J5.js +0 -9
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderProxy,
|
|
3
3
|
isLoopbackAddress
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-MZEGQSKQ.js";
|
|
6
|
-
import "../chunk-VVEHS2LI.js";
|
|
4
|
+
} from "../chunk-YV4JSBPA.js";
|
|
7
5
|
import "../chunk-WTQMX2Q6.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-MZNPGW5Q.js";
|
|
10
|
-
import "../chunk-DK4A7DLE.js";
|
|
11
|
-
import "../chunk-PAXJGABW.js";
|
|
12
|
-
import "../chunk-HN74IGEO.js";
|
|
6
|
+
import "../chunk-MPFOC7AT.js";
|
|
13
7
|
import "../chunk-V53ZEFXC.js";
|
|
14
8
|
import "../chunk-7PIUVCKK.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-LFEH7CEO.js";
|
|
9
|
+
import "../chunk-TKZ3DZS5.js";
|
|
17
10
|
import "../chunk-FU7EAR73.js";
|
|
11
|
+
import "../chunk-IDPMD4B7.js";
|
|
12
|
+
import "../chunk-K6J2RIEX.js";
|
|
13
|
+
import "../chunk-ZJJBITUN.js";
|
|
14
|
+
import "../chunk-F6P4DIBL.js";
|
|
15
|
+
import "../chunk-OXBGNEYR.js";
|
|
18
16
|
import "../chunk-QIIAMBTM.js";
|
|
19
17
|
import "../chunk-FXR6N3SR.js";
|
|
20
18
|
import "../chunk-AQDON6MB.js";
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-EYGBM2VC.js";
|
|
20
|
+
import "../chunk-MZNPGW5Q.js";
|
|
21
|
+
import "../chunk-DK4A7DLE.js";
|
|
22
|
+
import "../chunk-GFIZ6LQI.js";
|
|
23
|
+
import "../chunk-MZEGQSKQ.js";
|
|
24
|
+
import "../chunk-VVEHS2LI.js";
|
|
25
|
+
import "../chunk-4LSZ7NFM.js";
|
|
22
26
|
import "../chunk-XTEI64OU.js";
|
|
23
27
|
import "../chunk-XX6NQJMA.js";
|
|
24
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-NCZDUBC2.js";
|
|
29
|
+
import "../chunk-ONTTXSRL.js";
|
|
25
30
|
import "../chunk-OE6TDIWW.js";
|
|
26
31
|
import "../chunk-DRWHTIIZ.js";
|
|
27
32
|
import "../chunk-X335TJNS.js";
|
|
@@ -30,10 +35,11 @@ import "../chunk-JWC6APFQ.js";
|
|
|
30
35
|
import "../chunk-5ERIZW3D.js";
|
|
31
36
|
import "../chunk-PO3XB56Z.js";
|
|
32
37
|
import "../chunk-V2UKUTJ3.js";
|
|
33
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-ZBDDPWVQ.js";
|
|
34
39
|
import "../chunk-AVYJ4YBN.js";
|
|
35
|
-
import "../chunk-C3NPMQTK.js";
|
|
36
40
|
import "../chunk-2JYRIADS.js";
|
|
41
|
+
import "../chunk-JHJRZ75C.js";
|
|
42
|
+
import "../chunk-XBQTVRMK.js";
|
|
37
43
|
import "../chunk-6OKXH2TW.js";
|
|
38
44
|
import "../chunk-WNY4WMRF.js";
|
|
39
45
|
import "../chunk-N76KU6F5.js";
|
|
@@ -41,23 +47,24 @@ import "../chunk-WLYIIEAF.js";
|
|
|
41
47
|
import "../chunk-TKJMZBAH.js";
|
|
42
48
|
import "../chunk-OZFM4X3S.js";
|
|
43
49
|
import "../chunk-3QFXFCHG.js";
|
|
44
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-ZMERU7D3.js";
|
|
45
51
|
import "../chunk-AQ5TNQB7.js";
|
|
46
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-6I4SAWCN.js";
|
|
47
53
|
import "../chunk-Y7FO65VT.js";
|
|
48
54
|
import "../chunk-FMOBD2OQ.js";
|
|
49
55
|
import "../chunk-HUZZZ3JL.js";
|
|
50
56
|
import "../chunk-H5JUT3KV.js";
|
|
51
57
|
import "../chunk-5NJLQ6T6.js";
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-EE7VP4O3.js";
|
|
59
|
+
import "../chunk-QSOHEDKO.js";
|
|
60
|
+
import "../chunk-YEHQ5FXZ.js";
|
|
54
61
|
import "../chunk-WYVGULTQ.js";
|
|
55
62
|
import "../chunk-ZLNHPUFA.js";
|
|
56
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-NTF7TLT7.js";
|
|
57
64
|
import "../chunk-3WD4HTR2.js";
|
|
58
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-FYPKKMB3.js";
|
|
59
66
|
import "../chunk-GL6XM527.js";
|
|
60
|
-
import "../chunk-
|
|
67
|
+
import "../chunk-4RM22ETG.js";
|
|
61
68
|
import "../chunk-4JOU54M5.js";
|
|
62
69
|
import "../chunk-4PFWFODB.js";
|
|
63
70
|
export {
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkMXI2PWICcjs = require('../../chunk-MXI2PWIC.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkSQU2FGXIcjs = require('../../chunk-SQU2FGXI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
var _chunkUKQHBK4Qcjs = require('../../chunk-UKQHBK4Q.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.CODEX_ORIGINATOR_MARKER = _chunkSQU2FGXIcjs.CODEX_ORIGINATOR_MARKER; exports.DEFAULT_CODEX_CLI_HEADERS = _chunkSQU2FGXIcjs.DEFAULT_CODEX_CLI_HEADERS; exports.codexAcceptHeader = _chunkSQU2FGXIcjs.codexAcceptHeader; exports.extractCodexClientHeaders = _chunkSQU2FGXIcjs.extractCodexClientHeaders; exports.fillMissingCodexCliIdentity = _chunkSQU2FGXIcjs.fillMissingCodexCliIdentity; exports.fillMissingHeaders = _chunkUKQHBK4Qcjs.fillMissingHeaders;
|
|
@@ -45,15 +45,44 @@ declare function fillMissingHeaders(headers: Record<string, string>, source: Rea
|
|
|
45
45
|
*/
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Client markers a real `codex` CLI invocation carries.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Client markers a real `codex` CLI invocation carries. This is the COMPLETE
|
|
49
|
+
* synthetic persona spread onto a caller that brought NO identity of its own
|
|
50
|
+
* (no `user-agent`) — originator + a coherent (user-agent, version) pair.
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* NEVER applied under a caller's own `user-agent`: see
|
|
53
|
+
* `fillMissingCodexCliIdentity` for why a fabricated `version` there is not
|
|
54
|
+
* merely cosmetic but a hard failure.
|
|
55
|
+
*
|
|
56
|
+
* The pinned version is a floor for anonymous traffic only and WILL drift from
|
|
57
|
+
* the real CLI — acceptable because the backend's per-model minimum-version
|
|
58
|
+
* gate is the one place it matters, and an absent `version` passes that gate.
|
|
55
59
|
*/
|
|
56
60
|
declare const DEFAULT_CODEX_CLI_HEADERS: Readonly<Record<string, string>>;
|
|
61
|
+
/**
|
|
62
|
+
* The always-safe marker: how the backend tells the Codex CLI apart from a
|
|
63
|
+
* generic Responses client. Filled for EVERY codex-subscription caller, real
|
|
64
|
+
* client or not — compatible relays send it unconditionally.
|
|
65
|
+
*/
|
|
66
|
+
declare const CODEX_ORIGINATOR_MARKER: Readonly<Record<string, string>>;
|
|
67
|
+
/**
|
|
68
|
+
* Fill the codex client-identity markers a caller left empty — WITHOUT ever
|
|
69
|
+
* fabricating a `version` under a caller that brought its own `user-agent`.
|
|
70
|
+
*
|
|
71
|
+
* WHY THE SPLIT (2026-09 incident): the ChatGPT backend gates newer models on
|
|
72
|
+
* the request's client `version` header — `gpt-6-astra` answered a relayed
|
|
73
|
+
* `version: 0.144.5` with
|
|
74
|
+
* `The 'gpt-6-astra' model requires a newer version of Codex. Please upgrade…`
|
|
75
|
+
* even though the caller WAS the latest CLI (0.153.4): the Codex CLI only
|
|
76
|
+
* attaches its `version` header to the BUILT-IN openai provider, so a custom
|
|
77
|
+
* provider (this relay) arrives without one, and the old unconditional fill
|
|
78
|
+
* pinned a stale number under the caller's real UA. A caller that omits
|
|
79
|
+
* `version` goes WITHOUT one — the exact shape compatible relays send and the
|
|
80
|
+
* anthropic-path egress has always used, which the backend accepts.
|
|
81
|
+
*
|
|
82
|
+
* So: real client (own `user-agent`) ⇒ originator only; anonymous caller ⇒
|
|
83
|
+
* the full coherent persona above.
|
|
84
|
+
*/
|
|
85
|
+
declare function fillMissingCodexCliIdentity(headers: Record<string, string>): void;
|
|
57
86
|
/**
|
|
58
87
|
* Extract the caller's forwardable Codex CLI headers (lowercased keys). Ungated:
|
|
59
88
|
* passing along what the client actually sent is not fingerprint synthesis.
|
|
@@ -62,4 +91,4 @@ declare function extractCodexClientHeaders(reqHeaders: Record<string, string | s
|
|
|
62
91
|
/** The `accept` a Codex CLI sends, which differs by streaming mode. */
|
|
63
92
|
declare function codexAcceptHeader(isStream: boolean): string;
|
|
64
93
|
|
|
65
|
-
export { DEFAULT_CODEX_CLI_HEADERS, codexAcceptHeader, extractCodexClientHeaders, fillMissingHeaders };
|
|
94
|
+
export { CODEX_ORIGINATOR_MARKER, DEFAULT_CODEX_CLI_HEADERS, codexAcceptHeader, extractCodexClientHeaders, fillMissingCodexCliIdentity, fillMissingHeaders };
|
|
@@ -45,15 +45,44 @@ declare function fillMissingHeaders(headers: Record<string, string>, source: Rea
|
|
|
45
45
|
*/
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Client markers a real `codex` CLI invocation carries.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Client markers a real `codex` CLI invocation carries. This is the COMPLETE
|
|
49
|
+
* synthetic persona spread onto a caller that brought NO identity of its own
|
|
50
|
+
* (no `user-agent`) — originator + a coherent (user-agent, version) pair.
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* NEVER applied under a caller's own `user-agent`: see
|
|
53
|
+
* `fillMissingCodexCliIdentity` for why a fabricated `version` there is not
|
|
54
|
+
* merely cosmetic but a hard failure.
|
|
55
|
+
*
|
|
56
|
+
* The pinned version is a floor for anonymous traffic only and WILL drift from
|
|
57
|
+
* the real CLI — acceptable because the backend's per-model minimum-version
|
|
58
|
+
* gate is the one place it matters, and an absent `version` passes that gate.
|
|
55
59
|
*/
|
|
56
60
|
declare const DEFAULT_CODEX_CLI_HEADERS: Readonly<Record<string, string>>;
|
|
61
|
+
/**
|
|
62
|
+
* The always-safe marker: how the backend tells the Codex CLI apart from a
|
|
63
|
+
* generic Responses client. Filled for EVERY codex-subscription caller, real
|
|
64
|
+
* client or not — compatible relays send it unconditionally.
|
|
65
|
+
*/
|
|
66
|
+
declare const CODEX_ORIGINATOR_MARKER: Readonly<Record<string, string>>;
|
|
67
|
+
/**
|
|
68
|
+
* Fill the codex client-identity markers a caller left empty — WITHOUT ever
|
|
69
|
+
* fabricating a `version` under a caller that brought its own `user-agent`.
|
|
70
|
+
*
|
|
71
|
+
* WHY THE SPLIT (2026-09 incident): the ChatGPT backend gates newer models on
|
|
72
|
+
* the request's client `version` header — `gpt-6-astra` answered a relayed
|
|
73
|
+
* `version: 0.144.5` with
|
|
74
|
+
* `The 'gpt-6-astra' model requires a newer version of Codex. Please upgrade…`
|
|
75
|
+
* even though the caller WAS the latest CLI (0.153.4): the Codex CLI only
|
|
76
|
+
* attaches its `version` header to the BUILT-IN openai provider, so a custom
|
|
77
|
+
* provider (this relay) arrives without one, and the old unconditional fill
|
|
78
|
+
* pinned a stale number under the caller's real UA. A caller that omits
|
|
79
|
+
* `version` goes WITHOUT one — the exact shape compatible relays send and the
|
|
80
|
+
* anthropic-path egress has always used, which the backend accepts.
|
|
81
|
+
*
|
|
82
|
+
* So: real client (own `user-agent`) ⇒ originator only; anonymous caller ⇒
|
|
83
|
+
* the full coherent persona above.
|
|
84
|
+
*/
|
|
85
|
+
declare function fillMissingCodexCliIdentity(headers: Record<string, string>): void;
|
|
57
86
|
/**
|
|
58
87
|
* Extract the caller's forwardable Codex CLI headers (lowercased keys). Ungated:
|
|
59
88
|
* passing along what the client actually sent is not fingerprint synthesis.
|
|
@@ -62,4 +91,4 @@ declare function extractCodexClientHeaders(reqHeaders: Record<string, string | s
|
|
|
62
91
|
/** The `accept` a Codex CLI sends, which differs by streaming mode. */
|
|
63
92
|
declare function codexAcceptHeader(isStream: boolean): string;
|
|
64
93
|
|
|
65
|
-
export { DEFAULT_CODEX_CLI_HEADERS, codexAcceptHeader, extractCodexClientHeaders, fillMissingHeaders };
|
|
94
|
+
export { CODEX_ORIGINATOR_MARKER, DEFAULT_CODEX_CLI_HEADERS, codexAcceptHeader, extractCodexClientHeaders, fillMissingCodexCliIdentity, fillMissingHeaders };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CODEX_ORIGINATOR_MARKER,
|
|
2
3
|
DEFAULT_CODEX_CLI_HEADERS,
|
|
3
4
|
codexAcceptHeader,
|
|
4
5
|
extractCodexClientHeaders,
|
|
6
|
+
fillMissingCodexCliIdentity
|
|
7
|
+
} from "../../chunk-4LSZ7NFM.js";
|
|
8
|
+
import {
|
|
5
9
|
fillMissingHeaders
|
|
6
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-ONTTXSRL.js";
|
|
7
11
|
export {
|
|
12
|
+
CODEX_ORIGINATOR_MARKER,
|
|
8
13
|
DEFAULT_CODEX_CLI_HEADERS,
|
|
9
14
|
codexAcceptHeader,
|
|
10
15
|
extractCodexClientHeaders,
|
|
16
|
+
fillMissingCodexCliIdentity,
|
|
11
17
|
fillMissingHeaders
|
|
12
18
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkGWC7HCZIcjs = require('../../chunk-GWC7HCZI.cjs');
|
|
9
|
+
require('../../chunk-UKQHBK4Q.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.OPENCODE_SESSION_HEADER = _chunkGWC7HCZIcjs.OPENCODE_SESSION_HEADER; exports.__resetOpenCodeGoHeadersForTests = _chunkGWC7HCZIcjs.__resetOpenCodeGoHeadersForTests; exports.extractOpenCodeSessionHeader = _chunkGWC7HCZIcjs.extractOpenCodeSessionHeader; exports.getOpenCodeGoUserAgent = _chunkGWC7HCZIcjs.getOpenCodeGoUserAgent; exports.resolveOpenCodeSessionHeader = _chunkGWC7HCZIcjs.resolveOpenCodeSessionHeader; exports.setOpenCodeGoUserAgent = _chunkGWC7HCZIcjs.setOpenCodeGoUserAgent;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openCodeGoHeaders — the outbound identity headers every OpenCodeGo
|
|
3
|
+
* (`opencode.ai` zen/go) egress must carry.
|
|
4
|
+
*
|
|
5
|
+
* WHY THIS EXISTS: opencode.ai announced that tools hitting their API must (1)
|
|
6
|
+
* identify themselves with a clear `user-agent` — a bare relay falls to Node's
|
|
7
|
+
* default `node` UA, exactly the "too generic" shape their traffic monitoring
|
|
8
|
+
* flags — and (2) send `x-opencode-session` so they can optimize prompt
|
|
9
|
+
* caching. The OpenCodeGo relay previously sent neither: a downstream client's
|
|
10
|
+
* own `x-opencode-session` was dropped at the ingress and nothing replaced it.
|
|
11
|
+
*
|
|
12
|
+
* The split this module draws (mirrors claudeCodeHeaders / codexCliHeaders):
|
|
13
|
+
* - `user-agent` is a LIBRARY-LEVEL identity, not a per-request client
|
|
14
|
+
* concern: an app embedding omnicross (elftia) configures it via the daemon
|
|
15
|
+
* config (`opencodego.userAgent`, wired at bootstrap through
|
|
16
|
+
* {@link setOpenCodeGoUserAgent}); absent a configuration the product
|
|
17
|
+
* default `omnicross/<version>` is sent. The downstream client's UA is
|
|
18
|
+
* deliberately NOT forwarded — every HTTP client sends one, so passthrough
|
|
19
|
+
* would relay generic `curl`/`node` values and hide the tool the
|
|
20
|
+
* announcement asks to identify.
|
|
21
|
+
* - `x-opencode-session` IS a per-request caller value: forwarded verbatim
|
|
22
|
+
* when the downstream client sent one (an OpenCode CLI does); otherwise the
|
|
23
|
+
* relay's own stable per-conversation session key stands in, so the
|
|
24
|
+
* upstream still sees a session-stable id for cache affinity.
|
|
25
|
+
*
|
|
26
|
+
* The header APPLICATION lives in the OpenCodeGo auth strategy
|
|
27
|
+
* (`StaticBearerAuthStrategy`, the only consumer of these values' provider) —
|
|
28
|
+
* the antigravity-User-Agent-in-applyHeaders precedent — plus the daemon's
|
|
29
|
+
* usage collector for its background poll.
|
|
30
|
+
*
|
|
31
|
+
* @module provider-proxy/identity/openCodeGoHeaders
|
|
32
|
+
*/
|
|
33
|
+
/** The header opencode.ai reads to key prompt-cache session affinity. */
|
|
34
|
+
declare const OPENCODE_SESSION_HEADER = "x-opencode-session";
|
|
35
|
+
/**
|
|
36
|
+
* Set (or clear) the library-configured `user-agent` for OpenCodeGo egress.
|
|
37
|
+
* Boot wiring only (the daemon's bootstrap passes the validated
|
|
38
|
+
* `opencodego.userAgent` config field here); trimmed-empty / null / undefined
|
|
39
|
+
* clears the slot back to the default. Idempotent — last write wins.
|
|
40
|
+
*/
|
|
41
|
+
declare function setOpenCodeGoUserAgent(userAgent: string | null | undefined): void;
|
|
42
|
+
/**
|
|
43
|
+
* The `user-agent` every OpenCodeGo egress carries: the configured value,
|
|
44
|
+
* else `omnicross/<workspace version>`. Never returns an empty string.
|
|
45
|
+
*/
|
|
46
|
+
declare function getOpenCodeGoUserAgent(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Extract the caller's `x-opencode-session` from a raw request header bag
|
|
49
|
+
* (case-insensitive key lookup; a duplicate header is flattened to one joined
|
|
50
|
+
* value). Absent / empty / whitespace-only ⇒ `undefined` (treated as "the
|
|
51
|
+
* client did not send one").
|
|
52
|
+
*/
|
|
53
|
+
declare function extractOpenCodeSessionHeader(reqHeaders: Record<string, string | string[] | undefined>): string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Resolve the outbound `x-opencode-session` VALUE (not the header itself):
|
|
56
|
+
* the caller-supplied session wins verbatim; otherwise the relay's stable
|
|
57
|
+
* per-conversation session key stands in; neither present ⇒ `undefined`
|
|
58
|
+
* (the header is omitted entirely — never send an empty value).
|
|
59
|
+
*
|
|
60
|
+
* NOTE the two session-key derivations that feed `sessionKey` on the live
|
|
61
|
+
* paths: the Anthropic ingress hashes the body anchor (`system` + first user
|
|
62
|
+
* message, FNV-1a 8-hex) and the Responses ingress hashes header-aware ids
|
|
63
|
+
* (SHA-256 32-hex). Both are stable, non-sensitive per-conversation digests —
|
|
64
|
+
* a conversation that crosses ingresses presents two values, which is
|
|
65
|
+
* acceptable for the upstream's cache-affinity purpose.
|
|
66
|
+
*/
|
|
67
|
+
declare function resolveOpenCodeSessionHeader(callerSession: string | null | undefined, sessionKey?: string): string | undefined;
|
|
68
|
+
/** TEST SEAM — clear the configured UA slot so a suite starts from the default. */
|
|
69
|
+
declare function __resetOpenCodeGoHeadersForTests(): void;
|
|
70
|
+
|
|
71
|
+
export { OPENCODE_SESSION_HEADER, __resetOpenCodeGoHeadersForTests, extractOpenCodeSessionHeader, getOpenCodeGoUserAgent, resolveOpenCodeSessionHeader, setOpenCodeGoUserAgent };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openCodeGoHeaders — the outbound identity headers every OpenCodeGo
|
|
3
|
+
* (`opencode.ai` zen/go) egress must carry.
|
|
4
|
+
*
|
|
5
|
+
* WHY THIS EXISTS: opencode.ai announced that tools hitting their API must (1)
|
|
6
|
+
* identify themselves with a clear `user-agent` — a bare relay falls to Node's
|
|
7
|
+
* default `node` UA, exactly the "too generic" shape their traffic monitoring
|
|
8
|
+
* flags — and (2) send `x-opencode-session` so they can optimize prompt
|
|
9
|
+
* caching. The OpenCodeGo relay previously sent neither: a downstream client's
|
|
10
|
+
* own `x-opencode-session` was dropped at the ingress and nothing replaced it.
|
|
11
|
+
*
|
|
12
|
+
* The split this module draws (mirrors claudeCodeHeaders / codexCliHeaders):
|
|
13
|
+
* - `user-agent` is a LIBRARY-LEVEL identity, not a per-request client
|
|
14
|
+
* concern: an app embedding omnicross (elftia) configures it via the daemon
|
|
15
|
+
* config (`opencodego.userAgent`, wired at bootstrap through
|
|
16
|
+
* {@link setOpenCodeGoUserAgent}); absent a configuration the product
|
|
17
|
+
* default `omnicross/<version>` is sent. The downstream client's UA is
|
|
18
|
+
* deliberately NOT forwarded — every HTTP client sends one, so passthrough
|
|
19
|
+
* would relay generic `curl`/`node` values and hide the tool the
|
|
20
|
+
* announcement asks to identify.
|
|
21
|
+
* - `x-opencode-session` IS a per-request caller value: forwarded verbatim
|
|
22
|
+
* when the downstream client sent one (an OpenCode CLI does); otherwise the
|
|
23
|
+
* relay's own stable per-conversation session key stands in, so the
|
|
24
|
+
* upstream still sees a session-stable id for cache affinity.
|
|
25
|
+
*
|
|
26
|
+
* The header APPLICATION lives in the OpenCodeGo auth strategy
|
|
27
|
+
* (`StaticBearerAuthStrategy`, the only consumer of these values' provider) —
|
|
28
|
+
* the antigravity-User-Agent-in-applyHeaders precedent — plus the daemon's
|
|
29
|
+
* usage collector for its background poll.
|
|
30
|
+
*
|
|
31
|
+
* @module provider-proxy/identity/openCodeGoHeaders
|
|
32
|
+
*/
|
|
33
|
+
/** The header opencode.ai reads to key prompt-cache session affinity. */
|
|
34
|
+
declare const OPENCODE_SESSION_HEADER = "x-opencode-session";
|
|
35
|
+
/**
|
|
36
|
+
* Set (or clear) the library-configured `user-agent` for OpenCodeGo egress.
|
|
37
|
+
* Boot wiring only (the daemon's bootstrap passes the validated
|
|
38
|
+
* `opencodego.userAgent` config field here); trimmed-empty / null / undefined
|
|
39
|
+
* clears the slot back to the default. Idempotent — last write wins.
|
|
40
|
+
*/
|
|
41
|
+
declare function setOpenCodeGoUserAgent(userAgent: string | null | undefined): void;
|
|
42
|
+
/**
|
|
43
|
+
* The `user-agent` every OpenCodeGo egress carries: the configured value,
|
|
44
|
+
* else `omnicross/<workspace version>`. Never returns an empty string.
|
|
45
|
+
*/
|
|
46
|
+
declare function getOpenCodeGoUserAgent(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Extract the caller's `x-opencode-session` from a raw request header bag
|
|
49
|
+
* (case-insensitive key lookup; a duplicate header is flattened to one joined
|
|
50
|
+
* value). Absent / empty / whitespace-only ⇒ `undefined` (treated as "the
|
|
51
|
+
* client did not send one").
|
|
52
|
+
*/
|
|
53
|
+
declare function extractOpenCodeSessionHeader(reqHeaders: Record<string, string | string[] | undefined>): string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Resolve the outbound `x-opencode-session` VALUE (not the header itself):
|
|
56
|
+
* the caller-supplied session wins verbatim; otherwise the relay's stable
|
|
57
|
+
* per-conversation session key stands in; neither present ⇒ `undefined`
|
|
58
|
+
* (the header is omitted entirely — never send an empty value).
|
|
59
|
+
*
|
|
60
|
+
* NOTE the two session-key derivations that feed `sessionKey` on the live
|
|
61
|
+
* paths: the Anthropic ingress hashes the body anchor (`system` + first user
|
|
62
|
+
* message, FNV-1a 8-hex) and the Responses ingress hashes header-aware ids
|
|
63
|
+
* (SHA-256 32-hex). Both are stable, non-sensitive per-conversation digests —
|
|
64
|
+
* a conversation that crosses ingresses presents two values, which is
|
|
65
|
+
* acceptable for the upstream's cache-affinity purpose.
|
|
66
|
+
*/
|
|
67
|
+
declare function resolveOpenCodeSessionHeader(callerSession: string | null | undefined, sessionKey?: string): string | undefined;
|
|
68
|
+
/** TEST SEAM — clear the configured UA slot so a suite starts from the default. */
|
|
69
|
+
declare function __resetOpenCodeGoHeadersForTests(): void;
|
|
70
|
+
|
|
71
|
+
export { OPENCODE_SESSION_HEADER, __resetOpenCodeGoHeadersForTests, extractOpenCodeSessionHeader, getOpenCodeGoUserAgent, resolveOpenCodeSessionHeader, setOpenCodeGoUserAgent };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OPENCODE_SESSION_HEADER,
|
|
3
|
+
__resetOpenCodeGoHeadersForTests,
|
|
4
|
+
extractOpenCodeSessionHeader,
|
|
5
|
+
getOpenCodeGoUserAgent,
|
|
6
|
+
resolveOpenCodeSessionHeader,
|
|
7
|
+
setOpenCodeGoUserAgent
|
|
8
|
+
} from "../../chunk-NCZDUBC2.js";
|
|
9
|
+
import "../../chunk-ONTTXSRL.js";
|
|
10
|
+
export {
|
|
11
|
+
OPENCODE_SESSION_HEADER,
|
|
12
|
+
__resetOpenCodeGoHeadersForTests,
|
|
13
|
+
extractOpenCodeSessionHeader,
|
|
14
|
+
getOpenCodeGoUserAgent,
|
|
15
|
+
resolveOpenCodeSessionHeader,
|
|
16
|
+
setOpenCodeGoUserAgent
|
|
17
|
+
};
|
|
@@ -11,27 +11,32 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('../../chunk-E4QHVXV5.cjs');
|
|
16
|
-
require('../../chunk-HQP3K7PU.cjs');
|
|
14
|
+
var _chunkRX3BCX53cjs = require('../../chunk-RX3BCX53.cjs');
|
|
17
15
|
require('../../chunk-QVOB2DNX.cjs');
|
|
18
|
-
require('../../chunk-
|
|
19
|
-
require('../../chunk-GBHYAGX3.cjs');
|
|
20
|
-
require('../../chunk-3OPYJG76.cjs');
|
|
21
|
-
require('../../chunk-3XVDFRCQ.cjs');
|
|
22
|
-
require('../../chunk-KIQ2HA2A.cjs');
|
|
16
|
+
require('../../chunk-UOOLU64V.cjs');
|
|
23
17
|
require('../../chunk-NOITAVHA.cjs');
|
|
24
18
|
require('../../chunk-QWNUOR7F.cjs');
|
|
25
|
-
require('../../chunk-
|
|
26
|
-
require('../../chunk-6DDYNS2B.cjs');
|
|
19
|
+
require('../../chunk-47E3I5PF.cjs');
|
|
27
20
|
require('../../chunk-5RSZYQJH.cjs');
|
|
21
|
+
require('../../chunk-VGBJPHHD.cjs');
|
|
22
|
+
require('../../chunk-CGEZQC2G.cjs');
|
|
23
|
+
require('../../chunk-X6GHTNDL.cjs');
|
|
24
|
+
require('../../chunk-E5RCCGE7.cjs');
|
|
25
|
+
require('../../chunk-BTSADEX4.cjs');
|
|
28
26
|
require('../../chunk-32SRZFFP.cjs');
|
|
29
27
|
require('../../chunk-2E42SAW3.cjs');
|
|
30
28
|
require('../../chunk-5UK3KLE2.cjs');
|
|
31
|
-
require('../../chunk-
|
|
29
|
+
require('../../chunk-7ZHBN75N.cjs');
|
|
30
|
+
require('../../chunk-GBHYAGX3.cjs');
|
|
31
|
+
require('../../chunk-3OPYJG76.cjs');
|
|
32
|
+
require('../../chunk-J3QQ6JS5.cjs');
|
|
33
|
+
require('../../chunk-E4QHVXV5.cjs');
|
|
34
|
+
require('../../chunk-HQP3K7PU.cjs');
|
|
35
|
+
require('../../chunk-SQU2FGXI.cjs');
|
|
32
36
|
require('../../chunk-RPII3E6Z.cjs');
|
|
33
37
|
require('../../chunk-6RPZADX3.cjs');
|
|
34
|
-
require('../../chunk-
|
|
38
|
+
require('../../chunk-GWC7HCZI.cjs');
|
|
39
|
+
require('../../chunk-UKQHBK4Q.cjs');
|
|
35
40
|
require('../../chunk-UIBD2YY5.cjs');
|
|
36
41
|
require('../../chunk-R3HK6R4B.cjs');
|
|
37
42
|
require('../../chunk-KQBLZMP6.cjs');
|
|
@@ -40,10 +45,11 @@ require('../../chunk-QXD4MV2X.cjs');
|
|
|
40
45
|
require('../../chunk-NYUNU75A.cjs');
|
|
41
46
|
require('../../chunk-OTZC4TNH.cjs');
|
|
42
47
|
require('../../chunk-7LRTPNFL.cjs');
|
|
43
|
-
require('../../chunk-
|
|
48
|
+
require('../../chunk-RXMF7GNF.cjs');
|
|
44
49
|
require('../../chunk-SVNDB62D.cjs');
|
|
45
|
-
require('../../chunk-BKXC4XM6.cjs');
|
|
46
50
|
require('../../chunk-25GXJCEZ.cjs');
|
|
51
|
+
require('../../chunk-FORICQ5U.cjs');
|
|
52
|
+
require('../../chunk-KSMK45RD.cjs');
|
|
47
53
|
require('../../chunk-FX325I5Q.cjs');
|
|
48
54
|
require('../../chunk-AEOZIDEB.cjs');
|
|
49
55
|
require('../../chunk-HCOQQAZE.cjs');
|
|
@@ -51,23 +57,24 @@ require('../../chunk-APYG5QD7.cjs');
|
|
|
51
57
|
require('../../chunk-L74VDN4A.cjs');
|
|
52
58
|
require('../../chunk-XSVNC2UD.cjs');
|
|
53
59
|
require('../../chunk-4YINUUKQ.cjs');
|
|
54
|
-
require('../../chunk-
|
|
60
|
+
require('../../chunk-57Y2EA2G.cjs');
|
|
55
61
|
require('../../chunk-QBZJ7P2T.cjs');
|
|
56
|
-
require('../../chunk-
|
|
62
|
+
require('../../chunk-LL3MZ7O5.cjs');
|
|
57
63
|
require('../../chunk-JMJBSACD.cjs');
|
|
58
64
|
require('../../chunk-GMMT7RVN.cjs');
|
|
59
65
|
require('../../chunk-UNEFIWXI.cjs');
|
|
60
66
|
require('../../chunk-A2YMUCBT.cjs');
|
|
61
67
|
require('../../chunk-GDIXXKF2.cjs');
|
|
62
|
-
require('../../chunk-
|
|
63
|
-
require('../../chunk-
|
|
68
|
+
require('../../chunk-NDIBVTBZ.cjs');
|
|
69
|
+
require('../../chunk-N3MGNLCU.cjs');
|
|
70
|
+
require('../../chunk-4NAMH4UE.cjs');
|
|
64
71
|
require('../../chunk-77USGNRW.cjs');
|
|
65
72
|
require('../../chunk-IUL4VWNU.cjs');
|
|
66
|
-
require('../../chunk-
|
|
73
|
+
require('../../chunk-VFFCV4J6.cjs');
|
|
67
74
|
require('../../chunk-235MXAGX.cjs');
|
|
68
|
-
require('../../chunk-
|
|
75
|
+
require('../../chunk-VYOBVPNB.cjs');
|
|
69
76
|
require('../../chunk-NKVZ6Z3Y.cjs');
|
|
70
|
-
require('../../chunk-
|
|
77
|
+
require('../../chunk-INY54AYX.cjs');
|
|
71
78
|
require('../../chunk-G4CZIUIB.cjs');
|
|
72
79
|
require('../../chunk-2RCCLQYV.cjs');
|
|
73
80
|
|
|
@@ -83,4 +90,4 @@ require('../../chunk-2RCCLQYV.cjs');
|
|
|
83
90
|
|
|
84
91
|
|
|
85
92
|
|
|
86
|
-
exports.aggregateAnthropicSseToJsonBody =
|
|
93
|
+
exports.aggregateAnthropicSseToJsonBody = _chunkRX3BCX53cjs.aggregateAnthropicSseToJsonBody; exports.cancelDiscardedResponse = _chunkRX3BCX53cjs.cancelDiscardedResponse; exports.getAnthropicEndpointTransformer = _chunkRX3BCX53cjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunkRX3BCX53cjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunkRX3BCX53cjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunkRX3BCX53cjs.getSharedExecutor; exports.projectUpstreamResponseHeaders = _chunkRX3BCX53cjs.projectUpstreamResponseHeaders; exports.readBody = _chunkRX3BCX53cjs.readBody; exports.relayResponse = _chunkRX3BCX53cjs.relayResponse; exports.resolvePoolBoundKey = _chunkRX3BCX53cjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunkRX3BCX53cjs.writeBoundAccountError; exports.writeError = _chunkRX3BCX53cjs.writeError;
|
|
@@ -11,27 +11,32 @@ import {
|
|
|
11
11
|
resolvePoolBoundKey,
|
|
12
12
|
writeBoundAccountError,
|
|
13
13
|
writeError
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-MZEGQSKQ.js";
|
|
16
|
-
import "../../chunk-VVEHS2LI.js";
|
|
14
|
+
} from "../../chunk-YV4JSBPA.js";
|
|
17
15
|
import "../../chunk-WTQMX2Q6.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-MZNPGW5Q.js";
|
|
20
|
-
import "../../chunk-DK4A7DLE.js";
|
|
21
|
-
import "../../chunk-PAXJGABW.js";
|
|
22
|
-
import "../../chunk-HN74IGEO.js";
|
|
16
|
+
import "../../chunk-MPFOC7AT.js";
|
|
23
17
|
import "../../chunk-V53ZEFXC.js";
|
|
24
18
|
import "../../chunk-7PIUVCKK.js";
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-LFEH7CEO.js";
|
|
19
|
+
import "../../chunk-TKZ3DZS5.js";
|
|
27
20
|
import "../../chunk-FU7EAR73.js";
|
|
21
|
+
import "../../chunk-IDPMD4B7.js";
|
|
22
|
+
import "../../chunk-K6J2RIEX.js";
|
|
23
|
+
import "../../chunk-ZJJBITUN.js";
|
|
24
|
+
import "../../chunk-F6P4DIBL.js";
|
|
25
|
+
import "../../chunk-OXBGNEYR.js";
|
|
28
26
|
import "../../chunk-QIIAMBTM.js";
|
|
29
27
|
import "../../chunk-FXR6N3SR.js";
|
|
30
28
|
import "../../chunk-AQDON6MB.js";
|
|
31
|
-
import "../../chunk-
|
|
29
|
+
import "../../chunk-EYGBM2VC.js";
|
|
30
|
+
import "../../chunk-MZNPGW5Q.js";
|
|
31
|
+
import "../../chunk-DK4A7DLE.js";
|
|
32
|
+
import "../../chunk-GFIZ6LQI.js";
|
|
33
|
+
import "../../chunk-MZEGQSKQ.js";
|
|
34
|
+
import "../../chunk-VVEHS2LI.js";
|
|
35
|
+
import "../../chunk-4LSZ7NFM.js";
|
|
32
36
|
import "../../chunk-XTEI64OU.js";
|
|
33
37
|
import "../../chunk-XX6NQJMA.js";
|
|
34
|
-
import "../../chunk-
|
|
38
|
+
import "../../chunk-NCZDUBC2.js";
|
|
39
|
+
import "../../chunk-ONTTXSRL.js";
|
|
35
40
|
import "../../chunk-OE6TDIWW.js";
|
|
36
41
|
import "../../chunk-DRWHTIIZ.js";
|
|
37
42
|
import "../../chunk-X335TJNS.js";
|
|
@@ -40,10 +45,11 @@ import "../../chunk-JWC6APFQ.js";
|
|
|
40
45
|
import "../../chunk-5ERIZW3D.js";
|
|
41
46
|
import "../../chunk-PO3XB56Z.js";
|
|
42
47
|
import "../../chunk-V2UKUTJ3.js";
|
|
43
|
-
import "../../chunk-
|
|
48
|
+
import "../../chunk-ZBDDPWVQ.js";
|
|
44
49
|
import "../../chunk-AVYJ4YBN.js";
|
|
45
|
-
import "../../chunk-C3NPMQTK.js";
|
|
46
50
|
import "../../chunk-2JYRIADS.js";
|
|
51
|
+
import "../../chunk-JHJRZ75C.js";
|
|
52
|
+
import "../../chunk-XBQTVRMK.js";
|
|
47
53
|
import "../../chunk-6OKXH2TW.js";
|
|
48
54
|
import "../../chunk-WNY4WMRF.js";
|
|
49
55
|
import "../../chunk-N76KU6F5.js";
|
|
@@ -51,23 +57,24 @@ import "../../chunk-WLYIIEAF.js";
|
|
|
51
57
|
import "../../chunk-TKJMZBAH.js";
|
|
52
58
|
import "../../chunk-OZFM4X3S.js";
|
|
53
59
|
import "../../chunk-3QFXFCHG.js";
|
|
54
|
-
import "../../chunk-
|
|
60
|
+
import "../../chunk-ZMERU7D3.js";
|
|
55
61
|
import "../../chunk-AQ5TNQB7.js";
|
|
56
|
-
import "../../chunk-
|
|
62
|
+
import "../../chunk-6I4SAWCN.js";
|
|
57
63
|
import "../../chunk-Y7FO65VT.js";
|
|
58
64
|
import "../../chunk-FMOBD2OQ.js";
|
|
59
65
|
import "../../chunk-HUZZZ3JL.js";
|
|
60
66
|
import "../../chunk-H5JUT3KV.js";
|
|
61
67
|
import "../../chunk-5NJLQ6T6.js";
|
|
62
|
-
import "../../chunk-
|
|
63
|
-
import "../../chunk-
|
|
68
|
+
import "../../chunk-EE7VP4O3.js";
|
|
69
|
+
import "../../chunk-QSOHEDKO.js";
|
|
70
|
+
import "../../chunk-YEHQ5FXZ.js";
|
|
64
71
|
import "../../chunk-WYVGULTQ.js";
|
|
65
72
|
import "../../chunk-ZLNHPUFA.js";
|
|
66
|
-
import "../../chunk-
|
|
73
|
+
import "../../chunk-NTF7TLT7.js";
|
|
67
74
|
import "../../chunk-3WD4HTR2.js";
|
|
68
|
-
import "../../chunk-
|
|
75
|
+
import "../../chunk-FYPKKMB3.js";
|
|
69
76
|
import "../../chunk-GL6XM527.js";
|
|
70
|
-
import "../../chunk-
|
|
77
|
+
import "../../chunk-4RM22ETG.js";
|
|
71
78
|
import "../../chunk-4JOU54M5.js";
|
|
72
79
|
import "../../chunk-4PFWFODB.js";
|
|
73
80
|
export {
|