@omnicross/core 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
- package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
- package/dist/{chunk-MPFOC7AT.js → chunk-24W3DVGI.js} +1 -1
- package/dist/{chunk-GWC7HCZI.cjs → chunk-2DMOOZ4F.cjs} +1 -1
- package/dist/{chunk-NKVZ6Z3Y.cjs → chunk-4HMAS74X.cjs} +8 -3
- package/dist/{chunk-VFFCV4J6.cjs → chunk-CXRJMNJJ.cjs} +12 -6
- package/dist/{chunk-E5RCCGE7.cjs → chunk-DF5JXK36.cjs} +2 -2
- package/dist/{chunk-CGEZQC2G.cjs → chunk-F3TT5XPV.cjs} +2 -2
- package/dist/{chunk-EE7VP4O3.js → chunk-HQ7C3VB6.js} +1 -1
- package/dist/{chunk-ZJJBITUN.js → chunk-IAWLTZUP.js} +2 -2
- package/dist/{chunk-YV4JSBPA.js → chunk-L4L77G3X.js} +570 -96
- package/dist/{chunk-NTF7TLT7.js → chunk-LBIXTHP7.js} +11 -5
- package/dist/{chunk-UOOLU64V.cjs → chunk-LVQOCIES.cjs} +2 -2
- package/dist/{chunk-RX3BCX53.cjs → chunk-NCCEWVWY.cjs} +974 -500
- package/dist/{chunk-K6J2RIEX.js → chunk-NDJSLJIA.js} +1 -1
- package/dist/{chunk-F6P4DIBL.js → chunk-TLYFFUW4.js} +1 -1
- package/dist/{chunk-GL6XM527.js → chunk-TX7ZM4OI.js} +8 -3
- package/dist/{chunk-NCZDUBC2.js → chunk-WYUXJKMK.js} +1 -1
- package/dist/{chunk-NDIBVTBZ.cjs → chunk-XYFCNDJK.cjs} +2 -2
- package/dist/{chunk-X6GHTNDL.cjs → chunk-ZG57GAVU.cjs} +7 -7
- package/dist/completion/CompletionService.cjs +10 -10
- package/dist/completion/CompletionService.js +9 -9
- package/dist/completion.cjs +10 -10
- package/dist/completion.js +9 -9
- package/dist/index.cjs +12 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -9
- package/dist/outbound-api/routeResolver.d.cts +2 -2
- package/dist/outbound-api/routeResolver.d.ts +2 -2
- package/dist/outbound-api/types.d.cts +2 -2
- package/dist/outbound-api/types.d.ts +2 -2
- package/dist/outbound-api.cjs +12 -10
- package/dist/outbound-api.d.cts +46 -5
- package/dist/outbound-api.d.ts +46 -5
- package/dist/outbound-api.js +11 -9
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +1 -1
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +1 -1
- package/dist/pipeline/AccountRouteActivity.cjs +2 -2
- package/dist/pipeline/AccountRouteActivity.d.cts +33 -8
- package/dist/pipeline/AccountRouteActivity.d.ts +33 -8
- package/dist/pipeline/AccountRouteActivity.js +1 -1
- package/dist/pipeline/upstreamFetch.cjs +3 -3
- package/dist/pipeline/upstreamFetch.d.cts +15 -1
- package/dist/pipeline/upstreamFetch.d.ts +15 -1
- package/dist/pipeline/upstreamFetch.js +2 -2
- package/dist/ports.d.cts +1 -1
- package/dist/ports.d.ts +1 -1
- package/dist/provider-proxy/ProviderProxy.cjs +10 -10
- package/dist/provider-proxy/ProviderProxy.js +9 -9
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +6 -4
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +6 -4
- package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +2 -2
- package/dist/provider-proxy/identity/openCodeGoHeaders.js +1 -1
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +12 -10
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +19 -1
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +19 -1
- package/dist/provider-proxy/ingress/providerProxyShared.js +11 -9
- package/dist/provider-proxy.cjs +10 -10
- package/dist/provider-proxy.d.cts +1 -1
- package/dist/provider-proxy.d.ts +1 -1
- package/dist/provider-proxy.js +9 -9
- package/dist/{routeResolver-C2z0pp-q.d.cts → routeResolver-BdNJvTZP.d.cts} +1 -1
- package/dist/{routeResolver-BLTleO4H.d.ts → routeResolver-zVoCx9r3.d.ts} +1 -1
- package/dist/transformer/transformers/AntigravityTransformer.cjs +6 -6
- package/dist/transformer/transformers/AntigravityTransformer.js +5 -5
- package/dist/transformer/transformers/antigravityFailover.cjs +7 -7
- package/dist/transformer/transformers/antigravityFailover.js +6 -6
- package/dist/transformer/transformers/antigravityIdentity.cjs +4 -4
- package/dist/transformer/transformers/antigravityIdentity.js +3 -3
- package/dist/transformer/transformers.cjs +8 -8
- package/dist/transformer/transformers.js +7 -7
- package/dist/transformer.cjs +8 -8
- package/dist/transformer.js +7 -7
- package/dist/{types-C6m-Db26.d.cts → types-Dt1bgHPg.d.cts} +63 -2
- package/dist/{types-Da735j2d.d.ts → types-IRPv4i1Y.d.ts} +63 -2
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-FYPKKMB3.js";
|
|
10
10
|
import {
|
|
11
11
|
getSharedAccountRouteActivity
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TX7ZM4OI.js";
|
|
13
13
|
|
|
14
14
|
// src/pipeline/upstreamFetch.ts
|
|
15
15
|
import { Agent, buildConnector, ProxyAgent } from "undici";
|
|
@@ -130,12 +130,18 @@ function fetchUpstream(url, init, ctx) {
|
|
|
130
130
|
return response;
|
|
131
131
|
});
|
|
132
132
|
const activity = ctx?.routeActivity;
|
|
133
|
-
const activityStartedAt = activity
|
|
133
|
+
const activityStartedAt = activity ? Date.now() : 0;
|
|
134
134
|
const recordActivity = (status) => {
|
|
135
|
-
if (!activity
|
|
135
|
+
if (!activity) return;
|
|
136
|
+
const providerId2 = activity.providerId ?? ctx?.providerId;
|
|
137
|
+
const accountId2 = activity.accountId ?? ctx?.accountId;
|
|
138
|
+
if (!providerId2) return;
|
|
139
|
+
if (activity.credentialKind !== "provider-key" && !accountId2) return;
|
|
136
140
|
const record = getSharedAccountRouteActivity().record({
|
|
137
|
-
providerId:
|
|
138
|
-
|
|
141
|
+
providerId: providerId2,
|
|
142
|
+
credentialKind: activity.credentialKind,
|
|
143
|
+
accountId: accountId2,
|
|
144
|
+
keyId: activity.keyId,
|
|
139
145
|
endpoint: activity.endpoint,
|
|
140
146
|
sessionKey: activity.sessionKey,
|
|
141
147
|
sessionSource: activity.sessionSource,
|
|
@@ -9,7 +9,7 @@ var _chunkQWNUOR7Fcjs = require('./chunk-QWNUOR7F.cjs');
|
|
|
9
9
|
var _chunk47E3I5PFcjs = require('./chunk-47E3I5PF.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZG57GAVUcjs = require('./chunk-ZG57GAVU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkBTSADEX4cjs = require('./chunk-BTSADEX4.cjs');
|
|
@@ -22,7 +22,7 @@ var BuiltinTransformers = {
|
|
|
22
22
|
OpenAITransformer: _chunkQWNUOR7Fcjs.OpenAITransformer,
|
|
23
23
|
GeminiTransformer: _chunkBTSADEX4cjs.GeminiTransformer,
|
|
24
24
|
GeminiCodeAssistTransformer: _chunkN3MGNLCUcjs.GeminiCodeAssistTransformer,
|
|
25
|
-
AntigravityTransformer:
|
|
25
|
+
AntigravityTransformer: _chunkZG57GAVUcjs.AntigravityTransformer,
|
|
26
26
|
AnthropicTransformer: _chunk47E3I5PFcjs.AnthropicTransformer,
|
|
27
27
|
OpenAIResponseTransformer: _chunkNOITAVHAcjs.OpenAIResponseTransformer
|
|
28
28
|
};
|