@jsonstudio/rcc 0.90.367 → 0.90.429

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 (1185) hide show
  1. package/config/providers/ali-coding-plan.json +5 -0
  2. package/dist/build-info.js +2 -2
  3. package/dist/cli/commands/codex.js +37 -35
  4. package/dist/cli/commands/codex.js.map +1 -1
  5. package/dist/cli/commands/heartbeat.d.ts +20 -0
  6. package/dist/cli/commands/heartbeat.js +184 -0
  7. package/dist/cli/commands/heartbeat.js.map +1 -0
  8. package/dist/cli/commands/launcher/types.d.ts +0 -1
  9. package/dist/cli/commands/launcher-kernel.js +165 -73
  10. package/dist/cli/commands/launcher-kernel.js.map +1 -1
  11. package/dist/cli/commands/start.js +5 -3
  12. package/dist/cli/commands/start.js.map +1 -1
  13. package/dist/cli/register/heartbeat-command.d.ts +3 -0
  14. package/dist/cli/register/heartbeat-command.js +5 -0
  15. package/dist/cli/register/heartbeat-command.js.map +1 -0
  16. package/dist/cli.js +11 -0
  17. package/dist/cli.js.map +1 -1
  18. package/dist/commands/validate.js +34 -13
  19. package/dist/commands/validate.js.map +1 -1
  20. package/dist/config/user-data-paths.js +14 -3
  21. package/dist/config/user-data-paths.js.map +1 -1
  22. package/dist/index.js +31 -12
  23. package/dist/index.js.map +1 -1
  24. package/dist/manager/modules/quota/antigravity-quota-manager.js +50 -37
  25. package/dist/manager/modules/quota/antigravity-quota-manager.js.map +1 -1
  26. package/dist/manager/modules/quota/antigravity-quota-persistence.js +23 -14
  27. package/dist/manager/modules/quota/antigravity-quota-persistence.js.map +1 -1
  28. package/dist/manager/modules/quota/antigravity-quota-runtime.js +20 -11
  29. package/dist/manager/modules/quota/antigravity-quota-runtime.js.map +1 -1
  30. package/dist/manager/modules/quota/quota-adapter.js +28 -12
  31. package/dist/manager/modules/quota/quota-adapter.js.map +1 -1
  32. package/dist/manager/quota/provider-quota-store.js +17 -11
  33. package/dist/manager/quota/provider-quota-store.js.map +1 -1
  34. package/dist/manager/storage/file-store.js +15 -9
  35. package/dist/manager/storage/file-store.js.map +1 -1
  36. package/dist/modules/llmswitch/bridge/index.d.ts +1 -1
  37. package/dist/modules/llmswitch/bridge/index.js +1 -1
  38. package/dist/modules/llmswitch/bridge/index.js.map +1 -1
  39. package/dist/modules/llmswitch/bridge/module-loader.js +2 -2
  40. package/dist/modules/llmswitch/bridge/module-loader.js.map +1 -1
  41. package/dist/modules/llmswitch/bridge/quota-manager.js +1 -1
  42. package/dist/modules/llmswitch/bridge/quota-manager.js.map +1 -1
  43. package/dist/modules/llmswitch/bridge/runtime-integrations.d.ts +1 -1
  44. package/dist/modules/llmswitch/bridge/runtime-integrations.js +1 -1
  45. package/dist/modules/llmswitch/bridge/runtime-integrations.js.map +1 -1
  46. package/dist/modules/llmswitch/bridge/snapshot-recorder.js +4 -1
  47. package/dist/modules/llmswitch/bridge/snapshot-recorder.js.map +1 -1
  48. package/dist/modules/llmswitch/bridge/state-integrations.d.ts +28 -0
  49. package/dist/modules/llmswitch/bridge/state-integrations.js +138 -0
  50. package/dist/modules/llmswitch/bridge/state-integrations.js.map +1 -1
  51. package/dist/modules/llmswitch/bridge.d.ts +6 -6
  52. package/dist/modules/llmswitch/bridge.js +1 -1
  53. package/dist/modules/llmswitch/bridge.js.map +1 -1
  54. package/dist/modules/llmswitch/core-loader.js +24 -35
  55. package/dist/modules/llmswitch/core-loader.js.map +1 -1
  56. package/dist/providers/auth/oauth-auth.js +5 -3
  57. package/dist/providers/auth/oauth-auth.js.map +1 -1
  58. package/dist/providers/auth/oauth-lifecycle.js +84 -34
  59. package/dist/providers/auth/oauth-lifecycle.js.map +1 -1
  60. package/dist/providers/auth/tokenfile-auth.js +22 -12
  61. package/dist/providers/auth/tokenfile-auth.js.map +1 -1
  62. package/dist/providers/core/api/provider-types.d.ts +16 -0
  63. package/dist/providers/core/strategies/oauth-auth-code-flow.js +3 -1
  64. package/dist/providers/core/strategies/oauth-auth-code-flow.js.map +1 -1
  65. package/dist/providers/core/utils/snapshot-writer.js +28 -18
  66. package/dist/providers/core/utils/snapshot-writer.js.map +1 -1
  67. package/dist/server/handlers/handler-response-utils.js +21 -7
  68. package/dist/server/handlers/handler-response-utils.js.map +1 -1
  69. package/dist/server/handlers/handler-utils.js +16 -8
  70. package/dist/server/handlers/handler-utils.js.map +1 -1
  71. package/dist/server/runtime/http-server/clock-runtime-hooks.js +7 -10
  72. package/dist/server/runtime/http-server/clock-runtime-hooks.js.map +1 -1
  73. package/dist/server/runtime/http-server/daemon-admin/providers-handler-routing-utils.js +0 -30
  74. package/dist/server/runtime/http-server/daemon-admin/providers-handler-routing-utils.js.map +1 -1
  75. package/dist/server/runtime/http-server/daemon-admin/providers-handler.js +1 -113
  76. package/dist/server/runtime/http-server/daemon-admin/providers-handler.js.map +1 -1
  77. package/dist/server/runtime/http-server/daemon-admin/status-handler.js +11 -2
  78. package/dist/server/runtime/http-server/daemon-admin/status-handler.js.map +1 -1
  79. package/dist/server/runtime/http-server/executor/client-injection-flow.js +9 -8
  80. package/dist/server/runtime/http-server/executor/client-injection-flow.js.map +1 -1
  81. package/dist/server/runtime/http-server/executor/provider-response-converter.js +2 -133
  82. package/dist/server/runtime/http-server/executor/provider-response-converter.js.map +1 -1
  83. package/dist/server/runtime/http-server/executor-metadata.js +29 -5
  84. package/dist/server/runtime/http-server/executor-metadata.js.map +1 -1
  85. package/dist/server/runtime/http-server/executor-response.js +1 -62
  86. package/dist/server/runtime/http-server/executor-response.js.map +1 -1
  87. package/dist/server/runtime/http-server/heartbeat-runtime-hooks.d.ts +23 -0
  88. package/dist/server/runtime/http-server/heartbeat-runtime-hooks.js +140 -0
  89. package/dist/server/runtime/http-server/heartbeat-runtime-hooks.js.map +1 -0
  90. package/dist/server/runtime/http-server/http-server-lifecycle.js +2 -0
  91. package/dist/server/runtime/http-server/http-server-lifecycle.js.map +1 -1
  92. package/dist/server/runtime/http-server/http-server-runtime-setup.js +2 -0
  93. package/dist/server/runtime/http-server/http-server-runtime-setup.js.map +1 -1
  94. package/dist/server/runtime/http-server/http-server-session-daemon.d.ts +1 -0
  95. package/dist/server/runtime/http-server/http-server-session-daemon.js +27 -8
  96. package/dist/server/runtime/http-server/http-server-session-daemon.js.map +1 -1
  97. package/dist/server/runtime/http-server/index.d.ts +1 -0
  98. package/dist/server/runtime/http-server/index.js +20 -1
  99. package/dist/server/runtime/http-server/index.js.map +1 -1
  100. package/dist/server/runtime/http-server/request-activity-tracker.d.ts +7 -0
  101. package/dist/server/runtime/http-server/request-activity-tracker.js +58 -0
  102. package/dist/server/runtime/http-server/request-activity-tracker.js.map +1 -0
  103. package/dist/server/runtime/http-server/request-executor.d.ts +7 -0
  104. package/dist/server/runtime/http-server/request-executor.js +529 -473
  105. package/dist/server/runtime/http-server/request-executor.js.map +1 -1
  106. package/dist/server/runtime/http-server/session-client-reaper.js +9 -2
  107. package/dist/server/runtime/http-server/session-client-reaper.js.map +1 -1
  108. package/dist/server/runtime/http-server/session-client-registry-utils.d.ts +1 -0
  109. package/dist/server/runtime/http-server/session-client-registry-utils.js +10 -2
  110. package/dist/server/runtime/http-server/session-client-registry-utils.js.map +1 -1
  111. package/dist/server/runtime/http-server/session-client-registry.d.ts +3 -0
  112. package/dist/server/runtime/http-server/session-client-registry.js +26 -0
  113. package/dist/server/runtime/http-server/session-client-registry.js.map +1 -1
  114. package/dist/server/runtime/http-server/session-client-route-utils.js +5 -38
  115. package/dist/server/runtime/http-server/session-client-route-utils.js.map +1 -1
  116. package/dist/server/runtime/http-server/session-client-routes.js +75 -2
  117. package/dist/server/runtime/http-server/session-client-routes.js.map +1 -1
  118. package/dist/server/runtime/http-server/session-storage-cleanup.d.ts +17 -0
  119. package/dist/server/runtime/http-server/session-storage-cleanup.js +251 -0
  120. package/dist/server/runtime/http-server/session-storage-cleanup.js.map +1 -0
  121. package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.d.ts +21 -0
  122. package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.js +59 -0
  123. package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.js.map +1 -0
  124. package/dist/server/runtime/http-server/tmux-session-probe.d.ts +1 -0
  125. package/dist/server/runtime/http-server/tmux-session-probe.js +23 -0
  126. package/dist/server/runtime/http-server/tmux-session-probe.js.map +1 -1
  127. package/dist/server-lifecycle/port-utils.js +38 -7
  128. package/dist/server-lifecycle/port-utils.js.map +1 -1
  129. package/dist/tools/semantic-replay-snapshot-loader.js +2 -2
  130. package/dist/tools/semantic-replay-snapshot-loader.js.map +1 -1
  131. package/dist/utils/snapshot-writer.js +16 -6
  132. package/dist/utils/snapshot-writer.js.map +1 -1
  133. package/docs/CLOCK.md +51 -0
  134. package/docs/INSTRUCTION_MARKUP.md +28 -2
  135. package/docs/session-client-daemon-design.md +92 -0
  136. package/package.json +8 -7
  137. package/scripts/analyze-thinking-keywords.mjs +1 -1
  138. package/scripts/ci/repo-sanity.mjs +35 -31
  139. package/scripts/ensure-llmswitch-mode.mjs +63 -5
  140. package/scripts/install-global.sh +46 -0
  141. package/scripts/install-release.sh +39 -5
  142. package/scripts/install-verify.mjs +143 -18
  143. package/scripts/link-llmswitch.mjs +56 -0
  144. package/scripts/pack-mode.mjs +39 -16
  145. package/scripts/pack-rcc.mjs +63 -4
  146. package/scripts/publish-rcc.mjs +59 -4
  147. package/scripts/snapshot-inspect.mjs +5 -24
  148. package/scripts/tests/blackbox-rcc-vs-routecodex-antigravity.mjs +2 -2
  149. package/scripts/vendor-core.mjs +9 -30
  150. package/vendor/llmswitch-core/README.md +0 -271
  151. package/vendor/llmswitch-core/dist/bridge/routecodex-adapter.d.ts +0 -74
  152. package/vendor/llmswitch-core/dist/bridge/routecodex-adapter.js +0 -229
  153. package/vendor/llmswitch-core/dist/config-unified/enhanced-path-resolver.d.ts +0 -5
  154. package/vendor/llmswitch-core/dist/config-unified/enhanced-path-resolver.js +0 -46
  155. package/vendor/llmswitch-core/dist/config-unified/unified-config.d.ts +0 -26
  156. package/vendor/llmswitch-core/dist/config-unified/unified-config.js +0 -231
  157. package/vendor/llmswitch-core/dist/conversion/args-mapping.d.ts +0 -18
  158. package/vendor/llmswitch-core/dist/conversion/args-mapping.js +0 -8
  159. package/vendor/llmswitch-core/dist/conversion/bridge-actions.d.ts +0 -39
  160. package/vendor/llmswitch-core/dist/conversion/bridge-actions.js +0 -82
  161. package/vendor/llmswitch-core/dist/conversion/bridge-id-utils.d.ts +0 -9
  162. package/vendor/llmswitch-core/dist/conversion/bridge-id-utils.js +0 -13
  163. package/vendor/llmswitch-core/dist/conversion/bridge-instructions.d.ts +0 -1
  164. package/vendor/llmswitch-core/dist/conversion/bridge-instructions.js +0 -17
  165. package/vendor/llmswitch-core/dist/conversion/bridge-message-utils.d.ts +0 -23
  166. package/vendor/llmswitch-core/dist/conversion/bridge-message-utils.js +0 -45
  167. package/vendor/llmswitch-core/dist/conversion/bridge-metadata.d.ts +0 -2
  168. package/vendor/llmswitch-core/dist/conversion/bridge-metadata.js +0 -5
  169. package/vendor/llmswitch-core/dist/conversion/bridge-policies.d.ts +0 -18
  170. package/vendor/llmswitch-core/dist/conversion/bridge-policies.js +0 -11
  171. package/vendor/llmswitch-core/dist/conversion/codec-registry.d.ts +0 -10
  172. package/vendor/llmswitch-core/dist/conversion/codec-registry.js +0 -37
  173. package/vendor/llmswitch-core/dist/conversion/codecs/anthropic-openai-codec.d.ts +0 -22
  174. package/vendor/llmswitch-core/dist/conversion/codecs/anthropic-openai-codec.js +0 -52
  175. package/vendor/llmswitch-core/dist/conversion/codecs/gemini-openai-codec.d.ts +0 -17
  176. package/vendor/llmswitch-core/dist/conversion/codecs/gemini-openai-codec.js +0 -85
  177. package/vendor/llmswitch-core/dist/conversion/codecs/openai-openai-codec.d.ts +0 -12
  178. package/vendor/llmswitch-core/dist/conversion/codecs/openai-openai-codec.js +0 -54
  179. package/vendor/llmswitch-core/dist/conversion/codecs/responses-openai-codec.d.ts +0 -12
  180. package/vendor/llmswitch-core/dist/conversion/codecs/responses-openai-codec.js +0 -66
  181. package/vendor/llmswitch-core/dist/conversion/compaction-detect.d.ts +0 -2
  182. package/vendor/llmswitch-core/dist/conversion/compaction-detect.js +0 -4
  183. package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-system-prompt.d.ts +0 -4
  184. package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-system-prompt.js +0 -42
  185. package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-user-id.d.ts +0 -3
  186. package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-user-id.js +0 -30
  187. package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-cache.d.ts +0 -3
  188. package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-cache.js +0 -8
  189. package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-prepare.d.ts +0 -3
  190. package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-prepare.js +0 -26
  191. package/vendor/llmswitch-core/dist/conversion/compat/actions/apply-patch-fixer.d.ts +0 -1
  192. package/vendor/llmswitch-core/dist/conversion/compat/actions/apply-patch-fixer.js +0 -30
  193. package/vendor/llmswitch-core/dist/conversion/compat/actions/auto-thinking.d.ts +0 -6
  194. package/vendor/llmswitch-core/dist/conversion/compat/actions/auto-thinking.js +0 -26
  195. package/vendor/llmswitch-core/dist/conversion/compat/actions/claude-thinking-tools.d.ts +0 -2
  196. package/vendor/llmswitch-core/dist/conversion/compat/actions/claude-thinking-tools.js +0 -4
  197. package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-request.d.ts +0 -3
  198. package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-request.js +0 -62
  199. package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-response.d.ts +0 -12
  200. package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-response.js +0 -114
  201. package/vendor/llmswitch-core/dist/conversion/compat/actions/field-mapping.d.ts +0 -14
  202. package/vendor/llmswitch-core/dist/conversion/compat/actions/field-mapping.js +0 -155
  203. package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-cli-request.d.ts +0 -5
  204. package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-cli-request.js +0 -27
  205. package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-web-search.d.ts +0 -3
  206. package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-web-search.js +0 -24
  207. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-history-image-trim.d.ts +0 -2
  208. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-history-image-trim.js +0 -54
  209. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-image-content.d.ts +0 -2
  210. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-image-content.js +0 -54
  211. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-native-compat.d.ts +0 -6
  212. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-native-compat.js +0 -34
  213. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-tool-extraction.d.ts +0 -3
  214. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-tool-extraction.js +0 -35
  215. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-vision-prompt.d.ts +0 -11
  216. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-vision-prompt.js +0 -104
  217. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-web-search.d.ts +0 -2
  218. package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-web-search.js +0 -30
  219. package/vendor/llmswitch-core/dist/conversion/compat/actions/harvest-tool-calls-from-text.d.ts +0 -15
  220. package/vendor/llmswitch-core/dist/conversion/compat/actions/harvest-tool-calls-from-text.js +0 -124
  221. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-cli-defaults.d.ts +0 -10
  222. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-cli-defaults.js +0 -31
  223. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-history-media-placeholder.d.ts +0 -7
  224. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-history-media-placeholder.js +0 -25
  225. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-thinking-reasoning-fill.d.ts +0 -12
  226. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-thinking-reasoning-fill.js +0 -46
  227. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-native-compat.d.ts +0 -6
  228. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-native-compat.js +0 -36
  229. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-response-body-unwrap.d.ts +0 -9
  230. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-response-body-unwrap.js +0 -25
  231. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-tool-text-fallback.d.ts +0 -5
  232. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-tool-text-fallback.js +0 -29
  233. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-web-search.d.ts +0 -18
  234. package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-web-search.js +0 -49
  235. package/vendor/llmswitch-core/dist/conversion/compat/actions/index.d.ts +0 -2
  236. package/vendor/llmswitch-core/dist/conversion/compat/actions/index.js +0 -2
  237. package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-fc-ids.d.ts +0 -2
  238. package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-fc-ids.js +0 -4
  239. package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-input-stringify.d.ts +0 -14
  240. package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-input-stringify.js +0 -125
  241. package/vendor/llmswitch-core/dist/conversion/compat/actions/normalize-tool-call-ids.d.ts +0 -2
  242. package/vendor/llmswitch-core/dist/conversion/compat/actions/normalize-tool-call-ids.js +0 -10
  243. package/vendor/llmswitch-core/dist/conversion/compat/actions/qwen-transform.d.ts +0 -4
  244. package/vendor/llmswitch-core/dist/conversion/compat/actions/qwen-transform.js +0 -40
  245. package/vendor/llmswitch-core/dist/conversion/compat/actions/request-rules.d.ts +0 -24
  246. package/vendor/llmswitch-core/dist/conversion/compat/actions/request-rules.js +0 -4
  247. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-blacklist.d.ts +0 -10
  248. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-blacklist.js +0 -10
  249. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-normalize.d.ts +0 -5
  250. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-normalize.js +0 -4
  251. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-validate.d.ts +0 -5
  252. package/vendor/llmswitch-core/dist/conversion/compat/actions/response-validate.js +0 -4
  253. package/vendor/llmswitch-core/dist/conversion/compat/actions/snapshot.d.ts +0 -8
  254. package/vendor/llmswitch-core/dist/conversion/compat/actions/snapshot.js +0 -21
  255. package/vendor/llmswitch-core/dist/conversion/compat/actions/strip-orphan-function-calls-tag.d.ts +0 -2
  256. package/vendor/llmswitch-core/dist/conversion/compat/actions/strip-orphan-function-calls-tag.js +0 -4
  257. package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-schema.d.ts +0 -6
  258. package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-schema.js +0 -91
  259. package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-text-request-guidance.d.ts +0 -9
  260. package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-text-request-guidance.js +0 -7
  261. package/vendor/llmswitch-core/dist/conversion/compat/actions/universal-shape-filter.d.ts +0 -57
  262. package/vendor/llmswitch-core/dist/conversion/compat/actions/universal-shape-filter.js +0 -14
  263. package/vendor/llmswitch-core/dist/conversion/compat/antigravity-session-signature.d.ts +0 -86
  264. package/vendor/llmswitch-core/dist/conversion/compat/antigravity-session-signature.js +0 -1143
  265. package/vendor/llmswitch-core/dist/conversion/compat/profiles/anthropic-claude-code.json +0 -17
  266. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-claude-code.json +0 -18
  267. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-deepseek-web.json +0 -47
  268. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-gemini-cli.json +0 -23
  269. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-gemini.json +0 -31
  270. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-glm.json +0 -405
  271. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-iflow.json +0 -353
  272. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-lmstudio.json +0 -80
  273. package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-qwen.json +0 -22
  274. package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-c4m.json +0 -45
  275. package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-crs.json +0 -15
  276. package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-output2choices-test.json +0 -12
  277. package/vendor/llmswitch-core/dist/conversion/config/config-manager.d.ts +0 -212
  278. package/vendor/llmswitch-core/dist/conversion/config/config-manager.js +0 -310
  279. package/vendor/llmswitch-core/dist/conversion/config/sample-config.json +0 -314
  280. package/vendor/llmswitch-core/dist/conversion/config/version-switch.json +0 -150
  281. package/vendor/llmswitch-core/dist/conversion/hub/config/types.d.ts +0 -26
  282. package/vendor/llmswitch-core/dist/conversion/hub/config/types.js +0 -1
  283. package/vendor/llmswitch-core/dist/conversion/hub/core/detour-registry.d.ts +0 -11
  284. package/vendor/llmswitch-core/dist/conversion/hub/core/detour-registry.js +0 -23
  285. package/vendor/llmswitch-core/dist/conversion/hub/core/hub-context.d.ts +0 -23
  286. package/vendor/llmswitch-core/dist/conversion/hub/core/hub-context.js +0 -1
  287. package/vendor/llmswitch-core/dist/conversion/hub/core/index.d.ts +0 -4
  288. package/vendor/llmswitch-core/dist/conversion/hub/core/index.js +0 -3
  289. package/vendor/llmswitch-core/dist/conversion/hub/core/stage-driver.d.ts +0 -30
  290. package/vendor/llmswitch-core/dist/conversion/hub/core/stage-driver.js +0 -33
  291. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/anthropic-format-adapter.d.ts +0 -16
  292. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/anthropic-format-adapter.js +0 -42
  293. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/chat-format-adapter.d.ts +0 -17
  294. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/chat-format-adapter.js +0 -42
  295. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/gemini-format-adapter.d.ts +0 -16
  296. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/gemini-format-adapter.js +0 -42
  297. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/index.d.ts +0 -21
  298. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/index.js +0 -4
  299. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/responses-format-adapter.d.ts +0 -19
  300. package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/responses-format-adapter.js +0 -42
  301. package/vendor/llmswitch-core/dist/conversion/hub/hub-feature.d.ts +0 -1
  302. package/vendor/llmswitch-core/dist/conversion/hub/hub-feature.js +0 -26
  303. package/vendor/llmswitch-core/dist/conversion/hub/node-support.d.ts +0 -19
  304. package/vendor/llmswitch-core/dist/conversion/hub/node-support.js +0 -136
  305. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/operation-table-runner.d.ts +0 -18
  306. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/operation-table-runner.js +0 -162
  307. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/anthropic-mapper.d.ts +0 -8
  308. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/anthropic-mapper.js +0 -503
  309. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/archive/chat-mapper.archive.d.ts +0 -8
  310. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/archive/chat-mapper.archive.js +0 -409
  311. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/chat-mapper.d.ts +0 -8
  312. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/chat-mapper.js +0 -350
  313. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/gemini-mapper.d.ts +0 -7
  314. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/gemini-mapper.js +0 -1540
  315. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/responses-mapper.d.ts +0 -21
  316. package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/responses-mapper.js +0 -491
  317. package/vendor/llmswitch-core/dist/conversion/hub/ops/operations.d.ts +0 -19
  318. package/vendor/llmswitch-core/dist/conversion/hub/ops/operations.js +0 -7
  319. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-engine.d.ts +0 -9
  320. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-engine.js +0 -13
  321. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-pipeline-executor.d.ts +0 -9
  322. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-pipeline-executor.js +0 -46
  323. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-resolver.d.ts +0 -2
  324. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-resolver.js +0 -14
  325. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-store.d.ts +0 -2
  326. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-store.js +0 -94
  327. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-types.d.ts +0 -175
  328. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-types.js +0 -1
  329. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/native-adapter-context.d.ts +0 -3
  330. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/native-adapter-context.js +0 -40
  331. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-pipeline.d.ts +0 -111
  332. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-pipeline.js +0 -1927
  333. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-stage-timing.d.ts +0 -8
  334. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-stage-timing.js +0 -211
  335. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/session-identifiers.d.ts +0 -9
  336. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/session-identifiers.js +0 -16
  337. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage1_format_parse/index.d.ts +0 -10
  338. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage1_format_parse/index.js +0 -236
  339. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/index.d.ts +0 -24
  340. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/index.js +0 -132
  341. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/semantic-lift.d.ts +0 -14
  342. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/semantic-lift.js +0 -24
  343. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/archive/shell-like-tool-call-normalization-fallback.d.ts +0 -2
  344. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/archive/shell-like-tool-call-normalization-fallback.js +0 -157
  345. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-capture-orchestration.d.ts +0 -16
  346. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-capture-orchestration.js +0 -29
  347. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-factories.d.ts +0 -5
  348. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-factories.js +0 -19
  349. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/index.d.ts +0 -6
  350. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/index.js +0 -22
  351. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/responses-context-snapshot.d.ts +0 -8
  352. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/responses-context-snapshot.js +0 -28
  353. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-diagnostics.d.ts +0 -2
  354. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-diagnostics.js +0 -4
  355. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-snapshot.d.ts +0 -10
  356. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-snapshot.js +0 -12
  357. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/context-merge.d.ts +0 -3
  358. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/context-merge.js +0 -30
  359. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/index.d.ts +0 -18
  360. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/index.js +0 -84
  361. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage2_format_build/index.d.ts +0 -8
  362. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage2_format_build/index.js +0 -12
  363. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage3_compat/index.d.ts +0 -14
  364. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage3_compat/index.js +0 -45
  365. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage1_tool_governance/index.d.ts +0 -16
  366. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage1_tool_governance/index.js +0 -62
  367. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage2_route_select/index.d.ts +0 -17
  368. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage2_route_select/index.js +0 -35
  369. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/index.d.ts +0 -17
  370. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/index.js +0 -243
  371. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/stream-json-sniffer.d.ts +0 -3
  372. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/stream-json-sniffer.js +0 -81
  373. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage2_format_parse/index.d.ts +0 -10
  374. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage2_format_parse/index.js +0 -50
  375. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage3_semantic_map/index.d.ts +0 -13
  376. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage3_semantic_map/index.js +0 -25
  377. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/chat-process-semantics-bridge.d.ts +0 -6
  378. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/chat-process-semantics-bridge.js +0 -17
  379. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/client-remap-protocol-switch.d.ts +0 -9
  380. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/client-remap-protocol-switch.js +0 -103
  381. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/index.d.ts +0 -13
  382. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/index.js +0 -30
  383. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage2_sse_stream/index.d.ts +0 -17
  384. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage2_sse_stream/index.js +0 -35
  385. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage1_tool_governance/index.d.ts +0 -16
  386. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage1_tool_governance/index.js +0 -52
  387. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage2_finalize/index.d.ts +0 -19
  388. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage2_finalize/index.js +0 -40
  389. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage3_servertool_orchestration/index.d.ts +0 -44
  390. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage3_servertool_orchestration/index.js +0 -88
  391. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/utils.d.ts +0 -2
  392. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/utils.js +0 -27
  393. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/target-utils.d.ts +0 -5
  394. package/vendor/llmswitch-core/dist/conversion/hub/pipeline/target-utils.js +0 -26
  395. package/vendor/llmswitch-core/dist/conversion/hub/pipelines/inbound.d.ts +0 -22
  396. package/vendor/llmswitch-core/dist/conversion/hub/pipelines/inbound.js +0 -66
  397. package/vendor/llmswitch-core/dist/conversion/hub/pipelines/outbound.d.ts +0 -22
  398. package/vendor/llmswitch-core/dist/conversion/hub/pipelines/outbound.js +0 -59
  399. package/vendor/llmswitch-core/dist/conversion/hub/policy/policy-engine.d.ts +0 -48
  400. package/vendor/llmswitch-core/dist/conversion/hub/policy/policy-engine.js +0 -269
  401. package/vendor/llmswitch-core/dist/conversion/hub/policy/protocol-spec.d.ts +0 -75
  402. package/vendor/llmswitch-core/dist/conversion/hub/policy/protocol-spec.js +0 -27
  403. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-anthropic-alias.d.ts +0 -2
  404. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-anthropic-alias.js +0 -36
  405. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directive-parser.d.ts +0 -5
  406. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directive-parser.js +0 -56
  407. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directives.d.ts +0 -24
  408. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directives.js +0 -98
  409. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-directives.d.ts +0 -8
  410. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-directives.js +0 -42
  411. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-finalize.d.ts +0 -14
  412. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-finalize.js +0 -10
  413. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-messages.d.ts +0 -5
  414. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-messages.js +0 -10
  415. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-orchestration.d.ts +0 -30
  416. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-orchestration.js +0 -68
  417. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-time-tag.d.ts +0 -9
  418. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-time-tag.js +0 -18
  419. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminders.d.ts +0 -2
  420. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminders.js +0 -104
  421. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tool-schemas.d.ts +0 -3
  422. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tool-schemas.js +0 -280
  423. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tools.d.ts +0 -6
  424. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tools.js +0 -41
  425. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-continue-execution.d.ts +0 -11
  426. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-continue-execution.js +0 -83
  427. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-context.d.ts +0 -15
  428. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-context.js +0 -7
  429. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-finalize.d.ts +0 -16
  430. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-finalize.js +0 -11
  431. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-orchestration.d.ts +0 -9
  432. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-orchestration.js +0 -49
  433. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-control-ops.d.ts +0 -8
  434. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-control-ops.js +0 -5
  435. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-filter-call.d.ts +0 -12
  436. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-filter-call.js +0 -18
  437. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-merge.d.ts +0 -8
  438. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-merge.js +0 -11
  439. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-media.d.ts +0 -5
  440. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-media.js +0 -108
  441. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-node-result.d.ts +0 -23
  442. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-node-result.js +0 -24
  443. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-pending-tool-sync.d.ts +0 -14
  444. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-pending-tool-sync.js +0 -52
  445. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-post-governed-normalization.d.ts +0 -8
  446. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-post-governed-normalization.js +0 -16
  447. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-review.d.ts +0 -2
  448. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-review.js +0 -8
  449. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-servertool-orchestration.d.ts +0 -8
  450. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-servertool-orchestration.js +0 -22
  451. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-session-usage.d.ts +0 -7
  452. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-session-usage.js +0 -147
  453. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-tool-normalization.d.ts +0 -2
  454. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-tool-normalization.js +0 -4
  455. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-intent.d.ts +0 -12
  456. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-intent.js +0 -13
  457. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-tool-schema.d.ts +0 -3
  458. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-tool-schema.js +0 -4
  459. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search.d.ts +0 -8
  460. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search.js +0 -26
  461. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process.d.ts +0 -15
  462. package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process.js +0 -27
  463. package/vendor/llmswitch-core/dist/conversion/hub/process/client-inject-readiness.d.ts +0 -1
  464. package/vendor/llmswitch-core/dist/conversion/hub/process/client-inject-readiness.js +0 -4
  465. package/vendor/llmswitch-core/dist/conversion/hub/registry.d.ts +0 -28
  466. package/vendor/llmswitch-core/dist/conversion/hub/registry.js +0 -101
  467. package/vendor/llmswitch-core/dist/conversion/hub/response/chat-response-utils.d.ts +0 -6
  468. package/vendor/llmswitch-core/dist/conversion/hub/response/chat-response-utils.js +0 -8
  469. package/vendor/llmswitch-core/dist/conversion/hub/response/provider-response.d.ts +0 -51
  470. package/vendor/llmswitch-core/dist/conversion/hub/response/provider-response.js +0 -529
  471. package/vendor/llmswitch-core/dist/conversion/hub/response/response-mappers.d.ts +0 -24
  472. package/vendor/llmswitch-core/dist/conversion/hub/response/response-mappers.js +0 -73
  473. package/vendor/llmswitch-core/dist/conversion/hub/response/response-runtime.d.ts +0 -9
  474. package/vendor/llmswitch-core/dist/conversion/hub/response/response-runtime.js +0 -758
  475. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/anthropic-mapper.d.ts +0 -2
  476. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/anthropic-mapper.js +0 -2
  477. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/chat-mapper.d.ts +0 -2
  478. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/chat-mapper.js +0 -2
  479. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/gemini-mapper.d.ts +0 -2
  480. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/gemini-mapper.js +0 -2
  481. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/index.d.ts +0 -4
  482. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/index.js +0 -4
  483. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/responses-mapper.d.ts +0 -2
  484. package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/responses-mapper.js +0 -2
  485. package/vendor/llmswitch-core/dist/conversion/hub/snapshot-recorder.d.ts +0 -13
  486. package/vendor/llmswitch-core/dist/conversion/hub/snapshot-recorder.js +0 -38
  487. package/vendor/llmswitch-core/dist/conversion/hub/standardized-bridge.d.ts +0 -12
  488. package/vendor/llmswitch-core/dist/conversion/hub/standardized-bridge.js +0 -16
  489. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/engine.d.ts +0 -24
  490. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/engine.js +0 -118
  491. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/index.d.ts +0 -3
  492. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/index.js +0 -2
  493. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/rules.d.ts +0 -2
  494. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/rules.js +0 -80
  495. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/types.d.ts +0 -38
  496. package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/types.js +0 -1
  497. package/vendor/llmswitch-core/dist/conversion/hub/tool-session-compat.d.ts +0 -26
  498. package/vendor/llmswitch-core/dist/conversion/hub/tool-session-compat.js +0 -86
  499. package/vendor/llmswitch-core/dist/conversion/hub/tool-surface/tool-surface-engine.d.ts +0 -18
  500. package/vendor/llmswitch-core/dist/conversion/hub/tool-surface/tool-surface-engine.js +0 -574
  501. package/vendor/llmswitch-core/dist/conversion/hub/types/chat-envelope.d.ts +0 -79
  502. package/vendor/llmswitch-core/dist/conversion/hub/types/chat-envelope.js +0 -1
  503. package/vendor/llmswitch-core/dist/conversion/hub/types/chat-schema.d.ts +0 -112
  504. package/vendor/llmswitch-core/dist/conversion/hub/types/chat-schema.js +0 -1
  505. package/vendor/llmswitch-core/dist/conversion/hub/types/errors.d.ts +0 -5
  506. package/vendor/llmswitch-core/dist/conversion/hub/types/errors.js +0 -13
  507. package/vendor/llmswitch-core/dist/conversion/hub/types/format-envelope.d.ts +0 -7
  508. package/vendor/llmswitch-core/dist/conversion/hub/types/format-envelope.js +0 -1
  509. package/vendor/llmswitch-core/dist/conversion/hub/types/index.d.ts +0 -6
  510. package/vendor/llmswitch-core/dist/conversion/hub/types/index.js +0 -6
  511. package/vendor/llmswitch-core/dist/conversion/hub/types/json.d.ts +0 -9
  512. package/vendor/llmswitch-core/dist/conversion/hub/types/json.js +0 -9
  513. package/vendor/llmswitch-core/dist/conversion/hub/types/node.d.ts +0 -31
  514. package/vendor/llmswitch-core/dist/conversion/hub/types/node.js +0 -1
  515. package/vendor/llmswitch-core/dist/conversion/hub/types/standardized.d.ts +0 -99
  516. package/vendor/llmswitch-core/dist/conversion/hub/types/standardized.js +0 -1
  517. package/vendor/llmswitch-core/dist/conversion/index.d.ts +0 -33
  518. package/vendor/llmswitch-core/dist/conversion/index.js +0 -33
  519. package/vendor/llmswitch-core/dist/conversion/jsonish.d.ts +0 -3
  520. package/vendor/llmswitch-core/dist/conversion/jsonish.js +0 -20
  521. package/vendor/llmswitch-core/dist/conversion/mcp-injection.d.ts +0 -2
  522. package/vendor/llmswitch-core/dist/conversion/mcp-injection.js +0 -7
  523. package/vendor/llmswitch-core/dist/conversion/media.d.ts +0 -1
  524. package/vendor/llmswitch-core/dist/conversion/media.js +0 -4
  525. package/vendor/llmswitch-core/dist/conversion/metadata-passthrough.d.ts +0 -11
  526. package/vendor/llmswitch-core/dist/conversion/metadata-passthrough.js +0 -20
  527. package/vendor/llmswitch-core/dist/conversion/payload-budget.d.ts +0 -13
  528. package/vendor/llmswitch-core/dist/conversion/payload-budget.js +0 -47
  529. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/anthropic-openai-pipeline.d.ts +0 -11
  530. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/anthropic-openai-pipeline.js +0 -104
  531. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/openai-openai-pipeline.d.ts +0 -15
  532. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/openai-openai-pipeline.js +0 -176
  533. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/responses-openai-pipeline.d.ts +0 -12
  534. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/responses-openai-pipeline.js +0 -212
  535. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/shared/openai-chat-helpers.d.ts +0 -13
  536. package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/shared/openai-chat-helpers.js +0 -34
  537. package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/adapter-context.d.ts +0 -7
  538. package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/adapter-context.js +0 -18
  539. package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/protocol-hooks.d.ts +0 -67
  540. package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/protocol-hooks.js +0 -1
  541. package/vendor/llmswitch-core/dist/conversion/pipeline/index.d.ts +0 -35
  542. package/vendor/llmswitch-core/dist/conversion/pipeline/index.js +0 -103
  543. package/vendor/llmswitch-core/dist/conversion/pipeline/meta/meta-bag.d.ts +0 -20
  544. package/vendor/llmswitch-core/dist/conversion/pipeline/meta/meta-bag.js +0 -81
  545. package/vendor/llmswitch-core/dist/conversion/pipeline/schema/canonical-chat.d.ts +0 -18
  546. package/vendor/llmswitch-core/dist/conversion/pipeline/schema/canonical-chat.js +0 -1
  547. package/vendor/llmswitch-core/dist/conversion/pipeline/schema/index.d.ts +0 -1
  548. package/vendor/llmswitch-core/dist/conversion/pipeline/schema/index.js +0 -1
  549. package/vendor/llmswitch-core/dist/conversion/protocol-field-allowlists.d.ts +0 -7
  550. package/vendor/llmswitch-core/dist/conversion/protocol-field-allowlists.js +0 -9
  551. package/vendor/llmswitch-core/dist/conversion/protocol-state.d.ts +0 -4
  552. package/vendor/llmswitch-core/dist/conversion/protocol-state.js +0 -27
  553. package/vendor/llmswitch-core/dist/conversion/provider-protocol-error.d.ts +0 -17
  554. package/vendor/llmswitch-core/dist/conversion/provider-protocol-error.js +0 -25
  555. package/vendor/llmswitch-core/dist/conversion/responses/responses-host-policy.d.ts +0 -6
  556. package/vendor/llmswitch-core/dist/conversion/responses/responses-host-policy.js +0 -4
  557. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/response-payload.d.ts +0 -3
  558. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/response-payload.js +0 -190
  559. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/types.d.ts +0 -35
  560. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/types.js +0 -1
  561. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge.d.ts +0 -15
  562. package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge.js +0 -475
  563. package/vendor/llmswitch-core/dist/conversion/runtime-metadata.d.ts +0 -7
  564. package/vendor/llmswitch-core/dist/conversion/runtime-metadata.js +0 -31
  565. package/vendor/llmswitch-core/dist/conversion/schema-validator.d.ts +0 -7
  566. package/vendor/llmswitch-core/dist/conversion/schema-validator.js +0 -67
  567. package/vendor/llmswitch-core/dist/conversion/shared/anthropic-message-utils.d.ts +0 -22
  568. package/vendor/llmswitch-core/dist/conversion/shared/anthropic-message-utils.js +0 -1416
  569. package/vendor/llmswitch-core/dist/conversion/shared/chat-envelope-validator.d.ts +0 -8
  570. package/vendor/llmswitch-core/dist/conversion/shared/chat-envelope-validator.js +0 -4
  571. package/vendor/llmswitch-core/dist/conversion/shared/chat-output-normalizer.d.ts +0 -4
  572. package/vendor/llmswitch-core/dist/conversion/shared/chat-output-normalizer.js +0 -10
  573. package/vendor/llmswitch-core/dist/conversion/shared/chat-request-filters.d.ts +0 -8
  574. package/vendor/llmswitch-core/dist/conversion/shared/chat-request-filters.js +0 -63
  575. package/vendor/llmswitch-core/dist/conversion/shared/gemini-tool-utils.d.ts +0 -7
  576. package/vendor/llmswitch-core/dist/conversion/shared/gemini-tool-utils.js +0 -20
  577. package/vendor/llmswitch-core/dist/conversion/shared/openai-finalizer.d.ts +0 -8
  578. package/vendor/llmswitch-core/dist/conversion/shared/openai-finalizer.js +0 -22
  579. package/vendor/llmswitch-core/dist/conversion/shared/openai-message-normalize.d.ts +0 -1
  580. package/vendor/llmswitch-core/dist/conversion/shared/openai-message-normalize.js +0 -151
  581. package/vendor/llmswitch-core/dist/conversion/shared/output-content-normalizer.d.ts +0 -12
  582. package/vendor/llmswitch-core/dist/conversion/shared/output-content-normalizer.js +0 -26
  583. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-mapping.d.ts +0 -5
  584. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-mapping.js +0 -7
  585. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-normalizer.d.ts +0 -25
  586. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-normalizer.js +0 -114
  587. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-normalizer.d.ts +0 -12
  588. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-normalizer.js +0 -22
  589. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-parser.d.ts +0 -10
  590. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-parser.js +0 -11
  591. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-utils.d.ts +0 -2
  592. package/vendor/llmswitch-core/dist/conversion/shared/reasoning-utils.js +0 -19
  593. package/vendor/llmswitch-core/dist/conversion/shared/responses-conversation-store.d.ts +0 -35
  594. package/vendor/llmswitch-core/dist/conversion/shared/responses-conversation-store.js +0 -195
  595. package/vendor/llmswitch-core/dist/conversion/shared/responses-output-builder.d.ts +0 -13
  596. package/vendor/llmswitch-core/dist/conversion/shared/responses-output-builder.js +0 -32
  597. package/vendor/llmswitch-core/dist/conversion/shared/responses-reasoning-registry.d.ts +0 -24
  598. package/vendor/llmswitch-core/dist/conversion/shared/responses-reasoning-registry.js +0 -185
  599. package/vendor/llmswitch-core/dist/conversion/shared/responses-request-adapter.d.ts +0 -7
  600. package/vendor/llmswitch-core/dist/conversion/shared/responses-request-adapter.js +0 -14
  601. package/vendor/llmswitch-core/dist/conversion/shared/responses-response-utils.d.ts +0 -3
  602. package/vendor/llmswitch-core/dist/conversion/shared/responses-response-utils.js +0 -254
  603. package/vendor/llmswitch-core/dist/conversion/shared/responses-tool-utils.d.ts +0 -14
  604. package/vendor/llmswitch-core/dist/conversion/shared/responses-tool-utils.js +0 -102
  605. package/vendor/llmswitch-core/dist/conversion/shared/streaming-text-extractor.d.ts +0 -19
  606. package/vendor/llmswitch-core/dist/conversion/shared/streaming-text-extractor.js +0 -39
  607. package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer/normalize.d.ts +0 -2
  608. package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer/normalize.js +0 -116
  609. package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer.d.ts +0 -4
  610. package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer.js +0 -3
  611. package/vendor/llmswitch-core/dist/conversion/shared/thought-signature-validator.d.ts +0 -52
  612. package/vendor/llmswitch-core/dist/conversion/shared/thought-signature-validator.js +0 -58
  613. package/vendor/llmswitch-core/dist/conversion/shared/tool-argument-repairer.d.ts +0 -39
  614. package/vendor/llmswitch-core/dist/conversion/shared/tool-argument-repairer.js +0 -53
  615. package/vendor/llmswitch-core/dist/conversion/shared/tool-call-id-manager.d.ts +0 -109
  616. package/vendor/llmswitch-core/dist/conversion/shared/tool-call-id-manager.js +0 -202
  617. package/vendor/llmswitch-core/dist/conversion/shared/tool-call-utils.d.ts +0 -11
  618. package/vendor/llmswitch-core/dist/conversion/shared/tool-call-utils.js +0 -14
  619. package/vendor/llmswitch-core/dist/conversion/shared/tool-filter-pipeline.d.ts +0 -21
  620. package/vendor/llmswitch-core/dist/conversion/shared/tool-filter-pipeline.js +0 -171
  621. package/vendor/llmswitch-core/dist/conversion/shared/tool-governor.d.ts +0 -29
  622. package/vendor/llmswitch-core/dist/conversion/shared/tool-governor.js +0 -694
  623. package/vendor/llmswitch-core/dist/conversion/shared/tool-harvester.d.ts +0 -31
  624. package/vendor/llmswitch-core/dist/conversion/shared/tool-harvester.js +0 -23
  625. package/vendor/llmswitch-core/dist/conversion/shared/tool-mapping.d.ts +0 -19
  626. package/vendor/llmswitch-core/dist/conversion/shared/tool-mapping.js +0 -65
  627. package/vendor/llmswitch-core/dist/conversion/shared/tooling.d.ts +0 -29
  628. package/vendor/llmswitch-core/dist/conversion/shared/tooling.js +0 -57
  629. package/vendor/llmswitch-core/dist/conversion/snapshot-utils.d.ts +0 -31
  630. package/vendor/llmswitch-core/dist/conversion/snapshot-utils.js +0 -49
  631. package/vendor/llmswitch-core/dist/conversion/types/bridge-message-types.d.ts +0 -41
  632. package/vendor/llmswitch-core/dist/conversion/types/bridge-message-types.js +0 -1
  633. package/vendor/llmswitch-core/dist/conversion/types/text-markup-normalizer.d.ts +0 -13
  634. package/vendor/llmswitch-core/dist/conversion/types/text-markup-normalizer.js +0 -1
  635. package/vendor/llmswitch-core/dist/conversion/types.d.ts +0 -33
  636. package/vendor/llmswitch-core/dist/conversion/types.js +0 -1
  637. package/vendor/llmswitch-core/dist/filters/builtin/add-fields-filter.d.ts +0 -8
  638. package/vendor/llmswitch-core/dist/filters/builtin/add-fields-filter.js +0 -16
  639. package/vendor/llmswitch-core/dist/filters/builtin/blacklist-filter.d.ts +0 -8
  640. package/vendor/llmswitch-core/dist/filters/builtin/blacklist-filter.js +0 -19
  641. package/vendor/llmswitch-core/dist/filters/builtin/whitelist-filter.d.ts +0 -8
  642. package/vendor/llmswitch-core/dist/filters/builtin/whitelist-filter.js +0 -19
  643. package/vendor/llmswitch-core/dist/filters/config/openai-openai.fieldmap.json +0 -18
  644. package/vendor/llmswitch-core/dist/filters/engine.d.ts +0 -16
  645. package/vendor/llmswitch-core/dist/filters/engine.js +0 -167
  646. package/vendor/llmswitch-core/dist/filters/index.d.ts +0 -18
  647. package/vendor/llmswitch-core/dist/filters/index.js +0 -22
  648. package/vendor/llmswitch-core/dist/filters/special/request-tool-choice-policy.d.ts +0 -11
  649. package/vendor/llmswitch-core/dist/filters/special/request-tool-choice-policy.js +0 -29
  650. package/vendor/llmswitch-core/dist/filters/special/request-tool-list-filter.d.ts +0 -11
  651. package/vendor/llmswitch-core/dist/filters/special/request-tool-list-filter.js +0 -322
  652. package/vendor/llmswitch-core/dist/filters/special/request-toolcalls-stringify.d.ts +0 -13
  653. package/vendor/llmswitch-core/dist/filters/special/request-toolcalls-stringify.js +0 -94
  654. package/vendor/llmswitch-core/dist/filters/special/request-tools-normalize.d.ts +0 -11
  655. package/vendor/llmswitch-core/dist/filters/special/request-tools-normalize.js +0 -114
  656. package/vendor/llmswitch-core/dist/filters/special/response-finish-invariants.d.ts +0 -11
  657. package/vendor/llmswitch-core/dist/filters/special/response-finish-invariants.js +0 -30
  658. package/vendor/llmswitch-core/dist/filters/special/response-openai-to-responses-bridge.d.ts +0 -13
  659. package/vendor/llmswitch-core/dist/filters/special/response-openai-to-responses-bridge.js +0 -24
  660. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-blacklist.d.ts +0 -12
  661. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-blacklist.js +0 -63
  662. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-schema-converge.d.ts +0 -13
  663. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-schema-converge.js +0 -63
  664. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-stringify.d.ts +0 -9
  665. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-stringify.js +0 -132
  666. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-whitelist.d.ts +0 -11
  667. package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-whitelist.js +0 -56
  668. package/vendor/llmswitch-core/dist/filters/special/response-tool-text-canonicalize.d.ts +0 -13
  669. package/vendor/llmswitch-core/dist/filters/special/response-tool-text-canonicalize.js +0 -16
  670. package/vendor/llmswitch-core/dist/filters/special/tool-filter-hooks.d.ts +0 -19
  671. package/vendor/llmswitch-core/dist/filters/special/tool-filter-hooks.js +0 -394
  672. package/vendor/llmswitch-core/dist/filters/special/tool-post-constraints.d.ts +0 -31
  673. package/vendor/llmswitch-core/dist/filters/special/tool-post-constraints.js +0 -120
  674. package/vendor/llmswitch-core/dist/filters/types.d.ts +0 -68
  675. package/vendor/llmswitch-core/dist/filters/types.js +0 -3
  676. package/vendor/llmswitch-core/dist/filters/utils/fieldmap-loader.d.ts +0 -2
  677. package/vendor/llmswitch-core/dist/filters/utils/fieldmap-loader.js +0 -16
  678. package/vendor/llmswitch-core/dist/filters/utils/snapshot-writer.d.ts +0 -10
  679. package/vendor/llmswitch-core/dist/filters/utils/snapshot-writer.js +0 -85
  680. package/vendor/llmswitch-core/dist/guidance/index.d.ts +0 -3
  681. package/vendor/llmswitch-core/dist/guidance/index.js +0 -299
  682. package/vendor/llmswitch-core/dist/http/sse-response.d.ts +0 -22
  683. package/vendor/llmswitch-core/dist/http/sse-response.js +0 -103
  684. package/vendor/llmswitch-core/dist/index.d.ts +0 -11
  685. package/vendor/llmswitch-core/dist/index.js +0 -11
  686. package/vendor/llmswitch-core/dist/native/router_hotpath_napi.node +0 -0
  687. package/vendor/llmswitch-core/dist/quota/apikey-reset.d.ts +0 -17
  688. package/vendor/llmswitch-core/dist/quota/apikey-reset.js +0 -43
  689. package/vendor/llmswitch-core/dist/quota/index.d.ts +0 -2
  690. package/vendor/llmswitch-core/dist/quota/index.js +0 -1
  691. package/vendor/llmswitch-core/dist/quota/quota-manager.d.ts +0 -44
  692. package/vendor/llmswitch-core/dist/quota/quota-manager.js +0 -463
  693. package/vendor/llmswitch-core/dist/quota/quota-state.d.ts +0 -6
  694. package/vendor/llmswitch-core/dist/quota/quota-state.js +0 -191
  695. package/vendor/llmswitch-core/dist/quota/types.d.ts +0 -62
  696. package/vendor/llmswitch-core/dist/quota/types.js +0 -1
  697. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/auth-utils.d.ts +0 -6
  698. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/auth-utils.js +0 -288
  699. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/claude-code-helpers.d.ts +0 -11
  700. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/claude-code-helpers.js +0 -18
  701. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-defaults.d.ts +0 -5
  702. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-defaults.js +0 -13
  703. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-normalizers.d.ts +0 -4
  704. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-normalizers.js +0 -106
  705. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/profile-builder.d.ts +0 -8
  706. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/profile-builder.js +0 -87
  707. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/provider-normalization.d.ts +0 -44
  708. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/provider-normalization.js +0 -272
  709. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/responses-helpers.d.ts +0 -15
  710. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/responses-helpers.js +0 -65
  711. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/routing-config.d.ts +0 -24
  712. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/routing-config.js +0 -346
  713. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/streaming-helpers.d.ts +0 -19
  714. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/streaming-helpers.js +0 -172
  715. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/utils.d.ts +0 -5
  716. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/utils.js +0 -41
  717. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/web-search-config.d.ts +0 -4
  718. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/web-search-config.js +0 -156
  719. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap.d.ts +0 -2
  720. package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap.js +0 -329
  721. package/vendor/llmswitch-core/dist/router/virtual-router/classifier.d.ts +0 -10
  722. package/vendor/llmswitch-core/dist/router/virtual-router/classifier.js +0 -187
  723. package/vendor/llmswitch-core/dist/router/virtual-router/context-advisor.d.ts +0 -23
  724. package/vendor/llmswitch-core/dist/router/virtual-router/context-advisor.js +0 -67
  725. package/vendor/llmswitch-core/dist/router/virtual-router/context-weighted.d.ts +0 -31
  726. package/vendor/llmswitch-core/dist/router/virtual-router/context-weighted.js +0 -54
  727. package/vendor/llmswitch-core/dist/router/virtual-router/default-thinking-keywords.d.ts +0 -1
  728. package/vendor/llmswitch-core/dist/router/virtual-router/default-thinking-keywords.js +0 -13
  729. package/vendor/llmswitch-core/dist/router/virtual-router/engine/antigravity/alias-lease.d.ts +0 -33
  730. package/vendor/llmswitch-core/dist/router/virtual-router/engine/antigravity/alias-lease.js +0 -257
  731. package/vendor/llmswitch-core/dist/router/virtual-router/engine/cooldown-manager.d.ts +0 -34
  732. package/vendor/llmswitch-core/dist/router/virtual-router/engine/cooldown-manager.js +0 -118
  733. package/vendor/llmswitch-core/dist/router/virtual-router/engine/health/index.d.ts +0 -23
  734. package/vendor/llmswitch-core/dist/router/virtual-router/engine/health/index.js +0 -724
  735. package/vendor/llmswitch-core/dist/router/virtual-router/engine/provider-key/parse.d.ts +0 -1
  736. package/vendor/llmswitch-core/dist/router/virtual-router/engine/provider-key/parse.js +0 -1
  737. package/vendor/llmswitch-core/dist/router/virtual-router/engine/route-analytics.d.ts +0 -28
  738. package/vendor/llmswitch-core/dist/router/virtual-router/engine/route-analytics.js +0 -44
  739. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-pools/index.d.ts +0 -13
  740. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-pools/index.js +0 -386
  741. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/keys.d.ts +0 -3
  742. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/keys.js +0 -30
  743. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/metadata.d.ts +0 -6
  744. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/metadata.js +0 -132
  745. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/store.d.ts +0 -10
  746. package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/store.js +0 -156
  747. package/vendor/llmswitch-core/dist/router/virtual-router/engine/sticky-session-manager.d.ts +0 -29
  748. package/vendor/llmswitch-core/dist/router/virtual-router/engine/sticky-session-manager.js +0 -55
  749. package/vendor/llmswitch-core/dist/router/virtual-router/engine-health.d.ts +0 -1
  750. package/vendor/llmswitch-core/dist/router/virtual-router/engine-health.js +0 -1
  751. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/config.d.ts +0 -11
  752. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/config.js +0 -108
  753. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/direct-model.d.ts +0 -10
  754. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/direct-model.js +0 -38
  755. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/health.d.ts +0 -13
  756. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/health.js +0 -104
  757. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/helpers.d.ts +0 -16
  758. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/helpers.js +0 -226
  759. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/route-utils.d.ts +0 -19
  760. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/route-utils.js +0 -212
  761. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-core.d.ts +0 -28
  762. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-core.js +0 -112
  763. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-state.d.ts +0 -16
  764. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-state.js +0 -187
  765. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/state-accessors.d.ts +0 -21
  766. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/state-accessors.js +0 -118
  767. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy.d.ts +0 -123
  768. package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy.js +0 -245
  769. package/vendor/llmswitch-core/dist/router/virtual-router/engine-logging.d.ts +0 -67
  770. package/vendor/llmswitch-core/dist/router/virtual-router/engine-logging.js +0 -356
  771. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/alias-selection.d.ts +0 -15
  772. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/alias-selection.js +0 -118
  773. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/context-weight-multipliers.d.ts +0 -11
  774. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/context-weight-multipliers.js +0 -23
  775. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/direct-provider-model.d.ts +0 -9
  776. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/direct-provider-model.js +0 -49
  777. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/instruction-target.d.ts +0 -6
  778. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/instruction-target.js +0 -54
  779. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/key-parsing.d.ts +0 -8
  780. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/key-parsing.js +0 -47
  781. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/multimodal-capability.d.ts +0 -3
  782. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/multimodal-capability.js +0 -26
  783. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-directive-parser.d.ts +0 -24
  784. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-directive-parser.js +0 -209
  785. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-directives.d.ts +0 -7
  786. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-directives.js +0 -121
  787. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-orchestration-semantics.d.ts +0 -10
  788. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-orchestration-semantics.js +0 -110
  789. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-semantics.d.ts +0 -8
  790. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-semantics.js +0 -281
  791. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-time-tag-semantics.d.ts +0 -1
  792. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-time-tag-semantics.js +0 -25
  793. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminders-semantics.d.ts +0 -4
  794. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminders-semantics.js +0 -44
  795. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-tool-schema-semantics.d.ts +0 -2
  796. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-tool-schema-semantics.js +0 -62
  797. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governance-semantics.d.ts +0 -49
  798. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governance-semantics.js +0 -552
  799. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governed-filter-semantics.d.ts +0 -9
  800. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governed-filter-semantics.js +0 -64
  801. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-node-result-semantics.d.ts +0 -5
  802. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-node-result-semantics.js +0 -163
  803. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-post-governed-normalization-semantics.d.ts +0 -1
  804. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-post-governed-normalization-semantics.js +0 -49
  805. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-servertool-orchestration-semantics.d.ts +0 -30
  806. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-servertool-orchestration-semantics.js +0 -446
  807. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-web-search-intent-semantics.d.ts +0 -1
  808. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-web-search-intent-semantics.js +0 -49
  809. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-request-filter-semantics.d.ts +0 -1
  810. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-request-filter-semantics.js +0 -54
  811. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-compat-action-semantics.d.ts +0 -22
  812. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-compat-action-semantics.js +0 -559
  813. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-deepseek-web-compat.d.ts +0 -17
  814. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-deepseek-web-compat.js +0 -26
  815. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-action-semantics.d.ts +0 -276
  816. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-action-semantics.js +0 -1291
  817. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-policy-semantics.d.ts +0 -72
  818. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-policy-semantics.js +0 -405
  819. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-edge-stage-semantics.d.ts +0 -18
  820. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-edge-stage-semantics.js +0 -333
  821. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-governance-semantics.d.ts +0 -30
  822. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-governance-semantics.js +0 -202
  823. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-inbound-outbound-semantics.d.ts +0 -22
  824. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-inbound-outbound-semantics.js +0 -426
  825. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-orchestration-semantics.d.ts +0 -57
  826. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-orchestration-semantics.js +0 -705
  827. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.d.ts +0 -53
  828. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.js +0 -598
  829. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-outbound-semantics.d.ts +0 -147
  830. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-outbound-semantics.js +0 -570
  831. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-process-semantics.d.ts +0 -26
  832. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-process-semantics.js +0 -148
  833. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-resp-semantics.d.ts +0 -46
  834. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-resp-semantics.js +0 -755
  835. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-semantic-mappers.d.ts +0 -2
  836. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-semantic-mappers.js +0 -83
  837. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-session-identifiers-semantics.d.ts +0 -11
  838. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-session-identifiers-semantics.js +0 -207
  839. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-target-semantics.d.ts +0 -3
  840. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-target-semantics.js +0 -128
  841. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-analysis.d.ts +0 -57
  842. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-analysis.js +0 -217
  843. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-loader.d.ts +0 -5
  844. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-loader.js +0 -464
  845. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-policy.d.ts +0 -5
  846. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-policy.js +0 -18
  847. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-quota-buckets.d.ts +0 -25
  848. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-quota-buckets.js +0 -85
  849. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath.d.ts +0 -59
  850. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath.js +0 -117
  851. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-shared-conversion-semantics.d.ts +0 -243
  852. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-shared-conversion-semantics.js +0 -2594
  853. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-snapshot-hooks.d.ts +0 -3
  854. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-snapshot-hooks.js +0 -109
  855. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-alias-selection-semantics.d.ts +0 -16
  856. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-alias-selection-semantics.js +0 -96
  857. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-engine-proxy.d.ts +0 -16
  858. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-engine-proxy.js +0 -14
  859. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-routing-instructions-semantics.d.ts +0 -3
  860. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-routing-instructions-semantics.js +0 -123
  861. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-actions-semantics.d.ts +0 -6
  862. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-actions-semantics.js +0 -85
  863. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-semantics.d.ts +0 -9
  864. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-semantics.js +0 -70
  865. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-state-semantics.d.ts +0 -2
  866. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-state-semantics.js +0 -76
  867. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/route-utils.d.ts +0 -15
  868. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/route-utils.js +0 -248
  869. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/routing-state-filter.d.ts +0 -4
  870. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/routing-state-filter.js +0 -50
  871. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/selection-deps.d.ts +0 -58
  872. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/selection-deps.js +0 -1
  873. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/sticky-pool.d.ts +0 -11
  874. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/sticky-pool.js +0 -109
  875. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-load-balancing.d.ts +0 -16
  876. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-load-balancing.js +0 -120
  877. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-priority.d.ts +0 -11
  878. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-priority.js +0 -55
  879. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-session-lease.d.ts +0 -10
  880. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-session-lease.js +0 -231
  881. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-target-split.d.ts +0 -4
  882. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-target-split.js +0 -43
  883. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-quota-integration.d.ts +0 -29
  884. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-quota-integration.js +0 -194
  885. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-select.d.ts +0 -22
  886. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-select.js +0 -352
  887. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection.d.ts +0 -3
  888. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection.js +0 -309
  889. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection.d.ts +0 -1
  890. package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection.js +0 -1
  891. package/vendor/llmswitch-core/dist/router/virtual-router/engine.d.ts +0 -43
  892. package/vendor/llmswitch-core/dist/router/virtual-router/engine.js +0 -360
  893. package/vendor/llmswitch-core/dist/router/virtual-router/error-center.d.ts +0 -10
  894. package/vendor/llmswitch-core/dist/router/virtual-router/error-center.js +0 -39
  895. package/vendor/llmswitch-core/dist/router/virtual-router/features.d.ts +0 -3
  896. package/vendor/llmswitch-core/dist/router/virtual-router/features.js +0 -124
  897. package/vendor/llmswitch-core/dist/router/virtual-router/health-manager.d.ts +0 -23
  898. package/vendor/llmswitch-core/dist/router/virtual-router/health-manager.js +0 -107
  899. package/vendor/llmswitch-core/dist/router/virtual-router/health-weighted.d.ts +0 -25
  900. package/vendor/llmswitch-core/dist/router/virtual-router/health-weighted.js +0 -63
  901. package/vendor/llmswitch-core/dist/router/virtual-router/load-balancer.d.ts +0 -28
  902. package/vendor/llmswitch-core/dist/router/virtual-router/load-balancer.js +0 -160
  903. package/vendor/llmswitch-core/dist/router/virtual-router/message-utils.d.ts +0 -15
  904. package/vendor/llmswitch-core/dist/router/virtual-router/message-utils.js +0 -235
  905. package/vendor/llmswitch-core/dist/router/virtual-router/pre-command-file-resolver.d.ts +0 -2
  906. package/vendor/llmswitch-core/dist/router/virtual-router/pre-command-file-resolver.js +0 -117
  907. package/vendor/llmswitch-core/dist/router/virtual-router/provider-registry.d.ts +0 -17
  908. package/vendor/llmswitch-core/dist/router/virtual-router/provider-registry.js +0 -145
  909. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/clean.d.ts +0 -3
  910. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/clean.js +0 -34
  911. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/parse.d.ts +0 -6
  912. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/parse.js +0 -24
  913. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/state.d.ts +0 -4
  914. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/state.js +0 -284
  915. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/types.d.ts +0 -74
  916. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/types.js +0 -2
  917. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions.d.ts +0 -5
  918. package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions.js +0 -4
  919. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-actions.d.ts +0 -3
  920. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-actions.js +0 -26
  921. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-parser.d.ts +0 -2
  922. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-parser.js +0 -85
  923. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-state-codec.d.ts +0 -3
  924. package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-state-codec.js +0 -24
  925. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-actions.d.ts +0 -2
  926. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-actions.js +0 -99
  927. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-parser.d.ts +0 -3
  928. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-parser.js +0 -19
  929. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-state-codec.d.ts +0 -7
  930. package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-state-codec.js +0 -121
  931. package/vendor/llmswitch-core/dist/router/virtual-router/sticky-session-store.d.ts +0 -8
  932. package/vendor/llmswitch-core/dist/router/virtual-router/sticky-session-store.js +0 -296
  933. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-file-resolver.d.ts +0 -2
  934. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-file-resolver.js +0 -76
  935. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-stage-template-files.d.ts +0 -12
  936. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-stage-template-files.js +0 -67
  937. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-state-sync.d.ts +0 -17
  938. package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-state-sync.js +0 -82
  939. package/vendor/llmswitch-core/dist/router/virtual-router/success-center.d.ts +0 -10
  940. package/vendor/llmswitch-core/dist/router/virtual-router/success-center.js +0 -32
  941. package/vendor/llmswitch-core/dist/router/virtual-router/token-counter.d.ts +0 -2
  942. package/vendor/llmswitch-core/dist/router/virtual-router/token-counter.js +0 -148
  943. package/vendor/llmswitch-core/dist/router/virtual-router/token-estimator.d.ts +0 -2
  944. package/vendor/llmswitch-core/dist/router/virtual-router/token-estimator.js +0 -16
  945. package/vendor/llmswitch-core/dist/router/virtual-router/token-file-scanner.d.ts +0 -24
  946. package/vendor/llmswitch-core/dist/router/virtual-router/token-file-scanner.js +0 -117
  947. package/vendor/llmswitch-core/dist/router/virtual-router/tool-signals.d.ts +0 -19
  948. package/vendor/llmswitch-core/dist/router/virtual-router/tool-signals.js +0 -647
  949. package/vendor/llmswitch-core/dist/router/virtual-router/types.d.ts +0 -681
  950. package/vendor/llmswitch-core/dist/router/virtual-router/types.js +0 -34
  951. package/vendor/llmswitch-core/dist/runtime/user-data-paths.d.ts +0 -5
  952. package/vendor/llmswitch-core/dist/runtime/user-data-paths.js +0 -43
  953. package/vendor/llmswitch-core/dist/servertool/clock/config.d.ts +0 -17
  954. package/vendor/llmswitch-core/dist/servertool/clock/config.js +0 -48
  955. package/vendor/llmswitch-core/dist/servertool/clock/daemon.d.ts +0 -24
  956. package/vendor/llmswitch-core/dist/servertool/clock/daemon.js +0 -207
  957. package/vendor/llmswitch-core/dist/servertool/clock/io.d.ts +0 -2
  958. package/vendor/llmswitch-core/dist/servertool/clock/io.js +0 -14
  959. package/vendor/llmswitch-core/dist/servertool/clock/log.d.ts +0 -3
  960. package/vendor/llmswitch-core/dist/servertool/clock/log.js +0 -13
  961. package/vendor/llmswitch-core/dist/servertool/clock/ntp.d.ts +0 -18
  962. package/vendor/llmswitch-core/dist/servertool/clock/ntp.js +0 -318
  963. package/vendor/llmswitch-core/dist/servertool/clock/paths.d.ts +0 -5
  964. package/vendor/llmswitch-core/dist/servertool/clock/paths.js +0 -28
  965. package/vendor/llmswitch-core/dist/servertool/clock/recurrence.d.ts +0 -7
  966. package/vendor/llmswitch-core/dist/servertool/clock/recurrence.js +0 -248
  967. package/vendor/llmswitch-core/dist/servertool/clock/session-scope.d.ts +0 -3
  968. package/vendor/llmswitch-core/dist/servertool/clock/session-scope.js +0 -41
  969. package/vendor/llmswitch-core/dist/servertool/clock/session-store.d.ts +0 -3
  970. package/vendor/llmswitch-core/dist/servertool/clock/session-store.js +0 -63
  971. package/vendor/llmswitch-core/dist/servertool/clock/state.d.ts +0 -9
  972. package/vendor/llmswitch-core/dist/servertool/clock/state.js +0 -135
  973. package/vendor/llmswitch-core/dist/servertool/clock/task-store.d.ts +0 -5
  974. package/vendor/llmswitch-core/dist/servertool/clock/task-store.js +0 -4
  975. package/vendor/llmswitch-core/dist/servertool/clock/tasks.d.ts +0 -24
  976. package/vendor/llmswitch-core/dist/servertool/clock/tasks.js +0 -595
  977. package/vendor/llmswitch-core/dist/servertool/clock/types.d.ts +0 -98
  978. package/vendor/llmswitch-core/dist/servertool/clock/types.js +0 -1
  979. package/vendor/llmswitch-core/dist/servertool/continue-execution/log.d.ts +0 -3
  980. package/vendor/llmswitch-core/dist/servertool/continue-execution/log.js +0 -13
  981. package/vendor/llmswitch-core/dist/servertool/engine.d.ts +0 -38
  982. package/vendor/llmswitch-core/dist/servertool/engine.js +0 -1660
  983. package/vendor/llmswitch-core/dist/servertool/followup-shadow.d.ts +0 -16
  984. package/vendor/llmswitch-core/dist/servertool/followup-shadow.js +0 -145
  985. package/vendor/llmswitch-core/dist/servertool/handlers/antigravity-thought-signature-bootstrap.d.ts +0 -1
  986. package/vendor/llmswitch-core/dist/servertool/handlers/antigravity-thought-signature-bootstrap.js +0 -225
  987. package/vendor/llmswitch-core/dist/servertool/handlers/apply-patch-guard.d.ts +0 -1
  988. package/vendor/llmswitch-core/dist/servertool/handlers/apply-patch-guard.js +0 -5
  989. package/vendor/llmswitch-core/dist/servertool/handlers/clock-auto.d.ts +0 -1
  990. package/vendor/llmswitch-core/dist/servertool/handlers/clock-auto.js +0 -177
  991. package/vendor/llmswitch-core/dist/servertool/handlers/clock.d.ts +0 -1
  992. package/vendor/llmswitch-core/dist/servertool/handlers/clock.js +0 -544
  993. package/vendor/llmswitch-core/dist/servertool/handlers/compaction-detect.d.ts +0 -1
  994. package/vendor/llmswitch-core/dist/servertool/handlers/compaction-detect.js +0 -1
  995. package/vendor/llmswitch-core/dist/servertool/handlers/continue-execution.d.ts +0 -1
  996. package/vendor/llmswitch-core/dist/servertool/handlers/continue-execution.js +0 -110
  997. package/vendor/llmswitch-core/dist/servertool/handlers/exec-command-guard.d.ts +0 -1
  998. package/vendor/llmswitch-core/dist/servertool/handlers/exec-command-guard.js +0 -10
  999. package/vendor/llmswitch-core/dist/servertool/handlers/followup-message-trimmer.d.ts +0 -16
  1000. package/vendor/llmswitch-core/dist/servertool/handlers/followup-message-trimmer.js +0 -198
  1001. package/vendor/llmswitch-core/dist/servertool/handlers/followup-request-builder.d.ts +0 -25
  1002. package/vendor/llmswitch-core/dist/servertool/handlers/followup-request-builder.js +0 -515
  1003. package/vendor/llmswitch-core/dist/servertool/handlers/followup-sanitize.d.ts +0 -2
  1004. package/vendor/llmswitch-core/dist/servertool/handlers/followup-sanitize.js +0 -7
  1005. package/vendor/llmswitch-core/dist/servertool/handlers/gemini-empty-reply-continue.d.ts +0 -1
  1006. package/vendor/llmswitch-core/dist/servertool/handlers/gemini-empty-reply-continue.js +0 -3
  1007. package/vendor/llmswitch-core/dist/servertool/handlers/iflow-model-error-retry.d.ts +0 -1
  1008. package/vendor/llmswitch-core/dist/servertool/handlers/iflow-model-error-retry.js +0 -92
  1009. package/vendor/llmswitch-core/dist/servertool/handlers/recursive-detection-guard.d.ts +0 -1
  1010. package/vendor/llmswitch-core/dist/servertool/handlers/recursive-detection-guard.js +0 -374
  1011. package/vendor/llmswitch-core/dist/servertool/handlers/review.d.ts +0 -1
  1012. package/vendor/llmswitch-core/dist/servertool/handlers/review.js +0 -181
  1013. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/blocked-report.d.ts +0 -16
  1014. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/blocked-report.js +0 -407
  1015. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/iflow-followup.d.ts +0 -44
  1016. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/iflow-followup.js +0 -816
  1017. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/routing-state.d.ts +0 -28
  1018. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/routing-state.js +0 -123
  1019. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/runtime-utils.d.ts +0 -81
  1020. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/runtime-utils.js +0 -355
  1021. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto.d.ts +0 -1
  1022. package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto.js +0 -553
  1023. package/vendor/llmswitch-core/dist/servertool/handlers/vision.d.ts +0 -7
  1024. package/vendor/llmswitch-core/dist/servertool/handlers/vision.js +0 -240
  1025. package/vendor/llmswitch-core/dist/servertool/handlers/web-search.d.ts +0 -7
  1026. package/vendor/llmswitch-core/dist/servertool/handlers/web-search.js +0 -926
  1027. package/vendor/llmswitch-core/dist/servertool/log/progress-file.d.ts +0 -14
  1028. package/vendor/llmswitch-core/dist/servertool/log/progress-file.js +0 -88
  1029. package/vendor/llmswitch-core/dist/servertool/pending-session.d.ts +0 -19
  1030. package/vendor/llmswitch-core/dist/servertool/pending-session.js +0 -99
  1031. package/vendor/llmswitch-core/dist/servertool/pre-command-hooks.d.ts +0 -17
  1032. package/vendor/llmswitch-core/dist/servertool/pre-command-hooks.js +0 -491
  1033. package/vendor/llmswitch-core/dist/servertool/reenter-backend.d.ts +0 -23
  1034. package/vendor/llmswitch-core/dist/servertool/reenter-backend.js +0 -20
  1035. package/vendor/llmswitch-core/dist/servertool/registry.d.ts +0 -35
  1036. package/vendor/llmswitch-core/dist/servertool/registry.js +0 -92
  1037. package/vendor/llmswitch-core/dist/servertool/server-side-tools.d.ts +0 -15
  1038. package/vendor/llmswitch-core/dist/servertool/server-side-tools.js +0 -898
  1039. package/vendor/llmswitch-core/dist/servertool/stop-gateway-context.d.ts +0 -14
  1040. package/vendor/llmswitch-core/dist/servertool/stop-gateway-context.js +0 -167
  1041. package/vendor/llmswitch-core/dist/servertool/stop-message-compare-context.d.ts +0 -24
  1042. package/vendor/llmswitch-core/dist/servertool/stop-message-compare-context.js +0 -133
  1043. package/vendor/llmswitch-core/dist/servertool/strip-servertool-calls.d.ts +0 -2
  1044. package/vendor/llmswitch-core/dist/servertool/strip-servertool-calls.js +0 -75
  1045. package/vendor/llmswitch-core/dist/servertool/types.d.ts +0 -235
  1046. package/vendor/llmswitch-core/dist/servertool/types.js +0 -1
  1047. package/vendor/llmswitch-core/dist/sse/index.d.ts +0 -176
  1048. package/vendor/llmswitch-core/dist/sse/index.js +0 -142
  1049. package/vendor/llmswitch-core/dist/sse/json-to-sse/anthropic-json-to-sse-converter.d.ts +0 -15
  1050. package/vendor/llmswitch-core/dist/sse/json-to-sse/anthropic-json-to-sse-converter.js +0 -112
  1051. package/vendor/llmswitch-core/dist/sse/json-to-sse/chat-json-to-sse-converter.d.ts +0 -80
  1052. package/vendor/llmswitch-core/dist/sse/json-to-sse/chat-json-to-sse-converter.js +0 -300
  1053. package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/chat.d.ts +0 -55
  1054. package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/chat.js +0 -233
  1055. package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/responses.d.ts +0 -103
  1056. package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/responses.js +0 -703
  1057. package/vendor/llmswitch-core/dist/sse/json-to-sse/gemini-json-to-sse-converter.d.ts +0 -15
  1058. package/vendor/llmswitch-core/dist/sse/json-to-sse/gemini-json-to-sse-converter.js +0 -99
  1059. package/vendor/llmswitch-core/dist/sse/json-to-sse/index.d.ts +0 -7
  1060. package/vendor/llmswitch-core/dist/sse/json-to-sse/index.js +0 -9
  1061. package/vendor/llmswitch-core/dist/sse/json-to-sse/responses-json-to-sse-converter.d.ts +0 -80
  1062. package/vendor/llmswitch-core/dist/sse/json-to-sse/responses-json-to-sse-converter.js +0 -322
  1063. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/anthropic-sequencer.d.ts +0 -13
  1064. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/anthropic-sequencer.js +0 -162
  1065. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/chat-sequencer.d.ts +0 -39
  1066. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/chat-sequencer.js +0 -264
  1067. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/gemini-sequencer.d.ts +0 -10
  1068. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/gemini-sequencer.js +0 -95
  1069. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/responses-sequencer.d.ts +0 -40
  1070. package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/responses-sequencer.js +0 -293
  1071. package/vendor/llmswitch-core/dist/sse/registry/sse-codec-registry.d.ts +0 -32
  1072. package/vendor/llmswitch-core/dist/sse/registry/sse-codec-registry.js +0 -135
  1073. package/vendor/llmswitch-core/dist/sse/shared/chat-serializer.d.ts +0 -4
  1074. package/vendor/llmswitch-core/dist/sse/shared/chat-serializer.js +0 -40
  1075. package/vendor/llmswitch-core/dist/sse/shared/constants.d.ts +0 -272
  1076. package/vendor/llmswitch-core/dist/sse/shared/constants.js +0 -321
  1077. package/vendor/llmswitch-core/dist/sse/shared/reasoning-dispatcher.d.ts +0 -10
  1078. package/vendor/llmswitch-core/dist/sse/shared/reasoning-dispatcher.js +0 -25
  1079. package/vendor/llmswitch-core/dist/sse/shared/responses-output-normalizer.d.ts +0 -13
  1080. package/vendor/llmswitch-core/dist/sse/shared/responses-output-normalizer.js +0 -47
  1081. package/vendor/llmswitch-core/dist/sse/shared/serializers/anthropic-event-serializer.d.ts +0 -2
  1082. package/vendor/llmswitch-core/dist/sse/shared/serializers/anthropic-event-serializer.js +0 -9
  1083. package/vendor/llmswitch-core/dist/sse/shared/serializers/base-serializer.d.ts +0 -158
  1084. package/vendor/llmswitch-core/dist/sse/shared/serializers/base-serializer.js +0 -210
  1085. package/vendor/llmswitch-core/dist/sse/shared/serializers/chat-event-serializer.d.ts +0 -82
  1086. package/vendor/llmswitch-core/dist/sse/shared/serializers/chat-event-serializer.js +0 -275
  1087. package/vendor/llmswitch-core/dist/sse/shared/serializers/gemini-event-serializer.d.ts +0 -2
  1088. package/vendor/llmswitch-core/dist/sse/shared/serializers/gemini-event-serializer.js +0 -5
  1089. package/vendor/llmswitch-core/dist/sse/shared/serializers/index.d.ts +0 -42
  1090. package/vendor/llmswitch-core/dist/sse/shared/serializers/index.js +0 -56
  1091. package/vendor/llmswitch-core/dist/sse/shared/serializers/responses-event-serializer.d.ts +0 -131
  1092. package/vendor/llmswitch-core/dist/sse/shared/serializers/responses-event-serializer.js +0 -375
  1093. package/vendor/llmswitch-core/dist/sse/shared/serializers/types.d.ts +0 -51
  1094. package/vendor/llmswitch-core/dist/sse/shared/serializers/types.js +0 -4
  1095. package/vendor/llmswitch-core/dist/sse/shared/utils.d.ts +0 -254
  1096. package/vendor/llmswitch-core/dist/sse/shared/utils.js +0 -543
  1097. package/vendor/llmswitch-core/dist/sse/shared/writer.d.ts +0 -127
  1098. package/vendor/llmswitch-core/dist/sse/shared/writer.js +0 -321
  1099. package/vendor/llmswitch-core/dist/sse/sse-to-json/anthropic-sse-to-json-converter.d.ts +0 -20
  1100. package/vendor/llmswitch-core/dist/sse/sse-to-json/anthropic-sse-to-json-converter.js +0 -204
  1101. package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/anthropic-response-builder.d.ts +0 -16
  1102. package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/anthropic-response-builder.js +0 -258
  1103. package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/response-builder.d.ts +0 -177
  1104. package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/response-builder.js +0 -1135
  1105. package/vendor/llmswitch-core/dist/sse/sse-to-json/chat-sse-to-json-converter.d.ts +0 -119
  1106. package/vendor/llmswitch-core/dist/sse/sse-to-json/chat-sse-to-json-converter.js +0 -850
  1107. package/vendor/llmswitch-core/dist/sse/sse-to-json/gemini-sse-to-json-converter.d.ts +0 -14
  1108. package/vendor/llmswitch-core/dist/sse/sse-to-json/gemini-sse-to-json-converter.js +0 -186
  1109. package/vendor/llmswitch-core/dist/sse/sse-to-json/index.d.ts +0 -7
  1110. package/vendor/llmswitch-core/dist/sse/sse-to-json/index.js +0 -9
  1111. package/vendor/llmswitch-core/dist/sse/sse-to-json/parsers/sse-parser.d.ts +0 -73
  1112. package/vendor/llmswitch-core/dist/sse/sse-to-json/parsers/sse-parser.js +0 -434
  1113. package/vendor/llmswitch-core/dist/sse/sse-to-json/responses-sse-to-json-converter.d.ts +0 -61
  1114. package/vendor/llmswitch-core/dist/sse/sse-to-json/responses-sse-to-json-converter.js +0 -306
  1115. package/vendor/llmswitch-core/dist/sse/types/anthropic-types.d.ts +0 -194
  1116. package/vendor/llmswitch-core/dist/sse/types/anthropic-types.js +0 -8
  1117. package/vendor/llmswitch-core/dist/sse/types/chat-types.d.ts +0 -321
  1118. package/vendor/llmswitch-core/dist/sse/types/chat-types.js +0 -33
  1119. package/vendor/llmswitch-core/dist/sse/types/conversion-context.d.ts +0 -214
  1120. package/vendor/llmswitch-core/dist/sse/types/conversion-context.js +0 -20
  1121. package/vendor/llmswitch-core/dist/sse/types/core-interfaces.d.ts +0 -94
  1122. package/vendor/llmswitch-core/dist/sse/types/core-interfaces.js +0 -5
  1123. package/vendor/llmswitch-core/dist/sse/types/gemini-types.d.ts +0 -135
  1124. package/vendor/llmswitch-core/dist/sse/types/gemini-types.js +0 -5
  1125. package/vendor/llmswitch-core/dist/sse/types/index.d.ts +0 -17
  1126. package/vendor/llmswitch-core/dist/sse/types/index.js +0 -9
  1127. package/vendor/llmswitch-core/dist/sse/types/responses-types.d.ts +0 -334
  1128. package/vendor/llmswitch-core/dist/sse/types/responses-types.js +0 -38
  1129. package/vendor/llmswitch-core/dist/sse/types/sse-events.d.ts +0 -181
  1130. package/vendor/llmswitch-core/dist/sse/types/sse-events.js +0 -150
  1131. package/vendor/llmswitch-core/dist/sse/types/stream-state.d.ts +0 -199
  1132. package/vendor/llmswitch-core/dist/sse/types/stream-state.js +0 -44
  1133. package/vendor/llmswitch-core/dist/sse/types/utility-types.d.ts +0 -234
  1134. package/vendor/llmswitch-core/dist/sse/types/utility-types.js +0 -46
  1135. package/vendor/llmswitch-core/dist/telemetry/stats-center.d.ts +0 -82
  1136. package/vendor/llmswitch-core/dist/telemetry/stats-center.js +0 -308
  1137. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/default-actions.d.ts +0 -2
  1138. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/default-actions.js +0 -12
  1139. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/extract-patch.d.ts +0 -2
  1140. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/extract-patch.js +0 -15
  1141. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/index.d.ts +0 -2
  1142. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/index.js +0 -164
  1143. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/structured-builders.d.ts +0 -7
  1144. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/structured-builders.js +0 -85
  1145. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/types.d.ts +0 -54
  1146. package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/types.js +0 -1
  1147. package/vendor/llmswitch-core/dist/tools/apply-patch/execution-capturer.d.ts +0 -13
  1148. package/vendor/llmswitch-core/dist/tools/apply-patch/execution-capturer.js +0 -181
  1149. package/vendor/llmswitch-core/dist/tools/apply-patch/json/parse-loose.d.ts +0 -3
  1150. package/vendor/llmswitch-core/dist/tools/apply-patch/json/parse-loose.js +0 -139
  1151. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/context-diff.d.ts +0 -1
  1152. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/context-diff.js +0 -173
  1153. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/git-diff.d.ts +0 -1
  1154. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/git-diff.js +0 -138
  1155. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/looks-like-patch.d.ts +0 -1
  1156. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/looks-like-patch.js +0 -11
  1157. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/normalize.d.ts +0 -3
  1158. package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/normalize.js +0 -383
  1159. package/vendor/llmswitch-core/dist/tools/apply-patch/regression-capturer.d.ts +0 -13
  1160. package/vendor/llmswitch-core/dist/tools/apply-patch/regression-capturer.js +0 -113
  1161. package/vendor/llmswitch-core/dist/tools/apply-patch/structured/coercion.d.ts +0 -3
  1162. package/vendor/llmswitch-core/dist/tools/apply-patch/structured/coercion.js +0 -103
  1163. package/vendor/llmswitch-core/dist/tools/apply-patch/structured.d.ts +0 -20
  1164. package/vendor/llmswitch-core/dist/tools/apply-patch/structured.js +0 -537
  1165. package/vendor/llmswitch-core/dist/tools/apply-patch/validation/shared.d.ts +0 -3
  1166. package/vendor/llmswitch-core/dist/tools/apply-patch/validation/shared.js +0 -6
  1167. package/vendor/llmswitch-core/dist/tools/apply-patch/validator.d.ts +0 -8
  1168. package/vendor/llmswitch-core/dist/tools/apply-patch/validator.js +0 -21
  1169. package/vendor/llmswitch-core/dist/tools/apply-patch-structured.d.ts +0 -1
  1170. package/vendor/llmswitch-core/dist/tools/apply-patch-structured.js +0 -1
  1171. package/vendor/llmswitch-core/dist/tools/args-json.d.ts +0 -1
  1172. package/vendor/llmswitch-core/dist/tools/args-json.js +0 -204
  1173. package/vendor/llmswitch-core/dist/tools/exec-command/normalize.d.ts +0 -17
  1174. package/vendor/llmswitch-core/dist/tools/exec-command/normalize.js +0 -116
  1175. package/vendor/llmswitch-core/dist/tools/exec-command/regression-capturer.d.ts +0 -11
  1176. package/vendor/llmswitch-core/dist/tools/exec-command/regression-capturer.js +0 -144
  1177. package/vendor/llmswitch-core/dist/tools/exec-command/validator.d.ts +0 -10
  1178. package/vendor/llmswitch-core/dist/tools/exec-command/validator.js +0 -238
  1179. package/vendor/llmswitch-core/dist/tools/patch-regression-capturer.d.ts +0 -1
  1180. package/vendor/llmswitch-core/dist/tools/patch-regression-capturer.js +0 -1
  1181. package/vendor/llmswitch-core/dist/tools/tool-description-utils.d.ts +0 -5
  1182. package/vendor/llmswitch-core/dist/tools/tool-description-utils.js +0 -50
  1183. package/vendor/llmswitch-core/dist/tools/tool-registry.d.ts +0 -15
  1184. package/vendor/llmswitch-core/dist/tools/tool-registry.js +0 -253
  1185. package/vendor/llmswitch-core/package.json +0 -189
@@ -1,191 +0,0 @@
1
- const COOLDOWN_SCHEDULE_429_MS = [3_000, 10_000, 31_000, 61_000];
2
- const COOLDOWN_SCHEDULE_FATAL_MS = [3_000, 10_000, 31_000, 61_000];
3
- const COOLDOWN_SCHEDULE_DEFAULT_MS = [3_000, 10_000, 31_000, 61_000];
4
- const COOLDOWN_SCHEDULE_TRANSIENT_KEEP_POOL_MS = [3_000, 5_000, 10_000, 31_000];
5
- const ERROR_CHAIN_WINDOW_MS = 10 * 60_000;
6
- const NETWORK_ERROR_CODES = [
7
- 'ECONNRESET',
8
- 'ECONNREFUSED',
9
- 'ETIMEDOUT',
10
- 'EAI_AGAIN',
11
- 'UPSTREAM_HEADERS_TIMEOUT',
12
- 'UPSTREAM_STREAM_TIMEOUT',
13
- 'UPSTREAM_STREAM_IDLE_TIMEOUT',
14
- 'UPSTREAM_STREAM_ABORTED'
15
- ];
16
- export function createInitialQuotaState(providerKey, staticConfig, nowMs = Date.now()) {
17
- const priorityTier = staticConfig && typeof staticConfig.priorityTier === 'number'
18
- ? staticConfig.priorityTier
19
- : 100;
20
- const authType = staticConfig && typeof staticConfig.authType === 'string' && staticConfig.authType.trim()
21
- ? staticConfig.authType.trim()
22
- : 'unknown';
23
- return {
24
- providerKey,
25
- inPool: true,
26
- reason: 'ok',
27
- authType,
28
- authIssue: null,
29
- priorityTier,
30
- cooldownUntil: null,
31
- blacklistUntil: null,
32
- lastErrorSeries: null,
33
- lastErrorCode: null,
34
- lastErrorAtMs: null,
35
- consecutiveErrorCount: 0
36
- };
37
- }
38
- export function normalizeErrorSeries(event) {
39
- if (event.fatal) {
40
- return 'EFATAL';
41
- }
42
- const status = typeof event.httpStatus === 'number' ? event.httpStatus : null;
43
- const rawCode = String(event.code || '').toUpperCase();
44
- if (status === 429 || rawCode.includes('429') || rawCode.includes('RATE') || rawCode.includes('QUOTA')) {
45
- return 'E429';
46
- }
47
- if (status && status >= 500) {
48
- return 'E5XX';
49
- }
50
- if (rawCode.includes('TIMEOUT') || NETWORK_ERROR_CODES.some((code) => rawCode.includes(code))) {
51
- return 'ENET';
52
- }
53
- if (rawCode.includes('AUTH') || rawCode.includes('UNAUTHORIZED') || rawCode.includes('CONFIG') || rawCode.includes('FATAL')) {
54
- return 'EFATAL';
55
- }
56
- return 'EOTHER';
57
- }
58
- function normalizeErrorKey(event) {
59
- const rawCode = String(event.code || '').trim().toUpperCase();
60
- const status = typeof event.httpStatus === 'number' ? event.httpStatus : null;
61
- const isGenericCode = rawCode === '' ||
62
- rawCode === 'ERR_PROVIDER_FAILURE' ||
63
- rawCode === 'ERR_PIPELINE_FAILURE' ||
64
- rawCode === 'ERR_COMPATIBILITY' ||
65
- rawCode === 'EXTERNAL_ERROR' ||
66
- rawCode === 'INTERNAL_ERROR' ||
67
- rawCode === 'TOOL_ERROR';
68
- if (!isGenericCode) {
69
- return rawCode;
70
- }
71
- if (status && Number.isFinite(status)) {
72
- return `HTTP_${Math.floor(status)}`;
73
- }
74
- return rawCode || 'ERR_UNKNOWN';
75
- }
76
- function computeCooldownMsBySeries(series, consecutive) {
77
- if (consecutive <= 0) {
78
- return null;
79
- }
80
- const schedule = series === 'E429'
81
- ? COOLDOWN_SCHEDULE_429_MS
82
- : series === 'EFATAL'
83
- ? COOLDOWN_SCHEDULE_FATAL_MS
84
- : COOLDOWN_SCHEDULE_DEFAULT_MS;
85
- const idx = Math.min(consecutive - 1, schedule.length - 1);
86
- return schedule[idx] ?? null;
87
- }
88
- function shouldKeepProviderInPoolDuringCooldown(series, consecutive) {
89
- if (consecutive <= 0) {
90
- return false;
91
- }
92
- return (series === 'ENET' || series === 'E5XX' || series === 'EOTHER') && consecutive <= 2;
93
- }
94
- function computeTransientKeepPoolCooldownMs(series, consecutive) {
95
- if (!shouldKeepProviderInPoolDuringCooldown(series, consecutive)) {
96
- return null;
97
- }
98
- const idx = Math.min(consecutive - 1, COOLDOWN_SCHEDULE_TRANSIENT_KEEP_POOL_MS.length - 1);
99
- return COOLDOWN_SCHEDULE_TRANSIENT_KEEP_POOL_MS[idx] ?? null;
100
- }
101
- export function tickQuotaStateTime(state, nowMs) {
102
- let next = state;
103
- if (typeof next.cooldownUntil === 'number' && next.cooldownUntil <= nowMs) {
104
- next = { ...next, cooldownUntil: null, cooldownKeepsPool: undefined };
105
- }
106
- if (typeof next.blacklistUntil === 'number' && next.blacklistUntil <= nowMs) {
107
- next = { ...next, blacklistUntil: null };
108
- }
109
- if (next.authIssue) {
110
- if (next.inPool !== false || next.reason !== 'authVerify') {
111
- next = { ...next, inPool: false, reason: 'authVerify' };
112
- }
113
- return next;
114
- }
115
- const inCooldown = typeof next.cooldownUntil === 'number' && next.cooldownUntil > nowMs;
116
- const inBlacklist = typeof next.blacklistUntil === 'number' && next.blacklistUntil > nowMs;
117
- if (inBlacklist) {
118
- if (next.inPool !== false || next.reason !== 'blacklist') {
119
- next = { ...next, inPool: false, reason: 'blacklist' };
120
- }
121
- return next;
122
- }
123
- if (inCooldown) {
124
- const keepInPool = next.cooldownKeepsPool === true;
125
- if (next.inPool !== keepInPool || next.reason !== 'cooldown') {
126
- next = { ...next, inPool: keepInPool, reason: 'cooldown' };
127
- }
128
- return next;
129
- }
130
- // TTLs expired: only auto-reset "cooldown/blacklist" back to ok.
131
- if (next.reason === 'cooldown' || next.reason === 'blacklist') {
132
- next = { ...next, inPool: true, reason: 'ok', cooldownKeepsPool: undefined };
133
- }
134
- return next;
135
- }
136
- export function applyErrorEvent(state, event, nowMs = event.timestampMs ?? Date.now()) {
137
- // Manual/operator blacklist is rigid: automated error events must not override it.
138
- if (state.blacklistUntil !== null && nowMs < state.blacklistUntil) {
139
- return state;
140
- }
141
- const series = normalizeErrorSeries(event);
142
- const errorKey = normalizeErrorKey(event);
143
- const lastAt = typeof state.lastErrorAtMs === 'number' && Number.isFinite(state.lastErrorAtMs)
144
- ? state.lastErrorAtMs
145
- : null;
146
- const withinChainWindow = typeof lastAt === 'number' &&
147
- nowMs - lastAt >= 0 &&
148
- nowMs - lastAt <= ERROR_CHAIN_WINDOW_MS;
149
- const sameErrorKey = withinChainWindow && state.lastErrorCode === errorKey;
150
- const schedule = series === 'E429'
151
- ? COOLDOWN_SCHEDULE_429_MS
152
- : series === 'EFATAL'
153
- ? COOLDOWN_SCHEDULE_FATAL_MS
154
- : COOLDOWN_SCHEDULE_DEFAULT_MS;
155
- const rawNextCount = sameErrorKey ? state.consecutiveErrorCount + 1 : 1;
156
- const nextCount = rawNextCount > schedule.length ? 1 : rawNextCount;
157
- const cooldownMs = computeTransientKeepPoolCooldownMs(series, nextCount) ?? computeCooldownMsBySeries(series, nextCount);
158
- const nextUntil = cooldownMs ? nowMs + cooldownMs : null;
159
- const existingUntil = typeof state.cooldownUntil === 'number' ? state.cooldownUntil : null;
160
- const cooldownUntil = typeof nextUntil === 'number' && Number.isFinite(nextUntil)
161
- ? typeof existingUntil === 'number' && existingUntil > nextUntil
162
- ? existingUntil
163
- : nextUntil
164
- : existingUntil;
165
- const inCooldown = typeof cooldownUntil === 'number' && cooldownUntil > nowMs;
166
- const inBlacklist = typeof state.blacklistUntil === 'number' && state.blacklistUntil > nowMs;
167
- const cooldownKeepsPool = shouldKeepProviderInPoolDuringCooldown(series, nextCount);
168
- const inPool = !inBlacklist && (!inCooldown || cooldownKeepsPool);
169
- return {
170
- ...state,
171
- inPool,
172
- reason: inBlacklist ? 'blacklist' : inCooldown ? 'cooldown' : 'ok',
173
- cooldownUntil,
174
- cooldownKeepsPool: inCooldown ? cooldownKeepsPool : undefined,
175
- lastErrorSeries: series,
176
- lastErrorCode: errorKey,
177
- lastErrorAtMs: nowMs,
178
- consecutiveErrorCount: nextCount,
179
- ...(event.authIssue ? { authIssue: event.authIssue, reason: 'authVerify', inPool: false } : {})
180
- };
181
- }
182
- export function applySuccessEvent(state, _event, nowMs = _event.timestampMs ?? Date.now()) {
183
- const next = {
184
- ...state,
185
- lastErrorSeries: null,
186
- lastErrorCode: null,
187
- lastErrorAtMs: null,
188
- consecutiveErrorCount: 0
189
- };
190
- return tickQuotaStateTime(next, nowMs);
191
- }
@@ -1,62 +0,0 @@
1
- export type QuotaReason = 'ok' | 'cooldown' | 'blacklist' | 'quotaDepleted' | 'fatal' | 'authVerify';
2
- export type QuotaAuthType = 'apikey' | 'oauth' | 'unknown';
3
- export type QuotaAuthIssue = {
4
- kind: 'google_account_verification';
5
- url?: string | null;
6
- message?: string | null;
7
- } | null;
8
- export interface StaticQuotaConfig {
9
- priorityTier?: number | null;
10
- authType?: QuotaAuthType | null;
11
- /**
12
- * Daily reset time for apikey quota exhaustion (HTTP 402).
13
- * Format:
14
- * - "HH:mm" => local time
15
- * - "HH:mmZ" => UTC time
16
- * If not set, defaults to 12:00 local.
17
- */
18
- apikeyDailyResetTime?: string | null;
19
- }
20
- export type ErrorSeries = 'E429' | 'E5XX' | 'ENET' | 'EFATAL' | 'EOTHER';
21
- export interface QuotaState {
22
- providerKey: string;
23
- inPool: boolean;
24
- reason: QuotaReason;
25
- authType: QuotaAuthType;
26
- authIssue?: QuotaAuthIssue;
27
- priorityTier: number;
28
- cooldownUntil: number | null;
29
- cooldownKeepsPool?: boolean;
30
- blacklistUntil: number | null;
31
- lastErrorSeries: ErrorSeries | null;
32
- lastErrorCode: string | null;
33
- lastErrorAtMs: number | null;
34
- consecutiveErrorCount: number;
35
- }
36
- export interface ErrorEventForQuota {
37
- providerKey: string;
38
- code?: string | null;
39
- httpStatus?: number | null;
40
- fatal?: boolean | null;
41
- timestampMs?: number;
42
- /**
43
- * Optional upstream resetAt ISO string for HTTP 402 quota depletion.
44
- */
45
- resetAt?: string | null;
46
- /**
47
- * Optional auth issue hint extracted by host/core adapters.
48
- */
49
- authIssue?: QuotaAuthIssue;
50
- }
51
- export interface SuccessEventForQuota {
52
- providerKey: string;
53
- timestampMs?: number;
54
- }
55
- export type QuotaStoreSnapshot = {
56
- savedAtMs: number;
57
- providers: Record<string, QuotaState>;
58
- };
59
- export interface QuotaStore {
60
- load(): Promise<QuotaStoreSnapshot | null>;
61
- save(snapshot: QuotaStoreSnapshot): Promise<void>;
62
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { type ProviderAuthConfig } from '../types.js';
2
- export interface ProviderAuthEntry {
3
- keyAlias: string;
4
- auth: ProviderAuthConfig;
5
- }
6
- export declare function extractProviderAuthEntries(providerId: string, raw: unknown): ProviderAuthEntry[];
@@ -1,288 +0,0 @@
1
- import { scanDeepSeekAccountTokenFiles, scanOAuthTokenFiles } from '../token-file-scanner.js';
2
- import { VirtualRouterError, VirtualRouterErrorCode } from '../types.js';
3
- import { asRecord, normalizeAlias, pushUnique, readOptionalString } from './utils.js';
4
- const MULTI_TOKEN_OAUTH_PROVIDERS = new Set(['iflow', 'qwen', 'gemini-cli', 'antigravity']);
5
- export function extractProviderAuthEntries(providerId, raw) {
6
- const provider = asRecord(raw);
7
- const auth = asRecord(provider.auth);
8
- const entries = [];
9
- const aliasSet = new Set();
10
- const baseTypeInfo = interpretAuthType(auth.type);
11
- const baseType = baseTypeInfo.type;
12
- const baseTypeSource = typeof auth.type === 'string' ? auth.type : undefined;
13
- const defaults = collectAuthDefaults(auth);
14
- const buildAuthCandidate = (typeHint, extras = {}) => {
15
- const source = typeof typeHint === 'string' && typeHint.trim() ? typeHint.trim() : baseTypeSource;
16
- const typeInfo = interpretAuthType(source ?? baseType);
17
- const rawType = typeInfo.raw ?? source ?? baseTypeSource;
18
- return {
19
- ...extras,
20
- type: typeInfo.type,
21
- rawType,
22
- oauthProviderId: extras.oauthProviderId ?? typeInfo.oauthProviderId
23
- };
24
- };
25
- const pushEntry = (candidateAlias, authConfig) => {
26
- const alias = normalizeAlias(candidateAlias, aliasSet);
27
- const typeSource = authConfig.rawType ?? authConfig.type ?? baseTypeSource ?? baseType;
28
- const typeInfo = interpretAuthType(typeSource);
29
- const entryType = typeInfo.type;
30
- const oauthProviderId = authConfig.oauthProviderId ?? typeInfo.oauthProviderId ?? baseTypeInfo.oauthProviderId;
31
- if (entryType === 'oauth' && !oauthProviderId) {
32
- throw new VirtualRouterError(`Provider ${providerId} OAuth auth entries must declare provider-specific type (e.g. "qwen-oauth")`, VirtualRouterErrorCode.CONFIG_ERROR);
33
- }
34
- const normalized = {
35
- type: entryType,
36
- rawType: typeof typeSource === 'string' ? typeSource : undefined,
37
- oauthProviderId,
38
- value: readOptionalString(authConfig.value ?? authConfig.apiKey),
39
- secretRef: readOptionalString(authConfig.secretRef)
40
- };
41
- normalized.tokenFile = readOptionalString(authConfig.tokenFile);
42
- normalized.tokenUrl = readOptionalString(authConfig.tokenUrl ?? authConfig.token_url);
43
- normalized.deviceCodeUrl = readOptionalString(authConfig.deviceCodeUrl ?? authConfig.device_code_url);
44
- normalized.clientId = readOptionalString(authConfig.clientId ?? authConfig.client_id);
45
- normalized.clientSecret = readOptionalString(authConfig.clientSecret ?? authConfig.client_secret);
46
- normalized.authorizationUrl = readOptionalString(authConfig.authorizationUrl ??
47
- authConfig.authorization_url ??
48
- authConfig.authUrl);
49
- normalized.userInfoUrl = readOptionalString(authConfig.userInfoUrl ?? authConfig.user_info_url);
50
- normalized.refreshUrl = readOptionalString(authConfig.refreshUrl ?? authConfig.refresh_url);
51
- normalized.scopes = normalizeScopeList(authConfig.scopes ?? authConfig.scope);
52
- normalized.secretRef ??= defaults.secretRef;
53
- normalized.tokenFile ??= defaults.tokenFile;
54
- normalized.tokenUrl ??= defaults.tokenUrl;
55
- normalized.deviceCodeUrl ??= defaults.deviceCodeUrl;
56
- normalized.clientId ??= defaults.clientId;
57
- normalized.clientSecret ??= defaults.clientSecret;
58
- normalized.authorizationUrl ??= defaults.authorizationUrl;
59
- normalized.userInfoUrl ??= defaults.userInfoUrl;
60
- normalized.refreshUrl ??= defaults.refreshUrl;
61
- normalized.scopes = mergeScopes(normalized.scopes, defaults.scopes);
62
- if (entryType === 'apiKey' && !normalized.secretRef) {
63
- normalized.secretRef = `${providerId}.${alias}`;
64
- }
65
- entries.push({ keyAlias: alias, auth: normalized });
66
- aliasSet.add(alias);
67
- };
68
- const fromRecord = (record) => {
69
- const data = asRecord(record);
70
- const alias = readOptionalString(data.alias);
71
- const typeValue = data.type ?? baseTypeSource ?? baseType;
72
- pushEntry(alias, buildAuthCandidate(typeValue, {
73
- value: data.value ?? data.apiKey,
74
- secretRef: data.secretRef,
75
- tokenFile: data.tokenFile,
76
- tokenUrl: data.tokenUrl ?? data.token_url,
77
- deviceCodeUrl: data.deviceCodeUrl ?? data.device_code_url,
78
- clientId: data.clientId ?? data.client_id,
79
- clientSecret: data.clientSecret ?? data.client_secret,
80
- authorizationUrl: data.authorizationUrl ??
81
- data.authorization_url ??
82
- data.authUrl,
83
- userInfoUrl: data.userInfoUrl ?? data.user_info_url,
84
- refreshUrl: data.refreshUrl ?? data.refresh_url,
85
- scopes: data.scopes ?? data.scope
86
- }));
87
- };
88
- if (Array.isArray(auth.entries)) {
89
- for (const entry of auth.entries) {
90
- fromRecord(entry);
91
- }
92
- }
93
- if (Array.isArray(auth.keys)) {
94
- for (const entry of auth.keys) {
95
- fromRecord(entry);
96
- }
97
- }
98
- else {
99
- const keysObject = asRecord(auth.keys);
100
- for (const [alias, entry] of Object.entries(keysObject)) {
101
- if (entry && typeof entry === 'object') {
102
- fromRecord({ alias, ...entry });
103
- }
104
- else if (typeof entry === 'string') {
105
- pushEntry(alias, buildAuthCandidate(baseTypeSource, { value: entry }));
106
- }
107
- }
108
- }
109
- const apiKeyField = provider.apiKey ?? provider.apiKeys ?? auth.apiKey;
110
- if (Array.isArray(apiKeyField)) {
111
- for (const item of apiKeyField) {
112
- if (typeof item === 'string' && item.trim()) {
113
- pushEntry(undefined, buildAuthCandidate(baseTypeSource, { value: item.trim() }));
114
- }
115
- else if (item && typeof item === 'object') {
116
- fromRecord(item);
117
- }
118
- }
119
- }
120
- else if (typeof apiKeyField === 'string' && apiKeyField.trim()) {
121
- pushEntry(undefined, buildAuthCandidate(baseTypeSource, { value: apiKeyField.trim() }));
122
- }
123
- const hasExplicitEntries = entries.length > 0;
124
- if (baseType === 'oauth' && !hasExplicitEntries) {
125
- const scanCandidates = new Set();
126
- const pushCandidate = (value) => {
127
- if (typeof value === 'string' && value.trim()) {
128
- scanCandidates.add(value.trim().toLowerCase());
129
- }
130
- };
131
- pushCandidate(auth.oauthProviderId);
132
- pushCandidate(baseTypeInfo.oauthProviderId);
133
- pushCandidate(providerId);
134
- for (const candidate of scanCandidates) {
135
- if (!MULTI_TOKEN_OAUTH_PROVIDERS.has(candidate)) {
136
- continue;
137
- }
138
- const tokenFiles = scanOAuthTokenFiles(candidate);
139
- if (!tokenFiles.length) {
140
- continue;
141
- }
142
- const baseTypeAlias = baseTypeInfo.oauthProviderId?.toLowerCase();
143
- for (const match of tokenFiles) {
144
- const alias = match.alias && match.alias !== 'default'
145
- ? `${match.sequence}-${match.alias}`
146
- : String(match.sequence);
147
- const typeHint = baseTypeSource && baseTypeAlias === candidate
148
- ? baseTypeSource
149
- : `${candidate}-oauth`;
150
- const authConfig = {
151
- ...defaults,
152
- type: typeHint,
153
- tokenFile: match.filePath,
154
- oauthProviderId: candidate
155
- };
156
- pushEntry(alias, authConfig);
157
- }
158
- }
159
- }
160
- const baseRawType = String(baseTypeInfo.raw ?? baseTypeSource ?? '').trim().toLowerCase();
161
- if (baseType === 'apiKey' && baseRawType === 'deepseek-account' && !hasExplicitEntries) {
162
- const tokenFiles = scanDeepSeekAccountTokenFiles();
163
- for (const match of tokenFiles) {
164
- const authConfig = {
165
- ...defaults,
166
- type: baseTypeSource ?? 'deepseek-account',
167
- tokenFile: match.filePath
168
- };
169
- pushEntry(match.alias, authConfig);
170
- }
171
- }
172
- if (!entries.length) {
173
- const fallbackExtras = {
174
- value: readOptionalString(auth.value),
175
- secretRef: readOptionalString(auth.secretRef),
176
- tokenFile: readOptionalString(auth.tokenFile ?? auth.file),
177
- tokenUrl: readOptionalString(auth.tokenUrl ?? auth.token_url),
178
- deviceCodeUrl: readOptionalString(auth.deviceCodeUrl ?? auth.device_code_url),
179
- clientId: readOptionalString(auth.clientId ?? auth.client_id),
180
- clientSecret: readOptionalString(auth.clientSecret ?? auth.client_secret),
181
- authorizationUrl: readOptionalString(auth.authorizationUrl ?? auth.authorization_url ?? auth.authUrl),
182
- userInfoUrl: readOptionalString(auth.userInfoUrl ?? auth.user_info_url),
183
- refreshUrl: readOptionalString(auth.refreshUrl ?? auth.refresh_url),
184
- scopes: normalizeScopeList(auth.scopes ?? auth.scope),
185
- cookieFile: readOptionalString(auth.cookieFile)
186
- };
187
- const fallbackHasData = Boolean(fallbackExtras.value ||
188
- fallbackExtras.secretRef ||
189
- fallbackExtras.tokenFile ||
190
- fallbackExtras.tokenUrl ||
191
- fallbackExtras.deviceCodeUrl ||
192
- fallbackExtras.clientId ||
193
- fallbackExtras.clientSecret ||
194
- fallbackExtras.cookieFile ||
195
- (fallbackExtras.scopes &&
196
- Array.isArray(fallbackExtras.scopes) &&
197
- fallbackExtras.scopes.length));
198
- if (fallbackHasData) {
199
- pushEntry(undefined, buildAuthCandidate(baseTypeSource, fallbackExtras));
200
- }
201
- }
202
- if (!entries.length && baseType === 'apiKey') {
203
- const authDeclared = Object.prototype.hasOwnProperty.call(provider, 'auth') ||
204
- Object.prototype.hasOwnProperty.call(provider, 'apiKey') ||
205
- Object.prototype.hasOwnProperty.call(provider, 'apiKeys') ||
206
- Object.prototype.hasOwnProperty.call(provider, 'authType');
207
- if (authDeclared) {
208
- pushEntry(undefined, buildAuthCandidate(baseTypeSource, { value: '' }));
209
- }
210
- }
211
- if (!entries.length) {
212
- throw new VirtualRouterError(`Provider ${providerId} is missing auth configuration`, VirtualRouterErrorCode.CONFIG_ERROR);
213
- }
214
- return entries;
215
- }
216
- function collectAuthDefaults(auth) {
217
- return {
218
- secretRef: readOptionalString(auth.secretRef) ?? readOptionalString(auth.file),
219
- tokenFile: readOptionalString(auth.tokenFile) ?? readOptionalString(auth.file),
220
- tokenUrl: readOptionalString(auth.tokenUrl ?? auth.token_url),
221
- deviceCodeUrl: readOptionalString(auth.deviceCodeUrl ?? auth.device_code_url),
222
- clientId: readOptionalString(auth.clientId ?? auth.client_id),
223
- clientSecret: readOptionalString(auth.clientSecret ?? auth.client_secret),
224
- authorizationUrl: readOptionalString(auth.authorizationUrl ?? auth.authorization_url ?? auth.authUrl),
225
- userInfoUrl: readOptionalString(auth.userInfoUrl ?? auth.user_info_url),
226
- refreshUrl: readOptionalString(auth.refreshUrl ?? auth.refresh_url),
227
- scopes: normalizeScopeList(auth.scopes ?? auth.scope)
228
- };
229
- }
230
- function normalizeScopeList(value) {
231
- if (Array.isArray(value)) {
232
- const normalized = [];
233
- for (const item of value) {
234
- const str = readOptionalString(item);
235
- if (str) {
236
- pushUnique(normalized, str);
237
- }
238
- }
239
- return normalized.length ? normalized : undefined;
240
- }
241
- if (typeof value === 'string' && value.trim()) {
242
- const normalized = value
243
- .split(/[,\s]+/)
244
- .map((item) => item.trim())
245
- .filter(Boolean);
246
- return normalized.length ? normalized : undefined;
247
- }
248
- return undefined;
249
- }
250
- function mergeScopes(primary, fallback) {
251
- if ((!primary || !primary.length) && (!fallback || !fallback.length)) {
252
- return undefined;
253
- }
254
- const merged = new Set();
255
- for (const scope of primary ?? []) {
256
- if (scope.trim())
257
- merged.add(scope.trim());
258
- }
259
- for (const scope of fallback ?? []) {
260
- if (scope.trim())
261
- merged.add(scope.trim());
262
- }
263
- return merged.size ? Array.from(merged) : undefined;
264
- }
265
- function interpretAuthType(value) {
266
- if (typeof value !== 'string') {
267
- return { type: 'apiKey' };
268
- }
269
- const trimmed = value.trim();
270
- if (!trimmed) {
271
- return { type: 'apiKey' };
272
- }
273
- const lower = trimmed.toLowerCase();
274
- if (lower === 'apikey' || lower === 'api-key') {
275
- return { type: 'apiKey', raw: trimmed };
276
- }
277
- if (lower === 'oauth') {
278
- return { type: 'oauth', raw: trimmed };
279
- }
280
- const match = lower.match(/^([a-z0-9._-]+)-oauth$/);
281
- if (match) {
282
- return { type: 'oauth', oauthProviderId: match[1], raw: trimmed };
283
- }
284
- if (lower.includes('oauth')) {
285
- return { type: 'oauth', raw: trimmed };
286
- }
287
- return { type: 'apiKey', raw: trimmed };
288
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Claude Code specific helpers for Virtual Router bootstrap.
3
- */
4
- export declare const CLAUDE_CODE_DEFAULT_USER_AGENT = "claude-cli/2.0.76 (external, cli)";
5
- export declare const CLAUDE_CODE_DEFAULT_X_APP = "claude-cli";
6
- export declare const CLAUDE_CODE_DEFAULT_ANTHROPIC_BETA = "claude-code";
7
- /**
8
- * Parse the Claude Code app version from a user agent string.
9
- * Returns the version string (e.g., "2.0.76") or null if not found.
10
- */
11
- export declare function parseClaudeCodeAppVersionFromUserAgent(userAgent: string): string | null;
@@ -1,18 +0,0 @@
1
- /**
2
- * Claude Code specific helpers for Virtual Router bootstrap.
3
- */
4
- export const CLAUDE_CODE_DEFAULT_USER_AGENT = 'claude-cli/2.0.76 (external, cli)';
5
- export const CLAUDE_CODE_DEFAULT_X_APP = 'claude-cli';
6
- export const CLAUDE_CODE_DEFAULT_ANTHROPIC_BETA = 'claude-code';
7
- /**
8
- * Parse the Claude Code app version from a user agent string.
9
- * Returns the version string (e.g., "2.0.76") or null if not found.
10
- */
11
- export function parseClaudeCodeAppVersionFromUserAgent(userAgent) {
12
- const ua = typeof userAgent === 'string' ? userAgent.trim() : '';
13
- if (!ua)
14
- return null;
15
- // Example: 'claude-cli/2.0.76 (external, cli)'
16
- const match = /claude-cli\/([\d.]+)/.exec(ua);
17
- return match?.[1] ?? null;
18
- }
@@ -1,5 +0,0 @@
1
- import type { LoadBalancingPolicy, ProviderHealthConfig, VirtualRouterClassifierConfig, VirtualRouterContextRoutingConfig } from '../types.js';
2
- export declare const DEFAULT_CLASSIFIER: Required<VirtualRouterClassifierConfig>;
3
- export declare const DEFAULT_LOAD_BALANCING: LoadBalancingPolicy;
4
- export declare const DEFAULT_HEALTH: ProviderHealthConfig;
5
- export declare const DEFAULT_CONTEXT_ROUTING: VirtualRouterContextRoutingConfig;
@@ -1,13 +0,0 @@
1
- export const DEFAULT_CLASSIFIER = {
2
- longContextThresholdTokens: 180000,
3
- thinkingKeywords: ['think step', 'analysis', 'reasoning', '仔细分析', '深度思考'],
4
- codingKeywords: ['apply_patch', 'write_file', 'create_file', 'shell', '修改文件', '写入文件'],
5
- backgroundKeywords: ['background', 'context dump', '上下文'],
6
- visionKeywords: ['vision', 'image', 'picture', 'photo']
7
- };
8
- export const DEFAULT_LOAD_BALANCING = { strategy: 'round-robin' };
9
- export const DEFAULT_HEALTH = { failureThreshold: 3, cooldownMs: 30_000, fatalCooldownMs: 300_000 };
10
- export const DEFAULT_CONTEXT_ROUTING = {
11
- warnRatio: 0.9,
12
- hardLimit: false
13
- };
@@ -1,4 +0,0 @@
1
- import type { VirtualRouterClockConfig, VirtualRouterConfig, VirtualRouterContextRoutingConfig } from '../types.js';
2
- export declare function normalizeExecCommandGuard(input: unknown): VirtualRouterConfig['execCommandGuard'] | undefined;
3
- export declare function normalizeClock(raw: unknown): VirtualRouterClockConfig | undefined;
4
- export declare function normalizeContextRouting(input: unknown): VirtualRouterContextRoutingConfig;