@omnicross/core 0.1.5 → 0.1.7
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/ApiConverter.cjs +2 -2
- package/dist/ApiConverter.js +1 -1
- package/dist/{CompletionService-DdWaAxq0.d.ts → CompletionService-C3BX0Ovy.d.ts} +4 -3
- package/dist/{CompletionService-D3a47vdU.d.cts → CompletionService-kNA17cfI.d.cts} +4 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +8 -6
- package/dist/auth/GeminiCodeAssistProjectResolver.js +6 -4
- package/dist/{chunk-3Z5BQZFM.cjs → chunk-235MXAGX.cjs} +3 -1
- package/dist/{chunk-HRRYG2AX.js → chunk-23S5OPIO.js} +10 -1
- package/dist/chunk-25GXJCEZ.cjs +40 -0
- package/dist/chunk-2E42SAW3.cjs +323 -0
- package/dist/chunk-2JYRIADS.js +40 -0
- package/dist/chunk-2Z4XM3H5.cjs +44 -0
- package/dist/{chunk-BODMAL6G.js → chunk-32O35CIF.js} +271 -91
- package/dist/chunk-3SCOLIPT.cjs +63 -0
- package/dist/{chunk-SYQF7OIR.js → chunk-3WD4HTR2.js} +2 -0
- package/dist/{chunk-CGKLE6IW.cjs → chunk-4BB343BI.cjs} +1489 -520
- package/dist/{chunk-VACWOIRE.cjs → chunk-4VZX5F4T.cjs} +39 -15
- package/dist/{chunk-5ZQBEOMD.js → chunk-5NJLQ6T6.js} +46 -12
- package/dist/chunk-5RSZYQJH.cjs +62 -0
- package/dist/chunk-6QQG7YG3.cjs +153 -0
- package/dist/{chunk-IFXJ2BG7.js → chunk-7C7DET6S.js} +51 -6
- package/dist/{chunk-IK3KE3AU.js → chunk-DE2SRBFZ.js} +1 -1
- package/dist/{chunk-FH2P4OCD.js → chunk-E3COOKUP.js} +1240 -271
- package/dist/{chunk-UHGVBFU3.js → chunk-EBLFCNPY.js} +38 -14
- package/dist/chunk-FU7EAR73.js +62 -0
- package/dist/chunk-FXR6N3SR.js +323 -0
- package/dist/{chunk-SUEGJ75D.cjs → chunk-GDIXXKF2.cjs} +46 -12
- package/dist/chunk-GFIZ6LQI.js +170 -0
- package/dist/chunk-GL6XM527.js +61 -0
- package/dist/chunk-HVBBDBS3.cjs +350 -0
- package/dist/{chunk-46ZIFWYG.cjs → chunk-IIRPUVPH.cjs} +7 -1
- package/dist/chunk-J3QQ6JS5.cjs +170 -0
- package/dist/{chunk-JWVTXXPX.cjs → chunk-KBM2W6UY.cjs} +8 -4
- package/dist/chunk-LB6EBS6Y.js +69 -0
- package/dist/{chunk-IWQAX3CS.js → chunk-LVUCAWMK.js} +1 -1
- package/dist/chunk-MKF46GNZ.js +350 -0
- package/dist/{chunk-HYN75H6G.cjs → chunk-MUHWHQVM.cjs} +1 -1
- package/dist/chunk-MYYR3HZL.js +44 -0
- package/dist/{chunk-MFZ5437A.js → chunk-N5T4M4GU.js} +1 -1
- package/dist/{chunk-5ENKBSWO.js → chunk-N7OOJI5V.js} +88 -8
- package/dist/chunk-NKVZ6Z3Y.cjs +61 -0
- package/dist/chunk-OF3BECU2.cjs +69 -0
- package/dist/{chunk-SNYBEXLB.cjs → chunk-OJGQKHN5.cjs} +3 -1
- package/dist/{chunk-DDMRUL76.cjs → chunk-OKMJLEXX.cjs} +5 -5
- package/dist/chunk-OPRS4IQZ.js +153 -0
- package/dist/chunk-OTZC4TNH.cjs +79 -0
- package/dist/{chunk-3Q6Z6JTO.cjs → chunk-OVQBNVSV.cjs} +287 -107
- package/dist/{chunk-4XMYPW46.cjs → chunk-OXHNSZ53.cjs} +84 -44
- package/dist/{chunk-C6OV7GCC.js → chunk-PEGTIPB3.js} +52 -12
- package/dist/chunk-PO3XB56Z.js +79 -0
- package/dist/{chunk-D3TDKWRP.js → chunk-RJ5ZGNI3.js} +54 -5
- package/dist/{chunk-PG7PS2NN.cjs → chunk-RJUONLUQ.cjs} +59 -10
- package/dist/{chunk-BPKCU575.js → chunk-SOO562NM.js} +3 -1
- package/dist/{chunk-6QZGDLL4.js → chunk-TOVPMMHM.js} +5 -1
- package/dist/{chunk-K52THW2C.cjs → chunk-V4TXMEJS.cjs} +5 -5
- package/dist/{chunk-G2UTNSGU.js → chunk-WNKWAEUR.js} +7 -1
- package/dist/{chunk-UNWKG6EI.cjs → chunk-XPIOJQS2.cjs} +51 -6
- package/dist/chunk-XXFYLL7R.js +63 -0
- package/dist/{chunk-KFI44N2R.cjs → chunk-YNJNTCSQ.cjs} +10 -1
- package/dist/{chunk-VQY5W4YW.cjs → chunk-YWL7YZWS.cjs} +90 -10
- package/dist/completion/ApiKeyPoolService.cjs +12 -0
- package/dist/completion/ApiKeyPoolService.d.cts +6 -0
- package/dist/completion/ApiKeyPoolService.d.ts +6 -0
- package/dist/completion/ApiKeyPoolService.js +12 -0
- package/dist/completion/CompletionService.cjs +30 -24
- package/dist/completion/CompletionService.d.cts +3 -1
- package/dist/completion/CompletionService.d.ts +3 -1
- package/dist/completion/CompletionService.js +29 -23
- package/dist/completion.cjs +32 -26
- package/dist/completion.d.cts +3 -1
- package/dist/completion.d.ts +3 -1
- package/dist/completion.js +31 -25
- package/dist/index.cjs +56 -29
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +61 -34
- package/dist/{keyPolicy-Cp0FntZl.d.cts → keyPolicy-zdWTu3CQ.d.cts} +1 -1
- package/dist/{keyPolicy-Cp0FntZl.d.ts → keyPolicy-zdWTu3CQ.d.ts} +1 -1
- package/dist/outbound-api/auditCapture.cjs +2 -2
- package/dist/outbound-api/auditCapture.d.cts +3 -4
- package/dist/outbound-api/auditCapture.d.ts +3 -4
- package/dist/outbound-api/auditCapture.js +1 -1
- package/dist/outbound-api/quotaWarn.d.cts +1 -1
- package/dist/outbound-api/quotaWarn.d.ts +1 -1
- package/dist/outbound-api/routeResolver.cjs +2 -2
- package/dist/outbound-api/routeResolver.d.cts +5 -3
- package/dist/outbound-api/routeResolver.d.ts +5 -3
- package/dist/outbound-api/routeResolver.js +1 -1
- package/dist/outbound-api/subscriptionRegistryPort.d.cts +2 -0
- package/dist/outbound-api/subscriptionRegistryPort.d.ts +2 -0
- package/dist/outbound-api/types.d.cts +4 -2
- package/dist/outbound-api/types.d.ts +4 -2
- package/dist/outbound-api.cjs +52 -25
- package/dist/outbound-api.d.cts +131 -87
- package/dist/outbound-api.d.ts +131 -87
- package/dist/outbound-api.js +55 -28
- package/dist/pipeline/AccountAllowanceScheduling.cjs +15 -0
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +91 -0
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +91 -0
- package/dist/pipeline/AccountAllowanceScheduling.js +15 -0
- package/dist/pipeline/AccountAllowanceStore.cjs +20 -0
- package/dist/pipeline/AccountAllowanceStore.d.cts +77 -0
- package/dist/pipeline/AccountAllowanceStore.d.ts +77 -0
- package/dist/pipeline/AccountAllowanceStore.js +20 -0
- package/dist/pipeline/AccountRouteActivity.cjs +10 -0
- package/dist/pipeline/AccountRouteActivity.d.cts +61 -0
- package/dist/pipeline/AccountRouteActivity.d.ts +61 -0
- package/dist/pipeline/AccountRouteActivity.js +10 -0
- package/dist/pipeline/AuthSource.d.cts +11 -2
- package/dist/pipeline/AuthSource.d.ts +11 -2
- package/dist/pipeline/BoundAccountSelectionError.cjs +10 -0
- package/dist/pipeline/BoundAccountSelectionError.d.cts +28 -0
- package/dist/pipeline/BoundAccountSelectionError.d.ts +28 -0
- package/dist/pipeline/BoundAccountSelectionError.js +10 -0
- package/dist/pipeline/LlmConfigProviderAuth.d.cts +1 -0
- package/dist/pipeline/LlmConfigProviderAuth.d.ts +1 -0
- package/dist/pipeline/ServerOverloadCounter.cjs +16 -0
- package/dist/pipeline/ServerOverloadCounter.d.cts +77 -0
- package/dist/pipeline/ServerOverloadCounter.d.ts +77 -0
- package/dist/pipeline/ServerOverloadCounter.js +16 -0
- package/dist/pipeline/SubscriptionAccountHealth.cjs +6 -2
- package/dist/pipeline/SubscriptionAccountHealth.d.cts +65 -8
- package/dist/pipeline/SubscriptionAccountHealth.d.ts +65 -8
- package/dist/pipeline/SubscriptionAccountHealth.js +5 -1
- package/dist/pipeline/SubscriptionAuthSource.cjs +5 -2
- package/dist/pipeline/SubscriptionAuthSource.d.cts +1 -0
- package/dist/pipeline/SubscriptionAuthSource.d.ts +1 -0
- package/dist/pipeline/SubscriptionAuthSource.js +4 -1
- package/dist/pipeline/SubscriptionAuthStrategy.d.cts +8 -3
- package/dist/pipeline/SubscriptionAuthStrategy.d.ts +8 -3
- package/dist/pipeline/executeProviderCall.cjs +2 -2
- package/dist/pipeline/executeProviderCall.d.cts +8 -3
- package/dist/pipeline/executeProviderCall.d.ts +8 -3
- package/dist/pipeline/executeProviderCall.js +1 -1
- package/dist/pipeline/resolveProviderChain.d.cts +2 -3
- package/dist/pipeline/resolveProviderChain.d.ts +2 -3
- package/dist/pipeline/resolveSubscriptionChain.d.cts +1 -0
- package/dist/pipeline/resolveSubscriptionChain.d.ts +1 -0
- package/dist/pipeline/upstreamFetch.cjs +5 -3
- package/dist/pipeline/upstreamFetch.d.cts +35 -6
- package/dist/pipeline/upstreamFetch.d.ts +35 -6
- package/dist/pipeline/upstreamFetch.js +4 -2
- package/dist/pipeline/upstreamTrace.cjs +4 -2
- package/dist/pipeline/upstreamTrace.d.cts +22 -8
- package/dist/pipeline/upstreamTrace.d.ts +22 -8
- package/dist/pipeline/upstreamTrace.js +3 -1
- package/dist/ports/pricing-store.d.cts +4 -3
- package/dist/ports/pricing-store.d.ts +4 -3
- package/dist/ports.d.cts +4 -3
- package/dist/ports.d.ts +4 -3
- package/dist/provider-proxy/ProviderProxy.cjs +30 -24
- package/dist/provider-proxy/ProviderProxy.d.cts +2 -0
- package/dist/provider-proxy/ProviderProxy.d.ts +2 -0
- package/dist/provider-proxy/ProviderProxy.js +29 -23
- package/dist/provider-proxy/identity/codexCliHeaders.cjs +10 -0
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +45 -0
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +45 -0
- package/dist/provider-proxy/identity/codexCliHeaders.js +10 -0
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +32 -24
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +44 -5
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +44 -5
- package/dist/provider-proxy/ingress/providerProxyShared.js +31 -23
- package/dist/provider-proxy/matchText.cjs +4 -2
- package/dist/provider-proxy/matchText.d.cts +39 -6
- package/dist/provider-proxy/matchText.d.ts +39 -6
- package/dist/provider-proxy/matchText.js +3 -1
- package/dist/provider-proxy/types.d.cts +35 -2
- package/dist/provider-proxy/types.d.ts +35 -2
- package/dist/provider-proxy.cjs +30 -24
- package/dist/provider-proxy.d.cts +2 -0
- package/dist/provider-proxy.d.ts +2 -0
- package/dist/provider-proxy.js +29 -23
- package/dist/{routeResolver-C4T7yClx.d.ts → routeResolver-BxOfunbm.d.ts} +1 -1
- package/dist/{routeResolver-CB3tvJKy.d.cts → routeResolver-D5OzD0iM.d.cts} +1 -1
- package/dist/transformer/TransformerChainExecutor.cjs +2 -2
- package/dist/transformer/TransformerChainExecutor.js +1 -1
- package/dist/transformer/transformers/AnthropicTransformer.cjs +3 -2
- package/dist/transformer/transformers/AnthropicTransformer.js +2 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.cjs +3 -3
- 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/OpenAIResponseTransformer.cjs +3 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.d.cts +1 -1
- package/dist/transformer/transformers/OpenAIResponseTransformer.d.ts +1 -1
- package/dist/transformer/transformers/OpenAIResponseTransformer.js +2 -1
- package/dist/transformer/transformers/OpenAITransformer.cjs +6 -0
- package/dist/transformer/transformers/OpenAITransformer.d.cts +68 -0
- package/dist/transformer/transformers/OpenAITransformer.d.ts +68 -0
- package/dist/transformer/transformers/OpenAITransformer.js +6 -0
- package/dist/transformer/transformers.cjs +9 -14
- package/dist/transformer/transformers.d.cts +12 -48
- package/dist/transformer/transformers.d.ts +12 -48
- package/dist/transformer/transformers.js +11 -16
- package/dist/transformer/types.d.cts +17 -0
- package/dist/transformer/types.d.ts +17 -0
- package/dist/transformer.cjs +12 -12
- package/dist/transformer.d.cts +1 -2
- package/dist/transformer.d.ts +1 -2
- package/dist/transformer.js +12 -12
- package/dist/{types-lgPYQuZS.d.ts → types-CqZD77rS.d.ts} +173 -7
- package/dist/{types-B8Arpxn0.d.cts → types-gjJ5lJ5n.d.cts} +173 -7
- package/dist/usage/pricing-engine.cjs +2 -2
- package/dist/usage/pricing-engine.d.cts +29 -1
- package/dist/usage/pricing-engine.d.ts +29 -1
- package/dist/usage/pricing-engine.js +1 -1
- package/dist/usage/usage-recorder.cjs +2 -2
- package/dist/usage/usage-recorder.d.cts +5 -1
- package/dist/usage/usage-recorder.d.ts +5 -1
- package/dist/usage/usage-recorder.js +1 -1
- package/dist/usage.cjs +3 -3
- package/dist/usage.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-7FEBOPJO.cjs +0 -50
- package/dist/chunk-DWKQZ2SK.cjs +0 -254
- package/dist/chunk-IAXWICZU.js +0 -69
- package/dist/chunk-IB3FDI4O.js +0 -50
- package/dist/chunk-OQWKZCXP.js +0 -242
- package/dist/chunk-QWBWGODS.cjs +0 -69
- package/dist/chunk-YMFAJFQT.cjs +0 -173
- package/dist/chunk-ZCIQ3L3R.cjs +0 -242
- package/dist/chunk-ZJZAOKI7.js +0 -254
- package/dist/chunk-ZLX3KGXX.js +0 -173
- package/dist/transformer/transformers/OpenCodeGoTransformer.cjs +0 -6
- package/dist/transformer/transformers/OpenCodeGoTransformer.d.cts +0 -51
- package/dist/transformer/transformers/OpenCodeGoTransformer.d.ts +0 -51
- package/dist/transformer/transformers/OpenCodeGoTransformer.js +0 -6
- package/dist/transformer/transformers/ReasoningTransformer.cjs +0 -6
- package/dist/transformer/transformers/ReasoningTransformer.d.cts +0 -47
- package/dist/transformer/transformers/ReasoningTransformer.d.ts +0 -47
- package/dist/transformer/transformers/ReasoningTransformer.js +0 -6
|
@@ -7,50 +7,57 @@ import {
|
|
|
7
7
|
readBody,
|
|
8
8
|
relayResponse,
|
|
9
9
|
resolvePoolBoundKey,
|
|
10
|
+
writeBoundAccountError,
|
|
10
11
|
writeError
|
|
11
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-E3COOKUP.js";
|
|
12
13
|
import "../../chunk-VVEHS2LI.js";
|
|
13
14
|
import "../../chunk-46RLHI7D.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-IWQAX3CS.js";
|
|
21
|
-
import "../../chunk-BODMAL6G.js";
|
|
15
|
+
import "../../chunk-MYYR3HZL.js";
|
|
16
|
+
import "../../chunk-PEGTIPB3.js";
|
|
17
|
+
import "../../chunk-LVUCAWMK.js";
|
|
18
|
+
import "../../chunk-32O35CIF.js";
|
|
19
|
+
import "../../chunk-FU7EAR73.js";
|
|
20
|
+
import "../../chunk-LB6EBS6Y.js";
|
|
22
21
|
import "../../chunk-7VU7V2E4.js";
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-FXR6N3SR.js";
|
|
23
|
+
import "../../chunk-SOO562NM.js";
|
|
24
|
+
import "../../chunk-WNKWAEUR.js";
|
|
25
25
|
import "../../chunk-MZNPGW5Q.js";
|
|
26
|
+
import "../../chunk-DK4A7DLE.js";
|
|
27
|
+
import "../../chunk-XXFYLL7R.js";
|
|
26
28
|
import "../../chunk-XTEI64OU.js";
|
|
27
29
|
import "../../chunk-XX6NQJMA.js";
|
|
28
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-GFIZ6LQI.js";
|
|
29
31
|
import "../../chunk-OE6TDIWW.js";
|
|
30
32
|
import "../../chunk-DRWHTIIZ.js";
|
|
31
|
-
import "../../chunk-IK3KE3AU.js";
|
|
32
|
-
import "../../chunk-ZY6KU6P3.js";
|
|
33
33
|
import "../../chunk-JWC6APFQ.js";
|
|
34
34
|
import "../../chunk-5ERIZW3D.js";
|
|
35
|
-
import "../../chunk-
|
|
36
|
-
import "../../chunk-
|
|
35
|
+
import "../../chunk-PO3XB56Z.js";
|
|
36
|
+
import "../../chunk-N7OOJI5V.js";
|
|
37
|
+
import "../../chunk-23S5OPIO.js";
|
|
37
38
|
import "../../chunk-AVYJ4YBN.js";
|
|
39
|
+
import "../../chunk-OPRS4IQZ.js";
|
|
40
|
+
import "../../chunk-2JYRIADS.js";
|
|
41
|
+
import "../../chunk-DE2SRBFZ.js";
|
|
42
|
+
import "../../chunk-ZY6KU6P3.js";
|
|
38
43
|
import "../../chunk-WLYIIEAF.js";
|
|
39
44
|
import "../../chunk-TKJMZBAH.js";
|
|
40
45
|
import "../../chunk-3QFXFCHG.js";
|
|
41
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-EBLFCNPY.js";
|
|
42
47
|
import "../../chunk-AQ5TNQB7.js";
|
|
43
48
|
import "../../chunk-XEKD23J5.js";
|
|
44
49
|
import "../../chunk-H5JUT3KV.js";
|
|
45
|
-
import "../../chunk-
|
|
50
|
+
import "../../chunk-7C7DET6S.js";
|
|
46
51
|
import "../../chunk-K5NM7VAH.js";
|
|
47
52
|
import "../../chunk-WNY4WMRF.js";
|
|
48
53
|
import "../../chunk-OZFM4X3S.js";
|
|
49
|
-
import "../../chunk-
|
|
50
|
-
import "../../chunk-
|
|
51
|
-
import "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
54
|
+
import "../../chunk-5NJLQ6T6.js";
|
|
55
|
+
import "../../chunk-N5T4M4GU.js";
|
|
56
|
+
import "../../chunk-TOVPMMHM.js";
|
|
57
|
+
import "../../chunk-RJ5ZGNI3.js";
|
|
58
|
+
import "../../chunk-3WD4HTR2.js";
|
|
59
|
+
import "../../chunk-MKF46GNZ.js";
|
|
60
|
+
import "../../chunk-GL6XM527.js";
|
|
54
61
|
import "../../chunk-CDHS2QDC.js";
|
|
55
62
|
import "../../chunk-Y7FO65VT.js";
|
|
56
63
|
import "../../chunk-FMOBD2OQ.js";
|
|
@@ -64,5 +71,6 @@ export {
|
|
|
64
71
|
readBody,
|
|
65
72
|
relayResponse,
|
|
66
73
|
resolvePoolBoundKey,
|
|
74
|
+
writeBoundAccountError,
|
|
67
75
|
writeError
|
|
68
76
|
};
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var _chunkQWBWGODScjs = require('../chunk-QWBWGODS.cjs');
|
|
8
7
|
|
|
8
|
+
var _chunkJ3QQ6JS5cjs = require('../chunk-J3QQ6JS5.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.MATCH_TEXT_PER_MESSAGE_CAP = _chunkJ3QQ6JS5cjs.MATCH_TEXT_PER_MESSAGE_CAP; exports.MATCH_TEXT_RECENT_MESSAGES = _chunkJ3QQ6JS5cjs.MATCH_TEXT_RECENT_MESSAGES; exports.collectMatchText = _chunkJ3QQ6JS5cjs.collectMatchText; exports.deriveGatewaySessionKey = _chunkJ3QQ6JS5cjs.deriveGatewaySessionKey; exports.deriveSubscriptionSessionKey = _chunkJ3QQ6JS5cjs.deriveSubscriptionSessionKey; exports.flattenMatchText = _chunkJ3QQ6JS5cjs.flattenMatchText;
|
|
@@ -34,11 +34,10 @@ declare const MATCH_TEXT_RECENT_MESSAGES = 6;
|
|
|
34
34
|
declare function flattenMatchText(value: unknown): string;
|
|
35
35
|
/**
|
|
36
36
|
* Build the BOUNDED match-text slice: the `system` prompt plus the most recent
|
|
37
|
-
* `user`/`system` messages, each truncated to a per-message char cap
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* background tool-blocker pre-scan). System prompt is emitted first.
|
|
37
|
+
* `user`/`system` messages, each truncated to a per-message char cap so matching
|
|
38
|
+
* cost is independent of conversation length. Assistant turns are excluded to
|
|
39
|
+
* keep routing based on instructions rather than generated text. System prompt
|
|
40
|
+
* is emitted first.
|
|
42
41
|
*
|
|
43
42
|
* @param anthropicBody the parsed Anthropic Messages request body.
|
|
44
43
|
*/
|
|
@@ -56,5 +55,39 @@ declare function collectMatchText(anthropicBody: Record<string, unknown>): strin
|
|
|
56
55
|
* SAME key for the same body.
|
|
57
56
|
*/
|
|
58
57
|
declare function deriveSubscriptionSessionKey(anthropicBody: Record<string, unknown>): string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Source used to derive a gateway session-affinity key. The value is kept
|
|
60
|
+
* deliberately small and non-sensitive: callers only receive the hashed key,
|
|
61
|
+
* while the source is useful to tests/diagnostics without exposing the raw
|
|
62
|
+
* session id.
|
|
63
|
+
*/
|
|
64
|
+
type SessionKeySource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback';
|
|
65
|
+
/** A hashed session key and the extraction path that produced it. */
|
|
66
|
+
interface DerivedSessionKey {
|
|
67
|
+
readonly key: string;
|
|
68
|
+
readonly source: SessionKeySource;
|
|
69
|
+
}
|
|
70
|
+
/** Options for {@link deriveGatewaySessionKey}. */
|
|
71
|
+
interface GatewaySessionKeyOptions {
|
|
72
|
+
/** A stable route/key seed used when the request has no conversation id. */
|
|
73
|
+
readonly fallbackKey?: string;
|
|
74
|
+
/** Namespaces the conservative fallback (normally `responses`). */
|
|
75
|
+
readonly endpoint?: string;
|
|
76
|
+
}
|
|
77
|
+
/** Header bag accepted by Node's IncomingHttpHeaders and browser-style tests. */
|
|
78
|
+
type SessionRequestHeaders = Record<string, string | string[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Derive one stable account-pool affinity key for a gateway request.
|
|
81
|
+
*
|
|
82
|
+
* Codex/Responses sends the same conversation id in a few wire-compatible
|
|
83
|
+
* locations depending on the client version. Prefer those explicit ids in a
|
|
84
|
+
* deterministic order, then fall back to a bounded content fingerprint made
|
|
85
|
+
* from stable developer/system instructions and the first user input. The
|
|
86
|
+
* final fallback is route-scoped (api key/session + endpoint) so a request
|
|
87
|
+
* with no usable metadata remains conservative and does not rotate accounts
|
|
88
|
+
* on every turn. Raw ids and prompts are never returned or logged; only their
|
|
89
|
+
* truncated SHA-256 digest is exposed as `key`.
|
|
90
|
+
*/
|
|
91
|
+
declare function deriveGatewaySessionKey(body: Record<string, unknown>, headers?: SessionRequestHeaders, options?: GatewaySessionKeyOptions): DerivedSessionKey;
|
|
59
92
|
|
|
60
|
-
export { MATCH_TEXT_PER_MESSAGE_CAP, MATCH_TEXT_RECENT_MESSAGES, collectMatchText, deriveSubscriptionSessionKey, flattenMatchText };
|
|
93
|
+
export { type DerivedSessionKey, type GatewaySessionKeyOptions, MATCH_TEXT_PER_MESSAGE_CAP, MATCH_TEXT_RECENT_MESSAGES, type SessionKeySource, type SessionRequestHeaders, collectMatchText, deriveGatewaySessionKey, deriveSubscriptionSessionKey, flattenMatchText };
|
|
@@ -34,11 +34,10 @@ declare const MATCH_TEXT_RECENT_MESSAGES = 6;
|
|
|
34
34
|
declare function flattenMatchText(value: unknown): string;
|
|
35
35
|
/**
|
|
36
36
|
* Build the BOUNDED match-text slice: the `system` prompt plus the most recent
|
|
37
|
-
* `user`/`system` messages, each truncated to a per-message char cap
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* background tool-blocker pre-scan). System prompt is emitted first.
|
|
37
|
+
* `user`/`system` messages, each truncated to a per-message char cap so matching
|
|
38
|
+
* cost is independent of conversation length. Assistant turns are excluded to
|
|
39
|
+
* keep routing based on instructions rather than generated text. System prompt
|
|
40
|
+
* is emitted first.
|
|
42
41
|
*
|
|
43
42
|
* @param anthropicBody the parsed Anthropic Messages request body.
|
|
44
43
|
*/
|
|
@@ -56,5 +55,39 @@ declare function collectMatchText(anthropicBody: Record<string, unknown>): strin
|
|
|
56
55
|
* SAME key for the same body.
|
|
57
56
|
*/
|
|
58
57
|
declare function deriveSubscriptionSessionKey(anthropicBody: Record<string, unknown>): string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Source used to derive a gateway session-affinity key. The value is kept
|
|
60
|
+
* deliberately small and non-sensitive: callers only receive the hashed key,
|
|
61
|
+
* while the source is useful to tests/diagnostics without exposing the raw
|
|
62
|
+
* session id.
|
|
63
|
+
*/
|
|
64
|
+
type SessionKeySource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback';
|
|
65
|
+
/** A hashed session key and the extraction path that produced it. */
|
|
66
|
+
interface DerivedSessionKey {
|
|
67
|
+
readonly key: string;
|
|
68
|
+
readonly source: SessionKeySource;
|
|
69
|
+
}
|
|
70
|
+
/** Options for {@link deriveGatewaySessionKey}. */
|
|
71
|
+
interface GatewaySessionKeyOptions {
|
|
72
|
+
/** A stable route/key seed used when the request has no conversation id. */
|
|
73
|
+
readonly fallbackKey?: string;
|
|
74
|
+
/** Namespaces the conservative fallback (normally `responses`). */
|
|
75
|
+
readonly endpoint?: string;
|
|
76
|
+
}
|
|
77
|
+
/** Header bag accepted by Node's IncomingHttpHeaders and browser-style tests. */
|
|
78
|
+
type SessionRequestHeaders = Record<string, string | string[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Derive one stable account-pool affinity key for a gateway request.
|
|
81
|
+
*
|
|
82
|
+
* Codex/Responses sends the same conversation id in a few wire-compatible
|
|
83
|
+
* locations depending on the client version. Prefer those explicit ids in a
|
|
84
|
+
* deterministic order, then fall back to a bounded content fingerprint made
|
|
85
|
+
* from stable developer/system instructions and the first user input. The
|
|
86
|
+
* final fallback is route-scoped (api key/session + endpoint) so a request
|
|
87
|
+
* with no usable metadata remains conservative and does not rotate accounts
|
|
88
|
+
* on every turn. Raw ids and prompts are never returned or logged; only their
|
|
89
|
+
* truncated SHA-256 digest is exposed as `key`.
|
|
90
|
+
*/
|
|
91
|
+
declare function deriveGatewaySessionKey(body: Record<string, unknown>, headers?: SessionRequestHeaders, options?: GatewaySessionKeyOptions): DerivedSessionKey;
|
|
59
92
|
|
|
60
|
-
export { MATCH_TEXT_PER_MESSAGE_CAP, MATCH_TEXT_RECENT_MESSAGES, collectMatchText, deriveSubscriptionSessionKey, flattenMatchText };
|
|
93
|
+
export { type DerivedSessionKey, type GatewaySessionKeyOptions, MATCH_TEXT_PER_MESSAGE_CAP, MATCH_TEXT_RECENT_MESSAGES, type SessionKeySource, type SessionRequestHeaders, collectMatchText, deriveGatewaySessionKey, deriveSubscriptionSessionKey, flattenMatchText };
|
|
@@ -2,13 +2,15 @@ import {
|
|
|
2
2
|
MATCH_TEXT_PER_MESSAGE_CAP,
|
|
3
3
|
MATCH_TEXT_RECENT_MESSAGES,
|
|
4
4
|
collectMatchText,
|
|
5
|
+
deriveGatewaySessionKey,
|
|
5
6
|
deriveSubscriptionSessionKey,
|
|
6
7
|
flattenMatchText
|
|
7
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-GFIZ6LQI.js";
|
|
8
9
|
export {
|
|
9
10
|
MATCH_TEXT_PER_MESSAGE_CAP,
|
|
10
11
|
MATCH_TEXT_RECENT_MESSAGES,
|
|
11
12
|
collectMatchText,
|
|
13
|
+
deriveGatewaySessionKey,
|
|
12
14
|
deriveSubscriptionSessionKey,
|
|
13
15
|
flattenMatchText
|
|
14
16
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import { ThinkLevel } from '@omnicross/contracts/completion-types';
|
|
3
|
+
import { UsageCacheKeySource } from '@omnicross/contracts/usage-stats-types';
|
|
3
4
|
import { SubscriptionProviderId, OpenCodeGoTokenConfig, OpenCodeGoScenario, OpenCodeGoModelEntry } from '@omnicross/contracts/subscription-types';
|
|
4
5
|
import { UsageEngineOrigin, UsageTokens } from '@omnicross/contracts/usage-types';
|
|
5
6
|
import { ApiKeyPoolService } from '../completion/ApiKeyPoolService.cjs';
|
|
6
7
|
import { AuthSource } from '../pipeline/AuthSource.cjs';
|
|
8
|
+
import { BoundAccountFallbackPolicy } from '../pipeline/BoundAccountSelectionError.cjs';
|
|
7
9
|
import { SubscriptionAuthProfile } from '../pipeline/SubscriptionAuthSource.cjs';
|
|
8
10
|
import { AuthStrategy } from '../pipeline/SubscriptionAuthStrategy.cjs';
|
|
9
11
|
import { ProviderConfigSource } from '../ports/provider-config-source.cjs';
|
|
@@ -161,6 +163,15 @@ interface AnthropicRouteHandlerParams {
|
|
|
161
163
|
/** Lazy per-request resolver for the pass-through Bearer (takes precedence over the static one). */
|
|
162
164
|
readonly resolvePassThroughAuthToken?: (() => Promise<string | null>) | null;
|
|
163
165
|
readonly subscriptionProfile?: SubscriptionDispatchProfile | null;
|
|
166
|
+
/** Bound subscription account forwarded to the host's Anthropic handler. */
|
|
167
|
+
readonly preferredAccountId?: string;
|
|
168
|
+
readonly preferredAccountGroup?: string;
|
|
169
|
+
/** Strict by default; pool fallback is an explicit endpoint opt-in. */
|
|
170
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
171
|
+
/** Preferred provider-pool key selected by a resource-level binding. */
|
|
172
|
+
readonly preferredKeyId?: string;
|
|
173
|
+
/** Strict by default; pool fallback is an explicit binding opt-in. */
|
|
174
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
164
175
|
readonly maxConcurrency?: number;
|
|
165
176
|
/** Instance-level web-search backend; falls back to the proxy-global one. */
|
|
166
177
|
readonly webSearchService?: WebSearchBackend | null;
|
|
@@ -249,6 +260,15 @@ interface AnthropicSdkHints {
|
|
|
249
260
|
readonly extendedContext?: ExtendedContextHint | null;
|
|
250
261
|
/** Subscription dispatch profile (Codex/Gemini/OpenCodeGo over the SDK wire). */
|
|
251
262
|
readonly subscriptionProfile?: SubscriptionDispatchProfile | null;
|
|
263
|
+
/** Bound subscription account for the delegated Anthropic path. */
|
|
264
|
+
readonly preferredAccountId?: string;
|
|
265
|
+
readonly preferredAccountGroup?: string;
|
|
266
|
+
/** Strict by default; pool fallback is an explicit endpoint opt-in. */
|
|
267
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
268
|
+
/** Preferred provider-pool key for a delegated BYO Anthropic route. */
|
|
269
|
+
readonly preferredKeyId?: string;
|
|
270
|
+
/** Strict by default; pool fallback is an explicit binding opt-in. */
|
|
271
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
252
272
|
/** Per-request max-concurrency cap for the error-handler semaphore. */
|
|
253
273
|
readonly maxConcurrency?: number;
|
|
254
274
|
/** Instance-level web-search backend (falls back to the proxy-global one). */
|
|
@@ -338,10 +358,19 @@ interface RouteContext {
|
|
|
338
358
|
/**
|
|
339
359
|
* Per-request preferred subscription account id (provider/subscription
|
|
340
360
|
* duality). Stamped by the outbound `resolveRoute` from
|
|
341
|
-
* `EndpointRoutingConfig.boundAccountId`;
|
|
342
|
-
*
|
|
361
|
+
* `EndpointRoutingConfig.boundAccountId`; strict bindings fail when this
|
|
362
|
+
* account cannot serve. The pool is used only when the route carries the
|
|
363
|
+
* explicit `'pool'` fallback policy. Undefined ⇒ pool auto-schedule.
|
|
343
364
|
*/
|
|
344
365
|
readonly preferredAccountId?: string;
|
|
366
|
+
/** Account-group binding projected by the outbound gateway. */
|
|
367
|
+
readonly preferredAccountGroup?: string;
|
|
368
|
+
/** Bound-account behavior; `'pool'` is the explicit fallback opt-in. */
|
|
369
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
370
|
+
/** Optional provider key selected by a resource-level gateway binding. */
|
|
371
|
+
readonly preferredKeyId?: string;
|
|
372
|
+
/** Strict by default; `'pool'` permits normal provider key selection. */
|
|
373
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
345
374
|
/**
|
|
346
375
|
* OPAQUE per-account subscription config (opencodego-only). Populated by the
|
|
347
376
|
* route resolver from the subscription registry's `getOpenCodeGoConfig()`
|
|
@@ -430,6 +459,10 @@ interface UsageRecordImportInput {
|
|
|
430
459
|
rawUsage?: unknown;
|
|
431
460
|
runId?: string | null;
|
|
432
461
|
eventId?: string | null;
|
|
462
|
+
/** Safe prompt-cache-key provenance; raw key material is never recorded. */
|
|
463
|
+
cacheKeySource?: UsageCacheKeySource;
|
|
464
|
+
/** Whether the gateway, rather than the client, attached the cache key. */
|
|
465
|
+
cacheKeyInjected?: boolean;
|
|
433
466
|
/**
|
|
434
467
|
* OPTIONAL per-request audit correlation key (request-audit-log) — the outbound
|
|
435
468
|
* relay taps set this to the request's `http.ServerResponse` so the recorder can
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import { ThinkLevel } from '@omnicross/contracts/completion-types';
|
|
3
|
+
import { UsageCacheKeySource } from '@omnicross/contracts/usage-stats-types';
|
|
3
4
|
import { SubscriptionProviderId, OpenCodeGoTokenConfig, OpenCodeGoScenario, OpenCodeGoModelEntry } from '@omnicross/contracts/subscription-types';
|
|
4
5
|
import { UsageEngineOrigin, UsageTokens } from '@omnicross/contracts/usage-types';
|
|
5
6
|
import { ApiKeyPoolService } from '../completion/ApiKeyPoolService.js';
|
|
6
7
|
import { AuthSource } from '../pipeline/AuthSource.js';
|
|
8
|
+
import { BoundAccountFallbackPolicy } from '../pipeline/BoundAccountSelectionError.js';
|
|
7
9
|
import { SubscriptionAuthProfile } from '../pipeline/SubscriptionAuthSource.js';
|
|
8
10
|
import { AuthStrategy } from '../pipeline/SubscriptionAuthStrategy.js';
|
|
9
11
|
import { ProviderConfigSource } from '../ports/provider-config-source.js';
|
|
@@ -161,6 +163,15 @@ interface AnthropicRouteHandlerParams {
|
|
|
161
163
|
/** Lazy per-request resolver for the pass-through Bearer (takes precedence over the static one). */
|
|
162
164
|
readonly resolvePassThroughAuthToken?: (() => Promise<string | null>) | null;
|
|
163
165
|
readonly subscriptionProfile?: SubscriptionDispatchProfile | null;
|
|
166
|
+
/** Bound subscription account forwarded to the host's Anthropic handler. */
|
|
167
|
+
readonly preferredAccountId?: string;
|
|
168
|
+
readonly preferredAccountGroup?: string;
|
|
169
|
+
/** Strict by default; pool fallback is an explicit endpoint opt-in. */
|
|
170
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
171
|
+
/** Preferred provider-pool key selected by a resource-level binding. */
|
|
172
|
+
readonly preferredKeyId?: string;
|
|
173
|
+
/** Strict by default; pool fallback is an explicit binding opt-in. */
|
|
174
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
164
175
|
readonly maxConcurrency?: number;
|
|
165
176
|
/** Instance-level web-search backend; falls back to the proxy-global one. */
|
|
166
177
|
readonly webSearchService?: WebSearchBackend | null;
|
|
@@ -249,6 +260,15 @@ interface AnthropicSdkHints {
|
|
|
249
260
|
readonly extendedContext?: ExtendedContextHint | null;
|
|
250
261
|
/** Subscription dispatch profile (Codex/Gemini/OpenCodeGo over the SDK wire). */
|
|
251
262
|
readonly subscriptionProfile?: SubscriptionDispatchProfile | null;
|
|
263
|
+
/** Bound subscription account for the delegated Anthropic path. */
|
|
264
|
+
readonly preferredAccountId?: string;
|
|
265
|
+
readonly preferredAccountGroup?: string;
|
|
266
|
+
/** Strict by default; pool fallback is an explicit endpoint opt-in. */
|
|
267
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
268
|
+
/** Preferred provider-pool key for a delegated BYO Anthropic route. */
|
|
269
|
+
readonly preferredKeyId?: string;
|
|
270
|
+
/** Strict by default; pool fallback is an explicit binding opt-in. */
|
|
271
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
252
272
|
/** Per-request max-concurrency cap for the error-handler semaphore. */
|
|
253
273
|
readonly maxConcurrency?: number;
|
|
254
274
|
/** Instance-level web-search backend (falls back to the proxy-global one). */
|
|
@@ -338,10 +358,19 @@ interface RouteContext {
|
|
|
338
358
|
/**
|
|
339
359
|
* Per-request preferred subscription account id (provider/subscription
|
|
340
360
|
* duality). Stamped by the outbound `resolveRoute` from
|
|
341
|
-
* `EndpointRoutingConfig.boundAccountId`;
|
|
342
|
-
*
|
|
361
|
+
* `EndpointRoutingConfig.boundAccountId`; strict bindings fail when this
|
|
362
|
+
* account cannot serve. The pool is used only when the route carries the
|
|
363
|
+
* explicit `'pool'` fallback policy. Undefined ⇒ pool auto-schedule.
|
|
343
364
|
*/
|
|
344
365
|
readonly preferredAccountId?: string;
|
|
366
|
+
/** Account-group binding projected by the outbound gateway. */
|
|
367
|
+
readonly preferredAccountGroup?: string;
|
|
368
|
+
/** Bound-account behavior; `'pool'` is the explicit fallback opt-in. */
|
|
369
|
+
readonly boundAccountFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
370
|
+
/** Optional provider key selected by a resource-level gateway binding. */
|
|
371
|
+
readonly preferredKeyId?: string;
|
|
372
|
+
/** Strict by default; `'pool'` permits normal provider key selection. */
|
|
373
|
+
readonly boundKeyFallbackPolicy?: BoundAccountFallbackPolicy;
|
|
345
374
|
/**
|
|
346
375
|
* OPAQUE per-account subscription config (opencodego-only). Populated by the
|
|
347
376
|
* route resolver from the subscription registry's `getOpenCodeGoConfig()`
|
|
@@ -430,6 +459,10 @@ interface UsageRecordImportInput {
|
|
|
430
459
|
rawUsage?: unknown;
|
|
431
460
|
runId?: string | null;
|
|
432
461
|
eventId?: string | null;
|
|
462
|
+
/** Safe prompt-cache-key provenance; raw key material is never recorded. */
|
|
463
|
+
cacheKeySource?: UsageCacheKeySource;
|
|
464
|
+
/** Whether the gateway, rather than the client, attached the cache key. */
|
|
465
|
+
cacheKeyInjected?: boolean;
|
|
433
466
|
/**
|
|
434
467
|
* OPTIONAL per-request audit correlation key (request-audit-log) — the outbound
|
|
435
468
|
* relay taps set this to the request's `http.ServerResponse` so the recorder can
|
package/dist/provider-proxy.cjs
CHANGED
|
@@ -5,49 +5,55 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4BB343BIcjs = require('./chunk-4BB343BI.cjs');
|
|
9
9
|
require('./chunk-HQP3K7PU.cjs');
|
|
10
10
|
require('./chunk-FZ46M34D.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-K52THW2C.cjs');
|
|
18
|
-
require('./chunk-3Q6Z6JTO.cjs');
|
|
11
|
+
require('./chunk-2Z4XM3H5.cjs');
|
|
12
|
+
require('./chunk-OXHNSZ53.cjs');
|
|
13
|
+
require('./chunk-V4TXMEJS.cjs');
|
|
14
|
+
require('./chunk-OVQBNVSV.cjs');
|
|
15
|
+
require('./chunk-5RSZYQJH.cjs');
|
|
16
|
+
require('./chunk-OF3BECU2.cjs');
|
|
19
17
|
require('./chunk-EYZYXJTJ.cjs');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-2E42SAW3.cjs');
|
|
19
|
+
require('./chunk-OJGQKHN5.cjs');
|
|
20
|
+
require('./chunk-IIRPUVPH.cjs');
|
|
22
21
|
require('./chunk-GBHYAGX3.cjs');
|
|
22
|
+
require('./chunk-3OPYJG76.cjs');
|
|
23
|
+
require('./chunk-3SCOLIPT.cjs');
|
|
23
24
|
require('./chunk-RPII3E6Z.cjs');
|
|
24
25
|
require('./chunk-6RPZADX3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-J3QQ6JS5.cjs');
|
|
26
27
|
require('./chunk-UIBD2YY5.cjs');
|
|
27
28
|
require('./chunk-R3HK6R4B.cjs');
|
|
28
|
-
require('./chunk-HYN75H6G.cjs');
|
|
29
|
-
require('./chunk-Q27JY5RG.cjs');
|
|
30
29
|
require('./chunk-QXD4MV2X.cjs');
|
|
31
30
|
require('./chunk-NYUNU75A.cjs');
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-OTZC4TNH.cjs');
|
|
32
|
+
require('./chunk-YWL7YZWS.cjs');
|
|
33
|
+
require('./chunk-YNJNTCSQ.cjs');
|
|
34
34
|
require('./chunk-SVNDB62D.cjs');
|
|
35
|
+
require('./chunk-6QQG7YG3.cjs');
|
|
36
|
+
require('./chunk-25GXJCEZ.cjs');
|
|
37
|
+
require('./chunk-MUHWHQVM.cjs');
|
|
38
|
+
require('./chunk-Q27JY5RG.cjs');
|
|
35
39
|
require('./chunk-APYG5QD7.cjs');
|
|
36
40
|
require('./chunk-L74VDN4A.cjs');
|
|
37
41
|
require('./chunk-4YINUUKQ.cjs');
|
|
38
|
-
require('./chunk-
|
|
42
|
+
require('./chunk-4VZX5F4T.cjs');
|
|
39
43
|
require('./chunk-QBZJ7P2T.cjs');
|
|
40
44
|
require('./chunk-4IH4EL7M.cjs');
|
|
41
45
|
require('./chunk-A2YMUCBT.cjs');
|
|
42
|
-
require('./chunk-
|
|
46
|
+
require('./chunk-XPIOJQS2.cjs');
|
|
43
47
|
require('./chunk-FCR77GYM.cjs');
|
|
44
48
|
require('./chunk-AEOZIDEB.cjs');
|
|
45
49
|
require('./chunk-XSVNC2UD.cjs');
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
50
|
-
require('./chunk-
|
|
50
|
+
require('./chunk-GDIXXKF2.cjs');
|
|
51
|
+
require('./chunk-OKMJLEXX.cjs');
|
|
52
|
+
require('./chunk-KBM2W6UY.cjs');
|
|
53
|
+
require('./chunk-RJUONLUQ.cjs');
|
|
54
|
+
require('./chunk-235MXAGX.cjs');
|
|
55
|
+
require('./chunk-HVBBDBS3.cjs');
|
|
56
|
+
require('./chunk-NKVZ6Z3Y.cjs');
|
|
51
57
|
require('./chunk-NZYN7C3P.cjs');
|
|
52
58
|
require('./chunk-JMJBSACD.cjs');
|
|
53
59
|
require('./chunk-GMMT7RVN.cjs');
|
|
@@ -59,4 +65,4 @@ require('./chunk-UNEFIWXI.cjs');
|
|
|
59
65
|
|
|
60
66
|
|
|
61
67
|
|
|
62
|
-
exports.DEFAULT_ROUTE_IDLE_MS =
|
|
68
|
+
exports.DEFAULT_ROUTE_IDLE_MS = _chunk4BB343BIcjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunk4BB343BIcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunk4BB343BIcjs.ProviderProxyRouteMap; exports.__resetProviderProxyForTests = _chunk4BB343BIcjs.__resetProviderProxyForTests; exports.extractRouteToken = _chunk4BB343BIcjs.extractRouteToken; exports.getProviderProxy = _chunk4BB343BIcjs.getProviderProxy;
|
|
@@ -4,12 +4,14 @@ import { ProviderProxyDeps } from './provider-proxy/types.cjs';
|
|
|
4
4
|
export { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat } from './provider-proxy/types.cjs';
|
|
5
5
|
import 'node:http';
|
|
6
6
|
import '@omnicross/contracts/completion-types';
|
|
7
|
+
import '@omnicross/contracts/usage-stats-types';
|
|
7
8
|
import '@omnicross/contracts/subscription-types';
|
|
8
9
|
import '@omnicross/contracts/usage-types';
|
|
9
10
|
import './completion/ApiKeyPoolService.cjs';
|
|
10
11
|
import '@omnicross/contracts/llm-config';
|
|
11
12
|
import './logger-4GvQNzhE.cjs';
|
|
12
13
|
import './pipeline/AuthSource.cjs';
|
|
14
|
+
import './pipeline/BoundAccountSelectionError.cjs';
|
|
13
15
|
import './pipeline/SubscriptionAuthSource.cjs';
|
|
14
16
|
import './pipeline/SubscriptionAuthStrategy.cjs';
|
|
15
17
|
import './ports/provider-config-source.cjs';
|
package/dist/provider-proxy.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ import { ProviderProxyDeps } from './provider-proxy/types.js';
|
|
|
4
4
|
export { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat } from './provider-proxy/types.js';
|
|
5
5
|
import 'node:http';
|
|
6
6
|
import '@omnicross/contracts/completion-types';
|
|
7
|
+
import '@omnicross/contracts/usage-stats-types';
|
|
7
8
|
import '@omnicross/contracts/subscription-types';
|
|
8
9
|
import '@omnicross/contracts/usage-types';
|
|
9
10
|
import './completion/ApiKeyPoolService.js';
|
|
10
11
|
import '@omnicross/contracts/llm-config';
|
|
11
12
|
import './logger-4GvQNzhE.js';
|
|
12
13
|
import './pipeline/AuthSource.js';
|
|
14
|
+
import './pipeline/BoundAccountSelectionError.js';
|
|
13
15
|
import './pipeline/SubscriptionAuthSource.js';
|
|
14
16
|
import './pipeline/SubscriptionAuthStrategy.js';
|
|
15
17
|
import './ports/provider-config-source.js';
|
package/dist/provider-proxy.js
CHANGED
|
@@ -5,49 +5,55 @@ import {
|
|
|
5
5
|
__resetProviderProxyForTests,
|
|
6
6
|
extractRouteToken,
|
|
7
7
|
getProviderProxy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E3COOKUP.js";
|
|
9
9
|
import "./chunk-VVEHS2LI.js";
|
|
10
10
|
import "./chunk-46RLHI7D.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-IWQAX3CS.js";
|
|
18
|
-
import "./chunk-BODMAL6G.js";
|
|
11
|
+
import "./chunk-MYYR3HZL.js";
|
|
12
|
+
import "./chunk-PEGTIPB3.js";
|
|
13
|
+
import "./chunk-LVUCAWMK.js";
|
|
14
|
+
import "./chunk-32O35CIF.js";
|
|
15
|
+
import "./chunk-FU7EAR73.js";
|
|
16
|
+
import "./chunk-LB6EBS6Y.js";
|
|
19
17
|
import "./chunk-7VU7V2E4.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-FXR6N3SR.js";
|
|
19
|
+
import "./chunk-SOO562NM.js";
|
|
20
|
+
import "./chunk-WNKWAEUR.js";
|
|
22
21
|
import "./chunk-MZNPGW5Q.js";
|
|
22
|
+
import "./chunk-DK4A7DLE.js";
|
|
23
|
+
import "./chunk-XXFYLL7R.js";
|
|
23
24
|
import "./chunk-XTEI64OU.js";
|
|
24
25
|
import "./chunk-XX6NQJMA.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-GFIZ6LQI.js";
|
|
26
27
|
import "./chunk-OE6TDIWW.js";
|
|
27
28
|
import "./chunk-DRWHTIIZ.js";
|
|
28
|
-
import "./chunk-IK3KE3AU.js";
|
|
29
|
-
import "./chunk-ZY6KU6P3.js";
|
|
30
29
|
import "./chunk-JWC6APFQ.js";
|
|
31
30
|
import "./chunk-5ERIZW3D.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-PO3XB56Z.js";
|
|
32
|
+
import "./chunk-N7OOJI5V.js";
|
|
33
|
+
import "./chunk-23S5OPIO.js";
|
|
34
34
|
import "./chunk-AVYJ4YBN.js";
|
|
35
|
+
import "./chunk-OPRS4IQZ.js";
|
|
36
|
+
import "./chunk-2JYRIADS.js";
|
|
37
|
+
import "./chunk-DE2SRBFZ.js";
|
|
38
|
+
import "./chunk-ZY6KU6P3.js";
|
|
35
39
|
import "./chunk-WLYIIEAF.js";
|
|
36
40
|
import "./chunk-TKJMZBAH.js";
|
|
37
41
|
import "./chunk-3QFXFCHG.js";
|
|
38
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-EBLFCNPY.js";
|
|
39
43
|
import "./chunk-AQ5TNQB7.js";
|
|
40
44
|
import "./chunk-XEKD23J5.js";
|
|
41
45
|
import "./chunk-H5JUT3KV.js";
|
|
42
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-7C7DET6S.js";
|
|
43
47
|
import "./chunk-K5NM7VAH.js";
|
|
44
48
|
import "./chunk-WNY4WMRF.js";
|
|
45
49
|
import "./chunk-OZFM4X3S.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-5NJLQ6T6.js";
|
|
51
|
+
import "./chunk-N5T4M4GU.js";
|
|
52
|
+
import "./chunk-TOVPMMHM.js";
|
|
53
|
+
import "./chunk-RJ5ZGNI3.js";
|
|
54
|
+
import "./chunk-3WD4HTR2.js";
|
|
55
|
+
import "./chunk-MKF46GNZ.js";
|
|
56
|
+
import "./chunk-GL6XM527.js";
|
|
51
57
|
import "./chunk-CDHS2QDC.js";
|
|
52
58
|
import "./chunk-Y7FO65VT.js";
|
|
53
59
|
import "./chunk-FMOBD2OQ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
2
2
|
import { IngressFormat, RouteContext } from './provider-proxy/types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { s as OutboundEndpoint, Q as ModelRef, c as EndpointRoutingConfig, R as RequestRole } from './types-CqZD77rS.js';
|
|
4
4
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProviderConfigSource } from './ports/provider-config-source.cjs';
|
|
2
2
|
import { IngressFormat, RouteContext } from './provider-proxy/types.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { s as OutboundEndpoint, Q as ModelRef, c as EndpointRoutingConfig, R as RequestRole } from './types-gjJ5lJ5n.cjs';
|
|
4
4
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIIRPUVPHcjs = require('../chunk-IIRPUVPH.cjs');
|
|
4
4
|
require('../chunk-GBHYAGX3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.TransformerChainExecutor =
|
|
7
|
+
exports.TransformerChainExecutor = _chunkIIRPUVPHcjs.TransformerChainExecutor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOXHNSZ53cjs = require('../../chunk-OXHNSZ53.cjs');
|
|
4
|
+
require('../../chunk-5RSZYQJH.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
exports.AnthropicTransformer =
|
|
7
|
+
exports.AnthropicTransformer = _chunkOXHNSZ53cjs.AnthropicTransformer;
|