@omnicross/core 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiConverter.cjs +2 -2
- package/dist/ApiConverter.js +1 -1
- package/dist/{ProviderProxy-C-xqrkKi.d.ts → ProviderProxy--ROec6VI.d.ts} +22 -3
- package/dist/{ProviderProxy-CnMQYN59.d.cts → ProviderProxy-QdwNV6l1.d.cts} +22 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -2
- package/dist/{chunk-3Z5BQZFM.cjs → chunk-235MXAGX.cjs} +3 -1
- package/dist/{chunk-SQYVORNP.cjs → chunk-26K6T2YS.cjs} +1520 -523
- package/dist/{chunk-DLXZEZWO.cjs → chunk-2E42SAW3.cjs} +42 -4
- package/dist/{chunk-7AK7B36B.cjs → chunk-2Z4XM3H5.cjs} +6 -6
- package/dist/{chunk-OEWZUX4G.js → chunk-32O35CIF.js} +9 -20
- package/dist/chunk-3SCOLIPT.cjs +63 -0
- package/dist/{chunk-SYQF7OIR.js → chunk-3WD4HTR2.js} +2 -0
- package/dist/{chunk-AT7B7SOZ.js → chunk-5NJLQ6T6.js} +21 -10
- package/dist/chunk-5RSZYQJH.cjs +62 -0
- package/dist/{chunk-IFXJ2BG7.js → chunk-7C7DET6S.js} +51 -6
- package/dist/{chunk-SNYBEXLB.cjs → chunk-EPN67EGP.cjs} +6 -1
- package/dist/chunk-FU7EAR73.js +62 -0
- package/dist/{chunk-UX7VWA46.js → chunk-FXR6N3SR.js} +39 -1
- package/dist/{chunk-WYTEQ4Q5.cjs → chunk-GDIXXKF2.cjs} +21 -10
- package/dist/{chunk-WB6PH56J.js → chunk-GFIZ6LQI.js} +12 -8
- package/dist/chunk-GL6XM527.js +61 -0
- package/dist/{chunk-EJLH6NFT.cjs → chunk-J3QQ6JS5.cjs} +12 -8
- package/dist/{chunk-VRFBB5DB.js → chunk-MYYR3HZL.js} +4 -4
- package/dist/{chunk-YJVHCHQX.js → chunk-N7OOJI5V.js} +46 -2
- package/dist/chunk-NKVZ6Z3Y.cjs +61 -0
- package/dist/chunk-OTZC4TNH.cjs +79 -0
- package/dist/{chunk-6VUQPOV3.cjs → chunk-OVQBNVSV.cjs} +10 -21
- package/dist/{chunk-4VLRHHFE.cjs → chunk-OXHNSZ53.cjs} +9 -11
- package/dist/{chunk-6CL5HTPQ.js → chunk-PEGTIPB3.js} +8 -10
- package/dist/chunk-PO3XB56Z.js +79 -0
- package/dist/{chunk-UDCC7EMR.js → chunk-QYC54PMG.js} +1242 -245
- package/dist/{chunk-SIZQQD6T.js → chunk-RJ5ZGNI3.js} +42 -5
- package/dist/{chunk-KCVJWJST.cjs → chunk-RJUONLUQ.cjs} +47 -10
- package/dist/{chunk-BPKCU575.js → chunk-UAPBLNN2.js} +6 -1
- package/dist/{chunk-UNWKG6EI.cjs → chunk-XPIOJQS2.cjs} +51 -6
- package/dist/chunk-XXFYLL7R.js +63 -0
- package/dist/{chunk-YK57NMIF.cjs → chunk-YWL7YZWS.cjs} +47 -3
- package/dist/completion/ApiKeyPoolService.cjs +32 -1
- package/dist/completion/ApiKeyPoolService.d.cts +17 -1
- package/dist/completion/ApiKeyPoolService.d.ts +17 -1
- package/dist/completion/ApiKeyPoolService.js +31 -0
- package/dist/completion/CompletionService.cjs +23 -19
- package/dist/completion/CompletionService.d.cts +1 -0
- package/dist/completion/CompletionService.d.ts +1 -0
- package/dist/completion/CompletionService.js +22 -18
- package/dist/completion.cjs +23 -19
- package/dist/completion.d.cts +1 -0
- package/dist/completion.d.ts +1 -0
- package/dist/completion.js +22 -18
- package/dist/index.cjs +81 -21
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +82 -22
- package/dist/outbound-api/auditCapture.cjs +2 -2
- package/dist/outbound-api/auditCapture.d.cts +3 -4
- package/dist/outbound-api/auditCapture.d.ts +3 -4
- package/dist/outbound-api/auditCapture.js +1 -1
- package/dist/outbound-api/routeResolver.d.cts +4 -3
- package/dist/outbound-api/routeResolver.d.ts +4 -3
- package/dist/outbound-api/subscriptionRegistryPort.d.cts +1 -0
- package/dist/outbound-api/subscriptionRegistryPort.d.ts +1 -0
- package/dist/outbound-api/types.d.cts +3 -2
- package/dist/outbound-api/types.d.ts +3 -2
- package/dist/outbound-api.cjs +23 -19
- package/dist/outbound-api.d.cts +8 -6
- package/dist/outbound-api.d.ts +8 -6
- package/dist/outbound-api.js +22 -18
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +3 -2
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +3 -2
- package/dist/pipeline/AccountRouteActivity.cjs +10 -0
- package/dist/pipeline/AccountRouteActivity.d.cts +61 -0
- package/dist/pipeline/AccountRouteActivity.d.ts +61 -0
- package/dist/pipeline/AccountRouteActivity.js +10 -0
- package/dist/pipeline/ServerOverloadCounter.cjs +16 -0
- package/dist/pipeline/ServerOverloadCounter.d.cts +77 -0
- package/dist/pipeline/ServerOverloadCounter.d.ts +77 -0
- package/dist/pipeline/ServerOverloadCounter.js +16 -0
- package/dist/pipeline/SubscriptionAccountHealth.cjs +4 -2
- package/dist/pipeline/SubscriptionAccountHealth.d.cts +32 -3
- package/dist/pipeline/SubscriptionAccountHealth.d.ts +32 -3
- package/dist/pipeline/SubscriptionAccountHealth.js +3 -1
- package/dist/pipeline/upstreamFetch.cjs +4 -3
- package/dist/pipeline/upstreamFetch.d.cts +35 -6
- package/dist/pipeline/upstreamFetch.d.ts +35 -6
- package/dist/pipeline/upstreamFetch.js +3 -2
- package/dist/pipeline/upstreamTrace.cjs +4 -2
- package/dist/pipeline/upstreamTrace.d.cts +22 -8
- package/dist/pipeline/upstreamTrace.d.ts +22 -8
- package/dist/pipeline/upstreamTrace.js +3 -1
- package/dist/ports.d.cts +2 -2
- package/dist/ports.d.ts +2 -2
- package/dist/provider-proxy/ProviderProxy.cjs +23 -19
- package/dist/provider-proxy/ProviderProxy.d.cts +2 -1
- package/dist/provider-proxy/ProviderProxy.d.ts +2 -1
- package/dist/provider-proxy/ProviderProxy.js +22 -18
- package/dist/provider-proxy/identity/codexCliHeaders.cjs +10 -0
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +45 -0
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +45 -0
- package/dist/provider-proxy/identity/codexCliHeaders.js +10 -0
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +23 -19
- package/dist/provider-proxy/ingress/providerProxyShared.d.cts +11 -1
- package/dist/provider-proxy/ingress/providerProxyShared.d.ts +11 -1
- package/dist/provider-proxy/ingress/providerProxyShared.js +22 -18
- package/dist/provider-proxy/matchText.cjs +2 -2
- package/dist/provider-proxy/matchText.d.cts +1 -3
- package/dist/provider-proxy/matchText.d.ts +1 -3
- package/dist/provider-proxy/matchText.js +1 -1
- package/dist/provider-proxy/types.d.cts +20 -1
- package/dist/provider-proxy/types.d.ts +20 -1
- package/dist/provider-proxy.cjs +79 -19
- package/dist/provider-proxy.d.cts +255 -8
- package/dist/provider-proxy.d.ts +255 -8
- package/dist/provider-proxy.js +80 -20
- package/dist/{routeResolver-CHTv_Bs5.d.ts → routeResolver-C0mkkZaM.d.ts} +1 -1
- package/dist/{routeResolver-kepxnfcC.d.cts → routeResolver-CVFE8KKe.d.cts} +1 -1
- package/dist/transformer/transformers/AnthropicTransformer.cjs +3 -2
- package/dist/transformer/transformers/AnthropicTransformer.js +2 -1
- package/dist/transformer/transformers/OpenAIResponseTransformer.cjs +3 -2
- package/dist/transformer/transformers/OpenAIResponseTransformer.js +2 -1
- package/dist/transformer/transformers.cjs +7 -6
- package/dist/transformer/transformers.js +6 -5
- package/dist/transformer.cjs +9 -8
- package/dist/transformer.js +8 -7
- package/dist/{types-hsoKrVQS.d.ts → types-BB8pxk_3.d.ts} +40 -1
- package/dist/{types-H3wGZSOo.d.cts → types-C2MwkLah.d.cts} +40 -1
- package/dist/usage/pricing-engine.cjs +2 -2
- package/dist/usage/pricing-engine.d.cts +20 -0
- package/dist/usage/pricing-engine.d.ts +20 -0
- package/dist/usage/pricing-engine.js +1 -1
- package/dist/usage/usage-recorder.cjs +2 -2
- package/dist/usage/usage-recorder.d.cts +11 -1
- package/dist/usage/usage-recorder.d.ts +11 -1
- package/dist/usage/usage-recorder.js +1 -1
- package/dist/usage.cjs +3 -3
- package/dist/usage.js +2 -2
- package/package.json +1 -1
package/dist/ApiConverter.cjs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkGDIXXKF2cjs = require('./chunk-GDIXXKF2.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -21,4 +21,4 @@ var _chunkWYTEQ4Q5cjs = require('./chunk-WYTEQ4Q5.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.convertAnthropicRequestToOpenAI =
|
|
24
|
+
exports.convertAnthropicRequestToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicRequestToOpenAI; exports.convertAnthropicStreamToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicStreamToOpenAI; exports.convertAnthropicToOpenAI = _chunkGDIXXKF2cjs.convertAnthropicToOpenAI; exports.convertAnthropicToOpenAIWithThinking = _chunkGDIXXKF2cjs.convertAnthropicToOpenAIWithThinking; exports.convertOpenAIResponseToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIResponseToAnthropic; exports.convertOpenAIStreamToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIStreamToAnthropic; exports.convertOpenAIToAnthropic = _chunkGDIXXKF2cjs.convertOpenAIToAnthropic; exports.convertOpenAIToAnthropicWithThinking = _chunkGDIXXKF2cjs.convertOpenAIToAnthropicWithThinking; exports.hasImageContent = _chunkGDIXXKF2cjs.hasImageContent; exports.hasThinkingEnabled = _chunkGDIXXKF2cjs.hasThinkingEnabled;
|
package/dist/ApiConverter.js
CHANGED
|
@@ -25,6 +25,15 @@ import { RouteContext, ProviderProxyDeps } from './provider-proxy/types.js';
|
|
|
25
25
|
* run ends without an explicit `removeRoute`.
|
|
26
26
|
*/
|
|
27
27
|
declare const DEFAULT_ROUTE_IDLE_MS: number;
|
|
28
|
+
type RouteEvictionReason = 'idle' | 'removed' | 'cleared';
|
|
29
|
+
/** Additive lease-aware registration options. Numeric callers remain supported. */
|
|
30
|
+
interface RouteRegistrationOptions {
|
|
31
|
+
readonly idleMs?: number;
|
|
32
|
+
/** Receives only a timestamp; the bearer token is deliberately not exposed. */
|
|
33
|
+
readonly onActivity?: (at: number) => void;
|
|
34
|
+
/** Called at most once after the entry is no longer reachable. */
|
|
35
|
+
readonly onEvicted?: (reason: RouteEvictionReason) => void;
|
|
36
|
+
}
|
|
28
37
|
/**
|
|
29
38
|
* The resident proxy owns ONE of these for the whole app session. Per-run
|
|
30
39
|
* state is added at run start (`addRoute`) and removed at run end
|
|
@@ -40,7 +49,7 @@ declare class ProviderProxyRouteMap {
|
|
|
40
49
|
* (`ANTHROPIC_AUTH_TOKEN` / `OPENAI_API_KEY`). Optionally override the idle
|
|
41
50
|
* timeout (tests use a short one).
|
|
42
51
|
*/
|
|
43
|
-
addRoute(context: RouteContext,
|
|
52
|
+
addRoute(context: RouteContext, idleMsOrOptions?: number | RouteRegistrationOptions): string;
|
|
44
53
|
/**
|
|
45
54
|
* Look up a route by its token, touching the idle timer so an active run's
|
|
46
55
|
* context survives. Returns `undefined` on a miss / reaped entry — the caller
|
|
@@ -49,6 +58,8 @@ declare class ProviderProxyRouteMap {
|
|
|
49
58
|
lookup(token: string | undefined | null): RouteContext | undefined;
|
|
50
59
|
/** Remove a route at run end. Returns true if an entry existed. */
|
|
51
60
|
removeRoute(token: string): boolean;
|
|
61
|
+
/** Re-arm one existing route without rotating its token. */
|
|
62
|
+
renewRoute(token: string, idleMs?: number): boolean;
|
|
52
63
|
/** Current live-route count (tests / diagnostics). */
|
|
53
64
|
size(): number;
|
|
54
65
|
/** Whether a token currently resolves (does NOT touch the idle timer). */
|
|
@@ -57,6 +68,7 @@ declare class ProviderProxyRouteMap {
|
|
|
57
68
|
clear(): void;
|
|
58
69
|
private armIdleTimer;
|
|
59
70
|
private clearIdleTimer;
|
|
71
|
+
private evict;
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
/**
|
|
@@ -92,6 +104,7 @@ declare class ProviderProxy {
|
|
|
92
104
|
private server;
|
|
93
105
|
private port;
|
|
94
106
|
private readonly routes;
|
|
107
|
+
private readonly beforeStop;
|
|
95
108
|
constructor(deps: ProviderProxyDeps, routes?: ProviderProxyRouteMap);
|
|
96
109
|
/**
|
|
97
110
|
* Start the resident listener on a stable port on 127.0.0.1. Idempotent —
|
|
@@ -102,6 +115,10 @@ declare class ProviderProxy {
|
|
|
102
115
|
stop(): Promise<void>;
|
|
103
116
|
/** Base URL for injector wiring (`ANTHROPIC_BASE_URL` / codex `base_url`). */
|
|
104
117
|
getBaseUrl(): string;
|
|
118
|
+
/** Register daemon-owned cleanup that must run before route-map teardown. */
|
|
119
|
+
registerBeforeStop(cleanup: () => void | Promise<void>): () => void;
|
|
120
|
+
/** Whether the resident listener has completed binding. */
|
|
121
|
+
isReady(): boolean;
|
|
105
122
|
/**
|
|
106
123
|
* The SHARED route map. Exposed so the outbound API server
|
|
107
124
|
* (`outbound-api-server`) can mint per-request routes on the SAME map and
|
|
@@ -115,11 +132,13 @@ declare class ProviderProxy {
|
|
|
115
132
|
*/
|
|
116
133
|
getDeps(): ProviderProxyDeps;
|
|
117
134
|
/** Register a route for one run; returns the crypto route token (task 2.2). */
|
|
118
|
-
addRoute(context: RouteContext,
|
|
135
|
+
addRoute(context: RouteContext, idleMsOrOptions?: number | RouteRegistrationOptions): string;
|
|
136
|
+
/** Re-arm one route while retaining the exact same bearer token. */
|
|
137
|
+
renewRoute(token: string, idleMs?: number): boolean;
|
|
119
138
|
/** Remove a route at run end. Returns true if an entry existed. */
|
|
120
139
|
removeRoute(token: string): boolean;
|
|
121
140
|
/** Live-route count (diagnostics / tests). */
|
|
122
141
|
routeCount(): number;
|
|
123
142
|
}
|
|
124
143
|
|
|
125
|
-
export { DEFAULT_ROUTE_IDLE_MS as D, ProviderProxy as P, ProviderProxyRouteMap as a, isLoopbackAddress as i };
|
|
144
|
+
export { DEFAULT_ROUTE_IDLE_MS as D, ProviderProxy as P, type RouteEvictionReason as R, ProviderProxyRouteMap as a, type RouteRegistrationOptions as b, isLoopbackAddress as i };
|
|
@@ -25,6 +25,15 @@ import { RouteContext, ProviderProxyDeps } from './provider-proxy/types.cjs';
|
|
|
25
25
|
* run ends without an explicit `removeRoute`.
|
|
26
26
|
*/
|
|
27
27
|
declare const DEFAULT_ROUTE_IDLE_MS: number;
|
|
28
|
+
type RouteEvictionReason = 'idle' | 'removed' | 'cleared';
|
|
29
|
+
/** Additive lease-aware registration options. Numeric callers remain supported. */
|
|
30
|
+
interface RouteRegistrationOptions {
|
|
31
|
+
readonly idleMs?: number;
|
|
32
|
+
/** Receives only a timestamp; the bearer token is deliberately not exposed. */
|
|
33
|
+
readonly onActivity?: (at: number) => void;
|
|
34
|
+
/** Called at most once after the entry is no longer reachable. */
|
|
35
|
+
readonly onEvicted?: (reason: RouteEvictionReason) => void;
|
|
36
|
+
}
|
|
28
37
|
/**
|
|
29
38
|
* The resident proxy owns ONE of these for the whole app session. Per-run
|
|
30
39
|
* state is added at run start (`addRoute`) and removed at run end
|
|
@@ -40,7 +49,7 @@ declare class ProviderProxyRouteMap {
|
|
|
40
49
|
* (`ANTHROPIC_AUTH_TOKEN` / `OPENAI_API_KEY`). Optionally override the idle
|
|
41
50
|
* timeout (tests use a short one).
|
|
42
51
|
*/
|
|
43
|
-
addRoute(context: RouteContext,
|
|
52
|
+
addRoute(context: RouteContext, idleMsOrOptions?: number | RouteRegistrationOptions): string;
|
|
44
53
|
/**
|
|
45
54
|
* Look up a route by its token, touching the idle timer so an active run's
|
|
46
55
|
* context survives. Returns `undefined` on a miss / reaped entry — the caller
|
|
@@ -49,6 +58,8 @@ declare class ProviderProxyRouteMap {
|
|
|
49
58
|
lookup(token: string | undefined | null): RouteContext | undefined;
|
|
50
59
|
/** Remove a route at run end. Returns true if an entry existed. */
|
|
51
60
|
removeRoute(token: string): boolean;
|
|
61
|
+
/** Re-arm one existing route without rotating its token. */
|
|
62
|
+
renewRoute(token: string, idleMs?: number): boolean;
|
|
52
63
|
/** Current live-route count (tests / diagnostics). */
|
|
53
64
|
size(): number;
|
|
54
65
|
/** Whether a token currently resolves (does NOT touch the idle timer). */
|
|
@@ -57,6 +68,7 @@ declare class ProviderProxyRouteMap {
|
|
|
57
68
|
clear(): void;
|
|
58
69
|
private armIdleTimer;
|
|
59
70
|
private clearIdleTimer;
|
|
71
|
+
private evict;
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
/**
|
|
@@ -92,6 +104,7 @@ declare class ProviderProxy {
|
|
|
92
104
|
private server;
|
|
93
105
|
private port;
|
|
94
106
|
private readonly routes;
|
|
107
|
+
private readonly beforeStop;
|
|
95
108
|
constructor(deps: ProviderProxyDeps, routes?: ProviderProxyRouteMap);
|
|
96
109
|
/**
|
|
97
110
|
* Start the resident listener on a stable port on 127.0.0.1. Idempotent —
|
|
@@ -102,6 +115,10 @@ declare class ProviderProxy {
|
|
|
102
115
|
stop(): Promise<void>;
|
|
103
116
|
/** Base URL for injector wiring (`ANTHROPIC_BASE_URL` / codex `base_url`). */
|
|
104
117
|
getBaseUrl(): string;
|
|
118
|
+
/** Register daemon-owned cleanup that must run before route-map teardown. */
|
|
119
|
+
registerBeforeStop(cleanup: () => void | Promise<void>): () => void;
|
|
120
|
+
/** Whether the resident listener has completed binding. */
|
|
121
|
+
isReady(): boolean;
|
|
105
122
|
/**
|
|
106
123
|
* The SHARED route map. Exposed so the outbound API server
|
|
107
124
|
* (`outbound-api-server`) can mint per-request routes on the SAME map and
|
|
@@ -115,11 +132,13 @@ declare class ProviderProxy {
|
|
|
115
132
|
*/
|
|
116
133
|
getDeps(): ProviderProxyDeps;
|
|
117
134
|
/** Register a route for one run; returns the crypto route token (task 2.2). */
|
|
118
|
-
addRoute(context: RouteContext,
|
|
135
|
+
addRoute(context: RouteContext, idleMsOrOptions?: number | RouteRegistrationOptions): string;
|
|
136
|
+
/** Re-arm one route while retaining the exact same bearer token. */
|
|
137
|
+
renewRoute(token: string, idleMs?: number): boolean;
|
|
119
138
|
/** Remove a route at run end. Returns true if an entry existed. */
|
|
120
139
|
removeRoute(token: string): boolean;
|
|
121
140
|
/** Live-route count (diagnostics / tests). */
|
|
122
141
|
routeCount(): number;
|
|
123
142
|
}
|
|
124
143
|
|
|
125
|
-
export { DEFAULT_ROUTE_IDLE_MS as D, ProviderProxy as P, ProviderProxyRouteMap as a, isLoopbackAddress as i };
|
|
144
|
+
export { DEFAULT_ROUTE_IDLE_MS as D, ProviderProxy as P, type RouteEvictionReason as R, ProviderProxyRouteMap as a, type RouteRegistrationOptions as b, isLoopbackAddress as i };
|
|
@@ -5,9 +5,10 @@ var _chunkOKMJLEXXcjs = require('../chunk-OKMJLEXX.cjs');
|
|
|
5
5
|
require('../chunk-KBM2W6UY.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
8
|
+
var _chunkRJUONLUQcjs = require('../chunk-RJUONLUQ.cjs');
|
|
9
|
+
require('../chunk-235MXAGX.cjs');
|
|
10
10
|
require('../chunk-HVBBDBS3.cjs');
|
|
11
|
+
require('../chunk-NKVZ6Z3Y.cjs');
|
|
11
12
|
|
|
12
13
|
// src/auth/GeminiCodeAssistProjectResolver.ts
|
|
13
14
|
var FREE_TIER_ID = "free-tier";
|
|
@@ -27,7 +28,7 @@ var GeminiCodeAssistHandshakeError = class extends Error {
|
|
|
27
28
|
var GeminiCodeAssistProjectResolver = (_class = class {
|
|
28
29
|
// upstream-proxy: the Code Assist handshake is upstream egress → honor the
|
|
29
30
|
// gemini proxy by default (still injectable for tests).
|
|
30
|
-
constructor(fetchImpl = (url, init) =>
|
|
31
|
+
constructor(fetchImpl = (url, init) => _chunkRJUONLUQcjs.fetchUpstream.call(void 0, url, init, { providerId: "gemini" })) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);
|
|
31
32
|
this.fetchImpl = fetchImpl;
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -5,9 +5,10 @@ import {
|
|
|
5
5
|
import "../chunk-TOVPMMHM.js";
|
|
6
6
|
import {
|
|
7
7
|
fetchUpstream
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-RJ5ZGNI3.js";
|
|
9
|
+
import "../chunk-3WD4HTR2.js";
|
|
10
10
|
import "../chunk-MKF46GNZ.js";
|
|
11
|
+
import "../chunk-GL6XM527.js";
|
|
11
12
|
|
|
12
13
|
// src/auth/GeminiCodeAssistProjectResolver.ts
|
|
13
14
|
var FREE_TIER_ID = "free-tier";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var _promises = require('fs/promises');
|
|
3
3
|
var _path = require('path');
|
|
4
4
|
var tracePath = null;
|
|
5
|
+
var REDACTED_BODY = "***REDACTED (credential exchange)***";
|
|
5
6
|
var SECRET_HEADER_NAMES = /* @__PURE__ */ new Set([
|
|
6
7
|
"authorization",
|
|
7
8
|
"api-key",
|
|
@@ -49,4 +50,5 @@ function __resetUpstreamTraceForTests() {
|
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
|
|
54
|
+
exports.REDACTED_BODY = REDACTED_BODY; exports.setUpstreamTracePath = setUpstreamTracePath; exports.getUpstreamTracePath = getUpstreamTracePath; exports.redactHeaders = redactHeaders; exports.writeUpstreamTrace = writeUpstreamTrace; exports.__resetUpstreamTraceForTests = __resetUpstreamTraceForTests;
|