@omnicross/core 0.1.4 → 0.1.6

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 (204) hide show
  1. package/dist/ApiConverter.cjs +2 -2
  2. package/dist/ApiConverter.js +1 -1
  3. package/dist/{CompletionService-DdWaAxq0.d.ts → CompletionService-C3BX0Ovy.d.ts} +4 -3
  4. package/dist/{CompletionService-D3a47vdU.d.cts → CompletionService-kNA17cfI.d.cts} +4 -3
  5. package/dist/auth/GeminiCodeAssistProjectResolver.cjs +7 -5
  6. package/dist/auth/GeminiCodeAssistProjectResolver.js +5 -3
  7. package/dist/{chunk-HRRYG2AX.js → chunk-23S5OPIO.js} +10 -1
  8. package/dist/chunk-25GXJCEZ.cjs +40 -0
  9. package/dist/chunk-2JYRIADS.js +40 -0
  10. package/dist/chunk-3Z5BQZFM.cjs +52 -0
  11. package/dist/{chunk-4VAVYUZS.cjs → chunk-4VLRHHFE.cjs} +82 -40
  12. package/dist/{chunk-VACWOIRE.cjs → chunk-4VZX5F4T.cjs} +39 -15
  13. package/dist/{chunk-FTQ7IQUC.js → chunk-6CL5HTPQ.js} +52 -10
  14. package/dist/chunk-6QQG7YG3.cjs +153 -0
  15. package/dist/{chunk-SU2GCLAC.cjs → chunk-6VUQPOV3.cjs} +359 -60
  16. package/dist/chunk-7AK7B36B.cjs +44 -0
  17. package/dist/{chunk-5ZQBEOMD.js → chunk-AT7B7SOZ.js} +25 -2
  18. package/dist/{chunk-IK3KE3AU.js → chunk-DE2SRBFZ.js} +1 -1
  19. package/dist/chunk-DLXZEZWO.cjs +285 -0
  20. package/dist/{chunk-UHGVBFU3.js → chunk-EBLFCNPY.js} +38 -14
  21. package/dist/chunk-EJLH6NFT.cjs +166 -0
  22. package/dist/chunk-HVBBDBS3.cjs +350 -0
  23. package/dist/{chunk-7Y47UCF2.js → chunk-IFXJ2BG7.js} +5 -38
  24. package/dist/{chunk-46ZIFWYG.cjs → chunk-IIRPUVPH.cjs} +7 -1
  25. package/dist/{chunk-YGXJGRFI.cjs → chunk-KBM2W6UY.cjs} +111 -24
  26. package/dist/{chunk-OCEUVQHW.cjs → chunk-KCVJWJST.cjs} +73 -3
  27. package/dist/chunk-LB6EBS6Y.js +69 -0
  28. package/dist/{chunk-C7PSERMH.js → chunk-LVUCAWMK.js} +1 -1
  29. package/dist/chunk-MKF46GNZ.js +350 -0
  30. package/dist/{chunk-HYN75H6G.cjs → chunk-MUHWHQVM.cjs} +1 -1
  31. package/dist/{chunk-Z7Y2NPHY.js → chunk-N5T4M4GU.js} +1 -1
  32. package/dist/{chunk-TIER4SUC.js → chunk-OEWZUX4G.js} +346 -47
  33. package/dist/chunk-OF3BECU2.cjs +69 -0
  34. package/dist/{chunk-RSJ3TWJQ.cjs → chunk-OKMJLEXX.cjs} +5 -5
  35. package/dist/chunk-OPRS4IQZ.js +153 -0
  36. package/dist/{chunk-XK5CIRMQ.js → chunk-SIZQQD6T.js} +72 -2
  37. package/dist/{chunk-DKPXN34V.cjs → chunk-SQYVORNP.cjs} +1334 -510
  38. package/dist/chunk-SYQF7OIR.js +52 -0
  39. package/dist/{chunk-S4WBV25P.js → chunk-TOVPMMHM.js} +111 -24
  40. package/dist/{chunk-QYTT6GE3.js → chunk-UDCC7EMR.js} +1093 -269
  41. package/dist/{chunk-E3UCVHLP.cjs → chunk-UNWKG6EI.cjs} +5 -38
  42. package/dist/{chunk-ZLX3KGXX.js → chunk-UX7VWA46.js} +135 -23
  43. package/dist/{chunk-7YN22L2H.cjs → chunk-V4TXMEJS.cjs} +5 -5
  44. package/dist/chunk-VRFBB5DB.js +44 -0
  45. package/dist/chunk-WB6PH56J.js +166 -0
  46. package/dist/{chunk-G2UTNSGU.js → chunk-WNKWAEUR.js} +7 -1
  47. package/dist/{chunk-SUEGJ75D.cjs → chunk-WYTEQ4Q5.cjs} +25 -2
  48. package/dist/{chunk-5ENKBSWO.js → chunk-YJVHCHQX.js} +42 -6
  49. package/dist/{chunk-VQY5W4YW.cjs → chunk-YK57NMIF.cjs} +44 -8
  50. package/dist/{chunk-KFI44N2R.cjs → chunk-YNJNTCSQ.cjs} +10 -1
  51. package/dist/completion/ApiKeyPoolService.cjs +12 -0
  52. package/dist/completion/ApiKeyPoolService.d.cts +6 -0
  53. package/dist/completion/ApiKeyPoolService.d.ts +6 -0
  54. package/dist/completion/ApiKeyPoolService.js +12 -0
  55. package/dist/completion/CompletionService.cjs +27 -24
  56. package/dist/completion/CompletionService.d.cts +2 -1
  57. package/dist/completion/CompletionService.d.ts +2 -1
  58. package/dist/completion/CompletionService.js +26 -23
  59. package/dist/completion.cjs +27 -24
  60. package/dist/completion.d.cts +2 -1
  61. package/dist/completion.d.ts +2 -1
  62. package/dist/completion.js +26 -23
  63. package/dist/index.cjs +53 -29
  64. package/dist/index.d.cts +8 -8
  65. package/dist/index.d.ts +8 -8
  66. package/dist/index.js +56 -32
  67. package/dist/{keyPolicy-Cp0FntZl.d.cts → keyPolicy-zdWTu3CQ.d.cts} +1 -1
  68. package/dist/{keyPolicy-Cp0FntZl.d.ts → keyPolicy-zdWTu3CQ.d.ts} +1 -1
  69. package/dist/outbound-api/auditCapture.cjs +2 -2
  70. package/dist/outbound-api/auditCapture.d.cts +5 -3
  71. package/dist/outbound-api/auditCapture.d.ts +5 -3
  72. package/dist/outbound-api/auditCapture.js +1 -1
  73. package/dist/outbound-api/quotaWarn.d.cts +1 -1
  74. package/dist/outbound-api/quotaWarn.d.ts +1 -1
  75. package/dist/outbound-api/routeResolver.cjs +2 -2
  76. package/dist/outbound-api/routeResolver.d.cts +4 -3
  77. package/dist/outbound-api/routeResolver.d.ts +4 -3
  78. package/dist/outbound-api/routeResolver.js +1 -1
  79. package/dist/outbound-api/subscriptionRegistryPort.d.cts +1 -0
  80. package/dist/outbound-api/subscriptionRegistryPort.d.ts +1 -0
  81. package/dist/outbound-api/types.d.cts +3 -2
  82. package/dist/outbound-api/types.d.ts +3 -2
  83. package/dist/outbound-api.cjs +49 -25
  84. package/dist/outbound-api.d.cts +127 -85
  85. package/dist/outbound-api.d.ts +127 -85
  86. package/dist/outbound-api.js +52 -28
  87. package/dist/pipeline/AccountAllowanceScheduling.cjs +15 -0
  88. package/dist/pipeline/AccountAllowanceScheduling.d.cts +90 -0
  89. package/dist/pipeline/AccountAllowanceScheduling.d.ts +90 -0
  90. package/dist/pipeline/AccountAllowanceScheduling.js +15 -0
  91. package/dist/pipeline/AccountAllowanceStore.cjs +20 -0
  92. package/dist/pipeline/AccountAllowanceStore.d.cts +77 -0
  93. package/dist/pipeline/AccountAllowanceStore.d.ts +77 -0
  94. package/dist/pipeline/AccountAllowanceStore.js +20 -0
  95. package/dist/pipeline/AuthSource.d.cts +11 -2
  96. package/dist/pipeline/AuthSource.d.ts +11 -2
  97. package/dist/pipeline/BoundAccountSelectionError.cjs +10 -0
  98. package/dist/pipeline/BoundAccountSelectionError.d.cts +28 -0
  99. package/dist/pipeline/BoundAccountSelectionError.d.ts +28 -0
  100. package/dist/pipeline/BoundAccountSelectionError.js +10 -0
  101. package/dist/pipeline/LlmConfigProviderAuth.d.cts +1 -0
  102. package/dist/pipeline/LlmConfigProviderAuth.d.ts +1 -0
  103. package/dist/pipeline/SubscriptionAccountHealth.cjs +4 -2
  104. package/dist/pipeline/SubscriptionAccountHealth.d.cts +34 -6
  105. package/dist/pipeline/SubscriptionAccountHealth.d.ts +34 -6
  106. package/dist/pipeline/SubscriptionAccountHealth.js +3 -1
  107. package/dist/pipeline/SubscriptionAuthSource.cjs +5 -2
  108. package/dist/pipeline/SubscriptionAuthSource.d.cts +1 -0
  109. package/dist/pipeline/SubscriptionAuthSource.d.ts +1 -0
  110. package/dist/pipeline/SubscriptionAuthSource.js +4 -1
  111. package/dist/pipeline/SubscriptionAuthStrategy.d.cts +8 -3
  112. package/dist/pipeline/SubscriptionAuthStrategy.d.ts +8 -3
  113. package/dist/pipeline/executeProviderCall.cjs +2 -2
  114. package/dist/pipeline/executeProviderCall.d.cts +8 -3
  115. package/dist/pipeline/executeProviderCall.d.ts +8 -3
  116. package/dist/pipeline/executeProviderCall.js +1 -1
  117. package/dist/pipeline/resolveProviderChain.d.cts +2 -3
  118. package/dist/pipeline/resolveProviderChain.d.ts +2 -3
  119. package/dist/pipeline/resolveSubscriptionChain.d.cts +1 -0
  120. package/dist/pipeline/resolveSubscriptionChain.d.ts +1 -0
  121. package/dist/pipeline/upstreamFetch.cjs +4 -2
  122. package/dist/pipeline/upstreamFetch.d.cts +6 -0
  123. package/dist/pipeline/upstreamFetch.d.ts +6 -0
  124. package/dist/pipeline/upstreamFetch.js +3 -1
  125. package/dist/pipeline/upstreamTrace.cjs +14 -0
  126. package/dist/pipeline/upstreamTrace.d.cts +85 -0
  127. package/dist/pipeline/upstreamTrace.d.ts +85 -0
  128. package/dist/pipeline/upstreamTrace.js +14 -0
  129. package/dist/ports/pricing-store.d.cts +4 -3
  130. package/dist/ports/pricing-store.d.ts +4 -3
  131. package/dist/ports.d.cts +4 -3
  132. package/dist/ports.d.ts +4 -3
  133. package/dist/provider-proxy/ProviderProxy.cjs +27 -24
  134. package/dist/provider-proxy/ProviderProxy.d.cts +1 -0
  135. package/dist/provider-proxy/ProviderProxy.d.ts +1 -0
  136. package/dist/provider-proxy/ProviderProxy.js +26 -23
  137. package/dist/provider-proxy/ingress/providerProxyShared.cjs +31 -24
  138. package/dist/provider-proxy/ingress/providerProxyShared.d.cts +50 -5
  139. package/dist/provider-proxy/ingress/providerProxyShared.d.ts +50 -5
  140. package/dist/provider-proxy/ingress/providerProxyShared.js +30 -23
  141. package/dist/provider-proxy/matchText.cjs +4 -2
  142. package/dist/provider-proxy/matchText.d.cts +41 -6
  143. package/dist/provider-proxy/matchText.d.ts +41 -6
  144. package/dist/provider-proxy/matchText.js +3 -1
  145. package/dist/provider-proxy/types.d.cts +30 -2
  146. package/dist/provider-proxy/types.d.ts +30 -2
  147. package/dist/provider-proxy.cjs +27 -24
  148. package/dist/provider-proxy.d.cts +1 -0
  149. package/dist/provider-proxy.d.ts +1 -0
  150. package/dist/provider-proxy.js +26 -23
  151. package/dist/{routeResolver-C4T7yClx.d.ts → routeResolver-CHTv_Bs5.d.ts} +1 -1
  152. package/dist/{routeResolver-CB3tvJKy.d.cts → routeResolver-kepxnfcC.d.cts} +1 -1
  153. package/dist/transformer/TransformerChainExecutor.cjs +2 -2
  154. package/dist/transformer/TransformerChainExecutor.js +1 -1
  155. package/dist/transformer/transformers/AnthropicTransformer.cjs +2 -2
  156. package/dist/transformer/transformers/AnthropicTransformer.js +1 -1
  157. package/dist/transformer/transformers/GeminiCodeAssistTransformer.cjs +3 -3
  158. package/dist/transformer/transformers/GeminiCodeAssistTransformer.js +2 -2
  159. package/dist/transformer/transformers/GeminiTransformer.cjs +3 -3
  160. package/dist/transformer/transformers/GeminiTransformer.js +2 -2
  161. package/dist/transformer/transformers/OpenAIResponseTransformer.cjs +2 -2
  162. package/dist/transformer/transformers/OpenAIResponseTransformer.d.cts +1 -1
  163. package/dist/transformer/transformers/OpenAIResponseTransformer.d.ts +1 -1
  164. package/dist/transformer/transformers/OpenAIResponseTransformer.js +1 -1
  165. package/dist/transformer/transformers/OpenAITransformer.cjs +6 -0
  166. package/dist/transformer/transformers/OpenAITransformer.d.cts +68 -0
  167. package/dist/transformer/transformers/OpenAITransformer.d.ts +68 -0
  168. package/dist/transformer/transformers/OpenAITransformer.js +6 -0
  169. package/dist/transformer/transformers.cjs +8 -14
  170. package/dist/transformer/transformers.d.cts +12 -48
  171. package/dist/transformer/transformers.d.ts +12 -48
  172. package/dist/transformer/transformers.js +11 -17
  173. package/dist/transformer/types.d.cts +17 -0
  174. package/dist/transformer/types.d.ts +17 -0
  175. package/dist/transformer.cjs +11 -12
  176. package/dist/transformer.d.cts +1 -2
  177. package/dist/transformer.d.ts +1 -2
  178. package/dist/transformer.js +11 -12
  179. package/dist/{types-B8Arpxn0.d.cts → types-H3wGZSOo.d.cts} +134 -7
  180. package/dist/{types-lgPYQuZS.d.ts → types-hsoKrVQS.d.ts} +134 -7
  181. package/dist/usage/pricing-engine.cjs +2 -2
  182. package/dist/usage/pricing-engine.d.cts +9 -1
  183. package/dist/usage/pricing-engine.d.ts +9 -1
  184. package/dist/usage/pricing-engine.js +1 -1
  185. package/dist/usage.cjs +2 -2
  186. package/dist/usage.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/chunk-C72S6TTV.cjs +0 -49
  189. package/dist/chunk-DWKQZ2SK.cjs +0 -254
  190. package/dist/chunk-IAXWICZU.js +0 -69
  191. package/dist/chunk-QWBWGODS.cjs +0 -69
  192. package/dist/chunk-RGTR7CIO.cjs +0 -235
  193. package/dist/chunk-VPBAUQ2M.js +0 -235
  194. package/dist/chunk-YMFAJFQT.cjs +0 -173
  195. package/dist/chunk-Z7LUNECE.js +0 -49
  196. package/dist/chunk-ZJZAOKI7.js +0 -254
  197. package/dist/transformer/transformers/OpenCodeGoTransformer.cjs +0 -6
  198. package/dist/transformer/transformers/OpenCodeGoTransformer.d.cts +0 -51
  199. package/dist/transformer/transformers/OpenCodeGoTransformer.d.ts +0 -51
  200. package/dist/transformer/transformers/OpenCodeGoTransformer.js +0 -6
  201. package/dist/transformer/transformers/ReasoningTransformer.cjs +0 -6
  202. package/dist/transformer/transformers/ReasoningTransformer.d.cts +0 -47
  203. package/dist/transformer/transformers/ReasoningTransformer.d.ts +0 -47
  204. package/dist/transformer/transformers/ReasoningTransformer.js +0 -6
@@ -9,39 +9,40 @@ import {
9
9
  getOpenRouterProviderConfig,
10
10
  register,
11
11
  release
12
- } from "./chunk-QYTT6GE3.js";
12
+ } from "./chunk-UDCC7EMR.js";
13
+ import "./chunk-WB6PH56J.js";
13
14
  import "./chunk-VVEHS2LI.js";
14
15
  import "./chunk-46RLHI7D.js";
16
+ import "./chunk-WNKWAEUR.js";
17
+ import "./chunk-MZNPGW5Q.js";
15
18
  import "./chunk-DK4A7DLE.js";
16
- import "./chunk-VPBAUQ2M.js";
17
- import "./chunk-ZJZAOKI7.js";
18
- import "./chunk-FTQ7IQUC.js";
19
- import "./chunk-C7PSERMH.js";
20
- import "./chunk-TIER4SUC.js";
21
- import "./chunk-Z7LUNECE.js";
19
+ import "./chunk-VRFBB5DB.js";
20
+ import "./chunk-LVUCAWMK.js";
21
+ import "./chunk-OEWZUX4G.js";
22
+ import "./chunk-LB6EBS6Y.js";
23
+ import "./chunk-6CL5HTPQ.js";
22
24
  import "./chunk-7VU7V2E4.js";
23
- import "./chunk-ZLX3KGXX.js";
25
+ import "./chunk-UX7VWA46.js";
24
26
  import "./chunk-BPKCU575.js";
25
- import "./chunk-G2UTNSGU.js";
26
- import "./chunk-MZNPGW5Q.js";
27
+ import "./chunk-DRWHTIIZ.js";
27
28
  import "./chunk-XTEI64OU.js";
28
29
  import "./chunk-XX6NQJMA.js";
29
- import "./chunk-IAXWICZU.js";
30
+ import "./chunk-5ERIZW3D.js";
31
+ import "./chunk-YJVHCHQX.js";
32
+ import "./chunk-23S5OPIO.js";
33
+ import "./chunk-AVYJ4YBN.js";
30
34
  import "./chunk-OE6TDIWW.js";
31
- import "./chunk-DRWHTIIZ.js";
32
- import "./chunk-IK3KE3AU.js";
35
+ import "./chunk-OPRS4IQZ.js";
36
+ import "./chunk-2JYRIADS.js";
37
+ import "./chunk-DE2SRBFZ.js";
33
38
  import {
34
39
  getProviderHeaders
35
40
  } from "./chunk-ZY6KU6P3.js";
36
41
  import "./chunk-JWC6APFQ.js";
37
- import "./chunk-5ERIZW3D.js";
38
- import "./chunk-5ENKBSWO.js";
39
- import "./chunk-HRRYG2AX.js";
40
- import "./chunk-AVYJ4YBN.js";
41
42
  import "./chunk-WLYIIEAF.js";
42
43
  import "./chunk-TKJMZBAH.js";
43
44
  import "./chunk-3QFXFCHG.js";
44
- import "./chunk-UHGVBFU3.js";
45
+ import "./chunk-EBLFCNPY.js";
45
46
  import "./chunk-AQ5TNQB7.js";
46
47
  import "./chunk-XEKD23J5.js";
47
48
  import {
@@ -55,14 +56,16 @@ import {
55
56
  resolveApiFormat,
56
57
  resolveProviderEndpoint
57
58
  } from "./chunk-H5JUT3KV.js";
58
- import "./chunk-7Y47UCF2.js";
59
+ import "./chunk-IFXJ2BG7.js";
59
60
  import "./chunk-K5NM7VAH.js";
60
61
  import "./chunk-WNY4WMRF.js";
61
62
  import "./chunk-OZFM4X3S.js";
62
- import "./chunk-5ZQBEOMD.js";
63
- import "./chunk-Z7Y2NPHY.js";
64
- import "./chunk-S4WBV25P.js";
65
- import "./chunk-XK5CIRMQ.js";
63
+ import "./chunk-AT7B7SOZ.js";
64
+ import "./chunk-N5T4M4GU.js";
65
+ import "./chunk-TOVPMMHM.js";
66
+ import "./chunk-SIZQQD6T.js";
67
+ import "./chunk-SYQF7OIR.js";
68
+ import "./chunk-MKF46GNZ.js";
66
69
  import {
67
70
  BuiltinToolExecutor,
68
71
  getBuiltinSearchTools
package/dist/index.cjs CHANGED
@@ -71,7 +71,16 @@
71
71
 
72
72
 
73
73
 
74
- var _chunkDKPXN34Vcjs = require('./chunk-DKPXN34V.cjs');
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+ var _chunkSQYVORNPcjs = require('./chunk-SQYVORNP.cjs');
83
+ require('./chunk-EJLH6NFT.cjs');
75
84
 
76
85
 
77
86
 
@@ -79,42 +88,46 @@ var _chunkHQP3K7PUcjs = require('./chunk-HQP3K7PU.cjs');
79
88
  require('./chunk-FZ46M34D.cjs');
80
89
 
81
90
 
91
+ var _chunkIIRPUVPHcjs = require('./chunk-IIRPUVPH.cjs');
92
+ require('./chunk-GBHYAGX3.cjs');
93
+
94
+
82
95
  var _chunk3OPYJG76cjs = require('./chunk-3OPYJG76.cjs');
83
96
 
84
97
 
85
- var _chunkRGTR7CIOcjs = require('./chunk-RGTR7CIO.cjs');
86
- require('./chunk-DWKQZ2SK.cjs');
87
- require('./chunk-4VAVYUZS.cjs');
88
- require('./chunk-7YN22L2H.cjs');
89
- require('./chunk-SU2GCLAC.cjs');
90
- require('./chunk-C72S6TTV.cjs');
98
+ var _chunk7AK7B36Bcjs = require('./chunk-7AK7B36B.cjs');
99
+ require('./chunk-V4TXMEJS.cjs');
100
+ require('./chunk-6VUQPOV3.cjs');
101
+ require('./chunk-OF3BECU2.cjs');
102
+ require('./chunk-4VLRHHFE.cjs');
91
103
  require('./chunk-EYZYXJTJ.cjs');
92
104
 
93
105
 
94
- var _chunkYMFAJFQTcjs = require('./chunk-YMFAJFQT.cjs');
106
+ var _chunkDLXZEZWOcjs = require('./chunk-DLXZEZWO.cjs');
95
107
 
96
108
 
97
109
  var _chunkSNYBEXLBcjs = require('./chunk-SNYBEXLB.cjs');
98
-
99
-
100
- var _chunk46ZIFWYGcjs = require('./chunk-46ZIFWYG.cjs');
101
- require('./chunk-GBHYAGX3.cjs');
110
+ require('./chunk-R3HK6R4B.cjs');
102
111
  require('./chunk-RPII3E6Z.cjs');
103
112
  require('./chunk-6RPZADX3.cjs');
104
- require('./chunk-QWBWGODS.cjs');
113
+ require('./chunk-NYUNU75A.cjs');
114
+ require('./chunk-YK57NMIF.cjs');
115
+ require('./chunk-YNJNTCSQ.cjs');
116
+
117
+
118
+ var _chunkSVNDB62Dcjs = require('./chunk-SVNDB62D.cjs');
105
119
  require('./chunk-UIBD2YY5.cjs');
106
- require('./chunk-R3HK6R4B.cjs');
107
- require('./chunk-HYN75H6G.cjs');
120
+ require('./chunk-6QQG7YG3.cjs');
108
121
 
109
122
 
110
- var _chunkQ27JY5RGcjs = require('./chunk-Q27JY5RG.cjs');
111
- require('./chunk-QXD4MV2X.cjs');
112
- require('./chunk-NYUNU75A.cjs');
113
- require('./chunk-VQY5W4YW.cjs');
114
- require('./chunk-KFI44N2R.cjs');
115
123
 
116
124
 
117
- var _chunkSVNDB62Dcjs = require('./chunk-SVNDB62D.cjs');
125
+ var _chunk25GXJCEZcjs = require('./chunk-25GXJCEZ.cjs');
126
+ require('./chunk-MUHWHQVM.cjs');
127
+
128
+
129
+ var _chunkQ27JY5RGcjs = require('./chunk-Q27JY5RG.cjs');
130
+ require('./chunk-QXD4MV2X.cjs');
118
131
 
119
132
 
120
133
  var _chunkAPYG5QD7cjs = require('./chunk-APYG5QD7.cjs');
@@ -135,8 +148,7 @@ require('./chunk-4YINUUKQ.cjs');
135
148
 
136
149
 
137
150
 
138
-
139
- var _chunkVACWOIREcjs = require('./chunk-VACWOIRE.cjs');
151
+ var _chunk4VZX5F4Tcjs = require('./chunk-4VZX5F4T.cjs');
140
152
  require('./chunk-QBZJ7P2T.cjs');
141
153
 
142
154
 
@@ -154,7 +166,7 @@ var _chunk4IH4EL7Mcjs = require('./chunk-4IH4EL7M.cjs');
154
166
  var _chunkA2YMUCBTcjs = require('./chunk-A2YMUCBT.cjs');
155
167
 
156
168
 
157
- var _chunkE3UCVHLPcjs = require('./chunk-E3UCVHLP.cjs');
169
+ var _chunkUNWKG6EIcjs = require('./chunk-UNWKG6EI.cjs');
158
170
 
159
171
 
160
172
 
@@ -172,10 +184,12 @@ require('./chunk-XSVNC2UD.cjs');
172
184
 
173
185
 
174
186
 
175
- var _chunkSUEGJ75Dcjs = require('./chunk-SUEGJ75D.cjs');
176
- require('./chunk-RSJ3TWJQ.cjs');
177
- require('./chunk-YGXJGRFI.cjs');
178
- require('./chunk-OCEUVQHW.cjs');
187
+ var _chunkWYTEQ4Q5cjs = require('./chunk-WYTEQ4Q5.cjs');
188
+ require('./chunk-OKMJLEXX.cjs');
189
+ require('./chunk-KBM2W6UY.cjs');
190
+ require('./chunk-KCVJWJST.cjs');
191
+ require('./chunk-3Z5BQZFM.cjs');
192
+ require('./chunk-HVBBDBS3.cjs');
179
193
 
180
194
 
181
195
 
@@ -325,4 +339,14 @@ var _chunkUNEFIWXIcjs = require('./chunk-UNEFIWXI.cjs');
325
339
 
326
340
 
327
341
 
328
- exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkDKPXN34Vcjs.CompletionService; exports.ConcurrencyQueueFullError = _chunkDKPXN34Vcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkDKPXN34Vcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkDKPXN34Vcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkDKPXN34Vcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkDKPXN34Vcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkDKPXN34Vcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkDKPXN34Vcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_ROUTE_IDLE_MS = _chunkDKPXN34Vcjs.DEFAULT_ROUTE_IDLE_MS; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkDKPXN34Vcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkDKPXN34Vcjs.KeySpendTracker; exports.KeyedMutex = _chunkDKPXN34Vcjs.KeyedMutex; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.OPENROUTER_APP_HEADERS = _chunkUNEFIWXIcjs.OPENROUTER_APP_HEADERS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkDKPXN34Vcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiConfigError = _chunkDKPXN34Vcjs.OutboundApiConfigError; exports.OutboundApiServer = _chunkDKPXN34Vcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkDKPXN34Vcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkDKPXN34Vcjs.OutboundRateLimiter; exports.PricingEngine = _chunkYMFAJFQTcjs.PricingEngine; exports.ProviderProxy = _chunkDKPXN34Vcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkDKPXN34Vcjs.ProviderProxyRouteMap; exports.SUBSCRIPTION_PROVIDER_IDS = _chunkVACWOIREcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkDKPXN34Vcjs.SerialQueueTimeoutError; exports.TransformerChainExecutor = _chunk46ZIFWYGcjs.TransformerChainExecutor; exports.TransformerService = _chunk3OPYJG76cjs.TransformerService; exports.UsageRecorder = _chunkSNYBEXLBcjs.UsageRecorder; exports.UserMessageSerialQueue = _chunkDKPXN34Vcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkDKPXN34Vcjs.__resetOutboundApiServerForTests; exports.__resetProviderProxyForTests = _chunkDKPXN34Vcjs.__resetProviderProxyForTests; exports.addOpenRouterProviderToRequest = _chunkDKPXN34Vcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkDKPXN34Vcjs.attach; exports.beginAuditCapture = _chunkE3UCVHLPcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.checkKeyQuota = _chunkDKPXN34Vcjs.checkKeyQuota; exports.classifyModelPrefix = _chunkVACWOIREcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkDKPXN34Vcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkDKPXN34Vcjs.computeVoucherGrant; exports.convertAnthropicRequestToOpenAI = _chunkSUEGJ75Dcjs.convertAnthropicRequestToOpenAI; exports.convertAnthropicStreamToOpenAI = _chunkSUEGJ75Dcjs.convertAnthropicStreamToOpenAI; exports.convertAnthropicToOpenAI = _chunkSUEGJ75Dcjs.convertAnthropicToOpenAI; exports.convertAnthropicToOpenAIWithThinking = _chunkSUEGJ75Dcjs.convertAnthropicToOpenAIWithThinking; exports.convertMessageToAnthropic = _chunkDKPXN34Vcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkDKPXN34Vcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkDKPXN34Vcjs.convertMessageToOpenAI; exports.convertOpenAIResponseToAnthropic = _chunkSUEGJ75Dcjs.convertOpenAIResponseToAnthropic; exports.convertOpenAIStreamToAnthropic = _chunkSUEGJ75Dcjs.convertOpenAIStreamToAnthropic; exports.convertOpenAIToAnthropic = _chunkSUEGJ75Dcjs.convertOpenAIToAnthropic; exports.convertOpenAIToAnthropicWithThinking = _chunkSUEGJ75Dcjs.convertOpenAIToAnthropicWithThinking; exports.createNamedKey = _chunkDKPXN34Vcjs.createNamedKey; exports.createSSEParser = _chunkHQP3K7PUcjs.createSSEParser; exports.defaultServerConfig = _chunkDKPXN34Vcjs.defaultServerConfig; exports.detectModelKind = _chunkVACWOIREcjs.detectModelKind; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.detectRequestRole = _chunkVACWOIREcjs.detectRequestRole; exports.emitStreamEvent = _chunkDKPXN34Vcjs.emit; exports.endpointSupportsSubscription = _chunkVACWOIREcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunkVACWOIREcjs.endpointToIngressFormat; exports.extractRouteToken = _chunkDKPXN34Vcjs.extractRouteToken; exports.formatUrls = _chunkDKPXN34Vcjs.formatUrls; exports.generateVoucherCode = _chunkDKPXN34Vcjs.generateVoucherCode; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterAppIdentity = _chunkUNEFIWXIcjs.getOpenRouterAppIdentity; exports.getOpenRouterProviderConfig = _chunkDKPXN34Vcjs.getOpenRouterProviderConfig; exports.getOutboundApiServer = _chunkDKPXN34Vcjs.getOutboundApiServer; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.getProviderProxy = _chunkDKPXN34Vcjs.getProviderProxy; exports.handleVoucherRedeem = _chunkDKPXN34Vcjs.handleVoucherRedeem; exports.hasImageContent = _chunkSUEGJ75Dcjs.hasImageContent; exports.hasThinkingEnabled = _chunkSUEGJ75Dcjs.hasThinkingEnabled; exports.hashKey = _chunkDKPXN34Vcjs.hashKey; exports.hashVoucherCode = _chunkDKPXN34Vcjs.hashVoucherCode; exports.isConcurrencyRejection = _chunkDKPXN34Vcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunkVACWOIREcjs.isKindMappedEndpoint; exports.isOpenRouterProvider = _chunkUNEFIWXIcjs.isOpenRouterProvider; exports.isRedeemRequest = _chunkDKPXN34Vcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkDKPXN34Vcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunkVACWOIREcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkDKPXN34Vcjs.isUserMessageRequest; exports.loadServerConfig = _chunkDKPXN34Vcjs.loadServerConfig; exports.mergeServerConfig = _chunkDKPXN34Vcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunkVACWOIREcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkDKPXN34Vcjs.newVoucherId; exports.normalizeAccountProbe = _chunkDKPXN34Vcjs.normalizeAccountProbe; exports.normalizeAudit = _chunkDKPXN34Vcjs.normalizeAudit; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.normalizeBilling = _chunkDKPXN34Vcjs.normalizeBilling; exports.normalizeFingerprint = _chunkDKPXN34Vcjs.normalizeFingerprint; exports.normalizePrefixTargets = _chunkDKPXN34Vcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkDKPXN34Vcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkDKPXN34Vcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkDKPXN34Vcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunkDKPXN34Vcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkDKPXN34Vcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkDKPXN34Vcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkDKPXN34Vcjs.normalizeWebhookSegment; exports.parseModelRef = _chunkVACWOIREcjs.parseModelRef; exports.pickModelRefFromList = _chunkVACWOIREcjs.pickModelRefFromList; exports.randomBase62 = _chunkDKPXN34Vcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.registerBuiltinTransformers = _chunkRGTR7CIOcjs.registerBuiltinTransformers; exports.registerStreamEventBuffer = _chunkDKPXN34Vcjs.register; exports.releaseStreamEventBuffer = _chunkDKPXN34Vcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolvePrefixTarget = _chunkVACWOIREcjs.resolvePrefixTarget; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint; exports.resolveRoute = _chunkVACWOIREcjs.resolveRoute; exports.saveServerConfig = _chunkDKPXN34Vcjs.saveServerConfig; exports.serializeError = _chunkSVNDB62Dcjs.serializeError; exports.setOpenRouterAppIdentity = _chunkUNEFIWXIcjs.setOpenRouterAppIdentity; exports.startOfLocalDay = _chunkDKPXN34Vcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkDKPXN34Vcjs.startOfLocalWeek; exports.streamSSEResponse = _chunkHQP3K7PUcjs.streamSSEResponse; exports.toVoucherInfo = _chunkDKPXN34Vcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunkVACWOIREcjs.validateEndpointModelConfig; exports.validateServerModelConfig = _chunkVACWOIREcjs.validateServerModelConfig; exports.verifyKey = _chunkDKPXN34Vcjs.verifyKey; exports.verifyPresentedKey = _chunkDKPXN34Vcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkDKPXN34Vcjs.voucherCodePrefix;
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ exports.AUDIT_REDACTED = _chunkFCR77GYMcjs.AUDIT_REDACTED; exports.BoundAccountSelectionError = _chunk25GXJCEZcjs.BoundAccountSelectionError; exports.BuiltinToolExecutor = _chunkNZYN7C3Pcjs.BuiltinToolExecutor; exports.CompletionService = _chunkSQYVORNPcjs.CompletionService; exports.ConcurrencyQueueFullError = _chunkSQYVORNPcjs.ConcurrencyQueueFullError; exports.ConcurrencyWaitCancelledError = _chunkSQYVORNPcjs.ConcurrencyWaitCancelledError; exports.ConcurrencyWaitTimeoutError = _chunkSQYVORNPcjs.ConcurrencyWaitTimeoutError; exports.DEFAULT_ACCOUNT_PROBE = _chunkSQYVORNPcjs.DEFAULT_ACCOUNT_PROBE; exports.DEFAULT_ALLOWANCE_SCHEDULING = _chunkSQYVORNPcjs.DEFAULT_ALLOWANCE_SCHEDULING; exports.DEFAULT_CONCURRENCY_QUEUE = _chunkSQYVORNPcjs.DEFAULT_CONCURRENCY_QUEUE; exports.DEFAULT_FINGERPRINT = _chunkSQYVORNPcjs.DEFAULT_FINGERPRINT; exports.DEFAULT_OUTBOUND_PORT = _chunkSQYVORNPcjs.DEFAULT_OUTBOUND_PORT; exports.DEFAULT_ROUTE_IDLE_MS = _chunkSQYVORNPcjs.DEFAULT_ROUTE_IDLE_MS; exports.DEFAULT_USER_MESSAGE_QUEUE = _chunkSQYVORNPcjs.DEFAULT_USER_MESSAGE_QUEUE; exports.ENDPOINT_MODEL_KINDS = _chunk4IH4EL7Mcjs.ENDPOINT_MODEL_KINDS; exports.KeySpendTracker = _chunkSQYVORNPcjs.KeySpendTracker; exports.KeyedMutex = _chunkSQYVORNPcjs.KeyedMutex; exports.NATIVE_SEARCH_TOOL_NAMES = _chunkGMMT7RVNcjs.NATIVE_SEARCH_TOOL_NAMES; exports.OPENROUTER_APP_HEADERS = _chunkUNEFIWXIcjs.OPENROUTER_APP_HEADERS; exports.OUTBOUND_API_SERVER_CONFIG_KEY = _chunkSQYVORNPcjs.OUTBOUND_API_SERVER_CONFIG_KEY; exports.OutboundApiServer = _chunkSQYVORNPcjs.OutboundApiServer; exports.OutboundConcurrencyGate = _chunkSQYVORNPcjs.OutboundConcurrencyGate; exports.OutboundRateLimiter = _chunkSQYVORNPcjs.OutboundRateLimiter; exports.PricingEngine = _chunkDLXZEZWOcjs.PricingEngine; exports.ProviderProxy = _chunkSQYVORNPcjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkSQYVORNPcjs.ProviderProxyRouteMap; exports.SUBSCRIPTION_PROVIDER_IDS = _chunk4VZX5F4Tcjs.SUBSCRIPTION_PROVIDER_IDS; exports.SerialQueueTimeoutError = _chunkSQYVORNPcjs.SerialQueueTimeoutError; exports.TransformerChainExecutor = _chunkIIRPUVPHcjs.TransformerChainExecutor; exports.TransformerService = _chunk3OPYJG76cjs.TransformerService; exports.UsageRecorder = _chunkSNYBEXLBcjs.UsageRecorder; exports.UserMessageSerialQueue = _chunkSQYVORNPcjs.UserMessageSerialQueue; exports.__resetOutboundApiServerForTests = _chunkSQYVORNPcjs.__resetOutboundApiServerForTests; exports.__resetProviderProxyForTests = _chunkSQYVORNPcjs.__resetProviderProxyForTests; exports.addOpenRouterProviderToRequest = _chunkSQYVORNPcjs.addOpenRouterProviderToRequest; exports.applyAugmentation = _chunkJMJBSACDcjs.applyAugmentation; exports.attachStreamEventBuffer = _chunkSQYVORNPcjs.attach; exports.beginAuditCapture = _chunkUNWKG6EIcjs.beginAuditCapture; exports.beginBillingCapture = _chunkAPYG5QD7cjs.beginBillingCapture; exports.boundAccountSelectionMessage = _chunk25GXJCEZcjs.boundAccountSelectionMessage; exports.buildAnthropicApiUrl = _chunkA2YMUCBTcjs.buildAnthropicApiUrl; exports.buildAzureOpenAIApiUrl = _chunkA2YMUCBTcjs.buildAzureOpenAIApiUrl; exports.buildGeminiApiUrl = _chunkA2YMUCBTcjs.buildGeminiApiUrl; exports.buildNativeSearchAugmentation = _chunkJMJBSACDcjs.buildNativeSearchAugmentation; exports.buildOpenAIApiUrl = _chunkA2YMUCBTcjs.buildOpenAIApiUrl; exports.buildOpenAIResponseApiUrl = _chunkA2YMUCBTcjs.buildOpenAIResponseApiUrl; exports.buildProviderApiUrl = _chunkA2YMUCBTcjs.buildProviderApiUrl; exports.candidateBackgroundModelIds = _chunkSQYVORNPcjs.candidateBackgroundModelIds; exports.candidateGatewayBindings = _chunkSQYVORNPcjs.candidateGatewayBindings; exports.checkKeyQuota = _chunkSQYVORNPcjs.checkKeyQuota; exports.classifyModelPrefix = _chunk4VZX5F4Tcjs.classifyModelPrefix; exports.computeKeyExpiry = _chunkSQYVORNPcjs.computeKeyExpiry; exports.computeVoucherGrant = _chunkSQYVORNPcjs.computeVoucherGrant; exports.convertAnthropicRequestToOpenAI = _chunkWYTEQ4Q5cjs.convertAnthropicRequestToOpenAI; exports.convertAnthropicStreamToOpenAI = _chunkWYTEQ4Q5cjs.convertAnthropicStreamToOpenAI; exports.convertAnthropicToOpenAI = _chunkWYTEQ4Q5cjs.convertAnthropicToOpenAI; exports.convertAnthropicToOpenAIWithThinking = _chunkWYTEQ4Q5cjs.convertAnthropicToOpenAIWithThinking; exports.convertMessageToAnthropic = _chunkSQYVORNPcjs.convertMessageToAnthropic; exports.convertMessageToGemini = _chunkSQYVORNPcjs.convertMessageToGemini; exports.convertMessageToOpenAI = _chunkSQYVORNPcjs.convertMessageToOpenAI; exports.convertOpenAIResponseToAnthropic = _chunkWYTEQ4Q5cjs.convertOpenAIResponseToAnthropic; exports.convertOpenAIStreamToAnthropic = _chunkWYTEQ4Q5cjs.convertOpenAIStreamToAnthropic; exports.convertOpenAIToAnthropic = _chunkWYTEQ4Q5cjs.convertOpenAIToAnthropic; exports.convertOpenAIToAnthropicWithThinking = _chunkWYTEQ4Q5cjs.convertOpenAIToAnthropicWithThinking; exports.createIntegrationKey = _chunkSQYVORNPcjs.createIntegrationKey; exports.createNamedKey = _chunkSQYVORNPcjs.createNamedKey; exports.createSSEParser = _chunkHQP3K7PUcjs.createSSEParser; exports.defaultServerConfig = _chunkSQYVORNPcjs.defaultServerConfig; exports.detectModelKind = _chunk4VZX5F4Tcjs.detectModelKind; exports.detectNativeSearch = _chunkJMJBSACDcjs.detectNativeSearch; exports.detectRequestRole = _chunk4VZX5F4Tcjs.detectRequestRole; exports.emitStreamEvent = _chunkSQYVORNPcjs.emit; exports.endpointSupportsSubscription = _chunk4VZX5F4Tcjs.endpointSupportsSubscription; exports.endpointToIngressFormat = _chunk4VZX5F4Tcjs.endpointToIngressFormat; exports.extractRouteToken = _chunkSQYVORNPcjs.extractRouteToken; exports.formatUrls = _chunkSQYVORNPcjs.formatUrls; exports.gatewayBindingToEndpointConfig = _chunkSQYVORNPcjs.gatewayBindingToEndpointConfig; exports.generateVoucherCode = _chunkSQYVORNPcjs.generateVoucherCode; exports.getBuiltinSearchTools = _chunkNZYN7C3Pcjs.getBuiltinSearchTools; exports.getOpenRouterAppIdentity = _chunkUNEFIWXIcjs.getOpenRouterAppIdentity; exports.getOpenRouterProviderConfig = _chunkSQYVORNPcjs.getOpenRouterProviderConfig; exports.getOutboundApiServer = _chunkSQYVORNPcjs.getOutboundApiServer; exports.getProviderHeaders = _chunkQ27JY5RGcjs.getProviderHeaders; exports.getProviderProxy = _chunkSQYVORNPcjs.getProviderProxy; exports.handleVoucherRedeem = _chunkSQYVORNPcjs.handleVoucherRedeem; exports.hasImageContent = _chunkWYTEQ4Q5cjs.hasImageContent; exports.hasThinkingEnabled = _chunkWYTEQ4Q5cjs.hasThinkingEnabled; exports.hashKey = _chunkSQYVORNPcjs.hashKey; exports.hashVoucherCode = _chunkSQYVORNPcjs.hashVoucherCode; exports.isBoundAccountSelectionError = _chunk25GXJCEZcjs.isBoundAccountSelectionError; exports.isConcurrencyRejection = _chunkSQYVORNPcjs.isConcurrencyRejection; exports.isKindMappedEndpoint = _chunk4VZX5F4Tcjs.isKindMappedEndpoint; exports.isOpenRouterProvider = _chunkUNEFIWXIcjs.isOpenRouterProvider; exports.isRedeemRequest = _chunkSQYVORNPcjs.isRedeemRequest; exports.isSerialQueueTimeout = _chunkSQYVORNPcjs.isSerialQueueTimeout; exports.isSubscriptionProviderId = _chunk4VZX5F4Tcjs.isSubscriptionProviderId; exports.isUserMessageRequest = _chunkSQYVORNPcjs.isUserMessageRequest; exports.legacyEndpointsToBindings = _chunkSQYVORNPcjs.legacyEndpointsToBindings; exports.loadServerConfig = _chunkSQYVORNPcjs.loadServerConfig; exports.mergeServerConfig = _chunkSQYVORNPcjs.mergeServerConfig; exports.modelKindsForEndpoint = _chunk4VZX5F4Tcjs.modelKindsForEndpoint; exports.newVoucherId = _chunkSQYVORNPcjs.newVoucherId; exports.normalizeAccountProbe = _chunkSQYVORNPcjs.normalizeAccountProbe; exports.normalizeAllowanceScheduling = _chunkSQYVORNPcjs.normalizeAllowanceScheduling; exports.normalizeAudit = _chunkSQYVORNPcjs.normalizeAudit; exports.normalizeAzureEndpoint = _chunkA2YMUCBTcjs.normalizeAzureEndpoint; exports.normalizeBilling = _chunkSQYVORNPcjs.normalizeBilling; exports.normalizeFingerprint = _chunkSQYVORNPcjs.normalizeFingerprint; exports.normalizeGatewayBindings = _chunkSQYVORNPcjs.normalizeGatewayBindings; exports.normalizePrefixTargets = _chunkSQYVORNPcjs.normalizePrefixTargets; exports.normalizeProxyConfig = _chunkSQYVORNPcjs.normalizeProxyConfig; exports.normalizeProxySegment = _chunkSQYVORNPcjs.normalizeProxySegment; exports.normalizeQueueSegments = _chunkSQYVORNPcjs.normalizeQueueSegments; exports.normalizeServerConfig = _chunkSQYVORNPcjs.normalizeServerConfig; exports.normalizeVoucher = _chunkSQYVORNPcjs.normalizeVoucher; exports.normalizeWebhookDestination = _chunkSQYVORNPcjs.normalizeWebhookDestination; exports.normalizeWebhookSegment = _chunkSQYVORNPcjs.normalizeWebhookSegment; exports.parseModelRef = _chunk4VZX5F4Tcjs.parseModelRef; exports.pickModelRefFromList = _chunk4VZX5F4Tcjs.pickModelRefFromList; exports.randomBase62 = _chunkSQYVORNPcjs.randomBase62; exports.redactAuditText = _chunkFCR77GYMcjs.redactAuditText; exports.registerBuiltinTransformers = _chunk7AK7B36Bcjs.registerBuiltinTransformers; exports.registerStreamEventBuffer = _chunkSQYVORNPcjs.register; exports.releaseStreamEventBuffer = _chunkSQYVORNPcjs.release; exports.resolveApiFormat = _chunkA2YMUCBTcjs.resolveApiFormat; exports.resolveGatewayBinding = _chunkSQYVORNPcjs.resolveGatewayBinding; exports.resolvePrefixTarget = _chunk4VZX5F4Tcjs.resolvePrefixTarget; exports.resolveProviderEndpoint = _chunkA2YMUCBTcjs.resolveProviderEndpoint; exports.resolveRoute = _chunk4VZX5F4Tcjs.resolveRoute; exports.saveServerConfig = _chunkSQYVORNPcjs.saveServerConfig; exports.serializeError = _chunkSVNDB62Dcjs.serializeError; exports.setOpenRouterAppIdentity = _chunkUNEFIWXIcjs.setOpenRouterAppIdentity; exports.startOfLocalDay = _chunkSQYVORNPcjs.startOfLocalDay; exports.startOfLocalWeek = _chunkSQYVORNPcjs.startOfLocalWeek; exports.streamSSEResponse = _chunkHQP3K7PUcjs.streamSSEResponse; exports.toVoucherInfo = _chunkSQYVORNPcjs.toVoucherInfo; exports.validateEndpointModelConfig = _chunk4VZX5F4Tcjs.validateEndpointModelConfig; exports.verifyKey = _chunkSQYVORNPcjs.verifyKey; exports.verifyPresentedKey = _chunkSQYVORNPcjs.verifyPresentedKey; exports.voucherCodePrefix = _chunkSQYVORNPcjs.voucherCodePrefix;
package/dist/index.d.cts CHANGED
@@ -4,21 +4,21 @@ export { A as AnthropicTool, B as BuiltinToolExecutor, G as GeminiTools, M as Mc
4
4
  import { LLMProvider } from '@omnicross/contracts/llm-config';
5
5
  export { C as CorePaths, a as CoreUsageEvent, b as CoreUsageTokenCounts, U as UsageEventSink } from './usage-event-sink-BX7FE1NL.cjs';
6
6
  export { L as Logger } from './logger-4GvQNzhE.cjs';
7
- export { PricingStore } from './ports/pricing-store.cjs';
7
+ export { AutomaticPricingSource, PricingStore } from './ports/pricing-store.cjs';
8
8
  export { ProviderConfigSource } from './ports/provider-config-source.cjs';
9
9
  export { UsageEventStore } from './ports/usage-event-store.cjs';
10
10
  export { WebSearchBackend } from './ports/web-search-backend.cjs';
11
11
  export { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecorderImport, UsageRecorderImport as UsageSink } from './provider-proxy/types.cjs';
12
- export { A as AccountProbeConfig, C as ChatDispatchMode, a as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, b as EndpointRoutingConfig, F as FingerprintConfig, K as KeySpendReader, c as KeySpendSeeder, d as KeySpendTracker, e as KindMappedEndpoint, M as MessagesModelKind, f as ModelKind, g as ModelPrefixTargets, h as OutboundApiDeps, i as OutboundApiKeyCreated, j as OutboundApiKeyInfo, k as OutboundApiServerConfig, l as OutboundApiServerStatus, O as OutboundCredentialStore, m as OutboundEndpoint, n as OutboundFormatUrls, o as OutboundKeyActivationMode, O as OutboundKeyDb, p as OutboundKeyDbRow, q as OutboundKeyPolicy, r as OutboundProxyConfig, R as RequestRole, s as ResponsesModelKind, U as UserMessageQueueConfig, V as VoucherCreateInput, t as VoucherDb, u as computeVoucherGrant, v as generateVoucherCode, w as hashVoucherCode, x as newVoucherId, y as startOfLocalDay, z as startOfLocalWeek, B as toVoucherInfo, D as voucherCodePrefix } from './types-B8Arpxn0.cjs';
12
+ export { A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, O as OutboundCredentialStore, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-H3wGZSOo.cjs';
13
13
  export { CostCalculation, PricingEngine, PricingEngineOptions } from './usage/pricing-engine.cjs';
14
14
  export { UsageRecordInput, UsageRecorder, UsageRecorderOptions } from './usage/usage-recorder.cjs';
15
15
  export { A as ApiFormat, C as CompletionOptions, a as CompletionResult, N as NATIVE_SEARCH_TOOL_NAMES, b as NativeSearchAugmentation, c as NativeSearchDetectionResult, d as NativeSearchProvider, e as NativeSearchUserConfig, S as StreamCallbacks } from './types-BScIHmPr.cjs';
16
- export { C as CompletionService, V as VisionFallbackProvider } from './CompletionService-D3a47vdU.cjs';
16
+ export { C as CompletionService, V as VisionFallbackProvider } from './CompletionService-kNA17cfI.cjs';
17
17
  export { SimpleChatGeminiMessage, SimpleChatGeminiPart, StreamEvent, StreamEventType, StreamSender, addOpenRouterProviderToRequest, attachStreamEventBuffer, convertMessageToAnthropic, convertMessageToGemini, convertMessageToOpenAI, emitStreamEvent, getOpenRouterProviderConfig, getProviderHeaders, registerStreamEventBuffer, releaseStreamEventBuffer } from './completion.cjs';
18
18
  export { buildAnthropicApiUrl, buildAzureOpenAIApiUrl, buildGeminiApiUrl, buildOpenAIApiUrl, buildOpenAIResponseApiUrl, buildProviderApiUrl, normalizeAzureEndpoint, resolveApiFormat, resolveProviderEndpoint } from './completion/url-builder.cjs';
19
19
  export { applyAugmentation, buildNativeSearchAugmentation, detectNativeSearch } from './completion/NativeSearchInjector.cjs';
20
20
  export { __resetProviderProxyForTests, extractRouteToken, getProviderProxy } from './provider-proxy.cjs';
21
- export { ApiServerSettingsStore, ApplyConfigInput, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_OUTBOUND_PORT, DEFAULT_USER_MESSAGE_QUEUE, EndpointModelConfigError, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, KeyVerification, KeyedMutex, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiConfigError, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, VerifiedKey, __resetOutboundApiServerForTests, classifyModelPrefix, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, endpointToIngressFormat, formatUrls, getOutboundApiServer, handleVoucherRedeem, hashKey, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateServerModelConfig, verifyKey, verifyPresentedKey } from './outbound-api.cjs';
21
+ export { ApiServerSettingsStore, ApplyConfigInput, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_OUTBOUND_PORT, DEFAULT_USER_MESSAGE_QUEUE, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, GatewayBindingResolution, KeyVerification, KeyedMutex, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, ResolveGatewayBindingInput, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleVoucherRedeem, hashKey, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, verifyKey, verifyPresentedKey } from './outbound-api.cjs';
22
22
  export { convertAnthropicRequestToOpenAI, convertAnthropicStreamToOpenAI, convertAnthropicToOpenAI, convertAnthropicToOpenAIWithThinking, convertOpenAIResponseToAnthropic, convertOpenAIStreamToAnthropic, convertOpenAIToAnthropic, convertOpenAIToAnthropicWithThinking, hasImageContent, hasThinkingEnabled } from './ApiConverter.cjs';
23
23
  export { ChainExecutionOptions, TransformerChainExecutor } from './transformer/TransformerChainExecutor.cjs';
24
24
  export { TransformerService } from './transformer/TransformerService.cjs';
@@ -27,9 +27,10 @@ export { Annotation, ImageContent, MessageContent, ModelRoute, ModelTransformerC
27
27
  export { AUDIT_REDACTED, redactAuditText } from './outbound-api/auditRedact.cjs';
28
28
  export { AuditCaptureContext, beginAuditCapture } from './outbound-api/auditCapture.cjs';
29
29
  export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billingCapture.cjs';
30
+ export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.cjs';
30
31
  export { D as DEFAULT_ROUTE_IDLE_MS, P as ProviderProxy, a as ProviderProxyRouteMap } from './ProviderProxy-CnMQYN59.cjs';
31
- export { K as KeyCostLimits, a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-Cp0FntZl.cjs';
32
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-CB3tvJKy.cjs';
32
+ export { K as KeyCostLimits, a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.cjs';
33
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-kepxnfcC.cjs';
33
34
  import '@omnicross/contracts/message-blocks';
34
35
  import '@omnicross/contracts/completion-types';
35
36
  import '@omnicross/contracts/mcp-types';
@@ -54,8 +55,7 @@ import './transformer/transformers/AnthropicTransformer.cjs';
54
55
  import './transformer/transformers/GeminiCodeAssistTransformer.cjs';
55
56
  import './transformer/transformers/GeminiTransformer.cjs';
56
57
  import './transformer/transformers/OpenAIResponseTransformer.cjs';
57
- import './transformer/transformers/OpenCodeGoTransformer.cjs';
58
- import './transformer/transformers/ReasoningTransformer.cjs';
58
+ import './transformer/transformers/OpenAITransformer.cjs';
59
59
 
60
60
  /**
61
61
  * OpenRouter-specific serving-core helpers.
package/dist/index.d.ts CHANGED
@@ -4,21 +4,21 @@ export { A as AnthropicTool, B as BuiltinToolExecutor, G as GeminiTools, M as Mc
4
4
  import { LLMProvider } from '@omnicross/contracts/llm-config';
5
5
  export { C as CorePaths, a as CoreUsageEvent, b as CoreUsageTokenCounts, U as UsageEventSink } from './usage-event-sink-BX7FE1NL.js';
6
6
  export { L as Logger } from './logger-4GvQNzhE.js';
7
- export { PricingStore } from './ports/pricing-store.js';
7
+ export { AutomaticPricingSource, PricingStore } from './ports/pricing-store.js';
8
8
  export { ProviderConfigSource } from './ports/provider-config-source.js';
9
9
  export { UsageEventStore } from './ports/usage-event-store.js';
10
10
  export { WebSearchBackend } from './ports/web-search-backend.js';
11
11
  export { AnthropicIngressHandler, AnthropicIngressHandlerFactory, AnthropicRouteHandlerParams, AnthropicSdkHints, ExtendedContextHint, IngressFormat, ProviderProxyDeps, ProxyAttribution, RetryCallback, RouteAuthMode, RouteContext, StreamEventCallback, SubscriptionDispatchProfile, SubscriptionRequestSummary, TargetProviderFormat, UsageRecorderImport, UsageRecorderImport as UsageSink } from './provider-proxy/types.js';
12
- export { A as AccountProbeConfig, C as ChatDispatchMode, a as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, b as EndpointRoutingConfig, F as FingerprintConfig, K as KeySpendReader, c as KeySpendSeeder, d as KeySpendTracker, e as KindMappedEndpoint, M as MessagesModelKind, f as ModelKind, g as ModelPrefixTargets, h as OutboundApiDeps, i as OutboundApiKeyCreated, j as OutboundApiKeyInfo, k as OutboundApiServerConfig, l as OutboundApiServerStatus, O as OutboundCredentialStore, m as OutboundEndpoint, n as OutboundFormatUrls, o as OutboundKeyActivationMode, O as OutboundKeyDb, p as OutboundKeyDbRow, q as OutboundKeyPolicy, r as OutboundProxyConfig, R as RequestRole, s as ResponsesModelKind, U as UserMessageQueueConfig, V as VoucherCreateInput, t as VoucherDb, u as computeVoucherGrant, v as generateVoucherCode, w as hashVoucherCode, x as newVoucherId, y as startOfLocalDay, z as startOfLocalWeek, B as toVoucherInfo, D as voucherCodePrefix } from './types-lgPYQuZS.js';
12
+ export { A as AccountProbeConfig, a as AllowanceSchedulingConfig, C as ChatDispatchMode, b as ConcurrencyQueueConfig, E as ENDPOINT_MODEL_KINDS, c as EndpointRoutingConfig, F as FingerprintConfig, G as GatewayBinding, d as GatewayBindingFallback, e as GatewayBindingKeyScope, f as GatewayBindingModelMode, g as GatewayBindingTarget, h as GatewayModelMapping, K as KeySpendReader, i as KeySpendSeeder, j as KeySpendTracker, k as KindMappedEndpoint, M as MessagesModelKind, l as ModelKind, m as ModelPrefixTargets, n as OutboundApiDeps, o as OutboundApiKeyCreated, p as OutboundApiKeyInfo, q as OutboundApiServerConfig, r as OutboundApiServerStatus, O as OutboundCredentialStore, s as OutboundEndpoint, t as OutboundFormatUrls, u as OutboundKeyActivationMode, O as OutboundKeyDb, v as OutboundKeyDbRow, w as OutboundKeyPolicy, x as OutboundProxyConfig, R as RequestRole, y as ResponsesModelKind, U as UserMessageQueueConfig, V as VoucherCreateInput, z as VoucherDb, B as computeVoucherGrant, D as generateVoucherCode, H as hashVoucherCode, I as newVoucherId, J as startOfLocalDay, L as startOfLocalWeek, N as toVoucherInfo, P as voucherCodePrefix } from './types-hsoKrVQS.js';
13
13
  export { CostCalculation, PricingEngine, PricingEngineOptions } from './usage/pricing-engine.js';
14
14
  export { UsageRecordInput, UsageRecorder, UsageRecorderOptions } from './usage/usage-recorder.js';
15
15
  export { A as ApiFormat, C as CompletionOptions, a as CompletionResult, N as NATIVE_SEARCH_TOOL_NAMES, b as NativeSearchAugmentation, c as NativeSearchDetectionResult, d as NativeSearchProvider, e as NativeSearchUserConfig, S as StreamCallbacks } from './types-BScIHmPr.js';
16
- export { C as CompletionService, V as VisionFallbackProvider } from './CompletionService-DdWaAxq0.js';
16
+ export { C as CompletionService, V as VisionFallbackProvider } from './CompletionService-C3BX0Ovy.js';
17
17
  export { SimpleChatGeminiMessage, SimpleChatGeminiPart, StreamEvent, StreamEventType, StreamSender, addOpenRouterProviderToRequest, attachStreamEventBuffer, convertMessageToAnthropic, convertMessageToGemini, convertMessageToOpenAI, emitStreamEvent, getOpenRouterProviderConfig, getProviderHeaders, registerStreamEventBuffer, releaseStreamEventBuffer } from './completion.js';
18
18
  export { buildAnthropicApiUrl, buildAzureOpenAIApiUrl, buildGeminiApiUrl, buildOpenAIApiUrl, buildOpenAIResponseApiUrl, buildProviderApiUrl, normalizeAzureEndpoint, resolveApiFormat, resolveProviderEndpoint } from './completion/url-builder.js';
19
19
  export { applyAugmentation, buildNativeSearchAugmentation, detectNativeSearch } from './completion/NativeSearchInjector.js';
20
20
  export { __resetProviderProxyForTests, extractRouteToken, getProviderProxy } from './provider-proxy.js';
21
- export { ApiServerSettingsStore, ApplyConfigInput, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_OUTBOUND_PORT, DEFAULT_USER_MESSAGE_QUEUE, EndpointModelConfigError, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, KeyVerification, KeyedMutex, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiConfigError, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, VerifiedKey, __resetOutboundApiServerForTests, classifyModelPrefix, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, endpointToIngressFormat, formatUrls, getOutboundApiServer, handleVoucherRedeem, hashKey, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, validateServerModelConfig, verifyKey, verifyPresentedKey } from './outbound-api.js';
21
+ export { ApiServerSettingsStore, ApplyConfigInput, ConcurrencyQueueFullError, ConcurrencyWaitCancelledError, ConcurrencyWaitTimeoutError, DEFAULT_ACCOUNT_PROBE, DEFAULT_ALLOWANCE_SCHEDULING, DEFAULT_CONCURRENCY_QUEUE, DEFAULT_FINGERPRINT, DEFAULT_OUTBOUND_PORT, DEFAULT_USER_MESSAGE_QUEUE, GateAcquireOptions, GateAcquisition, GateSlot, GateStatusEntry, GatewayBindingResolution, KeyVerification, KeyedMutex, ModelPrefixKind, OUTBOUND_API_SERVER_CONFIG_KEY, OutboundApiServer, OutboundConcurrencyGate, OutboundRateLimiter, ResolveGatewayBindingInput, SerialAcquireOptions, SerialQueueStatusEntry, SerialQueueTimeoutError, SerialSlot, UserMessageSerialQueue, VerifiedKey, __resetOutboundApiServerForTests, candidateBackgroundModelIds, candidateGatewayBindings, classifyModelPrefix, createIntegrationKey, createNamedKey, defaultServerConfig, detectModelKind, detectRequestRole, endpointToIngressFormat, formatUrls, gatewayBindingToEndpointConfig, getOutboundApiServer, handleVoucherRedeem, hashKey, isConcurrencyRejection, isKindMappedEndpoint, isRedeemRequest, isSerialQueueTimeout, isUserMessageRequest, legacyEndpointsToBindings, loadServerConfig, mergeServerConfig, modelKindsForEndpoint, normalizeAccountProbe, normalizeAllowanceScheduling, normalizeAudit, normalizeBilling, normalizeFingerprint, normalizeGatewayBindings, normalizePrefixTargets, normalizeProxyConfig, normalizeProxySegment, normalizeQueueSegments, normalizeServerConfig, normalizeVoucher, normalizeWebhookDestination, normalizeWebhookSegment, randomBase62, resolveGatewayBinding, resolvePrefixTarget, saveServerConfig, validateEndpointModelConfig, verifyKey, verifyPresentedKey } from './outbound-api.js';
22
22
  export { convertAnthropicRequestToOpenAI, convertAnthropicStreamToOpenAI, convertAnthropicToOpenAI, convertAnthropicToOpenAIWithThinking, convertOpenAIResponseToAnthropic, convertOpenAIStreamToAnthropic, convertOpenAIToAnthropic, convertOpenAIToAnthropicWithThinking, hasImageContent, hasThinkingEnabled } from './ApiConverter.js';
23
23
  export { ChainExecutionOptions, TransformerChainExecutor } from './transformer/TransformerChainExecutor.js';
24
24
  export { TransformerService } from './transformer/TransformerService.js';
@@ -27,9 +27,10 @@ export { Annotation, ImageContent, MessageContent, ModelRoute, ModelTransformerC
27
27
  export { AUDIT_REDACTED, redactAuditText } from './outbound-api/auditRedact.js';
28
28
  export { AuditCaptureContext, beginAuditCapture } from './outbound-api/auditCapture.js';
29
29
  export { BillingCaptureContext, beginBillingCapture } from './outbound-api/billingCapture.js';
30
+ export { BoundAccountFallbackPolicy, BoundAccountSelectionError, BoundAccountSelectionFailureReason, boundAccountSelectionMessage, isBoundAccountSelectionError } from './pipeline/BoundAccountSelectionError.js';
30
31
  export { D as DEFAULT_ROUTE_IDLE_MS, P as ProviderProxy, a as ProviderProxyRouteMap } from './ProviderProxy-C-xqrkKi.js';
31
- export { K as KeyCostLimits, a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-Cp0FntZl.js';
32
- export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-C4T7yClx.js';
32
+ export { K as KeyCostLimits, a as KeyExpiryInput, b as KeyExpiryResult, c as KeySpend, Q as QuotaDecision, d as checkKeyQuota, e as computeKeyExpiry } from './keyPolicy-zdWTu3CQ.js';
33
+ export { S as SUBSCRIPTION_PROVIDER_IDS, e as endpointSupportsSubscription, i as isSubscriptionProviderId, p as parseModelRef, a as pickModelRefFromList, r as resolveRoute } from './routeResolver-CHTv_Bs5.js';
33
34
  import '@omnicross/contracts/message-blocks';
34
35
  import '@omnicross/contracts/completion-types';
35
36
  import '@omnicross/contracts/mcp-types';
@@ -54,8 +55,7 @@ import './transformer/transformers/AnthropicTransformer.js';
54
55
  import './transformer/transformers/GeminiCodeAssistTransformer.js';
55
56
  import './transformer/transformers/GeminiTransformer.js';
56
57
  import './transformer/transformers/OpenAIResponseTransformer.js';
57
- import './transformer/transformers/OpenCodeGoTransformer.js';
58
- import './transformer/transformers/ReasoningTransformer.js';
58
+ import './transformer/transformers/OpenAITransformer.js';
59
59
 
60
60
  /**
61
61
  * OpenRouter-specific serving-core helpers.
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  ConcurrencyWaitCancelledError,
5
5
  ConcurrencyWaitTimeoutError,
6
6
  DEFAULT_ACCOUNT_PROBE,
7
+ DEFAULT_ALLOWANCE_SCHEDULING,
7
8
  DEFAULT_CONCURRENCY_QUEUE,
8
9
  DEFAULT_FINGERPRINT,
9
10
  DEFAULT_OUTBOUND_PORT,
@@ -12,7 +13,6 @@ import {
12
13
  KeySpendTracker,
13
14
  KeyedMutex,
14
15
  OUTBOUND_API_SERVER_CONFIG_KEY,
15
- OutboundApiConfigError,
16
16
  OutboundApiServer,
17
17
  OutboundConcurrencyGate,
18
18
  OutboundRateLimiter,
@@ -24,17 +24,21 @@ import {
24
24
  __resetProviderProxyForTests,
25
25
  addOpenRouterProviderToRequest,
26
26
  attach,
27
+ candidateBackgroundModelIds,
28
+ candidateGatewayBindings,
27
29
  checkKeyQuota,
28
30
  computeKeyExpiry,
29
31
  computeVoucherGrant,
30
32
  convertMessageToAnthropic,
31
33
  convertMessageToGemini,
32
34
  convertMessageToOpenAI,
35
+ createIntegrationKey,
33
36
  createNamedKey,
34
37
  defaultServerConfig,
35
38
  emit,
36
39
  extractRouteToken,
37
40
  formatUrls,
41
+ gatewayBindingToEndpointConfig,
38
42
  generateVoucherCode,
39
43
  getOpenRouterProviderConfig,
40
44
  getOutboundApiServer,
@@ -46,13 +50,16 @@ import {
46
50
  isRedeemRequest,
47
51
  isSerialQueueTimeout,
48
52
  isUserMessageRequest,
53
+ legacyEndpointsToBindings,
49
54
  loadServerConfig,
50
55
  mergeServerConfig,
51
56
  newVoucherId,
52
57
  normalizeAccountProbe,
58
+ normalizeAllowanceScheduling,
53
59
  normalizeAudit,
54
60
  normalizeBilling,
55
61
  normalizeFingerprint,
62
+ normalizeGatewayBindings,
56
63
  normalizePrefixTargets,
57
64
  normalizeProxyConfig,
58
65
  normalizeProxySegment,
@@ -64,6 +71,7 @@ import {
64
71
  randomBase62,
65
72
  register,
66
73
  release,
74
+ resolveGatewayBinding,
67
75
  saveServerConfig,
68
76
  startOfLocalDay,
69
77
  startOfLocalWeek,
@@ -71,50 +79,55 @@ import {
71
79
  verifyKey,
72
80
  verifyPresentedKey,
73
81
  voucherCodePrefix
74
- } from "./chunk-QYTT6GE3.js";
82
+ } from "./chunk-UDCC7EMR.js";
83
+ import "./chunk-WB6PH56J.js";
75
84
  import {
76
85
  createSSEParser,
77
86
  streamSSEResponse
78
87
  } from "./chunk-VVEHS2LI.js";
79
88
  import "./chunk-46RLHI7D.js";
89
+ import {
90
+ TransformerChainExecutor
91
+ } from "./chunk-WNKWAEUR.js";
92
+ import "./chunk-MZNPGW5Q.js";
80
93
  import {
81
94
  TransformerService
82
95
  } from "./chunk-DK4A7DLE.js";
83
96
  import {
84
97
  registerBuiltinTransformers
85
- } from "./chunk-VPBAUQ2M.js";
86
- import "./chunk-ZJZAOKI7.js";
87
- import "./chunk-FTQ7IQUC.js";
88
- import "./chunk-C7PSERMH.js";
89
- import "./chunk-TIER4SUC.js";
90
- import "./chunk-Z7LUNECE.js";
98
+ } from "./chunk-VRFBB5DB.js";
99
+ import "./chunk-LVUCAWMK.js";
100
+ import "./chunk-OEWZUX4G.js";
101
+ import "./chunk-LB6EBS6Y.js";
102
+ import "./chunk-6CL5HTPQ.js";
91
103
  import "./chunk-7VU7V2E4.js";
92
104
  import {
93
105
  PricingEngine
94
- } from "./chunk-ZLX3KGXX.js";
106
+ } from "./chunk-UX7VWA46.js";
95
107
  import {
96
108
  UsageRecorder
97
109
  } from "./chunk-BPKCU575.js";
98
- import {
99
- TransformerChainExecutor
100
- } from "./chunk-G2UTNSGU.js";
101
- import "./chunk-MZNPGW5Q.js";
110
+ import "./chunk-DRWHTIIZ.js";
102
111
  import "./chunk-XTEI64OU.js";
103
112
  import "./chunk-XX6NQJMA.js";
104
- import "./chunk-IAXWICZU.js";
113
+ import "./chunk-5ERIZW3D.js";
114
+ import "./chunk-YJVHCHQX.js";
115
+ import "./chunk-23S5OPIO.js";
116
+ import {
117
+ serializeError
118
+ } from "./chunk-AVYJ4YBN.js";
105
119
  import "./chunk-OE6TDIWW.js";
106
- import "./chunk-DRWHTIIZ.js";
107
- import "./chunk-IK3KE3AU.js";
120
+ import "./chunk-OPRS4IQZ.js";
121
+ import {
122
+ BoundAccountSelectionError,
123
+ boundAccountSelectionMessage,
124
+ isBoundAccountSelectionError
125
+ } from "./chunk-2JYRIADS.js";
126
+ import "./chunk-DE2SRBFZ.js";
108
127
  import {
109
128
  getProviderHeaders
110
129
  } from "./chunk-ZY6KU6P3.js";
111
130
  import "./chunk-JWC6APFQ.js";
112
- import "./chunk-5ERIZW3D.js";
113
- import "./chunk-5ENKBSWO.js";
114
- import "./chunk-HRRYG2AX.js";
115
- import {
116
- serializeError
117
- } from "./chunk-AVYJ4YBN.js";
118
131
  import {
119
132
  beginBillingCapture
120
133
  } from "./chunk-WLYIIEAF.js";
@@ -134,9 +147,8 @@ import {
134
147
  pickModelRefFromList,
135
148
  resolvePrefixTarget,
136
149
  resolveRoute,
137
- validateEndpointModelConfig,
138
- validateServerModelConfig
139
- } from "./chunk-UHGVBFU3.js";
150
+ validateEndpointModelConfig
151
+ } from "./chunk-EBLFCNPY.js";
140
152
  import "./chunk-AQ5TNQB7.js";
141
153
  import {
142
154
  ENDPOINT_MODEL_KINDS
@@ -154,7 +166,7 @@ import {
154
166
  } from "./chunk-H5JUT3KV.js";
155
167
  import {
156
168
  beginAuditCapture
157
- } from "./chunk-7Y47UCF2.js";
169
+ } from "./chunk-IFXJ2BG7.js";
158
170
  import {
159
171
  AUDIT_REDACTED,
160
172
  redactAuditText
@@ -172,10 +184,12 @@ import {
172
184
  convertOpenAIToAnthropicWithThinking,
173
185
  hasImageContent,
174
186
  hasThinkingEnabled
175
- } from "./chunk-5ZQBEOMD.js";
176
- import "./chunk-Z7Y2NPHY.js";
177
- import "./chunk-S4WBV25P.js";
178
- import "./chunk-XK5CIRMQ.js";
187
+ } from "./chunk-AT7B7SOZ.js";
188
+ import "./chunk-N5T4M4GU.js";
189
+ import "./chunk-TOVPMMHM.js";
190
+ import "./chunk-SIZQQD6T.js";
191
+ import "./chunk-SYQF7OIR.js";
192
+ import "./chunk-MKF46GNZ.js";
179
193
  import {
180
194
  BuiltinToolExecutor,
181
195
  getBuiltinSearchTools
@@ -196,12 +210,14 @@ import {
196
210
  } from "./chunk-HUZZZ3JL.js";
197
211
  export {
198
212
  AUDIT_REDACTED,
213
+ BoundAccountSelectionError,
199
214
  BuiltinToolExecutor,
200
215
  CompletionService,
201
216
  ConcurrencyQueueFullError,
202
217
  ConcurrencyWaitCancelledError,
203
218
  ConcurrencyWaitTimeoutError,
204
219
  DEFAULT_ACCOUNT_PROBE,
220
+ DEFAULT_ALLOWANCE_SCHEDULING,
205
221
  DEFAULT_CONCURRENCY_QUEUE,
206
222
  DEFAULT_FINGERPRINT,
207
223
  DEFAULT_OUTBOUND_PORT,
@@ -213,7 +229,6 @@ export {
213
229
  NATIVE_SEARCH_TOOL_NAMES,
214
230
  OPENROUTER_APP_HEADERS,
215
231
  OUTBOUND_API_SERVER_CONFIG_KEY,
216
- OutboundApiConfigError,
217
232
  OutboundApiServer,
218
233
  OutboundConcurrencyGate,
219
234
  OutboundRateLimiter,
@@ -233,6 +248,7 @@ export {
233
248
  attach as attachStreamEventBuffer,
234
249
  beginAuditCapture,
235
250
  beginBillingCapture,
251
+ boundAccountSelectionMessage,
236
252
  buildAnthropicApiUrl,
237
253
  buildAzureOpenAIApiUrl,
238
254
  buildGeminiApiUrl,
@@ -240,6 +256,8 @@ export {
240
256
  buildOpenAIApiUrl,
241
257
  buildOpenAIResponseApiUrl,
242
258
  buildProviderApiUrl,
259
+ candidateBackgroundModelIds,
260
+ candidateGatewayBindings,
243
261
  checkKeyQuota,
244
262
  classifyModelPrefix,
245
263
  computeKeyExpiry,
@@ -255,6 +273,7 @@ export {
255
273
  convertOpenAIStreamToAnthropic,
256
274
  convertOpenAIToAnthropic,
257
275
  convertOpenAIToAnthropicWithThinking,
276
+ createIntegrationKey,
258
277
  createNamedKey,
259
278
  createSSEParser,
260
279
  defaultServerConfig,
@@ -266,6 +285,7 @@ export {
266
285
  endpointToIngressFormat,
267
286
  extractRouteToken,
268
287
  formatUrls,
288
+ gatewayBindingToEndpointConfig,
269
289
  generateVoucherCode,
270
290
  getBuiltinSearchTools,
271
291
  getOpenRouterAppIdentity,
@@ -278,6 +298,7 @@ export {
278
298
  hasThinkingEnabled,
279
299
  hashKey,
280
300
  hashVoucherCode,
301
+ isBoundAccountSelectionError,
281
302
  isConcurrencyRejection,
282
303
  isKindMappedEndpoint,
283
304
  isOpenRouterProvider,
@@ -285,15 +306,18 @@ export {
285
306
  isSerialQueueTimeout,
286
307
  isSubscriptionProviderId,
287
308
  isUserMessageRequest,
309
+ legacyEndpointsToBindings,
288
310
  loadServerConfig,
289
311
  mergeServerConfig,
290
312
  modelKindsForEndpoint,
291
313
  newVoucherId,
292
314
  normalizeAccountProbe,
315
+ normalizeAllowanceScheduling,
293
316
  normalizeAudit,
294
317
  normalizeAzureEndpoint,
295
318
  normalizeBilling,
296
319
  normalizeFingerprint,
320
+ normalizeGatewayBindings,
297
321
  normalizePrefixTargets,
298
322
  normalizeProxyConfig,
299
323
  normalizeProxySegment,
@@ -310,6 +334,7 @@ export {
310
334
  register as registerStreamEventBuffer,
311
335
  release as releaseStreamEventBuffer,
312
336
  resolveApiFormat,
337
+ resolveGatewayBinding,
313
338
  resolvePrefixTarget,
314
339
  resolveProviderEndpoint,
315
340
  resolveRoute,
@@ -321,7 +346,6 @@ export {
321
346
  streamSSEResponse,
322
347
  toVoucherInfo,
323
348
  validateEndpointModelConfig,
324
- validateServerModelConfig,
325
349
  verifyKey,
326
350
  verifyPresentedKey,
327
351
  voucherCodePrefix