@techysy/10router 1.6.4-test.1 → 1.6.4-test.2

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 (533) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +35 -35
  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 +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  61. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  62. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  63. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/_not-found.html +2 -2
  66. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  67. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  68. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  69. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  70. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/external-quota/[source]/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/claim-compensation/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/oauth/loomy/sms-login/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/oauth/loomy/sms-login/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/oauth/loomy/sms-send/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/v1/rerank/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/v1/rerank/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  350. package/app/.next-cli-build/server/app/callback.html +2 -2
  351. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  352. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  353. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  354. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  355. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  356. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  357. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  358. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  359. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  360. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  361. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  362. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  363. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  364. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  365. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  366. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  367. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  368. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  369. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  370. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  371. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  372. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  373. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  374. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  375. package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
  376. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
  377. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
  378. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
  379. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  380. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  381. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  382. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  383. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  384. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  385. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  386. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  387. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  388. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  389. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  390. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  391. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  392. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  393. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  394. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  395. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  396. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  397. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  398. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  399. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  400. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  401. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  402. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  403. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  404. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  405. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  406. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  407. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  408. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  409. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  410. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  411. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  412. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
  413. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  414. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  416. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  417. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  418. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  419. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  420. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
  423. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  424. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  425. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  426. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  427. package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
  428. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  429. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  430. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  431. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  432. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  433. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  434. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
  435. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  436. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  437. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  438. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  439. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  440. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  441. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
  443. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  444. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  445. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  446. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  447. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  448. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  449. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  450. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  451. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  452. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/index.html +1 -1
  454. package/app/.next-cli-build/server/app/index.rsc +6 -6
  455. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  456. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  457. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  458. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  460. package/app/.next-cli-build/server/app/landing.html +2 -2
  461. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  462. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  463. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  465. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  467. package/app/.next-cli-build/server/app/login.html +2 -2
  468. package/app/.next-cli-build/server/app/login.rsc +7 -7
  469. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  470. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  471. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  472. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  473. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  475. package/app/.next-cli-build/server/app-paths-manifest.json +35 -35
  476. package/app/.next-cli-build/server/chunks/1310.js +9 -0
  477. package/app/.next-cli-build/server/chunks/1622.js +1 -1
  478. package/app/.next-cli-build/server/chunks/1806.js +1 -1
  479. package/app/.next-cli-build/server/chunks/1819.js +1 -1
  480. package/app/.next-cli-build/server/chunks/2812.js +1 -1
  481. package/app/.next-cli-build/server/chunks/3662.js +1 -1
  482. package/app/.next-cli-build/server/chunks/3771.js +1 -1
  483. package/app/.next-cli-build/server/chunks/3792.js +1 -1
  484. package/app/.next-cli-build/server/chunks/3962.js +1 -1
  485. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  486. package/app/.next-cli-build/server/chunks/4906.js +1 -1
  487. package/app/.next-cli-build/server/chunks/4927.js +1 -1
  488. package/app/.next-cli-build/server/chunks/5527.js +1 -1
  489. package/app/.next-cli-build/server/chunks/5757.js +1 -1
  490. package/app/.next-cli-build/server/chunks/5781.js +1 -1
  491. package/app/.next-cli-build/server/chunks/5787.js +9 -0
  492. package/app/.next-cli-build/server/chunks/5837.js +1 -1
  493. package/app/.next-cli-build/server/chunks/594.js +1 -0
  494. package/app/.next-cli-build/server/chunks/6212.js +1 -1
  495. package/app/.next-cli-build/server/chunks/6960.js +1 -1
  496. package/app/.next-cli-build/server/chunks/7067.js +1 -1
  497. package/app/.next-cli-build/server/chunks/7209.js +1 -1
  498. package/app/.next-cli-build/server/chunks/7274.js +1 -1
  499. package/app/.next-cli-build/server/chunks/8145.js +1 -1
  500. package/app/.next-cli-build/server/chunks/8172.js +1 -1
  501. package/app/.next-cli-build/server/chunks/8318.js +1 -1
  502. package/app/.next-cli-build/server/chunks/8370.js +7 -7
  503. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  504. package/app/.next-cli-build/server/chunks/8439.js +1 -1
  505. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  506. package/app/.next-cli-build/server/chunks/8775.js +1 -1
  507. package/app/.next-cli-build/server/chunks/922.js +9 -0
  508. package/app/.next-cli-build/server/chunks/9489.js +1 -1
  509. package/app/.next-cli-build/server/chunks/9781.js +1 -0
  510. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  511. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  512. package/app/.next-cli-build/server/middleware.js +5 -5
  513. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  514. package/app/.next-cli-build/server/pages/404.html +2 -2
  515. package/app/.next-cli-build/server/pages/500.html +1 -1
  516. package/app/.next-cli-build/static/chunks/1321-b8be93bbd911ff4d.js +1 -0
  517. package/app/.next-cli-build/static/chunks/{5497-100281ed6ce1f83b.js → 5497-f6d548a4a9538453.js} +1 -1
  518. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-a2f5c1fa12df475b.js → page-7c4e389aed972469.js} +1 -1
  519. package/app/.next-cli-build/static/css/{63c4d9ca82aea954.css → 02a46e8ee21b7aaa.css} +1 -1
  520. package/app/package.json +1 -1
  521. package/app/public/i18n/changelog/en.md +4 -0
  522. package/app/public/i18n/changelog/zh-CN.md +4 -0
  523. package/app/public/i18n/changelog/zh-TW.md +4 -0
  524. package/app/public/i18n/literals/zh-CN.json +2 -0
  525. package/app/public/i18n/literals/zh-TW.json +2 -0
  526. package/package.json +1 -1
  527. package/app/.next-cli-build/server/chunks/1386.js +0 -9
  528. package/app/.next-cli-build/server/chunks/3389.js +0 -1
  529. package/app/.next-cli-build/server/chunks/9451.js +0 -9
  530. package/app/.next-cli-build/server/chunks/976.js +0 -9
  531. package/app/.next-cli-build/static/chunks/1321-25956f9bfbc2e6da.js +0 -1
  532. /package/app/.next-cli-build/static/{ilH6FH_DABFzbJ122SgT6 → 27KqZx4tyAU8IQDuc2h_r}/_buildManifest.js +0 -0
  533. /package/app/.next-cli-build/static/{ilH6FH_DABFzbJ122SgT6 → 27KqZx4tyAU8IQDuc2h_r}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{22759:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var l=s(95155),a=s(12115),r=s(44923),n=s(87256),o=s(39768),i=s(5020),d=s(35497),c=s(76995);let m=Number.MAX_SAFE_INTEGER;function x(e,t){let s=[...e||[]];for(let e of t||[])s.includes(e)||s.push(e);return s}function u(e){return fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboCardOrder:e})})}var p=s(11059),h=s(929);s(88105);var b=s(990),f=s(31474),g=s(73006);let j=/^[a-zA-Z0-9_.\-]+$/,y=[{key:"vision",label:"Vision",icon:"visibility",desc:"Images"},{key:"audioInput",label:"Audio",icon:"graphic_eq",desc:"Audio input"}],v="oc/mimo-v2.6-flash-free",N={enabled:!0,roundRobin:!1,models:[]},w={vision:{...N},pdf:{...N},audioInput:{...N},videoInput:{...N}};function k(){let e,t,[s,r]=(0,a.useState)([]),[n,o]=(0,a.useState)(!0),[i,b]=(0,a.useState)(!1),[f,j]=(0,a.useState)(null),[v,k]=(0,a.useState)([]),[C,S]=(0,a.useState)({}),[M,A]=(0,a.useState)([]),[$,D]=(0,a.useState)(null),[P,R]=(0,a.useState)(null),[F,_]=(0,a.useState)(w),{getCaps:z}=(0,h.yU)(),[I,q]=(0,a.useState)(null),{copied:V,copy:J}=(0,p.C)();(0,a.useEffect)(()=>{B()},[]);let B=async()=>{try{let[t,s,l]=await Promise.all([fetch("/api/combos"),fetch("/api/providers"),fetch("/api/settings")]),a=await t.json(),n=await s.json(),o=l.ok?await l.json():{};t.ok&&r((a.combos||[]).filter(e=>!e.kind||"llm"===e.kind)),s.ok&&k(n.connections||[]),S(o.comboStrategies||{}),Array.isArray(o.comboCardOrder)&&A(o.comboCardOrder);let i=o.capacityAdapter||{},d={};for(let t of y){var e;d[t.key]=(e=i[t.key],Array.isArray(e)?{enabled:!0,roundRobin:!1,models:e.map(e=>e?.model||e).filter(Boolean)}:e&&"object"==typeof e?{enabled:!1!==e.enabled,roundRobin:!!e.roundRobin,models:Array.isArray(e.models)?e.models.filter(Boolean):[]}:{...N})}_(d)}catch(e){console.log("Error fetching data:",e)}finally{o(!1)}},G=(0,a.useCallback)(e=>{D(null),R(null),$&&e&&$!==e&&A(t=>{let l=function(e,t,s,l){if(!s||!l||s===l)return e;let a=x(e,t),r=a.indexOf(s),n=a.indexOf(l);return -1===r||-1===n?e:(a.splice(r,1),a.splice(n,0,s),a)}(t,s.map(e=>e.id),$,e);return l!==t&&u(l).catch(e=>console.log("Failed to save combo card order:",e)),l})},[$,s]),L=(0,a.useCallback)(e=>{e&&A(t=>{let l=function(e,t,s){if(!s)return e;let l=x(e,t),a=l.indexOf(s);return 0===a?e:(-1===a||l.splice(a,1),l.unshift(s),l)}(t,s.map(e=>e.id),e);return l!==t&&u(l).catch(e=>console.log("Failed to save combo card order:",e)),l})},[s]),Q=async e=>{_(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({capacityAdapter:e})})}catch(e){console.log("Error updating capacity adapter:",e)}},W=async e=>{try{let t=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)await B(),b(!1);else{let e=await t.json();alert(e.error||"Failed to create combo")}}catch(e){console.log("Error creating combo:",e)}},Z=async(e,t)=>{try{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(s.ok)await B(),j(null);else{let e=await s.json();alert(e.error||"Failed to update combo")}}catch(e){console.log("Error updating combo:",e)}},H=async e=>{q({title:"Delete Combo",message:"Delete this combo?",onConfirm:async()=>{q(null);try{(await fetch(`/api/combos/${e}`,{method:"DELETE"})).ok&&r(s.filter(t=>t.id!==e))}catch(e){console.log("Error deleting combo:",e)}}})},U=async(e,t)=>{try{let s={...C},l={...s[e]||{},...t};l.fallbackStrategy&&"fallback"!==l.fallbackStrategy||l.retryOnEmpty?s[e]=l:delete s[e],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})}),S(s)}catch(e){console.log("Error updating combo strategy:",e)}};return n?(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(d.Qv,{}),(0,l.jsx)(d.Qv,{})]}):(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:(0,g.Tl)("Group models under one name, then pick a strategy per combo:")}),(0,l.jsxs)("ul",{className:"text-sm text-text-muted mt-2 flex flex-col gap-1",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Fallback")})," ",(0,g.Tl)("— tries models in order (next on failure)")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Round Robin")})," ",(0,g.Tl)("— rotates models across requests to spread load")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Fusion")})," ",(0,g.Tl)("— queries all models in parallel, then a judge synthesizes one answer. Best quality, but costs the most: every request bills all panel models + the judge (N+1 calls)")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Router")})," ",(0,g.Tl)("— decision model analyzes user prompt and selects the best-suited member model to answer (fast, capability-aware routing)")]})]})]}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>b(!0),className:"w-full sm:w-auto whitespace-nowrap",children:"Create Combo"})]}),0===s.length?(0,l.jsx)(d.Zp,{children:(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"layers"})}),(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No combos yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create model combos with fallback support"}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>b(!0),className:"w-full sm:w-auto",children:"Create Combo"})]})}):(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(t=Object.fromEntries((e=[...s].sort(function({cardOrder:e=[]}={}){let t=function(e=[]){let t=new Map;return(e||[]).forEach((e,s)=>{t.has(e)||t.set(e,s)}),e=>t.has(e)?t.get(e):m}(e);return(e,s)=>{let l="object"==typeof e&&null!==e?e.id:e,a="object"==typeof s&&null!==s?s.id:s,r=t(l),n=t(a);if(r!==n)return r-n;let o="object"==typeof e&&e?.createdAt?new Date(e.createdAt).getTime():0,i="object"==typeof s&&s?.createdAt?new Date(s.createdAt).getTime():0;if(o&&i&&o!==i)return o-i;let d="object"==typeof e&&e?.name?e.name:String(e??""),c="object"==typeof s&&s?.name?s.name:String(s??"");return d.localeCompare(c)}}({cardOrder:M}))).map(e=>[e.name,e.models])),e.map(e=>(0,l.jsx)(c.A,{cardId:e.id,isDragging:$===e.id,isOver:P===e.id,onDragStart:D,onDragOver:R,onDrop:G,onDragEnd:()=>{D(null),R(null)},children:(0,l.jsx)(T,{combo:e,getCaps:z,comboByName:t,activeProviders:v,copied:V,onCopy:J,onEdit:()=>j(e),onDelete:()=>H(e.id),onPinToTop:L,strategy:C[e.name]||{},onSetStrategy:t=>U(e.name,t)})},e.id)))}),(0,l.jsx)(O,{capacityAdapter:F,onChange:Q,activeProviders:v,getCaps:z}),i&&(0,l.jsx)(E,{isOpen:i,onClose:()=>b(!1),onSave:W,activeProviders:v},"create"),f&&(0,l.jsx)(E,{isOpen:!!f,combo:f,onClose:()=>j(null),onSave:e=>Z(f.id,e),activeProviders:v},f.id),(0,l.jsx)(d.uo,{isOpen:!!I,onClose:()=>q(null),onConfirm:I?.onConfirm,title:I?.title||"Confirm",message:I?.message,variant:"danger"})]})}let C=e=>{if(!e)return"?";if(e>=1e6){let t=e/1e6;return`${Number.isInteger(t)?t:t.toFixed(1)}M`}return`${Math.round(e/1e3)}k`},S=[{value:"fallback",label:(0,g.Tl)("Fallback — try in order")},{value:"round-robin",label:(0,g.Tl)("Round Robin — rotate")},{value:"fusion",label:(0,g.Tl)("Fusion — panel + judge")},{value:"router",label:(0,g.Tl)("Router — decision model picks member")}];function T({combo:e,getCaps:t,comboByName:s={},activeProviders:r=[],copied:n,onCopy:o,onEdit:i,onDelete:c,onPinToTop:m,strategy:x={},onSetStrategy:u}){let[p,h]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1),v=x.fallbackStrategy||"fallback",N=x.judgeModel||"",w=x.routerModel||"",k=(0,b.Q5)(e.models,s,t);return(0,l.jsxs)(d.Zp,{padding:"sm",className:"group",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("code",{className:"block truncate font-mono text-sm font-medium",children:e.name}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===e.models.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:(0,g.Tl)("No models")}):e.models.slice(0,3).map((e,a)=>(0,l.jsxs)("code",{className:"inline-flex items-center gap-1 rounded bg-black/5 px-1.5 py-0.5 font-mono text-xs text-text-muted dark:bg-white/5",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(d.nh,{caps:s[e]?(0,b.Q5)(s[e],s,t):t?.(e)})]},a)),e.models.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",e.models.length-3," ",(0,g.Tl)("more")]})]}),k&&(0,l.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-[10px] text-text-muted",children:[(0,l.jsxs)("span",{children:["ctx ",C(k.contextWindow)]}),(0,l.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,l.jsxs)("span",{children:["max ",C(k.maxOutput)]})]}),"fusion"===v&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Judge"}),(0,l.jsxs)("button",{onClick:()=>h(!0),className:"inline-flex max-w-full items-center gap-1 rounded border border-dashed border-primary/40 px-1.5 py-0.5 font-mono text-[11px] text-primary hover:border-primary hover:bg-primary/5 transition-colors",title:"Pick the model that fuses panel answers",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"gavel"}),(0,l.jsx)("span",{className:"truncate",children:N||`Auto — ${e.models[0]||"first model"}`})]}),N&&(0,l.jsx)("button",{onClick:()=>u({judgeModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Reset judge to Auto",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]}),"router"===v&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Router"}),(0,l.jsxs)("button",{onClick:()=>y(!0),className:(0,f.cn)("inline-flex max-w-full items-center gap-1 rounded border border-dashed px-1.5 py-0.5 font-mono text-[11px] transition-colors",w?"border-primary/40 text-primary hover:border-primary hover:bg-primary/5":"border-amber-500/50 text-amber-600 dark:text-amber-400 hover:border-amber-500"),title:w?"Pick the decision model that selects the answering member":"No decision model set — the combo falls back to the normal order",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"alt_route"}),(0,l.jsx)("span",{className:"truncate",children:w||(0,g.Tl)("Select decision model")})]}),w&&(0,l.jsx)("button",{onClick:()=>u({routerModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Clear decision model (falls back to normal order)",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("div",{className:"w-full sm:w-[200px]",children:[(0,l.jsx)(d.l6,{options:S,value:v,onChange:e=>u({fallbackStrategy:e.target.value}),selectClassName:"py-1.5 text-xs"}),"fusion"!==v&&(0,l.jsxs)("label",{className:"mt-1 flex cursor-pointer items-center gap-1.5 text-[11px] text-text-muted",title:(0,g.Tl)("When the model returns an empty answer (content filter or zero output), fall through to the next model. The abandoned attempt still consumes its input tokens."),children:[(0,l.jsx)(d.lM,{size:"sm",checked:!!x.retryOnEmpty,onChange:e=>u({retryOnEmpty:e})}),(0,l.jsx)("span",{children:(0,g.Tl)("Retry on empty")})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-4 gap-1 sm:flex",children:[(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),m?.(e.id)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:(0,g.Tl)("Pin to top"),children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"vertical_align_top"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:(0,g.Tl)("Pin to top")})]}),(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),o(e.name,`combo-${e.id}`)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Copy combo name",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:n===`combo-${e.id}`?"check":"content_copy"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Copy"})]}),(0,l.jsxs)("button",{onClick:i,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Edit",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:c,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 transition-colors hover:bg-red-500/10",title:"Delete",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]})]})]}),p&&(0,l.jsx)(d.rq,{isOpen:p,onClose:()=>h(!1),onSelect:e=>{u({judgeModel:e?.value||""}),h(!1)},activeProviders:r,title:"Select Judge Model",addedModelValues:N?[N]:[],closeOnSelect:!0}),j&&(0,l.jsx)(d.rq,{isOpen:j,onClose:()=>y(!1),onSelect:e=>{u({routerModel:e?.value||""}),y(!1)},activeProviders:r,kindFilter:"systemone",title:(0,g.Tl)("Select Decision Model"),addedModelValues:w?[w]:[],closeOnSelect:!0})]})}function O({capacityAdapter:e,onChange:t,activeProviders:s,getCaps:a}){return(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-medium",children:(0,g.Tl)("Vision Adapter")}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:(0,g.Tl)("Your model can't read image/audio? Auto-switches to a model in the pool below.")}),(0,l.jsxs)("ul",{className:"mt-1.5 text-[11px] text-text-muted flex flex-col gap-0.5",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Vision"})," — ",(0,g.Tl)("Images")," (png, jpg, webp, …)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Audio"})," — ",(0,g.Tl)("Audio input")]})]})]})}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:y.map(r=>(0,l.jsx)(M,{cap:r,entry:e[r.key]||N,onChange:s=>t({...e,[r.key]:s}),activeProviders:s,getCaps:a},r.key))})]})}function M({cap:e,entry:t,onChange:s,activeProviders:r,getCaps:n}){let[o,i]=(0,a.useState)(!1),{enabled:c,roundRobin:m,models:x}=t,u=e=>s({...t,...e}),p=(e,t)=>{let s=e+t;if(s<0||s>=x.length)return;let l=[...x];[l[e],l[s]]=[l[s],l[e]],u({models:l})};return(0,l.jsxs)(d.Zp,{padding:"sm",className:`group ${!c?"opacity-50":""}`,children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5 sm:items-center",children:[(0,l.jsx)(d.lM,{checked:c,onChange:e=>u({enabled:e}),"aria-label":`${(0,g.Tl)("Enable")} ${e.label} ${(0,g.Tl)("adapter")}`}),(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:e.icon})}),(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("code",{className:"font-mono text-sm font-medium",children:e.label}),(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["— ",(0,g.Tl)(e.desc)]})]})})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer select-none",children:[(0,l.jsx)(d.lM,{checked:m,onChange:e=>u({roundRobin:e}),disabled:!c,"aria-label":`${(0,g.Tl)("Round-robin")} ${e.label} ${(0,g.Tl)("adapter")}`}),(0,l.jsx)("span",{children:(0,g.Tl)("Round")})]}),(0,l.jsx)(d.$n,{icon:"add",variant:"ghost",size:"sm",onClick:()=>i(!0),disabled:!c,title:`${(0,g.Tl)("Add Model")} — ${e.label}`,children:(0,g.Tl)("Add Model")})]})]}),0===x.length?(0,l.jsxs)("div",{className:"mt-3 py-2 text-center text-xs text-text-muted italic",children:[(0,g.Tl)("No models in pool")," (",(0,g.Tl)("will fallback to")," ",(0,l.jsx)("code",{className:"font-mono",children:v}),")"]}):(0,l.jsx)("div",{className:"mt-3 overflow-hidden rounded-lg border border-border/50",children:(0,l.jsxs)("table",{className:"w-full text-left text-xs",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"border-b border-border/40 bg-black/[0.02] text-text-muted dark:bg-white/[0.02]",children:[(0,l.jsx)("th",{className:"w-12 px-3 py-1.5 text-center font-medium",children:"#"}),(0,l.jsx)("th",{className:"px-3 py-1.5 font-medium",children:(0,g.Tl)("Model")}),(0,l.jsx)("th",{className:"w-24 px-3 py-1.5 text-center font-medium",children:(0,g.Tl)("Order")}),(0,l.jsx)("th",{className:"w-12 px-3 py-1.5 text-right"})]})}),(0,l.jsx)("tbody",{className:"divide-y divide-border/30 font-mono",children:x.map((e,t)=>(0,l.jsxs)("tr",{className:"transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02]",children:[(0,l.jsxs)("td",{className:"px-3 py-2 text-center font-sans text-[11px] text-text-muted",children:["#",t+1]}),(0,l.jsx)("td",{className:"px-3 py-2 text-text-main",children:(0,l.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"truncate",children:e}),(0,l.jsx)(d.nh,{caps:n?.(e)}),e===v&&(0,l.jsx)("span",{className:"rounded bg-emerald-500/10 px-1.5 py-0.5 font-sans text-[10px] font-medium text-emerald-600 dark:text-emerald-400",children:"free default"})]})}),(0,l.jsx)("td",{className:"px-3 py-2",children:(0,l.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,l.jsx)("button",{type:"button",onClick:()=>p(t,-1),disabled:!c||0===t,className:`rounded p-1 transition-colors ${!c||0===t?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5"}`,title:(0,g.Tl)("Move up"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"arrow_upward"})}),(0,l.jsx)("button",{type:"button",onClick:()=>p(t,1),disabled:!c||t===x.length-1,className:`rounded p-1 transition-colors ${!c||t===x.length-1?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5"}`,title:(0,g.Tl)("Move down"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"arrow_downward"})})]})}),(0,l.jsx)("td",{className:"px-3 py-2 text-right",children:(0,l.jsx)("button",{type:"button",onClick:()=>{let e;u({models:0===(e=x.filter((e,s)=>s!==t)).length?[v]:e})},disabled:!c,className:`rounded p-1 transition-colors ${!c?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-red-500/10 hover:text-red-500"}`,title:(0,g.Tl)("Remove model"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"close"})})})]},`${e}-${t}`))})]})}),o&&(0,l.jsx)(d.rq,{isOpen:o,onClose:()=>i(!1),onSelect:e=>{x.includes(e.value)||u({models:[...x,e.value]})},onDeselect:e=>{let t=x.filter(t=>t!==e.value);u({models:0===t.length?[v]:t})},activeProviders:r,title:`Add ${e.label} Model`,addedModelValues:x,capFilter:e.key,closeOnSelect:!1})]})}function A({id:e,index:t,model:s,isFirst:r,isLast:i,onEdit:d,onMoveUp:c,onMoveDown:m,onRemove:x}){let{attributes:u,listeners:p,setNodeRef:h,transform:b,isDragging:f}=(0,n.gl)({id:e}),g={transform:o.Ks.Transform.toString(b),opacity:f?.4:1,zIndex:f?999:void 0},[j,y]=(0,a.useState)(!1),[v,N]=(0,a.useState)(s),w=()=>{let e=v.trim();e&&e!==s?d(e):N(s),y(!1)};return(0,l.jsxs)("div",{ref:h,style:g,className:`group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 bg-black/[0.02] hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04] transition-colors ${f?"shadow-md ring-1 ring-primary/30":""}`,children:[(0,l.jsx)("button",{...u,...p,type:"button",className:"cursor-grab touch-none p-0.5 rounded text-text-muted hover:text-primary active:cursor-grabbing shrink-0",title:"Drag to reorder",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})}),(0,l.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:t+1}),j?(0,l.jsx)("input",{autoFocus:!0,value:v,onChange:e=>N(e.target.value),onBlur:w,onKeyDown:e=>{"Enter"===e.key&&w(),"Escape"===e.key&&(N(s),y(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,l.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>y(!0),title:"Click to edit",children:s}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,l.jsx)("button",{onClick:c,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:m,disabled:i,className:`p-0.5 rounded ${i?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,l.jsx)("button",{onClick:x,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function E({isOpen:e,combo:t,onClose:s,onSave:o,activeProviders:c,kindFilter:m=null}){let[x,u]=(0,a.useState)(t?.name||""),[p,h]=(0,a.useState)(t?.models||[]),[b,f]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[v,N]=(0,a.useState)(""),[w,k]=(0,a.useState)({}),C=(0,r.FR)((0,r.MS)(r.AN,{activationConstraint:{distance:5}}),(0,r.MS)(r.uN,{coordinateGetter:n.JR})),S=p.map((e,t)=>({uid:`item-${t}`,model:e})),T=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)return;let t=await e.json();k(t.aliases||{})}catch(e){console.error("Error fetching modal data:",e)}};(0,a.useEffect)(()=>{e&&T()},[e]);let O=e=>e.trim()?j.test(e)?(N(""),!0):(N("Only letters, numbers, -, _ and . allowed"),!1):(N("Name is required"),!1),M=async()=>{O(x)&&(y(!0),await o({name:x.trim(),models:p}),y(!1))},$=!!t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.aF,{isOpen:e,onClose:s,title:$?"Edit Combo":"Create Combo",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.pd,{label:"Combo Name",value:x,onChange:e=>{let t=e.target.value;u(t),t?O(t):N("")},placeholder:"my-combo",error:v}),(0,l.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and . allowed"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===p.length?(0,l.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,l.jsx)(r.Mp,{sensors:C,collisionDetection:r.fp,onDragEnd:e=>{let{active:t,over:s}=e;if(s&&t.id!==s.id){let e=S.findIndex(e=>e.uid===t.id),l=S.findIndex(e=>e.uid===s.id);-1!==e&&-1!==l&&h(t=>(0,n.be)(t,e,l))}},modifiers:[i.FN,i.gj],children:(0,l.jsx)(n.gB,{items:S.map(e=>e.uid),strategy:n._G,children:(0,l.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:S.map(({uid:e,model:t},s)=>(0,l.jsx)(A,{id:e,index:s,model:t,isFirst:0===s,isLast:s===S.length-1,onEdit:e=>{let t=[...p];t[s]=e,h(t)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...p];[t[e-1],t[e]]=[t[e],t[e-1]],h(t)})(s),onMoveDown:()=>(e=>{if(e===p.length-1)return;let t=[...p];[t[e],t[e+1]]=[t[e+1],t[e]],h(t)})(s),onRemove:()=>{h(p.filter((e,t)=>t!==s))}},e))})})}),(0,l.jsxs)("button",{onClick:()=>f(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,l.jsx)(d.$n,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,l.jsx)(d.$n,{onClick:M,fullWidth:!0,size:"sm",disabled:!x.trim()||!!v||g,children:g?"Saving...":$?"Save":"Create"})]})]})}),b&&(0,l.jsx)(d.rq,{isOpen:b,onClose:()=>f(!1),onSelect:e=>{p.includes(e.value)||h([...p,e.value])},onDeselect:e=>{h(p.filter(t=>t!==e.value))},activeProviders:c,modelAliases:w,title:"Add Model to Combo",kindFilter:m,addedModelValues:p,closeOnSelect:!1})]})}},56836:(e,t,s)=>{Promise.resolve().then(s.bind(s,22759))},76995:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var l=s(95155),a=s(14051),r=s.n(a);function n({cardId:e,isDragging:t,isOver:s,onDragStart:a,onDragOver:r,onDrop:o,onDragEnd:i,children:d}){return(0,l.jsx)("div",{draggable:!0,onDragStart:t=>{a?.(e),t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",e)}catch{}},onDragOver:t=>{t.preventDefault(),t.dataTransfer.dropEffect="move",r?.(e)},onDrop:t=>{t.preventDefault(),o?.(e)},onDragEnd:i,className:`min-w-0 transition-all rounded-xl cursor-grab active:cursor-grabbing ${t?"opacity-30 scale-[0.98]":s?"ring-2 ring-primary/60 scale-[1.01]":""}`,children:d})}n.propTypes={cardId:r().string.isRequired,isDragging:r().bool,isOver:r().bool,onDragStart:r().func,onDragOver:r().func,onDrop:r().func,onDragEnd:r().func,children:r().node}},84680:(e,t,s)=>{"use strict";s.d(t,{PM:()=>l.PM,Sj:()=>l.Sj,Vy:()=>l.Vy,fF:()=>l.fF,sl:()=>l.sl,vL:()=>l.vL,y$:()=>l.y$,zM:()=>l.zM});var l=s(44923)}},e=>{e.O(0,[3170,305,5353,1321,5497,8441,3794,7358],()=>e(e.s=56836)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{22759:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var l=s(95155),a=s(12115),r=s(44923),n=s(87256),o=s(39768),i=s(5020),d=s(35497),c=s(76995);let m=Number.MAX_SAFE_INTEGER;function x(e,t){let s=[...e||[]];for(let e of t||[])s.includes(e)||s.push(e);return s}function u(e){return fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboCardOrder:e})})}var p=s(11059),h=s(929);s(88105);var b=s(990),f=s(31474),g=s(73006);let j=/^[a-zA-Z0-9_.\-]+$/,y=[{key:"vision",label:"Vision",icon:"visibility",desc:"Images"},{key:"audioInput",label:"Audio",icon:"graphic_eq",desc:"Audio input"}],v="oc/mimo-v2.6-flash-free",N={enabled:!0,roundRobin:!1,models:[]},w={vision:{...N},pdf:{...N},audioInput:{...N},videoInput:{...N}};function k(){let e,t,[s,r]=(0,a.useState)([]),[n,o]=(0,a.useState)(!0),[i,b]=(0,a.useState)(!1),[f,j]=(0,a.useState)(null),[v,k]=(0,a.useState)([]),[C,T]=(0,a.useState)({}),[O,A]=(0,a.useState)([]),[E,D]=(0,a.useState)(null),[P,R]=(0,a.useState)(null),[_,F]=(0,a.useState)(w),{getCaps:z}=(0,h.yU)(),[I,q]=(0,a.useState)(null),{copied:V,copy:J}=(0,p.C)();(0,a.useEffect)(()=>{B()},[]);let B=async()=>{try{let[t,s,l]=await Promise.all([fetch("/api/combos"),fetch("/api/providers"),fetch("/api/settings")]),a=await t.json(),n=await s.json(),o=l.ok?await l.json():{};t.ok&&r((a.combos||[]).filter(e=>!e.kind||"llm"===e.kind)),s.ok&&k(n.connections||[]),T(o.comboStrategies||{}),Array.isArray(o.comboCardOrder)&&A(o.comboCardOrder);let i=o.capacityAdapter||{},d={};for(let t of y){var e;d[t.key]=(e=i[t.key],Array.isArray(e)?{enabled:!0,roundRobin:!1,models:e.map(e=>e?.model||e).filter(Boolean)}:e&&"object"==typeof e?{enabled:!1!==e.enabled,roundRobin:!!e.roundRobin,models:Array.isArray(e.models)?e.models.filter(Boolean):[]}:{...N})}F(d)}catch(e){console.log("Error fetching data:",e)}finally{o(!1)}},G=(0,a.useCallback)(e=>{D(null),R(null),E&&e&&E!==e&&A(t=>{let l=function(e,t,s,l){if(!s||!l||s===l)return e;let a=x(e,t),r=a.indexOf(s),n=a.indexOf(l);return -1===r||-1===n?e:(a.splice(r,1),a.splice(n,0,s),a)}(t,s.map(e=>e.id),E,e);return l!==t&&u(l).catch(e=>console.log("Failed to save combo card order:",e)),l})},[E,s]),L=(0,a.useCallback)(e=>{e&&A(t=>{let l=function(e,t,s){if(!s)return e;let l=x(e,t),a=l.indexOf(s);return 0===a?e:(-1===a||l.splice(a,1),l.unshift(s),l)}(t,s.map(e=>e.id),e);return l!==t&&u(l).catch(e=>console.log("Failed to save combo card order:",e)),l})},[s]),Q=async e=>{F(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({capacityAdapter:e})})}catch(e){console.log("Error updating capacity adapter:",e)}},W=async e=>{try{let t=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)await B(),b(!1);else{let e=await t.json();alert(e.error||"Failed to create combo")}}catch(e){console.log("Error creating combo:",e)}},Z=async(e,t)=>{try{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(s.ok)await B(),j(null);else{let e=await s.json();alert(e.error||"Failed to update combo")}}catch(e){console.log("Error updating combo:",e)}},H=async e=>{q({title:"Delete Combo",message:"Delete this combo?",onConfirm:async()=>{q(null);try{(await fetch(`/api/combos/${e}`,{method:"DELETE"})).ok&&r(s.filter(t=>t.id!==e))}catch(e){console.log("Error deleting combo:",e)}}})},U=async(e,t)=>{try{let s={...C},l={...s[e]||{},...t};l.fallbackStrategy&&"fallback"!==l.fallbackStrategy||l.retryOnEmpty?s[e]=l:delete s[e],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})}),T(s)}catch(e){console.log("Error updating combo strategy:",e)}};return n?(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(d.Qv,{}),(0,l.jsx)(d.Qv,{})]}):(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:(0,g.Tl)("Group models under one name, then pick a strategy per combo:")}),(0,l.jsxs)("ul",{className:"text-sm text-text-muted mt-2 flex flex-col gap-1",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Fallback")})," ",(0,g.Tl)("— tries models in order (next on failure)")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Round Robin")})," ",(0,g.Tl)("— rotates models across requests to spread load")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Fusion")})," ",(0,g.Tl)("— queries all models in parallel, then a judge synthesizes one answer. Best quality, but costs the most: every request bills all panel models + the judge (N+1 calls)")]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:(0,g.Tl)("Router")})," ",(0,g.Tl)("— decision model analyzes user prompt and selects the best-suited member model to answer (fast, capability-aware routing)")]})]})]}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>b(!0),className:"w-full sm:w-auto whitespace-nowrap",children:"Create Combo"})]}),0===s.length?(0,l.jsx)(d.Zp,{children:(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"layers"})}),(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No combos yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create model combos with fallback support"}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>b(!0),className:"w-full sm:w-auto",children:"Create Combo"})]})}):(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(t=Object.fromEntries((e=[...s].sort(function({cardOrder:e=[]}={}){let t=function(e=[]){let t=new Map;return(e||[]).forEach((e,s)=>{t.has(e)||t.set(e,s)}),e=>t.has(e)?t.get(e):m}(e);return(e,s)=>{let l="object"==typeof e&&null!==e?e.id:e,a="object"==typeof s&&null!==s?s.id:s,r=t(l),n=t(a);if(r!==n)return r-n;let o="object"==typeof e&&e?.createdAt?new Date(e.createdAt).getTime():0,i="object"==typeof s&&s?.createdAt?new Date(s.createdAt).getTime():0;if(o&&i&&o!==i)return o-i;let d="object"==typeof e&&e?.name?e.name:String(e??""),c="object"==typeof s&&s?.name?s.name:String(s??"");return d.localeCompare(c)}}({cardOrder:O}))).map(e=>[e.name,e.models])),e.map(e=>(0,l.jsx)(c.A,{cardId:e.id,isDragging:E===e.id,isOver:P===e.id,onDragStart:D,onDragOver:R,onDrop:G,onDragEnd:()=>{D(null),R(null)},children:(0,l.jsx)(S,{combo:e,getCaps:z,comboByName:t,activeProviders:v,copied:V,onCopy:J,onEdit:()=>j(e),onDelete:()=>H(e.id),onPinToTop:L,strategy:C[e.name]||{},onSetStrategy:t=>U(e.name,t)})},e.id)))}),(0,l.jsx)(M,{capacityAdapter:_,onChange:Q,activeProviders:v,getCaps:z}),i&&(0,l.jsx)($,{isOpen:i,onClose:()=>b(!1),onSave:W,activeProviders:v},"create"),f&&(0,l.jsx)($,{isOpen:!!f,combo:f,onClose:()=>j(null),onSave:e=>Z(f.id,e),activeProviders:v},f.id),(0,l.jsx)(d.uo,{isOpen:!!I,onClose:()=>q(null),onConfirm:I?.onConfirm,title:I?.title||"Confirm",message:I?.message,variant:"danger"})]})}let C=e=>{if(!e)return"?";if(e>=1e6){let t=e/1e6;return`${Number.isInteger(t)?t:t.toFixed(1)}M`}return`${Math.round(e/1e3)}k`},T=[{value:"fallback",label:(0,g.Tl)("Fallback — try in order")},{value:"round-robin",label:(0,g.Tl)("Round Robin — rotate")},{value:"fusion",label:(0,g.Tl)("Fusion — panel + judge")},{value:"router",label:(0,g.Tl)("Router — decision model picks member")}];function S({combo:e,getCaps:t,comboByName:s={},activeProviders:r=[],copied:n,onCopy:o,onEdit:i,onDelete:c,onPinToTop:m,strategy:x={},onSetStrategy:u}){let[p,h]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1),v=x.fallbackStrategy||"fallback",N=x.judgeModel||"",w=x.routerModel||"",k=(0,b.Q5)(e.models,s,t);return(0,l.jsxs)(d.Zp,{padding:"sm",className:"group",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("code",{className:"block truncate font-mono text-sm font-medium",children:e.name}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===e.models.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:(0,g.Tl)("No models")}):e.models.slice(0,3).map((e,a)=>(0,l.jsxs)("code",{className:"inline-flex items-center gap-1 rounded bg-black/5 px-1.5 py-0.5 font-mono text-xs text-text-muted dark:bg-white/5",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(d.nh,{caps:s[e]?(0,b.Q5)(s[e],s,t):t?.(e)})]},a)),e.models.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",e.models.length-3," ",(0,g.Tl)("more")]})]}),k&&(0,l.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-[10px] text-text-muted",children:[(0,l.jsxs)("span",{children:["ctx ",C(k.contextWindow)]}),(0,l.jsx)("span",{className:"opacity-40",children:"\xb7"}),(0,l.jsxs)("span",{children:["max ",C(k.maxOutput)]})]}),"fusion"===v&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Judge"}),(0,l.jsxs)("button",{onClick:()=>h(!0),className:"inline-flex max-w-full items-center gap-1 rounded border border-dashed border-primary/40 px-1.5 py-0.5 font-mono text-[11px] text-primary hover:border-primary hover:bg-primary/5 transition-colors",title:"Pick the model that fuses panel answers",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"gavel"}),(0,l.jsx)("span",{className:"truncate",children:N||`Auto — ${e.models[0]||"first model"}`})]}),N&&(0,l.jsx)("button",{onClick:()=>u({judgeModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Reset judge to Auto",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]}),"router"===v&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Router"}),(0,l.jsxs)("button",{onClick:()=>y(!0),className:(0,f.cn)("inline-flex max-w-full items-center gap-1 rounded border border-dashed px-1.5 py-0.5 font-mono text-[11px] transition-colors",w?"border-primary/40 text-primary hover:border-primary hover:bg-primary/5":"border-amber-500/50 text-amber-600 dark:text-amber-400 hover:border-amber-500"),title:w?"Pick the decision model that selects the answering member":"No decision model set — the combo falls back to the normal order",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"alt_route"}),(0,l.jsx)("span",{className:"truncate",children:w||(0,g.Tl)("Select decision model")})]}),w&&(0,l.jsx)("button",{onClick:()=>u({routerModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Clear decision model (falls back to normal order)",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("div",{className:"w-full sm:w-[200px]",children:[(0,l.jsx)(d.l6,{options:T,value:v,onChange:e=>u({fallbackStrategy:e.target.value}),selectClassName:"py-1.5 text-xs"}),"fusion"!==v&&(0,l.jsxs)("label",{className:"mt-1 flex cursor-pointer items-center gap-1.5 text-[11px] text-text-muted",title:(0,g.Tl)("When the model returns an empty answer (content filter or zero output), fall through to the next model. The abandoned attempt still consumes its input tokens."),children:[(0,l.jsx)(d.lM,{size:"sm",checked:!!x.retryOnEmpty,onChange:e=>u({retryOnEmpty:e})}),(0,l.jsx)("span",{children:(0,g.Tl)("Retry on empty")})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-4 gap-1 sm:flex",children:[(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),m?.(e.id)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:(0,g.Tl)("Pin to top"),children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"vertical_align_top"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:(0,g.Tl)("Pin to top")})]}),(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),o(e.name,`combo-${e.id}`)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Copy combo name",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:n===`combo-${e.id}`?"check":"content_copy"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Copy"})]}),(0,l.jsxs)("button",{onClick:i,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Edit",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:c,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 transition-colors hover:bg-red-500/10",title:"Delete",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]})]})]}),p&&(0,l.jsx)(d.rq,{isOpen:p,onClose:()=>h(!1),onSelect:e=>{u({judgeModel:e?.value||""}),h(!1)},activeProviders:r,title:"Select Judge Model",addedModelValues:N?[N]:[],closeOnSelect:!0}),j&&(0,l.jsx)(d.rq,{isOpen:j,onClose:()=>y(!1),onSelect:e=>{u({routerModel:e?.value||""}),y(!1)},activeProviders:r,kindFilter:"systemone",title:(0,g.Tl)("Select Decision Model"),addedModelValues:w?[w]:[],closeOnSelect:!0})]})}function M({capacityAdapter:e,onChange:t,activeProviders:s,getCaps:a}){return(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-medium",children:(0,g.Tl)("Vision Adapter")}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:(0,g.Tl)("Your model can't read image/audio? Auto-switches to a model in the pool below.")}),(0,l.jsxs)("ul",{className:"mt-1.5 text-[11px] text-text-muted flex flex-col gap-0.5",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Vision"})," — ",(0,g.Tl)("Images")," (png, jpg, webp, …)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Audio"})," — ",(0,g.Tl)("Audio input")]})]})]})}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:y.map(r=>(0,l.jsx)(O,{cap:r,entry:e[r.key]||N,onChange:s=>t({...e,[r.key]:s}),activeProviders:s,getCaps:a},r.key))})]})}function O({cap:e,entry:t,onChange:s,activeProviders:r,getCaps:n}){let[o,i]=(0,a.useState)(!1),{enabled:c,roundRobin:m,models:x}=t,u=e=>s({...t,...e}),p=(e,t)=>{let s=e+t;if(s<0||s>=x.length)return;let l=[...x];[l[e],l[s]]=[l[s],l[e]],u({models:l})};return(0,l.jsxs)(d.Zp,{padding:"sm",className:`group ${!c?"opacity-50":""}`,children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5 sm:items-center",children:[(0,l.jsx)(d.lM,{checked:c,onChange:e=>u({enabled:e}),"aria-label":`${(0,g.Tl)("Enable")} ${e.label} ${(0,g.Tl)("adapter")}`}),(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:e.icon})}),(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("code",{className:"font-mono text-sm font-medium",children:e.label}),(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["— ",(0,g.Tl)(e.desc)]})]})})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer select-none",children:[(0,l.jsx)(d.lM,{checked:m,onChange:e=>u({roundRobin:e}),disabled:!c,"aria-label":`${(0,g.Tl)("Round-robin")} ${e.label} ${(0,g.Tl)("adapter")}`}),(0,l.jsx)("span",{children:(0,g.Tl)("Round")})]}),(0,l.jsx)(d.$n,{icon:"add",variant:"ghost",size:"sm",onClick:()=>i(!0),disabled:!c,title:`${(0,g.Tl)("Add Model")} — ${e.label}`,children:(0,g.Tl)("Add Model")})]})]}),0===x.length?(0,l.jsxs)("div",{className:"mt-3 py-2 text-center text-xs text-text-muted italic",children:[(0,g.Tl)("No models in pool")," (",(0,g.Tl)("will fallback to")," ",(0,l.jsx)("code",{className:"font-mono",children:v}),")"]}):(0,l.jsx)("div",{className:"mt-3 overflow-hidden rounded-lg border border-border/50",children:(0,l.jsxs)("table",{className:"w-full text-left text-xs",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"border-b border-border/40 bg-black/[0.02] text-text-muted dark:bg-white/[0.02]",children:[(0,l.jsx)("th",{className:"w-12 px-3 py-1.5 text-center font-medium",children:"#"}),(0,l.jsx)("th",{className:"px-3 py-1.5 font-medium",children:(0,g.Tl)("Model")}),(0,l.jsx)("th",{className:"w-24 px-3 py-1.5 text-center font-medium",children:(0,g.Tl)("Order")}),(0,l.jsx)("th",{className:"w-12 px-3 py-1.5 text-right"})]})}),(0,l.jsx)("tbody",{className:"divide-y divide-border/30 font-mono",children:x.map((e,t)=>(0,l.jsxs)("tr",{className:"transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02]",children:[(0,l.jsxs)("td",{className:"px-3 py-2 text-center font-sans text-[11px] text-text-muted",children:["#",t+1]}),(0,l.jsx)("td",{className:"px-3 py-2 text-text-main",children:(0,l.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"truncate",children:e}),(0,l.jsx)(d.nh,{caps:n?.(e)}),e===v&&(0,l.jsx)("span",{className:"rounded bg-emerald-500/10 px-1.5 py-0.5 font-sans text-[10px] font-medium text-emerald-600 dark:text-emerald-400",children:"free default"})]})}),(0,l.jsx)("td",{className:"px-3 py-2",children:(0,l.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,l.jsx)("button",{type:"button",onClick:()=>p(t,-1),disabled:!c||0===t,className:`rounded p-1 transition-colors ${!c||0===t?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5"}`,title:(0,g.Tl)("Move up"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"arrow_upward"})}),(0,l.jsx)("button",{type:"button",onClick:()=>p(t,1),disabled:!c||t===x.length-1,className:`rounded p-1 transition-colors ${!c||t===x.length-1?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5"}`,title:(0,g.Tl)("Move down"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"arrow_downward"})})]})}),(0,l.jsx)("td",{className:"px-3 py-2 text-right",children:(0,l.jsx)("button",{type:"button",onClick:()=>{let e;u({models:0===(e=x.filter((e,s)=>s!==t)).length?[v]:e})},disabled:!c,className:`rounded p-1 transition-colors ${!c?"cursor-not-allowed text-text-muted/20":"text-text-muted hover:bg-red-500/10 hover:text-red-500"}`,title:(0,g.Tl)("Remove model"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:"close"})})})]},`${e}-${t}`))})]})}),o&&(0,l.jsx)(d.rq,{isOpen:o,onClose:()=>i(!1),onSelect:e=>{x.includes(e.value)||u({models:[...x,e.value]})},onDeselect:e=>{let t=x.filter(t=>t!==e.value);u({models:0===t.length?[v]:t})},activeProviders:r,title:`Add ${e.label} Model`,addedModelValues:x,capFilter:e.key,closeOnSelect:!1})]})}function A({id:e,index:t,model:s,isFirst:r,isLast:i,disabled:d,onEdit:c,onMoveUp:m,onMoveDown:x,onRemove:u,onToggleDisabled:p}){let{attributes:h,listeners:b,setNodeRef:f,transform:j,isDragging:y}=(0,n.gl)({id:e}),v={transform:o.Ks.Transform.toString(j),opacity:y?.4:1,zIndex:y?999:void 0},[N,w]=(0,a.useState)(!1),[k,C]=(0,a.useState)(s),T=()=>{let e=k.trim();e&&e!==s?c(e):C(s),w(!1)};return(0,l.jsxs)("div",{ref:f,style:v,className:`group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 bg-black/[0.02] hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04] transition-colors ${y?"shadow-md ring-1 ring-primary/30":""}`,children:[(0,l.jsx)("button",{...h,...b,type:"button",className:"cursor-grab touch-none p-0.5 rounded text-text-muted hover:text-primary active:cursor-grabbing shrink-0",title:"Drag to reorder",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})}),(0,l.jsx)("button",{type:"button",onClick:p,className:`shrink-0 rounded p-0.5 transition-colors ${d?"text-text-muted/30 hover:text-text-muted":"text-emerald-500 hover:bg-emerald-500/10"}`,title:d?(0,g.Tl)("Disabled — scheduler skips this entry (click to enable)"):(0,g.Tl)("Enabled (click to disable without removing)"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d?"toggle_off":"toggle_on"})}),(0,l.jsx)("span",{className:`text-[10px] font-medium w-3 text-center shrink-0 ${d?"text-text-muted/30":"text-text-muted"}`,children:t+1}),N?(0,l.jsx)("input",{autoFocus:!0,value:k,onChange:e=>C(e.target.value),onBlur:T,onKeyDown:e=>{"Enter"===e.key&&T(),"Escape"===e.key&&(C(s),w(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,l.jsx)("div",{className:`min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs hover:bg-black/5 dark:hover:bg-white/5 ${d?"text-text-muted/40 line-through":"text-text-main"}`,onClick:()=>w(!0),title:"Click to edit",children:s}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,l.jsx)("button",{onClick:m,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:x,disabled:i,className:`p-0.5 rounded ${i?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,l.jsx)("button",{onClick:u,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function $({isOpen:e,combo:t,onClose:s,onSave:o,activeProviders:c,kindFilter:m=null}){let[x,u]=(0,a.useState)(t?.name||""),[p,h]=(0,a.useState)(t?.models||[]),[b,f]=(0,a.useState)(Array.isArray(t?.disabledModels)?t.disabledModels.filter(e=>(t?.models||[]).includes(e)):[]),[g,y]=(0,a.useState)(!1),[v,N]=(0,a.useState)(!1),[w,k]=(0,a.useState)(""),[C,T]=(0,a.useState)({}),S=(0,r.FR)((0,r.MS)(r.AN,{activationConstraint:{distance:5}}),(0,r.MS)(r.uN,{coordinateGetter:n.JR})),M=p.map((e,t)=>({uid:`item-${t}`,model:e})),O=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)return;let t=await e.json();T(t.aliases||{})}catch(e){console.error("Error fetching modal data:",e)}};(0,a.useEffect)(()=>{e&&O()},[e]);let E=e=>e.trim()?j.test(e)?(k(""),!0):(k("Only letters, numbers, -, _ and . allowed"),!1):(k("Name is required"),!1),D=async()=>{E(x)&&(N(!0),await o({name:x.trim(),models:p,disabledModels:b}),N(!1))},P=!!t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.aF,{isOpen:e,onClose:s,title:P?"Edit Combo":"Create Combo",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.pd,{label:"Combo Name",value:x,onChange:e=>{let t=e.target.value;u(t),t?E(t):k("")},placeholder:"my-combo",error:w}),(0,l.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and . allowed"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===p.length?(0,l.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,l.jsx)(r.Mp,{sensors:S,collisionDetection:r.fp,onDragEnd:e=>{let{active:t,over:s}=e;if(s&&t.id!==s.id){let e=M.findIndex(e=>e.uid===t.id),l=M.findIndex(e=>e.uid===s.id);-1!==e&&-1!==l&&h(t=>(0,n.be)(t,e,l))}},modifiers:[i.FN,i.gj],children:(0,l.jsx)(n.gB,{items:M.map(e=>e.uid),strategy:n._G,children:(0,l.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:M.map(({uid:e,model:t},s)=>(0,l.jsx)(A,{id:e,index:s,model:t,isFirst:0===s,isLast:s===M.length-1,disabled:b.includes(t),onEdit:e=>{let l=[...p];l[s]=e,h(l),b.includes(t)&&f(b.map(s=>s===t?e:s))},onMoveUp:()=>(e=>{if(0===e)return;let t=[...p];[t[e-1],t[e]]=[t[e],t[e-1]],h(t)})(s),onMoveDown:()=>(e=>{if(e===p.length-1)return;let t=[...p];[t[e],t[e+1]]=[t[e+1],t[e]],h(t)})(s),onRemove:()=>{let e;return e=p[s],void(h(p.filter((e,t)=>t!==s)),f(b.filter(t=>t!==e)))},onToggleDisabled:()=>{let e;return e=p[s],void f(b.includes(e)?b.filter(t=>t!==e):[...b,e])}},e))})})}),(0,l.jsxs)("button",{onClick:()=>y(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,l.jsx)(d.$n,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,l.jsx)(d.$n,{onClick:D,fullWidth:!0,size:"sm",disabled:!x.trim()||!!w||v,children:v?"Saving...":P?"Save":"Create"})]})]})}),g&&(0,l.jsx)(d.rq,{isOpen:g,onClose:()=>y(!1),onSelect:e=>{p.includes(e.value)||h([...p,e.value])},onDeselect:e=>{h(p.filter(t=>t!==e.value)),f(b.filter(t=>t!==e.value))},activeProviders:c,modelAliases:C,title:"Add Model to Combo",kindFilter:m,addedModelValues:p,closeOnSelect:!1})]})}},56836:(e,t,s)=>{Promise.resolve().then(s.bind(s,22759))},76995:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var l=s(95155),a=s(14051),r=s.n(a);function n({cardId:e,isDragging:t,isOver:s,onDragStart:a,onDragOver:r,onDrop:o,onDragEnd:i,children:d}){return(0,l.jsx)("div",{draggable:!0,onDragStart:t=>{a?.(e),t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",e)}catch{}},onDragOver:t=>{t.preventDefault(),t.dataTransfer.dropEffect="move",r?.(e)},onDrop:t=>{t.preventDefault(),o?.(e)},onDragEnd:i,className:`min-w-0 transition-all rounded-xl cursor-grab active:cursor-grabbing ${t?"opacity-30 scale-[0.98]":s?"ring-2 ring-primary/60 scale-[1.01]":""}`,children:d})}n.propTypes={cardId:r().string.isRequired,isDragging:r().bool,isOver:r().bool,onDragStart:r().func,onDragOver:r().func,onDrop:r().func,onDragEnd:r().func,children:r().node}},84680:(e,t,s)=>{"use strict";s.d(t,{PM:()=>l.PM,Sj:()=>l.Sj,Vy:()=>l.Vy,fF:()=>l.fF,sl:()=>l.sl,vL:()=>l.vL,y$:()=>l.y$,zM:()=>l.zM});var l=s(44923)}},e=>{e.O(0,[3170,305,5353,1321,5497,8441,3794,7358],()=>e(e.s=56836)),_N_E=e.O()}]);