9router-imagefix 0.5.72 → 0.5.73

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 (402) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +4 -4
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  53. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  54. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  55. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  56. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  60. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  61. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  62. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  63. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  64. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  243. package/app/.next-cli-build/server/app/callback.html +1 -1
  244. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  245. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  246. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  247. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  248. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  249. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  250. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
  251. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  252. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  253. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  254. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  255. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  256. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  257. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  258. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  259. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  260. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
  261. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  262. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  263. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  264. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  265. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
  266. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  267. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  268. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  269. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  270. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
  271. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  272. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  273. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  274. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  275. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  276. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  277. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  278. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  279. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  280. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
  281. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  282. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  283. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  284. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  285. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
  286. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  287. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  288. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  289. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  290. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
  291. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  292. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  293. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  294. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  295. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
  296. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  297. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  298. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  299. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  300. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
  301. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  302. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  303. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  304. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  305. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
  306. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  307. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  310. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  312. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  313. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  314. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  315. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  316. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  317. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
  318. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  319. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  320. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  321. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  322. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
  323. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  324. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  325. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  326. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  327. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  328. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  329. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  330. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  331. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  332. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
  333. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  334. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  335. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  336. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  337. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  338. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  339. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  340. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/index.html +1 -1
  342. package/app/.next-cli-build/server/app/index.rsc +4 -4
  343. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  344. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  345. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  346. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  348. package/app/.next-cli-build/server/app/landing.html +1 -1
  349. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  350. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  351. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  352. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  353. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  355. package/app/.next-cli-build/server/app/login.html +1 -1
  356. package/app/.next-cli-build/server/app/login.rsc +5 -5
  357. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  358. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  359. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  360. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  363. package/app/.next-cli-build/server/app-paths-manifest.json +4 -4
  364. package/app/.next-cli-build/server/chunks/1605.js +1 -0
  365. package/app/.next-cli-build/server/chunks/24.js +1 -1
  366. package/app/.next-cli-build/server/chunks/3753.js +1 -1
  367. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  368. package/app/.next-cli-build/server/chunks/4037.js +1 -1
  369. package/app/.next-cli-build/server/chunks/412.js +1 -1
  370. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  371. package/app/.next-cli-build/server/chunks/4572.js +1 -1
  372. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  373. package/app/.next-cli-build/server/chunks/6197.js +1 -1
  374. package/app/.next-cli-build/server/chunks/6922.js +1 -0
  375. package/app/.next-cli-build/server/chunks/7807.js +1 -1
  376. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  377. package/app/.next-cli-build/server/chunks/8236.js +1 -1
  378. package/app/.next-cli-build/server/chunks/827.js +1 -1
  379. package/app/.next-cli-build/server/chunks/8363.js +1 -0
  380. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  381. package/app/.next-cli-build/server/chunks/869.js +1 -1
  382. package/app/.next-cli-build/server/chunks/8847.js +1 -1
  383. package/app/.next-cli-build/server/chunks/8910.js +1 -1
  384. package/app/.next-cli-build/server/chunks/915.js +1 -1
  385. package/app/.next-cli-build/server/chunks/929.js +1 -1
  386. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  388. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/pages/404.html +1 -1
  390. package/app/.next-cli-build/server/pages/500.html +1 -1
  391. package/app/.next-cli-build/static/chunks/1321-87d81e6d953adb71.js +1 -0
  392. package/app/.next-cli-build/static/chunks/{5497-77d8c458d352b1ac.js → 5497-87c75b20890c6e7f.js} +2 -2
  393. package/app/cli/.build-home/AppData/Roaming/9router/db/data.sqlite-shm +0 -0
  394. package/app/cli/.build-home/AppData/Roaming/9router/db/data.sqlite-wal +0 -0
  395. package/app/package.json +1 -1
  396. package/app/src/mitm/server.js +10 -10
  397. package/package.json +1 -1
  398. package/app/.next-cli-build/server/chunks/3350.js +0 -1
  399. package/app/.next-cli-build/server/chunks/6832.js +0 -1
  400. package/app/.next-cli-build/static/chunks/1321-25c1b9654306036c.js +0 -1
  401. /package/app/.next-cli-build/static/{_emEGmQmqkUMMsZ77I_L5 → MYIahdRWU3z614Afsvc68}/_buildManifest.js +0 -0
  402. /package/app/.next-cli-build/static/{_emEGmQmqkUMMsZ77I_L5 → MYIahdRWU3z614Afsvc68}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=6922,exports.ids=[6922],exports.modules={19804:(a,b,c)=>{c.d(b,{Du:()=>f,R4:()=>e,m8:()=>g,x4:()=>d});let d={TEXT:"text",IMAGE_URL:"image_url",IMAGE:"image",INPUT_AUDIO:"input_audio",AUDIO_URL:"audio_url",FILE:"file",FUNCTION:"function"},e={TEXT:"text",IMAGE:"image",DOCUMENT:"document",TOOL_USE:"tool_use",TOOL_RESULT:"tool_result",THINKING:"thinking",REDACTED_THINKING:"redacted_thinking",SERVER_TOOL_USE:"server_tool_use",WEB_SEARCH_TOOL_RESULT:"web_search_tool_result"},f={MESSAGE:"message",FUNCTION_CALL:"function_call",FUNCTION_CALL_OUTPUT:"function_call_output",CUSTOM_TOOL_CALL:"custom_tool_call",CUSTOM_TOOL_CALL_OUTPUT:"custom_tool_call_output",ADDITIONAL_TOOLS:"additional_tools",REASONING:"reasoning",OUTPUT_TEXT:"output_text",INPUT_TEXT:"input_text",INPUT_IMAGE:"input_image",SUMMARY_TEXT:"summary_text"},g=[d.TEXT,d.IMAGE_URL,d.IMAGE,d.INPUT_AUDIO,d.AUDIO_URL,d.FILE];d.TEXT,d.IMAGE_URL,d.IMAGE,e.TOOL_RESULT},26922:(a,b,c)=>{c.d(b,{KZ:()=>k,S6:()=>h,Yr:()=>o,f6:()=>l,fc:()=>g,kU:()=>i,pT:()=>j,w_:()=>m});var d=c(62842),e=c(43698);let f=["minLength","maxLength","exclusiveMinimum","exclusiveMaximum","minItems","maxItems","format","multipleOf","uniqueItems","contains","unevaluatedProperties","unevaluatedItems","contentSchema","prefixItems","additionalItems","default","examples","$schema","$defs","definitions","const","$ref","$comment","deprecated","readOnly","writeOnly","additionalProperties","propertyNames","patternProperties","enumDescriptions","anyOf","oneOf","allOf","not","dependencies","dependentSchemas","dependentRequired","title","optional","deprecated","if","then","else","contentMediaType","contentEncoding","cornerRadius","fillColor","fontFamily","fontSize","fontWeight","gap","padding","strokeColor","strokeThickness","textColor"],g=[{category:"HARM_CATEGORY_HATE_SPEECH",threshold:"OFF"},{category:"HARM_CATEGORY_DANGEROUS_CONTENT",threshold:"OFF"},{category:"HARM_CATEGORY_SEXUALLY_EXPLICIT",threshold:"OFF"},{category:"HARM_CATEGORY_HARASSMENT",threshold:"OFF"},{category:"HARM_CATEGORY_CIVIC_INTEGRITY",threshold:"OFF"}];function h(a){let b=[];if("string"==typeof a)b.push({text:a});else if(Array.isArray(a)){for(let c of a)if(c.type===e.x4.TEXT)b.push({text:c.text});else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url?.startsWith("data:")){let a=c.image_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url&&(c.image_url.url.startsWith("http://")||c.image_url.url.startsWith("https://")))b.push({fileData:{fileUri:c.image_url.url,mimeType:"image/*"}});else if(c.type===e.x4.INPUT_AUDIO&&c.input_audio?.data){let a=c.input_audio.format||"wav",d="mp3"===a?"audio/mpeg":`audio/${a}`;b.push({inlineData:{mime_type:d,data:c.input_audio.data}})}else if(c.type===e.x4.AUDIO_URL&&c.audio_url?.url?.startsWith("data:")){let a=c.audio_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.FILE&&c.file?.file_data?.startsWith("data:")){let a=c.file.file_data,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d).split(";")[0],e=a.substring(d+1);b.push({inlineData:{mime_type:c,data:e}})}}}return b}function i(a,b=""){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>a.type===e.x4.TEXT).map(a=>a.text).join(b):""}function j(a){return(0,d.N)(a,null)}function k(){return`agent-${crypto.randomUUID()}`}function l(){return crypto.randomUUID()+Date.now().toString()}function m(){let a=["useful","bright","swift","calm","bold"],b=["fuze","wave","spark","flow","core"],c=a[Math.floor(Math.random()*a.length)],d=b[Math.floor(Math.random()*b.length)];return`${c}-${d}-${crypto.randomUUID().slice(0,5)}`}function n(a){let b=0,c=-1;for(let d=0;d<a.length;d++){let e=a[d],f=0,g=e.type;"object"===g||e.properties?f=3:"array"===g||e.items?f=2:g&&"null"!==g&&(f=1),f>c&&(c=f,b=d)}return b}function o(a){return a&&"object"==typeof a&&(!function a(b){if(b&&"object"==typeof b)for(let c of(void 0===b.const||b.enum||(b.enum=[b.const],delete b.const),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.enum&&Array.isArray(b.enum)&&(b.enum=b.enum.map(a=>String(a)),b.type||(b.type="string")),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b){if(b.allOf&&Array.isArray(b.allOf)){let a={};for(let c of b.allOf)if(c.properties&&(a.properties||(a.properties={}),Object.assign(a.properties,c.properties)),c.required&&Array.isArray(c.required))for(let b of(a.required||(a.required=[]),c.required))a.required.includes(b)||a.required.push(b);delete b.allOf,a.properties&&(b.properties={...b.properties,...a.properties}),a.required&&(b.required=[...b.required||[],...a.required])}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(Array.isArray(b.prefixItems)&&b.prefixItems.length>0){let a=b.prefixItems.filter(a=>a&&"null"!==a.type);b.items||1!==a.length?!b.items&&a.length>1&&(b.items={anyOf:a}):b.items=a[0],delete b.prefixItems}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.anyOf&&Array.isArray(b.anyOf)&&b.anyOf.length>0){let a=b.anyOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.anyOf,Object.assign(b,d)}}if(b.oneOf&&Array.isArray(b.oneOf)&&b.oneOf.length>0){let a=b.oneOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.oneOf,Object.assign(b,d)}}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.type&&Array.isArray(b.type)){let a=b.type.filter(a=>"null"!==a);b.type=a.length>0?a[0]:"string"}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.properties&&!b.type&&(b.type="object"),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of("array"!==b.type||b.items||(b.items={type:"string"}),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b,c){if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.keys(b)){if(c.includes(d)||d.startsWith("x-")){delete b[d];continue}let e=b[d];e&&"object"==typeof e&&a(e,c)}}}(a,f),!function a(b){if(b&&"object"==typeof b){if(b.required&&Array.isArray(b.required)&&b.properties){let a=b.required.filter(a=>Object.prototype.hasOwnProperty.call(b.properties,a));0===a.length?delete b.required:b.required=a}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(0===Object.keys(b).length){b.type="object",b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"];return}for(let c of("object"!==b.type||b.properties&&0!==Object.keys(b.properties).length||(b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"]),Object.values(b)))c&&"object"==typeof c&&a(c)}}(a)),a}},33077:(a,b,c)=>{c.d(b,{R:()=>e,z:()=>d});let d={USER:"user",ASSISTANT:"assistant",TOOL:"tool",SYSTEM:"system",DEVELOPER:"developer"},e={USER:"user",MODEL:"model"}},43698:(a,b,c)=>{c.d(b,{R4:()=>e.R4,BY:()=>h,a_:()=>f.a_,RV:()=>d.R,rP:()=>g,x4:()=>e.x4,bC:()=>f.bC,Du:()=>e.Du,z7:()=>d.z,m8:()=>e.m8});var d=c(33077),e=c(19804),f=c(69320);let g="unknown",h="image/png"},62842:(a,b,c)=>{c.d(b,{N:()=>d});function d(a,b){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}},69320:(a,b,c)=>{c.d(b,{Ut:()=>e,a_:()=>f,bC:()=>d});let d={STOP:"stop",LENGTH:"length",TOOL_CALLS:"tool_calls",CONTENT_FILTER:"content_filter"},e={END_TURN:"end_turn",MAX_TOKENS:"max_tokens",TOOL_USE:"tool_use",STOP_SEQUENCE:"stop_sequence"},f={STOP:"STOP",MAX_TOKENS:"MAX_TOKENS",SAFETY:"SAFETY",RECITATION:"RECITATION",BLOCKLIST:"BLOCKLIST",PROHIBITED_CONTENT:"PROHIBITED_CONTENT"}}};
@@ -1,3 +1,3 @@
1
- "use strict";exports.id=7807,exports.ids=[7807],exports.modules={3894:(a,b,c)=>{c.d(b,{F_:()=>g,Nc:()=>h,Qh:()=>t,Su:()=>q,ag:()=>o,kI:()=>p,rl:()=>u,sy:()=>s});var d=c(79646),e=c(33873),f=c.n(e);let g=["code","ml"],h={code:["tree-sitter","tree-sitter-language-pack"],ml:["torch","huggingface-hub"]},i="win32"===process.platform,j=i?"where":"which",k=i?[`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python313\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python312\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python311\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python310\\Scripts`,`${process.env.APPDATA||""}\\Python\\Python313\\Scripts`]:["/usr/local/bin","/opt/homebrew/bin","/Library/Frameworks/Python.framework/Versions/3.13/bin","/Library/Frameworks/Python.framework/Versions/3.12/bin","/Library/Frameworks/Python.framework/Versions/3.11/bin","/Library/Frameworks/Python.framework/Versions/3.10/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],l=[...k,process.env.PATH||""].filter(Boolean).join(f().delimiter),m=["python3.13","python3.12","python3.11","python3.10","python3","python"],n=new Set(["localhost","127.0.0.1","::1","[::1]","0.0.0.0"]),o=process.env.HEADROOM_URL||"http://localhost:8787";function p(){try{let a=(0,d.execSync)(`${j} headroom`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function q(){let a=null;for(let b of function(){let a=[],b=p();if(b){let c=f().dirname(b);for(let b of i?["python.exe","python3.exe"]:["python3","python3.13","python"])a.push(f().join(c,b))}for(let b of k)if(b)for(let c of m)a.push(f().join(b,i?`${c}.exe`:c));return a.push(...m),a}())try{let c=(0,d.execSync)(`${b} --version`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim().match(/(\d+)\.(\d+)/);if(!c)continue;let[e,f]=[parseInt(c[1],10),parseInt(c[2],10)];if(!(e>3||3===e&&f>=10))continue;a||(a=b);try{return(0,d.execFileSync)(b,["-m","pip","show","headroom-ai"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}),b}catch{}}catch{}return a}async function r(a){if(!a)return!1;let b=String(a).replace(/\/$/,"");try{return(await fetch(`${b}/health`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}function s(a){try{let b=new URL(a);return n.has(b.hostname)}catch{return!1}}async function t(a){let b=p(),c=q(),d=!!b,e=await r(a),f=s(a),g=d?u(c):{installed:!1,version:null,extras:{code:!1,ml:!1}};return{installed:d,path:b,running:e,python:c,localUrl:f,canStart:d&&f,version:g.version,extras:g.extras}}function u(a){let b=a||q();if(!b)return{installed:!1,version:null,extras:{code:!1,ml:!1}};try{let a=(0,d.execFileSync)(b,["-m","pip","list","--format=json","--disable-pip-version-check"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}).toString(),c=JSON.parse(a),e=new Set(c.map(a=>String(a.name||"").toLowerCase()));if(!e.has("headroom-ai"))return{installed:!1,version:null,extras:{code:!1,ml:!1}};let f=c.find(a=>a.name?.toLowerCase()==="headroom-ai")?.version||null,i={};for(let a of g)i[a]=h[a].some(a=>e.has(a));return{installed:!0,version:f,extras:i}}catch{return{installed:!1,version:null,extras:{code:!1,ml:!1}}}}},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>l,vB:()=>h});var d=c(24);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){var c;let d=Array.isArray(c=b?.capacityAdapter?.[a])?{enabled:!0,roundRobin:!1,models:c.map(a=>a?.model||a).filter(Boolean)}:c&&"object"==typeof c?{enabled:!1!==c.enabled,roundRobin:!!c.roundRobin,models:Array.isArray(c.models)?c.models.filter(Boolean):[]}:{enabled:!1,roundRobin:!1,models:[]};return d.enabled&&0===d.models.length?{...d,models:["oc/mimo-v2.5-free"]}:d}function h(a,b){for(let c of[...a||[]].filter(a=>f.has(a))){let{enabled:a,models:d}=g(c,b);if(a&&0!==d.length)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c=a.indexOf("/"),e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.getCapabilitiesForModel)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a){return"string"==typeof a?a.length:Array.isArray(a)?a.reduce((a,b)=>a+("string"==typeof b?.text?b.text.length:50),0):0}function l(a,b){let c=new Set(b);return 0===c.size?a:(b,e,...f)=>{if(c.has(e)){let a=e.indexOf("/"),c=a>0?e.slice(0,a):"",f=a>0?e.slice(a+1):e,{contextWindow:g}=(0,d.getCapabilitiesForModel)(c,f);b=function(a,b){let c=Array.isArray(a.messages)?"messages":Array.isArray(a.input)?"input":Array.isArray(a.contents)?"contents":null;if(!c)return a;let d=a[c];if(!d||0===d.length)return a;let e=a=>"system"===a||"developer"===a,f=d.filter(a=>e(a?.role)),g=d.filter(a=>!e(a?.role));if(0===g.length)return a;let h=a=>"assistant"===a||"model"===a,i=g.length-1;for(;i>=0&&!h(g[i]?.role);)i--;let j=g.slice(i+1),l=g.slice(0,i+1);if(0===l.length)return a;let m=a=>a.content??a.parts,n=.8*(b||2e5)*4,o=l.slice(0,6),p=f.concat(o,j).reduce((a,b)=>a+k(m(b)),0);for(;p>n&&o.length>0;)p-=k(m(o.pop()));return o.length===l.length?a:{...a,[c]:[...f,...o,...j]}}(b,g)}return a(b,e,...f)}}},24253:(a,b,c)=>{c.d(b,{Mo:()=>h,RG:()=>l,V:()=>i,Y8:()=>k,xl:()=>m});var d=c(1932),e=c(87155);let f=null,g=null;function h(){return f?{loaded:!0,version:f.version,loadedAt:f.loadedAt}:{loaded:!1}}async function i(){return f||g||(g=j().finally(()=>{g=null}))}async function j(){let a=(0,e.S1)();if(!a.installed){let a=Error("PXPIPE is not installed");throw a.code="NOT_INSTALLED",a}let b=`${(0,d.pathToFileURL)((0,e.CG)()).href}?v=${encodeURIComponent(a.version||"0")}`,c=await import(b);if("function"!=typeof c.transformAnthropicMessages)throw Error("installed pxpipe package does not export transformAnthropicMessages");return f={module:c,version:a.version,loadedAt:Date.now()}}function k(){let a=!!f;return f=null,a}async function l({autoLoad:a=!0}={}){try{if(!f&&!a)return null;let{module:b}=await i();return b.transformAnthropicMessages}catch{return null}}async function m(){let a=Date.now(),{module:b}=await i(),c=new TextEncoder().encode(JSON.stringify({model:"claude-fable-5",max_tokens:16,messages:[{role:"user",content:"ping"}]})),d=await b.transformAnthropicMessages({body:c,model:"claude-fable-5"});if(!d||"boolean"!=typeof d.applied||!(d.body instanceof Uint8Array))throw Error("transform returned an unexpected shape");return{ok:!0,reason:d.reason,durationMs:Date.now()-a}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(98236);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"},h=new Set(Object.keys(g));for(let a of f.default)for(let b of(h.add(a.id),a.alias&&h.add(a.alias),a.aliases||[]))h.add(b);async function i(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){if(!h.has(c.providerAlias)){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model}}return{provider:c.provider,model:c.model}}return await (0,d.Dj)(c.model)?{provider:null,model:c.model}:(0,e.js)(a,d.OM)}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},45699:(a,b,c)=>{c.d(b,{Xg:()=>r,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>t,ez:()=>n,ux:()=>m,OA:()=>o,kt:()=>p,KC:()=>s,SM:()=>i});var d=c(35024),e=c(98236),f=c(26070),g=c(99511);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}let k=new Set(["kr","kiro"]);function l(a,b,c){if(!a)return;let d=a.find(a=>a.id===b);if(d)return d;if(!k.has(c))return;let e=(0,g.Kq)(b);if(e!==b)return a.find(a=>a.id===e)}function m(a,b){let c=f.vq[a];return c?(0,g.gr)(l(c,b,a)):null}function n(a,b){let c=f.vq[a];return c?(0,g.ec)(l(c,b,a)):null}function o(a,b){let c=f.vq[a];if(!c)return null;let d=l(c,b,a);return d?.kind||d?.type||null}function p(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",e=d?b.slice(0,c.index).trim():b,g=l(f.vq[a],e,a),i=g?.upstreamModelId||g?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof e&&e.endsWith(h)?e.slice(0,-h.length)+d:e+d}let q=Object.fromEntries(e.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),r=Object.fromEntries(Object.keys(d.xq).map(a=>[a,q[a]||a]));function s(a){let b=r[a]||a;return f.vq[b]||[]}function t(a,b){return(0,g.g5)(l(f.vq[a],b,a))}},74388:(a,b,c)=>{c.d(b,{Az:()=>l,SP:()=>o,T0:()=>k});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(87155);let i=g().join(h.XF,"events.jsonl"),j=g().join(h.XF,"events.jsonl.1");function k(a){try{e().existsSync(h.XF)||e().mkdirSync(h.XF,{recursive:!0});try{e().statSync(i).size>5242880&&e().renameSync(i,j)}catch{}e().appendFile(i,JSON.stringify({ts:Date.now(),...a})+"\n",()=>{})}catch{}}function l({sinceMs:a=null,limit:b=null}={}){let c=[];for(let b of[j,i])try{if(!e().existsSync(b))continue;for(let d of e().readFileSync(b,"utf8").split("\n"))if(d)try{let b=JSON.parse(d);if(a&&b.ts<a)continue;c.push(b)}catch{}}catch{}return c.sort((a,b)=>a.ts-b.ts),b?c.slice(-b):c}function m(){return{requests:0,compressed:0,bypassed:0,errors:0,tokensBeforeEst:0,tokensAfterEst:0,tokensSavedEst:0,savedPct:0,imagesGenerated:0,compressionTimeMs:0,avgCompressionMs:0}}function n(a,b){a.requests++,b.applied?(a.compressed++,a.tokensBeforeEst+=b.tokensBeforeEst||0,a.tokensAfterEst+=b.tokensAfterEst||0,a.tokensSavedEst+=b.tokensSavedEst||0,a.imagesGenerated+=b.imageCount||0,a.compressionTimeMs+=b.durationMs||0):"transform_error"===b.reason||"timeout"===b.reason?a.errors++:a.bypassed++}function o({timelineDays:a=30,recentLimit:b=100}={}){let c=l(),d=Date.now(),e=new Date(new Date(d).setHours(0,0,0,0)).getTime(),f={all:m(),today:m(),yesterday:m(),last7d:m(),last30d:m()},g=new Map;for(let b=a-1;b>=0;b--){let a=new Date(e-864e5*b);g.set(a.toISOString().slice(0,10),{date:a.toISOString().slice(0,10),tokensSavedEst:0,compressed:0,requests:0})}for(let a of c){n(f.all,a),a.ts>=e?n(f.today,a):a.ts>=e-864e5&&n(f.yesterday,a),a.ts>=d-6048e5&&n(f.last7d,a),a.ts>=d-2592e6&&n(f.last30d,a);let b=new Date(a.ts).toISOString().slice(0,10),c=g.get(b);c&&(c.requests++,a.applied&&(c.compressed++,c.tokensSavedEst+=a.tokensSavedEst||0))}for(let a of Object.values(f))a.savedPct=a.tokensBeforeEst>0?+(a.tokensSavedEst/a.tokensBeforeEst*100).toFixed(2):0,a.avgCompressionMs=a.compressed>0?Math.round(a.compressionTimeMs/a.compressed):0;return{windows:f,timeline:[...g.values()],recent:c.slice(-b).reverse()}}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{P:()=>x});var e=c(48895),f=c(80238),g=c(45974),h=c(89718),i=c(38775),j=c(92500),k=c(3894),l=c(24253),m=c(74388),n=c(43659),o=c(18910),p=c(17603),q=c(27349),r=c(41004),s=c(14170),t=c(7803),u=c(67828),v=c(38160),w=a([e,j]);async function x(a,b=null){let c;try{c=await a.json()}catch{return t.warn("CHAT","Invalid JSON body"),(0,n.yj)(r.gx.BAD_REQUEST,"Invalid JSON body")}b||(b={endpoint:new URL(a.url).pathname,body:c,headers:Object.fromEntries(a.headers.entries())});let d=c.model,e=a.headers.get("Authorization"),g=(0,f.Tr)(a);if(e&&g){let a=t.maskKey(g);t.debug("AUTH",`API Key: ${a}`)}else t.debug("AUTH","No API key provided (local mode)");let j=await (0,h.mt)();if(j.requireApiKey){if(!g)return t.warn("AUTH","Missing API key (requireApiKey=true)"),(0,n.yj)(r.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(g))return t.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,n.yj)(r.gx.UNAUTHORIZED,"Invalid API key")}if(!d)return t.warn("CHAT","Missing model"),(0,n.yj)(r.gx.BAD_REQUEST,"Missing model");let k=a?.headers?.get("user-agent")||"",l=(0,q.c)(c,d,k,!!j.ccFilterNaming);if(l)return l.response||l;let m=(0,o.t8)(c),s=await (0,i.d_)(d);if(s){let e=j.comboStrategies||{},f=e[d]?.fallbackStrategy||j.comboStrategy||"fallback",h=(0,p.R8)(s,m,j),i=h.filter(a=>!s.includes(a));if("fusion"===f)return t.info("CHAT",`Combo "${d}" with ${s.length} models (strategy: fusion)`),(0,o.vt)({body:c,models:s,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return y(c,d,f,a,g)},log:t,comboName:d,judgeModel:e[d]?.judgeModel,tuning:e[d]?.fusionTuning});let k=j.comboStickyRoundRobinLimit;return t.info("CHAT",`Combo "${d}" with ${h.length} models (strategy: ${f}, sticky: ${k})`),(0,o.Pr)({body:c,models:h,handleSingleModel:(0,p.ar)((c,d)=>y(c,d,b,a,g),i),log:t,comboName:d,comboStrategy:f,comboStickyLimit:k})}let u=(0,p.R8)([d],m,j);if(u.length>1){let e=u.filter(a=>a!==d);return t.info("CHAT",`Capacity adapter for [${[...m].join(",")}] on "${d}" → trying ${u.join(", ")}`),(0,o.Pr)({body:c,models:u,handleSingleModel:(0,p.ar)((c,d)=>y(c,d,b,a,g),e),log:t,comboName:d,comboStrategy:(0,p.vB)(m,j)})}return y(c,d,b,a,g)}async function y(a,b,d=null,e=null,q=null){let w=await (0,i.mA)(b);if(!w.provider){let c=await (0,i.d_)(b);if(c){let f=await (0,h.mt)(),g=f.comboStrategies||{},i=g[b]?.fallbackStrategy||f.comboStrategy||"fallback",j=(0,o.t8)(a),k=(0,p.R8)(c,j,f),l=k.filter(a=>!c.includes(a));if("fusion"===i)return t.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,o.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let f=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};f={...d,body:c}}return y(a,b,f,e,q)},log:t,comboName:b,judgeModel:g[b]?.judgeModel,tuning:g[b]?.fusionTuning});let m=f.comboStickyRoundRobinLimit;return t.info("CHAT",`Combo "${b}" with ${k.length} models (strategy: ${i}, sticky: ${m})`),(0,o.Pr)({body:a,models:k,handleSingleModel:(0,p.ar)((a,b)=>y(a,b,d,e,q),l),log:t,comboName:b,comboStrategy:i,comboStickyLimit:m})}return t.warn("CHAT","Invalid model format",{model:b}),(0,n.yj)(r.gx.BAD_REQUEST,"Invalid model format")}let{provider:x,model:z}=w,A=e?.headers?.get("user-agent")||"",B=new Set,C=null,D=null;for(;;){let b=await (0,f.c1)(x,B,z);if(!b||b.allRateLimited){if(b?.allRateLimited){let a=C||b.lastError||"Unavailable",c=D||Number(b.lastErrorCode)||r.gx.SERVICE_UNAVAILABLE;return t.warn("CHAT",`[${x}/${z}] ${a} (${b.retryAfterHuman})`),(0,n.wO)(c,`[${x}/${z}] ${a}`,b.retryAfter,b.retryAfterHuman)}if(0===B.size)return t.warn("AUTH",`No active credentials for provider: ${x}`),(0,n.yj)(r.gx.NOT_FOUND,`No active credentials for provider: ${x}`);return t.warn("CHAT","No more accounts available",{provider:x}),(0,n.yj)(D||r.gx.SERVICE_UNAVAILABLE,C||"All accounts unavailable")}let i=await (0,u.checkAndRefreshToken)(x,b);"antigravity"!==x&&"gemini-cli"!==x||i.projectId||(0,v.eG)(b.connectionId,i.accessToken,x).then(a=>{a&&(0,u.vN)(b.connectionId,{projectId:a}).catch(()=>{})}).catch(()=>{});let o=await (0,h.mt)(),p=(o.providerThinking||{})[x]||null,w=await (0,j.wk)({body:{...a,model:`${x}/${z}`},modelInfo:{provider:x,model:z},credentials:i,log:t,clientRawRequest:d,connectionId:b.connectionId,userAgent:A,apiKey:q,ccFilterNaming:!!o.ccFilterNaming,rtkEnabled:!!o.rtkEnabled,headroomEnabled:!!o.headroomEnabled,headroomUrl:o.headroomUrl||k.ag,headroomCompressUserMessages:!!o.headroomCompressUserMessages,headroomTimeoutMs:o.headroomTimeoutMs,cavemanEnabled:!!o.cavemanEnabled,cavemanLevel:o.cavemanLevel||"full",ponytailEnabled:!!o.ponytailEnabled,ponytailLevel:o.ponytailLevel||"full",pxpipeEnabled:!!o.pxpipeEnabled,pxpipeMinChars:o.pxpipeMinChars,pxpipeTimeoutMs:o.pxpipeTimeoutMs,pxpipeTransform:o.pxpipeEnabled?await (0,l.RG)():null,onPxpipeEvent:m.T0,providerThinking:p,sourceFormatOverride:e?.url?(0,s.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>{await (0,u.vN)(b.connectionId,{...a,existingProviderSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,f.Pt)(b.connectionId,b,z)}});if(w.success)return w.response;let y=null,E=w.resetsAtMs;if("antigravity"===x&&(409===w.status||429===w.status)&&(y=await (0,g.XJ)(b.connectionId,w.status,z,i.accessToken,b.providerSpecificData))&&(E=y),"antigravity"===x&&w.status>=400&&w.status<=403)try{let{isPermanentAntigravityAuthFailure:a,maybeBreakAntigravityDomain:d}=await c.e(3666).then(c.bind(c,63666));if(a(w.status,w.error)){let a=b.email||b.connectionName||"",c=await d(a,x);if(c.broken){for(let a of[]);t.warn("AG_DOMAIN_BREAKER",`${c.domain} | bulk-disabled ${c.disabledCount} accounts -> skip domain`)}}}catch{}if("antigravity"===x&&y||(await (0,f.vk)(b.connectionId,w.status,w.error,x,z,E)).shouldFallback){t.warn("FALLBACK",`⇄ ACC:${b.connectionName} UNAVAILABLE (${w.status}) → NEXT ACCOUNT`),B.add(b.connectionId),C=w.error,D=w.status;continue}return w.response}}[e,j]=w.then?(await w)():w,d()}catch(a){d(a)}})},87155:(a,b,c)=>{c.d(b,{CG:()=>q,ED:()=>u,S1:()=>s,XF:()=>j,_g:()=>t,no:()=>r,sW:()=>w});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(79646),i=c(49120);let j=g().join(i.n,"pxpipe"),k="pxpipe-proxy",l=g().join(j,"install.log"),m="win32"===process.platform,n=[...m?[`${process.env.ProgramFiles||""}\\nodejs`,`${process.env.APPDATA||""}\\npm`]:["/usr/local/bin","/opt/homebrew/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],process.env.PATH||""].filter(Boolean).join(g().delimiter),o=null;function p(){return g().join(j,"node_modules",k)}function q(){return g().join(p(),"dist","core","library.js")}function r(){try{let a=(0,h.execSync)(`${m?"where":"which"} npm`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:n}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function s(){try{let a=g().join(p(),"package.json");if(!e().existsSync(a)||!e().existsSync(q()))return{installed:!1,version:null,path:null};let b=JSON.parse(e().readFileSync(a,"utf8"));return{installed:!0,version:b.version||null,path:p()}}catch{return{installed:!1,version:null,path:null}}}function t(){return null!==o}function u(){return o||(o=v().finally(()=>{o=null}))}async function v(){let a=r();if(!a){let a=Error("npm not found on PATH — Node.js/npm is required to install PXPIPE");throw a.code="NPM_NOT_FOUND",a}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let b=g().join(j,"package.json");e().existsSync(b)||e().writeFileSync(b,JSON.stringify({name:"9router-pxpipe-host",private:!0},null,2));let c=e().openSync(l,"a");e().writeSync(c,`
1
+ "use strict";exports.id=7807,exports.ids=[7807],exports.modules={3894:(a,b,c)=>{c.d(b,{F_:()=>g,Nc:()=>h,Qh:()=>t,Su:()=>q,ag:()=>o,kI:()=>p,rl:()=>u,sy:()=>s});var d=c(79646),e=c(33873),f=c.n(e);let g=["code","ml"],h={code:["tree-sitter","tree-sitter-language-pack"],ml:["torch","huggingface-hub"]},i="win32"===process.platform,j=i?"where":"which",k=i?[`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python313\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python312\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python311\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python310\\Scripts`,`${process.env.APPDATA||""}\\Python\\Python313\\Scripts`]:["/usr/local/bin","/opt/homebrew/bin","/Library/Frameworks/Python.framework/Versions/3.13/bin","/Library/Frameworks/Python.framework/Versions/3.12/bin","/Library/Frameworks/Python.framework/Versions/3.11/bin","/Library/Frameworks/Python.framework/Versions/3.10/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],l=[...k,process.env.PATH||""].filter(Boolean).join(f().delimiter),m=["python3.13","python3.12","python3.11","python3.10","python3","python"],n=new Set(["localhost","127.0.0.1","::1","[::1]","0.0.0.0"]),o=process.env.HEADROOM_URL||"http://localhost:8787";function p(){try{let a=(0,d.execSync)(`${j} headroom`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function q(){let a=null;for(let b of function(){let a=[],b=p();if(b){let c=f().dirname(b);for(let b of i?["python.exe","python3.exe"]:["python3","python3.13","python"])a.push(f().join(c,b))}for(let b of k)if(b)for(let c of m)a.push(f().join(b,i?`${c}.exe`:c));return a.push(...m),a}())try{let c=(0,d.execSync)(`${b} --version`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim().match(/(\d+)\.(\d+)/);if(!c)continue;let[e,f]=[parseInt(c[1],10),parseInt(c[2],10)];if(!(e>3||3===e&&f>=10))continue;a||(a=b);try{return(0,d.execFileSync)(b,["-m","pip","show","headroom-ai"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}),b}catch{}}catch{}return a}async function r(a){if(!a)return!1;let b=String(a).replace(/\/$/,"");try{return(await fetch(`${b}/health`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}function s(a){try{let b=new URL(a);return n.has(b.hostname)}catch{return!1}}async function t(a){let b=p(),c=q(),d=!!b,e=await r(a),f=s(a),g=d?u(c):{installed:!1,version:null,extras:{code:!1,ml:!1}};return{installed:d,path:b,running:e,python:c,localUrl:f,canStart:d&&f,version:g.version,extras:g.extras}}function u(a){let b=a||q();if(!b)return{installed:!1,version:null,extras:{code:!1,ml:!1}};try{let a=(0,d.execFileSync)(b,["-m","pip","list","--format=json","--disable-pip-version-check"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}).toString(),c=JSON.parse(a),e=new Set(c.map(a=>String(a.name||"").toLowerCase()));if(!e.has("headroom-ai"))return{installed:!1,version:null,extras:{code:!1,ml:!1}};let f=c.find(a=>a.name?.toLowerCase()==="headroom-ai")?.version||null,i={};for(let a of g)i[a]=h[a].some(a=>e.has(a));return{installed:!0,version:f,extras:i}}catch{return{installed:!1,version:null,extras:{code:!1,ml:!1}}}}},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>l,vB:()=>h});var d=c(24);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){var c;let d=Array.isArray(c=b?.capacityAdapter?.[a])?{enabled:!0,roundRobin:!1,models:c.map(a=>a?.model||a).filter(Boolean)}:c&&"object"==typeof c?{enabled:!1!==c.enabled,roundRobin:!!c.roundRobin,models:Array.isArray(c.models)?c.models.filter(Boolean):[]}:{enabled:!1,roundRobin:!1,models:[]};return d.enabled&&0===d.models.length?{...d,models:["oc/mimo-v2.5-free"]}:d}function h(a,b){for(let c of[...a||[]].filter(a=>f.has(a))){let{enabled:a,models:d}=g(c,b);if(a&&0!==d.length)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c=a.indexOf("/"),e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.getCapabilitiesForModel)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a){return"string"==typeof a?a.length:Array.isArray(a)?a.reduce((a,b)=>a+("string"==typeof b?.text?b.text.length:50),0):0}function l(a,b){let c=new Set(b);return 0===c.size?a:(b,e,...f)=>{if(c.has(e)){let a=e.indexOf("/"),c=a>0?e.slice(0,a):"",f=a>0?e.slice(a+1):e,{contextWindow:g}=(0,d.getCapabilitiesForModel)(c,f);b=function(a,b){let c=Array.isArray(a.messages)?"messages":Array.isArray(a.input)?"input":Array.isArray(a.contents)?"contents":null;if(!c)return a;let d=a[c];if(!d||0===d.length)return a;let e=a=>"system"===a||"developer"===a,f=d.filter(a=>e(a?.role)),g=d.filter(a=>!e(a?.role));if(0===g.length)return a;let h=a=>"assistant"===a||"model"===a,i=g.length-1;for(;i>=0&&!h(g[i]?.role);)i--;let j=g.slice(i+1),l=g.slice(0,i+1);if(0===l.length)return a;let m=a=>a.content??a.parts,n=.8*(b||2e5)*4,o=l.slice(0,6),p=f.concat(o,j).reduce((a,b)=>a+k(m(b)),0);for(;p>n&&o.length>0;)p-=k(m(o.pop()));return o.length===l.length?a:{...a,[c]:[...f,...o,...j]}}(b,g)}return a(b,e,...f)}}},24253:(a,b,c)=>{c.d(b,{Mo:()=>h,RG:()=>l,V:()=>i,Y8:()=>k,xl:()=>m});var d=c(1932),e=c(87155);let f=null,g=null;function h(){return f?{loaded:!0,version:f.version,loadedAt:f.loadedAt}:{loaded:!1}}async function i(){return f||g||(g=j().finally(()=>{g=null}))}async function j(){let a=(0,e.S1)();if(!a.installed){let a=Error("PXPIPE is not installed");throw a.code="NOT_INSTALLED",a}let b=`${(0,d.pathToFileURL)((0,e.CG)()).href}?v=${encodeURIComponent(a.version||"0")}`,c=await import(b);if("function"!=typeof c.transformAnthropicMessages)throw Error("installed pxpipe package does not export transformAnthropicMessages");return f={module:c,version:a.version,loadedAt:Date.now()}}function k(){let a=!!f;return f=null,a}async function l({autoLoad:a=!0}={}){try{if(!f&&!a)return null;let{module:b}=await i();return b.transformAnthropicMessages}catch{return null}}async function m(){let a=Date.now(),{module:b}=await i(),c=new TextEncoder().encode(JSON.stringify({model:"claude-fable-5",max_tokens:16,messages:[{role:"user",content:"ping"}]})),d=await b.transformAnthropicMessages({body:c,model:"claude-fable-5"});if(!d||"boolean"!=typeof d.applied||!(d.body instanceof Uint8Array))throw Error("transform returned an unexpected shape");return{ok:!0,reason:d.reason,durationMs:Date.now()-a}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(98236);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"},h=new Set(Object.keys(g));for(let a of f.default)for(let b of(h.add(a.id),a.alias&&h.add(a.alias),a.aliases||[]))h.add(b);async function i(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){if(!h.has(c.providerAlias)){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model}}return{provider:c.provider,model:c.model}}return await (0,d.Dj)(c.model)?{provider:null,model:c.model}:(0,e.js)(a,d.OM)}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},45699:(a,b,c)=>{c.d(b,{Xg:()=>r,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>t,ez:()=>n,ux:()=>m,OA:()=>o,kt:()=>p,KC:()=>s,SM:()=>i});var d=c(35024),e=c(98236),f=c(26070),g=c(99511);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}let k=new Set(["kr","kiro"]);function l(a,b,c){if(!a)return;let d=a.find(a=>a.id===b);if(d)return d;if(!k.has(c))return;let e=(0,g.Kq)(b);if(e!==b)return a.find(a=>a.id===e)}function m(a,b){let c=f.vq[a];return c?(0,g.gr)(l(c,b,a)):null}function n(a,b){let c=f.vq[a];return c?(0,g.ec)(l(c,b,a)):null}function o(a,b){let c=f.vq[a];if(!c)return null;let d=l(c,b,a);return d?.kind||d?.type||null}function p(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",e=d?b.slice(0,c.index).trim():b,g=l(f.vq[a],e,a),i=g?.upstreamModelId||g?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof e&&e.endsWith(h)?e.slice(0,-h.length)+d:e+d}let q=Object.fromEntries(e.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),r=Object.fromEntries(Object.keys(d.xq).map(a=>[a,q[a]||a]));function s(a){let b=r[a]||a;return f.vq[b]||[]}function t(a,b){return(0,g.g5)(l(f.vq[a],b,a))}},46945:(a,b,c)=>{c.d(b,{V:()=>e});let d=/\[1m\]$/i;function e(a){if("string"!=typeof a)return{model:a,contextMarker:null};let b=a.trim(),c=b.match(d);return c?{model:b.slice(0,-c[0].length),contextMarker:c[0].slice(1,-1).toLowerCase()}:{model:a,contextMarker:null}}},74388:(a,b,c)=>{c.d(b,{Az:()=>l,SP:()=>o,T0:()=>k});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(87155);let i=g().join(h.XF,"events.jsonl"),j=g().join(h.XF,"events.jsonl.1");function k(a){try{e().existsSync(h.XF)||e().mkdirSync(h.XF,{recursive:!0});try{e().statSync(i).size>5242880&&e().renameSync(i,j)}catch{}e().appendFile(i,JSON.stringify({ts:Date.now(),...a})+"\n",()=>{})}catch{}}function l({sinceMs:a=null,limit:b=null}={}){let c=[];for(let b of[j,i])try{if(!e().existsSync(b))continue;for(let d of e().readFileSync(b,"utf8").split("\n"))if(d)try{let b=JSON.parse(d);if(a&&b.ts<a)continue;c.push(b)}catch{}}catch{}return c.sort((a,b)=>a.ts-b.ts),b?c.slice(-b):c}function m(){return{requests:0,compressed:0,bypassed:0,errors:0,tokensBeforeEst:0,tokensAfterEst:0,tokensSavedEst:0,savedPct:0,imagesGenerated:0,compressionTimeMs:0,avgCompressionMs:0}}function n(a,b){a.requests++,b.applied?(a.compressed++,a.tokensBeforeEst+=b.tokensBeforeEst||0,a.tokensAfterEst+=b.tokensAfterEst||0,a.tokensSavedEst+=b.tokensSavedEst||0,a.imagesGenerated+=b.imageCount||0,a.compressionTimeMs+=b.durationMs||0):"transform_error"===b.reason||"timeout"===b.reason?a.errors++:a.bypassed++}function o({timelineDays:a=30,recentLimit:b=100}={}){let c=l(),d=Date.now(),e=new Date(new Date(d).setHours(0,0,0,0)).getTime(),f={all:m(),today:m(),yesterday:m(),last7d:m(),last30d:m()},g=new Map;for(let b=a-1;b>=0;b--){let a=new Date(e-864e5*b);g.set(a.toISOString().slice(0,10),{date:a.toISOString().slice(0,10),tokensSavedEst:0,compressed:0,requests:0})}for(let a of c){n(f.all,a),a.ts>=e?n(f.today,a):a.ts>=e-864e5&&n(f.yesterday,a),a.ts>=d-6048e5&&n(f.last7d,a),a.ts>=d-2592e6&&n(f.last30d,a);let b=new Date(a.ts).toISOString().slice(0,10),c=g.get(b);c&&(c.requests++,a.applied&&(c.compressed++,c.tokensSavedEst+=a.tokensSavedEst||0))}for(let a of Object.values(f))a.savedPct=a.tokensBeforeEst>0?+(a.tokensSavedEst/a.tokensBeforeEst*100).toFixed(2):0,a.avgCompressionMs=a.compressed>0?Math.round(a.compressionTimeMs/a.compressed):0;return{windows:f,timeline:[...g.values()],recent:c.slice(-b).reverse()}}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{P:()=>y});var e=c(48895),f=c(80238),g=c(45974),h=c(89718),i=c(38775),j=c(92500),k=c(3894),l=c(24253),m=c(74388),n=c(43659),o=c(18910),p=c(17603),q=c(27349),r=c(41004),s=c(14170),t=c(7803),u=c(67828),v=c(38160),w=c(46945),x=a([e,j]);async function y(a,b=null){let c;try{c=await a.json()}catch{return t.warn("CHAT","Invalid JSON body"),(0,n.yj)(r.gx.BAD_REQUEST,"Invalid JSON body")}b||(b={endpoint:new URL(a.url).pathname,body:c,headers:Object.fromEntries(a.headers.entries())});let{model:d,contextMarker:e}=(0,w.V)(c.model);e&&(c.model=d);let g=a.headers.get("Authorization"),j=(0,f.Tr)(a);if(g&&j){let a=t.maskKey(j);t.debug("AUTH",`API Key: ${a}`)}else t.debug("AUTH","No API key provided (local mode)");let k=await (0,h.mt)();if(k.requireApiKey){if(!j)return t.warn("AUTH","Missing API key (requireApiKey=true)"),(0,n.yj)(r.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(j))return t.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,n.yj)(r.gx.UNAUTHORIZED,"Invalid API key")}if(!d)return t.warn("CHAT","Missing model"),(0,n.yj)(r.gx.BAD_REQUEST,"Missing model");let l=a?.headers?.get("user-agent")||"",m=(0,q.c)(c,d,l,!!k.ccFilterNaming);if(m)return m.response||m;let s=(0,o.t8)(c),u=await (0,i.d_)(d);if(u){let e=k.comboStrategies||{},f=e[d]?.fallbackStrategy||k.comboStrategy||"fallback",g=(0,p.R8)(u,s,k),h=g.filter(a=>!u.includes(a));if("fusion"===f)return t.info("CHAT",`Combo "${d}" with ${u.length} models (strategy: fusion)`),(0,o.vt)({body:c,models:u,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return z(c,d,f,a,j)},log:t,comboName:d,judgeModel:e[d]?.judgeModel,tuning:e[d]?.fusionTuning});let i=k.comboStickyRoundRobinLimit;return t.info("CHAT",`Combo "${d}" with ${g.length} models (strategy: ${f}, sticky: ${i})`),(0,o.Pr)({body:c,models:g,handleSingleModel:(0,p.ar)((c,d)=>z(c,d,b,a,j),h),log:t,comboName:d,comboStrategy:f,comboStickyLimit:i})}let v=(0,p.R8)([d],s,k);if(v.length>1){let e=v.filter(a=>a!==d);return t.info("CHAT",`Capacity adapter for [${[...s].join(",")}] on "${d}" → trying ${v.join(", ")}`),(0,o.Pr)({body:c,models:v,handleSingleModel:(0,p.ar)((c,d)=>z(c,d,b,a,j),e),log:t,comboName:d,comboStrategy:(0,p.vB)(s,k)})}return z(c,d,b,a,j)}async function z(a,b,d=null,e=null,q=null){let w=await (0,i.mA)(b);if(!w.provider){let c=await (0,i.d_)(b);if(c){let f=await (0,h.mt)(),g=f.comboStrategies||{},i=g[b]?.fallbackStrategy||f.comboStrategy||"fallback",j=(0,o.t8)(a),k=(0,p.R8)(c,j,f),l=k.filter(a=>!c.includes(a));if("fusion"===i)return t.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,o.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let f=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};f={...d,body:c}}return z(a,b,f,e,q)},log:t,comboName:b,judgeModel:g[b]?.judgeModel,tuning:g[b]?.fusionTuning});let m=f.comboStickyRoundRobinLimit;return t.info("CHAT",`Combo "${b}" with ${k.length} models (strategy: ${i}, sticky: ${m})`),(0,o.Pr)({body:a,models:k,handleSingleModel:(0,p.ar)((a,b)=>z(a,b,d,e,q),l),log:t,comboName:b,comboStrategy:i,comboStickyLimit:m})}return t.warn("CHAT","Invalid model format",{model:b}),(0,n.yj)(r.gx.BAD_REQUEST,"Invalid model format")}let{provider:x,model:y}=w,A=e?.headers?.get("user-agent")||"",B=new Set,C=null,D=null;for(;;){let b=await (0,f.c1)(x,B,y);if(!b||b.allRateLimited){if(b?.allRateLimited){let a=C||b.lastError||"Unavailable",c=r.gx.SERVICE_UNAVAILABLE;return t.warn("CHAT",`[${x}/${y}] ${a} (${b.retryAfterHuman})`),(0,n.wO)(c,`[${x}/${y}] ${a}`,b.retryAfter,b.retryAfterHuman)}if(0===B.size)return t.warn("AUTH",`No active credentials for provider: ${x}`),(0,n.yj)(r.gx.NOT_FOUND,`No active credentials for provider: ${x}`);return t.warn("CHAT","No more accounts available",{provider:x}),(0,n.yj)(D||r.gx.SERVICE_UNAVAILABLE,C||"All accounts unavailable")}let i=await (0,u.checkAndRefreshToken)(x,b);if(("antigravity"===x||"gemini-cli"===x)&&!i.projectId){let a=await (0,v.eG)(b.connectionId,i.accessToken,x);a&&(i.projectId=a,(0,u.vN)(b.connectionId,{projectId:a}).catch(()=>{}))}let o=await (0,h.mt)(),p=(o.providerThinking||{})[x]||null,w=await (0,j.wk)({body:{...a,model:`${x}/${y}`},modelInfo:{provider:x,model:y},credentials:i,log:t,clientRawRequest:d,connectionId:b.connectionId,userAgent:A,apiKey:q,ccFilterNaming:!!o.ccFilterNaming,rtkEnabled:!!o.rtkEnabled,headroomEnabled:!!o.headroomEnabled,headroomUrl:o.headroomUrl||k.ag,headroomCompressUserMessages:!!o.headroomCompressUserMessages,headroomTimeoutMs:o.headroomTimeoutMs,cavemanEnabled:!!o.cavemanEnabled,cavemanLevel:o.cavemanLevel||"full",ponytailEnabled:!!o.ponytailEnabled,ponytailLevel:o.ponytailLevel||"full",pxpipeEnabled:!!o.pxpipeEnabled,pxpipeMinChars:o.pxpipeMinChars,pxpipeTimeoutMs:o.pxpipeTimeoutMs,pxpipeTransform:o.pxpipeEnabled?await (0,l.RG)():null,onPxpipeEvent:m.T0,providerThinking:p,sourceFormatOverride:e?.url?(0,s.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>{await (0,u.vN)(b.connectionId,{...a,existingProviderSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,f.Pt)(b.connectionId,b,y),(0,g.vO)(b.connectionId,y)}});if(w.success)return w.response;let z=null,E=w.resetsAtMs;if("antigravity"===x&&(409===w.status||429===w.status)&&(z=await (0,g.XJ)(b.connectionId,w.status,y,i.accessToken,b.providerSpecificData))&&(E=z),"antigravity"===x&&w.status>=400&&w.status<=403)try{let{isPermanentAntigravityAuthFailure:a,maybeBreakAntigravityDomain:d}=await c.e(3666).then(c.bind(c,63666));if(a(w.status,w.error)){let a=b.email||b.connectionName||"",c=await d(a,x);c.broken&&t.warn("AG_DOMAIN_BREAKER",`${c.domain} | bulk-disabled ${c.disabledCount} accounts -> skip domain`)}}catch{}if("antigravity"===x&&z||(await (0,f.vk)(b.connectionId,w.status,w.error,x,y,E)).shouldFallback){t.warn("FALLBACK",`⇄ ACC:${b.connectionName} UNAVAILABLE (${w.status}) → NEXT ACCOUNT`),B.add(b.connectionId),C=w.error,D=w.status;continue}return w.response}}[e,j]=x.then?(await x)():x,d()}catch(a){d(a)}})},87155:(a,b,c)=>{c.d(b,{CG:()=>q,ED:()=>u,S1:()=>s,XF:()=>j,_g:()=>t,no:()=>r,sW:()=>w});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(79646),i=c(49120);let j=g().join(i.n,"pxpipe"),k="pxpipe-proxy",l=g().join(j,"install.log"),m="win32"===process.platform,n=[...m?[`${process.env.ProgramFiles||""}\\nodejs`,`${process.env.APPDATA||""}\\npm`]:["/usr/local/bin","/opt/homebrew/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],process.env.PATH||""].filter(Boolean).join(g().delimiter),o=null;function p(){return g().join(j,"node_modules",k)}function q(){return g().join(p(),"dist","core","library.js")}function r(){try{let a=(0,h.execSync)(`${m?"where":"which"} npm`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:n}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function s(){try{let a=g().join(p(),"package.json");if(!e().existsSync(a)||!e().existsSync(q()))return{installed:!1,version:null,path:null};let b=JSON.parse(e().readFileSync(a,"utf8"));return{installed:!0,version:b.version||null,path:p()}}catch{return{installed:!1,version:null,path:null}}}function t(){return null!==o}function u(){return o||(o=v().finally(()=>{o=null}))}async function v(){let a=r();if(!a){let a=Error("npm not found on PATH — Node.js/npm is required to install PXPIPE");throw a.code="NPM_NOT_FOUND",a}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let b=g().join(j,"package.json");e().existsSync(b)||e().writeFileSync(b,JSON.stringify({name:"9router-pxpipe-host",private:!0},null,2));let c=e().openSync(l,"a");e().writeSync(c,`
2
2
  [${new Date().toISOString()}] npm install ${k}@latest
3
3
  `),await new Promise((b,d)=>{let e=(0,h.spawn)(a,["install",`${k}@latest`,"--no-audit","--no-fund","--omit=dev"],{cwd:j,stdio:["ignore",c,c],windowsHide:!0,env:{...process.env,PATH:n}}),f=setTimeout(()=>{e.kill("SIGKILL"),d(Error("npm install timed out after 5 minutes — see install.log"))},3e5);e.once("error",a=>{clearTimeout(f),d(a)}),e.once("exit",a=>{clearTimeout(f),0===a?b():d(Error(`npm install exited with code ${a} — see install.log`))})}).finally(()=>e().closeSync(c));let d=s();if(!d.installed)throw Error("install finished but package is missing — see install.log");return d}function w(a=200){try{if(!e().existsSync(l))return"";return e().readFileSync(l,"utf8").split(/\r?\n/).filter(Boolean).slice(-a).join("\n")}catch{return""}}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7828,exports.ids=[7828],exports.modules={38160:(a,b,c)=>{c.d(b,{eG:()=>h});var d=c(75924);let e=new Map,f=new Map,g=null;async function h(a,b,c="gemini-cli"){if(!a||!b)return null;let d=e.get(a);if(d&&Date.now()-d.fetchedAt<36e5)return d.projectId;if(f.has(a))return f.get(a).promise;let g=new AbortController,j=(async()=>{try{let d=await i(b,g.signal,c);if(d)return e.set(a,{projectId:d,fetchedAt:Date.now()}),d;return console.warn("[ProjectId] could not fetch projectId for connection",a.slice(0,8)),null}catch(a){return console.warn(`[ProjectId] Error fetching project ID: ${a.message}`),null}finally{f.delete(a)}})();return f.set(a,{promise:j,controller:g,startedAt:Date.now()}),j}async function i(a,b,c){let e=d.nZ[c]||d.nZ["gemini-cli"],f="antigravity"===c?d.j5:d.Ic,g=await fetch(e.loadCodeAssist,{method:"POST",headers:{...f,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),i=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(i)return i;let k="legacy-tier";if(Array.isArray(h.allowedTiers)){for(let a of h.allowedTiers)if(a&&"object"==typeof a&&!0===a.isDefault&&a.id&&"string"==typeof a.id&&a.id.trim()){k=a.id.trim();break}}return j(a,k,b,e,c)}async function j(a,b,c,e,f){console.log(`[ProjectId] Onboarding user with tier: ${b}`);let g={tierId:b,metadata:d.zv},h="antigravity"===f?d.j5:d.Ic;for(let b=1;b<=5&&!c?.aborted;b++){let d=new AbortController,f=setTimeout(()=>d.abort(),3e4),i=()=>d.abort();c?.addEventListener("abort",i);try{let c=await fetch(e.onboardUser,{method:"POST",headers:{...h,Authorization:`Bearer ${a}`},body:JSON.stringify(g),signal:d.signal});if(clearTimeout(f),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let i=await c.json();if(!0===i.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(i);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;return console.warn("[ProjectId] onboardUser done but no project_id in response (skipping retries)"),null}console.log(`[ProjectId] Onboard attempt ${b}/5: not done yet, waiting...`),await new Promise(a=>setTimeout(a,2e3))}catch(a){if(clearTimeout(f),"AbortError"===a.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(5===b)return console.warn(`[ProjectId] onboardUser failed after 5 attempts: ${a.message}`),null;console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${a.message}, retrying...`),await new Promise(a=>setTimeout(a,2e3))}finally{clearTimeout(f),c?.removeEventListener("abort",i)}}return null}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()},67828:(a,b,c)=>{c.d(b,{I9:()=>j,Wm:()=>k,checkAndRefreshToken:()=>o,vN:()=>n});var d=c(7803),e=c(89718),f=c(38160),g=c(8521),h=c(93943);let i=g.oD,j=(a,b,c)=>(0,g.I9)(a,b,c,d),k=a=>(0,g.Wm)(a,d);function l(a){return new Date(Date.now()+1e3*a).toISOString()}function m(a){if(!a)return null;let b=new Date(a);return Number.isFinite(b.getTime())?b.toISOString():null}async function n(a,b){try{let c={};if(b.accessToken&&(c.accessToken=b.accessToken),b.refreshToken&&(c.refreshToken=b.refreshToken),b.idToken&&(c.idToken=b.idToken),b.lastRefreshAt&&(c.lastRefreshAt=b.lastRefreshAt),b.expiresAt&&(c.expiresAt=b.expiresAt),b.expiresIn)c.expiresAt=l(b.expiresIn),c.expiresIn=b.expiresIn;else if(b.expiresAt){let a=m(b.expiresAt);a&&(c.expiresAt=a,c.expiresIn=Math.max(1,Math.floor((new Date(a).getTime()-Date.now())/1e3)))}b.providerSpecificData&&(c.providerSpecificData={...b.existingProviderSpecificData||{},...b.providerSpecificData}),(b.copilotToken||b.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||b.existingProviderSpecificData||{},...b.copilotToken?{copilotToken:b.copilotToken}:{},...b.copilotTokenExpiresAt?{copilotTokenExpiresAt:b.copilotTokenExpiresAt}:{}}),b.projectId&&(c.projectId=b.projectId);let f=await (0,e.updateProviderConnection)(a,c);return d.info("TOKEN_REFRESH","Credentials updated in localDb",{connectionId:a,success:!!f}),!!f}catch(b){return d.error("TOKEN_REFRESH","Error updating credentials in localDb",{connectionId:a,error:b.message}),!1}}async function o(a,b,c={}){let e={...b};if(!e.connectionId&&e.id&&(e.connectionId=e.id),c?.force===!0||(0,h.fp)(a,e)){let b=e.expiresAt?new Date(e.expiresAt).getTime():null,c=b?b-Date.now():null,i=(0,g.Og)(a);d.info("TOKEN_REFRESH","Refreshing provider credentials proactively",{provider:a,expiresIn:null===c?null:Math.round(c/1e3),refreshLeadMs:i,lastRefreshAt:e.lastRefreshAt||null});let j=await (0,h.Vq)(a,e,d);if(j?.accessToken||j?.apiKey||j?.copilotToken){let b={...j,existingProviderSpecificData:e.providerSpecificData};await n(e.connectionId,b),function(a,b,c){("antigravity"===a||"gemini-cli"===a)&&b&&c&&(0,f.eG)(b,c).then(a=>{a&&n(b,{projectId:a}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to persist refreshed projectId",{connectionId:b,error:a?.message??a})})}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to fetch projectId after token refresh",{connectionId:b,error:a?.message??a})})}(a,(e={...e,...j,expiresAt:j.expiresIn?l(j.expiresIn):m(j.expiresAt)||j.expiresAt||e.expiresAt,providerSpecificData:j.providerSpecificData?{...e.providerSpecificData,...j.providerSpecificData}:e.providerSpecificData}).connectionId,e.accessToken)}}if("github"===a){let b=e.providerSpecificData?.copilotToken,c=(e.providerSpecificData?.copilotTokenExpiresAt?1e3*e.providerSpecificData.copilotTokenExpiresAt:0)-Date.now();if(!b||c<i){let f;d.info("TOKEN_REFRESH","Copilot token expiring soon or missing, refreshing proactively",{provider:a,expiresIn:b?Math.round(c/1e3):"missing"});let h=await (f=e.accessToken,(0,g.jR)(f,d));if(h){let a={...e.providerSpecificData,copilotToken:h.token,copilotTokenExpiresAt:h.expiresAt};await n(e.connectionId,{providerSpecificData:a}),e.providerSpecificData=a,e.copilotToken=h.token}}}return e}}};
1
+ "use strict";exports.id=7828,exports.ids=[7828],exports.modules={38160:(a,b,c)=>{c.d(b,{Ou:()=>i,eG:()=>h});var d=c(75924);let e=new Map,f=new Map,g=null;async function h(a,b,c="gemini-cli"){if(!a||!b)return null;let d=e.get(a);if(d&&Date.now()-d.fetchedAt<36e5)return d.projectId;if(f.has(a))return f.get(a).promise;let g=new AbortController,i=(async()=>{try{let d=await j(b,g.signal,c);if(d)return e.set(a,{projectId:d,fetchedAt:Date.now()}),d;return console.warn("[ProjectId] could not fetch projectId for connection",a.slice(0,8)),null}catch(a){return console.warn(`[ProjectId] Error fetching project ID: ${a.message}`),null}finally{f.delete(a)}})();return f.set(a,{promise:i,controller:g,startedAt:Date.now()}),i}function i(a){e.delete(a)}async function j(a,b,c){let e=d.nZ[c]||d.nZ["gemini-cli"],f="antigravity"===c?d.j5:d.Ic,g=await fetch(e.loadCodeAssist,{method:"POST",headers:{...f,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),i=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(i)return i;let j="legacy-tier";if(Array.isArray(h.allowedTiers)){for(let a of h.allowedTiers)if(a&&"object"==typeof a&&!0===a.isDefault&&a.id&&"string"==typeof a.id&&a.id.trim()){j=a.id.trim();break}}return k(a,j,b,e,c)}async function k(a,b,c,e,f){console.log(`[ProjectId] Onboarding user with tier: ${b}`);let g={tierId:b,metadata:d.zv},h="antigravity"===f?d.j5:d.Ic;for(let b=1;b<=5&&!c?.aborted;b++){let d=new AbortController,f=setTimeout(()=>d.abort(),3e4),i=()=>d.abort();c?.addEventListener("abort",i);try{let c=await fetch(e.onboardUser,{method:"POST",headers:{...h,Authorization:`Bearer ${a}`},body:JSON.stringify(g),signal:d.signal});if(clearTimeout(f),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let i=await c.json();if(!0===i.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(i);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;throw Error("onboardUser done but no project_id in response")}console.log(`[ProjectId] Onboard attempt ${b}/5: not done yet, waiting...`),await new Promise(a=>setTimeout(a,2e3))}catch(a){if(clearTimeout(f),"AbortError"===a.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(5===b)return console.warn(`[ProjectId] onboardUser failed after 5 attempts: ${a.message}`),null;console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${a.message}, retrying...`),await new Promise(a=>setTimeout(a,2e3))}finally{clearTimeout(f),c?.removeEventListener("abort",i)}}return null}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()},67828:(a,b,c)=>{c.d(b,{I9:()=>j,Wm:()=>k,checkAndRefreshToken:()=>o,vN:()=>n});var d=c(7803),e=c(89718),f=c(38160),g=c(8521),h=c(93943);let i=g.oD,j=(a,b,c)=>(0,g.I9)(a,b,c,d),k=a=>(0,g.Wm)(a,d);function l(a){return new Date(Date.now()+1e3*a).toISOString()}function m(a){if(!a)return null;let b=new Date(a);return Number.isFinite(b.getTime())?b.toISOString():null}async function n(a,b){try{let c={};if(b.accessToken&&(c.accessToken=b.accessToken),b.refreshToken&&(c.refreshToken=b.refreshToken),b.idToken&&(c.idToken=b.idToken),b.lastRefreshAt&&(c.lastRefreshAt=b.lastRefreshAt),b.expiresAt&&(c.expiresAt=b.expiresAt),b.expiresIn)c.expiresAt=l(b.expiresIn),c.expiresIn=b.expiresIn;else if(b.expiresAt){let a=m(b.expiresAt);a&&(c.expiresAt=a,c.expiresIn=Math.max(1,Math.floor((new Date(a).getTime()-Date.now())/1e3)))}b.providerSpecificData&&(c.providerSpecificData={...b.existingProviderSpecificData||{},...b.providerSpecificData}),(b.copilotToken||b.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||b.existingProviderSpecificData||{},...b.copilotToken?{copilotToken:b.copilotToken}:{},...b.copilotTokenExpiresAt?{copilotTokenExpiresAt:b.copilotTokenExpiresAt}:{}}),b.projectId&&(c.projectId=b.projectId);let f=await (0,e.updateProviderConnection)(a,c);return d.info("TOKEN_REFRESH","Credentials updated in localDb",{connectionId:a,success:!!f}),!!f}catch(b){return d.error("TOKEN_REFRESH","Error updating credentials in localDb",{connectionId:a,error:b.message}),!1}}async function o(a,b,c={}){let e={...b};if(!e.connectionId&&e.id&&(e.connectionId=e.id),c?.force===!0||(0,h.fp)(a,e)){let b=e.expiresAt?new Date(e.expiresAt).getTime():null,c=b?b-Date.now():null,i=(0,g.Og)(a);d.info("TOKEN_REFRESH","Refreshing provider credentials proactively",{provider:a,expiresIn:null===c?null:Math.round(c/1e3),refreshLeadMs:i,lastRefreshAt:e.lastRefreshAt||null});let j=await (0,h.Vq)(a,e,d);if(j?.accessToken||j?.apiKey||j?.copilotToken){let b={...j,existingProviderSpecificData:e.providerSpecificData};await n(e.connectionId,b),function(a,b,c){("antigravity"===a||"gemini-cli"===a)&&b&&c&&((0,f.Ou)(b),(0,f.eG)(b,c).then(a=>{a&&n(b,{projectId:a}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to persist refreshed projectId",{connectionId:b,error:a?.message??a})})}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to fetch projectId after token refresh",{connectionId:b,error:a?.message??a})}))}(a,(e={...e,...j,expiresAt:j.expiresIn?l(j.expiresIn):m(j.expiresAt)||j.expiresAt||e.expiresAt,providerSpecificData:j.providerSpecificData?{...e.providerSpecificData,...j.providerSpecificData}:e.providerSpecificData}).connectionId,e.accessToken)}}if("github"===a){let b=e.providerSpecificData?.copilotToken,c=(e.providerSpecificData?.copilotTokenExpiresAt?1e3*e.providerSpecificData.copilotTokenExpiresAt:0)-Date.now();if(!b||c<i){let f;d.info("TOKEN_REFRESH","Copilot token expiring soon or missing, refreshing proactively",{provider:a,expiresIn:b?Math.round(c/1e3):"missing"});let h=await (f=e.accessToken,(0,g.jR)(f,d));if(h){let a={...e.providerSpecificData,copilotToken:h.token,copilotTokenExpiresAt:h.expiresAt};await n(e.connectionId,{providerSpecificData:a}),e.providerSpecificData=a,e.copilotToken=h.token}}}return e}}};