@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.
Files changed (77) hide show
  1. package/dist/auth/GeminiCodeAssistProjectResolver.cjs +4 -4
  2. package/dist/auth/GeminiCodeAssistProjectResolver.js +3 -3
  3. package/dist/{chunk-MPFOC7AT.js → chunk-24W3DVGI.js} +1 -1
  4. package/dist/{chunk-GWC7HCZI.cjs → chunk-2DMOOZ4F.cjs} +1 -1
  5. package/dist/{chunk-NKVZ6Z3Y.cjs → chunk-4HMAS74X.cjs} +8 -3
  6. package/dist/{chunk-VFFCV4J6.cjs → chunk-CXRJMNJJ.cjs} +12 -6
  7. package/dist/{chunk-E5RCCGE7.cjs → chunk-DF5JXK36.cjs} +2 -2
  8. package/dist/{chunk-CGEZQC2G.cjs → chunk-F3TT5XPV.cjs} +2 -2
  9. package/dist/{chunk-EE7VP4O3.js → chunk-HQ7C3VB6.js} +1 -1
  10. package/dist/{chunk-ZJJBITUN.js → chunk-IAWLTZUP.js} +2 -2
  11. package/dist/{chunk-YV4JSBPA.js → chunk-L4L77G3X.js} +570 -96
  12. package/dist/{chunk-NTF7TLT7.js → chunk-LBIXTHP7.js} +11 -5
  13. package/dist/{chunk-UOOLU64V.cjs → chunk-LVQOCIES.cjs} +2 -2
  14. package/dist/{chunk-RX3BCX53.cjs → chunk-NCCEWVWY.cjs} +974 -500
  15. package/dist/{chunk-K6J2RIEX.js → chunk-NDJSLJIA.js} +1 -1
  16. package/dist/{chunk-F6P4DIBL.js → chunk-TLYFFUW4.js} +1 -1
  17. package/dist/{chunk-GL6XM527.js → chunk-TX7ZM4OI.js} +8 -3
  18. package/dist/{chunk-NCZDUBC2.js → chunk-WYUXJKMK.js} +1 -1
  19. package/dist/{chunk-NDIBVTBZ.cjs → chunk-XYFCNDJK.cjs} +2 -2
  20. package/dist/{chunk-X6GHTNDL.cjs → chunk-ZG57GAVU.cjs} +7 -7
  21. package/dist/completion/CompletionService.cjs +10 -10
  22. package/dist/completion/CompletionService.js +9 -9
  23. package/dist/completion.cjs +10 -10
  24. package/dist/completion.js +9 -9
  25. package/dist/index.cjs +12 -10
  26. package/dist/index.d.cts +3 -3
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +11 -9
  29. package/dist/outbound-api/routeResolver.d.cts +2 -2
  30. package/dist/outbound-api/routeResolver.d.ts +2 -2
  31. package/dist/outbound-api/types.d.cts +2 -2
  32. package/dist/outbound-api/types.d.ts +2 -2
  33. package/dist/outbound-api.cjs +12 -10
  34. package/dist/outbound-api.d.cts +46 -5
  35. package/dist/outbound-api.d.ts +46 -5
  36. package/dist/outbound-api.js +11 -9
  37. package/dist/pipeline/AccountAllowanceScheduling.d.cts +1 -1
  38. package/dist/pipeline/AccountAllowanceScheduling.d.ts +1 -1
  39. package/dist/pipeline/AccountRouteActivity.cjs +2 -2
  40. package/dist/pipeline/AccountRouteActivity.d.cts +33 -8
  41. package/dist/pipeline/AccountRouteActivity.d.ts +33 -8
  42. package/dist/pipeline/AccountRouteActivity.js +1 -1
  43. package/dist/pipeline/upstreamFetch.cjs +3 -3
  44. package/dist/pipeline/upstreamFetch.d.cts +15 -1
  45. package/dist/pipeline/upstreamFetch.d.ts +15 -1
  46. package/dist/pipeline/upstreamFetch.js +2 -2
  47. package/dist/ports.d.cts +1 -1
  48. package/dist/ports.d.ts +1 -1
  49. package/dist/provider-proxy/ProviderProxy.cjs +10 -10
  50. package/dist/provider-proxy/ProviderProxy.js +9 -9
  51. package/dist/provider-proxy/identity/codexCliHeaders.d.cts +6 -4
  52. package/dist/provider-proxy/identity/codexCliHeaders.d.ts +6 -4
  53. package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +2 -2
  54. package/dist/provider-proxy/identity/openCodeGoHeaders.js +1 -1
  55. package/dist/provider-proxy/ingress/providerProxyShared.cjs +12 -10
  56. package/dist/provider-proxy/ingress/providerProxyShared.d.cts +19 -1
  57. package/dist/provider-proxy/ingress/providerProxyShared.d.ts +19 -1
  58. package/dist/provider-proxy/ingress/providerProxyShared.js +11 -9
  59. package/dist/provider-proxy.cjs +10 -10
  60. package/dist/provider-proxy.d.cts +1 -1
  61. package/dist/provider-proxy.d.ts +1 -1
  62. package/dist/provider-proxy.js +9 -9
  63. package/dist/{routeResolver-C2z0pp-q.d.cts → routeResolver-BdNJvTZP.d.cts} +1 -1
  64. package/dist/{routeResolver-BLTleO4H.d.ts → routeResolver-zVoCx9r3.d.ts} +1 -1
  65. package/dist/transformer/transformers/AntigravityTransformer.cjs +6 -6
  66. package/dist/transformer/transformers/AntigravityTransformer.js +5 -5
  67. package/dist/transformer/transformers/antigravityFailover.cjs +7 -7
  68. package/dist/transformer/transformers/antigravityFailover.js +6 -6
  69. package/dist/transformer/transformers/antigravityIdentity.cjs +4 -4
  70. package/dist/transformer/transformers/antigravityIdentity.js +3 -3
  71. package/dist/transformer/transformers.cjs +8 -8
  72. package/dist/transformer/transformers.js +7 -7
  73. package/dist/transformer.cjs +8 -8
  74. package/dist/transformer.js +7 -7
  75. package/dist/{types-C6m-Db26.d.cts → types-Dt1bgHPg.d.cts} +63 -2
  76. package/dist/{types-Da735j2d.d.ts → types-IRPv4i1Y.d.ts} +63 -2
  77. package/package.json +2 -2
@@ -1,18 +1,40 @@
1
1
  /**
2
- * Bounded, metadata-only history of subscription account routing decisions.
2
+ * Bounded, metadata-only history of upstream routing decisions.
3
3
  *
4
4
  * Records are created at the shared upstream fetch seam, after authentication has
5
- * reported the account that will actually serve the request. The store is
6
- * intentionally process-local: it is useful for live operator diagnostics without
7
- * turning session/account affinity into a durable tracking database.
5
+ * reported the credential that will actually serve the request. TWO credential
6
+ * kinds share one timeline: subscription POOL ACCOUNTS (`credentialKind:
7
+ * 'subscription-account'`, identified by `accountId`) and BYO provider API KEYS
8
+ * (`credentialKind: 'provider-key'`, identified by `keyId` when the ApiKeyPool
9
+ * bound one). The store is intentionally process-local: it is useful for live
10
+ * operator diagnostics without turning session/account affinity into a durable
11
+ * tracking database.
8
12
  */
9
13
  declare const ACCOUNT_ROUTE_ACTIVITY_LIMIT = 300;
10
- type AccountRouteEndpoint = 'responses' | 'messages';
11
- type AccountRouteSessionSource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback' | 'none';
14
+ type AccountRouteEndpoint = 'responses' | 'messages' | 'chat' | 'generateContent';
15
+ /**
16
+ * Which kind of upstream credential a row attributes. Absent on records minted
17
+ * by older callers — those are subscription-account rows (the historical only
18
+ * kind), so the DEFAULT is `'subscription-account'`.
19
+ */
20
+ type RouteCredentialKind = 'subscription-account' | 'provider-key';
21
+ type AccountRouteSessionSource = 'session-header' | 'thread-header' | 'body-session-id' | 'body-thread-id' | 'prompt-cache-key' | 'content-fingerprint' | 'api-key-fallback' | 'route-session-id' | 'none';
12
22
  type AccountRouteAffinity = 'new' | 'sticky' | 'switched' | 'untracked';
13
23
  interface AccountRouteActivityInput {
24
+ /**
25
+ * Display provider id: a subscription provider id (`claude`/`codex`/…) for
26
+ * account rows, the PROVIDER ROW id for provider-key rows. This is NOT the
27
+ * egress proxy key (`'byo'`) — it must be the id an operator recognizes.
28
+ */
14
29
  providerId: string;
15
- accountId: string;
30
+ /** Which kind of credential served the request. Defaults to
31
+ * `'subscription-account'` for back-compat with older callers. */
32
+ credentialKind?: RouteCredentialKind;
33
+ /** Subscription pool account id (required for `subscription-account` rows). */
34
+ accountId?: string;
35
+ /** ApiKeyPool key id when known (provider-key rows). Metadata only — the key
36
+ * STRING never enters this store. */
37
+ keyId?: string;
16
38
  endpoint: AccountRouteEndpoint;
17
39
  sessionKey?: string;
18
40
  sessionSource: AccountRouteSessionSource;
@@ -33,11 +55,14 @@ interface AccountRouteActivityRecord extends AccountRouteActivityInput {
33
55
  ts: number;
34
56
  affinity: AccountRouteAffinity;
35
57
  previousAccountId?: string;
58
+ /** For `provider-key` rows whose session switched keys (pool rotation). */
59
+ previousKeyId?: string;
36
60
  }
37
61
  interface AccountRouteActivityQuery {
38
62
  providerId?: string;
39
63
  accountId?: string;
40
64
  sessionKey?: string;
65
+ credentialKind?: RouteCredentialKind;
41
66
  limit?: number;
42
67
  }
43
68
  declare class AccountRouteActivityStore {
@@ -58,4 +83,4 @@ declare class AccountRouteActivityStore {
58
83
  }
59
84
  declare function getSharedAccountRouteActivity(): AccountRouteActivityStore;
60
85
 
61
- export { ACCOUNT_ROUTE_ACTIVITY_LIMIT, type AccountRouteActivityInput, type AccountRouteActivityQuery, type AccountRouteActivityRecord, AccountRouteActivityStore, type AccountRouteAffinity, type AccountRouteEndpoint, type AccountRouteSessionSource, getSharedAccountRouteActivity };
86
+ export { ACCOUNT_ROUTE_ACTIVITY_LIMIT, type AccountRouteActivityInput, type AccountRouteActivityQuery, type AccountRouteActivityRecord, AccountRouteActivityStore, type AccountRouteAffinity, type AccountRouteEndpoint, type AccountRouteSessionSource, type RouteCredentialKind, getSharedAccountRouteActivity };
@@ -2,7 +2,7 @@ import {
2
2
  ACCOUNT_ROUTE_ACTIVITY_LIMIT,
3
3
  AccountRouteActivityStore,
4
4
  getSharedAccountRouteActivity
5
- } from "../chunk-GL6XM527.js";
5
+ } from "../chunk-TX7ZM4OI.js";
6
6
  export {
7
7
  ACCOUNT_ROUTE_ACTIVITY_LIMIT,
8
8
  AccountRouteActivityStore,
@@ -4,14 +4,14 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkVFFCV4J6cjs = require('../chunk-VFFCV4J6.cjs');
7
+ var _chunkCXRJMNJJcjs = require('../chunk-CXRJMNJJ.cjs');
8
8
  require('../chunk-235MXAGX.cjs');
9
9
  require('../chunk-VYOBVPNB.cjs');
10
- require('../chunk-NKVZ6Z3Y.cjs');
10
+ require('../chunk-4HMAS74X.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- exports.__resetUpstreamProxyForTests = _chunkVFFCV4J6cjs.__resetUpstreamProxyForTests; exports.bumpUpstreamProxyGeneration = _chunkVFFCV4J6cjs.bumpUpstreamProxyGeneration; exports.fetchUpstream = _chunkVFFCV4J6cjs.fetchUpstream; exports.resolveUpstreamDispatcher = _chunkVFFCV4J6cjs.resolveUpstreamDispatcher; exports.setUpstreamProxyResolver = _chunkVFFCV4J6cjs.setUpstreamProxyResolver;
17
+ exports.__resetUpstreamProxyForTests = _chunkCXRJMNJJcjs.__resetUpstreamProxyForTests; exports.bumpUpstreamProxyGeneration = _chunkCXRJMNJJcjs.bumpUpstreamProxyGeneration; exports.fetchUpstream = _chunkCXRJMNJJcjs.fetchUpstream; exports.resolveUpstreamDispatcher = _chunkCXRJMNJJcjs.resolveUpstreamDispatcher; exports.setUpstreamProxyResolver = _chunkCXRJMNJJcjs.setUpstreamProxyResolver;
@@ -1,6 +1,6 @@
1
1
  import { ProxyConfig } from '@omnicross/contracts/account-tokens-types';
2
2
  import { Dispatcher } from 'undici';
3
- import { AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRecord } from './AccountRouteActivity.cjs';
3
+ import { RouteCredentialKind, AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRecord } from './AccountRouteActivity.cjs';
4
4
 
5
5
  /**
6
6
  * upstreamFetch — the single proxy-aware egress seam for `@omnicross/core`
@@ -39,6 +39,20 @@ import { AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRe
39
39
  */
40
40
 
41
41
  interface AccountRouteActivityContext {
42
+ /**
43
+ * DISPLAY provider id for the row: the subscription provider id
44
+ * (`claude`/`codex`/…) for account rows, or the PROVIDER ROW id for BYO
45
+ * provider-key rows. Deliberately NOT the egress ctx's `providerId` for BYO —
46
+ * that is the proxy-layer key, the literal `'byo'`, useless as a row identity.
47
+ * Falls back to `ctx.providerId` when absent (legacy account-row callers).
48
+ */
49
+ providerId?: string;
50
+ /** Which credential kind served the call. Defaults `subscription-account`. */
51
+ credentialKind?: RouteCredentialKind;
52
+ /** Subscription account id — required to record an account row. */
53
+ accountId?: string;
54
+ /** ApiKeyPool key id for provider-key rows, when the pool bound one. */
55
+ keyId?: string;
42
56
  endpoint: AccountRouteEndpoint;
43
57
  sessionKey?: string;
44
58
  sessionSource: AccountRouteSessionSource;
@@ -1,6 +1,6 @@
1
1
  import { ProxyConfig } from '@omnicross/contracts/account-tokens-types';
2
2
  import { Dispatcher } from 'undici';
3
- import { AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRecord } from './AccountRouteActivity.js';
3
+ import { RouteCredentialKind, AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRecord } from './AccountRouteActivity.js';
4
4
 
5
5
  /**
6
6
  * upstreamFetch — the single proxy-aware egress seam for `@omnicross/core`
@@ -39,6 +39,20 @@ import { AccountRouteEndpoint, AccountRouteSessionSource, AccountRouteActivityRe
39
39
  */
40
40
 
41
41
  interface AccountRouteActivityContext {
42
+ /**
43
+ * DISPLAY provider id for the row: the subscription provider id
44
+ * (`claude`/`codex`/…) for account rows, or the PROVIDER ROW id for BYO
45
+ * provider-key rows. Deliberately NOT the egress ctx's `providerId` for BYO —
46
+ * that is the proxy-layer key, the literal `'byo'`, useless as a row identity.
47
+ * Falls back to `ctx.providerId` when absent (legacy account-row callers).
48
+ */
49
+ providerId?: string;
50
+ /** Which credential kind served the call. Defaults `subscription-account`. */
51
+ credentialKind?: RouteCredentialKind;
52
+ /** Subscription account id — required to record an account row. */
53
+ accountId?: string;
54
+ /** ApiKeyPool key id for provider-key rows, when the pool bound one. */
55
+ keyId?: string;
42
56
  endpoint: AccountRouteEndpoint;
43
57
  sessionKey?: string;
44
58
  sessionSource: AccountRouteSessionSource;
@@ -4,10 +4,10 @@ import {
4
4
  fetchUpstream,
5
5
  resolveUpstreamDispatcher,
6
6
  setUpstreamProxyResolver
7
- } from "../chunk-NTF7TLT7.js";
7
+ } from "../chunk-LBIXTHP7.js";
8
8
  import "../chunk-3WD4HTR2.js";
9
9
  import "../chunk-FYPKKMB3.js";
10
- import "../chunk-GL6XM527.js";
10
+ import "../chunk-TX7ZM4OI.js";
11
11
  export {
12
12
  __resetUpstreamProxyForTests,
13
13
  bumpUpstreamProxyGeneration,
package/dist/ports.d.cts CHANGED
@@ -5,7 +5,7 @@ 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
7
  export { U as UsageSink } from './types-BSIJdsyl.cjs';
8
- export { O as OutboundCredentialStore } from './types-C6m-Db26.cjs';
8
+ export { O as OutboundCredentialStore } from './types-Dt1bgHPg.cjs';
9
9
  import '@omnicross/contracts/pricing-types';
10
10
  import '@omnicross/contracts/llm-config';
11
11
  import './transformer/types.cjs';
package/dist/ports.d.ts CHANGED
@@ -5,7 +5,7 @@ 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
7
  export { U as UsageSink } from './types-By9Tg6-I.js';
8
- export { O as OutboundCredentialStore } from './types-Da735j2d.js';
8
+ export { O as OutboundCredentialStore } from './types-IRPv4i1Y.js';
9
9
  import '@omnicross/contracts/pricing-types';
10
10
  import '@omnicross/contracts/llm-config';
11
11
  import './transformer/types.js';
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkRX3BCX53cjs = require('../chunk-RX3BCX53.cjs');
4
+ var _chunkNCCEWVWYcjs = require('../chunk-NCCEWVWY.cjs');
5
5
  require('../chunk-QVOB2DNX.cjs');
6
- require('../chunk-UOOLU64V.cjs');
6
+ require('../chunk-LVQOCIES.cjs');
7
7
  require('../chunk-NOITAVHA.cjs');
8
8
  require('../chunk-QWNUOR7F.cjs');
9
9
  require('../chunk-47E3I5PF.cjs');
10
10
  require('../chunk-5RSZYQJH.cjs');
11
11
  require('../chunk-VGBJPHHD.cjs');
12
- require('../chunk-CGEZQC2G.cjs');
13
- require('../chunk-X6GHTNDL.cjs');
14
- require('../chunk-E5RCCGE7.cjs');
12
+ require('../chunk-F3TT5XPV.cjs');
13
+ require('../chunk-ZG57GAVU.cjs');
14
+ require('../chunk-DF5JXK36.cjs');
15
15
  require('../chunk-BTSADEX4.cjs');
16
16
  require('../chunk-32SRZFFP.cjs');
17
17
  require('../chunk-2E42SAW3.cjs');
@@ -25,7 +25,7 @@ require('../chunk-HQP3K7PU.cjs');
25
25
  require('../chunk-SQU2FGXI.cjs');
26
26
  require('../chunk-RPII3E6Z.cjs');
27
27
  require('../chunk-6RPZADX3.cjs');
28
- require('../chunk-GWC7HCZI.cjs');
28
+ require('../chunk-2DMOOZ4F.cjs');
29
29
  require('../chunk-UKQHBK4Q.cjs');
30
30
  require('../chunk-UIBD2YY5.cjs');
31
31
  require('../chunk-R3HK6R4B.cjs');
@@ -55,19 +55,19 @@ require('../chunk-GMMT7RVN.cjs');
55
55
  require('../chunk-UNEFIWXI.cjs');
56
56
  require('../chunk-A2YMUCBT.cjs');
57
57
  require('../chunk-GDIXXKF2.cjs');
58
- require('../chunk-NDIBVTBZ.cjs');
58
+ require('../chunk-XYFCNDJK.cjs');
59
59
  require('../chunk-N3MGNLCU.cjs');
60
60
  require('../chunk-4NAMH4UE.cjs');
61
61
  require('../chunk-77USGNRW.cjs');
62
62
  require('../chunk-IUL4VWNU.cjs');
63
- require('../chunk-VFFCV4J6.cjs');
63
+ require('../chunk-CXRJMNJJ.cjs');
64
64
  require('../chunk-235MXAGX.cjs');
65
65
  require('../chunk-VYOBVPNB.cjs');
66
- require('../chunk-NKVZ6Z3Y.cjs');
66
+ require('../chunk-4HMAS74X.cjs');
67
67
  require('../chunk-INY54AYX.cjs');
68
68
  require('../chunk-G4CZIUIB.cjs');
69
69
  require('../chunk-2RCCLQYV.cjs');
70
70
 
71
71
 
72
72
 
73
- exports.ProviderProxy = _chunkRX3BCX53cjs.ProviderProxy; exports.isLoopbackAddress = _chunkRX3BCX53cjs.isLoopbackAddress;
73
+ exports.ProviderProxy = _chunkNCCEWVWYcjs.ProviderProxy; exports.isLoopbackAddress = _chunkNCCEWVWYcjs.isLoopbackAddress;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ProviderProxy,
3
3
  isLoopbackAddress
4
- } from "../chunk-YV4JSBPA.js";
4
+ } from "../chunk-L4L77G3X.js";
5
5
  import "../chunk-WTQMX2Q6.js";
6
- import "../chunk-MPFOC7AT.js";
6
+ import "../chunk-24W3DVGI.js";
7
7
  import "../chunk-V53ZEFXC.js";
8
8
  import "../chunk-7PIUVCKK.js";
9
9
  import "../chunk-TKZ3DZS5.js";
10
10
  import "../chunk-FU7EAR73.js";
11
11
  import "../chunk-IDPMD4B7.js";
12
- import "../chunk-K6J2RIEX.js";
13
- import "../chunk-ZJJBITUN.js";
14
- import "../chunk-F6P4DIBL.js";
12
+ import "../chunk-NDJSLJIA.js";
13
+ import "../chunk-IAWLTZUP.js";
14
+ import "../chunk-TLYFFUW4.js";
15
15
  import "../chunk-OXBGNEYR.js";
16
16
  import "../chunk-QIIAMBTM.js";
17
17
  import "../chunk-FXR6N3SR.js";
@@ -25,7 +25,7 @@ import "../chunk-VVEHS2LI.js";
25
25
  import "../chunk-4LSZ7NFM.js";
26
26
  import "../chunk-XTEI64OU.js";
27
27
  import "../chunk-XX6NQJMA.js";
28
- import "../chunk-NCZDUBC2.js";
28
+ import "../chunk-WYUXJKMK.js";
29
29
  import "../chunk-ONTTXSRL.js";
30
30
  import "../chunk-OE6TDIWW.js";
31
31
  import "../chunk-DRWHTIIZ.js";
@@ -55,15 +55,15 @@ import "../chunk-FMOBD2OQ.js";
55
55
  import "../chunk-HUZZZ3JL.js";
56
56
  import "../chunk-H5JUT3KV.js";
57
57
  import "../chunk-5NJLQ6T6.js";
58
- import "../chunk-EE7VP4O3.js";
58
+ import "../chunk-HQ7C3VB6.js";
59
59
  import "../chunk-QSOHEDKO.js";
60
60
  import "../chunk-YEHQ5FXZ.js";
61
61
  import "../chunk-WYVGULTQ.js";
62
62
  import "../chunk-ZLNHPUFA.js";
63
- import "../chunk-NTF7TLT7.js";
63
+ import "../chunk-LBIXTHP7.js";
64
64
  import "../chunk-3WD4HTR2.js";
65
65
  import "../chunk-FYPKKMB3.js";
66
- import "../chunk-GL6XM527.js";
66
+ import "../chunk-TX7ZM4OI.js";
67
67
  import "../chunk-4RM22ETG.js";
68
68
  import "../chunk-4JOU54M5.js";
69
69
  import "../chunk-4PFWFODB.js";
@@ -36,10 +36,12 @@ declare function fillMissingHeaders(headers: Record<string, string>, source: Rea
36
36
  *
37
37
  * NOT DONE HERE (deliberate, see the relay call site):
38
38
  * - `chatgpt-account-id`: compatible implementations send the ChatGPT account
39
- * id parsed out of the OAuth `id_token`. Guessing it wrong risks a 403 on a
40
- * path that currently works, so it is left to a follow-up that can verify it.
41
- * - forcing `store: false` on the body: a body mutation with its own regression
42
- * surface, tracked separately.
39
+ * id parsed out of the OAuth `id_token`. Verified 2026-09-12 against the
40
+ * live backend: the header is NOT required (a request without it authorizes
41
+ * fine), so it stays omitted sending a guessed id risks a 403.
42
+ * - forcing `store: false` on the body: DONE since 2026-09-12 in the driver's
43
+ * `applyPlanAuth` — the backend now 400s any /codex/responses call without
44
+ * it (`{"detail":"Store must be set to false"}`).
43
45
  *
44
46
  * @module provider-proxy/identity/codexCliHeaders
45
47
  */
@@ -36,10 +36,12 @@ declare function fillMissingHeaders(headers: Record<string, string>, source: Rea
36
36
  *
37
37
  * NOT DONE HERE (deliberate, see the relay call site):
38
38
  * - `chatgpt-account-id`: compatible implementations send the ChatGPT account
39
- * id parsed out of the OAuth `id_token`. Guessing it wrong risks a 403 on a
40
- * path that currently works, so it is left to a follow-up that can verify it.
41
- * - forcing `store: false` on the body: a body mutation with its own regression
42
- * surface, tracked separately.
39
+ * id parsed out of the OAuth `id_token`. Verified 2026-09-12 against the
40
+ * live backend: the header is NOT required (a request without it authorizes
41
+ * fine), so it stays omitted sending a guessed id risks a 403.
42
+ * - forcing `store: false` on the body: DONE since 2026-09-12 in the driver's
43
+ * `applyPlanAuth` — the backend now 400s any /codex/responses call without
44
+ * it (`{"detail":"Store must be set to false"}`).
43
45
  *
44
46
  * @module provider-proxy/identity/codexCliHeaders
45
47
  */
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkGWC7HCZIcjs = require('../../chunk-GWC7HCZI.cjs');
8
+ var _chunk2DMOOZ4Fcjs = require('../../chunk-2DMOOZ4F.cjs');
9
9
  require('../../chunk-UKQHBK4Q.cjs');
10
10
 
11
11
 
@@ -14,4 +14,4 @@ require('../../chunk-UKQHBK4Q.cjs');
14
14
 
15
15
 
16
16
 
17
- exports.OPENCODE_SESSION_HEADER = _chunkGWC7HCZIcjs.OPENCODE_SESSION_HEADER; exports.__resetOpenCodeGoHeadersForTests = _chunkGWC7HCZIcjs.__resetOpenCodeGoHeadersForTests; exports.extractOpenCodeSessionHeader = _chunkGWC7HCZIcjs.extractOpenCodeSessionHeader; exports.getOpenCodeGoUserAgent = _chunkGWC7HCZIcjs.getOpenCodeGoUserAgent; exports.resolveOpenCodeSessionHeader = _chunkGWC7HCZIcjs.resolveOpenCodeSessionHeader; exports.setOpenCodeGoUserAgent = _chunkGWC7HCZIcjs.setOpenCodeGoUserAgent;
17
+ exports.OPENCODE_SESSION_HEADER = _chunk2DMOOZ4Fcjs.OPENCODE_SESSION_HEADER; exports.__resetOpenCodeGoHeadersForTests = _chunk2DMOOZ4Fcjs.__resetOpenCodeGoHeadersForTests; exports.extractOpenCodeSessionHeader = _chunk2DMOOZ4Fcjs.extractOpenCodeSessionHeader; exports.getOpenCodeGoUserAgent = _chunk2DMOOZ4Fcjs.getOpenCodeGoUserAgent; exports.resolveOpenCodeSessionHeader = _chunk2DMOOZ4Fcjs.resolveOpenCodeSessionHeader; exports.setOpenCodeGoUserAgent = _chunk2DMOOZ4Fcjs.setOpenCodeGoUserAgent;
@@ -5,7 +5,7 @@ import {
5
5
  getOpenCodeGoUserAgent,
6
6
  resolveOpenCodeSessionHeader,
7
7
  setOpenCodeGoUserAgent
8
- } from "../../chunk-NCZDUBC2.js";
8
+ } from "../../chunk-WYUXJKMK.js";
9
9
  import "../../chunk-ONTTXSRL.js";
10
10
  export {
11
11
  OPENCODE_SESSION_HEADER,
@@ -11,17 +11,18 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkRX3BCX53cjs = require('../../chunk-RX3BCX53.cjs');
14
+
15
+ var _chunkNCCEWVWYcjs = require('../../chunk-NCCEWVWY.cjs');
15
16
  require('../../chunk-QVOB2DNX.cjs');
16
- require('../../chunk-UOOLU64V.cjs');
17
+ require('../../chunk-LVQOCIES.cjs');
17
18
  require('../../chunk-NOITAVHA.cjs');
18
19
  require('../../chunk-QWNUOR7F.cjs');
19
20
  require('../../chunk-47E3I5PF.cjs');
20
21
  require('../../chunk-5RSZYQJH.cjs');
21
22
  require('../../chunk-VGBJPHHD.cjs');
22
- require('../../chunk-CGEZQC2G.cjs');
23
- require('../../chunk-X6GHTNDL.cjs');
24
- require('../../chunk-E5RCCGE7.cjs');
23
+ require('../../chunk-F3TT5XPV.cjs');
24
+ require('../../chunk-ZG57GAVU.cjs');
25
+ require('../../chunk-DF5JXK36.cjs');
25
26
  require('../../chunk-BTSADEX4.cjs');
26
27
  require('../../chunk-32SRZFFP.cjs');
27
28
  require('../../chunk-2E42SAW3.cjs');
@@ -35,7 +36,7 @@ require('../../chunk-HQP3K7PU.cjs');
35
36
  require('../../chunk-SQU2FGXI.cjs');
36
37
  require('../../chunk-RPII3E6Z.cjs');
37
38
  require('../../chunk-6RPZADX3.cjs');
38
- require('../../chunk-GWC7HCZI.cjs');
39
+ require('../../chunk-2DMOOZ4F.cjs');
39
40
  require('../../chunk-UKQHBK4Q.cjs');
40
41
  require('../../chunk-UIBD2YY5.cjs');
41
42
  require('../../chunk-R3HK6R4B.cjs');
@@ -65,15 +66,15 @@ require('../../chunk-GMMT7RVN.cjs');
65
66
  require('../../chunk-UNEFIWXI.cjs');
66
67
  require('../../chunk-A2YMUCBT.cjs');
67
68
  require('../../chunk-GDIXXKF2.cjs');
68
- require('../../chunk-NDIBVTBZ.cjs');
69
+ require('../../chunk-XYFCNDJK.cjs');
69
70
  require('../../chunk-N3MGNLCU.cjs');
70
71
  require('../../chunk-4NAMH4UE.cjs');
71
72
  require('../../chunk-77USGNRW.cjs');
72
73
  require('../../chunk-IUL4VWNU.cjs');
73
- require('../../chunk-VFFCV4J6.cjs');
74
+ require('../../chunk-CXRJMNJJ.cjs');
74
75
  require('../../chunk-235MXAGX.cjs');
75
76
  require('../../chunk-VYOBVPNB.cjs');
76
- require('../../chunk-NKVZ6Z3Y.cjs');
77
+ require('../../chunk-4HMAS74X.cjs');
77
78
  require('../../chunk-INY54AYX.cjs');
78
79
  require('../../chunk-G4CZIUIB.cjs');
79
80
  require('../../chunk-2RCCLQYV.cjs');
@@ -90,4 +91,5 @@ require('../../chunk-2RCCLQYV.cjs');
90
91
 
91
92
 
92
93
 
93
- exports.aggregateAnthropicSseToJsonBody = _chunkRX3BCX53cjs.aggregateAnthropicSseToJsonBody; exports.cancelDiscardedResponse = _chunkRX3BCX53cjs.cancelDiscardedResponse; exports.getAnthropicEndpointTransformer = _chunkRX3BCX53cjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunkRX3BCX53cjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunkRX3BCX53cjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunkRX3BCX53cjs.getSharedExecutor; exports.projectUpstreamResponseHeaders = _chunkRX3BCX53cjs.projectUpstreamResponseHeaders; exports.readBody = _chunkRX3BCX53cjs.readBody; exports.relayResponse = _chunkRX3BCX53cjs.relayResponse; exports.resolvePoolBoundKey = _chunkRX3BCX53cjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunkRX3BCX53cjs.writeBoundAccountError; exports.writeError = _chunkRX3BCX53cjs.writeError;
94
+
95
+ exports.aggregateAnthropicSseToJsonBody = _chunkNCCEWVWYcjs.aggregateAnthropicSseToJsonBody; exports.buildByoRouteActivityMeta = _chunkNCCEWVWYcjs.buildByoRouteActivityMeta; exports.cancelDiscardedResponse = _chunkNCCEWVWYcjs.cancelDiscardedResponse; exports.getAnthropicEndpointTransformer = _chunkNCCEWVWYcjs.getAnthropicEndpointTransformer; exports.getGeminiEndpointTransformer = _chunkNCCEWVWYcjs.getGeminiEndpointTransformer; exports.getResponsesEndpointTransformer = _chunkNCCEWVWYcjs.getResponsesEndpointTransformer; exports.getSharedExecutor = _chunkNCCEWVWYcjs.getSharedExecutor; exports.projectUpstreamResponseHeaders = _chunkNCCEWVWYcjs.projectUpstreamResponseHeaders; exports.readBody = _chunkNCCEWVWYcjs.readBody; exports.relayResponse = _chunkNCCEWVWYcjs.relayResponse; exports.resolvePoolBoundKey = _chunkNCCEWVWYcjs.resolvePoolBoundKey; exports.writeBoundAccountError = _chunkNCCEWVWYcjs.writeBoundAccountError; exports.writeError = _chunkNCCEWVWYcjs.writeError;
@@ -173,5 +173,23 @@ declare function writeBoundAccountError(res: http.ServerResponse, error: BoundAc
173
173
  * so the pool branch needs no further `$ENV` expansion.
174
174
  */
175
175
  declare function resolvePoolBoundKey(deps: ProviderProxyDeps, providerId: string, provider: LLMProvider, sessionId: string | null, preferredKeyId?: string, boundKeyFallbackPolicy?: 'strict' | 'pool'): Promise<string>;
176
+ /**
177
+ * BYO route-activity metadata for one plan — everything the fetch seam needs to
178
+ * record a `provider-key` row, resolved LIVE at fetch time so an ApiKeyPool
179
+ * rebind retry (the rotated-key `runOnce(newKey)` re-run) attributes the SECOND
180
+ * attempt to the NEW key.
181
+ *
182
+ * `providerId` is the provider ROW id (the display identity an operator
183
+ * recognizes) — never the egress proxy key `'byo'`. `resolveKeyId` reads the
184
+ * pool's CURRENT session binding (the same map `resolvePoolBoundKey` seeds and
185
+ * `reportError` rotates), so it is exactly the key this attempt sends whenever
186
+ * the pool is bound; `undefined` for non-pool BYO (static row key) — the store
187
+ * then records the row without a key id and affinity treats it as one identity.
188
+ */
189
+ interface ByoRouteActivityMeta {
190
+ readonly providerId: string;
191
+ readonly resolveKeyId: () => string | undefined;
192
+ }
193
+ declare function buildByoRouteActivityMeta(deps: ProviderProxyDeps, providerId: string, sessionId: string | null | undefined): ByoRouteActivityMeta;
176
194
 
177
- export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
195
+ export { type ByoRouteActivityMeta, type StreamUsageTap, aggregateAnthropicSseToJsonBody, buildByoRouteActivityMeta, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
@@ -173,5 +173,23 @@ declare function writeBoundAccountError(res: http.ServerResponse, error: BoundAc
173
173
  * so the pool branch needs no further `$ENV` expansion.
174
174
  */
175
175
  declare function resolvePoolBoundKey(deps: ProviderProxyDeps, providerId: string, provider: LLMProvider, sessionId: string | null, preferredKeyId?: string, boundKeyFallbackPolicy?: 'strict' | 'pool'): Promise<string>;
176
+ /**
177
+ * BYO route-activity metadata for one plan — everything the fetch seam needs to
178
+ * record a `provider-key` row, resolved LIVE at fetch time so an ApiKeyPool
179
+ * rebind retry (the rotated-key `runOnce(newKey)` re-run) attributes the SECOND
180
+ * attempt to the NEW key.
181
+ *
182
+ * `providerId` is the provider ROW id (the display identity an operator
183
+ * recognizes) — never the egress proxy key `'byo'`. `resolveKeyId` reads the
184
+ * pool's CURRENT session binding (the same map `resolvePoolBoundKey` seeds and
185
+ * `reportError` rotates), so it is exactly the key this attempt sends whenever
186
+ * the pool is bound; `undefined` for non-pool BYO (static row key) — the store
187
+ * then records the row without a key id and affinity treats it as one identity.
188
+ */
189
+ interface ByoRouteActivityMeta {
190
+ readonly providerId: string;
191
+ readonly resolveKeyId: () => string | undefined;
192
+ }
193
+ declare function buildByoRouteActivityMeta(deps: ProviderProxyDeps, providerId: string, sessionId: string | null | undefined): ByoRouteActivityMeta;
176
194
 
177
- export { type StreamUsageTap, aggregateAnthropicSseToJsonBody, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
195
+ export { type ByoRouteActivityMeta, type StreamUsageTap, aggregateAnthropicSseToJsonBody, buildByoRouteActivityMeta, cancelDiscardedResponse, getAnthropicEndpointTransformer, getGeminiEndpointTransformer, getResponsesEndpointTransformer, getSharedExecutor, projectUpstreamResponseHeaders, readBody, relayResponse, resolvePoolBoundKey, writeBoundAccountError, writeError };
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  aggregateAnthropicSseToJsonBody,
3
+ buildByoRouteActivityMeta,
3
4
  cancelDiscardedResponse,
4
5
  getAnthropicEndpointTransformer,
5
6
  getGeminiEndpointTransformer,
@@ -11,17 +12,17 @@ import {
11
12
  resolvePoolBoundKey,
12
13
  writeBoundAccountError,
13
14
  writeError
14
- } from "../../chunk-YV4JSBPA.js";
15
+ } from "../../chunk-L4L77G3X.js";
15
16
  import "../../chunk-WTQMX2Q6.js";
16
- import "../../chunk-MPFOC7AT.js";
17
+ import "../../chunk-24W3DVGI.js";
17
18
  import "../../chunk-V53ZEFXC.js";
18
19
  import "../../chunk-7PIUVCKK.js";
19
20
  import "../../chunk-TKZ3DZS5.js";
20
21
  import "../../chunk-FU7EAR73.js";
21
22
  import "../../chunk-IDPMD4B7.js";
22
- import "../../chunk-K6J2RIEX.js";
23
- import "../../chunk-ZJJBITUN.js";
24
- import "../../chunk-F6P4DIBL.js";
23
+ import "../../chunk-NDJSLJIA.js";
24
+ import "../../chunk-IAWLTZUP.js";
25
+ import "../../chunk-TLYFFUW4.js";
25
26
  import "../../chunk-OXBGNEYR.js";
26
27
  import "../../chunk-QIIAMBTM.js";
27
28
  import "../../chunk-FXR6N3SR.js";
@@ -35,7 +36,7 @@ import "../../chunk-VVEHS2LI.js";
35
36
  import "../../chunk-4LSZ7NFM.js";
36
37
  import "../../chunk-XTEI64OU.js";
37
38
  import "../../chunk-XX6NQJMA.js";
38
- import "../../chunk-NCZDUBC2.js";
39
+ import "../../chunk-WYUXJKMK.js";
39
40
  import "../../chunk-ONTTXSRL.js";
40
41
  import "../../chunk-OE6TDIWW.js";
41
42
  import "../../chunk-DRWHTIIZ.js";
@@ -65,20 +66,21 @@ import "../../chunk-FMOBD2OQ.js";
65
66
  import "../../chunk-HUZZZ3JL.js";
66
67
  import "../../chunk-H5JUT3KV.js";
67
68
  import "../../chunk-5NJLQ6T6.js";
68
- import "../../chunk-EE7VP4O3.js";
69
+ import "../../chunk-HQ7C3VB6.js";
69
70
  import "../../chunk-QSOHEDKO.js";
70
71
  import "../../chunk-YEHQ5FXZ.js";
71
72
  import "../../chunk-WYVGULTQ.js";
72
73
  import "../../chunk-ZLNHPUFA.js";
73
- import "../../chunk-NTF7TLT7.js";
74
+ import "../../chunk-LBIXTHP7.js";
74
75
  import "../../chunk-3WD4HTR2.js";
75
76
  import "../../chunk-FYPKKMB3.js";
76
- import "../../chunk-GL6XM527.js";
77
+ import "../../chunk-TX7ZM4OI.js";
77
78
  import "../../chunk-4RM22ETG.js";
78
79
  import "../../chunk-4JOU54M5.js";
79
80
  import "../../chunk-4PFWFODB.js";
80
81
  export {
81
82
  aggregateAnthropicSseToJsonBody,
83
+ buildByoRouteActivityMeta,
82
84
  cancelDiscardedResponse,
83
85
  getAnthropicEndpointTransformer,
84
86
  getGeminiEndpointTransformer,
@@ -40,17 +40,17 @@
40
40
 
41
41
 
42
42
 
43
- var _chunkRX3BCX53cjs = require('./chunk-RX3BCX53.cjs');
43
+ var _chunkNCCEWVWYcjs = require('./chunk-NCCEWVWY.cjs');
44
44
  require('./chunk-QVOB2DNX.cjs');
45
- require('./chunk-UOOLU64V.cjs');
45
+ require('./chunk-LVQOCIES.cjs');
46
46
  require('./chunk-NOITAVHA.cjs');
47
47
  require('./chunk-QWNUOR7F.cjs');
48
48
  require('./chunk-47E3I5PF.cjs');
49
49
  require('./chunk-5RSZYQJH.cjs');
50
50
  require('./chunk-VGBJPHHD.cjs');
51
- require('./chunk-CGEZQC2G.cjs');
52
- require('./chunk-X6GHTNDL.cjs');
53
- require('./chunk-E5RCCGE7.cjs');
51
+ require('./chunk-F3TT5XPV.cjs');
52
+ require('./chunk-ZG57GAVU.cjs');
53
+ require('./chunk-DF5JXK36.cjs');
54
54
  require('./chunk-BTSADEX4.cjs');
55
55
  require('./chunk-32SRZFFP.cjs');
56
56
  require('./chunk-2E42SAW3.cjs');
@@ -64,7 +64,7 @@ require('./chunk-HQP3K7PU.cjs');
64
64
  require('./chunk-SQU2FGXI.cjs');
65
65
  require('./chunk-RPII3E6Z.cjs');
66
66
  require('./chunk-6RPZADX3.cjs');
67
- require('./chunk-GWC7HCZI.cjs');
67
+ require('./chunk-2DMOOZ4F.cjs');
68
68
  require('./chunk-UKQHBK4Q.cjs');
69
69
  require('./chunk-UIBD2YY5.cjs');
70
70
  require('./chunk-R3HK6R4B.cjs');
@@ -94,15 +94,15 @@ require('./chunk-GMMT7RVN.cjs');
94
94
  require('./chunk-UNEFIWXI.cjs');
95
95
  require('./chunk-A2YMUCBT.cjs');
96
96
  require('./chunk-GDIXXKF2.cjs');
97
- require('./chunk-NDIBVTBZ.cjs');
97
+ require('./chunk-XYFCNDJK.cjs');
98
98
  require('./chunk-N3MGNLCU.cjs');
99
99
  require('./chunk-4NAMH4UE.cjs');
100
100
  require('./chunk-77USGNRW.cjs');
101
101
  require('./chunk-IUL4VWNU.cjs');
102
- require('./chunk-VFFCV4J6.cjs');
102
+ require('./chunk-CXRJMNJJ.cjs');
103
103
  require('./chunk-235MXAGX.cjs');
104
104
  require('./chunk-VYOBVPNB.cjs');
105
- require('./chunk-NKVZ6Z3Y.cjs');
105
+ require('./chunk-4HMAS74X.cjs');
106
106
  require('./chunk-INY54AYX.cjs');
107
107
  require('./chunk-G4CZIUIB.cjs');
108
108
  require('./chunk-2RCCLQYV.cjs');
@@ -148,4 +148,4 @@ require('./chunk-2RCCLQYV.cjs');
148
148
 
149
149
 
150
150
 
151
- exports.DEFAULT_ROUTE_IDLE_MS = _chunkRX3BCX53cjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunkRX3BCX53cjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkRX3BCX53cjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkRX3BCX53cjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkRX3BCX53cjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkRX3BCX53cjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkRX3BCX53cjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkRX3BCX53cjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkRX3BCX53cjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkRX3BCX53cjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.ResponsesAffinityStore = _chunkRX3BCX53cjs.ResponsesAffinityStore; exports.RouteLeaseError = _chunkRX3BCX53cjs.RouteLeaseError; exports.RouteLeaseManager = _chunkRX3BCX53cjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkRX3BCX53cjs.RouteLeaseTargetResolver; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkRX3BCX53cjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.__resetProviderProxyForTests = _chunkRX3BCX53cjs.__resetProviderProxyForTests; exports.canonicalizeRouteLeasePayload = _chunkRX3BCX53cjs.canonicalizeRouteLeasePayload; exports.classifyResponsesProfile = _chunkRX3BCX53cjs.classifyResponsesProfile; exports.createNativeResponsesHostedImageIngress = _chunkRX3BCX53cjs.createNativeResponsesHostedImageIngress; exports.createResponsesCompactHandler = _chunkRX3BCX53cjs.createResponsesCompactHandler; exports.extractRouteToken = _chunkRX3BCX53cjs.extractRouteToken; exports.getProviderProxy = _chunkRX3BCX53cjs.getProviderProxy; exports.getResponsesAffinityStore = _chunkRX3BCX53cjs.getResponsesAffinityStore; exports.hashRouteLeasePayload = _chunkRX3BCX53cjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkRX3BCX53cjs.hashRouteLeaseSessionId; exports.isLoopbackAddress = _chunkRX3BCX53cjs.isLoopbackAddress; exports.normalizeRouteLeaseIdempotencyKey = _chunkRX3BCX53cjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkRX3BCX53cjs.normalizeRouteLeaseTtl; exports.parseRouteLeaseCreate = _chunkRX3BCX53cjs.parseRouteLeaseCreate; exports.previousResponseNotFound = _chunkRX3BCX53cjs.previousResponseNotFound; exports.registerResponsesCompactOperation = _chunkRX3BCX53cjs.registerResponsesCompactOperation; exports.routeLeaseRuntime = _chunkRX3BCX53cjs.routeLeaseRuntime;
151
+ exports.DEFAULT_ROUTE_IDLE_MS = _chunkNCCEWVWYcjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunkNCCEWVWYcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkNCCEWVWYcjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkNCCEWVWYcjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkNCCEWVWYcjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkNCCEWVWYcjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkNCCEWVWYcjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkNCCEWVWYcjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkNCCEWVWYcjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkNCCEWVWYcjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkNCCEWVWYcjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkNCCEWVWYcjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkNCCEWVWYcjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkNCCEWVWYcjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.ResponsesAffinityStore = _chunkNCCEWVWYcjs.ResponsesAffinityStore; exports.RouteLeaseError = _chunkNCCEWVWYcjs.RouteLeaseError; exports.RouteLeaseManager = _chunkNCCEWVWYcjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkNCCEWVWYcjs.RouteLeaseTargetResolver; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkNCCEWVWYcjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.__resetProviderProxyForTests = _chunkNCCEWVWYcjs.__resetProviderProxyForTests; exports.canonicalizeRouteLeasePayload = _chunkNCCEWVWYcjs.canonicalizeRouteLeasePayload; exports.classifyResponsesProfile = _chunkNCCEWVWYcjs.classifyResponsesProfile; exports.createNativeResponsesHostedImageIngress = _chunkNCCEWVWYcjs.createNativeResponsesHostedImageIngress; exports.createResponsesCompactHandler = _chunkNCCEWVWYcjs.createResponsesCompactHandler; exports.extractRouteToken = _chunkNCCEWVWYcjs.extractRouteToken; exports.getProviderProxy = _chunkNCCEWVWYcjs.getProviderProxy; exports.getResponsesAffinityStore = _chunkNCCEWVWYcjs.getResponsesAffinityStore; exports.hashRouteLeasePayload = _chunkNCCEWVWYcjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkNCCEWVWYcjs.hashRouteLeaseSessionId; exports.isLoopbackAddress = _chunkNCCEWVWYcjs.isLoopbackAddress; exports.normalizeRouteLeaseIdempotencyKey = _chunkNCCEWVWYcjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkNCCEWVWYcjs.normalizeRouteLeaseTtl; exports.parseRouteLeaseCreate = _chunkNCCEWVWYcjs.parseRouteLeaseCreate; exports.previousResponseNotFound = _chunkNCCEWVWYcjs.previousResponseNotFound; exports.registerResponsesCompactOperation = _chunkNCCEWVWYcjs.registerResponsesCompactOperation; exports.routeLeaseRuntime = _chunkNCCEWVWYcjs.routeLeaseRuntime;
@@ -2,7 +2,7 @@ import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderPro
2
2
  export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-Bz_nkOwq.cjs';
3
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
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-C6m-Db26.cjs';
5
+ import { g as GatewayBindingTarget } from './types-Dt1bgHPg.cjs';
6
6
  import { ProviderConfigSource } from './ports/provider-config-source.cjs';
7
7
  import 'node:http';
8
8
  import '@omnicross/contracts/completion-types';