@omnicross/core 0.2.0 → 0.2.1
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/LICENSE +21 -21
- package/NOTICE +57 -57
- package/README.md +22 -22
- 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-OST5RJOJ.cjs → chunk-4Z3ZLLC2.cjs} +13 -7
- package/dist/chunk-7RJI3NDI.cjs +236 -0
- package/dist/chunk-D4WNI6BR.cjs +386 -0
- package/dist/chunk-DBBR6RHF.js +236 -0
- package/dist/chunk-E4QHVXV5.cjs +118 -0
- package/dist/chunk-HL2YSPL7.cjs +673 -0
- package/dist/chunk-LFPQ2OVH.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-NZYN7C3P.cjs → chunk-MPXOKQJP.cjs} +53 -53
- package/dist/chunk-MZEGQSKQ.js +118 -0
- package/dist/chunk-NLUOTJWB.js +673 -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-CDHS2QDC.js → chunk-Y4CRNHJO.js} +53 -53
- 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-6QXNU526.cjs +8 -0
- package/dist/runtime-M5WXLD2R.js +8 -0
- package/dist/runtime-t8AZacFF.d.cts +233 -0
- package/dist/runtime-t8AZacFF.d.ts +233 -0
- package/dist/search/api.cjs +761 -0
- package/dist/search/api.d.cts +370 -0
- package/dist/search/api.d.ts +370 -0
- package/dist/search/api.js +761 -0
- package/dist/search/http.cjs +37 -0
- package/dist/search/http.d.cts +269 -0
- package/dist/search/http.d.ts +269 -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 +5 -3
- package/dist/{chunk-6OC3ORW6.js → chunk-EUZRH544.js} +3 -3
- package/dist/{chunk-SQMAEDNE.cjs → chunk-POUTD5AM.cjs} +2 -2
package/dist/outbound-api.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DEFAULT_FINGERPRINT,
|
|
9
9
|
DEFAULT_IMAGES_SERVER_CONFIG,
|
|
10
10
|
DEFAULT_OUTBOUND_PORT,
|
|
11
|
+
DEFAULT_SEARCH_SERVER_CONFIG,
|
|
11
12
|
DEFAULT_USER_MESSAGE_QUEUE,
|
|
12
13
|
IMAGE_SERVER_HARD_CEILINGS,
|
|
13
14
|
KeySpendTracker,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
candidateBackgroundModelIds,
|
|
24
25
|
candidateGatewayBindings,
|
|
25
26
|
checkKeyQuota,
|
|
27
|
+
codexSearchRoutePath,
|
|
26
28
|
computeKeyExpiry,
|
|
27
29
|
computeVoucherGrant,
|
|
28
30
|
createIntegrationKey,
|
|
@@ -33,9 +35,11 @@ import {
|
|
|
33
35
|
gatewayBindingToEndpointConfig,
|
|
34
36
|
generateVoucherCode,
|
|
35
37
|
getOutboundApiServer,
|
|
38
|
+
handleCodexSearchRequest,
|
|
36
39
|
handleVoucherRedeem,
|
|
37
40
|
hashKey,
|
|
38
41
|
hashVoucherCode,
|
|
42
|
+
isCodexSearchRequest,
|
|
39
43
|
isConcurrencyRejection,
|
|
40
44
|
isRedeemRequest,
|
|
41
45
|
isSerialQueueTimeout,
|
|
@@ -55,6 +59,8 @@ import {
|
|
|
55
59
|
normalizeProxyConfig,
|
|
56
60
|
normalizeProxySegment,
|
|
57
61
|
normalizeQueueSegments,
|
|
62
|
+
normalizeSearchApiProviderConfigs,
|
|
63
|
+
normalizeSearchServerConfig,
|
|
58
64
|
normalizeServerConfig,
|
|
59
65
|
normalizeVoucher,
|
|
60
66
|
normalizeWebhookDestination,
|
|
@@ -67,25 +73,27 @@ import {
|
|
|
67
73
|
toVoucherInfo,
|
|
68
74
|
validateImagesServerConfig,
|
|
69
75
|
validateOutboundPermissions,
|
|
76
|
+
validateSearchServerConfig,
|
|
70
77
|
verifyKey,
|
|
71
78
|
verifyPresentedKey,
|
|
72
79
|
voucherCodePrefix
|
|
73
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-LKDAN4D7.js";
|
|
81
|
+
import "./chunk-MZEGQSKQ.js";
|
|
74
82
|
import "./chunk-VVEHS2LI.js";
|
|
75
83
|
import "./chunk-WTQMX2Q6.js";
|
|
76
84
|
import "./chunk-EYGBM2VC.js";
|
|
85
|
+
import "./chunk-MZNPGW5Q.js";
|
|
77
86
|
import "./chunk-DK4A7DLE.js";
|
|
78
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-2C3TTBS7.js";
|
|
88
|
+
import "./chunk-HN74IGEO.js";
|
|
79
89
|
import "./chunk-V53ZEFXC.js";
|
|
80
90
|
import "./chunk-7PIUVCKK.js";
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-FU7EAR73.js";
|
|
91
|
+
import "./chunk-EUZRH544.js";
|
|
83
92
|
import "./chunk-LFEH7CEO.js";
|
|
84
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-FU7EAR73.js";
|
|
85
94
|
import "./chunk-QIIAMBTM.js";
|
|
86
95
|
import "./chunk-FXR6N3SR.js";
|
|
87
96
|
import "./chunk-AQDON6MB.js";
|
|
88
|
-
import "./chunk-MZNPGW5Q.js";
|
|
89
97
|
import "./chunk-ECZ3ZE2C.js";
|
|
90
98
|
import "./chunk-XTEI64OU.js";
|
|
91
99
|
import "./chunk-XX6NQJMA.js";
|
|
@@ -149,13 +157,13 @@ import "./chunk-4VVCXVB7.js";
|
|
|
149
157
|
import "./chunk-R4VCO2CB.js";
|
|
150
158
|
import "./chunk-WYVGULTQ.js";
|
|
151
159
|
import "./chunk-ZLNHPUFA.js";
|
|
152
|
-
import "./chunk-
|
|
160
|
+
import "./chunk-VL5TUDTM.js";
|
|
153
161
|
import "./chunk-3WD4HTR2.js";
|
|
154
162
|
import "./chunk-MKF46GNZ.js";
|
|
155
163
|
import "./chunk-GL6XM527.js";
|
|
156
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-LQYS2N47.js";
|
|
157
165
|
import "./chunk-4JOU54M5.js";
|
|
158
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-Y4CRNHJO.js";
|
|
159
167
|
export {
|
|
160
168
|
AUDIT_REDACTED,
|
|
161
169
|
BoundAccountSelectionError,
|
|
@@ -168,6 +176,7 @@ export {
|
|
|
168
176
|
DEFAULT_FINGERPRINT,
|
|
169
177
|
DEFAULT_IMAGES_SERVER_CONFIG,
|
|
170
178
|
DEFAULT_OUTBOUND_PORT,
|
|
179
|
+
DEFAULT_SEARCH_SERVER_CONFIG,
|
|
171
180
|
DEFAULT_USER_MESSAGE_QUEUE,
|
|
172
181
|
ENDPOINT_MODEL_KINDS,
|
|
173
182
|
IMAGE_SERVER_HARD_CEILINGS,
|
|
@@ -189,6 +198,7 @@ export {
|
|
|
189
198
|
candidateGatewayBindings,
|
|
190
199
|
checkKeyQuota,
|
|
191
200
|
classifyModelPrefix,
|
|
201
|
+
codexSearchRoutePath,
|
|
192
202
|
computeKeyExpiry,
|
|
193
203
|
computeVoucherGrant,
|
|
194
204
|
createIntegrationKey,
|
|
@@ -203,10 +213,12 @@ export {
|
|
|
203
213
|
gatewayBindingToEndpointConfig,
|
|
204
214
|
generateVoucherCode,
|
|
205
215
|
getOutboundApiServer,
|
|
216
|
+
handleCodexSearchRequest,
|
|
206
217
|
handleVoucherRedeem,
|
|
207
218
|
hashKey,
|
|
208
219
|
hashVoucherCode,
|
|
209
220
|
isBoundAccountSelectionError,
|
|
221
|
+
isCodexSearchRequest,
|
|
210
222
|
isConcurrencyRejection,
|
|
211
223
|
isKindMappedEndpoint,
|
|
212
224
|
isRedeemRequest,
|
|
@@ -229,6 +241,8 @@ export {
|
|
|
229
241
|
normalizeProxyConfig,
|
|
230
242
|
normalizeProxySegment,
|
|
231
243
|
normalizeQueueSegments,
|
|
244
|
+
normalizeSearchApiProviderConfigs,
|
|
245
|
+
normalizeSearchServerConfig,
|
|
232
246
|
normalizeServerConfig,
|
|
233
247
|
normalizeVoucher,
|
|
234
248
|
normalizeWebhookDestination,
|
|
@@ -247,6 +261,7 @@ export {
|
|
|
247
261
|
validateEndpointModelConfig,
|
|
248
262
|
validateImagesServerConfig,
|
|
249
263
|
validateOutboundPermissions,
|
|
264
|
+
validateSearchServerConfig,
|
|
250
265
|
verifyKey,
|
|
251
266
|
verifyPresentedKey,
|
|
252
267
|
voucherCodePrefix
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
2
|
-
import { a as AllowanceSchedulingConfig } from '../types-
|
|
2
|
+
import { a as AllowanceSchedulingConfig } from '../types-D-oHYusb.cjs';
|
|
3
3
|
import { AccountAllowanceStore } from './AccountAllowanceStore.cjs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-Be-yt_6T.cjs';
|
|
5
5
|
import '@omnicross/contracts/image-generation-types';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-BSIJdsyl.cjs';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
9
9
|
import '@omnicross/contracts/usage-stats-types';
|
|
@@ -20,6 +20,9 @@ import '../transformer/types.cjs';
|
|
|
20
20
|
import '../transformer/TransformerService.cjs';
|
|
21
21
|
import '../ports/web-search-backend.cjs';
|
|
22
22
|
import '@omnicross/contracts/websearch-types';
|
|
23
|
+
import '../frontends-Doz0RaWu.cjs';
|
|
24
|
+
import '@omnicross/contracts/search-types';
|
|
25
|
+
import '../runtime-t8AZacFF.cjs';
|
|
23
26
|
import 'node:fs/promises';
|
|
24
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
25
28
|
import '@omnicross/contracts/audit-types';
|
|
@@ -27,7 +30,8 @@ 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';
|
|
30
|
-
import '../ProviderProxy-
|
|
33
|
+
import '../ProviderProxy-Bz_nkOwq.cjs';
|
|
34
|
+
import '../types-CbCZqLGg.cjs';
|
|
31
35
|
import '../keyPolicy-zdWTu3CQ.cjs';
|
|
32
36
|
import '@omnicross/contracts/account-allowance-types';
|
|
33
37
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
2
|
-
import { a as AllowanceSchedulingConfig } from '../types-
|
|
2
|
+
import { a as AllowanceSchedulingConfig } from '../types-Dvlpjn0d.js';
|
|
3
3
|
import { AccountAllowanceStore } from './AccountAllowanceStore.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-Dm4_36V4.js';
|
|
5
5
|
import '@omnicross/contracts/image-generation-types';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-By9Tg6-I.js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
9
9
|
import '@omnicross/contracts/usage-stats-types';
|
|
@@ -20,6 +20,9 @@ import '../transformer/types.js';
|
|
|
20
20
|
import '../transformer/TransformerService.js';
|
|
21
21
|
import '../ports/web-search-backend.js';
|
|
22
22
|
import '@omnicross/contracts/websearch-types';
|
|
23
|
+
import '../frontends-Doz0RaWu.js';
|
|
24
|
+
import '@omnicross/contracts/search-types';
|
|
25
|
+
import '../runtime-t8AZacFF.js';
|
|
23
26
|
import 'node:fs/promises';
|
|
24
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
25
28
|
import '@omnicross/contracts/audit-types';
|
|
@@ -27,7 +30,8 @@ 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';
|
|
30
|
-
import '../ProviderProxy-
|
|
33
|
+
import '../ProviderProxy-Ckr6oTrE.js';
|
|
34
|
+
import '../types-CbCZqLGg.js';
|
|
31
35
|
import '../keyPolicy-zdWTu3CQ.js';
|
|
32
36
|
import '@omnicross/contracts/account-allowance-types';
|
|
33
37
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4Z3ZLLC2cjs = require('../chunk-4Z3ZLLC2.cjs');
|
|
8
8
|
require('../chunk-235MXAGX.cjs');
|
|
9
9
|
require('../chunk-HVBBDBS3.cjs');
|
|
10
10
|
require('../chunk-NKVZ6Z3Y.cjs');
|
|
@@ -14,4 +14,4 @@ require('../chunk-NKVZ6Z3Y.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.__resetUpstreamProxyForTests =
|
|
17
|
+
exports.__resetUpstreamProxyForTests = _chunk4Z3ZLLC2cjs.__resetUpstreamProxyForTests; exports.bumpUpstreamProxyGeneration = _chunk4Z3ZLLC2cjs.bumpUpstreamProxyGeneration; exports.fetchUpstream = _chunk4Z3ZLLC2cjs.fetchUpstream; exports.resolveUpstreamDispatcher = _chunk4Z3ZLLC2cjs.resolveUpstreamDispatcher; exports.setUpstreamProxyResolver = _chunk4Z3ZLLC2cjs.setUpstreamProxyResolver;
|
package/dist/ports.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ export { AutomaticPricingSource, PricingStore } from './ports/pricing-store.cjs'
|
|
|
4
4
|
export { ProviderConfigSource } from './ports/provider-config-source.cjs';
|
|
5
5
|
export { UsageEventStore } from './ports/usage-event-store.cjs';
|
|
6
6
|
export { WebSearchBackend } from './ports/web-search-backend.cjs';
|
|
7
|
-
export { U as UsageSink } from './types-
|
|
8
|
-
export { O as OutboundCredentialStore } from './types-
|
|
7
|
+
export { U as UsageSink } from './types-BSIJdsyl.cjs';
|
|
8
|
+
export { O as OutboundCredentialStore } from './types-D-oHYusb.cjs';
|
|
9
9
|
import '@omnicross/contracts/pricing-types';
|
|
10
10
|
import '@omnicross/contracts/llm-config';
|
|
11
11
|
import './transformer/types.cjs';
|
|
@@ -21,8 +21,11 @@ import './pipeline/AuthSource.cjs';
|
|
|
21
21
|
import './pipeline/BoundAccountSelectionError.cjs';
|
|
22
22
|
import './pipeline/SubscriptionAuthSource.cjs';
|
|
23
23
|
import './pipeline/SubscriptionAuthStrategy.cjs';
|
|
24
|
+
import './frontends-Doz0RaWu.cjs';
|
|
25
|
+
import '@omnicross/contracts/search-types';
|
|
26
|
+
import './runtime-t8AZacFF.cjs';
|
|
24
27
|
import '@omnicross/contracts/image-generation-types';
|
|
25
|
-
import './types-
|
|
28
|
+
import './types-Be-yt_6T.cjs';
|
|
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-Bz_nkOwq.cjs';
|
|
37
|
+
import './types-CbCZqLGg.cjs';
|
|
34
38
|
import './keyPolicy-zdWTu3CQ.cjs';
|
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-MPXOKQJP.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-Y4CRNHJO.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-MPXOKQJP.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-Y4CRNHJO.js";
|
|
71
73
|
export {
|
|
72
74
|
aggregateAnthropicSseToJsonBody,
|
|
75
|
+
cancelDiscardedResponse,
|
|
73
76
|
getAnthropicEndpointTransformer,
|
|
74
77
|
getGeminiEndpointTransformer,
|
|
75
78
|
getResponsesEndpointTransformer,
|