@omnicross/core 0.2.0 → 0.3.0
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/{BuiltinToolExecutor-CS2WpXhM.d.cts → BuiltinToolExecutor-BHgH-EaZ.d.cts} +25 -2
- package/dist/{BuiltinToolExecutor-BluWyeob.d.ts → BuiltinToolExecutor-Bi1LmiTP.d.ts} +25 -2
- package/dist/{CompletionService-BiJqftc-.d.cts → CompletionService-BniP7j88.d.cts} +2 -2
- package/dist/{CompletionService-NXN_Av5W.d.ts → CompletionService-BqrKPwfA.d.ts} +2 -2
- package/dist/{ProviderProxy-CgIcCVwk.d.cts → ProviderProxy-Bz_nkOwq.d.cts} +1 -1
- package/dist/{ProviderProxy-DYoY5XoT.d.ts → ProviderProxy-Ckr6oTrE.d.ts} +1 -1
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +2 -2
- package/dist/auth/GeminiCodeAssistProjectResolver.js +1 -1
- package/dist/{chunk-FJNKXOWE.js → chunk-2C3TTBS7.js} +4 -4
- package/dist/{chunk-NZYN7C3P.cjs → chunk-2RCCLQYV.cjs} +53 -53
- package/dist/{chunk-CDHS2QDC.js → chunk-4PFWFODB.js} +53 -53
- package/dist/{chunk-OST5RJOJ.cjs → chunk-4Z3ZLLC2.cjs} +13 -7
- package/dist/chunk-7RJI3NDI.cjs +236 -0
- package/dist/chunk-BTBEJRGL.cjs +781 -0
- package/dist/chunk-DBBR6RHF.js +236 -0
- package/dist/chunk-DXWFBBSK.js +781 -0
- package/dist/chunk-E4QHVXV5.cjs +118 -0
- package/dist/chunk-L7O2YQ5O.js +386 -0
- package/dist/{chunk-WSJE42SG.js → chunk-LKDAN4D7.js} +3684 -2462
- package/dist/{chunk-DEIUR2TH.js → chunk-LQYS2N47.js} +12 -8
- package/dist/chunk-MZEGQSKQ.js +118 -0
- package/dist/chunk-PTU7SXM3.cjs +386 -0
- package/dist/{chunk-CTKM773J.cjs → chunk-UPQIWJIE.cjs} +12 -8
- package/dist/{chunk-CFSGYFOZ.js → chunk-VL5TUDTM.js} +7 -1
- package/dist/{chunk-7B56AJBB.cjs → chunk-VSYQ6XYN.cjs} +2233 -1011
- package/dist/{chunk-TVYA5JSQ.cjs → chunk-ZAPN7XA6.cjs} +5 -5
- package/dist/completion/BuiltinToolExecutor.cjs +2 -2
- package/dist/completion/BuiltinToolExecutor.d.cts +3 -1
- package/dist/completion/BuiltinToolExecutor.d.ts +3 -1
- package/dist/completion/BuiltinToolExecutor.js +1 -1
- package/dist/completion/CompletionService.cjs +11 -10
- package/dist/completion/CompletionService.d.cts +6 -3
- package/dist/completion/CompletionService.d.ts +6 -3
- package/dist/completion/CompletionService.js +10 -9
- package/dist/completion.cjs +11 -10
- package/dist/completion.d.cts +6 -3
- package/dist/completion.d.ts +6 -3
- package/dist/completion.js +10 -9
- package/dist/egress-I46O_p5L.d.cts +126 -0
- package/dist/egress-I46O_p5L.d.ts +126 -0
- package/dist/frontends-Doz0RaWu.d.cts +97 -0
- package/dist/frontends-Doz0RaWu.d.ts +97 -0
- package/dist/image-generation.cjs +2 -2
- package/dist/image-generation.d.cts +7 -4
- package/dist/image-generation.d.ts +7 -4
- package/dist/image-generation.js +1 -1
- package/dist/index.cjs +25 -10
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +24 -9
- package/dist/openai-operation.d.cts +4 -1
- package/dist/openai-operation.d.ts +4 -1
- package/dist/outbound-api/routeResolver.d.cts +9 -5
- package/dist/outbound-api/routeResolver.d.ts +9 -5
- package/dist/outbound-api/subscriptionRegistryPort.d.cts +4 -1
- package/dist/outbound-api/subscriptionRegistryPort.d.ts +4 -1
- package/dist/outbound-api/types.d.cts +8 -4
- package/dist/outbound-api/types.d.ts +8 -4
- package/dist/outbound-api.cjs +25 -10
- package/dist/outbound-api.d.cts +117 -8
- package/dist/outbound-api.d.ts +117 -8
- package/dist/outbound-api.js +24 -9
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +8 -4
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +8 -4
- package/dist/pipeline/upstreamFetch.cjs +2 -2
- package/dist/pipeline/upstreamFetch.js +1 -1
- package/dist/ports.d.cts +8 -4
- package/dist/ports.d.ts +8 -4
- package/dist/provider-proxy/ProviderProxy.cjs +11 -10
- package/dist/provider-proxy/ProviderProxy.d.cts +5 -2
- package/dist/provider-proxy/ProviderProxy.d.ts +5 -2
- package/dist/provider-proxy/ProviderProxy.js +10 -9
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +13 -10
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +22 -3
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +22 -3
- package/dist/provider-proxy/ingress/providerProxyShared.js +12 -9
- package/dist/provider-proxy/types.d.cts +4 -1
- package/dist/provider-proxy/types.d.ts +4 -1
- package/dist/provider-proxy.cjs +11 -10
- package/dist/provider-proxy.d.cts +10 -6
- package/dist/provider-proxy.d.ts +10 -6
- package/dist/provider-proxy.js +10 -9
- package/dist/proxy-UZTtjPZx.d.cts +18 -0
- package/dist/proxy-UZTtjPZx.d.ts +18 -0
- package/dist/{routeResolver-rpKQLyDO.d.cts → routeResolver-Da0yvkL1.d.cts} +2 -2
- package/dist/{routeResolver-CTCcSHWu.d.ts → routeResolver-STwMz_G4.d.ts} +2 -2
- package/dist/runtime-5NCT3J3T.cjs +8 -0
- package/dist/runtime-JTHUWCBM.js +8 -0
- package/dist/runtime-t8AZacFF.d.cts +233 -0
- package/dist/runtime-t8AZacFF.d.ts +233 -0
- package/dist/search/api.cjs +766 -0
- package/dist/search/api.d.cts +385 -0
- package/dist/search/api.d.ts +385 -0
- package/dist/search/api.js +766 -0
- package/dist/search/http.cjs +37 -0
- package/dist/search/http.d.cts +323 -0
- package/dist/search/http.d.ts +323 -0
- package/dist/search/http.js +37 -0
- package/dist/search.cjs +57 -0
- package/dist/search.d.cts +113 -0
- package/dist/search.d.ts +113 -0
- package/dist/search.js +57 -0
- package/dist/transformer/transformers/AnthropicTransformer.cjs +3 -3
- package/dist/transformer/transformers/AnthropicTransformer.js +2 -2
- package/dist/transformer/transformers.cjs +7 -7
- package/dist/transformer/transformers.js +6 -6
- package/dist/transformer.cjs +6 -6
- package/dist/transformer.js +5 -5
- package/dist/{types-DsHBBk3h.d.cts → types-BSIJdsyl.d.cts} +15 -0
- package/dist/{types-CbglB73l.d.cts → types-Be-yt_6T.d.cts} +1 -1
- package/dist/{types-CVRge76p.d.ts → types-By9Tg6-I.d.ts} +15 -0
- package/dist/types-CbCZqLGg.d.cts +127 -0
- package/dist/types-CbCZqLGg.d.ts +127 -0
- package/dist/{types-jjU24eYG.d.cts → types-D-oHYusb.d.cts} +73 -4
- package/dist/{types-Bd72H4SB.d.ts → types-Dm4_36V4.d.ts} +1 -1
- package/dist/{types-5T223WYQ.d.ts → types-Dvlpjn0d.d.ts} +73 -4
- package/package.json +6 -3
- package/dist/{chunk-6OC3ORW6.js → chunk-EUZRH544.js} +3 -3
- package/dist/{chunk-SQMAEDNE.cjs → chunk-POUTD5AM.cjs} +2 -2
package/dist/ports.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export { AutomaticPricingSource, PricingStore } from './ports/pricing-store.js';
|
|
|
4
4
|
export { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
5
5
|
export { UsageEventStore } from './ports/usage-event-store.js';
|
|
6
6
|
export { WebSearchBackend } from './ports/web-search-backend.js';
|
|
7
|
-
export { U as UsageSink } from './types-
|
|
8
|
-
export { O as OutboundCredentialStore } from './types-
|
|
7
|
+
export { U as UsageSink } from './types-By9Tg6-I.js';
|
|
8
|
+
export { O as OutboundCredentialStore } from './types-Dvlpjn0d.js';
|
|
9
9
|
import '@omnicross/contracts/pricing-types';
|
|
10
10
|
import '@omnicross/contracts/llm-config';
|
|
11
11
|
import './transformer/types.js';
|
|
@@ -21,8 +21,11 @@ import './pipeline/AuthSource.js';
|
|
|
21
21
|
import './pipeline/BoundAccountSelectionError.js';
|
|
22
22
|
import './pipeline/SubscriptionAuthSource.js';
|
|
23
23
|
import './pipeline/SubscriptionAuthStrategy.js';
|
|
24
|
+
import './frontends-Doz0RaWu.js';
|
|
25
|
+
import '@omnicross/contracts/search-types';
|
|
26
|
+
import './runtime-t8AZacFF.js';
|
|
24
27
|
import '@omnicross/contracts/image-generation-types';
|
|
25
|
-
import './types-
|
|
28
|
+
import './types-Dm4_36V4.js';
|
|
26
29
|
import 'node:fs/promises';
|
|
27
30
|
import '@omnicross/contracts/account-tokens-types';
|
|
28
31
|
import '@omnicross/contracts/audit-types';
|
|
@@ -30,5 +33,6 @@ import '@omnicross/contracts/billing-types';
|
|
|
30
33
|
import '@omnicross/contracts/health-logging-types';
|
|
31
34
|
import '@omnicross/contracts/voucher-types';
|
|
32
35
|
import '@omnicross/contracts/webhook-types';
|
|
33
|
-
import './ProviderProxy-
|
|
36
|
+
import './ProviderProxy-Ckr6oTrE.js';
|
|
37
|
+
import './types-CbCZqLGg.js';
|
|
34
38
|
import './keyPolicy-zdWTu3CQ.js';
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVSYQ6XYNcjs = require('../chunk-VSYQ6XYN.cjs');
|
|
5
|
+
require('../chunk-E4QHVXV5.cjs');
|
|
5
6
|
require('../chunk-HQP3K7PU.cjs');
|
|
6
7
|
require('../chunk-QVOB2DNX.cjs');
|
|
7
8
|
require('../chunk-7ZHBN75N.cjs');
|
|
9
|
+
require('../chunk-GBHYAGX3.cjs');
|
|
8
10
|
require('../chunk-3OPYJG76.cjs');
|
|
9
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-ZAPN7XA6.cjs');
|
|
12
|
+
require('../chunk-KIQ2HA2A.cjs');
|
|
10
13
|
require('../chunk-NOITAVHA.cjs');
|
|
11
14
|
require('../chunk-QWNUOR7F.cjs');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-5RSZYQJH.cjs');
|
|
15
|
+
require('../chunk-POUTD5AM.cjs');
|
|
14
16
|
require('../chunk-6DDYNS2B.cjs');
|
|
15
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-5RSZYQJH.cjs');
|
|
16
18
|
require('../chunk-32SRZFFP.cjs');
|
|
17
19
|
require('../chunk-2E42SAW3.cjs');
|
|
18
20
|
require('../chunk-5UK3KLE2.cjs');
|
|
19
|
-
require('../chunk-GBHYAGX3.cjs');
|
|
20
21
|
require('../chunk-MXI2PWIC.cjs');
|
|
21
22
|
require('../chunk-RPII3E6Z.cjs');
|
|
22
23
|
require('../chunk-6RPZADX3.cjs');
|
|
@@ -52,14 +53,14 @@ require('../chunk-VXRTQZF2.cjs');
|
|
|
52
53
|
require('../chunk-WX2E2G7H.cjs');
|
|
53
54
|
require('../chunk-77USGNRW.cjs');
|
|
54
55
|
require('../chunk-IUL4VWNU.cjs');
|
|
55
|
-
require('../chunk-
|
|
56
|
+
require('../chunk-4Z3ZLLC2.cjs');
|
|
56
57
|
require('../chunk-235MXAGX.cjs');
|
|
57
58
|
require('../chunk-HVBBDBS3.cjs');
|
|
58
59
|
require('../chunk-NKVZ6Z3Y.cjs');
|
|
59
|
-
require('../chunk-
|
|
60
|
+
require('../chunk-UPQIWJIE.cjs');
|
|
60
61
|
require('../chunk-G4CZIUIB.cjs');
|
|
61
|
-
require('../chunk-
|
|
62
|
+
require('../chunk-2RCCLQYV.cjs');
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
|
|
65
|
-
exports.ProviderProxy =
|
|
66
|
+
exports.ProviderProxy = _chunkVSYQ6XYNcjs.ProviderProxy; exports.isLoopbackAddress = _chunkVSYQ6XYNcjs.isLoopbackAddress;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-Bz_nkOwq.cjs';
|
|
2
|
+
import '../types-BSIJdsyl.cjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import '@omnicross/contracts/completion-types';
|
|
5
5
|
import '@omnicross/contracts/usage-stats-types';
|
|
@@ -17,4 +17,7 @@ import '../transformer/types.cjs';
|
|
|
17
17
|
import '../transformer/TransformerService.cjs';
|
|
18
18
|
import '../ports/web-search-backend.cjs';
|
|
19
19
|
import '@omnicross/contracts/websearch-types';
|
|
20
|
+
import '../frontends-Doz0RaWu.cjs';
|
|
21
|
+
import '@omnicross/contracts/search-types';
|
|
22
|
+
import '../runtime-t8AZacFF.cjs';
|
|
20
23
|
import '@omnicross/contracts/image-generation-types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { P as ProviderProxy, i as isLoopbackAddress } from '../ProviderProxy-Ckr6oTrE.js';
|
|
2
|
+
import '../types-By9Tg6-I.js';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import '@omnicross/contracts/completion-types';
|
|
5
5
|
import '@omnicross/contracts/usage-stats-types';
|
|
@@ -17,4 +17,7 @@ import '../transformer/types.js';
|
|
|
17
17
|
import '../transformer/TransformerService.js';
|
|
18
18
|
import '../ports/web-search-backend.js';
|
|
19
19
|
import '@omnicross/contracts/websearch-types';
|
|
20
|
+
import '../frontends-Doz0RaWu.js';
|
|
21
|
+
import '@omnicross/contracts/search-types';
|
|
22
|
+
import '../runtime-t8AZacFF.js';
|
|
20
23
|
import '@omnicross/contracts/image-generation-types';
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderProxy,
|
|
3
3
|
isLoopbackAddress
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LKDAN4D7.js";
|
|
5
|
+
import "../chunk-MZEGQSKQ.js";
|
|
5
6
|
import "../chunk-VVEHS2LI.js";
|
|
6
7
|
import "../chunk-WTQMX2Q6.js";
|
|
7
8
|
import "../chunk-EYGBM2VC.js";
|
|
9
|
+
import "../chunk-MZNPGW5Q.js";
|
|
8
10
|
import "../chunk-DK4A7DLE.js";
|
|
9
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-2C3TTBS7.js";
|
|
12
|
+
import "../chunk-HN74IGEO.js";
|
|
10
13
|
import "../chunk-V53ZEFXC.js";
|
|
11
14
|
import "../chunk-7PIUVCKK.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-FU7EAR73.js";
|
|
15
|
+
import "../chunk-EUZRH544.js";
|
|
14
16
|
import "../chunk-LFEH7CEO.js";
|
|
15
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-FU7EAR73.js";
|
|
16
18
|
import "../chunk-QIIAMBTM.js";
|
|
17
19
|
import "../chunk-FXR6N3SR.js";
|
|
18
20
|
import "../chunk-AQDON6MB.js";
|
|
19
|
-
import "../chunk-MZNPGW5Q.js";
|
|
20
21
|
import "../chunk-ECZ3ZE2C.js";
|
|
21
22
|
import "../chunk-XTEI64OU.js";
|
|
22
23
|
import "../chunk-XX6NQJMA.js";
|
|
@@ -52,13 +53,13 @@ import "../chunk-4VVCXVB7.js";
|
|
|
52
53
|
import "../chunk-R4VCO2CB.js";
|
|
53
54
|
import "../chunk-WYVGULTQ.js";
|
|
54
55
|
import "../chunk-ZLNHPUFA.js";
|
|
55
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-VL5TUDTM.js";
|
|
56
57
|
import "../chunk-3WD4HTR2.js";
|
|
57
58
|
import "../chunk-MKF46GNZ.js";
|
|
58
59
|
import "../chunk-GL6XM527.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-LQYS2N47.js";
|
|
60
61
|
import "../chunk-4JOU54M5.js";
|
|
61
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-4PFWFODB.js";
|
|
62
63
|
export {
|
|
63
64
|
ProviderProxy,
|
|
64
65
|
isLoopbackAddress
|
|
@@ -10,22 +10,24 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
var _chunkVSYQ6XYNcjs = require('../../chunk-VSYQ6XYN.cjs');
|
|
15
|
+
require('../../chunk-E4QHVXV5.cjs');
|
|
14
16
|
require('../../chunk-HQP3K7PU.cjs');
|
|
15
17
|
require('../../chunk-QVOB2DNX.cjs');
|
|
16
18
|
require('../../chunk-7ZHBN75N.cjs');
|
|
19
|
+
require('../../chunk-GBHYAGX3.cjs');
|
|
17
20
|
require('../../chunk-3OPYJG76.cjs');
|
|
18
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-ZAPN7XA6.cjs');
|
|
22
|
+
require('../../chunk-KIQ2HA2A.cjs');
|
|
19
23
|
require('../../chunk-NOITAVHA.cjs');
|
|
20
24
|
require('../../chunk-QWNUOR7F.cjs');
|
|
21
|
-
require('../../chunk-
|
|
22
|
-
require('../../chunk-5RSZYQJH.cjs');
|
|
25
|
+
require('../../chunk-POUTD5AM.cjs');
|
|
23
26
|
require('../../chunk-6DDYNS2B.cjs');
|
|
24
|
-
require('../../chunk-
|
|
27
|
+
require('../../chunk-5RSZYQJH.cjs');
|
|
25
28
|
require('../../chunk-32SRZFFP.cjs');
|
|
26
29
|
require('../../chunk-2E42SAW3.cjs');
|
|
27
30
|
require('../../chunk-5UK3KLE2.cjs');
|
|
28
|
-
require('../../chunk-GBHYAGX3.cjs');
|
|
29
31
|
require('../../chunk-MXI2PWIC.cjs');
|
|
30
32
|
require('../../chunk-RPII3E6Z.cjs');
|
|
31
33
|
require('../../chunk-6RPZADX3.cjs');
|
|
@@ -61,13 +63,14 @@ require('../../chunk-VXRTQZF2.cjs');
|
|
|
61
63
|
require('../../chunk-WX2E2G7H.cjs');
|
|
62
64
|
require('../../chunk-77USGNRW.cjs');
|
|
63
65
|
require('../../chunk-IUL4VWNU.cjs');
|
|
64
|
-
require('../../chunk-
|
|
66
|
+
require('../../chunk-4Z3ZLLC2.cjs');
|
|
65
67
|
require('../../chunk-235MXAGX.cjs');
|
|
66
68
|
require('../../chunk-HVBBDBS3.cjs');
|
|
67
69
|
require('../../chunk-NKVZ6Z3Y.cjs');
|
|
68
|
-
require('../../chunk-
|
|
70
|
+
require('../../chunk-UPQIWJIE.cjs');
|
|
69
71
|
require('../../chunk-G4CZIUIB.cjs');
|
|
70
|
-
require('../../chunk-
|
|
72
|
+
require('../../chunk-2RCCLQYV.cjs');
|
|
73
|
+
|
|
71
74
|
|
|
72
75
|
|
|
73
76
|
|
|
@@ -80,4 +83,4 @@ require('../../chunk-NZYN7C3P.cjs');
|
|
|
80
83
|
|
|
81
84
|
|
|
82
85
|
|
|
83
|
-
exports.aggregateAnthropicSseToJsonBody =
|
|
86
|
+
exports.aggregateAnthropicSseToJsonBody = _chunkVSYQ6XYNcjs.aggregateAnthropicSseToJsonBody; exports.cancelDiscardedResponse = _chunkVSYQ6XYNcjs.cancelDiscardedResponse; exports.getAnthropicEndpointTransformer = _chunkVSYQ6XYNcjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunkVSYQ6XYNcjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunkVSYQ6XYNcjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunkVSYQ6XYNcjs.getSharedExecutor; exports.projectUpstreamResponseHeaders = _chunkVSYQ6XYNcjs.projectUpstreamResponseHeaders; exports.readBody = _chunkVSYQ6XYNcjs.readBody; exports.relayResponse = _chunkVSYQ6XYNcjs.relayResponse; exports.resolvePoolBoundKey = _chunkVSYQ6XYNcjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunkVSYQ6XYNcjs.writeBoundAccountError; exports.writeError = _chunkVSYQ6XYNcjs.writeError;
|
|
@@ -3,7 +3,7 @@ import { LLMProvider } from '@omnicross/contracts/llm-config';
|
|
|
3
3
|
import { BoundAccountSelectionError } from '../../pipeline/BoundAccountSelectionError.cjs';
|
|
4
4
|
import { TransformerChainExecutor } from '../../transformer/TransformerChainExecutor.cjs';
|
|
5
5
|
import { Transformer } from '../../transformer/types.cjs';
|
|
6
|
-
import { W as ProviderProxyDeps } from '../../types-
|
|
6
|
+
import { W as ProviderProxyDeps } from '../../types-BSIJdsyl.cjs';
|
|
7
7
|
import '@omnicross/contracts/completion-types';
|
|
8
8
|
import '@omnicross/contracts/usage-stats-types';
|
|
9
9
|
import '@omnicross/contracts/subscription-types';
|
|
@@ -17,6 +17,9 @@ import '../../ports/provider-config-source.cjs';
|
|
|
17
17
|
import '../../transformer/TransformerService.cjs';
|
|
18
18
|
import '../../ports/web-search-backend.cjs';
|
|
19
19
|
import '@omnicross/contracts/websearch-types';
|
|
20
|
+
import '../../frontends-Doz0RaWu.cjs';
|
|
21
|
+
import '@omnicross/contracts/search-types';
|
|
22
|
+
import '../../runtime-t8AZacFF.cjs';
|
|
20
23
|
import '@omnicross/contracts/image-generation-types';
|
|
21
24
|
|
|
22
25
|
/**
|
|
@@ -62,6 +65,22 @@ interface StreamUsageTap {
|
|
|
62
65
|
/** Called once at stream end with the last captured usage (only if any). */
|
|
63
66
|
onUsage(rawUsage: Record<string, unknown>): void;
|
|
64
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Release an upstream `Response` this request will NEVER relay — the one
|
|
70
|
+
* discarded by a 401-refresh retry, an ApiKeyPool rebind retry, or a fallback
|
|
71
|
+
* advance.
|
|
72
|
+
*
|
|
73
|
+
* Dropping the reference is NOT enough: an unread body keeps its undici socket
|
|
74
|
+
* (and the whole CONNECT tunnel through any egress proxy) checked out until the
|
|
75
|
+
* GC finalizer eventually reclaims it, so a retry-heavy period accumulates
|
|
76
|
+
* orphan connections against the proxy. Cancelling returns the socket
|
|
77
|
+
* immediately. Awaited so the release is ordered BEFORE the replacement attempt
|
|
78
|
+
* is issued; `cancel()` on an undici body is a local teardown and does no
|
|
79
|
+
* network I/O. Best-effort by construction — an already-locked/consumed body
|
|
80
|
+
* (e.g. one a health sniff read via `clone()`) and a cancel rejection are both
|
|
81
|
+
* no-ops, and a cleanup failure must never break serving.
|
|
82
|
+
*/
|
|
83
|
+
declare function cancelDiscardedResponse(response: Response | undefined): Promise<void>;
|
|
65
84
|
/** Project only explicitly safe end-to-end upstream response metadata. */
|
|
66
85
|
declare function projectUpstreamResponseHeaders(headers: Headers, upstreamIsSse: boolean): Record<string, string>;
|
|
67
86
|
/**
|
|
@@ -107,7 +126,7 @@ onSseEvent?: (event: Record<string, unknown>) => void, signal?: AbortSignal): Pr
|
|
|
107
126
|
*
|
|
108
127
|
* Best-effort: a malformed event is skipped, never thrown.
|
|
109
128
|
*/
|
|
110
|
-
declare function aggregateAnthropicSseToJsonBody(response: Response, rewriteModel?: string): Promise<string>;
|
|
129
|
+
declare function aggregateAnthropicSseToJsonBody(response: Response, rewriteModel?: string, signal?: AbortSignal): Promise<string>;
|
|
111
130
|
/**
|
|
112
131
|
* Write a JSON error response if the headers have not been sent.
|
|
113
132
|
*
|
|
@@ -155,4 +174,4 @@ declare function writeBoundAccountError(res: http.ServerResponse, error: BoundAc
|
|
|
155
174
|
*/
|
|
156
175
|
declare function resolvePoolBoundKey(deps: ProviderProxyDeps, providerId: string, provider: LLMProvider, sessionId: string | null, preferredKeyId?: string, boundKeyFallbackPolicy?: 'strict' | 'pool'): Promise<string>;
|
|
157
176
|
|
|
158
|
-
export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
|
|
177
|
+
export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
|
|
@@ -3,7 +3,7 @@ import { LLMProvider } from '@omnicross/contracts/llm-config';
|
|
|
3
3
|
import { BoundAccountSelectionError } from '../../pipeline/BoundAccountSelectionError.js';
|
|
4
4
|
import { TransformerChainExecutor } from '../../transformer/TransformerChainExecutor.js';
|
|
5
5
|
import { Transformer } from '../../transformer/types.js';
|
|
6
|
-
import { W as ProviderProxyDeps } from '../../types-
|
|
6
|
+
import { W as ProviderProxyDeps } from '../../types-By9Tg6-I.js';
|
|
7
7
|
import '@omnicross/contracts/completion-types';
|
|
8
8
|
import '@omnicross/contracts/usage-stats-types';
|
|
9
9
|
import '@omnicross/contracts/subscription-types';
|
|
@@ -17,6 +17,9 @@ import '../../ports/provider-config-source.js';
|
|
|
17
17
|
import '../../transformer/TransformerService.js';
|
|
18
18
|
import '../../ports/web-search-backend.js';
|
|
19
19
|
import '@omnicross/contracts/websearch-types';
|
|
20
|
+
import '../../frontends-Doz0RaWu.js';
|
|
21
|
+
import '@omnicross/contracts/search-types';
|
|
22
|
+
import '../../runtime-t8AZacFF.js';
|
|
20
23
|
import '@omnicross/contracts/image-generation-types';
|
|
21
24
|
|
|
22
25
|
/**
|
|
@@ -62,6 +65,22 @@ interface StreamUsageTap {
|
|
|
62
65
|
/** Called once at stream end with the last captured usage (only if any). */
|
|
63
66
|
onUsage(rawUsage: Record<string, unknown>): void;
|
|
64
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Release an upstream `Response` this request will NEVER relay — the one
|
|
70
|
+
* discarded by a 401-refresh retry, an ApiKeyPool rebind retry, or a fallback
|
|
71
|
+
* advance.
|
|
72
|
+
*
|
|
73
|
+
* Dropping the reference is NOT enough: an unread body keeps its undici socket
|
|
74
|
+
* (and the whole CONNECT tunnel through any egress proxy) checked out until the
|
|
75
|
+
* GC finalizer eventually reclaims it, so a retry-heavy period accumulates
|
|
76
|
+
* orphan connections against the proxy. Cancelling returns the socket
|
|
77
|
+
* immediately. Awaited so the release is ordered BEFORE the replacement attempt
|
|
78
|
+
* is issued; `cancel()` on an undici body is a local teardown and does no
|
|
79
|
+
* network I/O. Best-effort by construction — an already-locked/consumed body
|
|
80
|
+
* (e.g. one a health sniff read via `clone()`) and a cancel rejection are both
|
|
81
|
+
* no-ops, and a cleanup failure must never break serving.
|
|
82
|
+
*/
|
|
83
|
+
declare function cancelDiscardedResponse(response: Response | undefined): Promise<void>;
|
|
65
84
|
/** Project only explicitly safe end-to-end upstream response metadata. */
|
|
66
85
|
declare function projectUpstreamResponseHeaders(headers: Headers, upstreamIsSse: boolean): Record<string, string>;
|
|
67
86
|
/**
|
|
@@ -107,7 +126,7 @@ onSseEvent?: (event: Record<string, unknown>) => void, signal?: AbortSignal): Pr
|
|
|
107
126
|
*
|
|
108
127
|
* Best-effort: a malformed event is skipped, never thrown.
|
|
109
128
|
*/
|
|
110
|
-
declare function aggregateAnthropicSseToJsonBody(response: Response, rewriteModel?: string): Promise<string>;
|
|
129
|
+
declare function aggregateAnthropicSseToJsonBody(response: Response, rewriteModel?: string, signal?: AbortSignal): Promise<string>;
|
|
111
130
|
/**
|
|
112
131
|
* Write a JSON error response if the headers have not been sent.
|
|
113
132
|
*
|
|
@@ -155,4 +174,4 @@ declare function writeBoundAccountError(res: http.ServerResponse, error: BoundAc
|
|
|
155
174
|
*/
|
|
156
175
|
declare function resolvePoolBoundKey(deps: ProviderProxyDeps, providerId: string, provider: LLMProvider, sessionId: string | null, preferredKeyId?: string, boundKeyFallbackPolicy?: 'strict' | 'pool'): Promise<string>;
|
|
157
176
|
|
|
158
|
-
export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
|
|
177
|
+
export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aggregateAnthropicSseToJsonBody,
|
|
3
|
+
cancelDiscardedResponse,
|
|
3
4
|
getAnthropicEndpointTransformer,
|
|
4
5
|
getGeminiEndpointTransformer,
|
|
5
6
|
getResponsesEndpointTransformer,
|
|
@@ -10,22 +11,23 @@ import {
|
|
|
10
11
|
resolvePoolBoundKey,
|
|
11
12
|
writeBoundAccountError,
|
|
12
13
|
writeError
|
|
13
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-LKDAN4D7.js";
|
|
15
|
+
import "../../chunk-MZEGQSKQ.js";
|
|
14
16
|
import "../../chunk-VVEHS2LI.js";
|
|
15
17
|
import "../../chunk-WTQMX2Q6.js";
|
|
16
18
|
import "../../chunk-EYGBM2VC.js";
|
|
19
|
+
import "../../chunk-MZNPGW5Q.js";
|
|
17
20
|
import "../../chunk-DK4A7DLE.js";
|
|
18
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-2C3TTBS7.js";
|
|
22
|
+
import "../../chunk-HN74IGEO.js";
|
|
19
23
|
import "../../chunk-V53ZEFXC.js";
|
|
20
24
|
import "../../chunk-7PIUVCKK.js";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-FU7EAR73.js";
|
|
25
|
+
import "../../chunk-EUZRH544.js";
|
|
23
26
|
import "../../chunk-LFEH7CEO.js";
|
|
24
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-FU7EAR73.js";
|
|
25
28
|
import "../../chunk-QIIAMBTM.js";
|
|
26
29
|
import "../../chunk-FXR6N3SR.js";
|
|
27
30
|
import "../../chunk-AQDON6MB.js";
|
|
28
|
-
import "../../chunk-MZNPGW5Q.js";
|
|
29
31
|
import "../../chunk-ECZ3ZE2C.js";
|
|
30
32
|
import "../../chunk-XTEI64OU.js";
|
|
31
33
|
import "../../chunk-XX6NQJMA.js";
|
|
@@ -61,15 +63,16 @@ import "../../chunk-4VVCXVB7.js";
|
|
|
61
63
|
import "../../chunk-R4VCO2CB.js";
|
|
62
64
|
import "../../chunk-WYVGULTQ.js";
|
|
63
65
|
import "../../chunk-ZLNHPUFA.js";
|
|
64
|
-
import "../../chunk-
|
|
66
|
+
import "../../chunk-VL5TUDTM.js";
|
|
65
67
|
import "../../chunk-3WD4HTR2.js";
|
|
66
68
|
import "../../chunk-MKF46GNZ.js";
|
|
67
69
|
import "../../chunk-GL6XM527.js";
|
|
68
|
-
import "../../chunk-
|
|
70
|
+
import "../../chunk-LQYS2N47.js";
|
|
69
71
|
import "../../chunk-4JOU54M5.js";
|
|
70
|
-
import "../../chunk-
|
|
72
|
+
import "../../chunk-4PFWFODB.js";
|
|
71
73
|
export {
|
|
72
74
|
aggregateAnthropicSseToJsonBody,
|
|
75
|
+
cancelDiscardedResponse,
|
|
73
76
|
getAnthropicEndpointTransformer,
|
|
74
77
|
getGeminiEndpointTransformer,
|
|
75
78
|
getResponsesEndpointTransformer,
|
|
@@ -10,10 +10,13 @@ import '../pipeline/SubscriptionAuthSource.cjs';
|
|
|
10
10
|
import '../pipeline/SubscriptionAuthStrategy.cjs';
|
|
11
11
|
import '../ports/provider-config-source.cjs';
|
|
12
12
|
import '../ports/web-search-backend.cjs';
|
|
13
|
-
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, D as IngressFormat, W as ProviderProxyDeps, X as ProxyAttribution, aB as RetryCallback, aC as RouteAuthMode, aD as RouteContext, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aS as UsageRecordImportInput, U as UsageRecorderImport } from '../types-
|
|
13
|
+
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, D as IngressFormat, W as ProviderProxyDeps, X as ProxyAttribution, aB as RetryCallback, aC as RouteAuthMode, aD as RouteContext, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aS as UsageRecordImportInput, U as UsageRecorderImport } from '../types-BSIJdsyl.cjs';
|
|
14
|
+
import '../frontends-Doz0RaWu.cjs';
|
|
15
|
+
import '../runtime-t8AZacFF.cjs';
|
|
14
16
|
import '@omnicross/contracts/llm-config';
|
|
15
17
|
import '../logger-4GvQNzhE.cjs';
|
|
16
18
|
import '../transformer/types.cjs';
|
|
17
19
|
import '../transformer/TransformerService.cjs';
|
|
18
20
|
import '@omnicross/contracts/websearch-types';
|
|
19
21
|
import '@omnicross/contracts/image-generation-types';
|
|
22
|
+
import '@omnicross/contracts/search-types';
|
|
@@ -10,10 +10,13 @@ import '../pipeline/SubscriptionAuthSource.js';
|
|
|
10
10
|
import '../pipeline/SubscriptionAuthStrategy.js';
|
|
11
11
|
import '../ports/provider-config-source.js';
|
|
12
12
|
import '../ports/web-search-backend.js';
|
|
13
|
-
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, D as IngressFormat, W as ProviderProxyDeps, X as ProxyAttribution, aB as RetryCallback, aC as RouteAuthMode, aD as RouteContext, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aS as UsageRecordImportInput, U as UsageRecorderImport } from '../types-
|
|
13
|
+
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, D as IngressFormat, W as ProviderProxyDeps, X as ProxyAttribution, aB as RetryCallback, aC as RouteAuthMode, aD as RouteContext, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aS as UsageRecordImportInput, U as UsageRecorderImport } from '../types-By9Tg6-I.js';
|
|
14
|
+
import '../frontends-Doz0RaWu.js';
|
|
15
|
+
import '../runtime-t8AZacFF.js';
|
|
14
16
|
import '@omnicross/contracts/llm-config';
|
|
15
17
|
import '../logger-4GvQNzhE.js';
|
|
16
18
|
import '../transformer/types.js';
|
|
17
19
|
import '../transformer/TransformerService.js';
|
|
18
20
|
import '@omnicross/contracts/websearch-types';
|
|
19
21
|
import '@omnicross/contracts/image-generation-types';
|
|
22
|
+
import '@omnicross/contracts/search-types';
|
package/dist/provider-proxy.cjs
CHANGED
|
@@ -40,22 +40,23 @@
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkVSYQ6XYNcjs = require('./chunk-VSYQ6XYN.cjs');
|
|
44
|
+
require('./chunk-E4QHVXV5.cjs');
|
|
44
45
|
require('./chunk-HQP3K7PU.cjs');
|
|
45
46
|
require('./chunk-QVOB2DNX.cjs');
|
|
46
47
|
require('./chunk-7ZHBN75N.cjs');
|
|
48
|
+
require('./chunk-GBHYAGX3.cjs');
|
|
47
49
|
require('./chunk-3OPYJG76.cjs');
|
|
48
|
-
require('./chunk-
|
|
50
|
+
require('./chunk-ZAPN7XA6.cjs');
|
|
51
|
+
require('./chunk-KIQ2HA2A.cjs');
|
|
49
52
|
require('./chunk-NOITAVHA.cjs');
|
|
50
53
|
require('./chunk-QWNUOR7F.cjs');
|
|
51
|
-
require('./chunk-
|
|
52
|
-
require('./chunk-5RSZYQJH.cjs');
|
|
54
|
+
require('./chunk-POUTD5AM.cjs');
|
|
53
55
|
require('./chunk-6DDYNS2B.cjs');
|
|
54
|
-
require('./chunk-
|
|
56
|
+
require('./chunk-5RSZYQJH.cjs');
|
|
55
57
|
require('./chunk-32SRZFFP.cjs');
|
|
56
58
|
require('./chunk-2E42SAW3.cjs');
|
|
57
59
|
require('./chunk-5UK3KLE2.cjs');
|
|
58
|
-
require('./chunk-GBHYAGX3.cjs');
|
|
59
60
|
require('./chunk-MXI2PWIC.cjs');
|
|
60
61
|
require('./chunk-RPII3E6Z.cjs');
|
|
61
62
|
require('./chunk-6RPZADX3.cjs');
|
|
@@ -91,13 +92,13 @@ require('./chunk-VXRTQZF2.cjs');
|
|
|
91
92
|
require('./chunk-WX2E2G7H.cjs');
|
|
92
93
|
require('./chunk-77USGNRW.cjs');
|
|
93
94
|
require('./chunk-IUL4VWNU.cjs');
|
|
94
|
-
require('./chunk-
|
|
95
|
+
require('./chunk-4Z3ZLLC2.cjs');
|
|
95
96
|
require('./chunk-235MXAGX.cjs');
|
|
96
97
|
require('./chunk-HVBBDBS3.cjs');
|
|
97
98
|
require('./chunk-NKVZ6Z3Y.cjs');
|
|
98
|
-
require('./chunk-
|
|
99
|
+
require('./chunk-UPQIWJIE.cjs');
|
|
99
100
|
require('./chunk-G4CZIUIB.cjs');
|
|
100
|
-
require('./chunk-
|
|
101
|
+
require('./chunk-2RCCLQYV.cjs');
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
|
|
@@ -140,4 +141,4 @@ require('./chunk-NZYN7C3P.cjs');
|
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
|
|
143
|
-
exports.DEFAULT_ROUTE_IDLE_MS =
|
|
144
|
+
exports.DEFAULT_ROUTE_IDLE_MS = _chunkVSYQ6XYNcjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunkVSYQ6XYNcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkVSYQ6XYNcjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkVSYQ6XYNcjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkVSYQ6XYNcjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkVSYQ6XYNcjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkVSYQ6XYNcjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkVSYQ6XYNcjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkVSYQ6XYNcjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkVSYQ6XYNcjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkVSYQ6XYNcjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkVSYQ6XYNcjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkVSYQ6XYNcjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.ResponsesAffinityStore = _chunkVSYQ6XYNcjs.ResponsesAffinityStore; exports.RouteLeaseError = _chunkVSYQ6XYNcjs.RouteLeaseError; exports.RouteLeaseManager = _chunkVSYQ6XYNcjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkVSYQ6XYNcjs.RouteLeaseTargetResolver; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkVSYQ6XYNcjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.__resetProviderProxyForTests = _chunkVSYQ6XYNcjs.__resetProviderProxyForTests; exports.canonicalizeRouteLeasePayload = _chunkVSYQ6XYNcjs.canonicalizeRouteLeasePayload; exports.classifyResponsesProfile = _chunkVSYQ6XYNcjs.classifyResponsesProfile; exports.createNativeResponsesHostedImageIngress = _chunkVSYQ6XYNcjs.createNativeResponsesHostedImageIngress; exports.createResponsesCompactHandler = _chunkVSYQ6XYNcjs.createResponsesCompactHandler; exports.extractRouteToken = _chunkVSYQ6XYNcjs.extractRouteToken; exports.getProviderProxy = _chunkVSYQ6XYNcjs.getProviderProxy; exports.getResponsesAffinityStore = _chunkVSYQ6XYNcjs.getResponsesAffinityStore; exports.hashRouteLeasePayload = _chunkVSYQ6XYNcjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkVSYQ6XYNcjs.hashRouteLeaseSessionId; exports.isLoopbackAddress = _chunkVSYQ6XYNcjs.isLoopbackAddress; exports.normalizeRouteLeaseIdempotencyKey = _chunkVSYQ6XYNcjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkVSYQ6XYNcjs.normalizeRouteLeaseTtl; exports.parseRouteLeaseCreate = _chunkVSYQ6XYNcjs.parseRouteLeaseCreate; exports.previousResponseNotFound = _chunkVSYQ6XYNcjs.previousResponseNotFound; exports.registerResponsesCompactOperation = _chunkVSYQ6XYNcjs.registerResponsesCompactOperation; exports.routeLeaseRuntime = _chunkVSYQ6XYNcjs.routeLeaseRuntime;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderProxy-
|
|
2
|
-
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-
|
|
3
|
-
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-
|
|
4
|
-
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-
|
|
5
|
-
import { g as GatewayBindingTarget } from './types-
|
|
1
|
+
import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderProxy-Bz_nkOwq.cjs';
|
|
2
|
+
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-Bz_nkOwq.cjs';
|
|
3
|
+
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-BSIJdsyl.cjs';
|
|
4
|
+
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-BSIJdsyl.cjs';
|
|
5
|
+
import { g as GatewayBindingTarget } from './types-D-oHYusb.cjs';
|
|
6
6
|
import { ProviderConfigSource } from './ports/provider-config-source.cjs';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
@@ -18,8 +18,11 @@ import './pipeline/SubscriptionAuthSource.cjs';
|
|
|
18
18
|
import './pipeline/SubscriptionAuthStrategy.cjs';
|
|
19
19
|
import './ports/web-search-backend.cjs';
|
|
20
20
|
import '@omnicross/contracts/websearch-types';
|
|
21
|
+
import './frontends-Doz0RaWu.cjs';
|
|
22
|
+
import '@omnicross/contracts/search-types';
|
|
23
|
+
import './runtime-t8AZacFF.cjs';
|
|
21
24
|
import '@omnicross/contracts/image-generation-types';
|
|
22
|
-
import './types-
|
|
25
|
+
import './types-Be-yt_6T.cjs';
|
|
23
26
|
import 'node:fs/promises';
|
|
24
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
25
28
|
import '@omnicross/contracts/audit-types';
|
|
@@ -27,6 +30,7 @@ import '@omnicross/contracts/billing-types';
|
|
|
27
30
|
import '@omnicross/contracts/health-logging-types';
|
|
28
31
|
import '@omnicross/contracts/voucher-types';
|
|
29
32
|
import '@omnicross/contracts/webhook-types';
|
|
33
|
+
import './types-CbCZqLGg.cjs';
|
|
30
34
|
import './keyPolicy-zdWTu3CQ.cjs';
|
|
31
35
|
import './transformer/types.cjs';
|
|
32
36
|
import './transformer/TransformerService.cjs';
|
package/dist/provider-proxy.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderProxy-
|
|
2
|
-
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-
|
|
3
|
-
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-
|
|
4
|
-
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-
|
|
5
|
-
import { g as GatewayBindingTarget } from './types-
|
|
1
|
+
import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderProxy-Ckr6oTrE.js';
|
|
2
|
+
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-Ckr6oTrE.js';
|
|
3
|
+
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-By9Tg6-I.js';
|
|
4
|
+
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-By9Tg6-I.js';
|
|
5
|
+
import { g as GatewayBindingTarget } from './types-Dvlpjn0d.js';
|
|
6
6
|
import { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
@@ -18,8 +18,11 @@ import './pipeline/SubscriptionAuthSource.js';
|
|
|
18
18
|
import './pipeline/SubscriptionAuthStrategy.js';
|
|
19
19
|
import './ports/web-search-backend.js';
|
|
20
20
|
import '@omnicross/contracts/websearch-types';
|
|
21
|
+
import './frontends-Doz0RaWu.js';
|
|
22
|
+
import '@omnicross/contracts/search-types';
|
|
23
|
+
import './runtime-t8AZacFF.js';
|
|
21
24
|
import '@omnicross/contracts/image-generation-types';
|
|
22
|
-
import './types-
|
|
25
|
+
import './types-Dm4_36V4.js';
|
|
23
26
|
import 'node:fs/promises';
|
|
24
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
25
28
|
import '@omnicross/contracts/audit-types';
|
|
@@ -27,6 +30,7 @@ import '@omnicross/contracts/billing-types';
|
|
|
27
30
|
import '@omnicross/contracts/health-logging-types';
|
|
28
31
|
import '@omnicross/contracts/voucher-types';
|
|
29
32
|
import '@omnicross/contracts/webhook-types';
|
|
33
|
+
import './types-CbCZqLGg.js';
|
|
30
34
|
import './keyPolicy-zdWTu3CQ.js';
|
|
31
35
|
import './transformer/types.js';
|
|
32
36
|
import './transformer/TransformerService.js';
|
package/dist/provider-proxy.js
CHANGED
|
@@ -40,22 +40,23 @@ import {
|
|
|
40
40
|
previousResponseNotFound,
|
|
41
41
|
registerResponsesCompactOperation,
|
|
42
42
|
routeLeaseRuntime
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LKDAN4D7.js";
|
|
44
|
+
import "./chunk-MZEGQSKQ.js";
|
|
44
45
|
import "./chunk-VVEHS2LI.js";
|
|
45
46
|
import "./chunk-WTQMX2Q6.js";
|
|
46
47
|
import "./chunk-EYGBM2VC.js";
|
|
48
|
+
import "./chunk-MZNPGW5Q.js";
|
|
47
49
|
import "./chunk-DK4A7DLE.js";
|
|
48
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-2C3TTBS7.js";
|
|
51
|
+
import "./chunk-HN74IGEO.js";
|
|
49
52
|
import "./chunk-V53ZEFXC.js";
|
|
50
53
|
import "./chunk-7PIUVCKK.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-FU7EAR73.js";
|
|
54
|
+
import "./chunk-EUZRH544.js";
|
|
53
55
|
import "./chunk-LFEH7CEO.js";
|
|
54
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-FU7EAR73.js";
|
|
55
57
|
import "./chunk-QIIAMBTM.js";
|
|
56
58
|
import "./chunk-FXR6N3SR.js";
|
|
57
59
|
import "./chunk-AQDON6MB.js";
|
|
58
|
-
import "./chunk-MZNPGW5Q.js";
|
|
59
60
|
import "./chunk-ECZ3ZE2C.js";
|
|
60
61
|
import "./chunk-XTEI64OU.js";
|
|
61
62
|
import "./chunk-XX6NQJMA.js";
|
|
@@ -91,13 +92,13 @@ import "./chunk-4VVCXVB7.js";
|
|
|
91
92
|
import "./chunk-R4VCO2CB.js";
|
|
92
93
|
import "./chunk-WYVGULTQ.js";
|
|
93
94
|
import "./chunk-ZLNHPUFA.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-VL5TUDTM.js";
|
|
95
96
|
import "./chunk-3WD4HTR2.js";
|
|
96
97
|
import "./chunk-MKF46GNZ.js";
|
|
97
98
|
import "./chunk-GL6XM527.js";
|
|
98
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-LQYS2N47.js";
|
|
99
100
|
import "./chunk-4JOU54M5.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-4PFWFODB.js";
|
|
101
102
|
export {
|
|
102
103
|
DEFAULT_ROUTE_IDLE_MS,
|
|
103
104
|
ProviderProxy,
|